| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021 |
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pptxgen.es-C5rj3hyV.js","assets/jszip.min-DXNZmKaK.js"])))=>i.map(i=>d[i]);
- function zke(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/**
- * @vue/shared v3.5.18
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **//*! #__NO_SIDE_EFFECTS__ */function Tj(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ei={},Q1=[],bo=()=>{},$ke=()=>!1,T_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),_j=e=>e.startsWith("onUpdate:"),es=Object.assign,Dj=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jke=Object.prototype.hasOwnProperty,no=(e,t)=>jke.call(e,t),Zt=Array.isArray,Z1=e=>A5(e)==="[object Map]",Tb=e=>A5(e)==="[object Set]",n0=e=>A5(e)==="[object Date]",Rn=e=>typeof e=="function",In=e=>typeof e=="string",Uc=e=>typeof e=="symbol",dr=e=>e!==null&&typeof e=="object",kv=e=>(dr(e)||Rn(e))&&Rn(e.then)&&Rn(e.catch),O0e=Object.prototype.toString,A5=e=>O0e.call(e),Hke=e=>A5(e).slice(8,-1),N3=e=>A5(e)==="[object Object]",Ij=e=>In(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$4=Tj(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),__=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Wke=/-(\w)/g,dl=__(e=>e.replace(Wke,(t,n)=>n?n.toUpperCase():"")),Vke=/\B([A-Z])/g,vp=__(e=>e.replace(Vke,"-$1").toLowerCase()),C5=__(e=>e.charAt(0).toUpperCase()+e.slice(1)),j4=__(e=>e?`on${C5(e)}`:""),Mh=(e,t)=>!Object.is(e,t),fS=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},VB=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},tE=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qke=e=>{const t=In(e)?Number(e):NaN;return isNaN(t)?e:t};let UQ;const D_=()=>UQ||(UQ=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rn(e){if(Zt(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=In(r)?Qke(r):rn(r);if(o)for(const i in o)t[i]=o[i]}return t}else if(In(e)||dr(e))return e}const Gke=/;(?![^(]*\))/g,Kke=/:([^]+)/,Yke=/\/\*[^]*?\*\//g;function Qke(e){const t={};return e.replace(Yke,"").split(Gke).forEach(n=>{if(n){const r=n.split(Kke);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function oe(e){let t="";if(In(e))t=e;else if(Zt(e))for(let n=0;n<e.length;n++){const r=oe(e[n]);r&&(t+=r+" ")}else if(dr(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Il(e){if(!e)return null;let{class:t,style:n}=e;return t&&!In(t)&&(e.class=oe(t)),n&&(e.style=rn(n)),e}const Zke="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xke=Tj(Zke);function M0e(e){return!!e||e===""}function Jke(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Tv(e[r],t[r]);return n}function Tv(e,t){if(e===t)return!0;let n=n0(e),r=n0(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Uc(e),r=Uc(t),n||r)return e===t;if(n=Zt(e),r=Zt(t),n||r)return n&&r?Jke(e,t):!1;if(n=dr(e),r=dr(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!Tv(e[a],t[a]))return!1}}return String(e)===String(t)}function Oj(e,t){return e.findIndex(n=>Tv(n,t))}const P0e=e=>!!(e&&e.__v_isRef===!0),je=e=>In(e)?e:e==null?"":Zt(e)||dr(e)&&(e.toString===O0e||!Rn(e.toString))?P0e(e)?je(e.value):JSON.stringify(e,N0e,2):String(e),N0e=(e,t)=>P0e(t)?N0e(e,t.value):Z1(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[G9(r,i)+" =>"]=o,n),{})}:Tb(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>G9(n))}:Uc(t)?G9(t):dr(t)&&!Zt(t)&&!N3(t)?String(t):t,G9=(e,t="")=>{var n;return Uc(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
- * @vue/reactivity v3.5.18
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let Rs;class R0e{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Rs,!t&&Rs&&(this.index=(Rs.scopes||(Rs.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Rs;try{return Rs=this,t()}finally{Rs=n}}}on(){++this._on===1&&(this.prevScope=Rs,Rs=this)}off(){this._on>0&&--this._on===0&&(Rs=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function B0e(e){return new R0e(e)}function L0e(){return Rs}function F0e(e,t=!1){Rs&&Rs.cleanups.push(e)}let Bi;const K9=new WeakSet;class U0e{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Rs&&Rs.active&&Rs.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,K9.has(this)&&(K9.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||$0e(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,zQ(this),j0e(this);const t=Bi,n=Ic;Bi=this,Ic=!0;try{return this.fn()}finally{H0e(this),Bi=t,Ic=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Nj(t);this.deps=this.depsTail=void 0,zQ(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?K9.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qB(this)&&this.run()}get dirty(){return qB(this)}}let z0e=0,H4,W4;function $0e(e,t=!1){if(e.flags|=8,t){e.next=W4,W4=e;return}e.next=H4,H4=e}function Mj(){z0e++}function Pj(){if(--z0e>0)return;if(W4){let t=W4;for(W4=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;H4;){let t=H4;for(H4=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function j0e(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function H0e(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Nj(r),eTe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function qB(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(W0e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function W0e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===R3)||(e.globalVersion=R3,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qB(e))))return;e.flags|=2;const t=e.dep,n=Bi,r=Ic;Bi=e,Ic=!0;try{j0e(e);const o=e.fn(e._value);(t.version===0||Mh(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Bi=n,Ic=r,H0e(e),e.flags&=-3}}function Nj(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Nj(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function eTe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ic=!0;const V0e=[];function Yf(){V0e.push(Ic),Ic=!1}function Qf(){const e=V0e.pop();Ic=e===void 0?!0:e}function zQ(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Bi;Bi=void 0;try{t()}finally{Bi=n}}}let R3=0,tTe=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class I_{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Bi||!Ic||Bi===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Bi)n=this.activeLink=new tTe(Bi,this),Bi.deps?(n.prevDep=Bi.depsTail,Bi.depsTail.nextDep=n,Bi.depsTail=n):Bi.deps=Bi.depsTail=n,q0e(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Bi.depsTail,n.nextDep=void 0,Bi.depsTail.nextDep=n,Bi.depsTail=n,Bi.deps===n&&(Bi.deps=r)}return n}trigger(t){this.version++,R3++,this.notify(t)}notify(t){Mj();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pj()}}}function q0e(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)q0e(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const nE=new WeakMap,Yg=Symbol(""),GB=Symbol(""),B3=Symbol("");function Fs(e,t,n){if(Ic&&Bi){let r=nE.get(e);r||nE.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new I_),o.map=r,o.key=n),o.track()}}function Df(e,t,n,r,o,i){const a=nE.get(e);if(!a){R3++;return}const s=l=>{l&&l.trigger()};if(Mj(),t==="clear")a.forEach(s);else{const l=Zt(e),u=l&&Ij(n);if(l&&n==="length"){const d=Number(r);a.forEach((c,f)=>{(f==="length"||f===B3||!Uc(f)&&f>=d)&&s(c)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(B3)),t){case"add":l?u&&s(a.get("length")):(s(a.get(Yg)),Z1(e)&&s(a.get(GB)));break;case"delete":l||(s(a.get(Yg)),Z1(e)&&s(a.get(GB)));break;case"set":Z1(e)&&s(a.get(Yg));break}}Pj()}function nTe(e,t){const n=nE.get(e);return n&&n.get(t)}function Nm(e){const t=No(e);return t===e?t:(Fs(t,"iterate",B3),Wu(e)?t:t.map(As))}function O_(e){return Fs(e=No(e),"iterate",B3),e}const rTe={__proto__:null,[Symbol.iterator](){return Y9(this,Symbol.iterator,As)},concat(...e){return Nm(this).concat(...e.map(t=>Zt(t)?Nm(t):t))},entries(){return Y9(this,"entries",e=>(e[1]=As(e[1]),e))},every(e,t){return df(this,"every",e,t,void 0,arguments)},filter(e,t){return df(this,"filter",e,t,n=>n.map(As),arguments)},find(e,t){return df(this,"find",e,t,As,arguments)},findIndex(e,t){return df(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return df(this,"findLast",e,t,As,arguments)},findLastIndex(e,t){return df(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return df(this,"forEach",e,t,void 0,arguments)},includes(...e){return Q9(this,"includes",e)},indexOf(...e){return Q9(this,"indexOf",e)},join(e){return Nm(this).join(e)},lastIndexOf(...e){return Q9(this,"lastIndexOf",e)},map(e,t){return df(this,"map",e,t,void 0,arguments)},pop(){return E2(this,"pop")},push(...e){return E2(this,"push",e)},reduce(e,...t){return $Q(this,"reduce",e,t)},reduceRight(e,...t){return $Q(this,"reduceRight",e,t)},shift(){return E2(this,"shift")},some(e,t){return df(this,"some",e,t,void 0,arguments)},splice(...e){return E2(this,"splice",e)},toReversed(){return Nm(this).toReversed()},toSorted(e){return Nm(this).toSorted(e)},toSpliced(...e){return Nm(this).toSpliced(...e)},unshift(...e){return E2(this,"unshift",e)},values(){return Y9(this,"values",As)}};function Y9(e,t,n){const r=O_(e),o=r[t]();return r!==e&&!Wu(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=n(i.value)),i}),o}const oTe=Array.prototype;function df(e,t,n,r,o,i){const a=O_(e),s=a!==e&&!Wu(e),l=a[t];if(l!==oTe[t]){const c=l.apply(e,i);return s?As(c):c}let u=n;a!==e&&(s?u=function(c,f){return n.call(this,As(c),f,e)}:n.length>2&&(u=function(c,f){return n.call(this,c,f,e)}));const d=l.call(a,u,r);return s&&o?o(d):d}function $Q(e,t,n,r){const o=O_(e);let i=n;return o!==e&&(Wu(e)?n.length>3&&(i=function(a,s,l){return n.call(this,a,s,l,e)}):i=function(a,s,l){return n.call(this,a,As(s),l,e)}),o[t](i,...r)}function Q9(e,t,n){const r=No(e);Fs(r,"iterate",B3);const o=r[t](...n);return(o===-1||o===!1)&&Lj(n[0])?(n[0]=No(n[0]),r[t](...n)):o}function E2(e,t,n=[]){Yf(),Mj();const r=No(e)[t].apply(e,n);return Pj(),Qf(),r}const iTe=Tj("__proto__,__v_isRef,__isVue"),G0e=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Uc));function aTe(e){Uc(e)||(e=String(e));const t=No(this);return Fs(t,"has",e),t.hasOwnProperty(e)}class K0e{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?vTe:X0e:i?Z0e:Q0e).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Zt(t);if(!o){let l;if(a&&(l=rTe[n]))return l;if(n==="hasOwnProperty")return aTe}const s=Reflect.get(t,n,Uo(t)?t:r);return(Uc(n)?G0e.has(n):iTe(n))||(o||Fs(t,"get",n),i)?s:Uo(s)?a&&Ij(n)?s:s.value:dr(s)?o?_b(s):Wr(s):s}}class Y0e extends K0e{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._isShallow){const l=r0(i);if(!Wu(r)&&!r0(r)&&(i=No(i),r=No(r)),!Zt(t)&&Uo(i)&&!Uo(r))return l?!1:(i.value=r,!0)}const a=Zt(t)&&Ij(n)?Number(n)<t.length:no(t,n),s=Reflect.set(t,n,r,Uo(t)?t:o);return t===No(o)&&(a?Mh(r,i)&&Df(t,"set",n,r):Df(t,"add",n,r)),s}deleteProperty(t,n){const r=no(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Df(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!Uc(n)||!G0e.has(n))&&Fs(t,"has",n),r}ownKeys(t){return Fs(t,"iterate",Zt(t)?"length":Yg),Reflect.ownKeys(t)}}class sTe extends K0e{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const lTe=new Y0e,uTe=new sTe,cTe=new Y0e(!0);const KB=e=>e,ux=e=>Reflect.getPrototypeOf(e);function dTe(e,t,n){return function(...r){const o=this.__v_raw,i=No(o),a=Z1(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=o[e](...r),d=n?KB:t?rE:As;return!t&&Fs(i,"iterate",l?GB:Yg),{next(){const{value:c,done:f}=u.next();return f?{value:c,done:f}:{value:s?[d(c[0]),d(c[1])]:d(c),done:f}},[Symbol.iterator](){return this}}}}function cx(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fTe(e,t){const n={get(o){const i=this.__v_raw,a=No(i),s=No(o);e||(Mh(o,s)&&Fs(a,"get",o),Fs(a,"get",s));const{has:l}=ux(a),u=t?KB:e?rE:As;if(l.call(a,o))return u(i.get(o));if(l.call(a,s))return u(i.get(s));i!==a&&i.get(o)},get size(){const o=this.__v_raw;return!e&&Fs(No(o),"iterate",Yg),Reflect.get(o,"size",o)},has(o){const i=this.__v_raw,a=No(i),s=No(o);return e||(Mh(o,s)&&Fs(a,"has",o),Fs(a,"has",s)),o===s?i.has(o):i.has(o)||i.has(s)},forEach(o,i){const a=this,s=a.__v_raw,l=No(s),u=t?KB:e?rE:As;return!e&&Fs(l,"iterate",Yg),s.forEach((d,c)=>o.call(i,u(d),u(c),a))}};return es(n,e?{add:cx("add"),set:cx("set"),delete:cx("delete"),clear:cx("clear")}:{add(o){!t&&!Wu(o)&&!r0(o)&&(o=No(o));const i=No(this);return ux(i).has.call(i,o)||(i.add(o),Df(i,"add",o,o)),this},set(o,i){!t&&!Wu(i)&&!r0(i)&&(i=No(i));const a=No(this),{has:s,get:l}=ux(a);let u=s.call(a,o);u||(o=No(o),u=s.call(a,o));const d=l.call(a,o);return a.set(o,i),u?Mh(i,d)&&Df(a,"set",o,i):Df(a,"add",o,i),this},delete(o){const i=No(this),{has:a,get:s}=ux(i);let l=a.call(i,o);l||(o=No(o),l=a.call(i,o)),s&&s.call(i,o);const u=i.delete(o);return l&&Df(i,"delete",o,void 0),u},clear(){const o=No(this),i=o.size!==0,a=o.clear();return i&&Df(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=dTe(o,e,t)}),n}function Rj(e,t){const n=fTe(e,t);return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(no(n,o)&&o in r?n:r,o,i)}const pTe={get:Rj(!1,!1)},hTe={get:Rj(!1,!0)},gTe={get:Rj(!0,!1)};const Q0e=new WeakMap,Z0e=new WeakMap,X0e=new WeakMap,vTe=new WeakMap;function mTe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yTe(e){return e.__v_skip||!Object.isExtensible(e)?0:mTe(Hke(e))}function Wr(e){return r0(e)?e:Bj(e,!1,lTe,pTe,Q0e)}function M_(e){return Bj(e,!1,cTe,hTe,Z0e)}function _b(e){return Bj(e,!0,uTe,gTe,X0e)}function Bj(e,t,n,r,o){if(!dr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=yTe(e);if(i===0)return e;const a=o.get(e);if(a)return a;const s=new Proxy(e,i===2?r:n);return o.set(e,s),s}function X1(e){return r0(e)?X1(e.__v_raw):!!(e&&e.__v_isReactive)}function r0(e){return!!(e&&e.__v_isReadonly)}function Wu(e){return!!(e&&e.__v_isShallow)}function Lj(e){return e?!!e.__v_raw:!1}function No(e){const t=e&&e.__v_raw;return t?No(t):e}function Rd(e){return!no(e,"__v_skip")&&Object.isExtensible(e)&&VB(e,"__v_skip",!0),e}const As=e=>dr(e)?Wr(e):e,rE=e=>dr(e)?_b(e):e;function Uo(e){return e?e.__v_isRef===!0:!1}function K(e){return J0e(e,!1)}function jo(e){return J0e(e,!0)}function J0e(e,t){return Uo(e)?e:new bTe(e,t)}class bTe{constructor(t,n){this.dep=new I_,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:No(t),this._value=n?t:As(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Wu(t)||r0(t);t=r?t:No(t),Mh(t,n)&&(this._rawValue=t,this._value=r?t:As(t),this.dep.trigger())}}function pS(e){e.dep&&e.dep.trigger()}function C(e){return Uo(e)?e.value:e}const wTe={get:(e,t,n)=>t==="__v_raw"?e:C(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Uo(o)&&!Uo(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function ege(e){return X1(e)?e:new Proxy(e,wTe)}class ATe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new I_,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function CTe(e){return new ATe(e)}function Oa(e){const t=Zt(e)?new Array(e.length):{};for(const n in e)t[n]=tge(e,n);return t}class xTe{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return nTe(No(this._object),this._key)}}class STe{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function co(e,t,n){return Uo(e)?e:Rn(e)?new STe(e):dr(e)&&arguments.length>1?tge(e,t,n):K(e)}function tge(e,t,n){const r=e[t];return Uo(r)?r:new xTe(e,t,n)}class ETe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new I_(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=R3-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Bi!==this)return $0e(this,!0),!0}get value(){const t=this.dep.track();return W0e(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function kTe(e,t,n=!1){let r,o;return Rn(e)?r=e:(r=e.get,o=e.set),new ETe(r,o,n)}const dx={},oE=new WeakMap;let wg;function TTe(e,t=!1,n=wg){if(n){let r=oE.get(n);r||oE.set(n,r=[]),r.push(e)}}function _Te(e,t,n=Ei){const{immediate:r,deep:o,once:i,scheduler:a,augmentJob:s,call:l}=n,u=w=>o?w:Wu(w)||o===!1||o===0?If(w,1):If(w);let d,c,f,p,v=!1,h=!1;if(Uo(e)?(c=()=>e.value,v=Wu(e)):X1(e)?(c=()=>u(e),v=!0):Zt(e)?(h=!0,v=e.some(w=>X1(w)||Wu(w)),c=()=>e.map(w=>{if(Uo(w))return w.value;if(X1(w))return u(w);if(Rn(w))return l?l(w,2):w()})):Rn(e)?t?c=l?()=>l(e,2):e:c=()=>{if(f){Yf();try{f()}finally{Qf()}}const w=wg;wg=d;try{return l?l(e,3,[p]):e(p)}finally{wg=w}}:c=bo,t&&o){const w=c,A=o===!0?1/0:o;c=()=>If(w(),A)}const g=L0e(),y=()=>{d.stop(),g&&g.active&&Dj(g.effects,d)};if(i&&t){const w=t;t=(...A)=>{w(...A),y()}}let m=h?new Array(e.length).fill(dx):dx;const b=w=>{if(!(!(d.flags&1)||!d.dirty&&!w))if(t){const A=d.run();if(o||v||(h?A.some((S,E)=>Mh(S,m[E])):Mh(A,m))){f&&f();const S=wg;wg=d;try{const E=[A,m===dx?void 0:h&&m[0]===dx?[]:m,p];m=A,l?l(t,3,E):t(...E)}finally{wg=S}}}else d.run()};return s&&s(b),d=new U0e(c),d.scheduler=a?()=>a(b,!1):b,p=w=>TTe(w,!1,d),f=d.onStop=()=>{const w=oE.get(d);if(w){if(l)l(w,4);else for(const A of w)A();oE.delete(d)}},t?r?b(!0):m=d.run():a?a(b.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function If(e,t=1/0,n){if(t<=0||!dr(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Uo(e))If(e.value,t,n);else if(Zt(e))for(let r=0;r<e.length;r++)If(e[r],t,n);else if(Tb(e)||Z1(e))e.forEach(r=>{If(r,t,n)});else if(N3(e)){for(const r in e)If(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&If(e[r],t,n)}return e}/**
- * @vue/runtime-core v3.5.18
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/function x5(e,t,n,r){try{return r?e(...r):e()}catch(o){P_(o,t,n)}}function zc(e,t,n,r){if(Rn(e)){const o=x5(e,t,n,r);return o&&kv(o)&&o.catch(i=>{P_(i,t,n)}),o}if(Zt(e)){const o=[];for(let i=0;i<e.length;i++)o.push(zc(e[i],t,n,r));return o}}function P_(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Ei;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let c=0;c<d.length;c++)if(d[c](e,l,u)===!1)return}s=s.parent}if(i){Yf(),x5(i,null,10,[e,l,u]),Qf();return}}DTe(e,n,o,r,a)}function DTe(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const ol=[];let fd=-1;const J1=[];let lh=null,D1=0;const nge=Promise.resolve();let iE=null;function Yt(e){const t=iE||nge;return e?t.then(this?e.bind(this):e):t}function ITe(e){let t=fd+1,n=ol.length;for(;t<n;){const r=t+n>>>1,o=ol[r],i=L3(o);i<e||i===e&&o.flags&2?t=r+1:n=r}return t}function Fj(e){if(!(e.flags&1)){const t=L3(e),n=ol[ol.length-1];!n||!(e.flags&2)&&t>=L3(n)?ol.push(e):ol.splice(ITe(t),0,e),e.flags|=1,rge()}}function rge(){iE||(iE=nge.then(ige))}function OTe(e){Zt(e)?J1.push(...e):lh&&e.id===-1?lh.splice(D1+1,0,e):e.flags&1||(J1.push(e),e.flags|=1),rge()}function jQ(e,t,n=fd+1){for(;n<ol.length;n++){const r=ol[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;ol.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function oge(e){if(J1.length){const t=[...new Set(J1)].sort((n,r)=>L3(n)-L3(r));if(J1.length=0,lh){lh.push(...t);return}for(lh=t,D1=0;D1<lh.length;D1++){const n=lh[D1];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}lh=null,D1=0}}const L3=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ige(e){try{for(fd=0;fd<ol.length;fd++){const t=ol[fd];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),x5(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;fd<ol.length;fd++){const t=ol[fd];t&&(t.flags&=-2)}fd=-1,ol.length=0,oge(),iE=null,(ol.length||J1.length)&&ige()}}let xs=null,age=null;function aE(e){const t=xs;return xs=e,age=e&&e.type.__scopeId||null,t}function rt(e,t=xs,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&nZ(-1);const i=aE(t);let a;try{a=e(...o)}finally{aE(i),r._d&&nZ(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function cn(e,t){if(xs===null)return e;const n=U_(xs),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,s,l=Ei]=t[o];i&&(Rn(i)&&(i={mounted:i,updated:i}),i.deep&&If(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function G0(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let l=s.dir[r];l&&(Yf(),zc(l,n,8,[e.el,s,e,t]),Qf())}}const sge=Symbol("_vte"),lge=e=>e.__isTeleport,V4=e=>e&&(e.disabled||e.disabled===""),HQ=e=>e&&(e.defer||e.defer===""),WQ=e=>typeof SVGElement<"u"&&e instanceof SVGElement,VQ=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,YB=(e,t)=>{const n=e&&e.to;return In(n)?t?t(n):null:n},uge={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,u){const{mc:d,pc:c,pbc:f,o:{insert:p,querySelector:v,createText:h,createComment:g}}=u,y=V4(t.props);let{shapeFlag:m,children:b,dynamicChildren:w}=t;if(e==null){const A=t.el=h(""),S=t.anchor=h("");p(A,n,r),p(S,n,r);const E=(_,M)=>{m&16&&(o&&o.isCE&&(o.ce._teleportTarget=_),d(b,_,M,o,i,a,s,l))},D=()=>{const _=t.target=YB(t.props,v),M=cge(_,t,h,p);_&&(a!=="svg"&&WQ(_)?a="svg":a!=="mathml"&&VQ(_)&&(a="mathml"),y||(E(_,M),hS(t,!1)))};y&&(E(n,S),hS(t,!0)),HQ(t.props)?(t.el.__isMounted=!1,rl(()=>{D(),delete t.el.__isMounted},i)):D()}else{if(HQ(t.props)&&e.el.__isMounted===!1){rl(()=>{uge.process(e,t,n,r,o,i,a,s,l,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const A=t.anchor=e.anchor,S=t.target=e.target,E=t.targetAnchor=e.targetAnchor,D=V4(e.props),_=D?n:S,M=D?A:E;if(a==="svg"||WQ(S)?a="svg":(a==="mathml"||VQ(S))&&(a="mathml"),w?(f(e.dynamicChildren,w,_,o,i,a,s),Vj(e,t,!0)):l||c(e,t,_,M,o,i,a,s,!1),y)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):fx(t,n,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=YB(t.props,v);O&&fx(t,O,null,u,0)}else D&&fx(t,S,E,u,1);hS(t,y)}},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:d,target:c,props:f}=e;if(c&&(o(u),o(d)),i&&o(l),a&16){const p=i||!V4(f);for(let v=0;v<s.length;v++){const h=s[v];r(h,t,n,p,!!h.dynamicChildren)}}},move:fx,hydrate:MTe};function fx(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:d}=e,c=i===2;if(c&&r(a,t,n),(!c||V4(d))&&l&16)for(let f=0;f<u.length;f++)o(u[f],t,n,2);c&&r(s,t,n)}function MTe(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:d}},c){const f=t.target=YB(t.props,l);if(f){const p=V4(t.props),v=f._lpa||f.firstChild;if(t.shapeFlag&16)if(p)t.anchor=c(a(e),t,s(e),n,r,o,i),t.targetStart=v,t.targetAnchor=v&&a(v);else{t.anchor=a(e);let h=v;for(;h;){if(h&&h.nodeType===8){if(h.data==="teleport start anchor")t.targetStart=h;else if(h.data==="teleport anchor"){t.targetAnchor=h,f._lpa=t.targetAnchor&&a(t.targetAnchor);break}}h=a(h)}t.targetAnchor||cge(f,t,d,u),c(v&&a(v),t,f,n,r,o,i)}hS(t,p)}return t.anchor&&a(t.anchor)}const QB=uge;function hS(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function cge(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[sge]=i,e&&(r(o,e),r(i,e)),i}const uh=Symbol("_leaveCb"),px=Symbol("_enterCb");function dge(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qn(()=>{e.isMounted=!0}),Jr(()=>{e.isUnmounting=!0}),e}const _u=[Function,Array],fge={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_u,onEnter:_u,onAfterEnter:_u,onEnterCancelled:_u,onBeforeLeave:_u,onLeave:_u,onAfterLeave:_u,onLeaveCancelled:_u,onBeforeAppear:_u,onAppear:_u,onAfterAppear:_u,onAppearCancelled:_u},pge=e=>{const t=e.subTree;return t.component?pge(t.component):t},PTe={name:"BaseTransition",props:fge,setup(e,{slots:t}){const n=br(),r=dge();return()=>{const o=t.default&&Uj(t.default(),!0);if(!o||!o.length)return;const i=hge(o),a=No(e),{mode:s}=a;if(r.isLeaving)return Z9(i);const l=qQ(i);if(!l)return Z9(i);let u=F3(l,a,r,n,c=>u=c);l.type!==da&&_v(l,u);let d=n.subTree&&qQ(n.subTree);if(d&&d.type!==da&&!_g(l,d)&&pge(n).type!==da){let c=F3(d,a,r,n);if(_v(d,c),s==="out-in"&&l.type!==da)return r.isLeaving=!0,c.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete c.afterLeave,d=void 0},Z9(i);s==="in-out"&&l.type!==da?c.delayLeave=(f,p,v)=>{const h=gge(r,d);h[String(d.key)]=d,f[uh]=()=>{p(),f[uh]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function hge(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==da){t=n;break}}return t}const NTe=PTe;function gge(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function F3(e,t,n,r,o){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:c,onBeforeLeave:f,onLeave:p,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:g,onAppear:y,onAfterAppear:m,onAppearCancelled:b}=t,w=String(e.key),A=gge(n,e),S=(_,M)=>{_&&zc(_,r,9,M)},E=(_,M)=>{const O=M[1];S(_,M),Zt(_)?_.every(k=>k.length<=1)&&O():_.length<=1&&O()},D={mode:a,persisted:s,beforeEnter(_){let M=l;if(!n.isMounted)if(i)M=g||l;else return;_[uh]&&_[uh](!0);const O=A[w];O&&_g(e,O)&&O.el[uh]&&O.el[uh](),S(M,[_])},enter(_){let M=u,O=d,k=c;if(!n.isMounted)if(i)M=y||u,O=m||d,k=b||c;else return;let R=!1;const N=_[px]=W=>{R||(R=!0,W?S(k,[_]):S(O,[_]),D.delayedLeave&&D.delayedLeave(),_[px]=void 0)};M?E(M,[_,N]):N()},leave(_,M){const O=String(e.key);if(_[px]&&_[px](!0),n.isUnmounting)return M();S(f,[_]);let k=!1;const R=_[uh]=N=>{k||(k=!0,M(),N?S(h,[_]):S(v,[_]),_[uh]=void 0,A[O]===e&&delete A[O])};A[O]=e,p?E(p,[_,R]):R()},clone(_){const M=F3(_,t,n,r,o);return o&&o(M),M}};return D}function Z9(e){if(N_(e))return e=Zf(e),e.children=null,e}function qQ(e){if(!N_(e))return lge(e.type)&&e.children?hge(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Rn(n.default))return n.default()}}function _v(e,t){e.shapeFlag&6&&e.component?(e.transition=t,_v(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Uj(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Rt?(a.patchFlag&128&&o++,r=r.concat(Uj(a.children,t,s))):(t||a.type!==da)&&r.push(s!=null?Zf(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function nt(e,t){return Rn(e)?es({name:e.name},t,{setup:e}):e}function vge(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function q4(e,t,n,r,o=!1){if(Zt(e)){e.forEach((v,h)=>q4(v,t&&(Zt(t)?t[h]:t),n,r,o));return}if(ey(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&q4(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?U_(r.component):r.el,a=o?null:i,{i:s,r:l}=e,u=t&&t.r,d=s.refs===Ei?s.refs={}:s.refs,c=s.setupState,f=No(c),p=c===Ei?()=>!1:v=>no(f,v);if(u!=null&&u!==l&&(In(u)?(d[u]=null,p(u)&&(c[u]=null)):Uo(u)&&(u.value=null)),Rn(l))x5(l,s,12,[a,d]);else{const v=In(l),h=Uo(l);if(v||h){const g=()=>{if(e.f){const y=v?p(l)?c[l]:d[l]:l.value;o?Zt(y)&&Dj(y,i):Zt(y)?y.includes(i)||y.push(i):v?(d[l]=[i],p(l)&&(c[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else v?(d[l]=a,p(l)&&(c[l]=a)):h&&(l.value=a,e.k&&(d[e.k]=a))};a?(g.id=-1,rl(g,n)):g()}}}D_().requestIdleCallback;D_().cancelIdleCallback;const ey=e=>!!e.type.__asyncLoader,N_=e=>e.type.__isKeepAlive;function Db(e,t){yge(e,"a",t)}function mge(e,t){yge(e,"da",t)}function yge(e,t,n=zs){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(R_(t,r,n),n){let o=n.parent;for(;o&&o.parent;)N_(o.parent.vnode)&&RTe(r,t,n,o),o=o.parent}}function RTe(e,t,n,r){const o=R_(t,e,r,!0);yl(()=>{Dj(r[t],o)},n)}function R_(e,t,n=zs,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Yf();const s=S5(n),l=zc(t,n,e,a);return s(),Qf(),l});return r?o.unshift(i):o.push(i),i}}const mp=e=>(t,n=zs)=>{(!z3||e==="sp")&&R_(e,(...r)=>t(...r),n)},B_=mp("bm"),qn=mp("m"),zj=mp("bu"),Qc=mp("u"),Jr=mp("bum"),yl=mp("um"),BTe=mp("sp"),LTe=mp("rtg"),FTe=mp("rtc");function UTe(e,t=zs){R_("ec",e,t)}const $j="components",zTe="directives";function hr(e,t){return jj($j,e,!0,t)||e}const bge=Symbol.for("v-ndc");function mr(e){return In(e)?jj($j,e,!1)||e:e||bge}function L_(e){return jj(zTe,e)}function jj(e,t,n=!0,r=!1){const o=xs||zs;if(o){const i=o.type;if(e===$j){const s=S_e(i,!1);if(s&&(s===t||s===dl(t)||s===C5(dl(t))))return i}const a=GQ(o[e]||i[e],t)||GQ(o.appContext[e],t);return!a&&r?i:a}}function GQ(e,t){return e&&(e[t]||e[dl(t)]||e[C5(dl(t))])}function un(e,t,n,r){let o;const i=n,a=Zt(e);if(a||In(e)){const s=a&&X1(e);let l=!1,u=!1;s&&(l=!Wu(e),u=r0(e),e=O_(e)),o=new Array(e.length);for(let d=0,c=e.length;d<c;d++)o[d]=t(l?u?rE(As(e[d])):As(e[d]):e[d],d,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let s=0;s<e;s++)o[s]=t(s+1,s,void 0,i)}else if(dr(e))if(e[Symbol.iterator])o=Array.from(e,(s,l)=>t(s,l,void 0,i));else{const s=Object.keys(e);o=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const d=s[l];o[l]=t(e[d],d,l,i)}}else o=[];return o}function Hl(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Zt(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function ht(e,t,n={},r,o){if(xs.ce||xs.parent&&ey(xs.parent)&&xs.parent.ce)return t!=="default"&&(n.name=t),L(),yt(Rt,null,[He("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),L();const a=i&&wge(i(n)),s=n.key||a&&a.key,l=yt(Rt,{key:(s&&!Uc(s)?s:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function wge(e){return e.some(t=>Vo(t)?!(t.type===da||t.type===Rt&&!wge(t.children)):!0)?e:null}function $Te(e,t){const n={};for(const r in e)n[j4(r)]=e[r];return n}const ZB=e=>e?Uge(e)?U_(e):ZB(e.parent):null,G4=es(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ZB(e.parent),$root:e=>ZB(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xge(e),$forceUpdate:e=>e.f||(e.f=()=>{Fj(e.update)}),$nextTick:e=>e.n||(e.n=Yt.bind(e.proxy)),$watch:e=>l_e.bind(e)}),X9=(e,t)=>e!==Ei&&!e.__isScriptSetup&&no(e,t),jTe={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(X9(r,t))return a[t]=1,r[t];if(o!==Ei&&no(o,t))return a[t]=2,o[t];if((u=e.propsOptions[0])&&no(u,t))return a[t]=3,i[t];if(n!==Ei&&no(n,t))return a[t]=4,n[t];XB&&(a[t]=0)}}const d=G4[t];let c,f;if(d)return t==="$attrs"&&Fs(e.attrs,"get",""),d(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(n!==Ei&&no(n,t))return a[t]=4,n[t];if(f=l.config.globalProperties,no(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return X9(o,t)?(o[t]=n,!0):r!==Ei&&no(r,t)?(r[t]=n,!0):no(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==Ei&&no(e,a)||X9(t,a)||(s=i[0])&&no(s,a)||no(r,a)||no(G4,a)||no(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:no(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ga(){return Age().slots}function yp(){return Age().attrs}function Age(e){const t=br();return t.setupContext||(t.setupContext=$ge(t))}function KQ(e){return Zt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let XB=!0;function HTe(e){const t=xge(e),n=e.proxy,r=e.ctx;XB=!1,t.beforeCreate&&YQ(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:l,inject:u,created:d,beforeMount:c,mounted:f,beforeUpdate:p,updated:v,activated:h,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:b,unmounted:w,render:A,renderTracked:S,renderTriggered:E,errorCaptured:D,serverPrefetch:_,expose:M,inheritAttrs:O,components:k,directives:R,filters:N}=t;if(u&&WTe(u,r,null),a)for(const z in a){const j=a[z];Rn(j)&&(r[z]=j.bind(n))}if(o){const z=o.call(n,n);dr(z)&&(e.data=Wr(z))}if(XB=!0,i)for(const z in i){const j=i[z],q=Rn(j)?j.bind(n,n):Rn(j.get)?j.get.bind(n,n):bo,Y=!Rn(j)&&Rn(j.set)?j.set.bind(n):bo,U=ee({get:q,set:Y});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>U.value,set:F=>U.value=F})}if(s)for(const z in s)Cge(s[z],r,n,z);if(l){const z=Rn(l)?l.call(n):l;Reflect.ownKeys(z).forEach(j=>{_r(j,z[j])})}d&&YQ(d,e,"c");function B(z,j){Zt(j)?j.forEach(q=>z(q.bind(n))):j&&z(j.bind(n))}if(B(B_,c),B(qn,f),B(zj,p),B(Qc,v),B(Db,h),B(mge,g),B(UTe,D),B(FTe,S),B(LTe,E),B(Jr,m),B(yl,w),B(BTe,_),Zt(M))if(M.length){const z=e.exposed||(e.exposed={});M.forEach(j=>{Object.defineProperty(z,j,{get:()=>n[j],set:q=>n[j]=q,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===bo&&(e.render=A),O!=null&&(e.inheritAttrs=O),k&&(e.components=k),R&&(e.directives=R),_&&vge(e)}function WTe(e,t,n=bo){Zt(e)&&(e=JB(e));for(const r in e){const o=e[r];let i;dr(o)?"default"in o?i=dn(o.from||r,o.default,!0):i=dn(o.from||r):i=dn(o),Uo(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function YQ(e,t,n){zc(Zt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cge(e,t,n,r){let o=r.includes(".")?Nge(n,r):()=>n[r];if(In(e)){const i=t[e];Rn(i)&&St(o,i)}else if(Rn(e))St(o,e.bind(n));else if(dr(e))if(Zt(e))e.forEach(i=>Cge(i,t,n,r));else{const i=Rn(e.handler)?e.handler.bind(n):t[e.handler];Rn(i)&&St(o,i,e)}}function xge(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>sE(l,u,a,!0)),sE(l,t,a)),dr(t)&&i.set(t,l),l}function sE(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&sE(e,i,n,!0),o&&o.forEach(a=>sE(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=VTe[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const VTe={data:QQ,props:ZQ,emits:ZQ,methods:A4,computed:A4,beforeCreate:nl,created:nl,beforeMount:nl,mounted:nl,beforeUpdate:nl,updated:nl,beforeDestroy:nl,beforeUnmount:nl,destroyed:nl,unmounted:nl,activated:nl,deactivated:nl,errorCaptured:nl,serverPrefetch:nl,components:A4,directives:A4,watch:GTe,provide:QQ,inject:qTe};function QQ(e,t){return t?e?function(){return es(Rn(e)?e.call(this,this):e,Rn(t)?t.call(this,this):t)}:t:e}function qTe(e,t){return A4(JB(e),JB(t))}function JB(e){if(Zt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function nl(e,t){return e?[...new Set([].concat(e,t))]:t}function A4(e,t){return e?es(Object.create(null),e,t):t}function ZQ(e,t){return e?Zt(e)&&Zt(t)?[...new Set([...e,...t])]:es(Object.create(null),KQ(e),KQ(t??{})):t}function GTe(e,t){if(!e)return t;if(!t)return e;const n=es(Object.create(null),e);for(const r in t)n[r]=nl(e[r],t[r]);return n}function Sge(){return{app:null,config:{isNativeTag:$ke,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 KTe=0;function YTe(e,t){return function(r,o=null){Rn(r)||(r=es({},r)),o!=null&&!dr(o)&&(o=null);const i=Sge(),a=new WeakSet,s=[];let l=!1;const u=i.app={_uid:KTe++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:k_e,get config(){return i.config},set config(d){},use(d,...c){return a.has(d)||(d&&Rn(d.install)?(a.add(d),d.install(u,...c)):Rn(d)&&(a.add(d),d(u,...c))),u},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),u},component(d,c){return c?(i.components[d]=c,u):i.components[d]},directive(d,c){return c?(i.directives[d]=c,u):i.directives[d]},mount(d,c,f){if(!l){const p=u._ceVNode||He(r,o);return p.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),e(p,d,f),l=!0,u._container=d,d.__vue_app__=u,U_(p.component)}},onUnmount(d){s.push(d)},unmount(){l&&(zc(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(d,c){return i.provides[d]=c,u},runWithContext(d){const c=ty;ty=u;try{return d()}finally{ty=c}}};return u}}let ty=null;function _r(e,t){if(zs){let n=zs.provides;const r=zs.parent&&zs.parent.provides;r===n&&(n=zs.provides=Object.create(r)),n[e]=t}}function dn(e,t,n=!1){const r=br();if(r||ty){let o=ty?ty._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Rn(t)?t.call(r&&r.proxy):t}}const Ege={},kge=()=>Object.create(Ege),Tge=e=>Object.getPrototypeOf(e)===Ege;function QTe(e,t,n,r=!1){const o={},i=kge();e.propsDefaults=Object.create(null),_ge(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:M_(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function ZTe(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=No(o),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let c=0;c<d.length;c++){let f=d[c];if(F_(e.emitsOptions,f))continue;const p=t[f];if(l)if(no(i,f))p!==i[f]&&(i[f]=p,u=!0);else{const v=dl(f);o[v]=eL(l,s,v,p,e,!1)}else p!==i[f]&&(i[f]=p,u=!0)}}}else{_ge(e,t,o,i)&&(u=!0);let d;for(const c in s)(!t||!no(t,c)&&((d=vp(c))===c||!no(t,d)))&&(l?n&&(n[c]!==void 0||n[d]!==void 0)&&(o[c]=eL(l,s,c,void 0,e,!0)):delete o[c]);if(i!==s)for(const c in i)(!t||!no(t,c))&&(delete i[c],u=!0)}u&&Df(e.attrs,"set","")}function _ge(e,t,n,r){const[o,i]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if($4(l))continue;const u=t[l];let d;o&&no(o,d=dl(l))?!i||!i.includes(d)?n[d]=u:(s||(s={}))[d]=u:F_(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(i){const l=No(n),u=s||Ei;for(let d=0;d<i.length;d++){const c=i[d];n[c]=eL(o,l,c,u[c],e,!no(u,c))}}return a}function eL(e,t,n,r,o,i){const a=e[n];if(a!=null){const s=no(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Rn(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const d=S5(o);r=u[n]=l.call(null,t),d()}}else r=l;o.ce&&o.ce._setProp(n,r)}a[0]&&(i&&!s?r=!1:a[1]&&(r===""||r===vp(n))&&(r=!0))}return r}const XTe=new WeakMap;function Dge(e,t,n=!1){const r=n?XTe:t.propsCache,o=r.get(e);if(o)return o;const i=e.props,a={},s=[];let l=!1;if(!Rn(e)){const d=c=>{l=!0;const[f,p]=Dge(c,t,!0);es(a,f),p&&s.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!l)return dr(e)&&r.set(e,Q1),Q1;if(Zt(i))for(let d=0;d<i.length;d++){const c=dl(i[d]);XQ(c)&&(a[c]=Ei)}else if(i)for(const d in i){const c=dl(d);if(XQ(c)){const f=i[d],p=a[c]=Zt(f)||Rn(f)?{type:f}:es({},f),v=p.type;let h=!1,g=!0;if(Zt(v))for(let y=0;y<v.length;++y){const m=v[y],b=Rn(m)&&m.name;if(b==="Boolean"){h=!0;break}else b==="String"&&(g=!1)}else h=Rn(v)&&v.name==="Boolean";p[0]=h,p[1]=g,(h||no(p,"default"))&&s.push(c)}}const u=[a,s];return dr(e)&&r.set(e,u),u}function XQ(e){return e[0]!=="$"&&!$4(e)}const Hj=e=>e==="_"||e==="__"||e==="_ctx"||e==="$stable",Wj=e=>Zt(e)?e.map(vd):[vd(e)],JTe=(e,t,n)=>{if(t._n)return t;const r=rt((...o)=>Wj(t(...o)),n);return r._c=!1,r},Ige=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Hj(o))continue;const i=e[o];if(Rn(i))t[o]=JTe(o,i,r);else if(i!=null){const a=Wj(i);t[o]=()=>a}}},Oge=(e,t)=>{const n=Wj(t);e.slots.default=()=>n},Mge=(e,t,n)=>{for(const r in t)(n||!Hj(r))&&(e[r]=t[r])},e_e=(e,t,n)=>{const r=e.slots=kge();if(e.vnode.shapeFlag&32){const o=t.__;o&&VB(r,"__",o,!0);const i=t._;i?(Mge(r,t,n),n&&VB(r,"_",i,!0)):Ige(t,r)}else t&&Oge(e,t)},t_e=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Ei;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:Mge(o,t,n):(i=!t.$stable,Ige(t,o)),a=t}else t&&(Oge(e,t),a={default:1});if(i)for(const s in o)!Hj(s)&&a[s]==null&&delete o[s]},rl=g_e;function n_e(e){return r_e(e)}function r_e(e,t){const n=D_();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:u,setElementText:d,parentNode:c,nextSibling:f,setScopeId:p=bo,insertStaticContent:v}=e,h=(he,Ee,Q,me=null,De=null,pe=null,ie=void 0,ue=null,Be=!!Ee.dynamicChildren)=>{if(he===Ee)return;he&&!_g(he,Ee)&&(me=Z(he),F(he,De,pe,!0),he=null),Ee.patchFlag===-2&&(Be=!1,Ee.dynamicChildren=null);const{type:Me,ref:Fe,shapeFlag:ze}=Ee;switch(Me){case Ib:g(he,Ee,Q,me);break;case da:y(he,Ee,Q,me);break;case gS:he==null&&m(Ee,Q,me,ie);break;case Rt:k(he,Ee,Q,me,De,pe,ie,ue,Be);break;default:ze&1?A(he,Ee,Q,me,De,pe,ie,ue,Be):ze&6?R(he,Ee,Q,me,De,pe,ie,ue,Be):(ze&64||ze&128)&&Me.process(he,Ee,Q,me,De,pe,ie,ue,Be,Pe)}Fe!=null&&De?q4(Fe,he&&he.ref,pe,Ee||he,!Ee):Fe==null&&he&&he.ref!=null&&q4(he.ref,null,pe,he,!0)},g=(he,Ee,Q,me)=>{if(he==null)r(Ee.el=s(Ee.children),Q,me);else{const De=Ee.el=he.el;Ee.children!==he.children&&u(De,Ee.children)}},y=(he,Ee,Q,me)=>{he==null?r(Ee.el=l(Ee.children||""),Q,me):Ee.el=he.el},m=(he,Ee,Q,me)=>{[he.el,he.anchor]=v(he.children,Ee,Q,me,he.el,he.anchor)},b=({el:he,anchor:Ee},Q,me)=>{let De;for(;he&&he!==Ee;)De=f(he),r(he,Q,me),he=De;r(Ee,Q,me)},w=({el:he,anchor:Ee})=>{let Q;for(;he&&he!==Ee;)Q=f(he),o(he),he=Q;o(Ee)},A=(he,Ee,Q,me,De,pe,ie,ue,Be)=>{Ee.type==="svg"?ie="svg":Ee.type==="math"&&(ie="mathml"),he==null?S(Ee,Q,me,De,pe,ie,ue,Be):_(he,Ee,De,pe,ie,ue,Be)},S=(he,Ee,Q,me,De,pe,ie,ue)=>{let Be,Me;const{props:Fe,shapeFlag:ze,transition:Ne,dirs:Re}=he;if(Be=he.el=a(he.type,pe,Fe&&Fe.is,Fe),ze&8?d(Be,he.children):ze&16&&D(he.children,Be,null,me,De,J9(he,pe),ie,ue),Re&&G0(he,null,me,"created"),E(Be,he,he.scopeId,ie,me),Fe){for(const Bt in Fe)Bt!=="value"&&!$4(Bt)&&i(Be,Bt,null,Fe[Bt],pe,me);"value"in Fe&&i(Be,"value",null,Fe.value,pe),(Me=Fe.onVnodeBeforeMount)&&id(Me,me,he)}Re&&G0(he,null,me,"beforeMount");const gt=o_e(De,Ne);gt&&Ne.beforeEnter(Be),r(Be,Ee,Q),((Me=Fe&&Fe.onVnodeMounted)||gt||Re)&&rl(()=>{Me&&id(Me,me,he),gt&&Ne.enter(Be),Re&&G0(he,null,me,"mounted")},De)},E=(he,Ee,Q,me,De)=>{if(Q&&p(he,Q),me)for(let pe=0;pe<me.length;pe++)p(he,me[pe]);if(De){let pe=De.subTree;if(Ee===pe||Bge(pe.type)&&(pe.ssContent===Ee||pe.ssFallback===Ee)){const ie=De.vnode;E(he,ie,ie.scopeId,ie.slotScopeIds,De.parent)}}},D=(he,Ee,Q,me,De,pe,ie,ue,Be=0)=>{for(let Me=Be;Me<he.length;Me++){const Fe=he[Me]=ue?ch(he[Me]):vd(he[Me]);h(null,Fe,Ee,Q,me,De,pe,ie,ue)}},_=(he,Ee,Q,me,De,pe,ie)=>{const ue=Ee.el=he.el;let{patchFlag:Be,dynamicChildren:Me,dirs:Fe}=Ee;Be|=he.patchFlag&16;const ze=he.props||Ei,Ne=Ee.props||Ei;let Re;if(Q&&K0(Q,!1),(Re=Ne.onVnodeBeforeUpdate)&&id(Re,Q,Ee,he),Fe&&G0(Ee,he,Q,"beforeUpdate"),Q&&K0(Q,!0),(ze.innerHTML&&Ne.innerHTML==null||ze.textContent&&Ne.textContent==null)&&d(ue,""),Me?M(he.dynamicChildren,Me,ue,Q,me,J9(Ee,De),pe):ie||j(he,Ee,ue,null,Q,me,J9(Ee,De),pe,!1),Be>0){if(Be&16)O(ue,ze,Ne,Q,De);else if(Be&2&&ze.class!==Ne.class&&i(ue,"class",null,Ne.class,De),Be&4&&i(ue,"style",ze.style,Ne.style,De),Be&8){const gt=Ee.dynamicProps;for(let Bt=0;Bt<gt.length;Bt++){const Lt=gt[Bt],an=ze[Lt],Kt=Ne[Lt];(Kt!==an||Lt==="value")&&i(ue,Lt,an,Kt,De,Q)}}Be&1&&he.children!==Ee.children&&d(ue,Ee.children)}else!ie&&Me==null&&O(ue,ze,Ne,Q,De);((Re=Ne.onVnodeUpdated)||Fe)&&rl(()=>{Re&&id(Re,Q,Ee,he),Fe&&G0(Ee,he,Q,"updated")},me)},M=(he,Ee,Q,me,De,pe,ie)=>{for(let ue=0;ue<Ee.length;ue++){const Be=he[ue],Me=Ee[ue],Fe=Be.el&&(Be.type===Rt||!_g(Be,Me)||Be.shapeFlag&198)?c(Be.el):Q;h(Be,Me,Fe,null,me,De,pe,ie,!0)}},O=(he,Ee,Q,me,De)=>{if(Ee!==Q){if(Ee!==Ei)for(const pe in Ee)!$4(pe)&&!(pe in Q)&&i(he,pe,Ee[pe],null,De,me);for(const pe in Q){if($4(pe))continue;const ie=Q[pe],ue=Ee[pe];ie!==ue&&pe!=="value"&&i(he,pe,ue,ie,De,me)}"value"in Q&&i(he,"value",Ee.value,Q.value,De)}},k=(he,Ee,Q,me,De,pe,ie,ue,Be)=>{const Me=Ee.el=he?he.el:s(""),Fe=Ee.anchor=he?he.anchor:s("");let{patchFlag:ze,dynamicChildren:Ne,slotScopeIds:Re}=Ee;Re&&(ue=ue?ue.concat(Re):Re),he==null?(r(Me,Q,me),r(Fe,Q,me),D(Ee.children||[],Q,Fe,De,pe,ie,ue,Be)):ze>0&&ze&64&&Ne&&he.dynamicChildren?(M(he.dynamicChildren,Ne,Q,De,pe,ie,ue),(Ee.key!=null||De&&Ee===De.subTree)&&Vj(he,Ee,!0)):j(he,Ee,Q,Fe,De,pe,ie,ue,Be)},R=(he,Ee,Q,me,De,pe,ie,ue,Be)=>{Ee.slotScopeIds=ue,he==null?Ee.shapeFlag&512?De.ctx.activate(Ee,Q,me,ie,Be):N(Ee,Q,me,De,pe,ie,Be):W(he,Ee,Be)},N=(he,Ee,Q,me,De,pe,ie)=>{const ue=he.component=w_e(he,me,De);if(N_(he)&&(ue.ctx.renderer=Pe),A_e(ue,!1,ie),ue.asyncDep){if(De&&De.registerDep(ue,B,ie),!he.el){const Be=ue.subTree=He(da);y(null,Be,Ee,Q),he.placeholder=Be.el}}else B(ue,he,Ee,Q,De,pe,ie)},W=(he,Ee,Q)=>{const me=Ee.component=he.component;if(p_e(he,Ee,Q))if(me.asyncDep&&!me.asyncResolved){z(me,Ee,Q);return}else me.next=Ee,me.update();else Ee.el=he.el,me.vnode=Ee},B=(he,Ee,Q,me,De,pe,ie)=>{const ue=()=>{if(he.isMounted){let{next:ze,bu:Ne,u:Re,parent:gt,vnode:Bt}=he;{const pt=Pge(he);if(pt){ze&&(ze.el=Bt.el,z(he,ze,ie)),pt.asyncDep.then(()=>{he.isUnmounted||ue()});return}}let Lt=ze,an;K0(he,!1),ze?(ze.el=Bt.el,z(he,ze,ie)):ze=Bt,Ne&&fS(Ne),(an=ze.props&&ze.props.onVnodeBeforeUpdate)&&id(an,gt,ze,Bt),K0(he,!0);const Kt=eZ(he),Ht=he.subTree;he.subTree=Kt,h(Ht,Kt,c(Ht.el),Z(Ht),he,De,pe),ze.el=Kt.el,Lt===null&&h_e(he,Kt.el),Re&&rl(Re,De),(an=ze.props&&ze.props.onVnodeUpdated)&&rl(()=>id(an,gt,ze,Bt),De)}else{let ze;const{el:Ne,props:Re}=Ee,{bm:gt,m:Bt,parent:Lt,root:an,type:Kt}=he,Ht=ey(Ee);K0(he,!1),gt&&fS(gt),!Ht&&(ze=Re&&Re.onVnodeBeforeMount)&&id(ze,Lt,Ee),K0(he,!0);{an.ce&&an.ce._def.shadowRoot!==!1&&an.ce._injectChildStyle(Kt);const pt=he.subTree=eZ(he);h(null,pt,Q,me,he,De,pe),Ee.el=pt.el}if(Bt&&rl(Bt,De),!Ht&&(ze=Re&&Re.onVnodeMounted)){const pt=Ee;rl(()=>id(ze,Lt,pt),De)}(Ee.shapeFlag&256||Lt&&ey(Lt.vnode)&&Lt.vnode.shapeFlag&256)&&he.a&&rl(he.a,De),he.isMounted=!0,Ee=Q=me=null}};he.scope.on();const Be=he.effect=new U0e(ue);he.scope.off();const Me=he.update=Be.run.bind(Be),Fe=he.job=Be.runIfDirty.bind(Be);Fe.i=he,Fe.id=he.uid,Be.scheduler=()=>Fj(Fe),K0(he,!0),Me()},z=(he,Ee,Q)=>{Ee.component=he;const me=he.vnode.props;he.vnode=Ee,he.next=null,ZTe(he,Ee.props,me,Q),t_e(he,Ee.children,Q),Yf(),jQ(he),Qf()},j=(he,Ee,Q,me,De,pe,ie,ue,Be=!1)=>{const Me=he&&he.children,Fe=he?he.shapeFlag:0,ze=Ee.children,{patchFlag:Ne,shapeFlag:Re}=Ee;if(Ne>0){if(Ne&128){Y(Me,ze,Q,me,De,pe,ie,ue,Be);return}else if(Ne&256){q(Me,ze,Q,me,De,pe,ie,ue,Be);return}}Re&8?(Fe&16&&te(Me,De,pe),ze!==Me&&d(Q,ze)):Fe&16?Re&16?Y(Me,ze,Q,me,De,pe,ie,ue,Be):te(Me,De,pe,!0):(Fe&8&&d(Q,""),Re&16&&D(ze,Q,me,De,pe,ie,ue,Be))},q=(he,Ee,Q,me,De,pe,ie,ue,Be)=>{he=he||Q1,Ee=Ee||Q1;const Me=he.length,Fe=Ee.length,ze=Math.min(Me,Fe);let Ne;for(Ne=0;Ne<ze;Ne++){const Re=Ee[Ne]=Be?ch(Ee[Ne]):vd(Ee[Ne]);h(he[Ne],Re,Q,null,De,pe,ie,ue,Be)}Me>Fe?te(he,De,pe,!0,!1,ze):D(Ee,Q,me,De,pe,ie,ue,Be,ze)},Y=(he,Ee,Q,me,De,pe,ie,ue,Be)=>{let Me=0;const Fe=Ee.length;let ze=he.length-1,Ne=Fe-1;for(;Me<=ze&&Me<=Ne;){const Re=he[Me],gt=Ee[Me]=Be?ch(Ee[Me]):vd(Ee[Me]);if(_g(Re,gt))h(Re,gt,Q,null,De,pe,ie,ue,Be);else break;Me++}for(;Me<=ze&&Me<=Ne;){const Re=he[ze],gt=Ee[Ne]=Be?ch(Ee[Ne]):vd(Ee[Ne]);if(_g(Re,gt))h(Re,gt,Q,null,De,pe,ie,ue,Be);else break;ze--,Ne--}if(Me>ze){if(Me<=Ne){const Re=Ne+1,gt=Re<Fe?Ee[Re].el:me;for(;Me<=Ne;)h(null,Ee[Me]=Be?ch(Ee[Me]):vd(Ee[Me]),Q,gt,De,pe,ie,ue,Be),Me++}}else if(Me>Ne)for(;Me<=ze;)F(he[Me],De,pe,!0),Me++;else{const Re=Me,gt=Me,Bt=new Map;for(Me=gt;Me<=Ne;Me++){const it=Ee[Me]=Be?ch(Ee[Me]):vd(Ee[Me]);it.key!=null&&Bt.set(it.key,Me)}let Lt,an=0;const Kt=Ne-gt+1;let Ht=!1,pt=0;const Dt=new Array(Kt);for(Me=0;Me<Kt;Me++)Dt[Me]=0;for(Me=Re;Me<=ze;Me++){const it=he[Me];if(an>=Kt){F(it,De,pe,!0);continue}let de;if(it.key!=null)de=Bt.get(it.key);else for(Lt=gt;Lt<=Ne;Lt++)if(Dt[Lt-gt]===0&&_g(it,Ee[Lt])){de=Lt;break}de===void 0?F(it,De,pe,!0):(Dt[de-gt]=Me+1,de>=pt?pt=de:Ht=!0,h(it,Ee[de],Q,null,De,pe,ie,ue,Be),an++)}const dt=Ht?i_e(Dt):Q1;for(Lt=dt.length-1,Me=Kt-1;Me>=0;Me--){const it=gt+Me,de=Ee[it],tt=Ee[it+1],ft=it+1<Fe?tt.el||tt.placeholder:me;Dt[Me]===0?h(null,de,Q,ft,De,pe,ie,ue,Be):Ht&&(Lt<0||Me!==dt[Lt]?U(de,Q,ft,2):Lt--)}}},U=(he,Ee,Q,me,De=null)=>{const{el:pe,type:ie,transition:ue,children:Be,shapeFlag:Me}=he;if(Me&6){U(he.component.subTree,Ee,Q,me);return}if(Me&128){he.suspense.move(Ee,Q,me);return}if(Me&64){ie.move(he,Ee,Q,Pe);return}if(ie===Rt){r(pe,Ee,Q);for(let ze=0;ze<Be.length;ze++)U(Be[ze],Ee,Q,me);r(he.anchor,Ee,Q);return}if(ie===gS){b(he,Ee,Q);return}if(me!==2&&Me&1&&ue)if(me===0)ue.beforeEnter(pe),r(pe,Ee,Q),rl(()=>ue.enter(pe),De);else{const{leave:ze,delayLeave:Ne,afterLeave:Re}=ue,gt=()=>{he.ctx.isUnmounted?o(pe):r(pe,Ee,Q)},Bt=()=>{ze(pe,()=>{gt(),Re&&Re()})};Ne?Ne(pe,gt,Bt):Bt()}else r(pe,Ee,Q)},F=(he,Ee,Q,me=!1,De=!1)=>{const{type:pe,props:ie,ref:ue,children:Be,dynamicChildren:Me,shapeFlag:Fe,patchFlag:ze,dirs:Ne,cacheIndex:Re}=he;if(ze===-2&&(De=!1),ue!=null&&(Yf(),q4(ue,null,Q,he,!0),Qf()),Re!=null&&(Ee.renderCache[Re]=void 0),Fe&256){Ee.ctx.deactivate(he);return}const gt=Fe&1&&Ne,Bt=!ey(he);let Lt;if(Bt&&(Lt=ie&&ie.onVnodeBeforeUnmount)&&id(Lt,Ee,he),Fe&6)X(he.component,Q,me);else{if(Fe&128){he.suspense.unmount(Q,me);return}gt&&G0(he,null,Ee,"beforeUnmount"),Fe&64?he.type.remove(he,Ee,Q,Pe,me):Me&&!Me.hasOnce&&(pe!==Rt||ze>0&&ze&64)?te(Me,Ee,Q,!1,!0):(pe===Rt&&ze&384||!De&&Fe&16)&&te(Be,Ee,Q),me&&H(he)}(Bt&&(Lt=ie&&ie.onVnodeUnmounted)||gt)&&rl(()=>{Lt&&id(Lt,Ee,he),gt&&G0(he,null,Ee,"unmounted")},Q)},H=he=>{const{type:Ee,el:Q,anchor:me,transition:De}=he;if(Ee===Rt){re(Q,me);return}if(Ee===gS){w(he);return}const pe=()=>{o(Q),De&&!De.persisted&&De.afterLeave&&De.afterLeave()};if(he.shapeFlag&1&&De&&!De.persisted){const{leave:ie,delayLeave:ue}=De,Be=()=>ie(Q,pe);ue?ue(he.el,pe,Be):Be()}else pe()},re=(he,Ee)=>{let Q;for(;he!==Ee;)Q=f(he),o(he),he=Q;o(Ee)},X=(he,Ee,Q)=>{const{bum:me,scope:De,job:pe,subTree:ie,um:ue,m:Be,a:Me,parent:Fe,slots:{__:ze}}=he;JQ(Be),JQ(Me),me&&fS(me),Fe&&Zt(ze)&&ze.forEach(Ne=>{Fe.renderCache[Ne]=void 0}),De.stop(),pe&&(pe.flags|=8,F(ie,he,Ee,Q)),ue&&rl(ue,Ee),rl(()=>{he.isUnmounted=!0},Ee),Ee&&Ee.pendingBranch&&!Ee.isUnmounted&&he.asyncDep&&!he.asyncResolved&&he.suspenseId===Ee.pendingId&&(Ee.deps--,Ee.deps===0&&Ee.resolve())},te=(he,Ee,Q,me=!1,De=!1,pe=0)=>{for(let ie=pe;ie<he.length;ie++)F(he[ie],Ee,Q,me,De)},Z=he=>{if(he.shapeFlag&6)return Z(he.component.subTree);if(he.shapeFlag&128)return he.suspense.next();const Ee=f(he.anchor||he.el),Q=Ee&&Ee[sge];return Q?f(Q):Ee};let le=!1;const ve=(he,Ee,Q)=>{he==null?Ee._vnode&&F(Ee._vnode,null,null,!0):h(Ee._vnode||null,he,Ee,null,null,null,Q),Ee._vnode=he,le||(le=!0,jQ(),oge(),le=!1)},Pe={p:h,um:F,m:U,r:H,mt:N,mc:D,pc:j,pbc:M,n:Z,o:e};return{render:ve,hydrate:void 0,createApp:YTe(ve)}}function J9({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function K0({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function o_e(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vj(e,t,n=!1){const r=e.children,o=t.children;if(Zt(r)&&Zt(o))for(let i=0;i<r.length;i++){const a=r[i];let s=o[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=o[i]=ch(o[i]),s.el=a.el),!n&&s.patchFlag!==-2&&Vj(a,s)),s.type===Ib&&(s.el=a.el),s.type===da&&!s.el&&(s.el=a.el)}}function i_e(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<u?i=s+1:a=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Pge(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Pge(t)}function JQ(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const a_e=Symbol.for("v-scx"),s_e=()=>dn(a_e);function Es(e,t){return qj(e,null,t)}function St(e,t,n){return qj(e,t,n)}function qj(e,t,n=Ei){const{immediate:r,deep:o,flush:i,once:a}=n,s=es({},n),l=t&&r||!t&&i!=="post";let u;if(z3){if(i==="sync"){const p=s_e();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=bo,p.resume=bo,p.pause=bo,p}}const d=zs;s.call=(p,v,h)=>zc(p,d,v,h);let c=!1;i==="post"?s.scheduler=p=>{rl(p,d&&d.suspense)}:i!=="sync"&&(c=!0,s.scheduler=(p,v)=>{v?p():Fj(p)}),s.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const f=_Te(e,t,s);return z3&&(u?u.push(f):l&&f()),f}function l_e(e,t,n){const r=this.proxy,o=In(e)?e.includes(".")?Nge(r,e):()=>r[e]:e.bind(r,r);let i;Rn(t)?i=t:(i=t.handler,n=t);const a=S5(this),s=qj(o,i.bind(r),n);return a(),s}function Nge(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const u_e=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${dl(t)}Modifiers`]||e[`${vp(t)}Modifiers`];function c_e(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ei;let o=n;const i=t.startsWith("update:"),a=i&&u_e(r,t.slice(7));a&&(a.trim&&(o=n.map(d=>In(d)?d.trim():d)),a.number&&(o=n.map(tE)));let s,l=r[s=j4(t)]||r[s=j4(dl(t))];!l&&i&&(l=r[s=j4(vp(t))]),l&&zc(l,e,6,o);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,zc(u,e,6,o)}}function Rge(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!Rn(e)){const l=u=>{const d=Rge(u,t,!0);d&&(s=!0,es(a,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(dr(e)&&r.set(e,null),null):(Zt(i)?i.forEach(l=>a[l]=null):es(a,i),dr(e)&&r.set(e,a),a)}function F_(e,t){return!e||!T_(t)?!1:(t=t.slice(2).replace(/Once$/,""),no(e,t[0].toLowerCase()+t.slice(1))||no(e,vp(t))||no(e,t))}function eZ(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:a,attrs:s,emit:l,render:u,renderCache:d,props:c,data:f,setupState:p,ctx:v,inheritAttrs:h}=e,g=aE(e);let y,m;try{if(n.shapeFlag&4){const w=o||r,A=w;y=vd(u.call(A,w,d,c,p,f,v)),m=s}else{const w=t;y=vd(w.length>1?w(c,{attrs:s,slots:a,emit:l}):w(c,null)),m=t.props?s:d_e(s)}}catch(w){K4.length=0,P_(w,e,1),y=He(da)}let b=y;if(m&&h!==!1){const w=Object.keys(m),{shapeFlag:A}=b;w.length&&A&7&&(i&&w.some(_j)&&(m=f_e(m,i)),b=Zf(b,m,!1,!0))}return n.dirs&&(b=Zf(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&_v(b,n.transition),y=b,aE(g),y}const d_e=e=>{let t;for(const n in e)(n==="class"||n==="style"||T_(n))&&((t||(t={}))[n]=e[n]);return t},f_e=(e,t)=>{const n={};for(const r in e)(!_j(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function p_e(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?tZ(r,a,u):!!a;if(l&8){const d=t.dynamicProps;for(let c=0;c<d.length;c++){const f=d[c];if(a[f]!==r[f]&&!F_(u,f))return!0}}}else return(o||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?tZ(r,a,u):!0:!!a;return!1}function tZ(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!F_(n,i))return!0}return!1}function h_e({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Bge=e=>e.__isSuspense;function g_e(e,t){t&&t.pendingBranch?Zt(e)?t.effects.push(...e):t.effects.push(e):OTe(e)}const Rt=Symbol.for("v-fgt"),Ib=Symbol.for("v-txt"),da=Symbol.for("v-cmt"),gS=Symbol.for("v-stc"),K4=[];let lu=null;function L(e=!1){K4.push(lu=e?null:[])}function v_e(){K4.pop(),lu=K4[K4.length-1]||null}let U3=1;function nZ(e,t=!1){U3+=e,e<0&&lu&&t&&(lu.hasOnce=!0)}function Lge(e){return e.dynamicChildren=U3>0?lu||Q1:null,v_e(),U3>0&&lu&&lu.push(e),e}function G(e,t,n,r,o,i){return Lge(x(e,t,n,r,o,i,!0))}function yt(e,t,n,r,o){return Lge(He(e,t,n,r,o,!0))}function Vo(e){return e?e.__v_isVNode===!0:!1}function _g(e,t){return e.type===t.type&&e.key===t.key}const Fge=({key:e})=>e??null,vS=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?In(e)||Uo(e)||Rn(e)?{i:xs,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,r=0,o=null,i=e===Rt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fge(t),ref:t&&vS(t),scopeId:age,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:xs};return s?(Gj(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=In(n)?8:16),U3>0&&!a&&lu&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&lu.push(l),l}const He=m_e;function m_e(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===bge)&&(e=da),Vo(e)){const s=Zf(e,t,!0);return n&&Gj(s,n),U3>0&&!i&&lu&&(s.shapeFlag&6?lu[lu.indexOf(e)]=s:lu.push(s)),s.patchFlag=-2,s}if(E_e(e)&&(e=e.__vccOpts),t){t=$d(t);let{class:s,style:l}=t;s&&!In(s)&&(t.class=oe(s)),dr(l)&&(Lj(l)&&!Zt(l)&&(l=es({},l)),t.style=rn(l))}const a=In(e)?1:Bge(e)?128:lge(e)?64:dr(e)?4:Rn(e)?2:0;return x(e,t,n,r,o,a,i,!0)}function $d(e){return e?Lj(e)||Tge(e)?es({},e):e:null}function Zf(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:a,children:s,transition:l}=e,u=t?vr(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Fge(u),ref:t&&t.ref?n&&i?Zt(i)?i.concat(vS(t)):[i,vS(t)]:vS(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Rt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zf(e.ssContent),ssFallback:e.ssFallback&&Zf(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&_v(d,l.clone(d)),d}function bn(e=" ",t=0){return He(Ib,null,e,t)}function ki(e,t){const n=He(gS,null,e);return n.staticCount=t,n}function xe(e="",t=!1){return t?(L(),yt(da,null,e)):He(da,null,e)}function vd(e){return e==null||typeof e=="boolean"?He(da):Zt(e)?He(Rt,null,e.slice()):Vo(e)?ch(e):He(Ib,null,String(e))}function ch(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zf(e)}function Gj(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Zt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Gj(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Tge(t)?t._ctx=xs:o===3&&xs&&(xs.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Rn(t)?(t={default:t,_ctx:xs},n=32):(t=String(t),r&64?(n=16,t=[bn(t)]):n=8);e.children=t,e.shapeFlag|=n}function vr(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=oe([t.class,r.class]));else if(o==="style")t.style=rn([t.style,r.style]);else if(T_(o)){const i=t[o],a=r[o];a&&i!==a&&!(Zt(i)&&i.includes(a))&&(t[o]=i?[].concat(i,a):a)}else o!==""&&(t[o]=r[o])}return t}function id(e,t,n,r=null){zc(e,t,7,[n,r])}const y_e=Sge();let b_e=0;function w_e(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||y_e,i={uid:b_e++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new R0e(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Dge(r,o),emitsOptions:Rge(r,o),emit:null,emitted:null,propsDefaults:Ei,inheritAttrs:r.inheritAttrs,ctx:Ei,data:Ei,props:Ei,attrs:Ei,slots:Ei,refs:Ei,setupState:Ei,setupContext:null,suspense:n,suspenseId:n?n.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=c_e.bind(null,i),e.ce&&e.ce(i),i}let zs=null;const br=()=>zs||xs;let lE,tL;{const e=D_(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};lE=t("__VUE_INSTANCE_SETTERS__",n=>zs=n),tL=t("__VUE_SSR_SETTERS__",n=>z3=n)}const S5=e=>{const t=zs;return lE(e),e.scope.on(),()=>{e.scope.off(),lE(t)}},rZ=()=>{zs&&zs.scope.off(),lE(null)};function Uge(e){return e.vnode.shapeFlag&4}let z3=!1;function A_e(e,t=!1,n=!1){t&&tL(t);const{props:r,children:o}=e.vnode,i=Uge(e);QTe(e,r,i,t),e_e(e,o,n||t);const a=i?C_e(e,t):void 0;return t&&tL(!1),a}function C_e(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jTe);const{setup:r}=n;if(r){Yf();const o=e.setupContext=r.length>1?$ge(e):null,i=S5(e),a=x5(r,e,0,[e.props,o]),s=kv(a);if(Qf(),i(),(s||e.sp)&&!ey(e)&&vge(e),s){if(a.then(rZ,rZ),t)return a.then(l=>{oZ(e,l)}).catch(l=>{P_(l,e,0)});e.asyncDep=a}else oZ(e,a)}else zge(e)}function oZ(e,t,n){Rn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dr(t)&&(e.setupState=ege(t)),zge(e)}function zge(e,t,n){const r=e.type;e.render||(e.render=r.render||bo);{const o=S5(e);Yf();try{HTe(e)}finally{Qf(),o()}}}const x_e={get(e,t){return Fs(e,"get",""),e[t]}};function $ge(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,x_e),slots:e.slots,emit:e.emit,expose:t}}function U_(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ege(Rd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in G4)return G4[n](e)},has(t,n){return n in t||n in G4}})):e.proxy}function S_e(e,t=!0){return Rn(e)?e.displayName||e.name:e.name||t&&e.__name}function E_e(e){return Rn(e)&&"__vccOpts"in e}const ee=(e,t)=>kTe(e,t,z3);function jn(e,t,n){const r=arguments.length;return r===2?dr(t)&&!Zt(t)?Vo(t)?He(e,null,[t]):He(e,t):He(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Vo(n)&&(n=[n]),He(e,t,n))}const k_e="3.5.18",T_e=bo;/**
- * @vue/runtime-dom v3.5.18
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let nL;const iZ=typeof window<"u"&&window.trustedTypes;if(iZ)try{nL=iZ.createPolicy("vue",{createHTML:e=>e})}catch{}const jge=nL?e=>nL.createHTML(e):e=>e,__e="http://www.w3.org/2000/svg",D_e="http://www.w3.org/1998/Math/MathML",xf=typeof document<"u"?document:null,aZ=xf&&xf.createElement("template"),I_e={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?xf.createElementNS(__e,e):t==="mathml"?xf.createElementNS(D_e,e):n?xf.createElement(e,{is:n}):xf.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>xf.createTextNode(e),createComment:e=>xf.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xf.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{aZ.innerHTML=jge(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=aZ.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mp="transition",k2="animation",Ty=Symbol("_vtc"),Hge={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},Wge=es({},fge,Hge),O_e=e=>(e.displayName="Transition",e.props=Wge,e),Ki=O_e((e,{slots:t})=>jn(NTe,Vge(e),t)),Y0=(e,t=[])=>{Zt(e)?e.forEach(n=>n(...t)):e&&e(...t)},sZ=e=>e?Zt(e)?e.some(t=>t.length>1):e.length>1:!1;function Vge(e){const t={};for(const k in e)k in Hge||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:d=s,leaveFromClass:c=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=M_e(o),h=v&&v[0],g=v&&v[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:b,onLeave:w,onLeaveCancelled:A,onBeforeAppear:S=y,onAppear:E=m,onAppearCancelled:D=b}=t,_=(k,R,N,W)=>{k._enterCancelled=W,ih(k,R?d:s),ih(k,R?u:a),N&&N()},M=(k,R)=>{k._isLeaving=!1,ih(k,c),ih(k,p),ih(k,f),R&&R()},O=k=>(R,N)=>{const W=k?E:m,B=()=>_(R,k,N);Y0(W,[R,B]),lZ(()=>{ih(R,k?l:i),ud(R,k?d:s),sZ(W)||uZ(R,r,h,B)})};return es(t,{onBeforeEnter(k){Y0(y,[k]),ud(k,i),ud(k,a)},onBeforeAppear(k){Y0(S,[k]),ud(k,l),ud(k,u)},onEnter:O(!1),onAppear:O(!0),onLeave(k,R){k._isLeaving=!0;const N=()=>M(k,R);ud(k,c),k._enterCancelled?(ud(k,f),rL()):(rL(),ud(k,f)),lZ(()=>{k._isLeaving&&(ih(k,c),ud(k,p),sZ(w)||uZ(k,r,g,N))}),Y0(w,[k,N])},onEnterCancelled(k){_(k,!1,void 0,!0),Y0(b,[k])},onAppearCancelled(k){_(k,!0,void 0,!0),Y0(D,[k])},onLeaveCancelled(k){M(k),Y0(A,[k])}})}function M_e(e){if(e==null)return null;if(dr(e))return[eI(e.enter),eI(e.leave)];{const t=eI(e);return[t,t]}}function eI(e){return qke(e)}function ud(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ty]||(e[Ty]=new Set)).add(t)}function ih(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ty];n&&(n.delete(t),n.size||(e[Ty]=void 0))}function lZ(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let P_e=0;function uZ(e,t,n,r){const o=e._endId=++P_e,i=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=qge(e,t);if(!a)return r();const u=a+"end";let d=0;const c=()=>{e.removeEventListener(u,f),i()},f=p=>{p.target===e&&++d>=l&&c()};setTimeout(()=>{d<l&&c()},s+1),e.addEventListener(u,f)}function qge(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),o=r(`${Mp}Delay`),i=r(`${Mp}Duration`),a=cZ(o,i),s=r(`${k2}Delay`),l=r(`${k2}Duration`),u=cZ(s,l);let d=null,c=0,f=0;t===Mp?a>0&&(d=Mp,c=a,f=i.length):t===k2?u>0&&(d=k2,c=u,f=l.length):(c=Math.max(a,u),d=c>0?a>u?Mp:k2:null,f=d?d===Mp?i.length:l.length:0);const p=d===Mp&&/\b(transform|all)(,|$)/.test(r(`${Mp}Property`).toString());return{type:d,timeout:c,propCount:f,hasTransform:p}}function cZ(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>dZ(n)+dZ(e[r])))}function dZ(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function rL(){return document.body.offsetHeight}function N_e(e,t,n){const r=e[Ty];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const uE=Symbol("_vod"),Gge=Symbol("_vsh"),kr={beforeMount(e,{value:t},{transition:n}){e[uE]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):T2(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),T2(e,!0),r.enter(e)):r.leave(e,()=>{T2(e,!1)}):T2(e,t))},beforeUnmount(e,{value:t}){T2(e,t)}};function T2(e,t){e.style.display=t?e[uE]:"none",e[Gge]=!t}const R_e=Symbol(""),B_e=/(^|;)\s*display\s*:/;function L_e(e,t,n){const r=e.style,o=In(n);let i=!1;if(n&&!o){if(t)if(In(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&mS(r,s,"")}else for(const a in t)n[a]==null&&mS(r,a,"");for(const a in n)a==="display"&&(i=!0),mS(r,a,n[a])}else if(o){if(t!==n){const a=r[R_e];a&&(n+=";"+a),r.cssText=n,i=B_e.test(n)}}else t&&e.removeAttribute("style");uE in e&&(e[uE]=i?r.display:"",e[Gge]&&(r.display="none"))}const fZ=/\s*!important$/;function mS(e,t,n){if(Zt(n))n.forEach(r=>mS(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=F_e(e,t);fZ.test(n)?e.setProperty(vp(r),n.replace(fZ,""),"important"):e[r]=n}}const pZ=["Webkit","Moz","ms"],tI={};function F_e(e,t){const n=tI[t];if(n)return n;let r=dl(t);if(r!=="filter"&&r in e)return tI[t]=r;r=C5(r);for(let o=0;o<pZ.length;o++){const i=pZ[o]+r;if(i in e)return tI[t]=i}return t}const hZ="http://www.w3.org/1999/xlink";function gZ(e,t,n,r,o,i=Xke(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(hZ,t.slice(6,t.length)):e.setAttributeNS(hZ,t,n):n==null||i&&!M0e(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Uc(n)?String(n):n)}function vZ(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?jge(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const s=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=M0e(n):n==null&&s==="string"?(n="",a=!0):s==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(o||t)}function Of(e,t,n,r){e.addEventListener(t,n,r)}function U_e(e,t,n,r){e.removeEventListener(t,n,r)}const mZ=Symbol("_vei");function z_e(e,t,n,r,o=null){const i=e[mZ]||(e[mZ]={}),a=i[t];if(r&&a)a.value=r;else{const[s,l]=$_e(t);if(r){const u=i[t]=W_e(r,o);Of(e,s,u,l)}else a&&(U_e(e,s,a,l),i[t]=void 0)}}const yZ=/(?:Once|Passive|Capture)$/;function $_e(e){let t;if(yZ.test(e)){t={};let r;for(;r=e.match(yZ);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):vp(e.slice(2)),t]}let nI=0;const j_e=Promise.resolve(),H_e=()=>nI||(j_e.then(()=>nI=0),nI=Date.now());function W_e(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;zc(V_e(r,n.value),t,5,[r])};return n.value=e,n.attached=H_e(),n}function V_e(e,t){if(Zt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const bZ=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,q_e=(e,t,n,r,o,i)=>{const a=o==="svg";t==="class"?N_e(e,r,a):t==="style"?L_e(e,n,r):T_(t)?_j(t)||z_e(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):G_e(e,t,r,a))?(vZ(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gZ(e,t,r,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!In(r))?vZ(e,dl(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),gZ(e,t,r,a))};function G_e(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&bZ(t)&&Rn(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return bZ(t)&&In(n)?!1:t in e}const Kge=new WeakMap,Yge=new WeakMap,cE=Symbol("_moveCb"),wZ=Symbol("_enterCb"),K_e=e=>(delete e.props.mode,e),Y_e=K_e({name:"TransitionGroup",props:es({},Wge,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=br(),r=dge();let o,i;return Qc(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!J_e(o[0].el,n.vnode.el,a)){o=[];return}o.forEach(Q_e),o.forEach(Z_e);const s=o.filter(X_e);rL(),s.forEach(l=>{const u=l.el,d=u.style;ud(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const c=u[cE]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",c),u[cE]=null,ih(u,a))};u.addEventListener("transitionend",c)}),o=[]}),()=>{const a=No(e),s=Vge(a);let l=a.tag||Rt;if(o=[],i)for(let u=0;u<i.length;u++){const d=i[u];d.el&&d.el instanceof Element&&(o.push(d),_v(d,F3(d,s,r,n)),Kge.set(d,d.el.getBoundingClientRect()))}i=t.default?Uj(t.default()):[];for(let u=0;u<i.length;u++){const d=i[u];d.key!=null&&_v(d,F3(d,s,r,n))}return He(l,null,i)}}}),Qge=Y_e;function Q_e(e){const t=e.el;t[cE]&&t[cE](),t[wZ]&&t[wZ]()}function Z_e(e){Yge.set(e,e.el.getBoundingClientRect())}function X_e(e){const t=Kge.get(e),n=Yge.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function J_e(e,t,n){const r=e.cloneNode(),o=e[Ty];o&&o.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=qge(r);return i.removeChild(r),a}const o0=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Zt(t)?n=>fS(t,n):t};function eDe(e){e.target.composing=!0}function AZ(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vu=Symbol("_assign"),qr={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Vu]=o0(o);const i=r||o.props&&o.props.type==="number";Of(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=tE(s)),e[Vu](s)}),n&&Of(e,"change",()=>{e.value=e.value.trim()}),t||(Of(e,"compositionstart",eDe),Of(e,"compositionend",AZ),Of(e,"change",AZ))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},a){if(e[Vu]=o0(a),e.composing)return;const s=(i||e.type==="number")&&!/^0\d/.test(e.value)?tE(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===l)||(e.value=l))}},dE={deep:!0,created(e,t,n){e[Vu]=o0(n),Of(e,"change",()=>{const r=e._modelValue,o=_y(e),i=e.checked,a=e[Vu];if(Zt(r)){const s=Oj(r,o),l=s!==-1;if(i&&!l)a(r.concat(o));else if(!i&&l){const u=[...r];u.splice(s,1),a(u)}}else if(Tb(r)){const s=new Set(r);i?s.add(o):s.delete(o),a(s)}else a(Xge(e,i))})},mounted:CZ,beforeUpdate(e,t,n){e[Vu]=o0(n),CZ(e,t,n)}};function CZ(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(Zt(t))o=Oj(t,r.props.value)>-1;else if(Tb(t))o=t.has(r.props.value);else{if(t===n)return;o=Tv(t,Xge(e,!0))}e.checked!==o&&(e.checked=o)}const Zge={created(e,{value:t},n){e.checked=Tv(t,n.props.value),e[Vu]=o0(n),Of(e,"change",()=>{e[Vu](_y(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Vu]=o0(r),t!==n&&(e.checked=Tv(t,r.props.value))}},_2={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Tb(t);Of(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?tE(_y(a)):_y(a));e[Vu](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,Yt(()=>{e._assigning=!1})}),e[Vu]=o0(r)},mounted(e,{value:t}){xZ(e,t)},beforeUpdate(e,t,n){e[Vu]=o0(n)},updated(e,{value:t}){e._assigning||xZ(e,t)}};function xZ(e,t){const n=e.multiple,r=Zt(t);if(!(n&&!r&&!Tb(t))){for(let o=0,i=e.options.length;o<i;o++){const a=e.options[o],s=_y(a);if(n)if(r){const l=typeof s;l==="string"||l==="number"?a.selected=t.some(u=>String(u)===String(s)):a.selected=Oj(t,s)>-1}else a.selected=t.has(s);else if(Tv(_y(a),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _y(e){return"_value"in e?e._value:e.value}function Xge(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const tDe=["ctrl","shift","alt","meta"],nDe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tDe.some(n=>e[`${n}Key`]&&!t.includes(n))},en=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let a=0;a<t.length;a++){const s=nDe[t[a]];if(s&&s(o,t))return}return e(o,...i)})},rDe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$r=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=vp(o.key);if(t.some(a=>a===i||rDe[a]===i))return e(o)})},oDe=es({patchProp:q_e},I_e);let SZ;function Jge(){return SZ||(SZ=n_e(oDe))}const i0=(...e)=>{Jge().render(...e)},eve=(...e)=>{const t=Jge().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=aDe(r);if(!o)return;const i=t._component;!Rn(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,iDe(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function iDe(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function aDe(e){return In(e)?document.querySelector(e):e}/*!
- * pinia v3.0.3
- * (c) 2025 Eduardo San Martin Morote
- * @license MIT
- */const sDe=Symbol();var EZ;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(EZ||(EZ={}));function lDe(){const e=B0e(!0),t=e.run(()=>K({}));let n=[],r=[];const o=Rd({install(i){o._a=i,i.provide(sDe,o),i.config.globalProperties.$pinia=o,r.forEach(a=>n.push(a)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}/*!
- * vue-router v4.5.1
- * (c) 2025 Eduardo San Martin Morote
- * @license MIT
- */const I1=typeof document<"u";function tve(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function uDe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&tve(e.default)}const si=Object.assign;function rI(e,t){const n={};for(const r in t){const o=t[r];n[r]=$c(o)?o.map(e):e(o)}return n}const Y4=()=>{},$c=Array.isArray,nve=/#/g,cDe=/&/g,dDe=/\//g,fDe=/=/g,pDe=/\?/g,rve=/\+/g,hDe=/%5B/g,gDe=/%5D/g,ove=/%5E/g,vDe=/%60/g,ive=/%7B/g,mDe=/%7C/g,ave=/%7D/g,yDe=/%20/g;function Kj(e){return encodeURI(""+e).replace(mDe,"|").replace(hDe,"[").replace(gDe,"]")}function bDe(e){return Kj(e).replace(ive,"{").replace(ave,"}").replace(ove,"^")}function oL(e){return Kj(e).replace(rve,"%2B").replace(yDe,"+").replace(nve,"%23").replace(cDe,"%26").replace(vDe,"`").replace(ive,"{").replace(ave,"}").replace(ove,"^")}function wDe(e){return oL(e).replace(fDe,"%3D")}function ADe(e){return Kj(e).replace(nve,"%23").replace(pDe,"%3F")}function CDe(e){return e==null?"":ADe(e).replace(dDe,"%2F")}function $3(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const xDe=/\/$/,SDe=e=>e.replace(xDe,"");function oI(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=_De(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:$3(a)}}function EDe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kZ(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kDe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Dy(t.matched[r],n.matched[o])&&sve(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Dy(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sve(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!TDe(e[n],t[n]))return!1;return!0}function TDe(e,t){return $c(e)?TZ(e,t):$c(t)?TZ(t,e):e===t}function TZ(e,t){return $c(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _De(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}const Pp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var j3;(function(e){e.pop="pop",e.push="push"})(j3||(j3={}));var Q4;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Q4||(Q4={}));function DDe(e){if(!e)if(I1){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),SDe(e)}const IDe=/^[^#]+#/;function ODe(e,t){return e.replace(IDe,"#")+t}function MDe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const z_=()=>({left:window.scrollX,top:window.scrollY});function PDe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=MDe(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function _Z(e,t){return(history.state?history.state.position-t:-1)+e}const iL=new Map;function NDe(e,t){iL.set(e,t)}function RDe(e){const t=iL.get(e);return iL.delete(e),t}let BDe=()=>location.protocol+"//"+location.host;function lve(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(s);return l[0]!=="/"&&(l="/"+l),kZ(l,"")}return kZ(n,e)+r+o}function LDe(e,t,n,r){let o=[],i=[],a=null;const s=({state:f})=>{const p=lve(e,location),v=n.value,h=t.value;let g=0;if(f){if(n.value=p,t.value=f,a&&a===v){a=null;return}g=h?f.position-h.position:0}else r(p);o.forEach(y=>{y(n.value,v,{delta:g,type:j3.pop,direction:g?g>0?Q4.forward:Q4.back:Q4.unknown})})};function l(){a=n.value}function u(f){o.push(f);const p=()=>{const v=o.indexOf(f);v>-1&&o.splice(v,1)};return i.push(p),p}function d(){const{history:f}=window;f.state&&f.replaceState(si({},f.state,{scroll:z_()}),"")}function c(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:u,destroy:c}}function DZ(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?z_():null}}function FDe(e){const{history:t,location:n}=window,r={value:lve(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,d){const c=e.indexOf("#"),f=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+l:BDe()+e+l;try{t[d?"replaceState":"pushState"](u,"",f),o.value=u}catch(p){console.error(p),n[d?"replace":"assign"](f)}}function a(l,u){const d=si({},t.state,DZ(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});i(l,d,!0),r.value=l}function s(l,u){const d=si({},o.value,t.state,{forward:l,scroll:z_()});i(d.current,d,!0);const c=si({},DZ(r.value,l,null),{position:d.position+1},u);i(l,c,!1),r.value=l}return{location:r,state:o,push:s,replace:a}}function UDe(e){e=DDe(e);const t=FDe(e),n=LDe(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=si({location:"",base:e,go:r,createHref:ODe.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function zDe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),UDe(e)}function $De(e){return typeof e=="string"||e&&typeof e=="object"}function uve(e){return typeof e=="string"||typeof e=="symbol"}const cve=Symbol("");var IZ;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(IZ||(IZ={}));function Iy(e,t){return si(new Error,{type:e,[cve]:!0},t)}function ff(e,t){return e instanceof Error&&cve in e&&(t==null||!!(e.type&t))}const OZ="[^/]+?",jDe={sensitive:!1,strict:!1,start:!0,end:!0},HDe=/[.+*?^${}()[\]/\\]/g;function WDe(e,t){const n=si({},jDe,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let c=0;c<u.length;c++){const f=u[c];let p=40+(n.sensitive?.25:0);if(f.type===0)c||(o+="/"),o+=f.value.replace(HDe,"\\$&"),p+=40;else if(f.type===1){const{value:v,repeatable:h,optional:g,regexp:y}=f;i.push({name:v,repeatable:h,optional:g});const m=y||OZ;if(m!==OZ){p+=10;try{new RegExp(`(${m})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${m}): `+w.message)}}let b=h?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;c||(b=g&&u.length<2?`(?:/${b})`:"/"+b),g&&(b+="?"),o+=b,p+=20,g&&(p+=-8),h&&(p+=-20),m===".*"&&(p+=-50)}d.push(p)}r.push(d)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(u){const d=u.match(a),c={};if(!d)return null;for(let f=1;f<d.length;f++){const p=d[f]||"",v=i[f-1];c[v.name]=p&&v.repeatable?p.split("/"):p}return c}function l(u){let d="",c=!1;for(const f of e){(!c||!d.endsWith("/"))&&(d+="/"),c=!1;for(const p of f)if(p.type===0)d+=p.value;else if(p.type===1){const{value:v,repeatable:h,optional:g}=p,y=v in u?u[v]:"";if($c(y)&&!h)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const m=$c(y)?y.join("/"):y;if(!m)if(g)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):c=!0);else throw new Error(`Missing required param "${v}"`);d+=m}}return d||"/"}return{re:a,score:r,keys:i,parse:s,stringify:l}}function VDe(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function dve(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=VDe(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(MZ(r))return 1;if(MZ(o))return-1}return o.length-r.length}function MZ(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const qDe={type:0,value:""},GDe=/[a-zA-Z0-9_]/;function KDe(e){if(!e)return[[]];if(e==="/")return[[qDe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,l,u="",d="";function c(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&c(),a()):l===":"?(c(),n=1):f();break;case 4:f(),n=r;break;case 1:l==="("?n=2:GDe.test(l)?f():(c(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:c(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),a(),o}function YDe(e,t,n){const r=WDe(KDe(e.path),n),o=si(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function QDe(e,t){const n=[],r=new Map;t=BZ({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function i(c,f,p){const v=!p,h=NZ(c);h.aliasOf=p&&p.record;const g=BZ(t,c),y=[h];if("alias"in c){const w=typeof c.alias=="string"?[c.alias]:c.alias;for(const A of w)y.push(NZ(si({},h,{components:p?p.record.components:h.components,path:A,aliasOf:p?p.record:h})))}let m,b;for(const w of y){const{path:A}=w;if(f&&A[0]!=="/"){const S=f.record.path,E=S[S.length-1]==="/"?"":"/";w.path=f.record.path+(A&&E+A)}if(m=YDe(w,f,g),p?p.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),v&&c.name&&!RZ(m)&&a(c.name)),fve(m)&&l(m),h.children){const S=h.children;for(let E=0;E<S.length;E++)i(S[E],m,p&&p.children[E])}p=p||m}return b?()=>{a(b)}:Y4}function a(c){if(uve(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function s(){return n}function l(c){const f=JDe(c,n);n.splice(f,0,c),c.record.name&&!RZ(c)&&r.set(c.record.name,c)}function u(c,f){let p,v={},h,g;if("name"in c&&c.name){if(p=r.get(c.name),!p)throw Iy(1,{location:c});g=p.record.name,v=si(PZ(f.params,p.keys.filter(b=>!b.optional).concat(p.parent?p.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),c.params&&PZ(c.params,p.keys.map(b=>b.name))),h=p.stringify(v)}else if(c.path!=null)h=c.path,p=n.find(b=>b.re.test(h)),p&&(v=p.parse(h),g=p.record.name);else{if(p=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!p)throw Iy(1,{location:c,currentLocation:f});g=p.record.name,v=si({},f.params,c.params),h=p.stringify(v)}const y=[];let m=p;for(;m;)y.unshift(m.record),m=m.parent;return{name:g,path:h,params:v,matched:y,meta:XDe(y)}}e.forEach(c=>i(c));function d(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:a,clearRoutes:d,getRoutes:s,getRecordMatcher:o}}function PZ(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function NZ(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ZDe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ZDe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function RZ(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function XDe(e){return e.reduce((t,n)=>si(t,n.meta),{})}function BZ(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function JDe(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;dve(e,t[i])<0?r=i:n=i+1}const o=e7e(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function e7e(e){let t=e;for(;t=t.parent;)if(fve(t)&&dve(e,t)===0)return t}function fve({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function t7e(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(rve," "),a=i.indexOf("="),s=$3(a<0?i:i.slice(0,a)),l=a<0?null:$3(i.slice(a+1));if(s in t){let u=t[s];$c(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function LZ(e){let t="";for(let n in e){const r=e[n];if(n=wDe(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}($c(r)?r.map(i=>i&&oL(i)):[r&&oL(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function n7e(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=$c(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const r7e=Symbol(""),FZ=Symbol(""),$_=Symbol(""),Yj=Symbol(""),aL=Symbol("");function D2(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function dh(e,t,n,r,o,i=a=>a()){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const u=f=>{f===!1?l(Iy(4,{from:n,to:t})):f instanceof Error?l(f):$De(f)?l(Iy(2,{from:t,to:f})):(a&&r.enterCallbacks[o]===a&&typeof f=="function"&&a.push(f),s())},d=i(()=>e.call(r&&r.instances[o],t,n,u));let c=Promise.resolve(d);e.length<3&&(c=c.then(u)),c.catch(f=>l(f))})}function iI(e,t,n,r,o=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(tve(l)){const d=(l.__vccOpts||l)[t];d&&i.push(dh(d,n,r,a,s,o))}else{let u=l();i.push(()=>u.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const c=uDe(d)?d.default:d;a.mods[s]=d,a.components[s]=c;const p=(c.__vccOpts||c)[t];return p&&dh(p,n,r,a,s,o)()}))}}return i}function UZ(e){const t=dn($_),n=dn(Yj),r=ee(()=>{const l=C(e.to);return t.resolve(l)}),o=ee(()=>{const{matched:l}=r.value,{length:u}=l,d=l[u-1],c=n.matched;if(!d||!c.length)return-1;const f=c.findIndex(Dy.bind(null,d));if(f>-1)return f;const p=zZ(l[u-2]);return u>1&&zZ(d)===p&&c[c.length-1].path!==p?c.findIndex(Dy.bind(null,l[u-2])):f}),i=ee(()=>o.value>-1&&l7e(n.params,r.value.params)),a=ee(()=>o.value>-1&&o.value===n.matched.length-1&&sve(n.params,r.value.params));function s(l={}){if(s7e(l)){const u=t[C(e.replace)?"replace":"push"](C(e.to)).catch(Y4);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:ee(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}function o7e(e){return e.length===1?e[0]:e}const i7e=nt({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"},viewTransition:Boolean},useLink:UZ,setup(e,{slots:t}){const n=Wr(UZ(e)),{options:r}=dn($_),o=ee(()=>({[$Z(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[$Z(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&o7e(t.default(n));return e.custom?i:jn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),a7e=i7e;function s7e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function l7e(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!$c(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function zZ(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const $Z=(e,t,n)=>e??t??n,u7e=nt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=dn(aL),o=ee(()=>e.route||r.value),i=dn(FZ,0),a=ee(()=>{let u=C(i);const{matched:d}=o.value;let c;for(;(c=d[u])&&!c.components;)u++;return u}),s=ee(()=>o.value.matched[a.value]);_r(FZ,ee(()=>a.value+1)),_r(r7e,s),_r(aL,o);const l=K();return St(()=>[l.value,s.value,e.name],([u,d,c],[f,p,v])=>{d&&(d.instances[c]=u,p&&p!==d&&u&&u===f&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),u&&d&&(!p||!Dy(d,p)||!f)&&(d.enterCallbacks[c]||[]).forEach(h=>h(u))},{flush:"post"}),()=>{const u=o.value,d=e.name,c=s.value,f=c&&c.components[d];if(!f)return jZ(n.default,{Component:f,route:u});const p=c.props[d],v=p?p===!0?u.params:typeof p=="function"?p(u):p:null,g=jn(f,si({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[d]=null)},ref:l}));return jZ(n.default,{Component:g,route:u})||g}}});function jZ(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pve=u7e;function c7e(e){const t=QDe(e.routes,e),n=e.parseQuery||t7e,r=e.stringifyQuery||LZ,o=e.history,i=D2(),a=D2(),s=D2(),l=jo(Pp);let u=Pp;I1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=rI.bind(null,Z=>""+Z),c=rI.bind(null,CDe),f=rI.bind(null,$3);function p(Z,le){let ve,Pe;return uve(Z)?(ve=t.getRecordMatcher(Z),Pe=le):Pe=Z,t.addRoute(Pe,ve)}function v(Z){const le=t.getRecordMatcher(Z);le&&t.removeRoute(le)}function h(){return t.getRoutes().map(Z=>Z.record)}function g(Z){return!!t.getRecordMatcher(Z)}function y(Z,le){if(le=si({},le||l.value),typeof Z=="string"){const Q=oI(n,Z,le.path),me=t.resolve({path:Q.path},le),De=o.createHref(Q.fullPath);return si(Q,me,{params:f(me.params),hash:$3(Q.hash),redirectedFrom:void 0,href:De})}let ve;if(Z.path!=null)ve=si({},Z,{path:oI(n,Z.path,le.path).path});else{const Q=si({},Z.params);for(const me in Q)Q[me]==null&&delete Q[me];ve=si({},Z,{params:c(Q)}),le.params=c(le.params)}const Pe=t.resolve(ve,le),Ae=Z.hash||"";Pe.params=d(f(Pe.params));const he=EDe(r,si({},Z,{hash:bDe(Ae),path:Pe.path})),Ee=o.createHref(he);return si({fullPath:he,hash:Ae,query:r===LZ?n7e(Z.query):Z.query||{}},Pe,{redirectedFrom:void 0,href:Ee})}function m(Z){return typeof Z=="string"?oI(n,Z,l.value.path):si({},Z)}function b(Z,le){if(u!==Z)return Iy(8,{from:le,to:Z})}function w(Z){return E(Z)}function A(Z){return w(si(m(Z),{replace:!0}))}function S(Z){const le=Z.matched[Z.matched.length-1];if(le&&le.redirect){const{redirect:ve}=le;let Pe=typeof ve=="function"?ve(Z):ve;return typeof Pe=="string"&&(Pe=Pe.includes("?")||Pe.includes("#")?Pe=m(Pe):{path:Pe},Pe.params={}),si({query:Z.query,hash:Z.hash,params:Pe.path!=null?{}:Z.params},Pe)}}function E(Z,le){const ve=u=y(Z),Pe=l.value,Ae=Z.state,he=Z.force,Ee=Z.replace===!0,Q=S(ve);if(Q)return E(si(m(Q),{state:typeof Q=="object"?si({},Ae,Q.state):Ae,force:he,replace:Ee}),le||ve);const me=ve;me.redirectedFrom=le;let De;return!he&&kDe(r,Pe,ve)&&(De=Iy(16,{to:me,from:Pe}),U(Pe,Pe,!0,!1)),(De?Promise.resolve(De):M(me,Pe)).catch(pe=>ff(pe)?ff(pe,2)?pe:Y(pe):j(pe,me,Pe)).then(pe=>{if(pe){if(ff(pe,2))return E(si({replace:Ee},m(pe.to),{state:typeof pe.to=="object"?si({},Ae,pe.to.state):Ae,force:he}),le||me)}else pe=k(me,Pe,!0,Ee,Ae);return O(me,Pe,pe),pe})}function D(Z,le){const ve=b(Z,le);return ve?Promise.reject(ve):Promise.resolve()}function _(Z){const le=re.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(Z):Z()}function M(Z,le){let ve;const[Pe,Ae,he]=d7e(Z,le);ve=iI(Pe.reverse(),"beforeRouteLeave",Z,le);for(const Q of Pe)Q.leaveGuards.forEach(me=>{ve.push(dh(me,Z,le))});const Ee=D.bind(null,Z,le);return ve.push(Ee),te(ve).then(()=>{ve=[];for(const Q of i.list())ve.push(dh(Q,Z,le));return ve.push(Ee),te(ve)}).then(()=>{ve=iI(Ae,"beforeRouteUpdate",Z,le);for(const Q of Ae)Q.updateGuards.forEach(me=>{ve.push(dh(me,Z,le))});return ve.push(Ee),te(ve)}).then(()=>{ve=[];for(const Q of he)if(Q.beforeEnter)if($c(Q.beforeEnter))for(const me of Q.beforeEnter)ve.push(dh(me,Z,le));else ve.push(dh(Q.beforeEnter,Z,le));return ve.push(Ee),te(ve)}).then(()=>(Z.matched.forEach(Q=>Q.enterCallbacks={}),ve=iI(he,"beforeRouteEnter",Z,le,_),ve.push(Ee),te(ve))).then(()=>{ve=[];for(const Q of a.list())ve.push(dh(Q,Z,le));return ve.push(Ee),te(ve)}).catch(Q=>ff(Q,8)?Q:Promise.reject(Q))}function O(Z,le,ve){s.list().forEach(Pe=>_(()=>Pe(Z,le,ve)))}function k(Z,le,ve,Pe,Ae){const he=b(Z,le);if(he)return he;const Ee=le===Pp,Q=I1?history.state:{};ve&&(Pe||Ee?o.replace(Z.fullPath,si({scroll:Ee&&Q&&Q.scroll},Ae)):o.push(Z.fullPath,Ae)),l.value=Z,U(Z,le,ve,Ee),Y()}let R;function N(){R||(R=o.listen((Z,le,ve)=>{if(!X.listening)return;const Pe=y(Z),Ae=S(Pe);if(Ae){E(si(Ae,{replace:!0,force:!0}),Pe).catch(Y4);return}u=Pe;const he=l.value;I1&&NDe(_Z(he.fullPath,ve.delta),z_()),M(Pe,he).catch(Ee=>ff(Ee,12)?Ee:ff(Ee,2)?(E(si(m(Ee.to),{force:!0}),Pe).then(Q=>{ff(Q,20)&&!ve.delta&&ve.type===j3.pop&&o.go(-1,!1)}).catch(Y4),Promise.reject()):(ve.delta&&o.go(-ve.delta,!1),j(Ee,Pe,he))).then(Ee=>{Ee=Ee||k(Pe,he,!1),Ee&&(ve.delta&&!ff(Ee,8)?o.go(-ve.delta,!1):ve.type===j3.pop&&ff(Ee,20)&&o.go(-1,!1)),O(Pe,he,Ee)}).catch(Y4)}))}let W=D2(),B=D2(),z;function j(Z,le,ve){Y(Z);const Pe=B.list();return Pe.length?Pe.forEach(Ae=>Ae(Z,le,ve)):console.error(Z),Promise.reject(Z)}function q(){return z&&l.value!==Pp?Promise.resolve():new Promise((Z,le)=>{W.add([Z,le])})}function Y(Z){return z||(z=!Z,N(),W.list().forEach(([le,ve])=>Z?ve(Z):le()),W.reset()),Z}function U(Z,le,ve,Pe){const{scrollBehavior:Ae}=e;if(!I1||!Ae)return Promise.resolve();const he=!ve&&RDe(_Z(Z.fullPath,0))||(Pe||!ve)&&history.state&&history.state.scroll||null;return Yt().then(()=>Ae(Z,le,he)).then(Ee=>Ee&&PDe(Ee)).catch(Ee=>j(Ee,Z,le))}const F=Z=>o.go(Z);let H;const re=new Set,X={currentRoute:l,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:y,options:e,push:w,replace:A,go:F,back:()=>F(-1),forward:()=>F(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:B.add,isReady:q,install(Z){const le=this;Z.component("RouterLink",a7e),Z.component("RouterView",pve),Z.config.globalProperties.$router=le,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>C(l)}),I1&&!H&&l.value===Pp&&(H=!0,w(o.location).catch(Ae=>{}));const ve={};for(const Ae in Pp)Object.defineProperty(ve,Ae,{get:()=>l.value[Ae],enumerable:!0});Z.provide($_,le),Z.provide(Yj,M_(ve)),Z.provide(aL,l);const Pe=Z.unmount;re.add(Z),Z.unmount=function(){re.delete(Z),re.size<1&&(u=Pp,R&&R(),R=null,l.value=Pp,H=!1,z=!1),Pe()}}};function te(Z){return Z.reduce((le,ve)=>le.then(()=>_(ve)),Promise.resolve())}return X}function d7e(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(u=>Dy(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Dy(u,l))||o.push(l))}return[n,r,o]}function Yl(){return dn($_)}function j_(e){return dn(Yj)}const Z4=()=>{const e=navigator.userAgent.toLowerCase(),t=["mobile","android","iphone","ipad","ipod","blackberry","windows phone","opera mini"],n=window.innerWidth,r=window.innerHeight,o="ontouchstart"in window||navigator.maxTouchPoints>0,i=t.some(s=>e.includes(s)),a=n<=768||n<=1024&&r<=768;return i||a&&o},f7e={class:"app"},p7e={key:0,class:"loading-container"},h7e={__name:"App",setup(e){const t=K(!0);return qn(()=>{Z4()?setTimeout(()=>{t.value=!1},500):t.value=!1}),(n,r)=>(L(),G("div",f7e,[t.value?(L(),G("div",p7e,r[0]||(r[0]=[x("div",{class:"loading-spinner"},[x("div",{class:"spinner"}),x("div",{class:"loading-text"},"加载中...")],-1)]))):(L(),yt(C(pve),{key:1}))]))}},Qj="/assets/1-BusD92L7.png",hve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAW/SURBVHic7Z1NaBtHFMf/b1ZKpMhtLQoWykkWOBCDnZScTC4OzTHgGHoLpb40t5a2h96KMTm0vaSB9uRLEkJPLdgG01Mgvhj3UnAcsMGm8p4i7IsEkSrH3t3Xgz6sr9Xs2vuhlfd3EVqNdp/+zHvz5s0wIthkv8DD2ntjjoS4weAMMzJEGAYwbPdefsMMlQgqCEXWjBUdytr1NKl27kFWG+7mtTlSxBcApm3aGTTWWDeeX0tHnllpLBVwL8/TUHgegy9cC8xQYRgLMiFNBdwv8LB2YswD9I3j1gUKfjI2onxr9mlXAXfynIkovATgpmt2BYtNTafZbvGxQ8CdPGcUwa+IkPHCsqDADFU36E67iKK9YUThpVC8ToiQiSi8tF/glmyjRcC9Q/0XhG7bi5vVceGUhgvX0pSn3tsUQHS6M5amNaC5Bwoxb9Y+pI1qWgegJuBuXpsL454tpnfz2hxQE7A2wwixQV0zquV8+34bFEQiUUoKBfq034YEFe29MScoImb8NiSokBA3BDh4Zah+gcEZwRyOvmeFGRkRpi9nhwjDHXPhEFuEAp6XiN8GWGUrd4LDgtF4n00ryF7133z/LZBQqjC++rWIgybx6kxko/j5yw99sOqUvnfhlfVKV/EA4E3uBC//ee+xRa30vYBbuZOen/+b1zyypDuuuHCpwigfVXtNKqm48YgG5Qr3tMHt5zsu4OJqGcvrR433qaTAD59/gGza/XC7uFrGVu4EubzeuJaIER7cjeP+7bgrz3TUhZfXKy3iAcBBwcCjF+9QMukpTvH4jxKW149axAOA8hFjcfU/HBR0k2+eD0cFfJPrHo8OCgZyLseqje3jnp+b2XZeHBWwVOk+WvYDgeiBfpJK9v4ppSN3QogvifTG9jFyb7u7VCIuMDUetT16JmK9t/kcmuSS58VzAR+9eCeNV7+/JPz29Ue2RByKS3qgS+HFUxfOvdWk4gGnI6cdRiQufFgcBAHz1gO53aA/JHFht9Kovh1EyjaDvszdy0fsioieCpiIW94QKx0U2pG5MIDG9NJJPB1EpsYv4a8fP3bl3jIXBqoJvdNz4751YbuMWBDGbliwgqc9sLlKIyMRExiy4fJW2prVFc+DpwL+vX2Mx3+WLLVNJQWefp+0df9UUvQUqexCLjgwLgwAI5I1Mjd64EAJKMONgsJACWglF3SaAROw988JBZSQkBQUwhgoQdYDAefj4EAJaGX6Z7aKd1YGSkArPdDpyvSACSifzjldmR4oAQG5G4cxUILXi0uezoUnshF899mQpbZ2aoct3/N4cclTAVNJBalb7u5V8XpxaeBc2OvFJU974Mb2MRZXy5bappIKfjrD5kmvF5c8FbBcYVemU81YXVyyU6ztxYVzYcDZxSVHe2CvAG5lltBMfY1DNii0bzS3sriUiDnXbxztgQ/vXel6fSJb3esymY1aFvL+7RgAYKb22o1EjDA1Hm25lr0a6fmMB5/GHXNfAKC9Q8PRqLpV2/hdz/gns1HM3D41ulRhrKxXTPc+D8UFpsYv4e6ty6b3rLd7eO9K15jX/IyhuEAiRkglBSayUUxmox3tz4PjAl40Bm4Q8RoBoOi3EUFGMIcCnhVmqIIIqt+GBBUiqIJg78DBkCYIRcGG8dpvO4IKa8YKVc8J5ILfxgQRTadRMZqkIoA1v40JIGvX06QKAGDdeO63NUGjrlljUrh3aLzCBTsn9awwQ72WEqNA80xEpwXfLAoahtHQqiFg9Tw8fuKLQYGCnzSf7NtS16mNyK8QnmJpxubYiPik+UJLMWE0SUVNp1nmcHbSDjNUTafZ9usd1ZjraVJ1g+4A2PTEsmCw2e0EX0Byknn1UNrwIO5IVCzU8uUOpLXt3bw2ByHmL+AZW2vQaaF+2KwZ4Z8RdOLsnxG0s5PnjAJ9miJiBozh2t9hZOzepw8oMqNIBJVAKhvG68hl8czMVc34H65WJ///e8gfAAAAAElFTkSuQmCC",gve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABQCAYAAACK5CKQAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAATuSURBVHic7Z0xTBtXGMf/77BdAqQycTtYpdJlgIVGxExsxWtBiiJlYKnC0FSiE1mQuhSxdsFZWjVLE3VhiBRFamZDpyy1IYUFD7khqofG8qVBIb3D93U4gw32ge/u3b175n6jfffuz4/37t69sz8zeITq5TSOkotQ2BSIVDCmApQGWNprmwLRQKRBYTosPINpbLJsTnPTAHN7RHqztwjQXTA263ZfqSDaBNhj9snko14271kk/fPXLBhb7XuBnWggrF0k9EKRVC+nYSVXAbbMLZqUUIFlvrjv9O65IqlaVpFKPQVwk3suOdmGYdzudv50FNmUWASgBhhMRjQYRv6sTMVxc7snqsFmkhIVqdRTqpdPzU66iqTa7jri4XweN+3rRouOoU1v9hbB8Gt4mSTGsvLs0xubQLceybDa8VpMdxg7cXVKpD3Zjs+LPcPYbNPZ2R5JdwXEkRzb2ck5sjndeSUukMQoxmirRyZTs+KSSM5RcrElUsEtgVHkRmFTLZEWybj8FQ2I1JZIxlRhQWSHMbX9qq2KyiE/lHa+145xAUsnRBzWrJTw4cXvMPZLPW0/cuc+Ppr6MuBU/ghVJB2+w9tfVmBWehPYvt8xZqUE5VoWA5ks73i+CHVo64XvXEs8S6P2N/QHS2jUqpxS8SE0kYfFDRy93ufSllWrRk5maCLfFze4thc1maGIbNSqsAL4g6MkU/rpT1RkSi8SiIbMvhAJiJfZNyIBsTL7SiQgTmbfiQTEyOxLkUD4MvtWJBCuTClE0uGB533DkilkGc0tRqWEK/kFAMDgzDzMSsm1mMPiBkbuOH4qzzdSiDT3/0SjVj1ZOrv69Q+CE3UizdD+9+GK8NvA85CiRwLA0et96A+WMJRfwMDYBAaueVvYDWpBWBqRgH3hOHiy7quN0e9/Q2JsglOiFlIMbZ5YPmYA53HpRAZFLJITkTlHJsenkRyf9tWG8fIPbs+F3BIJkYmxCaSXf/bdzvDcPeiFJd9PKr0QiaHNrozwa2voKre23BCJHmlWSjh4so7E2Livdhq1KoydLU6p3BEJkYB9LywzkRja/UAskhOxSE5E5hw5ODPnex5pf1zwOadE7oiEyOT4NJc1xsGZeTRq1cs7j+wHItEjzUoJbx+uIPGZv3mkWSkJ6Y1AREQCgLGzJWwyzYN4aHMiFsmJSyfS67OeiwhF5EAmy3WFxytKJrhvQ4TWI48f8ItkcGY+sLZDEzk8dy+Qp3e9khibwPBX3wTWfqjnyI+//dH3baAXkuPTSC//FOgxWhUEarv1sCrtfXjxHP+93IJVq8J6/+7iHTyS+HwCQ/mFUP55bSL3XiH+hqxXtNbQJtLE5ZAcojaRjGnikkiOwvT2Ugw7AqPIjYVnrXNkvZyGlaqLzCMthnH9pEey0Zxul0ONcQXRJsvmtDPzSPZYTBqZsZ11qda3W7yEdXS9orHM5HWg250N0VrocWSFcOKqQ6RdD5EKoQaSEiq0V4LuWmO3eQUvIq5q6sQ2y0zm2l/oumjBRnM6DOM2AC2MVJKhNd2cwnH1h2VzGgwjD2A70Fhysd2t4jPQY2V8u3hxXNAdirnGRnN6t3d7/4kBu4jxKi7bChHRJojWjosSOxH/6IUTQf3oRcdxqmUVydQsFNyCRelm2UTVa3viIB1gOog0MKbBoh0kzEdOQ9iJ/wFAOtbkVcEcNAAAAABJRU5ErkJggg==",vve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAXxSURBVHic7Z1faFNXHMe/v5smrraDyIoaiCOZ6zJB0eRJKCsV50sFiwjqW4t9VHB7cAoTuoIPYz7YQfcYp2/zSVqwPmzOoBTcS1ux4GK196KFqGQ00H9bbnLPHpKGmzS3yU1ycu+p9/PW3n8/PpzfOb97zuWEYBKZyd6Mum2AJDoIhgAIAYB5AfKavZcNUMCggCilaZmxbNYV29fqU8zcgKo98UV6YUCSXP0AekwGKRYMMY1lb3/h8d+q5vSKAufURA8RhrDVxW1E0bTscCWRhgJlJnu1TOsQI/ZNw0MTCGI0ste9+1vD4+X++XwtEfB46C5j7BC/0MSBiGbSaXayXP+4QeDztUTA7cZDAIEmxCYSiqriSKlEqfQsj4fuwpFXjoDHQ3dlJhdVG0UCX6lvbzhpawxj7JCWaR3S/6+Qwvky5dfmhyUejOFIp9sXA3QtUJJcQ4ZXOBSRL+sA5AW+SC8MwOn3zNCTd5YTKJGr39JwBCT/VgbKly2y1QGJiMv17w7J5cr2WB2IqGTUbQOSJLX0WR2IqJBEByUwJuI0lD1gCEi5+TyHmiAEJDjlSx0w74Z3YQczkCOwXhyBddJidQCNZGJ+ElPv42j3bMeZ0NfwtXVwfya9zCQY96c0geizcURnxwp/+9o6cDFyFt3+MNfnbgmBpfL0DO7vw+CBE9yeLXwfuJk8AIjOjiH6bJzb84UW+GhhelN560Rnx3An/juXGIQW2O0PozfYVdW5jxamucQgpMDos/FCWl49fK4qicvpVS6xCFfGlPZ5gwdO4OrhcwCACXnS8Lpuf4RLPEIJvPbkZpGkdZGVJPYGu7iNxMKkcKm8dfSjbLl07g12FeTyQAiBRvLWic6O4V7+uF4ib3mAAIV0JXl6vj98Dsfz8u7NT+L4Z9WN0PVga4Fm5K2jl9gMbJvCtcizAlsKrFXe4P6+prY+wIYC65HHc9LACFsJFE0eYJNCeim9ip+nfhNOHmADgUvpVVz48yfMLb4xfa3V8gCLU1h0eYCFAreCPMAigVtFHmBBH9goeXOLr3En/kdV10V2hvCVP4yPPdtNP7MSTX2Va2TL67//A+ZS1d/nYuQszoSOmX5uJZqWwo1O214TEwWd3j3cljeb1gKvPB6taV3Cbn1eKU1rgRcjZ01/KWB3eUATBCZWkkisJOFr68Do0Utod1fXkYsgD2hCCl97chPT7+MYPXoJvrYOzC2+xvkH17GsGq+SlZO3lF6teWnS19aByK5QTddWgrvAU+OXi1pgJYlG0/D1zg+OHv0OkZ2Nl8g1hSfmJ5FYSQLIpfKFB9eRWEmic8en+KVMOm+2htFebw3HqZlwbYHlRl59S3y0MI0rj0cBVLcANPUuXlMcnTv2cCmiAY4CEytJnBq/XPaYXuI9eRLT7+LcV894wU3gxPwkrv110/C4XqLIcHsXjs4af1IW3hlCtz+8aUmzlF7ddKQ2Q7t7O7cU5iJwbvFNYfDQ0+0P43ToWMXRMLGSRP/94YYK/LH7ApdRmItA/bd47e7c98qnQ8eqbgXL6bWGyQOAZXUVb5eTAAeBXPrAU+OXsbvtExwPdtU8jTT1Lo7p9383JJ7wri+5tD6Ag8Dcq9s/3AK2G7b+tEMEbLUuLCISwFJWByEyEkCOwNpRJDAoVkchLAyKBHIE1gxRSmIae2p1HKKiaZkxkpnszWY/WrQ6GBFRVQSlIAVTAGJWByMcDLF9rT5FAgBNy962Oh7R0FjOWWH3tpeZxEN8ePuk1oryeYsvCOjeRBjDsHXxiIWmZQuuCgI73b4YMRqxJiRxIEYj+p19i/ZQlZns1bTWh84uluUhopm9rt1FH9kUTSYEKZhKp9lJwCmuy6Dk3RSxYTZmX6tPUVUcIaKZ5sRlf4hoptwOvkCFncxfqW9vOBtx04jUsjacr5c3Hq90g/zmtEP48PbYijGG4fXNZo0w92ME5OoHbflaMaZpDfwxglKeryUCLle2R5Ja+sCYN799XsDsfayHpQBK5X4OAwrT2NMW93+3jFLViP8B4NqjdRi5iMEAAAAASUVORK5CYII=",mve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABQCAYAAACK5CKQAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAZcSURBVHic7Z09TBtJFMf/4y8gXiJDQUyDTI4KiYRrUJAoQKJIdb5IV12KUFFdcVyVLoruilQHxVVX3CUFaXNclYIECiSiqxyQUvnAovFHgX14N8Di9bvC3sU2609mdrzBPwkJ2d6Z57/fzLx5MzvL0CHZQwp5+rDk9eI+FREhhggDQij9uQoCEoyQAEOOCBsGsD00yhLtlMHarfQkSUuM4QmA+XavdRWEbQJe3R5lL1v5eMtC5pM0D4Zn+NIFrIGABAjPmwnaVMjsIYV8A3gG4EdexrmUtcEwW6n3ZkMhs0mK+BjeAJjmbpY7iRUIj+z6z7pCZpMU8TJsMSAi0jK3QUDCICzUiumpd4GP4U1PxKswIOJjeJM9pKroxFbIfIpW0WvOjZgujxsWV5p2Obz50zmbXAxhYXCUbQN2Hsmqle7RgAqtqoQ8SdJSr19si/mTJC0BNUIy4IkUc1xMeZZ32UeWY8ZDeSa5l8IphiyP9N6wqR9PPH1YsoRkDFGZxrgZrxf3L/tIcl/6q1ugIiKWkMR6o3WnEKsQshf2dA4DQnXn2j3aoickL3yyDWgHXSOoaQO6WgQABBQPAkEG5Y5XsmUuEPJo9xxHH3QcHxRwfFCo+7nwlB/hKT/GZvswfNf5r2XNbPIpIsdrb0B88wyxdQ1qptj2teEpP6YfBxGe8guwzJ6uE1JNG3j7NNeRgLWEp/yYWxl0pOl3lZCxdQ2x15+5lqmMeDD3023h3tk1QooQsZKZZQWT0QFh5XdF+PPP76pQEc06jnbPhZUvXchPG6f4tHHqSF07q3moaUNI2VKFVNMGYuuaY/XpGuHt05yQsqUKubOah6452zWrmSLim2fcy5UmZGr/Aqn9Cyl1i2gF0oQU2fE3Q80UkdrTuZYpTUgRzaut+t/x/SGlCHl8UHC8b6yFt0c6Ors/PihAV4tcpn/XRc0UoWuEQLDtvba2OOaRatrA+5//Q0DxCIvl2oWnHY4IaSYidI0wfNfXFR4JwMpr8sARId//cgI1U7SaEa/mdF149tPChYxvnlkJ2YBSqq5bhOSZXhMuZGXwazalblgaAPj+oEKFPNo9r+oPzf+VEem5EigjHvd45NGHq7GamjYQvheQLmb4XoBrecI9shbTK3l/kXaZWOznWp4wIXWNbEdFc2o49kCekIEg4770IEzI43/tMzuml47N9jm6ylfJzLLCvUzHOypdI8sr51YGna4e4Sk/92YNSEpaxNY16BpBuePF9Pe3HK1b1AKYMCEbhRZqpohPf5UWu5xeyBcVwwoVslHAG3v92cqQz60MOhYONdr2ch2EWt9sD87OrydQ0waUO15889uwI54pKqEsVMix2b6G76uZYml7StpAIMjw8EVI6CI+AGHrREKFnFjsbzqfNcU0v+DMsoLv/riedyojnoZdBe/sOODAlpV2tqJMRgcwGR2wBoTU/gVSezrim2dNc5jDd31WaGN2KWraQHzz7Mr1k9EB7rGkcCF1jfD3D8ctJ3OVEQ8mv72FsQeBqhFWTRvWWo+Z2Q4oHgyPezH8lb+p56f2L3C0e4745hnGZvu4x7CObKLaWc131MmbHmZmauyETe1fQNcIM8uK1DynI4tfna6N2G0iCARZ1RxeGfHg4YuQ9GSxI8Ebz5HSTsRuSBQL90hRAfBkdADTj4PSPdFEuJC8l15l7A9vBeFC2vVxE4v9Vhottacj/u4cqT297shu3rEwsdjfFc3YDsc80rx1ozZID98LVGXL1bRRmul00T00rSA8/FHTBtRMseuaIm8qhczChSftdQuXtxkDYvYE3wAISFzeZkxISLTF1TCqFNLTE7JjGHKWkIaBjzJtcTNE2Lg8rqZ0TmRWpkFupUAYtzxyaJzlAGzLM8elUOk83qqkBRFeybLHrRBKml2Z8edTtIXeYUotQUDidpiNA3ZpNMJzxy1yKxVaXRGyfB7impP2uJS1ypOgbZN55RF8C71TTesRGwyzrytfsM2QD42zXIHwiNAL0mshIFEgPKp9ve5Sw9AoSxiEBQAxoZa5i5jdic9AkzWboVGWKLtwr88E1gqn9iICbTxi4CRJS2B4dgPPUNsG4bl5KHE9OnvoBfAE7IuPNbeJBDz0opZskiJeYJ4xREEIlR/DEum0PInkCMgxQoJ5kDAMfCye42V5ytwy/wMbVofitEYl7gAAAABJRU5ErkJggg==",fE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAP6SURBVHic7ZpPctpIFIe/bqSsmRvIJxjnBvgEQetgD6oxVHllcwLgBPGsqDKeEjGedWdOEHKCcAPrCCynSkI9C4SDDdggWojE+nb86X7v/fp1q/W6oaCgoKDg7SL2Zag/VBUBvwNVoIymjMABQBMgmAABMIol35of3fE+/MpUgJ6vHKtEVUgu0UmwmzPRcfyXFctrz3MnWfgHGQrQH6qOgLaBrjIVwrgAPV85ts3XFCP+GpNY02qeuQOTnUqTnfWHqmNbPGQQPEBZCvy/79Unk50aywCDKb8J4/NT972JjoxkwM2dqu8xeIDj23vlm+ho5wzo+cqxLb4DZQP+bIUQXP9Zc1u79LFzBtgWPjkED6A1V/2hquzSx04C3NypOrCTA7siBL7vq9QDkFoA31dlKTC6IqdC40QWV2mbpxKgP1SVqZ3PvF+FEPyRuu0mf/J9VQ5LVOXMUCWtsSyJNV6aTZL10o89XznvbC6nmro8kNFeRzI4g23brc2AmztVl5J2Rru6TAgjji48N9imzVIG+L4qxzZtrblCG/NtL5RKVNgyC5YWwamF0jr9qroFX8KIo1LEb4jtU3cVUm6/G30yBW7vlY+mbsKZV6wOzmuul5HtEUIPSqH4d5PX50cB+nfqSuzjub4i+DmGB2ACjDV0G6fuaL07zOb91OKBrFf6F4Kfk1EWjuKIVtNbLrNJgKnNJw4geIDzmuuZWhMWqEiL7/2h6iy5tZfR3zD4RbJaj5Ip0Zl/llNbf+DAgofMMgEB7cVMkCAqpo0sWFsZ/KpixqrvshSh5ysHQKI5Nm0gsbI++FWpramvFQG+mHbPtvkKMwEySf9SyFKl5tV5vUaEMFrua2c0zs0/6lg+ns4Y5r9n68rGi9oaEbJAai4tZhsG41lgW/g9X3mld5RlTBtNdePGmvrtUJXDiFbSPpsNmsaxmJ3HZbEOVGyLB+LU7au2RXWH9q+jcSSzDHibCBwZaz7n7UduaAI5nTLK24/cEExkUkEZ5exKPgjGEiCWGTxnfwK05rMEaH50x1lsOQ+ciRUlGQAQhnQRBDk6tFe0put57uRRgAvPDcKQkzciwqhx5l7Ds6LohecGcYjLr7w3EARhxONL2lJVuOm54zDiPb/ik0EQhCEni2cHK0+Gkj+cJIXSNgd+KrQJGrqN2o9K0JwXD0cbZ+51KeJIx3EX2Mu9PaMIAgSDMOJosQy2yItngwBJbb0DdJLbIB8QHKNx0DgIyhxChvy4bDnRcfwNKUeN2vpy+Jy93RR9zu1QPTl4Oz91c/HF6DW5n5FCgLwdyJtCgLwdyJtCgLwdyJv8BHj61pnby1d+AmhawCQRYuvD04KCgoKCgt35H0DpfMjXqkFEAAAAAElFTkSuQmCC",yve="/assets/15-5aSMwcYf.png",bve="/assets/16-CdNGEq1M.png";function wve(e,t){return function(){return e.apply(t,arguments)}}const{toString:g7e}=Object.prototype,{getPrototypeOf:Zj}=Object,{iterator:H_,toStringTag:Ave}=Symbol,W_=(e=>t=>{const n=g7e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zc=e=>(e=e.toLowerCase(),t=>W_(t)===e),V_=e=>t=>typeof t===e,{isArray:Ob}=Array,H3=V_("undefined");function E5(e){return e!==null&&!H3(e)&&e.constructor!==null&&!H3(e.constructor)&&Nl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cve=Zc("ArrayBuffer");function v7e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cve(e.buffer),t}const m7e=V_("string"),Nl=V_("function"),xve=V_("number"),k5=e=>e!==null&&typeof e=="object",y7e=e=>e===!0||e===!1,yS=e=>{if(W_(e)!=="object")return!1;const t=Zj(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ave in e)&&!(H_ in e)},b7e=e=>{if(!k5(e)||E5(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},w7e=Zc("Date"),A7e=Zc("File"),C7e=Zc("Blob"),x7e=Zc("FileList"),S7e=e=>k5(e)&&Nl(e.pipe),E7e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nl(e.append)&&((t=W_(e))==="formdata"||t==="object"&&Nl(e.toString)&&e.toString()==="[object FormData]"))},k7e=Zc("URLSearchParams"),[T7e,_7e,D7e,I7e]=["ReadableStream","Request","Response","Headers"].map(Zc),O7e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function T5(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ob(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(E5(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function Sve(e,t){if(E5(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Fg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Eve=e=>!H3(e)&&e!==Fg;function sL(){const{caseless:e}=Eve(this)&&this||{},t={},n=(r,o)=>{const i=e&&Sve(t,o)||o;yS(t[i])&&yS(r)?t[i]=sL(t[i],r):yS(r)?t[i]=sL({},r):Ob(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&T5(arguments[r],n);return t}const M7e=(e,t,n,{allOwnKeys:r}={})=>(T5(t,(o,i)=>{n&&Nl(o)?e[i]=wve(o,n):e[i]=o},{allOwnKeys:r}),e),P7e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),N7e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},R7e=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Zj(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},B7e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},L7e=e=>{if(!e)return null;if(Ob(e))return e;let t=e.length;if(!xve(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},F7e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zj(Uint8Array)),U7e=(e,t)=>{const r=(e&&e[H_]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},z7e=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$7e=Zc("HTMLFormElement"),j7e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),HZ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),H7e=Zc("RegExp"),kve=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};T5(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},W7e=e=>{kve(e,(t,n)=>{if(Nl(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nl(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},V7e=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ob(e)?r(e):r(String(e).split(t)),n},q7e=()=>{},G7e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function K7e(e){return!!(e&&Nl(e.append)&&e[Ave]==="FormData"&&e[H_])}const Y7e=e=>{const t=new Array(10),n=(r,o)=>{if(k5(r)){if(t.indexOf(r)>=0)return;if(E5(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Ob(r)?[]:{};return T5(r,(a,s)=>{const l=n(a,o+1);!H3(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Q7e=Zc("AsyncFunction"),Z7e=e=>e&&(k5(e)||Nl(e))&&Nl(e.then)&&Nl(e.catch),Tve=((e,t)=>e?setImmediate:t?((n,r)=>(Fg.addEventListener("message",({source:o,data:i})=>{o===Fg&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Fg.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Nl(Fg.postMessage)),X7e=typeof queueMicrotask<"u"?queueMicrotask.bind(Fg):typeof process<"u"&&process.nextTick||Tve,J7e=e=>e!=null&&Nl(e[H_]),hn={isArray:Ob,isArrayBuffer:Cve,isBuffer:E5,isFormData:E7e,isArrayBufferView:v7e,isString:m7e,isNumber:xve,isBoolean:y7e,isObject:k5,isPlainObject:yS,isEmptyObject:b7e,isReadableStream:T7e,isRequest:_7e,isResponse:D7e,isHeaders:I7e,isUndefined:H3,isDate:w7e,isFile:A7e,isBlob:C7e,isRegExp:H7e,isFunction:Nl,isStream:S7e,isURLSearchParams:k7e,isTypedArray:F7e,isFileList:x7e,forEach:T5,merge:sL,extend:M7e,trim:O7e,stripBOM:P7e,inherits:N7e,toFlatObject:R7e,kindOf:W_,kindOfTest:Zc,endsWith:B7e,toArray:L7e,forEachEntry:U7e,matchAll:z7e,isHTMLForm:$7e,hasOwnProperty:HZ,hasOwnProp:HZ,reduceDescriptors:kve,freezeMethods:W7e,toObjectSet:V7e,toCamelCase:j7e,noop:q7e,toFiniteNumber:G7e,findKey:Sve,global:Fg,isContextDefined:Eve,isSpecCompliantForm:K7e,toJSONObject:Y7e,isAsyncFn:Q7e,isThenable:Z7e,setImmediate:Tve,asap:X7e,isIterable:J7e};function Co(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}hn.inherits(Co,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:hn.toJSONObject(this.config),code:this.code,status:this.status}}});const _ve=Co.prototype,Dve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Dve[e]={value:e}});Object.defineProperties(Co,Dve);Object.defineProperty(_ve,"isAxiosError",{value:!0});Co.from=(e,t,n,r,o,i)=>{const a=Object.create(_ve);return hn.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Co.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const e9e=null;function lL(e){return hn.isPlainObject(e)||hn.isArray(e)}function Ive(e){return hn.endsWith(e,"[]")?e.slice(0,-2):e}function WZ(e,t,n){return e?e.concat(t).map(function(o,i){return o=Ive(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function t9e(e){return hn.isArray(e)&&!e.some(lL)}const n9e=hn.toFlatObject(hn,{},null,function(t){return/^is[A-Z]/.test(t)});function q_(e,t,n){if(!hn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=hn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!hn.isUndefined(g[h])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&hn.isSpecCompliantForm(t);if(!hn.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(hn.isDate(v))return v.toISOString();if(hn.isBoolean(v))return v.toString();if(!l&&hn.isBlob(v))throw new Co("Blob is not supported. Use a Buffer instead.");return hn.isArrayBuffer(v)||hn.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,h,g){let y=v;if(v&&!g&&typeof v=="object"){if(hn.endsWith(h,"{}"))h=r?h:h.slice(0,-2),v=JSON.stringify(v);else if(hn.isArray(v)&&t9e(v)||(hn.isFileList(v)||hn.endsWith(h,"[]"))&&(y=hn.toArray(v)))return h=Ive(h),y.forEach(function(b,w){!(hn.isUndefined(b)||b===null)&&t.append(a===!0?WZ([h],w,i):a===null?h:h+"[]",u(b))}),!1}return lL(v)?!0:(t.append(WZ(g,h,i),u(v)),!1)}const c=[],f=Object.assign(n9e,{defaultVisitor:d,convertValue:u,isVisitable:lL});function p(v,h){if(!hn.isUndefined(v)){if(c.indexOf(v)!==-1)throw Error("Circular reference detected in "+h.join("."));c.push(v),hn.forEach(v,function(y,m){(!(hn.isUndefined(y)||y===null)&&o.call(t,y,hn.isString(m)?m.trim():m,h,f))===!0&&p(y,h?h.concat(m):[m])}),c.pop()}}if(!hn.isObject(e))throw new TypeError("data must be an object");return p(e),t}function VZ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xj(e,t){this._pairs=[],e&&q_(e,this,t)}const Ove=Xj.prototype;Ove.append=function(t,n){this._pairs.push([t,n])};Ove.toString=function(t){const n=t?function(r){return t.call(this,r,VZ)}:VZ;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function r9e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mve(e,t,n){if(!t)return e;const r=n&&n.encode||r9e;hn.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=hn.isURLSearchParams(t)?t.toString():new Xj(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class qZ{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){hn.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Pve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},o9e=typeof URLSearchParams<"u"?URLSearchParams:Xj,i9e=typeof FormData<"u"?FormData:null,a9e=typeof Blob<"u"?Blob:null,s9e={isBrowser:!0,classes:{URLSearchParams:o9e,FormData:i9e,Blob:a9e},protocols:["http","https","file","blob","url","data"]},Jj=typeof window<"u"&&typeof document<"u",uL=typeof navigator=="object"&&navigator||void 0,l9e=Jj&&(!uL||["ReactNative","NativeScript","NS"].indexOf(uL.product)<0),u9e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c9e=Jj&&window.location.href||"http://localhost",d9e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jj,hasStandardBrowserEnv:l9e,hasStandardBrowserWebWorkerEnv:u9e,navigator:uL,origin:c9e},Symbol.toStringTag,{value:"Module"})),$s={...d9e,...s9e};function f9e(e,t){return q_(e,new $s.classes.URLSearchParams,{visitor:function(n,r,o,i){return $s.isNode&&hn.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function p9e(e){return hn.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h9e(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Nve(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&hn.isArray(o)?o.length:a,l?(hn.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!hn.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&hn.isArray(o[a])&&(o[a]=h9e(o[a])),!s)}if(hn.isFormData(e)&&hn.isFunction(e.entries)){const n={};return hn.forEachEntry(e,(r,o)=>{t(p9e(r),o,n,0)}),n}return null}function g9e(e,t,n){if(hn.isString(e))try{return(t||JSON.parse)(e),hn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _5={transitional:Pve,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=hn.isObject(t);if(i&&hn.isHTMLForm(t)&&(t=new FormData(t)),hn.isFormData(t))return o?JSON.stringify(Nve(t)):t;if(hn.isArrayBuffer(t)||hn.isBuffer(t)||hn.isStream(t)||hn.isFile(t)||hn.isBlob(t)||hn.isReadableStream(t))return t;if(hn.isArrayBufferView(t))return t.buffer;if(hn.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return f9e(t,this.formSerializer).toString();if((s=hn.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return q_(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),g9e(t)):t}],transformResponse:[function(t){const n=this.transitional||_5.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(hn.isResponse(t)||hn.isReadableStream(t))return t;if(t&&hn.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Co.from(s,Co.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$s.classes.FormData,Blob:$s.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};hn.forEach(["delete","get","head","post","put","patch"],e=>{_5.headers[e]={}});const v9e=hn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),m9e=e=>{const t={};let n,r,o;return e&&e.split(`
- `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&v9e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},GZ=Symbol("internals");function I2(e){return e&&String(e).trim().toLowerCase()}function bS(e){return e===!1||e==null?e:hn.isArray(e)?e.map(bS):String(e)}function y9e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const b9e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function aI(e,t,n,r,o){if(hn.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!hn.isString(t)){if(hn.isString(r))return t.indexOf(r)!==-1;if(hn.isRegExp(r))return r.test(t)}}function w9e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function A9e(e,t){const n=hn.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Rl=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,u){const d=I2(l);if(!d)throw new Error("header name must be a non-empty string");const c=hn.findKey(o,d);(!c||o[c]===void 0||u===!0||u===void 0&&o[c]!==!1)&&(o[c||l]=bS(s))}const a=(s,l)=>hn.forEach(s,(u,d)=>i(u,d,l));if(hn.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(hn.isString(t)&&(t=t.trim())&&!b9e(t))a(m9e(t),n);else if(hn.isObject(t)&&hn.isIterable(t)){let s={},l,u;for(const d of t){if(!hn.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[u=d[0]]=(l=s[u])?hn.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=I2(t),t){const r=hn.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return y9e(o);if(hn.isFunction(n))return n.call(this,o,r);if(hn.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=I2(t),t){const r=hn.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||aI(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=I2(a),a){const s=hn.findKey(r,a);s&&(!n||aI(r,r[s],s,n))&&(delete r[s],o=!0)}}return hn.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||aI(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return hn.forEach(this,(o,i)=>{const a=hn.findKey(r,i);if(a){n[a]=bS(o),delete n[i];return}const s=t?w9e(i):String(i).trim();s!==i&&delete n[i],n[s]=bS(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return hn.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&hn.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[GZ]=this[GZ]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=I2(a);r[s]||(A9e(o,a),r[s]=!0)}return hn.isArray(t)?t.forEach(i):i(t),this}};Rl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);hn.reduceDescriptors(Rl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});hn.freezeMethods(Rl);function sI(e,t){const n=this||_5,r=t||n,o=Rl.from(r.headers);let i=r.data;return hn.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Rve(e){return!!(e&&e.__CANCEL__)}function Mb(e,t,n){Co.call(this,e??"canceled",Co.ERR_CANCELED,t,n),this.name="CanceledError"}hn.inherits(Mb,Co,{__CANCEL__:!0});function Bve(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Co("Request failed with status code "+n.status,[Co.ERR_BAD_REQUEST,Co.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function C9e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function x9e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[i];a||(a=u),n[o]=l,r[o]=u;let c=i,f=0;for(;c!==o;)f+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const p=d&&u-d;return p?Math.round(f*1e3/p):void 0}}function S9e(e,t){let n=0,r=1e3/t,o,i;const a=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),c=d-n;c>=r?a(u,d):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-c)))},()=>o&&a(o)]}const pE=(e,t,n=3)=>{let r=0;const o=x9e(50,250);return S9e(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),d=a<=s;r=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&d?(s-a)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},n)},KZ=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},YZ=e=>(...t)=>hn.asap(()=>e(...t)),E9e=$s.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$s.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($s.origin),$s.navigator&&/(msie|trident)/i.test($s.navigator.userAgent)):()=>!0,k9e=$s.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];hn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),hn.isString(r)&&a.push("path="+r),hn.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function T9e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _9e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Lve(e,t,n){let r=!T9e(t);return e&&(r||n==!1)?_9e(e,t):t}const QZ=e=>e instanceof Rl?{...e}:e;function Dv(e,t){t=t||{};const n={};function r(u,d,c,f){return hn.isPlainObject(u)&&hn.isPlainObject(d)?hn.merge.call({caseless:f},u,d):hn.isPlainObject(d)?hn.merge({},d):hn.isArray(d)?d.slice():d}function o(u,d,c,f){if(hn.isUndefined(d)){if(!hn.isUndefined(u))return r(void 0,u,c,f)}else return r(u,d,c,f)}function i(u,d){if(!hn.isUndefined(d))return r(void 0,d)}function a(u,d){if(hn.isUndefined(d)){if(!hn.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,c){if(c in t)return r(u,d);if(c in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,d,c)=>o(QZ(u),QZ(d),c,!0)};return hn.forEach(Object.keys({...e,...t}),function(d){const c=l[d]||o,f=c(e[d],t[d],d);hn.isUndefined(f)&&c!==s||(n[d]=f)}),n}const Fve=e=>{const t=Dv({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Rl.from(a),t.url=Mve(Lve(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(hn.isFormData(n)){if($s.hasStandardBrowserEnv||$s.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(c=>c.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if($s.hasStandardBrowserEnv&&(r&&hn.isFunction(r)&&(r=r(t)),r||r!==!1&&E9e(t.url))){const u=o&&i&&k9e.read(i);u&&a.set(o,u)}return t},D9e=typeof XMLHttpRequest<"u",I9e=D9e&&function(e){return new Promise(function(n,r){const o=Fve(e);let i=o.data;const a=Rl.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,d,c,f,p,v;function h(){p&&p(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function y(){if(!g)return;const b=Rl.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};Bve(function(E){n(E),h()},function(E){r(E),h()},A),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new Co("Request aborted",Co.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new Co("Network Error",Co.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||Pve;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new Co(w,A.clarifyTimeoutError?Co.ETIMEDOUT:Co.ECONNABORTED,e,g)),g=null},i===void 0&&a.setContentType(null),"setRequestHeader"in g&&hn.forEach(a.toJSON(),function(w,A){g.setRequestHeader(A,w)}),hn.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),s&&s!=="json"&&(g.responseType=o.responseType),u&&([f,v]=pE(u,!0),g.addEventListener("progress",f)),l&&g.upload&&([c,p]=pE(l),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(d=b=>{g&&(r(!b||b.type?new Mb(null,e,g):b),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const m=C9e(o.url);if(m&&$s.protocols.indexOf(m)===-1){r(new Co("Unsupported protocol "+m+":",Co.ERR_BAD_REQUEST,e));return}g.send(i||null)})},O9e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Co?d:new Mb(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new Co(`timeout ${t} of ms exceeded`,Co.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>hn.asap(s),l}},M9e=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},P9e=async function*(e,t){for await(const n of N9e(e))yield*M9e(n,t)},N9e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ZZ=(e,t,n,r)=>{const o=P9e(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await o.next();if(u){s(),l.close();return}let c=d.byteLength;if(n){let f=i+=c;n(f)}l.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},G_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Uve=G_&&typeof ReadableStream=="function",R9e=G_&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zve=(e,...t)=>{try{return!!e(...t)}catch{return!1}},B9e=Uve&&zve(()=>{let e=!1;const t=new Request($s.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),XZ=64*1024,cL=Uve&&zve(()=>hn.isReadableStream(new Response("").body)),hE={stream:cL&&(e=>e.body)};G_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!hE[t]&&(hE[t]=hn.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Co(`Response type '${t}' is not supported`,Co.ERR_NOT_SUPPORT,r)})})})(new Response);const L9e=async e=>{if(e==null)return 0;if(hn.isBlob(e))return e.size;if(hn.isSpecCompliantForm(e))return(await new Request($s.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(hn.isArrayBufferView(e)||hn.isArrayBuffer(e))return e.byteLength;if(hn.isURLSearchParams(e)&&(e=e+""),hn.isString(e))return(await R9e(e)).byteLength},F9e=async(e,t)=>{const n=hn.toFiniteNumber(e.getContentLength());return n??L9e(t)},U9e=G_&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:d,withCredentials:c="same-origin",fetchOptions:f}=Fve(e);u=u?(u+"").toLowerCase():"text";let p=O9e([o,i&&i.toAbortSignal()],a),v;const h=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(l&&B9e&&n!=="get"&&n!=="head"&&(g=await F9e(d,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(hn.isFormData(r)&&(S=A.headers.get("content-type"))&&d.setContentType(S),A.body){const[E,D]=KZ(g,pE(YZ(l)));r=ZZ(A.body,XZ,E,D)}}hn.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:y?c:void 0});let m=await fetch(v,f);const b=cL&&(u==="stream"||u==="response");if(cL&&(s||b&&h)){const A={};["status","statusText","headers"].forEach(_=>{A[_]=m[_]});const S=hn.toFiniteNumber(m.headers.get("content-length")),[E,D]=s&&KZ(S,pE(YZ(s),!0))||[];m=new Response(ZZ(m.body,XZ,E,()=>{D&&D(),h&&h()}),A)}u=u||"text";let w=await hE[hn.findKey(hE,u)||"text"](m,e);return!b&&h&&h(),await new Promise((A,S)=>{Bve(A,S,{data:w,headers:Rl.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:v})})}catch(y){throw h&&h(),y&&y.name==="TypeError"&&/Load failed|fetch/i.test(y.message)?Object.assign(new Co("Network Error",Co.ERR_NETWORK,e,v),{cause:y.cause||y}):Co.from(y,y&&y.code,e,v)}}),dL={http:e9e,xhr:I9e,fetch:U9e};hn.forEach(dL,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const JZ=e=>`- ${e}`,z9e=e=>hn.isFunction(e)||e===null||e===!1,$ve={getAdapter:e=>{e=hn.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!z9e(n)&&(r=dL[(a=String(n)).toLowerCase()],r===void 0))throw new Co(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
- `+i.map(JZ).join(`
- `):" "+JZ(i[0]):"as no adapter specified";throw new Co("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:dL};function lI(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mb(null,e)}function eX(e){return lI(e),e.headers=Rl.from(e.headers),e.data=sI.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$ve.getAdapter(e.adapter||_5.adapter)(e).then(function(r){return lI(e),r.data=sI.call(e,e.transformResponse,r),r.headers=Rl.from(r.headers),r},function(r){return Rve(r)||(lI(e),r&&r.response&&(r.response.data=sI.call(e,e.transformResponse,r.response),r.response.headers=Rl.from(r.response.headers))),Promise.reject(r)})}const jve="1.11.0",K_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{K_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tX={};K_.transitional=function(t,n,r){function o(i,a){return"[Axios v"+jve+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Co(o(a," has been removed"+(n?" in "+n:"")),Co.ERR_DEPRECATED);return n&&!tX[a]&&(tX[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};K_.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function $9e(e,t,n){if(typeof e!="object")throw new Co("options must be an object",Co.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Co("option "+i+" must be "+l,Co.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Co("Unknown option "+i,Co.ERR_BAD_OPTION)}}const wS={assertOptions:$9e,validators:K_},ad=wS.validators;let Qg=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qZ,response:new qZ}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Dv(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&wS.assertOptions(r,{silentJSONParsing:ad.transitional(ad.boolean),forcedJSONParsing:ad.transitional(ad.boolean),clarifyTimeoutError:ad.transitional(ad.boolean)},!1),o!=null&&(hn.isFunction(o)?n.paramsSerializer={serialize:o}:wS.assertOptions(o,{encode:ad.function,serialize:ad.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wS.assertOptions(n,{baseUrl:ad.spelling("baseURL"),withXsrfToken:ad.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&hn.merge(i.common,i[n.method]);i&&hn.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=Rl.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let d,c=0,f;if(!l){const v=[eX.bind(this),void 0];for(v.unshift(...s),v.push(...u),f=v.length,d=Promise.resolve(n);c<f;)d=d.then(v[c++],v[c++]);return d}f=s.length;let p=n;for(c=0;c<f;){const v=s[c++],h=s[c++];try{p=v(p)}catch(g){h.call(this,g);break}}try{d=eX.call(this,p)}catch(v){return Promise.reject(v)}for(c=0,f=u.length;c<f;)d=d.then(u[c++],u[c++]);return d}getUri(t){t=Dv(this.defaults,t);const n=Lve(t.baseURL,t.url,t.allowAbsoluteUrls);return Mve(n,t.params,t.paramsSerializer)}};hn.forEach(["delete","get","head","options"],function(t){Qg.prototype[t]=function(n,r){return this.request(Dv(r||{},{method:t,url:n,data:(r||{}).data}))}});hn.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Dv(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Qg.prototype[t]=n(),Qg.prototype[t+"Form"]=n(!0)});let j9e=class Hve{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Mb(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Hve(function(o){t=o}),cancel:t}}};function H9e(e){return function(n){return e.apply(null,n)}}function W9e(e){return hn.isObject(e)&&e.isAxiosError===!0}const fL={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fL).forEach(([e,t])=>{fL[t]=e});function Wve(e){const t=new Qg(e),n=wve(Qg.prototype.request,t);return hn.extend(n,Qg.prototype,t,{allOwnKeys:!0}),hn.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Wve(Dv(e,o))},n}const ta=Wve(_5);ta.Axios=Qg;ta.CanceledError=Mb;ta.CancelToken=j9e;ta.isCancel=Rve;ta.VERSION=jve;ta.toFormData=q_;ta.AxiosError=Co;ta.Cancel=ta.CanceledError;ta.all=function(t){return Promise.all(t)};ta.spread=H9e;ta.isAxiosError=W9e;ta.mergeConfig=Dv;ta.AxiosHeaders=Rl;ta.formToJSON=e=>Nve(hn.isHTMLForm(e)?new FormData(e):e);ta.getAdapter=$ve.getAdapter;ta.HttpStatusCode=fL;ta.default=ta;const{Axios:tpn,AxiosError:npn,CanceledError:rpn,isCancel:opn,CancelToken:ipn,VERSION:apn,all:spn,Cancel:lpn,isAxiosError:upn,spread:cpn,toFormData:dpn,AxiosHeaders:fpn,HttpStatusCode:ppn,formToJSON:hpn,getAdapter:gpn,mergeConfig:vpn}=ta,Y_="shudao_refresh_token",eH="shudao_token_type";function Xf(){return localStorage.getItem(Y_)}function V9e(){return localStorage.getItem(Y_)}function Iv(){return localStorage.getItem(eH)||"Bearer"}function Vve(){return localStorage.getItem("shudao_username")||null}function q9e(e,t="Bearer"){localStorage.setItem(Y_,e),localStorage.setItem(eH,t)}function AS(){localStorage.removeItem(Y_),localStorage.removeItem(eH),localStorage.removeItem("shudao_username")}const nX="https://aqai.shudaodsj.com:22001/api/ticket/process";let gE=null,X4=null,z1=null;try{gE=window.location.href,X4=window.location.search,z1=window.location.hash,console.log("💾 已保存原始 URL:",gE),console.log("💾 已保存原始 Search:",X4),console.log("💾 已保存原始 Hash:",z1)}catch(e){console.warn("⚠️ 保存原始 URL 失败:",e)}let C4=!1;function G9e(){console.log("🔍 === 开始获取票据参数 ==="),console.log("📍 当前完整 URL:",window.location.href),console.log("📍 当前 location.search:",window.location.search),console.log("📍 当前 location.hash:",window.location.hash),console.log("📍 保存的原始 URL:",gE),console.log("📍 保存的原始 Search:",X4),console.log("📍 保存的原始 Hash:",z1);let e="";if(X4)e=X4,console.log("✅ 从保存的原始 Search 中提取到查询参数:",e.substring(0,100));else if(z1&&z1.includes("?")){const r=z1.split("?");r.length>1&&(e="?"+r.slice(1).join("?"),console.log("✅ 从保存的原始 Hash 中提取到查询参数:",e.substring(0,100)))}if(!e&&(window.location.search&&(e=window.location.search,console.log("✅ 从当前 Search 中提取到查询参数:",e.substring(0,100))),!e&&window.location.hash&&window.location.hash.includes("?"))){const r=window.location.hash.split("?");r.length>1&&(e="?"+r.slice(1).join("?"),console.log("✅ 从当前 Hash 中提取到查询参数(兼容模式):",e.substring(0,100)))}if(!e)return console.log("❌ 未找到查询参数"),console.log("🔍 === 票据获取结束 ==="),null;console.log("📍 原始查询字符串:",e),console.log("📍 查询字符串长度:",e.length),console.log("📍 查询字符串前10个字符:",e.substring(0,10)),e.startsWith("?&")&&(console.log("⚠️ 检测到 URL 格式异常: ?& 开头,正在修正..."),e="?"+e.substring(2),console.log("✅ 修正后的查询字符串:",e.substring(0,100)));let t=null;if(t=new URLSearchParams(e).get("iamcaspticket"),console.log("📋 方式1 (URLSearchParams) 结果:",t?t.substring(0,50)+"...":"null"),!t&&e){console.log("⚠️ URLSearchParams 解析失败,尝试手动解析...");let r=e;r.startsWith("?&")?r=r.substring(2):r.startsWith("?")&&(r=r.substring(1)),console.log("📋 清理后的字符串:",r.substring(0,50)+"...");const o=r.split("&");console.log("📋 分割后的参数数量:",o.length);for(const i of o){const a=i.indexOf("=");if(a===-1)continue;const s=i.substring(0,a),l=i.substring(a+1);if(console.log("📋 检查参数:",s),s==="iamcaspticket"&&l){t=decodeURIComponent(l),console.log("✅ 方式2 (手动解析) 找到票据:",t.substring(0,50)+"...");break}}}if(t){console.log("🎫 成功获取到票据!"),console.log("🎫 票据长度:",t.length),console.log("🎫 票据前50个字符:",t.substring(0,50)+"...");try{if(t.includes("%")){const r=decodeURIComponent(t);console.log("🔄 票据已解码"),t=r}}catch(r){console.log("⚠️ 票据解码失败,使用原始值:",r.message)}return console.log("🔍 === 票据获取成功 ==="),t}return console.log("❌ 未找到票据参数 iamcaspticket"),console.log("📍 当前 URL:",window.location.href),console.log("📍 查询字符串:",e),console.log("🔍 === 票据获取结束 ==="),null}function K9e(){try{console.log("=".repeat(60)),console.log("🧹 开始清理 URL 中的票据参数..."),console.log("📍 调用栈:",new Error().stack),console.log("📍 当前 URL:",window.location.href);const e=window.location.href,t=new URL(e),n=["iamcaspticket","iamtarget","ip"];let r=!1;for(const o of n)t.searchParams.has(o)&&(console.log(`✅ 从查询参数中删除: ${o}`),t.searchParams.delete(o),r=!0);if(r){window.history.replaceState(null,"",t.toString()),console.log("✅ URL 已更新(普通模式)"),console.log("📍 新 URL:",window.location.href);return}if(t.hash&&t.hash.includes("?")){const o=t.hash.split("?"),i=o[0];let a=o.slice(1).join("?");console.log("📍 Hash 路径:",i),console.log("📍 Hash 原始查询:",a),a.startsWith("&")&&(console.log("⚠️ 检测到 Hash 查询参数以 & 开头,正在修正..."),a=a.substring(1),console.log("✅ 修正后的 Hash 查询:",a));const s=new URLSearchParams(a);console.log("📋 Hash 查询参数列表:");for(const[u,d]of s.entries())console.log(` - ${u}: ${d.substring(0,50)}${d.length>50?"...":""}`);let l=!1;for(const u of n)s.has(u)&&(console.log(`✅ 从 Hash 中删除参数(兼容模式): ${u}`),s.delete(u),l=!0);if(l){const u=s.toString(),d=u?`${i}?${u}`:i;console.log("📍 新的 Hash:",d),console.log("📍 当前 Hash:",window.location.hash);try{console.log("🔄 开始更新地址栏..."),window.location.hash=d,console.log("✅ 地址栏已更新(兼容模式)"),console.log("📍 新的 Hash:",window.location.hash),console.log("📍 完整 URL:",window.location.href)}catch(c){console.error("❌ 更新地址栏失败:",c);const f=t.origin+t.pathname+d;window.history.replaceState(null,"",f),console.log("✅ 使用 replaceState 更新(降级方案)")}return}}console.log("ℹ️ URL 中没有票据参数,无需清理")}catch(e){console.error("❌ 清理票据参数失败:",e),console.error("❌ 错误详情:",e.message),console.error("❌ 错误堆栈:",e.stack)}}async function Y9e(e){try{console.log("🔍 正在处理票据..."),console.log("📡 请求接口:",nX),console.log("📦 票据数据长度:",e.length),console.log("📦 票据前100字符:",e.substring(0,100));const t={ticket_data:e};console.log("📤 发送请求..."),console.log("📤 请求体:",JSON.stringify(t).substring(0,150));const n=await fetch(nX,{method:"POST",headers:{"Content-Type":"application/json","X-Auth-Type":"ticket"},body:JSON.stringify(t),credentials:"include"});if(console.log("📥 收到响应,状态码:",n.status),!n.ok){const o=await n.text();throw console.error("❌ HTTP错误响应:",o),new Error(`HTTP错误: ${n.status} - ${o}`)}const r=await n.json();if(console.log("📋 响应数据:",r),r.refresh_token&&r.token_type)return console.log("✅ 票据处理成功"),console.log("🎫 Token类型:",r.token_type),console.log("🔑 Refresh Token:",r.refresh_token.substring(0,50)+"..."),r.username&&console.log("👤 用户名:",r.username),{refreshToken:r.refresh_token,tokenType:r.token_type,username:r.username||null};throw console.error("❌ 响应数据格式错误,缺少必要字段"),new Error("票据处理失败: 响应数据不完整")}catch(t){throw console.error("❌ 票据处理失败:",t),console.error("❌ 错误详情:",t.message),t}}function Q9e(e,t,n=null){try{return console.log("💾 开始保存令牌..."),console.log("🎫 Token类型:",t),console.log("🔑 Refresh Token:",e.substring(0,50)+"..."),localStorage.setItem("shudao_refresh_token",e),localStorage.setItem("shudao_token_type",t),n&&(localStorage.setItem("shudao_username",n),console.log("👤 用户名:",n)),console.log("=".repeat(60)),console.log("✅ 令牌保存完成!"),console.log(" - shudao_refresh_token:",localStorage.getItem("shudao_refresh_token")?.substring(0,50)+"..."),console.log(" - shudao_token_type:",localStorage.getItem("shudao_token_type")),n&&console.log(" - shudao_username:",localStorage.getItem("shudao_username")),console.log("=".repeat(60)),!0}catch(r){throw console.error("❌ 保存令牌失败:",r),r}}function Z9e(){try{const e=localStorage.getItem("shudao_refresh_token"),t=localStorage.getItem("shudao_token_type"),n=!!(e&&t);return n?(console.log("✅ 检测到本地已有令牌:"),console.log(" - Refresh Token:",e.substring(0,50)+"..."),console.log(" - Token Type:",t)):(console.log("⚠️ 本地没有完整的令牌"),console.log(" - Refresh Token:",e?"有":"无"),console.log(" - Token Type:",t?"有":"无")),n}catch(e){return console.error("❌ 检查本地令牌失败:",e),!1}}function X9e(){try{const e=localStorage.getItem("shudao_refresh_token"),t=localStorage.getItem("shudao_token_type");return!e||!t?null:{refreshToken:e,tokenType:t}}catch(e){return console.error("❌ 获取本地令牌失败:",e),null}}const pL=[];function bs(e,t){const n={level:e,time:new Date().toLocaleTimeString(),message:t};pL.push(n),console.log(`[${e.toUpperCase()}] ${t}`);try{sessionStorage.setItem("auth_debug_logs",JSON.stringify(pL))}catch(r){console.warn("无法保存调试日志:",r)}}async function J9e(){C4=!0,pL.length=0,bs("info","🚀 开始票据认证流程"),bs("info",`当前 URL: ${window.location.href}`),bs("info",`原始 URL: ${gE}`),bs("info",`User Agent: ${navigator.userAgent.substring(0,100)}...`),bs("info",`是否移动端: ${/Mobile|Android|iPhone|iPad/i.test(navigator.userAgent)}`);try{bs("info","步骤1: 获取票据");const e=G9e();if(!e){if(bs("warning","⚠️ 未找到票据"),Z9e())return C4=!1,bs("success","✅ 本地已有令牌,使用本地令牌"),{success:!0,token:X9e(),fromCache:!0};throw bs("error","❌ 未找到票据且本地无令牌"),new Error("TICKET_NOT_FOUND")}bs("success",`✅ 成功获取票据 (长度: ${e.length})`),bs("info","步骤2: 调用后端处理票据");const{refreshToken:t,tokenType:n,username:r}=await Y9e(e);return bs("success","✅ 票据处理成功,获得 token"),bs("info","步骤3: 保存令牌到本地"),Q9e(t,n,r),bs("success",`✅ 令牌已保存 (用户: ${r||"未知"})`),bs("success","🎉 票据认证流程完成!"),C4=!1,{success:!0,token:{refreshToken:t,tokenType:n,username:r},fromTicket:!0}}catch(e){throw bs("error",`❌ 认证失败: ${e.message}`),bs("error",`错误堆栈: ${e.stack?.substring(0,200)}...`),C4=!1,e}}const ao=ta.create({baseURL:window.location.origin+"/apiv1",timeout:6e5});async function eIe(e,t){try{if(e&&(e.includes("/tracking/")||e.includes("/auth/"))){console.log("ℹ️ 跳过埋点接口的埋点记录:",e);return}const n={api_path:e,method:t||"GET",extra_data:""};console.log("📊 记录埋点:",n);const r=Xf(),o={"Content-Type":"application/json"};r&&(o.Authorization=`Bearer ${r}`),fetch(window.location.origin+"/apiv1/tracking/record",{method:"POST",headers:o,body:JSON.stringify(n)}).then(i=>{i.ok?console.log("✅ 埋点记录成功"):console.warn("⚠️ 埋点记录返回非200状态码:",i.status)}).catch(i=>{console.error("❌ 埋点记录失败:",i)})}catch(n){console.error("❌ 埋点记录异常:",n)}}ao.interceptors.request.use(e=>{console.log(e,"config");const t=Xf(),n=Iv();t&&(e.headers.Authorization=`${n.charAt(0).toUpperCase()+n.slice(1)} ${t}`,console.log("🔑 已添加 Authorization 头:",`${n} ${t.substring(0,50)}...`)),e.method==="get"?e.headers["Content-Type"]="application/x-www-form-urlencoded":e.method==="post"&&(e.data instanceof FormData||(e.headers["Content-Type"]="application/json"));const r=e.baseURL||window.location.origin+"/apiv1",o=e.url,i=o.startsWith("http")?o:r.replace(/\/$/,"")+(o.startsWith("/")?o:"/"+o),a=(e.method||"GET").toUpperCase();return eIe(i,a),e},e=>Promise.reject(e));ao.interceptors.response.use(e=>e.data.statusCode===200||e.data.code===200?e.data:Promise.reject(e.data),e=>{if(e.response&&e.response.status===401)return C4?(console.log("⏳ 正在认证中,延迟处理 401 错误"),Promise.reject(e)):(console.error("❌ Token 过期或无效,需要重新登录"),AS(),window.location.href="/#/404?reason=token_expired",Promise.reject(e));let t="";switch(e.response?.status){case 401:t="TOKEN过期或无效";break;case 403:t="无权访问";break;case 404:t="请求路径错误";break;case 500:t="服务器出错";break;default:t="未知错误";break}return console.error("📡 请求错误:",t,e.response?.status),Promise.reject(e)});const zn={getRecommendQuestion:e=>ao.get("/recommend_question",{params:e}),submitFeedback:e=>ao.post("/submit_feedback",e),getPolicyFile:e=>ao.get("/get_policy_file",{params:e}),sendDeepseekMessage:e=>ao.post("/send_deepseek_message",e),buildExamPrompt:e=>ao.post("/exam/build_prompt",e),saveExam:e=>ao.post("/save_exam",e),getExamHistory:()=>ao.get("/get_exam_history"),getExamById:e=>ao.get(`/get_exam/${e}`),uploadOss:e=>ao.post("/oss/upload",e),getFunctionCard:e=>ao.get("/get_function_card",{params:e}),getHotQuestion:e=>ao.get("/get_hot_question",{params:e}),getHistoryRecord:e=>ao.get("/get_history_record",{params:e}),generatePPTOutline:e=>ao.post("/send_deepseek_message",e),uploadImage:e=>ao.post("/oss/shudao/upload_image",e),uploadJson:e=>ao.post("/oss/shudao/upload_json",e),saveQuestionModification:e=>ao.post("/save_question_modification",e),reModifyQuestion:e=>ao.post("/re_modify_question",e),reProduceSingleQuestion:e=>ao.post("/re_produce_single_question",e),hazardDetection:e=>ao.post("/hazard",e),likeAndDislike:e=>ao.post("/like_and_dislike",e),getHazardHistory:e=>ao.get("/get_history_recognition_record",{params:e}),getRecognitionRecordDetail:e=>ao.get("/get_recognition_record_detail",{params:e}),getFileLink:e=>ao.get("/get_file_link",{params:e}),getUserRecommendQuestion:e=>ao.get("/get_user_recommend_question",{params:e}),deleteConversation:e=>ao.post("/delete_conversation",e),deleteHistoryRecord:e=>ao.post("/delete_history_record",e),deleteRecognitionRecord:e=>ao.post("/delete_recognition_record",e),saveStep:e=>ao.post("/save_step",e),getPPTJson:e=>ao.post("/get_ppt_json",e),getThirdSceneExampleImage:e=>ao.get("/get_third_scene_example_image",{params:e}),savePPTOutline:e=>ao.post("/save_ppt_outline",e),submitEvaluation:e=>ao.post("/submit_evaluation",e),getLatestRecognitionRecord:e=>ao.get("/get_latest_recognition_record",{params:e}),saveEditDocument:e=>ao.post("/save_edit_document",e),onlineSearch:e=>ao.get("/online_search",{params:e}),saveOnlineSearchResult:e=>ao.post("/save_online_search_result",e),intentRecognition:e=>ao.post("/intent_recognition",e),streamChatWithDB:e=>ao.post("/stream/chat-with-db",e),updatePolicyFileCount:e=>ao.post("/policy_file_count",e),guessYouWant:e=>ao.post("/guess_you_want",e),getUserDataId:e=>ao.get("/get_user_data_id",{params:e}),recordTracking:e=>ao.post("/tracking/record",e),getTrackingRecords:e=>ao.get("/tracking/records",{params:e}),addApiMapping:e=>ao.post("/tracking/api_mapping",e),getApiMappings:()=>ao.get("/tracking/api_mappings")},tIe="2.11.1",rX=Symbol("INSTALLED_KEY"),qve=Symbol(),J4="el",nIe="is-",Q0=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},Gve=Symbol("namespaceContextKey"),tH=e=>{const t=e||(br()?dn(Gve,K(J4)):K(J4));return ee(()=>C(t)||J4)},Vt=(e,t)=>{const n=tH(t);return{namespace:n,b:(h="")=>Q0(n.value,e,h,"",""),e:h=>h?Q0(n.value,e,"",h,""):"",m:h=>h?Q0(n.value,e,"","",h):"",be:(h,g)=>h&&g?Q0(n.value,e,h,g,""):"",em:(h,g)=>h&&g?Q0(n.value,e,"",h,g):"",bm:(h,g)=>h&&g?Q0(n.value,e,h,"",g):"",bem:(h,g,y)=>h&&g&&y?Q0(n.value,e,h,g,y):"",is:(h,...g)=>{const y=g.length>=1?g[0]:!0;return h&&y?`${nIe}${h}`:""},cssVar:h=>{const g={};for(const y in h)h[y]&&(g[`--${n.value}-${y}`]=h[y]);return g},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const g={};for(const y in h)h[y]&&(g[`--${n.value}-${e}-${y}`]=h[y]);return g},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}};var Kve=typeof global=="object"&&global&&global.Object===Object&&global,rIe=typeof self=="object"&&self&&self.Object===Object&&self,Xc=Kve||rIe||Function("return this")(),Xu=Xc.Symbol,Yve=Object.prototype,oIe=Yve.hasOwnProperty,iIe=Yve.toString,O2=Xu?Xu.toStringTag:void 0;function aIe(e){var t=oIe.call(e,O2),n=e[O2];try{e[O2]=void 0;var r=!0}catch{}var o=iIe.call(e);return r&&(t?e[O2]=n:delete e[O2]),o}var sIe=Object.prototype,lIe=sIe.toString;function uIe(e){return lIe.call(e)}var cIe="[object Null]",dIe="[object Undefined]",oX=Xu?Xu.toStringTag:void 0;function im(e){return e==null?e===void 0?dIe:cIe:oX&&oX in Object(e)?aIe(e):uIe(e)}function jd(e){return e!=null&&typeof e=="object"}var fIe="[object Symbol]";function Q_(e){return typeof e=="symbol"||jd(e)&&im(e)==fIe}function nH(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var fl=Array.isArray,iX=Xu?Xu.prototype:void 0,aX=iX?iX.toString:void 0;function Qve(e){if(typeof e=="string")return e;if(fl(e))return nH(e,Qve)+"";if(Q_(e))return aX?aX.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var pIe=/\s/;function hIe(e){for(var t=e.length;t--&&pIe.test(e.charAt(t)););return t}var gIe=/^\s+/;function vIe(e){return e&&e.slice(0,hIe(e)+1).replace(gIe,"")}function pl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sX=NaN,mIe=/^[-+]0x[0-9a-f]+$/i,yIe=/^0b[01]+$/i,bIe=/^0o[0-7]+$/i,wIe=parseInt;function lX(e){if(typeof e=="number")return e;if(Q_(e))return sX;if(pl(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pl(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vIe(e);var n=yIe.test(e);return n||bIe.test(e)?wIe(e.slice(2),n?2:8):mIe.test(e)?sX:+e}function rH(e){return e}var AIe="[object AsyncFunction]",CIe="[object Function]",xIe="[object GeneratorFunction]",SIe="[object Proxy]";function oH(e){if(!pl(e))return!1;var t=im(e);return t==CIe||t==xIe||t==AIe||t==SIe}var uI=Xc["__core-js_shared__"],uX=(function(){var e=/[^.]+$/.exec(uI&&uI.keys&&uI.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function EIe(e){return!!uX&&uX in e}var kIe=Function.prototype,TIe=kIe.toString;function am(e){if(e!=null){try{return TIe.call(e)}catch{}try{return e+""}catch{}}return""}var _Ie=/[\\^$.*+?()[\]{}|]/g,DIe=/^\[object .+?Constructor\]$/,IIe=Function.prototype,OIe=Object.prototype,MIe=IIe.toString,PIe=OIe.hasOwnProperty,NIe=RegExp("^"+MIe.call(PIe).replace(_Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function RIe(e){if(!pl(e)||EIe(e))return!1;var t=oH(e)?NIe:DIe;return t.test(am(e))}function BIe(e,t){return e?.[t]}function sm(e,t){var n=BIe(e,t);return RIe(n)?n:void 0}var hL=sm(Xc,"WeakMap"),cX=Object.create,LIe=(function(){function e(){}return function(t){if(!pl(t))return{};if(cX)return cX(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function FIe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function UIe(){}function Zve(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var zIe=800,$Ie=16,jIe=Date.now;function HIe(e){var t=0,n=0;return function(){var r=jIe(),o=$Ie-(r-n);if(n=r,o>0){if(++t>=zIe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function WIe(e){return function(){return e}}var vE=(function(){try{var e=sm(Object,"defineProperty");return e({},"",{}),e}catch{}})(),VIe=vE?function(e,t){return vE(e,"toString",{configurable:!0,enumerable:!1,value:WIe(t),writable:!0})}:rH,Xve=HIe(VIe);function qIe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Jve(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function GIe(e){return e!==e}function KIe(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function YIe(e,t,n){return t===t?KIe(e,t,n):Jve(e,GIe,n)}function QIe(e,t){var n=e==null?0:e.length;return!!n&&YIe(e,t,0)>-1}var ZIe=9007199254740991,XIe=/^(?:0|[1-9]\d*)$/;function Z_(e,t){var n=typeof e;return t=t??ZIe,!!t&&(n=="number"||n!="symbol"&&XIe.test(e))&&e>-1&&e%1==0&&e<t}function iH(e,t,n){t=="__proto__"&&vE?vE(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function D5(e,t){return e===t||e!==e&&t!==t}var JIe=Object.prototype,eOe=JIe.hasOwnProperty;function aH(e,t,n){var r=e[t];(!(eOe.call(e,t)&&D5(r,n))||n===void 0&&!(t in e))&&iH(e,t,n)}function Pb(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),o?iH(n,s,l):aH(n,s,l)}return n}var dX=Math.max;function eme(e,t,n){return t=dX(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=dX(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),FIe(e,this,s)}}function tme(e,t){return Xve(eme(e,t,rH),e+"")}var tOe=9007199254740991;function sH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tOe}function Nb(e){return e!=null&&sH(e.length)&&!oH(e)}function nOe(e,t,n){if(!pl(n))return!1;var r=typeof t;return(r=="number"?Nb(n)&&Z_(t,n.length):r=="string"&&t in n)?D5(n[t],e):!1}function rOe(e){return tme(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&nOe(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var oOe=Object.prototype;function lH(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||oOe;return e===n}function iOe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var aOe="[object Arguments]";function fX(e){return jd(e)&&im(e)==aOe}var nme=Object.prototype,sOe=nme.hasOwnProperty,lOe=nme.propertyIsEnumerable,W3=fX((function(){return arguments})())?fX:function(e){return jd(e)&&sOe.call(e,"callee")&&!lOe.call(e,"callee")};function uOe(){return!1}var rme=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pX=rme&&typeof module=="object"&&module&&!module.nodeType&&module,cOe=pX&&pX.exports===rme,hX=cOe?Xc.Buffer:void 0,dOe=hX?hX.isBuffer:void 0,V3=dOe||uOe,fOe="[object Arguments]",pOe="[object Array]",hOe="[object Boolean]",gOe="[object Date]",vOe="[object Error]",mOe="[object Function]",yOe="[object Map]",bOe="[object Number]",wOe="[object Object]",AOe="[object RegExp]",COe="[object Set]",xOe="[object String]",SOe="[object WeakMap]",EOe="[object ArrayBuffer]",kOe="[object DataView]",TOe="[object Float32Array]",_Oe="[object Float64Array]",DOe="[object Int8Array]",IOe="[object Int16Array]",OOe="[object Int32Array]",MOe="[object Uint8Array]",POe="[object Uint8ClampedArray]",NOe="[object Uint16Array]",ROe="[object Uint32Array]",qi={};qi[TOe]=qi[_Oe]=qi[DOe]=qi[IOe]=qi[OOe]=qi[MOe]=qi[POe]=qi[NOe]=qi[ROe]=!0;qi[fOe]=qi[pOe]=qi[EOe]=qi[hOe]=qi[kOe]=qi[gOe]=qi[vOe]=qi[mOe]=qi[yOe]=qi[bOe]=qi[wOe]=qi[AOe]=qi[COe]=qi[xOe]=qi[SOe]=!1;function BOe(e){return jd(e)&&sH(e.length)&&!!qi[im(e)]}function uH(e){return function(t){return e(t)}}var ome=typeof exports=="object"&&exports&&!exports.nodeType&&exports,e3=ome&&typeof module=="object"&&module&&!module.nodeType&&module,LOe=e3&&e3.exports===ome,cI=LOe&&Kve.process,Oy=(function(){try{var e=e3&&e3.require&&e3.require("util").types;return e||cI&&cI.binding&&cI.binding("util")}catch{}})(),gX=Oy&&Oy.isTypedArray,cH=gX?uH(gX):BOe,FOe=Object.prototype,UOe=FOe.hasOwnProperty;function ime(e,t){var n=fl(e),r=!n&&W3(e),o=!n&&!r&&V3(e),i=!n&&!r&&!o&&cH(e),a=n||r||o||i,s=a?iOe(e.length,String):[],l=s.length;for(var u in e)(t||UOe.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Z_(u,l)))&&s.push(u);return s}function ame(e,t){return function(n){return e(t(n))}}var zOe=ame(Object.keys,Object),$Oe=Object.prototype,jOe=$Oe.hasOwnProperty;function HOe(e){if(!lH(e))return zOe(e);var t=[];for(var n in Object(e))jOe.call(e,n)&&n!="constructor"&&t.push(n);return t}function I5(e){return Nb(e)?ime(e):HOe(e)}function WOe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var VOe=Object.prototype,qOe=VOe.hasOwnProperty;function GOe(e){if(!pl(e))return WOe(e);var t=lH(e),n=[];for(var r in e)r=="constructor"&&(t||!qOe.call(e,r))||n.push(r);return n}function O5(e){return Nb(e)?ime(e,!0):GOe(e)}var KOe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YOe=/^\w*$/;function dH(e,t){if(fl(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Q_(e)?!0:YOe.test(e)||!KOe.test(e)||t!=null&&e in Object(t)}var q3=sm(Object,"create");function QOe(){this.__data__=q3?q3(null):{},this.size=0}function ZOe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XOe="__lodash_hash_undefined__",JOe=Object.prototype,eMe=JOe.hasOwnProperty;function tMe(e){var t=this.__data__;if(q3){var n=t[e];return n===XOe?void 0:n}return eMe.call(t,e)?t[e]:void 0}var nMe=Object.prototype,rMe=nMe.hasOwnProperty;function oMe(e){var t=this.__data__;return q3?t[e]!==void 0:rMe.call(t,e)}var iMe="__lodash_hash_undefined__";function aMe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=q3&&t===void 0?iMe:t,this}function Ov(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ov.prototype.clear=QOe;Ov.prototype.delete=ZOe;Ov.prototype.get=tMe;Ov.prototype.has=oMe;Ov.prototype.set=aMe;function sMe(){this.__data__=[],this.size=0}function X_(e,t){for(var n=e.length;n--;)if(D5(e[n][0],t))return n;return-1}var lMe=Array.prototype,uMe=lMe.splice;function cMe(e){var t=this.__data__,n=X_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():uMe.call(t,n,1),--this.size,!0}function dMe(e){var t=this.__data__,n=X_(t,e);return n<0?void 0:t[n][1]}function fMe(e){return X_(this.__data__,e)>-1}function pMe(e,t){var n=this.__data__,r=X_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function bp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bp.prototype.clear=sMe;bp.prototype.delete=cMe;bp.prototype.get=dMe;bp.prototype.has=fMe;bp.prototype.set=pMe;var G3=sm(Xc,"Map");function hMe(){this.size=0,this.__data__={hash:new Ov,map:new(G3||bp),string:new Ov}}function gMe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function J_(e,t){var n=e.__data__;return gMe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function vMe(e){var t=J_(this,e).delete(e);return this.size-=t?1:0,t}function mMe(e){return J_(this,e).get(e)}function yMe(e){return J_(this,e).has(e)}function bMe(e,t){var n=J_(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function wp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wp.prototype.clear=hMe;wp.prototype.delete=vMe;wp.prototype.get=mMe;wp.prototype.has=yMe;wp.prototype.set=bMe;var wMe="Expected a function";function eD(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wMe);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(eD.Cache||wp),n}eD.Cache=wp;var AMe=500;function CMe(e){var t=eD(e,function(r){return n.size===AMe&&n.clear(),r}),n=t.cache;return t}var xMe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,SMe=/\\(\\)?/g,EMe=CMe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xMe,function(n,r,o,i){t.push(o?i.replace(SMe,"$1"):r||n)}),t});function kMe(e){return e==null?"":Qve(e)}function Rb(e,t){return fl(e)?e:dH(e,t)?[e]:EMe(kMe(e))}function Bb(e){if(typeof e=="string"||Q_(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tD(e,t){t=Rb(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Bb(t[n++])];return n&&n==r?e:void 0}function Xi(e,t,n){var r=e==null?void 0:tD(e,t);return r===void 0?n:r}function fH(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var vX=Xu?Xu.isConcatSpreadable:void 0;function TMe(e){return fl(e)||W3(e)||!!(vX&&e&&e[vX])}function M5(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=TMe),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?M5(s,t-1,n,r,o):fH(o,s):r||(o[o.length]=s)}return o}function sme(e){var t=e==null?0:e.length;return t?M5(e,1):[]}function lme(e){return Xve(eme(e,void 0,sme),e+"")}var pH=ame(Object.getPrototypeOf,Object),_Me="[object Object]",DMe=Function.prototype,IMe=Object.prototype,ume=DMe.toString,OMe=IMe.hasOwnProperty,MMe=ume.call(Object);function cme(e){if(!jd(e)||im(e)!=_Me)return!1;var t=pH(e);if(t===null)return!0;var n=OMe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ume.call(n)==MMe}function PMe(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Ya(){if(!arguments.length)return[];var e=arguments[0];return fl(e)?e:[e]}function NMe(){this.__data__=new bp,this.size=0}function RMe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function BMe(e){return this.__data__.get(e)}function LMe(e){return this.__data__.has(e)}var FMe=200;function UMe(e,t){var n=this.__data__;if(n instanceof bp){var r=n.__data__;if(!G3||r.length<FMe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wp(r)}return n.set(e,t),this.size=n.size,this}function Oc(e){var t=this.__data__=new bp(e);this.size=t.size}Oc.prototype.clear=NMe;Oc.prototype.delete=RMe;Oc.prototype.get=BMe;Oc.prototype.has=LMe;Oc.prototype.set=UMe;function zMe(e,t){return e&&Pb(t,I5(t),e)}function $Me(e,t){return e&&Pb(t,O5(t),e)}var dme=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mX=dme&&typeof module=="object"&&module&&!module.nodeType&&module,jMe=mX&&mX.exports===dme,yX=jMe?Xc.Buffer:void 0,bX=yX?yX.allocUnsafe:void 0;function fme(e,t){if(t)return e.slice();var n=e.length,r=bX?bX(n):new e.constructor(n);return e.copy(r),r}function HMe(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function pme(){return[]}var WMe=Object.prototype,VMe=WMe.propertyIsEnumerable,wX=Object.getOwnPropertySymbols,hH=wX?function(e){return e==null?[]:(e=Object(e),HMe(wX(e),function(t){return VMe.call(e,t)}))}:pme;function qMe(e,t){return Pb(e,hH(e),t)}var GMe=Object.getOwnPropertySymbols,hme=GMe?function(e){for(var t=[];e;)fH(t,hH(e)),e=pH(e);return t}:pme;function KMe(e,t){return Pb(e,hme(e),t)}function gme(e,t,n){var r=t(e);return fl(e)?r:fH(r,n(e))}function gL(e){return gme(e,I5,hH)}function vme(e){return gme(e,O5,hme)}var vL=sm(Xc,"DataView"),mL=sm(Xc,"Promise"),ny=sm(Xc,"Set"),AX="[object Map]",YMe="[object Object]",CX="[object Promise]",xX="[object Set]",SX="[object WeakMap]",EX="[object DataView]",QMe=am(vL),ZMe=am(G3),XMe=am(mL),JMe=am(ny),ePe=am(hL),Ac=im;(vL&&Ac(new vL(new ArrayBuffer(1)))!=EX||G3&&Ac(new G3)!=AX||mL&&Ac(mL.resolve())!=CX||ny&&Ac(new ny)!=xX||hL&&Ac(new hL)!=SX)&&(Ac=function(e){var t=im(e),n=t==YMe?e.constructor:void 0,r=n?am(n):"";if(r)switch(r){case QMe:return EX;case ZMe:return AX;case XMe:return CX;case JMe:return xX;case ePe:return SX}return t});var tPe=Object.prototype,nPe=tPe.hasOwnProperty;function rPe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&nPe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var mE=Xc.Uint8Array;function gH(e){var t=new e.constructor(e.byteLength);return new mE(t).set(new mE(e)),t}function oPe(e,t){var n=t?gH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var iPe=/\w*$/;function aPe(e){var t=new e.constructor(e.source,iPe.exec(e));return t.lastIndex=e.lastIndex,t}var kX=Xu?Xu.prototype:void 0,TX=kX?kX.valueOf:void 0;function sPe(e){return TX?Object(TX.call(e)):{}}function mme(e,t){var n=t?gH(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var lPe="[object Boolean]",uPe="[object Date]",cPe="[object Map]",dPe="[object Number]",fPe="[object RegExp]",pPe="[object Set]",hPe="[object String]",gPe="[object Symbol]",vPe="[object ArrayBuffer]",mPe="[object DataView]",yPe="[object Float32Array]",bPe="[object Float64Array]",wPe="[object Int8Array]",APe="[object Int16Array]",CPe="[object Int32Array]",xPe="[object Uint8Array]",SPe="[object Uint8ClampedArray]",EPe="[object Uint16Array]",kPe="[object Uint32Array]";function TPe(e,t,n){var r=e.constructor;switch(t){case vPe:return gH(e);case lPe:case uPe:return new r(+e);case mPe:return oPe(e,n);case yPe:case bPe:case wPe:case APe:case CPe:case xPe:case SPe:case EPe:case kPe:return mme(e,n);case cPe:return new r;case dPe:case hPe:return new r(e);case fPe:return aPe(e);case pPe:return new r;case gPe:return sPe(e)}}function yme(e){return typeof e.constructor=="function"&&!lH(e)?LIe(pH(e)):{}}var _Pe="[object Map]";function DPe(e){return jd(e)&&Ac(e)==_Pe}var _X=Oy&&Oy.isMap,IPe=_X?uH(_X):DPe,OPe="[object Set]";function MPe(e){return jd(e)&&Ac(e)==OPe}var DX=Oy&&Oy.isSet,PPe=DX?uH(DX):MPe,NPe=1,RPe=2,BPe=4,bme="[object Arguments]",LPe="[object Array]",FPe="[object Boolean]",UPe="[object Date]",zPe="[object Error]",wme="[object Function]",$Pe="[object GeneratorFunction]",jPe="[object Map]",HPe="[object Number]",Ame="[object Object]",WPe="[object RegExp]",VPe="[object Set]",qPe="[object String]",GPe="[object Symbol]",KPe="[object WeakMap]",YPe="[object ArrayBuffer]",QPe="[object DataView]",ZPe="[object Float32Array]",XPe="[object Float64Array]",JPe="[object Int8Array]",eNe="[object Int16Array]",tNe="[object Int32Array]",nNe="[object Uint8Array]",rNe="[object Uint8ClampedArray]",oNe="[object Uint16Array]",iNe="[object Uint32Array]",Ri={};Ri[bme]=Ri[LPe]=Ri[YPe]=Ri[QPe]=Ri[FPe]=Ri[UPe]=Ri[ZPe]=Ri[XPe]=Ri[JPe]=Ri[eNe]=Ri[tNe]=Ri[jPe]=Ri[HPe]=Ri[Ame]=Ri[WPe]=Ri[VPe]=Ri[qPe]=Ri[GPe]=Ri[nNe]=Ri[rNe]=Ri[oNe]=Ri[iNe]=!0;Ri[zPe]=Ri[wme]=Ri[KPe]=!1;function ry(e,t,n,r,o,i){var a,s=t&NPe,l=t&RPe,u=t&BPe;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!pl(e))return e;var d=fl(e);if(d){if(a=rPe(e),!s)return Zve(e,a)}else{var c=Ac(e),f=c==wme||c==$Pe;if(V3(e))return fme(e,s);if(c==Ame||c==bme||f&&!o){if(a=l||f?{}:yme(e),!s)return l?KMe(e,$Me(a,e)):qMe(e,zMe(a,e))}else{if(!Ri[c])return o?e:{};a=TPe(e,c,s)}}i||(i=new Oc);var p=i.get(e);if(p)return p;i.set(e,a),PPe(e)?e.forEach(function(g){a.add(ry(g,t,n,g,e,i))}):IPe(e)&&e.forEach(function(g,y){a.set(y,ry(g,t,n,y,e,i))});var v=u?l?vme:gL:l?O5:I5,h=d?void 0:v(e);return qIe(h||e,function(g,y){h&&(y=g,g=e[y]),aH(a,y,ry(g,t,n,y,e,i))}),a}var aNe=4;function IX(e){return ry(e,aNe)}var sNe=1,lNe=4;function yE(e){return ry(e,sNe|lNe)}var uNe="__lodash_hash_undefined__";function cNe(e){return this.__data__.set(e,uNe),this}function dNe(e){return this.__data__.has(e)}function K3(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new wp;++t<n;)this.add(e[t])}K3.prototype.add=K3.prototype.push=cNe;K3.prototype.has=dNe;function fNe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Cme(e,t){return e.has(t)}var pNe=1,hNe=2;function xme(e,t,n,r,o,i){var a=n&pNe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var c=-1,f=!0,p=n&hNe?new K3:void 0;for(i.set(e,t),i.set(t,e);++c<s;){var v=e[c],h=t[c];if(r)var g=a?r(h,v,c,t,e,i):r(v,h,c,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!fNe(t,function(y,m){if(!Cme(p,m)&&(v===y||o(v,y,n,r,i)))return p.push(m)})){f=!1;break}}else if(!(v===h||o(v,h,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function gNe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function vH(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var vNe=1,mNe=2,yNe="[object Boolean]",bNe="[object Date]",wNe="[object Error]",ANe="[object Map]",CNe="[object Number]",xNe="[object RegExp]",SNe="[object Set]",ENe="[object String]",kNe="[object Symbol]",TNe="[object ArrayBuffer]",_Ne="[object DataView]",OX=Xu?Xu.prototype:void 0,dI=OX?OX.valueOf:void 0;function DNe(e,t,n,r,o,i,a){switch(n){case _Ne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case TNe:return!(e.byteLength!=t.byteLength||!i(new mE(e),new mE(t)));case yNe:case bNe:case CNe:return D5(+e,+t);case wNe:return e.name==t.name&&e.message==t.message;case xNe:case ENe:return e==t+"";case ANe:var s=gNe;case SNe:var l=r&vNe;if(s||(s=vH),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=mNe,a.set(e,t);var d=xme(s(e),s(t),r,o,i,a);return a.delete(e),d;case kNe:if(dI)return dI.call(e)==dI.call(t)}return!1}var INe=1,ONe=Object.prototype,MNe=ONe.hasOwnProperty;function PNe(e,t,n,r,o,i){var a=n&INe,s=gL(e),l=s.length,u=gL(t),d=u.length;if(l!=d&&!a)return!1;for(var c=l;c--;){var f=s[c];if(!(a?f in t:MNe.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var h=!0;i.set(e,t),i.set(t,e);for(var g=a;++c<l;){f=s[c];var y=e[f],m=t[f];if(r)var b=a?r(m,y,f,t,e,i):r(y,m,f,e,t,i);if(!(b===void 0?y===m||o(y,m,n,r,i):b)){h=!1;break}g||(g=f=="constructor")}if(h&&!g){var w=e.constructor,A=t.constructor;w!=A&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof A=="function"&&A instanceof A)&&(h=!1)}return i.delete(e),i.delete(t),h}var NNe=1,MX="[object Arguments]",PX="[object Array]",hx="[object Object]",RNe=Object.prototype,NX=RNe.hasOwnProperty;function BNe(e,t,n,r,o,i){var a=fl(e),s=fl(t),l=a?PX:Ac(e),u=s?PX:Ac(t);l=l==MX?hx:l,u=u==MX?hx:u;var d=l==hx,c=u==hx,f=l==u;if(f&&V3(e)){if(!V3(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new Oc),a||cH(e)?xme(e,t,n,r,o,i):DNe(e,t,l,n,r,o,i);if(!(n&NNe)){var p=d&&NX.call(e,"__wrapped__"),v=c&&NX.call(t,"__wrapped__");if(p||v){var h=p?e.value():e,g=v?t.value():t;return i||(i=new Oc),o(h,g,n,r,i)}}return f?(i||(i=new Oc),PNe(e,t,n,r,o,i)):!1}function nD(e,t,n,r,o){return e===t?!0:e==null||t==null||!jd(e)&&!jd(t)?e!==e&&t!==t:BNe(e,t,n,r,nD,o)}var LNe=1,FNe=2;function UNe(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var s=a[0],l=e[s],u=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var d=new Oc,c;if(!(c===void 0?nD(u,l,LNe|FNe,r,d):c))return!1}}return!0}function Sme(e){return e===e&&!pl(e)}function zNe(e){for(var t=I5(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Sme(o)]}return t}function Eme(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function $Ne(e){var t=zNe(e);return t.length==1&&t[0][2]?Eme(t[0][0],t[0][1]):function(n){return n===e||UNe(n,e,t)}}function jNe(e,t){return e!=null&&t in Object(e)}function HNe(e,t,n){t=Rb(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Bb(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&sH(o)&&Z_(a,o)&&(fl(e)||W3(e)))}function kme(e,t){return e!=null&&HNe(e,t,jNe)}var WNe=1,VNe=2;function qNe(e,t){return dH(e)&&Sme(t)?Eme(Bb(e),t):function(n){var r=Xi(n,e);return r===void 0&&r===t?kme(n,e):nD(t,r,WNe|VNe)}}function GNe(e){return function(t){return t?.[e]}}function KNe(e){return function(t){return tD(t,e)}}function YNe(e){return dH(e)?GNe(Bb(e)):KNe(e)}function Tme(e){return typeof e=="function"?e:e==null?rH:typeof e=="object"?fl(e)?qNe(e[0],e[1]):$Ne(e):YNe(e)}function QNe(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[++o];if(n(i[l],l,i)===!1)break}return t}}var _me=QNe();function ZNe(e,t){return e&&_me(e,t,I5)}function XNe(e,t){return function(n,r){if(n==null)return n;if(!Nb(n))return e(n,r);for(var o=n.length,i=-1,a=Object(n);++i<o&&r(a[i],i,a)!==!1;);return n}}var JNe=XNe(ZNe),fI=function(){return Xc.Date.now()},eRe="Expected a function",tRe=Math.max,nRe=Math.min;function Wl(e,t,n){var r,o,i,a,s,l,u=0,d=!1,c=!1,f=!0;if(typeof e!="function")throw new TypeError(eRe);t=lX(t)||0,pl(n)&&(d=!!n.leading,c="maxWait"in n,i=c?tRe(lX(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p(S){var E=r,D=o;return r=o=void 0,u=S,a=e.apply(D,E),a}function v(S){return u=S,s=setTimeout(y,t),d?p(S):a}function h(S){var E=S-l,D=S-u,_=t-E;return c?nRe(_,i-D):_}function g(S){var E=S-l,D=S-u;return l===void 0||E>=t||E<0||c&&D>=i}function y(){var S=fI();if(g(S))return m(S);s=setTimeout(y,h(S))}function m(S){return s=void 0,f&&r?p(S):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0}function w(){return s===void 0?a:m(fI())}function A(){var S=fI(),E=g(S);if(r=arguments,o=this,l=S,E){if(s===void 0)return v(l);if(c)return clearTimeout(s),s=setTimeout(y,t),p(l)}return s===void 0&&(s=setTimeout(y,t)),a}return A.cancel=b,A.flush=w,A}function yL(e,t,n){(n!==void 0&&!D5(e[t],n)||n===void 0&&!(t in e))&&iH(e,t,n)}function Dme(e){return jd(e)&&Nb(e)}function bL(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function rRe(e){return Pb(e,O5(e))}function oRe(e,t,n,r,o,i,a){var s=bL(e,n),l=bL(t,n),u=a.get(l);if(u){yL(e,n,u);return}var d=i?i(s,l,n+"",e,t,a):void 0,c=d===void 0;if(c){var f=fl(l),p=!f&&V3(l),v=!f&&!p&&cH(l);d=l,f||p||v?fl(s)?d=s:Dme(s)?d=Zve(s):p?(c=!1,d=fme(l,!0)):v?(c=!1,d=mme(l,!0)):d=[]:cme(l)||W3(l)?(d=s,W3(s)?d=rRe(s):(!pl(s)||oH(s))&&(d=yme(l))):c=!1}c&&(a.set(l,d),o(d,l,r,i,a),a.delete(l)),yL(e,n,d)}function Ime(e,t,n,r,o){e!==t&&_me(t,function(i,a){if(o||(o=new Oc),pl(i))oRe(e,t,a,n,Ime,r,o);else{var s=r?r(bL(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),yL(e,a,s)}},O5)}function iRe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ome(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=r-1;return Jve(e,Tme(t),o,!0)}function aRe(e,t){var n=-1,r=Nb(e)?Array(e.length):[];return JNe(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function sRe(e,t){var n=fl(e)?nH:aRe;return n(e,Tme(t))}function Mme(e,t){return M5(sRe(e,t),1)}var lRe=1/0;function uRe(e){var t=e==null?0:e.length;return t?M5(e,lRe):[]}function Y3(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function cRe(e,t){return t.length<2?e:tD(e,PMe(t,0,-1))}function fa(e,t){return nD(e,t)}function ea(e){return e==null}function P5(e){return e===null}function dRe(e){return e===void 0}var Pme=rOe(function(e,t,n){Ime(e,t,n)});function fRe(e,t){return t=Rb(t,e),e=cRe(e,t),e==null||delete e[Bb(iRe(t))]}function pRe(e){return cme(e)?void 0:e}var hRe=1,gRe=2,vRe=4,Nme=lme(function(e,t){var n={};if(e==null)return n;var r=!1;t=nH(t,function(i){return i=Rb(i,e),r||(r=i.length>1),i}),Pb(e,vme(e),n),r&&(n=ry(n,hRe|gRe|vRe,pRe));for(var o=t.length;o--;)fRe(n,t[o]);return n});function Rme(e,t,n,r){if(!pl(e))return e;t=Rb(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Bb(t[o]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var d=s[l];u=void 0,u===void 0&&(u=pl(d)?d:Z_(t[o+1])?[]:{})}aH(s,l,u),s=s[l]}return e}function mRe(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=tD(e,a);n(s,a)&&Rme(i,Rb(a,e),s)}return i}function yRe(e,t){return mRe(e,t,function(n,r){return kme(e,r)})}var uu=lme(function(e,t){return e==null?{}:yRe(e,t)});function bRe(e,t,n){return e==null?e:Rme(e,t,n)}var wRe="Expected a function";function Zg(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(wRe);return pl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Wl(e,t,{leading:r,maxWait:t,trailing:o})}var ARe=1/0,CRe=ny&&1/vH(new ny([,-0]))[1]==ARe?function(e){return new ny(e)}:UIe,xRe=200;function SRe(e,t,n){var r=-1,o=QIe,i=e.length,a=!0,s=[],l=s;if(i>=xRe){var u=CRe(e);if(u)return vH(u);a=!1,o=Cme,l=new K3}else l=s;e:for(;++r<i;){var d=e[r],c=d;if(d=d!==0?d:0,a&&c===c){for(var f=l.length;f--;)if(l[f]===c)continue e;s.push(d)}else o(l,c,n)||(l!==s&&l.push(c),s.push(d))}return s}var pI=tme(function(e){return SRe(M5(e,1,Dme,!0))});const Vr=e=>e===void 0,Eo=e=>typeof e=="boolean",$n=e=>typeof e=="number",iu=e=>!e&&e!==0||Zt(e)&&e.length===0||dr(e)&&!Object.keys(e).length,cl=e=>typeof Element>"u"?!1:e instanceof Element,Bl=e=>ea(e),ERe=e=>In(e)?!Number.isNaN(Number(e)):!1,N5=e=>e===window;var kRe=Object.defineProperty,TRe=Object.defineProperties,_Re=Object.getOwnPropertyDescriptors,RX=Object.getOwnPropertySymbols,DRe=Object.prototype.hasOwnProperty,IRe=Object.prototype.propertyIsEnumerable,BX=(e,t,n)=>t in e?kRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ORe=(e,t)=>{for(var n in t||(t={}))DRe.call(t,n)&&BX(e,n,t[n]);if(RX)for(var n of RX(t))IRe.call(t,n)&&BX(e,n,t[n]);return e},MRe=(e,t)=>TRe(e,_Re(t));function bE(e,t){var n;const r=jo();return Es(()=>{r.value=e()},MRe(ORe({},t),{flush:(n=void 0)!=null?n:"sync"})),_b(r)}var LX;const Xr=typeof window<"u",PRe=e=>typeof e<"u",wL=e=>typeof e=="function",NRe=e=>typeof e=="string",$f=()=>{},wE=Xr&&((LX=window?.navigator)==null?void 0:LX.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function a0(e){return typeof e=="function"?e():C(e)}function Bme(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function RRe(e,t={}){let n,r,o=$f;const i=s=>{clearTimeout(s),o(),o=$f};return s=>{const l=a0(e),u=a0(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((d,c)=>{o=t.rejectOnCancel?c:d,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,d(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,d(s())},l)})}}function BRe(e,t=!0,n=!0,r=!1){let o=0,i,a=!0,s=$f,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=$f)};return c=>{const f=a0(e),p=Date.now()-o,v=()=>l=c();return u(),f<=0?(o=Date.now(),v()):(p>f&&(n||!a)?(o=Date.now(),v()):t&&(l=new Promise((h,g)=>{s=r?g:h,i=setTimeout(()=>{o=Date.now(),a=!0,h(v()),u()},Math.max(0,f-p))})),!n&&!i&&(i=setTimeout(()=>a=!0,f)),a=!1,l)}}function LRe(e){return e}function FRe(e,t){let n,r,o;const i=K(!0),a=()=>{i.value=!0,o()};St(e,a,{flush:"sync"});const s=wL(t)?t:t.get,l=wL(t)?void 0:t.set,u=CTe((d,c)=>(r=d,o=c,{get(){return i.value&&(n=s(),i.value=!1),r(),n},set(f){l?.(f)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function Lb(e){return L0e()?(F0e(e),!0):!1}function URe(e){if(!Uo(e))return Wr(e);const t=new Proxy({},{get(n,r,o){return C(Reflect.get(e.value,r,o))},set(n,r,o){return Uo(e.value[r])&&!Uo(o)?e.value[r].value=o:e.value[r]=o,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Wr(t)}function zRe(e){return URe(ee(e))}function $Re(e,t=200,n={}){return Bme(RRe(t,n),e)}function jRe(e,t=200,n={}){const r=K(e.value),o=$Re(()=>{r.value=e.value},t,n);return St(e,()=>o()),r}function Lme(e,t=200,n=!1,r=!0,o=!1){return Bme(BRe(t,n,r,o),e)}function mH(e,t=!0){br()?qn(e):t?e():Yt(e)}function Mv(e,t,n={}){const{immediate:r=!0}=n,o=K(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function l(...u){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...u)},a0(t))}return r&&(o.value=!0,Xr&&l()),Lb(s),{isPending:_b(o),start:l,stop:s}}function Ta(e){var t;const n=a0(e);return(t=n?.$el)!=null?t:n}const Jd=Xr?window:void 0,HRe=Xr?window.document:void 0;function Ro(...e){let t,n,r,o;if(NRe(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Jd):[t,n,r,o]=e,!t)return $f;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach(d=>d()),i.length=0},s=(d,c,f,p)=>(d.addEventListener(c,f,p),()=>d.removeEventListener(c,f,p)),l=St(()=>[Ta(t),a0(o)],([d,c])=>{a(),d&&i.push(...n.flatMap(f=>r.map(p=>s(d,f,p,c))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return Lb(u),u}let FX=!1;function yH(e,t,n={}){const{window:r=Jd,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return;wE&&!FX&&(FX=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",$f)));let s=!0;const l=f=>o.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(v=>v===f.target||f.composedPath().includes(v));{const v=Ta(p);return v&&(f.target===v||f.composedPath().includes(v))}}),d=[Ro(r,"click",f=>{const p=Ta(e);if(!(!p||p===f.target||f.composedPath().includes(p))){if(f.detail===0&&(s=!l(f)),!s){s=!0;return}t(f)}},{passive:!0,capture:i}),Ro(r,"pointerdown",f=>{const p=Ta(e);p&&(s=!f.composedPath().includes(p)&&!l(f))},{passive:!0}),a&&Ro(r,"blur",f=>{var p;const v=Ta(e);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!v?.contains(r.document.activeElement)&&t(f)})].filter(Boolean);return()=>d.forEach(f=>f())}function WRe(e={}){var t;const{window:n=Jd}=e,r=(t=e.document)!=null?t:n?.document,o=FRe(()=>null,()=>r?.activeElement);return n&&(Ro(n,"blur",i=>{i.relatedTarget===null&&o.trigger()},!0),Ro(n,"focus",o.trigger,!0)),o}function bH(e,t=!1){const n=K(),r=()=>n.value=!!e();return r(),mH(r,t),n}function VRe(e){return JSON.parse(JSON.stringify(e))}const UX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zX="__vueuse_ssr_handlers__";UX[zX]=UX[zX]||{};function qRe(e,t,{window:n=Jd,initialValue:r=""}={}){const o=K(r),i=ee(()=>{var a;return Ta(t)||((a=n?.document)==null?void 0:a.documentElement)});return St([i,()=>a0(e)],([a,s])=>{var l;if(a&&n){const u=(l=n.getComputedStyle(a).getPropertyValue(s))==null?void 0:l.trim();o.value=u||r}},{immediate:!0}),St(o,a=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(a0(e),a)}),o}function GRe({document:e=HRe}={}){if(!e)return K("visible");const t=K(e.visibilityState);return Ro(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $X=Object.getOwnPropertySymbols,KRe=Object.prototype.hasOwnProperty,YRe=Object.prototype.propertyIsEnumerable,QRe=(e,t)=>{var n={};for(var r in e)KRe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$X)for(var r of $X(e))t.indexOf(r)<0&&YRe.call(e,r)&&(n[r]=e[r]);return n};function li(e,t,n={}){const r=n,{window:o=Jd}=r,i=QRe(r,["window"]);let a;const s=bH(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=St(()=>Ta(e),c=>{l(),s.value&&o&&c&&(a=new ResizeObserver(t),a.observe(c,i))},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Lb(d),{isSupported:s,stop:d}}function jX(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=K(0),s=K(0),l=K(0),u=K(0),d=K(0),c=K(0),f=K(0),p=K(0);function v(){const h=Ta(e);if(!h){n&&(a.value=0,s.value=0,l.value=0,u.value=0,d.value=0,c.value=0,f.value=0,p.value=0);return}const g=h.getBoundingClientRect();a.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,d.value=g.top,c.value=g.width,f.value=g.x,p.value=g.y}return li(e,v),St(()=>Ta(e),h=>!h&&v()),o&&Ro("scroll",v,{capture:!0,passive:!0}),r&&Ro("resize",v,{passive:!0}),mH(()=>{i&&v()}),{height:a,bottom:s,left:l,right:u,top:d,width:c,x:f,y:p,update:v}}function ZRe(e,t={width:0,height:0},n={}){const{window:r=Jd,box:o="content-box"}=n,i=ee(()=>{var l,u;return(u=(l=Ta(e))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),a=K(t.width),s=K(t.height);return li(e,([l])=>{const u=o==="border-box"?l.borderBoxSize:o==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&i.value){const d=Ta(e);if(d){const c=r.getComputedStyle(d);a.value=parseFloat(c.width),s.value=parseFloat(c.height)}}else if(u){const d=Array.isArray(u)?u:[u];a.value=d.reduce((c,{inlineSize:f})=>c+f,0),s.value=d.reduce((c,{blockSize:f})=>c+f,0)}else a.value=l.contentRect.width,s.value=l.contentRect.height},n),St(()=>Ta(e),l=>{a.value=l?t.width:0,s.value=l?t.height:0}),{width:a,height:s}}function XRe(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:i=.1,window:a=Jd}=n,s=bH(()=>a&&"IntersectionObserver"in a);let l=$f;const u=s.value?St(()=>({el:Ta(e),root:Ta(r)}),({el:c,root:f})=>{if(l(),!c)return;const p=new IntersectionObserver(t,{root:f,rootMargin:o,threshold:i});p.observe(c),l=()=>{p.disconnect(),l=$f}},{immediate:!0,flush:"post"}):$f,d=()=>{l(),u()};return Lb(d),{isSupported:s,stop:d}}var HX=Object.getOwnPropertySymbols,JRe=Object.prototype.hasOwnProperty,eBe=Object.prototype.propertyIsEnumerable,tBe=(e,t)=>{var n={};for(var r in e)JRe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&HX)for(var r of HX(e))t.indexOf(r)<0&&eBe.call(e,r)&&(n[r]=e[r]);return n};function Fme(e,t,n={}){const r=n,{window:o=Jd}=r,i=tBe(r,["window"]);let a;const s=bH(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},u=St(()=>Ta(e),c=>{l(),s.value&&o&&c&&(a=new MutationObserver(t),a.observe(c,i))},{immediate:!0}),d=()=>{l(),u()};return Lb(d),{isSupported:s,stop:d}}var WX;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(WX||(WX={}));var nBe=Object.defineProperty,VX=Object.getOwnPropertySymbols,rBe=Object.prototype.hasOwnProperty,oBe=Object.prototype.propertyIsEnumerable,qX=(e,t,n)=>t in e?nBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iBe=(e,t)=>{for(var n in t||(t={}))rBe.call(t,n)&&qX(e,n,t[n]);if(VX)for(var n of VX(t))oBe.call(t,n)&&qX(e,n,t[n]);return e};const aBe={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};iBe({linear:LRe},aBe);function Ume(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:l=!1,eventName:u,deep:d=!1,defaultValue:c}=r,f=br(),p=n||f?.emit||((o=f?.$emit)==null?void 0:o.bind(f))||((a=(i=f?.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(f?.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const h=y=>s?wL(s)?s(y):VRe(y):y,g=()=>PRe(e[t])?h(e[t]):c;if(l){const y=g(),m=K(y);return St(()=>e[t],b=>m.value=h(b)),St(m,b=>{(b!==e[t]||d)&&p(v,b)},{deep:d}),m}else return ee({get(){return g()},set(y){p(v,y)}})}function sBe({window:e=Jd}={}){if(!e)return K(!1);const t=K(e.document.hasFocus());return Ro(e,"blur",()=>{t.value=!1}),Ro(e,"focus",()=>{t.value=!0}),t}function lBe(e={}){const{window:t=Jd,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:i=!0}=e,a=K(n),s=K(r),l=()=>{t&&(i?(a.value=t.innerWidth,s.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),mH(l),Ro("resize",l,{passive:!0}),o&&Ro("orientationchange",l,{passive:!0}),{width:a,height:s}}const GX={current:0},KX=K(0),zme=2e3,YX=Symbol("elZIndexContextKey"),$me=Symbol("zIndexContextKey"),Fb=e=>{const t=br()?dn(YX,GX):GX,n=e||(br()?dn($me,void 0):void 0),r=ee(()=>{const a=C(n);return $n(a)?a:zme}),o=ee(()=>r.value+KX.value),i=()=>(t.current++,KX.value=t.current,o.value);return!Xr&&dn(YX),{initialZIndex:r,currentZIndex:o,nextZIndex:i}};var uBe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const cBe=e=>(t,n)=>dBe(t,n,C(e)),dBe=(e,t,n)=>Xi(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var i;return`${(i=t?.[o])!=null?i:`{${o}}`}`}),fBe=e=>{const t=ee(()=>C(e).name),n=Uo(e)?e:K(e);return{lang:t,locale:n,t:cBe(e)}},jme=Symbol("localeContextKey"),Gr=e=>{const t=e||dn(jme,K());return fBe(ee(()=>t.value||uBe))},Hme="__epPropKey",ct=e=>e,pBe=e=>dr(e)&&!!e[Hme],Jc=(e,t)=>{if(!dr(e)||pBe(e))return e;const{values:n,required:r,default:o,type:i,validator:a}=e,l={type:i,required:!!r,validator:n||a?u=>{let d=!1,c=[];if(n&&(c=Array.from(n),no(e,"default")&&c.push(o),d||(d=c.includes(u))),a&&(d||(d=a(u))),!d&&c.length>0){const f=[...new Set(c)].map(p=>JSON.stringify(p)).join(", ");T_e(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[Hme]:!0};return no(e,"default")&&(l.default=o),l},Jt=e=>Y3(Object.entries(e).map(([t,n])=>[t,Jc(n,t)])),ef=["","default","small","large"],Aa=Jc({type:String,values:ef,required:!1}),Wme=Symbol("size"),Vme=()=>{const e=dn(Wme,{});return ee(()=>C(e.size)||"")},qme=Symbol("emptyValuesContextKey"),hBe=["",void 0,null],gBe=void 0,lm=Jt({emptyValues:Array,valueOnClear:{type:ct([String,Number,Boolean,Function]),default:void 0,validator:e=>Rn(e)?!e():!e}}),R5=(e,t)=>{const n=br()?dn(qme,K({})):K({}),r=ee(()=>e.emptyValues||n.value.emptyValues||hBe),o=ee(()=>Rn(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Rn(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:gBe),i=a=>r.value.includes(a);return r.value.includes(o.value),{emptyValues:r,valueOnClear:o,isEmptyValue:i}},My=e=>Object.keys(e),Gme=e=>Object.entries(e),t3=(e,t,n)=>({get value(){return Xi(e,t,n)},set value(r){bRe(e,t,r)}}),AE=K();function Ub(e,t=void 0){const n=br()?dn(qve,AE):AE;return e?ee(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function rD(e,t){const n=Ub(),r=Vt(e,ee(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||J4})),o=Gr(ee(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Fb(ee(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||zme})),a=ee(()=>{var s;return C(t)||((s=n.value)==null?void 0:s.size)||""});return wH(ee(()=>C(n)||{})),{ns:r,locale:o,zIndex:i,size:a}}const wH=(e,t,n=!1)=>{var r;const o=!!br(),i=o?Ub():void 0,a=(r=t?.provide)!=null?r:o?_r:void 0;if(!a)return;const s=ee(()=>{const l=C(e);return i?.value?vBe(i.value,l):l});return a(qve,s),a(jme,ee(()=>s.value.locale)),a(Gve,ee(()=>s.value.namespace)),a($me,ee(()=>s.value.zIndex)),a(Wme,{size:ee(()=>s.value.size||"")}),a(qme,ee(()=>({emptyValues:s.value.emptyValues,valueOnClear:s.value.valueOnClear}))),(n||!AE.value)&&(AE.value=s.value),s},vBe=(e,t)=>{const n=[...new Set([...My(e),...My(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},mBe=(e=[])=>({version:tIe,install:(n,r)=>{n[rX]||(n[rX]=!0,e.forEach(o=>n.use(o)),r&&wH(r,n,!0))}}),Qn="update:modelValue",Pr="change",ba="input",yBe=Jt({zIndex:{type:ct([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),bBe={scroll:({scrollTop:e,fixed:t})=>$n(e)&&Eo(t),[Pr]:e=>Eo(e)};var on=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function wBe(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const s0=e=>Xr?window.requestAnimationFrame(e):setTimeout(e,16),Pv=e=>Xr?window.cancelAnimationFrame(e):clearTimeout(e),Kme=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ol=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},zu=(e,t)=>{!e||!t.trim()||e.classList.add(...Kme(t))},Ws=(e,t)=>{!e||!t.trim()||e.classList.remove(...Kme(t))},Mf=(e,t)=>{var n;if(!Xr||!e||!t)return"";let r=dl(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}},Yme=(e,t,n)=>{if(!(!e||!t))if(dr(t))Gme(t).forEach(([r,o])=>Yme(e,r,o));else{const r=dl(t);e.style[r]=n}};function _i(e,t="px"){if(!e)return"";if($n(e)||ERe(e))return`${e}${t}`;if(In(e))return e}const ABe=(e,t)=>{if(!Xr)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Mf(e,n);return["scroll","auto","overlay"].some(o=>r.includes(o))},AH=(e,t)=>{if(!Xr)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(ABe(n,t))return n;n=n.parentNode}return n};let gx;const Qme=e=>{var t;if(!Xr)return 0;if(gx!==void 0)return gx;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),gx=r-i,gx};function CH(e,t){if(!Xr)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const o=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=o+t.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;o<a?e.scrollTop=o:i>s&&(e.scrollTop=i-e.clientHeight)}function CBe(e,t,n,r,o){const i=Date.now();let a;const s=()=>{const u=Date.now()-i,d=wBe(u>r?r:u,t,n,r);N5(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,u<r?a=s0(s):Rn(o)&&o()};return s(),()=>{a&&Pv(a)}}const QX=(e,t)=>N5(t)?e.ownerDocument.documentElement:t,ZX=e=>N5(e)?window.scrollY:e.scrollTop;class xBe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function na(e,t){throw new xBe(`[${e}] ${t}`)}const Zme="ElAffix",SBe=nt({name:Zme}),EBe=nt({...SBe,props:yBe,emits:bBe,setup(e,{expose:t,emit:n}){const r=e,o=Vt("affix"),i=jo(),a=jo(),s=jo(),{height:l}=lBe(),{height:u,width:d,top:c,bottom:f,update:p}=jX(a,{windowScroll:!1}),v=jX(i),h=K(!1),g=K(0),y=K(0),m=ee(()=>({height:h.value?`${u.value}px`:"",width:h.value?`${d.value}px`:""})),b=ee(()=>{if(!h.value)return{};const E=r.offset?_i(r.offset):0;return{height:`${u.value}px`,width:`${d.value}px`,top:r.position==="top"?E:"",bottom:r.position==="bottom"?E:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:r.zIndex}}),w=()=>{if(!s.value)return;g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0;const{position:E,target:D,offset:_}=r,M=_+u.value;if(E==="top")if(D){const O=v.bottom.value-M;h.value=_>c.value&&v.bottom.value>0,y.value=O<0?O:0}else h.value=_>c.value;else if(D){const O=l.value-v.top.value-M;h.value=l.value-_<f.value&&l.value>v.top.value,y.value=O<0?-O:0}else h.value=l.value-_<f.value},A=async()=>{if(!h.value){p();return}h.value=!1,await Yt(),p(),h.value=!0},S=async()=>{p(),await Yt(),n("scroll",{scrollTop:g.value,fixed:h.value})};return St(h,E=>n(Pr,E)),qn(()=>{var E;r.target?(i.value=(E=document.querySelector(r.target))!=null?E:void 0,i.value||na(Zme,`Target does not exist: ${r.target}`)):i.value=document.documentElement,s.value=AH(a.value,!0),p()}),Ro(s,"scroll",S),Es(w),t({update:w,updateRoot:A}),(E,D)=>(L(),G("div",{ref_key:"root",ref:a,class:oe(C(o).b()),style:rn(C(m))},[x("div",{class:oe({[C(o).m("fixed")]:h.value}),style:rn(C(b))},[ht(E.$slots,"default")],6)],6))}});var kBe=on(EBe,[["__file","affix.vue"]]);const or=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Xme=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),TBe=(e,t)=>(e.install=n=>{n.directive(t,e)},e),vi=e=>(e.install=bo,e),_Be=or(kBe),DBe=Jt({size:{type:ct([Number,String])},color:{type:String}}),IBe=nt({name:"ElIcon",inheritAttrs:!1}),OBe=nt({...IBe,props:DBe,setup(e){const t=e,n=Vt("icon"),r=ee(()=>{const{size:o,color:i}=t;return!o&&!i?{}:{fontSize:Vr(o)?void 0:_i(o),"--color":i}});return(o,i)=>(L(),G("i",vr({class:C(n).b(),style:C(r)},o.$attrs),[ht(o.$slots,"default")],16))}});var MBe=on(OBe,[["__file","icon.vue"]]);const Dn=or(MBe);function XX(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Lb(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Jme=Jt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),e1e=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:i}=XX(),{registerTimeout:a,cancelTimeout:s}=XX();return{onOpen:d=>{i(()=>{r(d);const c=C(n);$n(c)&&c>0&&a(()=>{o(d)},c)},C(e))},onClose:d=>{s(),i(()=>{o(d)},C(t))}}};/*! Element Plus Icons Vue v2.3.2 */var PBe=nt({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),ed=PBe,NBe=nt({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),Jf=NBe,RBe=nt({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Da=RBe,BBe=nt({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),oD=BBe,LBe=nt({name:"Back",__name:"back",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),x("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),FBe=LBe,UBe=nt({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),zBe=UBe,$Be=nt({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),t1e=$Be,jBe=nt({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),HBe=jBe,WBe=nt({name:"Check",__name:"check",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),B5=WBe,VBe=nt({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),qBe=VBe,GBe=nt({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),x("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),xH=GBe,KBe=nt({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),SH=KBe,YBe=nt({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),x("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),tf=YBe,QBe=nt({name:"Clock",__name:"clock",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),x("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),x("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),n1e=QBe,ZBe=nt({name:"Close",__name:"close",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),vu=ZBe,XBe=nt({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),x("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),JBe=XBe,eLe=nt({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),l0=eLe,tLe=nt({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),u0=tLe,nLe=nt({name:"Delete",__name:"delete",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),rLe=nLe,oLe=nt({name:"Document",__name:"document",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Py=oLe,iLe=nt({name:"Download",__name:"download",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),aLe=iLe,sLe=nt({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),lLe=sLe,uLe=nt({name:"Hide",__name:"hide",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),x("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),cLe=uLe,dLe=nt({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Q3=dLe,fLe=nt({name:"Link",__name:"link",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),r1e=fLe,pLe=nt({name:"Loading",__name:"loading",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),jc=pLe,hLe=nt({name:"Minus",__name:"minus",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),gLe=hLe,vLe=nt({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),JX=vLe,mLe=nt({name:"More",__name:"more",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),yLe=mLe,bLe=nt({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),wLe=bLe,ALe=nt({name:"Plus",__name:"plus",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),o1e=ALe,CLe=nt({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),xLe=CLe,SLe=nt({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),ELe=SLe,kLe=nt({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),TLe=kLe,_Le=nt({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),DLe=_Le,ILe=nt({name:"Search",__name:"search",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),OLe=ILe,MLe=nt({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),PLe=MLe,NLe=nt({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),RLe=NLe,BLe=nt({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),vx=BLe,LLe=nt({name:"Star",__name:"star",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),FLe=LLe,ULe=nt({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),i1e=ULe,zLe=nt({name:"View",__name:"view",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),a1e=zLe,$Le=nt({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),zb=$Le,jLe=nt({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),s1e=jLe,HLe=nt({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(L(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[x("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),WLe=HLe;const wo=ct([String,Object,Function]),l1e={Close:vu},EH={Close:vu,SuccessFilled:i1e,InfoFilled:Q3,WarningFilled:zb,CircleCloseFilled:SH},c0={primary:Q3,success:i1e,warning:zb,error:SH,info:Q3},iD={validating:jc,success:xH,error:tf},VLe=["light","dark"],qLe=Jt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:My(c0),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:VLe,default:"light"},...Jme}),GLe={open:()=>!0,close:e=>Vr(e)||e instanceof Event},KLe=nt({name:"ElAlert"}),YLe=nt({...KLe,props:qLe,emits:GLe,setup(e,{emit:t}){const n=e,{Close:r}=EH,o=ga(),i=Vt("alert"),a=K(!1),s=ee(()=>c0[n.type]),l=ee(()=>!!(n.description||o.default)),u=()=>{a.value=!0,t("open")},d=p=>{a.value=!1,t("close",p)},{onOpen:c,onClose:f}=e1e({showAfter:co(n,"showAfter"),hideAfter:co(n,"hideAfter"),autoClose:co(n,"autoClose"),open:u,close:d});return Xr&&c(),(p,v)=>(L(),yt(Ki,{name:C(i).b("fade"),persisted:""},{default:rt(()=>[cn(x("div",{class:oe([C(i).b(),C(i).m(p.type),C(i).is("center",p.center),C(i).is(p.effect)]),role:"alert"},[p.showIcon&&(p.$slots.icon||C(s))?(L(),yt(C(Dn),{key:0,class:oe([C(i).e("icon"),{[C(i).is("big")]:C(l)}])},{default:rt(()=>[ht(p.$slots,"icon",{},()=>[(L(),yt(mr(C(s))))])]),_:3},8,["class"])):xe("v-if",!0),x("div",{class:oe(C(i).e("content"))},[p.title||p.$slots.title?(L(),G("span",{key:0,class:oe([C(i).e("title"),{"with-description":C(l)}])},[ht(p.$slots,"title",{},()=>[bn(je(p.title),1)])],2)):xe("v-if",!0),C(l)?(L(),G("p",{key:1,class:oe(C(i).e("description"))},[ht(p.$slots,"default",{},()=>[bn(je(p.description),1)])],2)):xe("v-if",!0),p.closable?(L(),G(Rt,{key:2},[p.closeText?(L(),G("div",{key:0,class:oe([C(i).e("close-btn"),C(i).is("customed")]),onClick:d},je(p.closeText),3)):(L(),yt(C(Dn),{key:1,class:oe(C(i).e("close-btn")),onClick:C(f)},{default:rt(()=>[He(C(r))]),_:1},8,["class","onClick"]))],64)):xe("v-if",!0)],2)],2),[[kr,a.value]])]),_:3},8,["name"]))}});var QLe=on(YLe,[["__file","alert.vue"]]);const ZLe=or(QLe),kH=()=>Xr&&/firefox/i.test(window.navigator.userAgent);let Sl;const XLe={height:"0",visibility:"hidden",overflow:kH()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},JLe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"];function eFe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:JLe.map(a=>[a,t.getPropertyValue(a)]),paddingSize:r,borderSize:o,boxSizing:n}}function eJ(e,t=1,n){var r,o;Sl||(Sl=document.createElement("textarea"),((r=e.parentNode)!=null?r:document.body).appendChild(Sl));const{paddingSize:i,borderSize:a,boxSizing:s,contextStyle:l}=eFe(e);l.forEach(([f,p])=>Sl?.style.setProperty(f,p)),Object.entries(XLe).forEach(([f,p])=>Sl?.style.setProperty(f,p,"important")),Sl.value=e.value||e.placeholder||"";let u=Sl.scrollHeight;const d={};s==="border-box"?u=u+a:s==="content-box"&&(u=u-i),Sl.value="";const c=Sl.scrollHeight-i;if($n(t)){let f=c*t;s==="border-box"&&(f=f+i+a),u=Math.max(f,u),d.minHeight=`${f}px`}if($n(n)){let f=c*n;s==="border-box"&&(f=f+i+a),u=Math.min(f,u)}return d.height=`${u}px`,(o=Sl.parentNode)==null||o.removeChild(Sl),Sl=void 0,d}const fi=e=>e,tFe=Jt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),_s=e=>uu(tFe,e),L5=Jt({id:{type:String,default:void 0},size:Aa,disabled:Boolean,modelValue:{type:ct([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ct([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:wo,default:tf},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:wo},prefixIcon:{type:wo},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ct([Object,Array,String]),default:()=>fi({})},autofocus:Boolean,rows:{type:Number,default:2},..._s(["ariaLabel"]),inputmode:{type:ct(String),default:void 0},name:String}),nFe={[Qn]:e=>In(e),input:e=>In(e),change:e=>In(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},rFe=["class","style"],oFe=/^on[A-Z]/,aD=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=ee(()=>(n?.value||[]).concat(rFe)),o=br();return ee(o?()=>{var i;return Y3(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&oFe.test(a))))}:()=>({}))},tJ={prefix:Math.floor(Math.random()*1e4),current:0},iFe=Symbol("elIdInjection"),TH=()=>br()?dn(iFe,tJ):tJ,ps=e=>{const t=TH(),n=tH();return bE(()=>C(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},um=Symbol("formContextKey"),Hd=Symbol("formItemContextKey"),Ds=()=>{const e=dn(um,void 0),t=dn(Hd,void 0);return{form:e,formItem:t}},fc=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=K(!1)),r||(r=K(!1));const o=br(),i=()=>{let u=o?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},a=K();let s;const l=ee(()=>{var u;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((u=t.inputIds)==null?void 0:u.length)<=1)});return qn(()=>{s=St([co(e,"id"),n],([u,d])=>{const c=u??(d?void 0:ps().value);c!==a.value&&(t?.removeInputId&&!i()&&(a.value&&t.removeInputId(a.value),!r?.value&&!d&&c&&t.addInputId(c)),a.value=c)},{immediate:!0})}),yl(()=>{s&&s(),t?.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:l,inputId:a}},u1e=e=>{const t=br();return ee(()=>{var n,r;return(r=(n=t?.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},ha=(e,t={})=>{const n=K(void 0),r=t.prop?n:u1e("size"),o=t.global?n:Vme(),i=t.form?{size:void 0}:dn(um,void 0),a=t.formItem?{size:void 0}:dn(Hd,void 0);return ee(()=>r.value||C(e)||a?.size||i?.size||o.value||"")},Va=e=>{const t=u1e("disabled"),n=dn(um,void 0);return ee(()=>t.value||C(e)||n?.disabled||!1)},aFe='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',sFe=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,nJ=e=>Array.from(e.querySelectorAll(aFe)).filter(t=>Z3(t)&&sFe(t)),Z3=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},CS=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},c1e=e=>!e.getAttribute("aria-owns"),d1e=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n),i=Array.prototype.indexOf.call(o,e);return o[i+t]||null},xS=e=>{e&&(e.focus(),!c1e(e)&&e.click())};function Ap(e,{disabled:t,beforeFocus:n,afterFocus:r,beforeBlur:o,afterBlur:i}={}){const a=br(),{emit:s}=a,l=jo(),u=K(!1),d=p=>{const v=Rn(n)?n(p):!1;C(t)||u.value||v||(u.value=!0,s("focus",p),r?.())},c=p=>{var v;const h=Rn(o)?o(p):!1;C(t)||p.relatedTarget&&((v=l.value)!=null&&v.contains(p.relatedTarget))||h||(u.value=!1,s("blur",p),i?.())},f=p=>{var v,h;C(t)||Z3(p.target)||(v=l.value)!=null&&v.contains(document.activeElement)&&l.value!==document.activeElement||(h=e.value)==null||h.focus()};return St([l,()=>C(t)],([p,v])=>{p&&(v?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),Ro(l,"focus",d,!0),Ro(l,"blur",c,!0),Ro(l,"click",f,!0),{isFocused:u,wrapperRef:l,handleFocus:d,handleBlur:c}}const lFe=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function F5({afterComposition:e,emit:t}){const n=K(!1),r=s=>{t?.("compositionstart",s),n.value=!0},o=s=>{var l;t?.("compositionupdate",s);const u=(l=s.target)==null?void 0:l.value,d=u[u.length-1]||"";n.value=!lFe(d)},i=s=>{t?.("compositionend",s),n.value&&(n.value=!1,Yt(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?i(s):o(s)},handleCompositionStart:r,handleCompositionUpdate:o,handleCompositionEnd:i}}function uFe(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:i,value:a}=e.value;if(o==null||i==null)return;const s=a.slice(0,Math.max(0,o)),l=a.slice(Math.max(0,i));t={selectionStart:o,selectionEnd:i,value:a,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:i,afterTxt:a,selectionStart:s}=t;if(i==null||a==null||s==null)return;let l=o.length;if(o.endsWith(a))l=o.length-a.length;else if(o.startsWith(i))l=i.length;else{const u=i[s-1],d=o.indexOf(u,s-1);d!==-1&&(l=d+1)}e.value.setSelectionRange(l,l)}return[n,r]}const cFe="ElInput",dFe=nt({name:cFe,inheritAttrs:!1}),fFe=nt({...dFe,props:L5,emits:nFe,setup(e,{expose:t,emit:n}){const r=e,o=yp(),i=aD(),a=ga(),s=ee(()=>[r.type==="textarea"?h.b():v.b(),v.m(f.value),v.is("disabled",p.value),v.is("exceed",F.value),{[v.b("group")]:a.prepend||a.append,[v.m("prefix")]:a.prefix||r.prefixIcon,[v.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:j.value&&q.value,[v.b("hidden")]:r.type==="hidden"},o.class]),l=ee(()=>[v.e("wrapper"),v.is("focus",D.value)]),{form:u,formItem:d}=Ds(),{inputId:c}=fc(r,{formItemContext:d}),f=ha(),p=Va(),v=Vt("input"),h=Vt("textarea"),g=jo(),y=jo(),m=K(!1),b=K(!1),w=K(),A=jo(r.inputStyle),S=ee(()=>g.value||y.value),{wrapperRef:E,isFocused:D,handleFocus:_,handleBlur:M}=Ap(S,{disabled:p,afterBlur(){var Ne;r.validateEvent&&((Ne=d?.validate)==null||Ne.call(d,"blur").catch(Re=>void 0))}}),O=ee(()=>{var Ne;return(Ne=u?.statusIcon)!=null?Ne:!1}),k=ee(()=>d?.validateState||""),R=ee(()=>k.value&&iD[k.value]),N=ee(()=>b.value?a1e:cLe),W=ee(()=>[o.style]),B=ee(()=>[r.inputStyle,A.value,{resize:r.resize}]),z=ee(()=>ea(r.modelValue)?"":String(r.modelValue)),j=ee(()=>r.clearable&&!p.value&&!r.readonly&&!!z.value&&(D.value||m.value)),q=ee(()=>r.showPassword&&!p.value&&!!z.value),Y=ee(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),U=ee(()=>z.value.length),F=ee(()=>!!Y.value&&U.value>Number(r.maxlength)),H=ee(()=>!!a.suffix||!!r.suffixIcon||j.value||r.showPassword||Y.value||!!k.value&&O.value),[re,X]=uFe(g);li(y,Ne=>{if(le(),!Y.value||r.resize!=="both")return;const Re=Ne[0],{width:gt}=Re.contentRect;w.value={right:`calc(100% - ${gt+15+6}px)`}});const te=()=>{const{type:Ne,autosize:Re}=r;if(!(!Xr||Ne!=="textarea"||!y.value))if(Re){const gt=dr(Re)?Re.minRows:void 0,Bt=dr(Re)?Re.maxRows:void 0,Lt=eJ(y.value,gt,Bt);A.value={overflowY:"hidden",...Lt},Yt(()=>{y.value.offsetHeight,A.value=Lt})}else A.value={minHeight:eJ(y.value).minHeight}},le=(Ne=>{let Re=!1;return()=>{var gt;if(Re||!r.autosize)return;((gt=y.value)==null?void 0:gt.offsetParent)===null||(Ne(),Re=!0)}})(te),ve=()=>{const Ne=S.value,Re=r.formatter?r.formatter(z.value):z.value;!Ne||Ne.value===Re||(Ne.value=Re)},Pe=async Ne=>{re();let{value:Re}=Ne.target;if(r.formatter&&r.parser&&(Re=r.parser(Re)),!he.value){if(Re===z.value){ve();return}n(Qn,Re),n(ba,Re),await Yt(),ve(),X()}},Ae=Ne=>{let{value:Re}=Ne.target;r.formatter&&r.parser&&(Re=r.parser(Re)),n(Pr,Re)},{isComposing:he,handleCompositionStart:Ee,handleCompositionUpdate:Q,handleCompositionEnd:me}=F5({emit:n,afterComposition:Pe}),De=()=>{re(),b.value=!b.value,setTimeout(X)},pe=()=>{var Ne;return(Ne=S.value)==null?void 0:Ne.focus()},ie=()=>{var Ne;return(Ne=S.value)==null?void 0:Ne.blur()},ue=Ne=>{m.value=!1,n("mouseleave",Ne)},Be=Ne=>{m.value=!0,n("mouseenter",Ne)},Me=Ne=>{n("keydown",Ne)},Fe=()=>{var Ne;(Ne=S.value)==null||Ne.select()},ze=()=>{n(Qn,""),n(Pr,""),n("clear"),n(ba,"")};return St(()=>r.modelValue,()=>{var Ne;Yt(()=>te()),r.validateEvent&&((Ne=d?.validate)==null||Ne.call(d,"change").catch(Re=>void 0))}),St(z,()=>ve()),St(()=>r.type,async()=>{await Yt(),ve(),te()}),qn(()=>{!r.formatter&&r.parser,ve(),Yt(te)}),t({input:g,textarea:y,ref:S,textareaStyle:B,autosize:co(r,"autosize"),isComposing:he,focus:pe,blur:ie,select:Fe,clear:ze,resizeTextarea:te}),(Ne,Re)=>(L(),G("div",{class:oe([C(s),{[C(v).bm("group","append")]:Ne.$slots.append,[C(v).bm("group","prepend")]:Ne.$slots.prepend}]),style:rn(C(W)),onMouseenter:Be,onMouseleave:ue},[xe(" input "),Ne.type!=="textarea"?(L(),G(Rt,{key:0},[xe(" prepend slot "),Ne.$slots.prepend?(L(),G("div",{key:0,class:oe(C(v).be("group","prepend"))},[ht(Ne.$slots,"prepend")],2)):xe("v-if",!0),x("div",{ref_key:"wrapperRef",ref:E,class:oe(C(l))},[xe(" prefix slot "),Ne.$slots.prefix||Ne.prefixIcon?(L(),G("span",{key:0,class:oe(C(v).e("prefix"))},[x("span",{class:oe(C(v).e("prefix-inner"))},[ht(Ne.$slots,"prefix"),Ne.prefixIcon?(L(),yt(C(Dn),{key:0,class:oe(C(v).e("icon"))},{default:rt(()=>[(L(),yt(mr(Ne.prefixIcon)))]),_:1},8,["class"])):xe("v-if",!0)],2)],2)):xe("v-if",!0),x("input",vr({id:C(c),ref_key:"input",ref:g,class:C(v).e("inner")},C(i),{name:Ne.name,minlength:Ne.minlength,maxlength:Ne.maxlength,type:Ne.showPassword?b.value?"text":"password":Ne.type,disabled:C(p),readonly:Ne.readonly,autocomplete:Ne.autocomplete,tabindex:Ne.tabindex,"aria-label":Ne.ariaLabel,placeholder:Ne.placeholder,style:Ne.inputStyle,form:Ne.form,autofocus:Ne.autofocus,role:Ne.containerRole,inputmode:Ne.inputmode,onCompositionstart:C(Ee),onCompositionupdate:C(Q),onCompositionend:C(me),onInput:Pe,onChange:Ae,onKeydown:Me}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),xe(" suffix slot "),C(H)?(L(),G("span",{key:1,class:oe(C(v).e("suffix"))},[x("span",{class:oe(C(v).e("suffix-inner"))},[!C(j)||!C(q)||!C(Y)?(L(),G(Rt,{key:0},[ht(Ne.$slots,"suffix"),Ne.suffixIcon?(L(),yt(C(Dn),{key:0,class:oe(C(v).e("icon"))},{default:rt(()=>[(L(),yt(mr(Ne.suffixIcon)))]),_:1},8,["class"])):xe("v-if",!0)],64)):xe("v-if",!0),C(j)?(L(),yt(C(Dn),{key:1,class:oe([C(v).e("icon"),C(v).e("clear")]),onMousedown:en(C(bo),["prevent"]),onClick:ze},{default:rt(()=>[(L(),yt(mr(Ne.clearIcon)))]),_:1},8,["class","onMousedown"])):xe("v-if",!0),C(q)?(L(),yt(C(Dn),{key:2,class:oe([C(v).e("icon"),C(v).e("password")]),onClick:De},{default:rt(()=>[(L(),yt(mr(C(N))))]),_:1},8,["class"])):xe("v-if",!0),C(Y)?(L(),G("span",{key:3,class:oe(C(v).e("count"))},[x("span",{class:oe(C(v).e("count-inner"))},je(C(U))+" / "+je(Ne.maxlength),3)],2)):xe("v-if",!0),C(k)&&C(R)&&C(O)?(L(),yt(C(Dn),{key:4,class:oe([C(v).e("icon"),C(v).e("validateIcon"),C(v).is("loading",C(k)==="validating")])},{default:rt(()=>[(L(),yt(mr(C(R))))]),_:1},8,["class"])):xe("v-if",!0)],2)],2)):xe("v-if",!0)],2),xe(" append slot "),Ne.$slots.append?(L(),G("div",{key:1,class:oe(C(v).be("group","append"))},[ht(Ne.$slots,"append")],2)):xe("v-if",!0)],64)):(L(),G(Rt,{key:1},[xe(" textarea "),x("textarea",vr({id:C(c),ref_key:"textarea",ref:y,class:[C(h).e("inner"),C(v).is("focus",C(D))]},C(i),{minlength:Ne.minlength,maxlength:Ne.maxlength,tabindex:Ne.tabindex,disabled:C(p),readonly:Ne.readonly,autocomplete:Ne.autocomplete,style:C(B),"aria-label":Ne.ariaLabel,placeholder:Ne.placeholder,form:Ne.form,autofocus:Ne.autofocus,rows:Ne.rows,role:Ne.containerRole,onCompositionstart:C(Ee),onCompositionupdate:C(Q),onCompositionend:C(me),onInput:Pe,onFocus:C(_),onBlur:C(M),onChange:Ae,onKeydown:Me}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),C(Y)?(L(),G("span",{key:0,style:rn(w.value),class:oe(C(v).e("count"))},je(C(U))+" / "+je(Ne.maxlength),7)):xe("v-if",!0)],64))],38))}});var pFe=on(fFe,[["__file","input.vue"]]);const js=or(pFe),Rm=4,f1e={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},hFe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),_H=Symbol("scrollbarContextKey"),gFe=Jt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),vFe="Thumb",mFe=nt({__name:"thumb",props:gFe,setup(e){const t=e,n=dn(_H),r=Vt("scrollbar");n||na(vFe,"can not inject scrollbar context");const o=K(),i=K(),a=K({}),s=K(!1);let l=!1,u=!1,d=0,c=0,f=Xr?document.onselectstart:null;const p=ee(()=>f1e[t.vertical?"vertical":"horizontal"]),v=ee(()=>hFe({size:t.size,move:t.move,bar:p.value})),h=ee(()=>o.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/i.value[p.value.offset]),g=D=>{var _;if(D.stopPropagation(),D.ctrlKey||[1,2].includes(D.button))return;(_=window.getSelection())==null||_.removeAllRanges(),m(D);const M=D.currentTarget;M&&(a.value[p.value.axis]=M[p.value.offset]-(D[p.value.client]-M.getBoundingClientRect()[p.value.direction]))},y=D=>{if(!i.value||!o.value||!n.wrapElement)return;const _=Math.abs(D.target.getBoundingClientRect()[p.value.direction]-D[p.value.client]),M=i.value[p.value.offset]/2,O=(_-M)*100*h.value/o.value[p.value.offset];n.wrapElement[p.value.scroll]=O*n.wrapElement[p.value.scrollSize]/100},m=D=>{D.stopImmediatePropagation(),l=!0,d=n.wrapElement.scrollHeight,c=n.wrapElement.scrollWidth,document.addEventListener("mousemove",b),document.addEventListener("mouseup",w),f=document.onselectstart,document.onselectstart=()=>!1},b=D=>{if(!o.value||!i.value||l===!1)return;const _=a.value[p.value.axis];if(!_)return;const M=(o.value.getBoundingClientRect()[p.value.direction]-D[p.value.client])*-1,O=i.value[p.value.offset]-_,k=(M-O)*100*h.value/o.value[p.value.offset];p.value.scroll==="scrollLeft"?n.wrapElement[p.value.scroll]=k*c/100:n.wrapElement[p.value.scroll]=k*d/100},w=()=>{l=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w),E(),u&&(s.value=!1)},A=()=>{u=!1,s.value=!!t.size},S=()=>{u=!0,s.value=l};Jr(()=>{E(),document.removeEventListener("mouseup",w)});const E=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return Ro(co(n,"scrollbarElement"),"mousemove",A),Ro(co(n,"scrollbarElement"),"mouseleave",S),(D,_)=>(L(),yt(Ki,{name:C(r).b("fade"),persisted:""},{default:rt(()=>[cn(x("div",{ref_key:"instance",ref:o,class:oe([C(r).e("bar"),C(r).is(C(p).key)]),onMousedown:y,onClick:en(()=>{},["stop"])},[x("div",{ref_key:"thumb",ref:i,class:oe(C(r).e("thumb")),style:rn(C(v)),onMousedown:g},null,38)],42,["onClick"]),[[kr,D.always||s.value]])]),_:1},8,["name"]))}});var rJ=on(mFe,[["__file","thumb.vue"]]);const yFe=Jt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),bFe=nt({__name:"bar",props:yFe,setup(e,{expose:t}){const n=e,r=dn(_H),o=K(0),i=K(0),a=K(""),s=K(""),l=K(1),u=K(1);return t({handleScroll:f=>{if(f){const p=f.offsetHeight-Rm,v=f.offsetWidth-Rm;i.value=f.scrollTop*100/p*l.value,o.value=f.scrollLeft*100/v*u.value}},update:()=>{const f=r?.wrapElement;if(!f)return;const p=f.offsetHeight-Rm,v=f.offsetWidth-Rm,h=p**2/f.scrollHeight,g=v**2/f.scrollWidth,y=Math.max(h,n.minSize),m=Math.max(g,n.minSize);l.value=h/(p-h)/(y/(p-y)),u.value=g/(v-g)/(m/(v-m)),s.value=y+Rm<p?`${y}px`:"",a.value=m+Rm<v?`${m}px`:""}}),(f,p)=>(L(),G(Rt,null,[He(rJ,{move:o.value,ratio:u.value,size:a.value,always:f.always},null,8,["move","ratio","size","always"]),He(rJ,{move:i.value,ratio:l.value,size:s.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var wFe=on(bFe,[["__file","bar.vue"]]);const AFe=Jt({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ct([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,..._s(["ariaLabel","ariaOrientation"])}),p1e={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every($n)},CFe="ElScrollbar",xFe=nt({name:CFe}),SFe=nt({...xFe,props:AFe,emits:p1e,setup(e,{expose:t,emit:n}){const r=e,o=Vt("scrollbar");let i,a,s,l=0,u=0,d="";const c={bottom:!1,top:!1,right:!1,left:!1},f=K(),p=K(),v=K(),h=K(),g=ee(()=>{const O={};return r.height&&(O.height=_i(r.height)),r.maxHeight&&(O.maxHeight=_i(r.maxHeight)),[r.wrapStyle,O]}),y=ee(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),m=ee(()=>[o.e("view"),r.viewClass]),b=O=>{var k;return(k=c[O])!=null?k:!1},w={top:"bottom",bottom:"top",left:"right",right:"left"},A=O=>{const k=w[d];if(!k)return;const R=O[d],N=O[k];R&&!c[d]&&(c[d]=!0),!N&&c[k]&&(c[k]=!1)},S=()=>{var O;if(p.value){(O=h.value)==null||O.handleScroll(p.value);const k=l,R=u;l=p.value.scrollTop,u=p.value.scrollLeft;const N={bottom:l+p.value.clientHeight>=p.value.scrollHeight-r.distance,top:l<=r.distance&&k!==0,right:u+p.value.clientWidth>=p.value.scrollWidth-r.distance&&R!==u,left:u<=r.distance&&R!==0};if(n("scroll",{scrollTop:l,scrollLeft:u}),k!==l&&(d=l>k?"bottom":"top"),R!==u&&(d=u>R?"right":"left"),r.distance>0){if(b(d))return;A(N)}N[d]&&n("end-reached",d)}};function E(O,k){dr(O)?p.value.scrollTo(O):$n(O)&&$n(k)&&p.value.scrollTo(O,k)}const D=O=>{$n(O)&&(p.value.scrollTop=O)},_=O=>{$n(O)&&(p.value.scrollLeft=O)},M=()=>{var O;(O=h.value)==null||O.update(),c[d]=!1};return St(()=>r.noresize,O=>{O?(i?.(),a?.(),s?.()):({stop:i}=li(v,M),{stop:a}=li(p,M),s=Ro("resize",M))},{immediate:!0}),St(()=>[r.maxHeight,r.height],()=>{r.native||Yt(()=>{var O;M(),p.value&&((O=h.value)==null||O.handleScroll(p.value))})}),_r(_H,Wr({scrollbarElement:f,wrapElement:p})),Db(()=>{p.value&&(p.value.scrollTop=l,p.value.scrollLeft=u)}),qn(()=>{r.native||Yt(()=>{M()})}),Qc(()=>M()),t({wrapRef:p,update:M,scrollTo:E,setScrollTop:D,setScrollLeft:_,handleScroll:S}),(O,k)=>(L(),G("div",{ref_key:"scrollbarRef",ref:f,class:oe(C(o).b())},[x("div",{ref_key:"wrapRef",ref:p,class:oe(C(y)),style:rn(C(g)),tabindex:O.tabindex,onScroll:S},[(L(),yt(mr(O.tag),{id:O.id,ref_key:"resizeRef",ref:v,class:oe(C(m)),style:rn(O.viewStyle),role:O.role,"aria-label":O.ariaLabel,"aria-orientation":O.ariaOrientation},{default:rt(()=>[ht(O.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),O.native?xe("v-if",!0):(L(),yt(wFe,{key:0,ref_key:"barRef",ref:h,always:O.always,"min-size":O.minSize},null,8,["always","min-size"]))],2))}});var EFe=on(SFe,[["__file","scrollbar.vue"]]);const Hc=or(EFe),DH=Symbol("popper"),h1e=Symbol("popperContent"),g1e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],v1e=Jt({role:{type:String,values:g1e,default:"tooltip"}}),kFe=nt({name:"ElPopper",inheritAttrs:!1}),TFe=nt({...kFe,props:v1e,setup(e,{expose:t}){const n=e,r=K(),o=K(),i=K(),a=K(),s=ee(()=>n.role),l={triggerRef:r,popperInstanceRef:o,contentRef:i,referenceRef:a,role:s};return t(l),_r(DH,l),(u,d)=>ht(u.$slots,"default")}});var _Fe=on(TFe,[["__file","popper.vue"]]);const DFe=nt({name:"ElPopperArrow",inheritAttrs:!1}),IFe=nt({...DFe,setup(e,{expose:t}){const n=Vt("popper"),{arrowRef:r,arrowStyle:o}=dn(h1e,void 0);return Jr(()=>{r.value=void 0}),t({arrowRef:r}),(i,a)=>(L(),G("span",{ref_key:"arrowRef",ref:r,class:oe(C(n).e("arrow")),style:rn(C(o)),"data-popper-arrow":""},null,6))}});var OFe=on(IFe,[["__file","arrow.vue"]]);const m1e=Jt({virtualRef:{type:ct(Object)},virtualTriggering:Boolean,onMouseenter:{type:ct(Function)},onMouseleave:{type:ct(Function)},onClick:{type:ct(Function)},onKeydown:{type:ct(Function)},onFocus:{type:ct(Function)},onBlur:{type:ct(Function)},onContextmenu:{type:ct(Function)},id:String,open:Boolean}),y1e=Symbol("elForwardRef"),MFe=e=>{_r(y1e,{setForwardRef:n=>{e.value=n}})},PFe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),NFe="ElOnlyChild",b1e=nt({name:NFe,setup(e,{slots:t,attrs:n}){var r;const o=dn(y1e),i=PFe((r=o?.setForwardRef)!=null?r:bo);return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t,n);if(!s||s.length>1)return null;const l=w1e(s);return l?cn(Zf(l,n),[[i]]):null}}});function w1e(e){if(!e)return null;const t=e;for(const n of t){if(dr(n))switch(n.type){case da:continue;case Ib:case"svg":return oJ(n);case Rt:return w1e(n.children);default:return n}return oJ(n)}return null}function oJ(e){const t=Vt("only-child");return He("span",{class:t.e("content")},[e])}const RFe=nt({name:"ElPopperTrigger",inheritAttrs:!1}),BFe=nt({...RFe,props:m1e,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=dn(DH,void 0);MFe(o);const i=ee(()=>s.value?n.id:void 0),a=ee(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=ee(()=>{if(r&&r.value!=="tooltip")return r.value}),l=ee(()=>s.value?`${n.open}`:void 0);let u;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return qn(()=>{St(()=>n.virtualRef,c=>{c&&(o.value=Ta(c))},{immediate:!0}),St(o,(c,f)=>{u?.(),u=void 0,cl(c)&&(d.forEach(p=>{var v;const h=n[p];h&&(c.addEventListener(p.slice(2).toLowerCase(),h),(v=f?.removeEventListener)==null||v.call(f,p.slice(2).toLowerCase(),h))}),Z3(c)&&(u=St([i,a,s,l],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,h)=>{ea(p[h])?c.removeAttribute(v):c.setAttribute(v,p[h])})},{immediate:!0}))),cl(f)&&Z3(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>f.removeAttribute(p))},{immediate:!0})}),Jr(()=>{if(u?.(),u=void 0,o.value&&cl(o.value)){const c=o.value;d.forEach(f=>{const p=n[f];p&&c.removeEventListener(f.slice(2).toLowerCase(),p)}),o.value=void 0}}),t({triggerRef:o}),(c,f)=>c.virtualTriggering?xe("v-if",!0):(L(),yt(C(b1e),vr({key:0},c.$attrs,{"aria-controls":C(i),"aria-describedby":C(a),"aria-expanded":C(l),"aria-haspopup":C(s)}),{default:rt(()=>[ht(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var LFe=on(BFe,[["__file","trigger.vue"]]);const hI="focus-trap.focus-after-trapped",gI="focus-trap.focus-after-released",FFe="focus-trap.focusout-prevented",iJ={cancelable:!0,bubbles:!1},UFe={cancelable:!0,bubbles:!1},aJ="focusAfterTrapped",sJ="focusAfterReleased",IH=Symbol("elFocusTrap"),OH=K(),sD=K(0),MH=K(0);let mx=0;const A1e=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},lJ=(e,t)=>{for(const n of e)if(!zFe(n,t))return n},zFe=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},$Fe=e=>{const t=A1e(e),n=lJ(t,e),r=lJ(t.reverse(),e);return[n,r]},jFe=e=>e instanceof HTMLInputElement&&"select"in e,Sf=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;cl(e)&&!Z3(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),MH.value=window.performance.now(),e!==n&&jFe(e)&&t&&e.select(),cl(e)&&r&&e.removeAttribute("tabindex")}};function uJ(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const HFe=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=uJ(e,r),e.unshift(r)},remove:r=>{var o,i;e=uJ(e,r),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},WFe=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Sf(r,t),document.activeElement!==n)return},cJ=HFe(),VFe=()=>sD.value>MH.value,yx=()=>{OH.value="pointer",sD.value=window.performance.now()},dJ=()=>{OH.value="keyboard",sD.value=window.performance.now()},qFe=()=>(qn(()=>{mx===0&&(document.addEventListener("mousedown",yx),document.addEventListener("touchstart",yx),document.addEventListener("keydown",dJ)),mx++}),Jr(()=>{mx--,mx<=0&&(document.removeEventListener("mousedown",yx),document.removeEventListener("touchstart",yx),document.removeEventListener("keydown",dJ))}),{focusReason:OH,lastUserFocusTimestamp:sD,lastAutomatedFocusTimestamp:MH}),bx=e=>new CustomEvent(FFe,{...UFe,detail:e}),gn={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};let O1=[];const fJ=e=>{e.code===gn.esc&&O1.forEach(t=>t(e))},GFe=e=>{qn(()=>{O1.length===0&&document.addEventListener("keydown",fJ),Xr&&O1.push(e)}),Jr(()=>{O1=O1.filter(t=>t!==e),O1.length===0&&Xr&&document.removeEventListener("keydown",fJ)})},KFe=nt({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[aJ,sJ,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=K();let r,o;const{focusReason:i}=qFe();GFe(v=>{e.trapped&&!a.paused&&t("release-requested",v)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||a.paused)return;const{code:h,altKey:g,ctrlKey:y,metaKey:m,currentTarget:b,shiftKey:w}=v,{loop:A}=e,S=h===gn.tab&&!g&&!y&&!m,E=document.activeElement;if(S&&E){const D=b,[_,M]=$Fe(D);if(_&&M){if(!w&&E===M){const k=bx({focusReason:i.value});t("focusout-prevented",k),k.defaultPrevented||(v.preventDefault(),A&&Sf(_,!0))}else if(w&&[_,D].includes(E)){const k=bx({focusReason:i.value});t("focusout-prevented",k),k.defaultPrevented||(v.preventDefault(),A&&Sf(M,!0))}}else if(E===D){const k=bx({focusReason:i.value});t("focusout-prevented",k),k.defaultPrevented||v.preventDefault()}}};_r(IH,{focusTrapRef:n,onKeydown:s}),St(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),St([n],([v],[h])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",d),v.addEventListener("focusout",c)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",d),h.removeEventListener("focusout",c))});const l=v=>{t(aJ,v)},u=v=>t(sJ,v),d=v=>{const h=C(n);if(!h)return;const g=v.target,y=v.relatedTarget,m=g&&h.contains(g);e.trapped||y&&h.contains(y)||(r=y),m&&t("focusin",v),!a.paused&&e.trapped&&(m?o=g:Sf(o,!0))},c=v=>{const h=C(n);if(!(a.paused||!h))if(e.trapped){const g=v.relatedTarget;!ea(g)&&!h.contains(g)&&setTimeout(()=>{if(!a.paused&&e.trapped){const y=bx({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||Sf(o,!0)}},0)}else{const g=v.target;g&&h.contains(g)||t("focusout",v)}};async function f(){await Yt();const v=C(n);if(v){cJ.push(a);const h=v.contains(document.activeElement)?r:document.activeElement;if(r=h,!v.contains(h)){const y=new Event(hI,iJ);v.addEventListener(hI,l),v.dispatchEvent(y),y.defaultPrevented||Yt(()=>{let m=e.focusStartEl;In(m)||(Sf(m),document.activeElement!==m&&(m="first")),m==="first"&&WFe(A1e(v),!0),(document.activeElement===h||m==="container")&&Sf(v)})}}}function p(){const v=C(n);if(v){v.removeEventListener(hI,l);const h=new CustomEvent(gI,{...iJ,detail:{focusReason:i.value}});v.addEventListener(gI,u),v.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!VFe()||v.contains(document.activeElement))&&Sf(r??document.body),v.removeEventListener(gI,u),cJ.remove(a)}}return qn(()=>{e.trapped&&f(),St(()=>e.trapped,v=>{v?f():p()})}),Jr(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",c),n.value=void 0)}),{onKeydown:s}}});function YFe(e,t,n,r,o,i){return ht(e.$slots,"default",{handleKeydown:e.onKeydown})}var $b=on(KFe,[["render",YFe],["__file","focus-trap.vue"]]),Ll="top",Ju="bottom",ec="right",Fl="left",PH="auto",U5=[Ll,Ju,ec,Fl],Ny="start",X3="end",QFe="clippingParents",C1e="viewport",M2="popper",ZFe="reference",pJ=U5.reduce(function(e,t){return e.concat([t+"-"+Ny,t+"-"+X3])},[]),Cp=[].concat(U5,[PH]).reduce(function(e,t){return e.concat([t,t+"-"+Ny,t+"-"+X3])},[]),XFe="beforeRead",JFe="read",eUe="afterRead",tUe="beforeMain",nUe="main",rUe="afterMain",oUe="beforeWrite",iUe="write",aUe="afterWrite",sUe=[XFe,JFe,eUe,tUe,nUe,rUe,oUe,iUe,aUe];function Wd(e){return e?(e.nodeName||"").toLowerCase():null}function td(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ry(e){var t=td(e).Element;return e instanceof t||e instanceof Element}function qu(e){var t=td(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function NH(e){if(typeof ShadowRoot>"u")return!1;var t=td(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lUe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!qu(i)||!Wd(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function uUe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!qu(o)||!Wd(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var x1e={name:"applyStyles",enabled:!0,phase:"write",fn:lUe,effect:uUe,requires:["computeStyles"]};function Bd(e){return e.split("-")[0]}var Xg=Math.max,CE=Math.min,By=Math.round;function Ly(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(qu(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=By(n.width)/a||1),i>0&&(o=By(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function RH(e){var t=Ly(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function S1e(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&NH(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ep(e){return td(e).getComputedStyle(e)}function cUe(e){return["table","td","th"].indexOf(Wd(e))>=0}function I0(e){return((Ry(e)?e.ownerDocument:e.document)||window.document).documentElement}function lD(e){return Wd(e)==="html"?e:e.assignedSlot||e.parentNode||(NH(e)?e.host:null)||I0(e)}function hJ(e){return!qu(e)||ep(e).position==="fixed"?null:e.offsetParent}function dUe(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&qu(e)){var r=ep(e);if(r.position==="fixed")return null}var o=lD(e);for(NH(o)&&(o=o.host);qu(o)&&["html","body"].indexOf(Wd(o))<0;){var i=ep(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function z5(e){for(var t=td(e),n=hJ(e);n&&cUe(n)&&ep(n).position==="static";)n=hJ(n);return n&&(Wd(n)==="html"||Wd(n)==="body"&&ep(n).position==="static")?t:n||dUe(e)||t}function BH(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function n3(e,t,n){return Xg(e,CE(t,n))}function fUe(e,t,n){var r=n3(e,t,n);return r>n?n:r}function E1e(){return{top:0,right:0,bottom:0,left:0}}function k1e(e){return Object.assign({},E1e(),e)}function T1e(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pUe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,k1e(typeof e!="number"?e:T1e(e,U5))};function hUe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Bd(n.placement),l=BH(s),u=[Fl,ec].indexOf(s)>=0,d=u?"height":"width";if(!(!i||!a)){var c=pUe(o.padding,n),f=RH(i),p=l==="y"?Ll:Fl,v=l==="y"?Ju:ec,h=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],g=a[l]-n.rects.reference[l],y=z5(i),m=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,b=h/2-g/2,w=c[p],A=m-f[d]-c[v],S=m/2-f[d]/2+b,E=n3(w,S,A),D=l;n.modifiersData[r]=(t={},t[D]=E,t.centerOffset=E-S,t)}}function gUe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!S1e(t.elements.popper,o)||(t.elements.arrow=o))}var vUe={name:"arrow",enabled:!0,phase:"main",fn:hUe,effect:gUe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fy(e){return e.split("-")[1]}var mUe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yUe(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:By(t*o)/o||0,y:By(n*o)/o||0}}function gJ(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,c=e.isFixed,f=a.x,p=f===void 0?0:f,v=a.y,h=v===void 0?0:v,g=typeof d=="function"?d({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var y=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),b=Fl,w=Ll,A=window;if(u){var S=z5(n),E="clientHeight",D="clientWidth";if(S===td(n)&&(S=I0(n),ep(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",D="scrollWidth")),S=S,o===Ll||(o===Fl||o===ec)&&i===X3){w=Ju;var _=c&&S===A&&A.visualViewport?A.visualViewport.height:S[E];h-=_-r.height,h*=l?1:-1}if(o===Fl||(o===Ll||o===Ju)&&i===X3){b=ec;var M=c&&S===A&&A.visualViewport?A.visualViewport.width:S[D];p-=M-r.width,p*=l?1:-1}}var O=Object.assign({position:s},u&&mUe),k=d===!0?yUe({x:p,y:h}):{x:p,y:h};if(p=k.x,h=k.y,l){var R;return Object.assign({},O,(R={},R[w]=m?"0":"",R[b]=y?"0":"",R.transform=(A.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",R))}return Object.assign({},O,(t={},t[w]=m?h+"px":"",t[b]=y?p+"px":"",t.transform="",t))}function bUe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Bd(t.placement),variation:Fy(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,gJ(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,gJ(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var _1e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bUe,data:{}},wx={passive:!0};function wUe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=td(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,wx)}),s&&l.addEventListener("resize",n.update,wx),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,wx)}),s&&l.removeEventListener("resize",n.update,wx)}}var D1e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wUe,data:{}},AUe={left:"right",right:"left",bottom:"top",top:"bottom"};function SS(e){return e.replace(/left|right|bottom|top/g,function(t){return AUe[t]})}var CUe={start:"end",end:"start"};function vJ(e){return e.replace(/start|end/g,function(t){return CUe[t]})}function LH(e){var t=td(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function FH(e){return Ly(I0(e)).left+LH(e).scrollLeft}function xUe(e){var t=td(e),n=I0(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+FH(e),y:s}}function SUe(e){var t,n=I0(e),r=LH(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Xg(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Xg(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+FH(e),l=-r.scrollTop;return ep(o||n).direction==="rtl"&&(s+=Xg(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function UH(e){var t=ep(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function I1e(e){return["html","body","#document"].indexOf(Wd(e))>=0?e.ownerDocument.body:qu(e)&&UH(e)?e:I1e(lD(e))}function r3(e,t){var n;t===void 0&&(t=[]);var r=I1e(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=td(r),a=o?[i].concat(i.visualViewport||[],UH(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(r3(lD(a)))}function AL(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function EUe(e){var t=Ly(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function mJ(e,t){return t===C1e?AL(xUe(e)):Ry(t)?EUe(t):AL(SUe(I0(e)))}function kUe(e){var t=r3(lD(e)),n=["absolute","fixed"].indexOf(ep(e).position)>=0,r=n&&qu(e)?z5(e):e;return Ry(r)?t.filter(function(o){return Ry(o)&&S1e(o,r)&&Wd(o)!=="body"}):[]}function TUe(e,t,n){var r=t==="clippingParents"?kUe(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,l){var u=mJ(e,l);return s.top=Xg(u.top,s.top),s.right=CE(u.right,s.right),s.bottom=CE(u.bottom,s.bottom),s.left=Xg(u.left,s.left),s},mJ(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function O1e(e){var t=e.reference,n=e.element,r=e.placement,o=r?Bd(r):null,i=r?Fy(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Ll:l={x:a,y:t.y-n.height};break;case Ju:l={x:a,y:t.y+t.height};break;case ec:l={x:t.x+t.width,y:s};break;case Fl:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?BH(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Ny:l[u]=l[u]-(t[d]/2-n[d]/2);break;case X3:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function J3(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.boundary,a=i===void 0?QFe:i,s=n.rootBoundary,l=s===void 0?C1e:s,u=n.elementContext,d=u===void 0?M2:u,c=n.altBoundary,f=c===void 0?!1:c,p=n.padding,v=p===void 0?0:p,h=k1e(typeof v!="number"?v:T1e(v,U5)),g=d===M2?ZFe:M2,y=e.rects.popper,m=e.elements[f?g:d],b=TUe(Ry(m)?m:m.contextElement||I0(e.elements.popper),a,l),w=Ly(e.elements.reference),A=O1e({reference:w,element:y,placement:o}),S=AL(Object.assign({},y,A)),E=d===M2?S:w,D={top:b.top-E.top+h.top,bottom:E.bottom-b.bottom+h.bottom,left:b.left-E.left+h.left,right:E.right-b.right+h.right},_=e.modifiersData.offset;if(d===M2&&_){var M=_[o];Object.keys(D).forEach(function(O){var k=[ec,Ju].indexOf(O)>=0?1:-1,R=[Ll,Ju].indexOf(O)>=0?"y":"x";D[O]+=M[R]*k})}return D}function _Ue(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Cp:l,d=Fy(r),c=d?s?pJ:pJ.filter(function(v){return Fy(v)===d}):U5,f=c.filter(function(v){return u.indexOf(v)>=0});f.length===0&&(f=c);var p=f.reduce(function(v,h){return v[h]=J3(e,{placement:h,boundary:o,rootBoundary:i,padding:a})[Bd(h)],v},{});return Object.keys(p).sort(function(v,h){return p[v]-p[h]})}function DUe(e){if(Bd(e)===PH)return[];var t=SS(e);return[vJ(e),t,vJ(t)]}function IUe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,d=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,y=Bd(g),m=y===g,b=l||(m||!v?[SS(g)]:DUe(g)),w=[g].concat(b).reduce(function(re,X){return re.concat(Bd(X)===PH?_Ue(t,{placement:X,boundary:d,rootBoundary:c,padding:u,flipVariations:v,allowedAutoPlacements:h}):X)},[]),A=t.rects.reference,S=t.rects.popper,E=new Map,D=!0,_=w[0],M=0;M<w.length;M++){var O=w[M],k=Bd(O),R=Fy(O)===Ny,N=[Ll,Ju].indexOf(k)>=0,W=N?"width":"height",B=J3(t,{placement:O,boundary:d,rootBoundary:c,altBoundary:f,padding:u}),z=N?R?ec:Fl:R?Ju:Ll;A[W]>S[W]&&(z=SS(z));var j=SS(z),q=[];if(i&&q.push(B[k]<=0),s&&q.push(B[z]<=0,B[j]<=0),q.every(function(re){return re})){_=O,D=!1;break}E.set(O,q)}if(D)for(var Y=v?3:1,U=function(re){var X=w.find(function(te){var Z=E.get(te);if(Z)return Z.slice(0,re).every(function(le){return le})});if(X)return _=X,"break"},F=Y;F>0;F--){var H=U(F);if(H==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}var OUe={name:"flip",enabled:!0,phase:"main",fn:IUe,requiresIfExists:["offset"],data:{_skip:!1}};function yJ(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bJ(e){return[Ll,ec,Ju,Fl].some(function(t){return e[t]>=0})}function MUe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=J3(t,{elementContext:"reference"}),s=J3(t,{altBoundary:!0}),l=yJ(a,r),u=yJ(s,o,i),d=bJ(l),c=bJ(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":c})}var PUe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MUe};function NUe(e,t,n){var r=Bd(e),o=[Fl,Ll].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Fl,ec].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function RUe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Cp.reduce(function(d,c){return d[c]=NUe(c,t.rects,i),d},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var BUe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RUe};function LUe(e){var t=e.state,n=e.name;t.modifiersData[n]=O1e({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var M1e={name:"popperOffsets",enabled:!0,phase:"read",fn:LUe,data:{}};function FUe(e){return e==="x"?"y":"x"}function UUe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,c=n.padding,f=n.tether,p=f===void 0?!0:f,v=n.tetherOffset,h=v===void 0?0:v,g=J3(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:d}),y=Bd(t.placement),m=Fy(t.placement),b=!m,w=BH(y),A=FUe(w),S=t.modifiersData.popperOffsets,E=t.rects.reference,D=t.rects.popper,_=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,M=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(i){var R,N=w==="y"?Ll:Fl,W=w==="y"?Ju:ec,B=w==="y"?"height":"width",z=S[w],j=z+g[N],q=z-g[W],Y=p?-D[B]/2:0,U=m===Ny?E[B]:D[B],F=m===Ny?-D[B]:-E[B],H=t.elements.arrow,re=p&&H?RH(H):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:E1e(),te=X[N],Z=X[W],le=n3(0,E[B],re[B]),ve=b?E[B]/2-Y-le-te-M.mainAxis:U-le-te-M.mainAxis,Pe=b?-E[B]/2+Y+le+Z+M.mainAxis:F+le+Z+M.mainAxis,Ae=t.elements.arrow&&z5(t.elements.arrow),he=Ae?w==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,Ee=(R=O?.[w])!=null?R:0,Q=z+ve-Ee-he,me=z+Pe-Ee,De=n3(p?CE(j,Q):j,z,p?Xg(q,me):q);S[w]=De,k[w]=De-z}if(s){var pe,ie=w==="x"?Ll:Fl,ue=w==="x"?Ju:ec,Be=S[A],Me=A==="y"?"height":"width",Fe=Be+g[ie],ze=Be-g[ue],Ne=[Ll,Fl].indexOf(y)!==-1,Re=(pe=O?.[A])!=null?pe:0,gt=Ne?Fe:Be-E[Me]-D[Me]-Re+M.altAxis,Bt=Ne?Be+E[Me]+D[Me]-Re-M.altAxis:ze,Lt=p&&Ne?fUe(gt,Be,Bt):n3(p?gt:Fe,Be,p?Bt:ze);S[A]=Lt,k[A]=Lt-Be}t.modifiersData[r]=k}}var zUe={name:"preventOverflow",enabled:!0,phase:"main",fn:UUe,requiresIfExists:["offset"]};function $Ue(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jUe(e){return e===td(e)||!qu(e)?LH(e):$Ue(e)}function HUe(e){var t=e.getBoundingClientRect(),n=By(t.width)/e.offsetWidth||1,r=By(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WUe(e,t,n){n===void 0&&(n=!1);var r=qu(t),o=qu(t)&&HUe(t),i=I0(t),a=Ly(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Wd(t)!=="body"||UH(i))&&(s=jUe(t)),qu(t)?(l=Ly(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=FH(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function VUe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function qUe(e){var t=VUe(e);return sUe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function GUe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function KUe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var wJ={placement:"bottom",modifiers:[],strategy:"absolute"};function AJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function zH(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?wJ:o;return function(a,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},wJ,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},d=[],c=!1,f={state:u,setOptions:function(h){var g=typeof h=="function"?h(u.options):h;v(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:Ry(a)?r3(a):a.contextElement?r3(a.contextElement):[],popper:r3(s)};var y=qUe(KUe([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(m){return m.enabled}),p(),f.update()},forceUpdate:function(){if(!c){var h=u.elements,g=h.reference,y=h.popper;if(AJ(g,y)){u.rects={reference:WUe(g,z5(y),u.options.strategy==="fixed"),popper:RH(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var m=0;m<u.orderedModifiers.length;m++){if(u.reset===!0){u.reset=!1,m=-1;continue}var b=u.orderedModifiers[m],w=b.fn,A=b.options,S=A===void 0?{}:A,E=b.name;typeof w=="function"&&(u=w({state:u,options:S,name:E,instance:f})||u)}}}},update:GUe(function(){return new Promise(function(h){f.forceUpdate(),h(u)})}),destroy:function(){v(),c=!0}};if(!AJ(a,s))return f;f.setOptions(l).then(function(h){!c&&l.onFirstUpdate&&l.onFirstUpdate(h)});function p(){u.orderedModifiers.forEach(function(h){var g=h.name,y=h.options,m=y===void 0?{}:y,b=h.effect;if(typeof b=="function"){var w=b({state:u,name:g,instance:f,options:m}),A=function(){};d.push(w||A)}})}function v(){d.forEach(function(h){return h()}),d=[]}return f}}zH();var YUe=[D1e,M1e,_1e,x1e];zH({defaultModifiers:YUe});var QUe=[D1e,M1e,_1e,x1e,BUe,OUe,zUe,vUe,PUe],ZUe=zH({defaultModifiers:QUe});const P1e=Jt({arrowOffset:{type:Number,default:5}}),XUe=["fixed","absolute"],JUe=Jt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ct(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Cp,default:"bottom"},popperOptions:{type:ct(Object),default:()=>({})},strategy:{type:String,values:XUe,default:"absolute"}}),N1e=Jt({...JUe,...P1e,id:String,style:{type:ct([String,Array,Object])},className:{type:ct([String,Array,Object])},effect:{type:ct(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:ct([String,Array,Object])},popperStyle:{type:ct([String,Array,Object])},referenceEl:{type:ct(Object)},triggerTargetEl:{type:ct(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,..._s(["ariaLabel"])}),eze={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},tze=(e,t)=>{const n=K(!1),r=K();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},nze=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,i={placement:n,strategy:r,...o,modifiers:[...oze(e),...t]};return ize(i,o?.modifiers),i},rze=e=>{if(Xr)return Ta(e)};function oze(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function ize(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const aze=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=sze(l);Object.assign(a.value,u)},requires:["computeStyles"]},o=ee(()=>{const{onFirstUpdate:l,placement:u,strategy:d,modifiers:c}=C(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:d||"absolute",modifiers:[...c||[],r,{name:"applyStyles",enabled:!1}]}}),i=jo(),a=K({styles:{popper:{position:C(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return St(o,l=>{const u=C(i);u&&u.setOptions(l)},{deep:!0}),St([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=ZUe(l,u,C(o)))}),Jr(()=>{s()}),{state:ee(()=>{var l;return{...((l=C(i))==null?void 0:l.state)||{}}}),styles:ee(()=>C(a).styles),attributes:ee(()=>C(a).attributes),update:()=>{var l;return(l=C(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=C(i))==null?void 0:l.forceUpdate()},instanceRef:ee(()=>C(i))}};function sze(e){const t=Object.keys(e.elements),n=Y3(t.map(o=>[o,e.styles[o]||{}])),r=Y3(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const lze=0,uze=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=dn(DH,void 0),i=K(),a=ee(()=>e.arrowOffset),s=ee(()=>({name:"eventListeners",enabled:!!e.visible})),l=ee(()=>{var y;const m=C(i),b=(y=C(a))!=null?y:lze;return{name:"arrow",enabled:!dRe(m),options:{element:m,padding:b}}}),u=ee(()=>({onFirstUpdate:()=>{v()},...nze(e,[C(l),C(s)])})),d=ee(()=>rze(e.referenceEl)||C(r)),{attributes:c,state:f,styles:p,update:v,forceUpdate:h,instanceRef:g}=aze(d,n,u);return St(g,y=>t.value=y,{flush:"sync"}),qn(()=>{St(()=>{var y;return(y=C(d))==null?void 0:y.getBoundingClientRect()},()=>{v()})}),{attributes:c,arrowRef:i,contentRef:n,instanceRef:g,state:f,styles:p,role:o,forceUpdate:h,update:v}},cze=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=Fb(),i=Vt("popper"),a=ee(()=>C(t).popper),s=K($n(e.zIndex)?e.zIndex:o()),l=ee(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=ee(()=>[{zIndex:C(s)},C(n).popper,e.popperStyle||{}]),d=ee(()=>r.value==="dialog"?"false":void 0),c=ee(()=>C(n).arrow||{});return{ariaModal:d,arrowStyle:c,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=$n(e.zIndex)?e.zIndex:o()}}},dze=nt({name:"ElPopperContent"}),fze=nt({...dze,props:N1e,emits:eze,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:d}=tze(r,n),{attributes:c,arrowRef:f,contentRef:p,styles:v,instanceRef:h,role:g,update:y}=uze(r),{ariaModal:m,arrowStyle:b,contentAttrs:w,contentClass:A,contentStyle:S,updateZIndex:E}=cze(r,{styles:v,attributes:c,role:g}),D=dn(Hd,void 0);_r(h1e,{arrowStyle:b,arrowRef:f}),D&&_r(Hd,{...D,addInputId:bo,removeInputId:bo});let _;const M=(k=!0)=>{y(),k&&E()},O=()=>{M(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return qn(()=>{St(()=>r.triggerTargetEl,(k,R)=>{_?.(),_=void 0;const N=C(k||p.value),W=C(R||p.value);cl(N)&&(_=St([g,()=>r.ariaLabel,m,()=>r.id],B=>{["role","aria-label","aria-modal","id"].forEach((z,j)=>{ea(B[j])?N.removeAttribute(z):N.setAttribute(z,B[j])})},{immediate:!0})),W!==N&&cl(W)&&["role","aria-label","aria-modal","id"].forEach(B=>{W.removeAttribute(B)})},{immediate:!0}),St(()=>r.visible,O,{immediate:!0})}),Jr(()=>{_?.(),_=void 0}),t({popperContentRef:p,popperInstanceRef:h,updatePopper:M,contentStyle:S}),(k,R)=>(L(),G("div",vr({ref_key:"contentRef",ref:p},C(w),{style:C(S),class:C(A),tabindex:"-1",onMouseenter:N=>k.$emit("mouseenter",N),onMouseleave:N=>k.$emit("mouseleave",N)}),[He(C($b),{trapped:C(i),"trap-on-focus-in":!0,"focus-trap-el":C(p),"focus-start-el":C(o),onFocusAfterTrapped:C(s),onFocusAfterReleased:C(a),onFocusin:C(l),onFocusoutPrevented:C(u),onReleaseRequested:C(d)},{default:rt(()=>[ht(k.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var pze=on(fze,[["__file","content.vue"]]);const R1e=or(_Fe),$H=Symbol("elTooltip"),uD=Jt({to:{type:ct([String,Object]),required:!0},disabled:Boolean}),oi=Jt({...Jme,...N1e,appendTo:{type:uD.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:ct(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,..._s(["ariaLabel"])}),oy=Jt({...m1e,disabled:Boolean,trigger:{type:ct([String,Array]),default:"hover"},triggerKeys:{type:ct(Array),default:()=>[gn.enter,gn.numpadEnter,gn.space]}}),hze=Jc({type:ct(Boolean),default:null}),gze=Jc({type:ct(Function)}),vze=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:hze,[n]:gze};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:d,onHide:c})=>{const f=br(),{emit:p}=f,v=f.props,h=ee(()=>Rn(v[n])),g=ee(()=>v[e]===null),y=E=>{a.value!==!0&&(a.value=!0,s&&(s.value=E),Rn(d)&&d(E))},m=E=>{a.value!==!1&&(a.value=!1,s&&(s.value=E),Rn(c)&&c(E))},b=E=>{if(v.disabled===!0||Rn(u)&&!u())return;const D=h.value&&Xr;D&&p(t,!0),(g.value||!D)&&y(E)},w=E=>{if(v.disabled===!0||!Xr)return;const D=h.value&&Xr;D&&p(t,!1),(g.value||!D)&&m(E)},A=E=>{Eo(E)&&(v.disabled&&E?h.value&&p(t,!1):a.value!==E&&(E?y():m()))},S=()=>{a.value?w():b()};return St(()=>v[e],A),l&&f.appContext.config.globalProperties.$route!==void 0&&St(()=>({...f.proxy.$route}),()=>{l.value&&a.value&&w()}),qn(()=>{A(v[e])}),{hide:w,show:b,toggle:S,hasUpdateHandler:h}},useModelToggleProps:o,useModelToggleEmits:r}},{useModelToggleProps:mze,useModelToggleEmits:yze,useModelToggle:bze}=vze("visible"),wze=Jt({...v1e,...mze,...oi,...oy,...P1e,showArrow:{type:Boolean,default:!0}}),Aze=[...yze,"before-show","before-hide","show","hide","open","close"],Cze=(e,t)=>Zt(e)?e.includes(t):e===t,Bm=(e,t,n)=>r=>{Cze(C(e),t)&&n(r)},Li=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const i=e?.(o);if(n===!1||!i)return t?.(o)},CJ=e=>t=>t.pointerType==="mouse"?e(t):void 0,xze=nt({name:"ElTooltipTrigger"}),Sze=nt({...xze,props:oy,setup(e,{expose:t}){const n=e,r=Vt("tooltip"),{controlled:o,id:i,open:a,onOpen:s,onClose:l,onToggle:u}=dn($H,void 0),d=K(null),c=()=>{if(C(o)||n.disabled)return!0},f=co(n,"trigger"),p=Li(c,Bm(f,"hover",s)),v=Li(c,Bm(f,"hover",l)),h=Li(c,Bm(f,"click",w=>{w.button===0&&u(w)})),g=Li(c,Bm(f,"focus",s)),y=Li(c,Bm(f,"focus",l)),m=Li(c,Bm(f,"contextmenu",w=>{w.preventDefault(),u(w)})),b=Li(c,w=>{const{code:A}=w;n.triggerKeys.includes(A)&&(w.preventDefault(),u(w))});return t({triggerRef:d}),(w,A)=>(L(),yt(C(LFe),{id:C(i),"virtual-ref":w.virtualRef,open:C(a),"virtual-triggering":w.virtualTriggering,class:oe(C(r).e("trigger")),onBlur:C(y),onClick:C(h),onContextmenu:C(m),onFocus:C(g),onMouseenter:C(p),onMouseleave:C(v),onKeydown:C(b)},{default:rt(()=>[ht(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Eze=on(Sze,[["__file","trigger.vue"]]);const kze=nt({__name:"teleport",props:uD,setup(e){return(t,n)=>t.disabled?ht(t.$slots,"default",{key:0}):(L(),yt(QB,{key:1,to:t.to},[ht(t.$slots,"default")],8,["to"]))}});var Tze=on(kze,[["__file","teleport.vue"]]);const jb=or(Tze),B1e=()=>{const e=tH(),t=TH(),n=ee(()=>`${e.value}-popper-container-${t.prefix}`),r=ee(()=>`#${n.value}`);return{id:n,selector:r}},_ze=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Dze=()=>{const{id:e,selector:t}=B1e();return B_(()=>{Xr&&(document.body.querySelector(t.value)||_ze(e.value))}),{id:e,selector:t}},Ize=nt({name:"ElTooltipContent",inheritAttrs:!1}),Oze=nt({...Ize,props:oi,setup(e,{expose:t}){const n=e,{selector:r}=B1e(),o=Vt("tooltip"),i=K(),a=bE(()=>{var j;return(j=i.value)==null?void 0:j.popperContentRef});let s;const{controlled:l,id:u,open:d,trigger:c,onClose:f,onOpen:p,onShow:v,onHide:h,onBeforeShow:g,onBeforeHide:y}=dn($H,void 0),m=ee(()=>n.transition||`${o.namespace.value}-fade-in-linear`),b=ee(()=>n.persistent);Jr(()=>{s?.()});const w=ee(()=>C(b)?!0:C(d)),A=ee(()=>n.disabled?!1:C(d)),S=ee(()=>n.appendTo||r.value),E=ee(()=>{var j;return(j=n.style)!=null?j:{}}),D=K(!0),_=()=>{h(),z()&&Sf(document.body),D.value=!0},M=()=>{if(C(l))return!0},O=Li(M,()=>{n.enterable&&C(c)==="hover"&&p()}),k=Li(M,()=>{C(c)==="hover"&&f()}),R=()=>{var j,q;(q=(j=i.value)==null?void 0:j.updatePopper)==null||q.call(j),g?.()},N=()=>{y?.()},W=()=>{v()},B=()=>{n.virtualTriggering||f()},z=j=>{var q;const Y=(q=i.value)==null?void 0:q.popperContentRef,U=j?.relatedTarget||document.activeElement;return Y?.contains(U)};return St(()=>C(d),j=>{j?(D.value=!1,s=yH(a,()=>{if(C(l))return;C(c)!=="hover"&&f()})):s?.()},{flush:"post"}),St(()=>n.content,()=>{var j,q;(q=(j=i.value)==null?void 0:j.updatePopper)==null||q.call(j)}),t({contentRef:i,isFocusInsideContent:z}),(j,q)=>(L(),yt(C(jb),{disabled:!j.teleported,to:C(S)},{default:rt(()=>[C(w)||!D.value?(L(),yt(Ki,{key:0,name:C(m),appear:!C(b),onAfterLeave:_,onBeforeEnter:R,onAfterEnter:W,onBeforeLeave:N,persisted:""},{default:rt(()=>[cn(He(C(pze),vr({id:C(u),ref_key:"contentRef",ref:i},j.$attrs,{"aria-label":j.ariaLabel,"aria-hidden":D.value,"boundaries-padding":j.boundariesPadding,"fallback-placements":j.fallbackPlacements,"gpu-acceleration":j.gpuAcceleration,offset:j.offset,placement:j.placement,"popper-options":j.popperOptions,"arrow-offset":j.arrowOffset,strategy:j.strategy,effect:j.effect,enterable:j.enterable,pure:j.pure,"popper-class":j.popperClass,"popper-style":[j.popperStyle,C(E)],"reference-el":j.referenceEl,"trigger-target-el":j.triggerTargetEl,visible:C(A),"z-index":j.zIndex,onMouseenter:C(O),onMouseleave:C(k),onBlur:B,onClose:C(f)}),{default:rt(()=>[ht(j.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"]),[[kr,C(A)]])]),_:3},8,["name","appear"])):xe("v-if",!0)]),_:3},8,["disabled","to"]))}});var Mze=on(Oze,[["__file","content.vue"]]);const Pze=nt({name:"ElTooltip"}),Nze=nt({...Pze,props:wze,emits:Aze,setup(e,{expose:t,emit:n}){const r=e;Dze();const o=Vt("tooltip"),i=ps(),a=K(),s=K(),l=()=>{var b;const w=C(a);w&&((b=w.popperInstanceRef)==null||b.update())},u=K(!1),d=K(),{show:c,hide:f,hasUpdateHandler:p}=bze({indicator:u,toggleReason:d}),{onOpen:v,onClose:h}=e1e({showAfter:co(r,"showAfter"),hideAfter:co(r,"hideAfter"),autoClose:co(r,"autoClose"),open:c,close:f}),g=ee(()=>Eo(r.visible)&&!p.value),y=ee(()=>[o.b(),r.popperClass]);_r($H,{controlled:g,id:i,open:_b(u),trigger:co(r,"trigger"),onOpen:v,onClose:h,onToggle:b=>{C(u)?h(b):v(b)},onShow:()=>{n("show",d.value)},onHide:()=>{n("hide",d.value)},onBeforeShow:()=>{n("before-show",d.value)},onBeforeHide:()=>{n("before-hide",d.value)},updatePopper:l}),St(()=>r.disabled,b=>{b&&u.value&&(u.value=!1)});const m=b=>{var w;return(w=s.value)==null?void 0:w.isFocusInsideContent(b)};return mge(()=>u.value&&f()),t({popperRef:a,contentRef:s,isFocusInsideContent:m,updatePopper:l,onOpen:v,onClose:h,hide:f}),(b,w)=>(L(),yt(C(R1e),{ref_key:"popperRef",ref:a,role:b.role},{default:rt(()=>[He(Eze,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:rt(()=>[b.$slots.default?ht(b.$slots,"default",{key:0}):xe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),He(Mze,{ref_key:"contentRef",ref:s,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":C(y),"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,"arrow-offset":b.arrowOffset,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:rt(()=>[ht(b.$slots,"content",{},()=>[b.rawContent?(L(),G("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):(L(),G("span",{key:1},je(b.content),1))]),b.showArrow?(L(),yt(C(OFe),{key:0})):xe("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Rze=on(Nze,[["__file","tooltip.vue"]]);const hs=or(Rze),Bze=Jt({...L5,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ct(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ct([Function,Array]),default:bo},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:oi.teleported,appendTo:oi.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean}),Lze={[Qn]:e=>In(e),[ba]:e=>In(e),[Pr]:e=>In(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>dr(e)},L1e="ElAutocomplete",Fze=nt({name:L1e,inheritAttrs:!1}),Uze=nt({...Fze,props:Bze,emits:Lze,setup(e,{expose:t,emit:n}){const r=e,o=ee(()=>uu(r,Object.keys(L5))),i=yp(),a=Va(),s=Vt("autocomplete"),l=K(),u=K(),d=K(),c=K();let f=!1,p=!1;const v=K([]),h=K(-1),g=K(""),y=K(!1),m=K(!1),b=K(!1),w=ps(),A=ee(()=>i.style),S=ee(()=>(v.value.length>0||b.value)&&y.value),E=ee(()=>!r.hideLoading&&b.value),D=ee(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),_=()=>{S.value&&(g.value=`${l.value.$el.offsetWidth}px`)},M=()=>{h.value=-1},O=async Z=>{if(m.value)return;const le=ve=>{b.value=!1,!m.value&&(Zt(ve)?(v.value=ve,h.value=r.highlightFirstItem?0:-1):na(L1e,"autocomplete suggestions must be an array"))};if(b.value=!0,Zt(r.fetchSuggestions))le(r.fetchSuggestions);else{const ve=await r.fetchSuggestions(Z,le);Zt(ve)&&le(ve)}},k=Wl(O,r.debounce),R=Z=>{const le=!!Z;if(n(ba,Z),n(Qn,Z),m.value=!1,y.value||(y.value=le),!r.triggerOnFocus&&!Z){m.value=!0,v.value=[];return}k(Z)},N=Z=>{var le;a.value||(((le=Z.target)==null?void 0:le.tagName)!=="INPUT"||D.value.includes(document.activeElement))&&(y.value=!0)},W=Z=>{n(Pr,Z)},B=Z=>{var le;if(p)p=!1;else{y.value=!0,n("focus",Z);const ve=(le=r.modelValue)!=null?le:"";r.triggerOnFocus&&!f&&k(String(ve))}},z=Z=>{setTimeout(()=>{var le;if((le=d.value)!=null&&le.isFocusInsideContent()){p=!0;return}y.value&&U(),n("blur",Z)})},j=()=>{y.value=!1,n(Qn,""),n("clear")},q=async()=>{S.value&&h.value>=0&&h.value<v.value.length?re(v.value[h.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],h.value=-1)},Y=Z=>{S.value&&(Z.preventDefault(),Z.stopPropagation(),U())},U=()=>{y.value=!1},F=()=>{var Z;(Z=l.value)==null||Z.focus()},H=()=>{var Z;(Z=l.value)==null||Z.blur()},re=async Z=>{n(ba,Z[r.valueKey]),n(Qn,Z[r.valueKey]),n("select",Z),v.value=[],h.value=-1},X=Z=>{if(!S.value||b.value)return;if(Z<0){h.value=-1;return}Z>=v.value.length&&(Z=v.value.length-1);const le=u.value.querySelector(`.${s.be("suggestion","wrap")}`),Pe=le.querySelectorAll(`.${s.be("suggestion","list")} li`)[Z],Ae=le.scrollTop,{offsetTop:he,scrollHeight:Ee}=Pe;he+Ee>Ae+le.clientHeight&&(le.scrollTop+=Ee),he<Ae&&(le.scrollTop-=Ee),h.value=Z,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${h.value}`)},te=yH(c,()=>{var Z;(Z=d.value)!=null&&Z.isFocusInsideContent()||S.value&&U()});return Jr(()=>{te?.()}),qn(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${h.value}`),f=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:h,activated:y,loading:b,inputRef:l,popperRef:d,suggestions:v,handleSelect:re,handleKeyEnter:q,focus:F,blur:H,close:U,highlight:X,getData:O}),(Z,le)=>(L(),yt(C(hs),{ref_key:"popperRef",ref:d,visible:C(S),placement:Z.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[C(s).e("popper"),Z.popperClass],teleported:Z.teleported,"append-to":Z.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${C(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:_,onHide:M},{content:rt(()=>[x("div",{ref_key:"regionRef",ref:u,class:oe([C(s).b("suggestion"),C(s).is("loading",C(E))]),style:rn({[Z.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[Z.$slots.header?(L(),G("div",{key:0,class:oe(C(s).be("suggestion","header")),onClick:en(()=>{},["stop"])},[ht(Z.$slots,"header")],10,["onClick"])):xe("v-if",!0),He(C(Hc),{id:C(w),tag:"ul","wrap-class":C(s).be("suggestion","wrap"),"view-class":C(s).be("suggestion","list"),role:"listbox"},{default:rt(()=>[C(E)?(L(),G("li",{key:0},[ht(Z.$slots,"loading",{},()=>[He(C(Dn),{class:oe(C(s).is("loading"))},{default:rt(()=>[He(C(jc))]),_:1},8,["class"])])])):(L(!0),G(Rt,{key:1},un(v.value,(ve,Pe)=>(L(),G("li",{id:`${C(w)}-item-${Pe}`,key:Pe,class:oe({highlighted:h.value===Pe}),role:"option","aria-selected":h.value===Pe,onClick:Ae=>re(ve)},[ht(Z.$slots,"default",{item:ve},()=>[bn(je(ve[Z.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"]),Z.$slots.footer?(L(),G("div",{key:1,class:oe(C(s).be("suggestion","footer")),onClick:en(()=>{},["stop"])},[ht(Z.$slots,"footer")],10,["onClick"])):xe("v-if",!0)],6)]),default:rt(()=>[x("div",{ref_key:"listboxRef",ref:c,class:oe([C(s).b(),Z.$attrs.class]),style:rn(C(A)),role:"combobox","aria-haspopup":"listbox","aria-expanded":C(S),"aria-owns":C(w)},[He(C(js),vr({ref_key:"inputRef",ref:l},vr(C(o),Z.$attrs),{"model-value":Z.modelValue,disabled:C(a),onInput:R,onChange:W,onFocus:B,onBlur:z,onClear:j,onKeydown:[$r(en(ve=>X(h.value-1),["prevent"]),["up"]),$r(en(ve=>X(h.value+1),["prevent"]),["down"]),$r(q,["enter"]),$r(U,["tab"]),$r(Y,["esc"])],onMousedown:N}),Hl({_:2},[Z.$slots.prepend?{name:"prepend",fn:rt(()=>[ht(Z.$slots,"prepend")])}:void 0,Z.$slots.append?{name:"append",fn:rt(()=>[ht(Z.$slots,"append")])}:void 0,Z.$slots.prefix?{name:"prefix",fn:rt(()=>[ht(Z.$slots,"prefix")])}:void 0,Z.$slots.suffix?{name:"suffix",fn:rt(()=>[ht(Z.$slots,"suffix")])}:void 0]),1040,["model-value","disabled","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","append-to","transition"]))}});var zze=on(Uze,[["__file","autocomplete.vue"]]);const $ze=or(zze),jze=Jt({size:{type:[Number,String],values:ef,default:"",validator:e=>$n(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:wo},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ct(String),default:"cover"}}),Hze={error:e=>e instanceof Event},Wze=nt({name:"ElAvatar"}),Vze=nt({...Wze,props:jze,emits:Hze,setup(e,{emit:t}){const n=e,r=Vt("avatar"),o=K(!1),i=ee(()=>{const{size:u,icon:d,shape:c}=n,f=[r.b()];return In(u)&&f.push(r.m(u)),d&&f.push(r.m("icon")),c&&f.push(r.m(c)),f}),a=ee(()=>{const{size:u}=n;return $n(u)?r.cssVarBlock({size:_i(u)||""}):void 0}),s=ee(()=>({objectFit:n.fit}));St(()=>n.src,()=>o.value=!1);function l(u){o.value=!0,t("error",u)}return(u,d)=>(L(),G("span",{class:oe(C(i)),style:rn(C(a))},[(u.src||u.srcSet)&&!o.value?(L(),G("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:rn(C(s)),onError:l},null,44,["src","alt","srcset"])):u.icon?(L(),yt(C(Dn),{key:1},{default:rt(()=>[(L(),yt(mr(u.icon)))]),_:1})):ht(u.$slots,"default",{key:2})],6))}});var qze=on(Vze,[["__file","avatar.vue"]]);const Gze=or(qze),Kze={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Yze={click:e=>e instanceof MouseEvent},Qze=(e,t,n)=>{const r=jo(),o=jo(),i=K(!1),a=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var d;(d=r.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=Lme(a,300,!0);return Ro(o,"scroll",l),qn(()=>{var u;o.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||na(n,`target does not exist: ${e.target}`),o.value=r.value),a()}),{visible:i,handleClick:s}},F1e="ElBacktop",Zze=nt({name:F1e}),Xze=nt({...Zze,props:Kze,emits:Yze,setup(e,{emit:t}){const n=e,r=Vt("backtop"),{handleClick:o,visible:i}=Qze(n,t,F1e),a=ee(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(L(),yt(Ki,{name:`${C(r).namespace.value}-fade-in`},{default:rt(()=>[C(i)?(L(),G("div",{key:0,style:rn(C(a)),class:oe(C(r).b()),onClick:en(C(o),["stop"])},[ht(s.$slots,"default",{},()=>[He(C(Dn),{class:oe(C(r).e("icon"))},{default:rt(()=>[He(C(HBe))]),_:1},8,["class"])])],14,["onClick"])):xe("v-if",!0)]),_:3},8,["name"]))}});var Jze=on(Xze,[["__file","backtop.vue"]]);const e$e=or(Jze),t$e=Jt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:ct([String,Object,Array])},offset:{type:ct(Array),default:[0,0]},badgeClass:{type:String}}),n$e=nt({name:"ElBadge"}),r$e=nt({...n$e,props:t$e,setup(e,{expose:t}){const n=e,r=Vt("badge"),o=ee(()=>n.isDot?"":$n(n.value)&&$n(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),i=ee(()=>{var a,s,l,u,d;return[{backgroundColor:n.color,marginRight:_i(-((s=(a=n.offset)==null?void 0:a[0])!=null?s:0)),marginTop:_i((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:o}),(a,s)=>(L(),G("div",{class:oe(C(r).b())},[ht(a.$slots,"default"),He(Ki,{name:`${C(r).namespace.value}-zoom-in-center`,persisted:""},{default:rt(()=>[cn(x("sup",{class:oe([C(r).e("content"),C(r).em("content",a.type),C(r).is("fixed",!!a.$slots.default),C(r).is("dot",a.isDot),C(r).is("hide-zero",!a.showZero&&n.value===0),a.badgeClass]),style:rn(C(i))},[ht(a.$slots,"content",{value:C(o)},()=>[bn(je(C(o)),1)])],6),[[kr,!a.hidden&&(C(o)||a.isDot||a.$slots.content)]])]),_:3},8,["name"])],2))}});var o$e=on(r$e,[["__file","badge.vue"]]);const U1e=or(o$e),z1e=Symbol("breadcrumbKey"),i$e=Jt({separator:{type:String,default:"/"},separatorIcon:{type:wo}}),a$e=nt({name:"ElBreadcrumb"}),s$e=nt({...a$e,props:i$e,setup(e){const t=e,{t:n}=Gr(),r=Vt("breadcrumb"),o=K();return _r(z1e,t),qn(()=>{const i=o.value.querySelectorAll(`.${r.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,a)=>(L(),G("div",{ref_key:"breadcrumb",ref:o,class:oe(C(r).b()),"aria-label":C(n)("el.breadcrumb.label"),role:"navigation"},[ht(i.$slots,"default")],10,["aria-label"]))}});var l$e=on(s$e,[["__file","breadcrumb.vue"]]);const u$e=Jt({to:{type:ct([String,Object]),default:""},replace:Boolean}),c$e=nt({name:"ElBreadcrumbItem"}),d$e=nt({...c$e,props:u$e,setup(e){const t=e,n=br(),r=dn(z1e,void 0),o=Vt("breadcrumb"),i=n.appContext.config.globalProperties.$router,a=K(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var d,c;return L(),G("span",{class:oe(C(o).e("item"))},[x("span",{ref_key:"link",ref:a,class:oe([C(o).e("inner"),C(o).is("link",!!l.to)]),role:"link",onClick:s},[ht(l.$slots,"default")],2),(d=C(r))!=null&&d.separatorIcon?(L(),yt(C(Dn),{key:0,class:oe(C(o).e("separator"))},{default:rt(()=>[(L(),yt(mr(C(r).separatorIcon)))]),_:1},8,["class"])):(L(),G("span",{key:1,class:oe(C(o).e("separator")),role:"presentation"},je((c=C(r))==null?void 0:c.separator),3))],2)}}});var $1e=on(d$e,[["__file","breadcrumb-item.vue"]]);const f$e=or(l$e,{BreadcrumbItem:$1e}),p$e=vi($1e),j1e=Symbol("buttonGroupContextKey"),jf=({from:e,replacement:t,scope:n,version:r,ref:o,type:i="API"},a)=>{St(()=>C(a),s=>{},{immediate:!0})},h$e=(e,t)=>{jf({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},ee(()=>e.type==="text"));const n=dn(j1e,void 0),r=Ub("button"),{form:o}=Ds(),i=ha(ee(()=>n?.size)),a=Va(),s=K(),l=ga(),u=ee(()=>{var y;return e.type||n?.type||((y=r.value)==null?void 0:y.type)||""}),d=ee(()=>{var y,m,b;return(b=(m=e.autoInsertSpace)!=null?m:(y=r.value)==null?void 0:y.autoInsertSpace)!=null?b:!1}),c=ee(()=>{var y,m,b;return(b=(m=e.plain)!=null?m:(y=r.value)==null?void 0:y.plain)!=null?b:!1}),f=ee(()=>{var y,m,b;return(b=(m=e.round)!=null?m:(y=r.value)==null?void 0:y.round)!=null?b:!1}),p=ee(()=>{var y,m,b;return(b=(m=e.text)!=null?m:(y=r.value)==null?void 0:y.text)!=null?b:!1}),v=ee(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=ee(()=>{var y;const m=(y=l.default)==null?void 0:y.call(l);if(d.value&&m?.length===1){const b=m[0];if(b?.type===Ib){const w=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(w.trim())}}return!1});return{_disabled:a,_size:i,_type:u,_ref:s,_props:v,_plain:c,_round:f,_text:p,shouldAddSpace:h,handleClick:y=>{if(a.value||e.loading){y.stopPropagation();return}e.nativeType==="reset"&&o?.resetFields(),t("click",y)}}},CL=["default","primary","success","warning","info","danger","text",""],g$e=["button","submit","reset"],xL=Jt({size:Aa,disabled:Boolean,type:{type:String,values:CL,default:""},icon:{type:wo},nativeType:{type:String,values:g$e,default:"button"},loading:Boolean,loadingIcon:{type:wo,default:()=>jc},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ct([String,Object]),default:"button"}}),v$e={click:e=>e instanceof MouseEvent};function ks(e,t){m$e(e)&&(e="100%");var n=y$e(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ax(e){return Math.min(1,Math.max(0,e))}function m$e(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function y$e(e){return typeof e=="string"&&e.indexOf("%")!==-1}function H1e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Cx(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ug(e){return e.length===1?"0"+e:String(e)}function b$e(e,t,n){return{r:ks(e,255)*255,g:ks(t,255)*255,b:ks(n,255)*255}}function xJ(e,t,n){e=ks(e,255),t=ks(t,255),n=ks(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,l:s}}function vI(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function w$e(e,t,n){var r,o,i;if(e=ks(e,360),t=ks(t,100),n=ks(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=vI(s,a,e+1/3),o=vI(s,a,e),i=vI(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function SJ(e,t,n){e=ks(e,255),t=ks(t,255),n=ks(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:a}}function A$e(e,t,n){e=ks(e,360)*6,t=ks(t,100),n=ks(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,u=[n,a,i,i,s,n][l],d=[s,n,n,a,i,i][l],c=[i,i,s,n,n,a][l];return{r:u*255,g:d*255,b:c*255}}function EJ(e,t,n,r){var o=[Ug(Math.round(e).toString(16)),Ug(Math.round(t).toString(16)),Ug(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function C$e(e,t,n,r,o){var i=[Ug(Math.round(e).toString(16)),Ug(Math.round(t).toString(16)),Ug(Math.round(n).toString(16)),Ug(x$e(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function x$e(e){return Math.round(parseFloat(e)*255).toString(16)}function kJ(e){return tu(e)/255}function tu(e){return parseInt(e,16)}function S$e(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var SL={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function E$e(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=_$e(e)),typeof e=="object"&&(pf(e.r)&&pf(e.g)&&pf(e.b)?(t=b$e(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):pf(e.h)&&pf(e.s)&&pf(e.v)?(r=Cx(e.s),o=Cx(e.v),t=A$e(e.h,r,o),a=!0,s="hsv"):pf(e.h)&&pf(e.s)&&pf(e.l)&&(r=Cx(e.s),i=Cx(e.l),t=w$e(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=H1e(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var k$e="[-\\+]?\\d+%?",T$e="[-\\+]?\\d*\\.\\d+%?",bh="(?:".concat(T$e,")|(?:").concat(k$e,")"),mI="[\\s|\\(]+(".concat(bh,")[,|\\s]+(").concat(bh,")[,|\\s]+(").concat(bh,")\\s*\\)?"),yI="[\\s|\\(]+(".concat(bh,")[,|\\s]+(").concat(bh,")[,|\\s]+(").concat(bh,")[,|\\s]+(").concat(bh,")\\s*\\)?"),mc={CSS_UNIT:new RegExp(bh),rgb:new RegExp("rgb"+mI),rgba:new RegExp("rgba"+yI),hsl:new RegExp("hsl"+mI),hsla:new RegExp("hsla"+yI),hsv:new RegExp("hsv"+mI),hsva:new RegExp("hsva"+yI),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function _$e(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(SL[e])e=SL[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=mc.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=mc.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=mc.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=mc.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=mc.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=mc.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=mc.hex8.exec(e),n?{r:tu(n[1]),g:tu(n[2]),b:tu(n[3]),a:kJ(n[4]),format:t?"name":"hex8"}:(n=mc.hex6.exec(e),n?{r:tu(n[1]),g:tu(n[2]),b:tu(n[3]),format:t?"name":"hex"}:(n=mc.hex4.exec(e),n?{r:tu(n[1]+n[1]),g:tu(n[2]+n[2]),b:tu(n[3]+n[3]),a:kJ(n[4]+n[4]),format:t?"name":"hex8"}:(n=mc.hex3.exec(e),n?{r:tu(n[1]+n[1]),g:tu(n[2]+n[2]),b:tu(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function pf(e){return!!mc.CSS_UNIT.exec(String(e))}var $1=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=S$e(t)),this.originalInput=t;var o=E$e(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=H1e(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=SJ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=SJ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=xJ(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=xJ(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),EJ(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),C$e(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ks(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(ks(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+EJ(this.r,this.g,this.b,!1),n=0,r=Object.entries(SL);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Ax(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Ax(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Ax(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Ax(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function Np(e,t=20){return e.mix("#141414",t).toString()}function D$e(e){const t=Va(),n=Vt("button");return ee(()=>{let r={},o=e.color;if(o){const i=o.match(/var\((.*?)\)/);i&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const a=new $1(o),s=e.dark?a.tint(20).toString():Np(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Np(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?Np(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Np(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Np(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Np(a,80):a.tint(80).toString());else{const l=e.dark?Np(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":u,"border-color":o,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const d=e.dark?Np(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=d,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=d}}}return r})}const I$e=nt({name:"ElButton"}),O$e=nt({...I$e,props:xL,emits:v$e,setup(e,{expose:t,emit:n}){const r=e,o=D$e(r),i=Vt("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:d,_plain:c,_round:f,_text:p,shouldAddSpace:v,handleClick:h}=h$e(r,n),g=ee(()=>[i.b(),i.m(l.value),i.m(s.value),i.is("disabled",u.value),i.is("loading",r.loading),i.is("plain",c.value),i.is("round",f.value),i.is("circle",r.circle),i.is("text",p.value),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:a,size:s,type:l,disabled:u,shouldAddSpace:v}),(y,m)=>(L(),yt(mr(y.tag),vr({ref_key:"_ref",ref:a},C(d),{class:C(g),style:C(o),onClick:C(h)}),{default:rt(()=>[y.loading?(L(),G(Rt,{key:0},[y.$slots.loading?ht(y.$slots,"loading",{key:0}):(L(),yt(C(Dn),{key:1,class:oe(C(i).is("loading"))},{default:rt(()=>[(L(),yt(mr(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(L(),yt(C(Dn),{key:1},{default:rt(()=>[y.icon?(L(),yt(mr(y.icon),{key:0})):ht(y.$slots,"icon",{key:1})]),_:3})):xe("v-if",!0),y.$slots.default?(L(),G("span",{key:2,class:oe({[C(i).em("text","expand")]:C(v)})},[ht(y.$slots,"default")],2)):xe("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var M$e=on(O$e,[["__file","button.vue"]]);const P$e={size:xL.size,type:xL.type},N$e=nt({name:"ElButtonGroup"}),R$e=nt({...N$e,props:P$e,setup(e){const t=e;_r(j1e,Wr({size:co(t,"size"),type:co(t,"type")}));const n=Vt("button");return(r,o)=>(L(),G("div",{class:oe(C(n).b("group"))},[ht(r.$slots,"default")],2))}});var W1e=on(R$e,[["__file","button-group.vue"]]);const Xa=or(M$e,{ButtonGroup:W1e}),V1e=vi(W1e);var Hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B$e(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ES={exports:{}},L$e=ES.exports,TJ;function F$e(){return TJ||(TJ=1,(function(e,t){(function(n,r){e.exports=r()})(L$e,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",u="day",d="week",c="month",f="quarter",p="year",v="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var W=["th","st","nd","rd"],B=N%100;return"["+N+(W[(B-20)%10]||W[B]||W[0])+"]"}},b=function(N,W,B){var z=String(N);return!z||z.length>=W?N:""+Array(W+1-z.length).join(B)+N},w={s:b,z:function(N){var W=-N.utcOffset(),B=Math.abs(W),z=Math.floor(B/60),j=B%60;return(W<=0?"+":"-")+b(z,2,"0")+":"+b(j,2,"0")},m:function N(W,B){if(W.date()<B.date())return-N(B,W);var z=12*(B.year()-W.year())+(B.month()-W.month()),j=W.clone().add(z,c),q=B-j<0,Y=W.clone().add(z+(q?-1:1),c);return+(-(z+(B-j)/(q?j-Y:Y-j))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:c,y:p,w:d,d:u,D:v,h:l,m:s,s:a,ms:i,Q:f}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},A="en",S={};S[A]=m;var E="$isDayjsObject",D=function(N){return N instanceof k||!(!N||!N[E])},_=function N(W,B,z){var j;if(!W)return A;if(typeof W=="string"){var q=W.toLowerCase();S[q]&&(j=q),B&&(S[q]=B,j=q);var Y=W.split("-");if(!j&&Y.length>1)return N(Y[0])}else{var U=W.name;S[U]=W,j=U}return!z&&j&&(A=j),j||!z&&A},M=function(N,W){if(D(N))return N.clone();var B=typeof W=="object"?W:{};return B.date=N,B.args=arguments,new k(B)},O=w;O.l=_,O.i=D,O.w=function(N,W){return M(N,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var k=(function(){function N(B){this.$L=_(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[E]=!0}var W=N.prototype;return W.parse=function(B){this.$d=(function(z){var j=z.date,q=z.utc;if(j===null)return new Date(NaN);if(O.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var Y=j.match(g);if(Y){var U=Y[2]-1||0,F=(Y[7]||"0").substring(0,3);return q?new Date(Date.UTC(Y[1],U,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,F)):new Date(Y[1],U,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,F)}}return new Date(j)})(B),this.init()},W.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},W.$utils=function(){return O},W.isValid=function(){return this.$d.toString()!==h},W.isSame=function(B,z){var j=M(B);return this.startOf(z)<=j&&j<=this.endOf(z)},W.isAfter=function(B,z){return M(B)<this.startOf(z)},W.isBefore=function(B,z){return this.endOf(z)<M(B)},W.$g=function(B,z,j){return O.u(B)?this[z]:this.set(j,B)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(B,z){var j=this,q=!!O.u(z)||z,Y=O.p(B),U=function(ve,Pe){var Ae=O.w(j.$u?Date.UTC(j.$y,Pe,ve):new Date(j.$y,Pe,ve),j);return q?Ae:Ae.endOf(u)},F=function(ve,Pe){return O.w(j.toDate()[ve].apply(j.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(Pe)),j)},H=this.$W,re=this.$M,X=this.$D,te="set"+(this.$u?"UTC":"");switch(Y){case p:return q?U(1,0):U(31,11);case c:return q?U(1,re):U(0,re+1);case d:var Z=this.$locale().weekStart||0,le=(H<Z?H+7:H)-Z;return U(q?X-le:X+(6-le),re);case u:case v:return F(te+"Hours",0);case l:return F(te+"Minutes",1);case s:return F(te+"Seconds",2);case a:return F(te+"Milliseconds",3);default:return this.clone()}},W.endOf=function(B){return this.startOf(B,!1)},W.$set=function(B,z){var j,q=O.p(B),Y="set"+(this.$u?"UTC":""),U=(j={},j[u]=Y+"Date",j[v]=Y+"Date",j[c]=Y+"Month",j[p]=Y+"FullYear",j[l]=Y+"Hours",j[s]=Y+"Minutes",j[a]=Y+"Seconds",j[i]=Y+"Milliseconds",j)[q],F=q===u?this.$D+(z-this.$W):z;if(q===c||q===p){var H=this.clone().set(v,1);H.$d[U](F),H.init(),this.$d=H.set(v,Math.min(this.$D,H.daysInMonth())).$d}else U&&this.$d[U](F);return this.init(),this},W.set=function(B,z){return this.clone().$set(B,z)},W.get=function(B){return this[O.p(B)]()},W.add=function(B,z){var j,q=this;B=Number(B);var Y=O.p(z),U=function(re){var X=M(q);return O.w(X.date(X.date()+Math.round(re*B)),q)};if(Y===c)return this.set(c,this.$M+B);if(Y===p)return this.set(p,this.$y+B);if(Y===u)return U(1);if(Y===d)return U(7);var F=(j={},j[s]=r,j[l]=o,j[a]=n,j)[Y]||1,H=this.$d.getTime()+B*F;return O.w(H,this)},W.subtract=function(B,z){return this.add(-1*B,z)},W.format=function(B){var z=this,j=this.$locale();if(!this.isValid())return j.invalidDate||h;var q=B||"YYYY-MM-DDTHH:mm:ssZ",Y=O.z(this),U=this.$H,F=this.$m,H=this.$M,re=j.weekdays,X=j.months,te=j.meridiem,Z=function(Pe,Ae,he,Ee){return Pe&&(Pe[Ae]||Pe(z,q))||he[Ae].slice(0,Ee)},le=function(Pe){return O.s(U%12||12,Pe,"0")},ve=te||function(Pe,Ae,he){var Ee=Pe<12?"AM":"PM";return he?Ee.toLowerCase():Ee};return q.replace(y,(function(Pe,Ae){return Ae||(function(he){switch(he){case"YY":return String(z.$y).slice(-2);case"YYYY":return O.s(z.$y,4,"0");case"M":return H+1;case"MM":return O.s(H+1,2,"0");case"MMM":return Z(j.monthsShort,H,X,3);case"MMMM":return Z(X,H);case"D":return z.$D;case"DD":return O.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return Z(j.weekdaysMin,z.$W,re,2);case"ddd":return Z(j.weekdaysShort,z.$W,re,3);case"dddd":return re[z.$W];case"H":return String(U);case"HH":return O.s(U,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return ve(U,F,!0);case"A":return ve(U,F,!1);case"m":return String(F);case"mm":return O.s(F,2,"0");case"s":return String(z.$s);case"ss":return O.s(z.$s,2,"0");case"SSS":return O.s(z.$ms,3,"0");case"Z":return Y}return null})(Pe)||Y.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(B,z,j){var q,Y=this,U=O.p(z),F=M(B),H=(F.utcOffset()-this.utcOffset())*r,re=this-F,X=function(){return O.m(Y,F)};switch(U){case p:q=X()/12;break;case c:q=X();break;case f:q=X()/3;break;case d:q=(re-H)/6048e5;break;case u:q=(re-H)/864e5;break;case l:q=re/o;break;case s:q=re/r;break;case a:q=re/n;break;default:q=re}return j?q:O.a(q)},W.daysInMonth=function(){return this.endOf(c).$D},W.$locale=function(){return S[this.$L]},W.locale=function(B,z){if(!B)return this.$L;var j=this.clone(),q=_(B,z,!0);return q&&(j.$L=q),j},W.clone=function(){return O.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},N})(),R=k.prototype;return M.prototype=R,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",u],["$M",c],["$y",p],["$D",v]].forEach((function(N){R[N[1]]=function(W){return this.$g(W,N[0],N[1])}})),M.extend=function(N,W){return N.$i||(N(W,k,M),N.$i=!0),M},M.locale=_,M.isDayjs=D,M.unix=function(N){return M(1e3*N)},M.en=S[A],M.Ls=S,M.p={},M}))})(ES)),ES.exports}var U$e=F$e();const lr=xu(U$e),bI=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Ph=e=>Array.from(Array.from({length:e}).keys()),q1e=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),G1e=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),_J=function(e,t){const n=n0(e),r=n0(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},K1e=function(e,t){const n=Zt(e),r=Zt(t);return n&&r?e.length!==t.length?!1:e.every((o,i)=>_J(o,t[i])):!n&&!r?_J(e,t):!1},DJ=function(e,t,n){const r=iu(t)||t==="x"?lr(e).locale(n):lr(e,t).locale(n);return r.isValid()?r:void 0},IJ=function(e,t,n){return iu(t)?e:t==="x"?+e:lr(e).locale(n).format(t)},wI=(e,t)=>{var n;const r=[],o=t?.();for(let i=0;i<e;i++)r.push((n=o?.includes(i))!=null?n:!1);return r},kS=e=>Zt(e)?e.map(t=>t.toDate()):e.toDate(),z$e=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Ph(t).map((r,o)=>n-(t-o-1))},$$e=e=>{const t=e.daysInMonth();return Ph(t).map((n,r)=>r+1)},j$e=e=>Ph(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),H$e=Jt({selectedDay:{type:ct(Object)},range:{type:ct(Array)},date:{type:ct(Object),required:!0},hideHeader:{type:Boolean}}),W$e={pick:e=>dr(e)};var TS={exports:{}},V$e=TS.exports,OJ;function q$e(){return OJ||(OJ=1,(function(e,t){(function(n,r){e.exports=r()})(V$e,(function(){return function(n,r,o){var i=r.prototype,a=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,f,p,v,h){var g=c.name?c:c.$locale(),y=a(g[f]),m=a(g[p]),b=y||m.map((function(A){return A.slice(0,v)}));if(!h)return b;var w=g.weekStart;return b.map((function(A,S){return b[(S+(w||0))%7]}))},l=function(){return o.Ls[o.locale()]},u=function(c,f){return c.formats[f]||(function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,h,g){return h||g.slice(1)}))})(c.formats[f.toUpperCase()])},d=function(){var c=this;return{months:function(f){return f?f.format("MMMM"):s(c,"months")},monthsShort:function(f){return f?f.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):s(c,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return u(c.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return d.bind(this)()},o.localeData=function(){var c=l();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(f){return u(c,f)},meridiem:c.meridiem,ordinal:c.ordinal}},o.months=function(){return s(l(),"months")},o.monthsShort=function(){return s(l(),"monthsShort","months",3)},o.weekdays=function(c){return s(l(),"weekdays",null,null,c)},o.weekdaysShort=function(c){return s(l(),"weekdaysShort","weekdays",3,c)},o.weekdaysMin=function(c){return s(l(),"weekdaysMin","weekdays",2,c)}}}))})(TS)),TS.exports}var G$e=q$e();const Y1e=xu(G$e),K$e=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],AI=["sun","mon","tue","wed","thu","fri","sat"],Y$e=(e,t)=>{lr.extend(Y1e);const n=lr.localeData().firstDayOfWeek(),{t:r,lang:o}=Gr(),i=lr().locale(o.value),a=ee(()=>!!e.range&&!!e.range.length),s=ee(()=>{let f=[];if(a.value){const[p,v]=e.range,h=Ph(v.date()-p.date()+1).map(m=>({text:p.date()+m,type:"current"}));let g=h.length%7;g=g===0?0:7-g;const y=Ph(g).map((m,b)=>({text:b+1,type:"next"}));f=h.concat(y)}else{const p=e.date.startOf("month").day(),v=z$e(e.date,(p-n+7)%7).map(m=>({text:m,type:"prev"})),h=$$e(e.date).map(m=>({text:m,type:"current"}));f=[...v,...h];const g=7-(f.length%7||7),y=Ph(g).map((m,b)=>({text:b+1,type:"next"}));f=f.concat(y)}return j$e(f)}),l=ee(()=>{const f=n;return f===0?AI.map(p=>r(`el.datepicker.weeks.${p}`)):AI.slice(f).concat(AI.slice(0,f)).map(p=>r(`el.datepicker.weeks.${p}`))}),u=(f,p)=>{switch(p){case"prev":return e.date.startOf("month").subtract(1,"month").date(f);case"next":return e.date.startOf("month").add(1,"month").date(f);case"current":return e.date.date(f)}};return{now:i,isInRange:a,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:f,type:p})=>{const v=u(f,p);t("pick",v)},getSlotData:({text:f,type:p})=>{const v=u(f,p);return{isSelected:v.isSame(e.selectedDay),type:`${p}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},Q$e=nt({name:"DateTable"}),Z$e=nt({...Q$e,props:H$e,emits:W$e,setup(e,{expose:t,emit:n}){const r=e,{isInRange:o,now:i,rows:a,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:d}=Y$e(r,n),c=Vt("calendar-table"),f=Vt("calendar-day"),p=({text:v,type:h})=>{const g=[h];if(h==="current"){const y=l(v,h);y.isSame(r.selectedDay,"day")&&g.push(f.is("selected")),y.isSame(i,"day")&&g.push(f.is("today"))}return g};return t({getFormattedDate:l}),(v,h)=>(L(),G("table",{class:oe([C(c).b(),C(c).is("range",C(o))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?xe("v-if",!0):(L(),G("thead",{key:0},[x("tr",null,[(L(!0),G(Rt,null,un(C(s),g=>(L(),G("th",{key:g,scope:"col"},je(g),1))),128))])])),x("tbody",null,[(L(!0),G(Rt,null,un(C(a),(g,y)=>(L(),G("tr",{key:y,class:oe({[C(c).e("row")]:!0,[C(c).em("row","hide-border")]:y===0&&v.hideHeader})},[(L(!0),G(Rt,null,un(g,(m,b)=>(L(),G("td",{key:b,class:oe(p(m)),onClick:w=>C(u)(m)},[x("div",{class:oe(C(f).b())},[ht(v.$slots,"date-cell",{data:C(d)(m)},()=>[x("span",null,je(m.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var MJ=on(Z$e,[["__file","date-table.vue"]]);const X$e=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[i.startOf("week"),t]]},J$e=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r,i=o.endOf("month"),a=t.startOf("month"),s=i.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),i],[s.startOf("week"),t]]},eje=(e,t,n)=>{const{lang:r}=Gr(),o=K(),i=lr().locale(r.value),a=ee({get(){return e.modelValue?l.value:o.value},set(g){if(!g)return;o.value=g;const y=g.toDate();t(ba,y),t(Qn,y)}}),s=ee(()=>{if(!e.range||!Zt(e.range)||e.range.length!==2||e.range.some(b=>!n0(b)))return[];const g=e.range.map(b=>lr(b).locale(r.value)),[y,m]=g;return y.isAfter(m)?[]:y.isSame(m,"month")?p(y,m):y.add(1,"month").month()!==m.month()?[]:p(y,m)}),l=ee(()=>e.modelValue?lr(e.modelValue).locale(r.value):a.value||(s.value.length?s.value[0][0]:i)),u=ee(()=>l.value.subtract(1,"month").date(1)),d=ee(()=>l.value.add(1,"month").date(1)),c=ee(()=>l.value.subtract(1,"year").date(1)),f=ee(()=>l.value.add(1,"year").date(1)),p=(g,y)=>{const m=g.startOf("week"),b=y.endOf("week"),w=m.get("month"),A=b.get("month");return w===A?[[m,b]]:(w+1)%12===A?X$e(m,b):w+2===A||(w+1)%11===A?J$e(m,b):[]},v=g=>{a.value=g};return{calculateValidatedDateRange:p,date:l,realSelectedDay:a,pickDay:v,selectDate:g=>{const m={"prev-month":u.value,"next-month":d.value,"prev-year":c.value,"next-year":f.value,today:i}[g];m.isSame(l.value,"day")||v(m)},validatedRange:s}},tje=e=>Zt(e)&&e.length===2&&e.every(t=>n0(t)),nje=Jt({modelValue:{type:Date},range:{type:ct(Array),validator:tje}}),rje={[Qn]:e=>n0(e),[ba]:e=>n0(e)},oje="ElCalendar",ije=nt({name:oje}),aje=nt({...ije,props:nje,emits:rje,setup(e,{expose:t,emit:n}){const r=e,o=Vt("calendar"),{calculateValidatedDateRange:i,date:a,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:d}=eje(r,n),{t:c}=Gr(),f=ee(()=>{const p=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${c("el.datepicker.year")} ${c(p)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(p,v)=>(L(),G("div",{class:oe(C(o).b())},[x("div",{class:oe(C(o).e("header"))},[ht(p.$slots,"header",{date:C(f)},()=>[x("div",{class:oe(C(o).e("title"))},je(C(f)),3),C(d).length===0?(L(),G("div",{key:0,class:oe(C(o).e("button-group"))},[He(C(V1e),null,{default:rt(()=>[He(C(Xa),{size:"small",onClick:h=>C(u)("prev-month")},{default:rt(()=>[bn(je(C(c)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),He(C(Xa),{size:"small",onClick:h=>C(u)("today")},{default:rt(()=>[bn(je(C(c)("el.datepicker.today")),1)]),_:1},8,["onClick"]),He(C(Xa),{size:"small",onClick:h=>C(u)("next-month")},{default:rt(()=>[bn(je(C(c)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):xe("v-if",!0)])],2),C(d).length===0?(L(),G("div",{key:0,class:oe(C(o).e("body"))},[He(MJ,{date:C(a),"selected-day":C(l),onPick:C(s)},Hl({_:2},[p.$slots["date-cell"]?{name:"date-cell",fn:rt(h=>[ht(p.$slots,"date-cell",Il($d(h)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(L(),G("div",{key:1,class:oe(C(o).e("body"))},[(L(!0),G(Rt,null,un(C(d),(h,g)=>(L(),yt(MJ,{key:g,date:h[0],"selected-day":C(l),range:h,"hide-header":g!==0,onPick:C(s)},Hl({_:2},[p.$slots["date-cell"]?{name:"date-cell",fn:rt(y=>[ht(p.$slots,"date-cell",Il($d(y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var sje=on(aje,[["__file","calendar.vue"]]);const lje=or(sje),uje=Jt({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:ct([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),cje=nt({name:"ElCard"}),dje=nt({...cje,props:uje,setup(e){const t=Ub("card"),n=Vt("card");return(r,o)=>{var i;return L(),G("div",{class:oe([C(n).b(),C(n).is(`${r.shadow||((i=C(t))==null?void 0:i.shadow)||"always"}-shadow`)])},[r.$slots.header||r.header?(L(),G("div",{key:0,class:oe([C(n).e("header"),r.headerClass])},[ht(r.$slots,"header",{},()=>[bn(je(r.header),1)])],2)):xe("v-if",!0),x("div",{class:oe([C(n).e("body"),r.bodyClass]),style:rn(r.bodyStyle)},[ht(r.$slots,"default")],6),r.$slots.footer||r.footer?(L(),G("div",{key:1,class:oe([C(n).e("footer"),r.footerClass])},[ht(r.$slots,"footer",{},()=>[bn(je(r.footer),1)])],2)):xe("v-if",!0)],2)}}});var fje=on(dje,[["__file","card.vue"]]);const pje=or(fje),hje=Jt({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),gje={change:(e,t)=>[e,t].every($n)},Q1e=Symbol("carouselContextKey"),EL="ElCarouselItem";var Nu=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Nu||{});function kL(e){return Vo(e)&&e.type===Rt}function vje(e){return Vo(e)&&e.type===da}function mje(e){return Vo(e)&&!kL(e)&&!vje(e)}const yje=e=>{if(!Vo(e))return{};const t=e.props||{},n=(Vo(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(o=>{no(n[o],"default")&&(r[o]=n[o].default)}),Object.keys(t).forEach(o=>{r[dl(o)]=t[o]}),r},bje=e=>{if(!Zt(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Sd=e=>{const t=Zt(e)?e:[e],n=[];return t.forEach(r=>{var o;Zt(r)?n.push(...Sd(r)):Vo(r)&&((o=r.component)!=null&&o.subTree)?n.push(r,...Sd(r.component.subTree)):Vo(r)&&Zt(r.children)?n.push(...Sd(r.children)):Vo(r)&&r.shapeFlag===2?n.push(...Sd(r.type())):n.push(r)}),n},wje=(e,t,n)=>Sd(e.subTree).filter(i=>{var a;return Vo(i)&&((a=i.type)==null?void 0:a.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),cD=(e,t)=>{const n=jo({}),r=jo([]),o=new WeakMap,i=d=>{n.value[d.uid]=d,pS(n),qn(()=>{const c=d.getVnode().el,f=c.parentNode;if(!o.has(f)){o.set(f,[]);const p=f.insertBefore.bind(f);f.insertBefore=(v,h)=>(o.get(f).some(y=>v===y||h===y)&&pS(n),p(v,h))}o.get(f).push(c)})},a=d=>{delete n.value[d.uid],pS(n);const c=d.getVnode().el,f=c.parentNode,p=o.get(f),v=p.indexOf(c);p.splice(v,1)},s=()=>{r.value=wje(e,t,n.value)},l=d=>d.render();return{children:r,addChild:i,removeChild:a,ChildrenSorter:nt({setup(d,{slots:c}){return()=>(s(),c.default?jn(l,{render:c.default}):null)}})}},PJ=300,Aje=(e,t,n)=>{const{children:r,addChild:o,removeChild:i,ChildrenSorter:a}=cD(br(),EL),s=ga(),l=K(-1),u=K(null),d=K(!1),c=K(),f=K(0),p=K(!0),v=ee(()=>e.arrow!=="never"&&!C(y)),h=ee(()=>r.value.some(X=>X.props.label.toString().length>0)),g=ee(()=>e.type==="card"),y=ee(()=>e.direction==="vertical"),m=ee(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),b=Zg(X=>{_(X)},PJ,{trailing:!0}),w=Zg(X=>{z(X)},PJ),A=X=>p.value?l.value<=1?X<=1:X>1:!0;function S(){u.value&&(clearInterval(u.value),u.value=null)}function E(){e.interval<=0||!e.autoplay||u.value||(u.value=setInterval(()=>D(),e.interval))}const D=()=>{l.value<r.value.length-1?l.value=l.value+1:e.loop&&(l.value=0)};function _(X){if(In(X)){const le=r.value.filter(ve=>ve.props.name===X);le.length>0&&(X=r.value.indexOf(le[0]))}if(X=Number(X),Number.isNaN(X)||X!==Math.floor(X))return;const te=r.value.length,Z=l.value;X<0?l.value=e.loop?te-1:0:X>=te?l.value=e.loop?0:te-1:l.value=X,Z===l.value&&M(Z),Y()}function M(X){r.value.forEach((te,Z)=>{te.translateItem(Z,l.value,X)})}function O(X,te){var Z,le,ve,Pe;const Ae=C(r),he=Ae.length;if(he===0||!X.states.inStage)return!1;const Ee=te+1,Q=te-1,me=he-1,De=Ae[me].states.active,pe=Ae[0].states.active,ie=(le=(Z=Ae[Ee])==null?void 0:Z.states)==null?void 0:le.active,ue=(Pe=(ve=Ae[Q])==null?void 0:ve.states)==null?void 0:Pe.active;return te===me&&pe||ie?"left":te===0&&De||ue?"right":!1}function k(){d.value=!0,e.pauseOnHover&&S()}function R(){d.value=!1,E()}function N(X){C(y)||r.value.forEach((te,Z)=>{X===O(te,Z)&&(te.states.hover=!0)})}function W(){C(y)||r.value.forEach(X=>{X.states.hover=!1})}function B(X){l.value=X}function z(X){e.trigger==="hover"&&X!==l.value&&(l.value=X)}function j(){_(l.value-1)}function q(){_(l.value+1)}function Y(){S(),e.pauseOnHover||E()}function U(X){e.height==="auto"&&(f.value=X)}function F(){var X;const te=(X=s.default)==null?void 0:X.call(s);if(!te)return null;const le=Sd(te).filter(ve=>Vo(ve)&&ve.type.name===EL);return le?.length===2&&e.loop&&!g.value?(p.value=!0,le):(p.value=!1,null)}St(()=>l.value,(X,te)=>{M(te),p.value&&(X=X%2,te=te%2),te>-1&&t(Pr,X,te)});const H=ee({get:()=>p.value?l.value%2:l.value,set:X=>l.value=X});St(()=>e.autoplay,X=>{X?E():S()}),St(()=>e.loop,()=>{_(l.value)}),St(()=>e.interval,()=>{Y()});const re=jo();return qn(()=>{St(()=>r.value,()=>{r.value.length>0&&_(e.initialIndex)},{immediate:!0}),re.value=li(c.value,()=>{M()}),E()}),Jr(()=>{S(),c.value&&re.value&&re.value.stop()}),_r(Q1e,{root:c,isCardType:g,isVertical:y,items:r,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:i,setActiveItem:_,setContainerHeight:U}),{root:c,activeIndex:l,exposeActiveIndex:H,arrowDisplay:v,hasLabel:h,hover:d,isCardType:g,items:r,isVertical:y,containerStyle:m,isItemsTwoLength:p,handleButtonEnter:N,handleButtonLeave:W,handleIndicatorClick:B,handleMouseEnter:k,handleMouseLeave:R,setActiveItem:_,prev:j,next:q,PlaceholderItem:F,isTwoLengthShow:A,ItemsSorter:a,throttledArrowClick:b,throttledIndicatorHover:w}},Cje="ElCarousel",xje=nt({name:Cje}),Sje=nt({...xje,props:hje,emits:gje,setup(e,{expose:t,emit:n}){const r=e,{root:o,activeIndex:i,exposeActiveIndex:a,arrowDisplay:s,hasLabel:l,hover:u,isCardType:d,items:c,isVertical:f,containerStyle:p,handleButtonEnter:v,handleButtonLeave:h,handleIndicatorClick:g,handleMouseEnter:y,handleMouseLeave:m,setActiveItem:b,prev:w,next:A,PlaceholderItem:S,isTwoLengthShow:E,ItemsSorter:D,throttledArrowClick:_,throttledIndicatorHover:M}=Aje(r,n),O=Vt("carousel"),{t:k}=Gr(),R=ee(()=>{const z=[O.b(),O.m(r.direction)];return C(d)&&z.push(O.m("card")),z}),N=ee(()=>{const z=[O.e("indicators"),O.em("indicators",r.direction)];return C(l)&&z.push(O.em("indicators","labels")),r.indicatorPosition==="outside"&&z.push(O.em("indicators","outside")),C(f)&&z.push(O.em("indicators","right")),z});function W(z){if(!r.motionBlur)return;const j=C(f)?`${O.namespace.value}-transitioning-vertical`:`${O.namespace.value}-transitioning`;z.currentTarget.classList.add(j)}function B(z){if(!r.motionBlur)return;const j=C(f)?`${O.namespace.value}-transitioning-vertical`:`${O.namespace.value}-transitioning`;z.currentTarget.classList.remove(j)}return t({activeIndex:a,setActiveItem:b,prev:w,next:A}),(z,j)=>(L(),G("div",{ref_key:"root",ref:o,class:oe(C(R)),onMouseenter:en(C(y),["stop"]),onMouseleave:en(C(m),["stop"])},[C(s)?(L(),yt(Ki,{key:0,name:"carousel-arrow-left",persisted:""},{default:rt(()=>[cn(x("button",{type:"button",class:oe([C(O).e("arrow"),C(O).em("arrow","left")]),"aria-label":C(k)("el.carousel.leftArrow"),onMouseenter:q=>C(v)("left"),onMouseleave:C(h),onClick:en(q=>C(_)(C(i)-1),["stop"])},[He(C(Dn),null,{default:rt(()=>[He(C(Jf))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[kr,(z.arrow==="always"||C(u))&&(r.loop||C(i)>0)]])]),_:1})):xe("v-if",!0),C(s)?(L(),yt(Ki,{key:1,name:"carousel-arrow-right",persisted:""},{default:rt(()=>[cn(x("button",{type:"button",class:oe([C(O).e("arrow"),C(O).em("arrow","right")]),"aria-label":C(k)("el.carousel.rightArrow"),onMouseenter:q=>C(v)("right"),onMouseleave:C(h),onClick:en(q=>C(_)(C(i)+1),["stop"])},[He(C(Dn),null,{default:rt(()=>[He(C(Da))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[kr,(z.arrow==="always"||C(u))&&(r.loop||C(i)<C(c).length-1)]])]),_:1})):xe("v-if",!0),x("div",{class:oe(C(O).e("container")),style:rn(C(p)),onTransitionstart:W,onTransitionend:B},[He(C(S)),ht(z.$slots,"default")],38),He(C(D),null,{default:rt(()=>[z.indicatorPosition!=="none"?(L(),G("ul",{key:0,class:oe(C(N))},[(L(!0),G(Rt,null,un(C(c),(q,Y)=>cn((L(),G("li",{key:Y,class:oe([C(O).e("indicator"),C(O).em("indicator",z.direction),C(O).is("active",Y===C(i))]),onMouseenter:U=>C(M)(Y),onClick:en(U=>C(g)(Y),["stop"])},[x("button",{class:oe(C(O).e("button")),"aria-label":C(k)("el.carousel.indicator",{index:Y+1})},[C(l)?(L(),G("span",{key:0},je(q.props.label),1)):xe("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[kr,C(E)(Y)]])),128))],2)):xe("v-if",!0)]),_:1}),r.motionBlur?(L(),G("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[x("defs",null,[x("filter",{id:"elCarouselHorizontal"},[x("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),x("filter",{id:"elCarouselVertical"},[x("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):xe("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var Eje=on(Sje,[["__file","carousel.vue"]]);const kje=Jt({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Tje=e=>{const t=dn(Q1e),n=br(),r=K(),o=K(!1),i=K(0),a=K(1),s=K(!1),l=K(!1),u=K(!1),d=K(!1),{isCardType:c,isVertical:f,cardScale:p}=t;function v(w,A,S){const E=S-1,D=A-1,_=A+1,M=S/2;return A===0&&w===E?-1:A===E&&w===0?S:w<D&&A-w>=M?S+1:w>_&&w-A>=M?-2:w}function h(w,A){var S,E;const D=C(f)?((S=t.root.value)==null?void 0:S.offsetHeight)||0:((E=t.root.value)==null?void 0:E.offsetWidth)||0;return u.value?D*((2-p)*(w-A)+1)/4:w<A?-(1+p)*D/4:(3+p)*D/4}function g(w,A,S){const E=t.root.value;return E?((S?E.offsetHeight:E.offsetWidth)||0)*(w-A):0}const y=(w,A,S)=>{var E;const D=C(c),_=(E=t.items.value.length)!=null?E:Number.NaN,M=w===A;!D&&!Vr(S)&&(d.value=M||w===S),!M&&_>2&&t.loop&&(w=v(w,A,_));const O=C(f);s.value=M,D?(u.value=Math.round(Math.abs(w-A))<=1,i.value=h(w,A),a.value=C(s)?1:p):i.value=g(w,A,O),l.value=!0,M&&r.value&&t.setContainerHeight(r.value.offsetHeight)};function m(){if(t&&C(c)){const w=t.items.value.findIndex(({uid:A})=>A===n.uid);t.setActiveItem(w)}}const b={props:e,states:Wr({hover:o,translate:i,scale:a,active:s,ready:l,inStage:u,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:y};return t.addItem(b),Jr(()=>{t.removeItem(b)}),{carouselItemRef:r,active:s,animating:d,hover:o,inStage:u,isVertical:f,translate:i,isCardType:c,scale:a,ready:l,handleItemClick:m}},_je=nt({name:EL}),Dje=nt({..._je,props:kje,setup(e){const t=e,n=Vt("carousel"),{carouselItemRef:r,active:o,animating:i,hover:a,inStage:s,isVertical:l,translate:u,isCardType:d,scale:c,ready:f,handleItemClick:p}=Tje(t),v=ee(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",a.value),n.is("animating",i.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&l.value}]),h=ee(()=>{const y=`${`translate${C(l)?"Y":"X"}`}(${C(u)}px)`,m=`scale(${C(c)})`;return{transform:[y,m].join(" ")}});return(g,y)=>cn((L(),G("div",{ref_key:"carouselItemRef",ref:r,class:oe(C(v)),style:rn(C(h)),onClick:C(p)},[C(d)?cn((L(),G("div",{key:0,class:oe(C(n).e("mask"))},null,2)),[[kr,!C(o)]]):xe("v-if",!0),ht(g.$slots,"default")],14,["onClick"])),[[kr,C(f)]])}});var Z1e=on(Dje,[["__file","carousel-item.vue"]]);const Ije=or(Eje,{CarouselItem:Z1e}),Oje=vi(Z1e),X1e={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Aa,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},..._s(["ariaControls"])},J1e={[Qn]:e=>In(e)||$n(e)||Eo(e),change:e=>In(e)||$n(e)||Eo(e)},Hb=Symbol("checkboxGroupContextKey"),Mje=({model:e,isChecked:t})=>{const n=dn(Hb,void 0),r=ee(()=>{var i,a;const s=(i=n?.max)==null?void 0:i.value,l=(a=n?.min)==null?void 0:a.value;return!Vr(s)&&e.value.length>=s&&!t.value||!Vr(l)&&e.value.length<=l&&t.value});return{isDisabled:Va(ee(()=>n?.disabled.value||r.value)),isLimitDisabled:r}},Pje=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:i})=>{const a=dn(Hb,void 0),{formItem:s}=Ds(),{emit:l}=br();function u(v){var h,g,y,m;return[!0,e.trueValue,e.trueLabel].includes(v)?(g=(h=e.trueValue)!=null?h:e.trueLabel)!=null?g:!0:(m=(y=e.falseValue)!=null?y:e.falseLabel)!=null?m:!1}function d(v,h){l(Pr,u(v),h)}function c(v){if(n.value)return;const h=v.target;l(Pr,u(h.checked),v)}async function f(v){n.value||!r.value&&!o.value&&i.value&&(v.composedPath().some(y=>y.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await Yt(),d(t.value,v)))}const p=ee(()=>a?.validateEvent||e.validateEvent);return St(()=>e.modelValue,()=>{p.value&&s?.validate("change").catch(v=>void 0)}),{handleChange:c,onClickRoot:f}},Nje=e=>{const t=K(!1),{emit:n}=br(),r=dn(Hb,void 0),o=ee(()=>Vr(r)===!1),i=K(!1),a=ee({get(){var s,l;return o.value?(s=r?.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;o.value&&Zt(s)?(i.value=((l=r?.max)==null?void 0:l.value)!==void 0&&s.length>r?.max.value&&s.length>a.value.length,i.value===!1&&((u=r?.changeEvent)==null||u.call(r,s))):(n(Qn,s),t.value=s)}});return{model:a,isGroup:o,isLimitExceeded:i}},Rje=(e,t,{model:n})=>{const r=dn(Hb,void 0),o=K(!1),i=ee(()=>Bl(e.value)?e.label:e.value),a=ee(()=>{const d=n.value;return Eo(d)?d:Zt(d)?dr(i.value)?d.map(No).some(c=>fa(c,i.value)):d.map(No).includes(i.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),s=ha(ee(()=>{var d;return(d=r?.size)==null?void 0:d.value}),{prop:!0}),l=ha(ee(()=>{var d;return(d=r?.size)==null?void 0:d.value})),u=ee(()=>!!t.default||!Bl(i.value));return{checkboxButtonSize:s,isChecked:a,isFocused:o,checkboxSize:l,hasOwnLabel:u,actualValue:i}},eye=(e,t)=>{const{formItem:n}=Ds(),{model:r,isGroup:o,isLimitExceeded:i}=Nje(e),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,actualValue:c}=Rje(e,t,{model:r}),{isDisabled:f}=Mje({model:r,isChecked:s}),{inputId:p,isLabeledByFormItem:v}=fc(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:h,onClickRoot:g}=Pje(e,{model:r,isLimitExceeded:i,hasOwnLabel:d,isDisabled:f,isLabeledByFormItem:v});return(()=>{function m(){var b,w;Zt(r.value)&&!r.value.includes(c.value)?r.value.push(c.value):r.value=(w=(b=e.trueValue)!=null?b:e.trueLabel)!=null?w:!0}e.checked&&m()})(),jf({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},ee(()=>o.value&&Bl(e.value))),jf({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},ee(()=>!!e.trueLabel)),jf({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},ee(()=>!!e.falseLabel)),{inputId:p,isLabeledByFormItem:v,isChecked:s,isDisabled:f,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,model:r,actualValue:c,handleChange:h,onClickRoot:g}},Bje=nt({name:"ElCheckbox"}),Lje=nt({...Bje,props:X1e,emits:J1e,setup(e){const t=e,n=ga(),{inputId:r,isLabeledByFormItem:o,isChecked:i,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:d,actualValue:c,handleChange:f,onClickRoot:p}=eye(t,n),v=Vt("checkbox"),h=ee(()=>[v.b(),v.m(l.value),v.is("disabled",a.value),v.is("bordered",t.border),v.is("checked",i.value)]),g=ee(()=>[v.e("input"),v.is("disabled",a.value),v.is("checked",i.value),v.is("indeterminate",t.indeterminate),v.is("focus",s.value)]);return(y,m)=>(L(),yt(mr(!C(u)&&C(o)?"span":"label"),{class:oe(C(h)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:C(p)},{default:rt(()=>{var b,w,A,S;return[x("span",{class:oe(C(g))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?cn((L(),G("input",{key:0,id:C(r),"onUpdate:modelValue":E=>Uo(d)?d.value=E:null,class:oe(C(v).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:C(a),"true-value":(w=(b=y.trueValue)!=null?b:y.trueLabel)!=null?w:!0,"false-value":(S=(A=y.falseValue)!=null?A:y.falseLabel)!=null?S:!1,onChange:C(f),onFocus:E=>s.value=!0,onBlur:E=>s.value=!1,onClick:en(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[dE,C(d)]]):cn((L(),G("input",{key:1,id:C(r),"onUpdate:modelValue":E=>Uo(d)?d.value=E:null,class:oe(C(v).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:C(a),value:C(c),name:y.name,tabindex:y.tabindex,onChange:C(f),onFocus:E=>s.value=!0,onBlur:E=>s.value=!1,onClick:en(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[dE,C(d)]]),x("span",{class:oe(C(v).e("inner"))},null,2)],2),C(u)?(L(),G("span",{key:0,class:oe(C(v).e("label"))},[ht(y.$slots,"default"),y.$slots.default?xe("v-if",!0):(L(),G(Rt,{key:0},[bn(je(y.label),1)],64))],2)):xe("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var Fje=on(Lje,[["__file","checkbox.vue"]]);const Uje=nt({name:"ElCheckboxButton"}),zje=nt({...Uje,props:X1e,emits:J1e,setup(e){const t=e,n=ga(),{isFocused:r,isChecked:o,isDisabled:i,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=eye(t,n),d=dn(Hb,void 0),c=Vt("checkbox"),f=ee(()=>{var v,h,g,y;const m=(h=(v=d?.fill)==null?void 0:v.value)!=null?h:"";return{backgroundColor:m,borderColor:m,color:(y=(g=d?.textColor)==null?void 0:g.value)!=null?y:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),p=ee(()=>[c.b("button"),c.bm("button",a.value),c.is("disabled",i.value),c.is("checked",o.value),c.is("focus",r.value)]);return(v,h)=>{var g,y,m,b;return L(),G("label",{class:oe(C(p))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?cn((L(),G("input",{key:0,"onUpdate:modelValue":w=>Uo(s)?s.value=w:null,class:oe(C(c).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:C(i),"true-value":(y=(g=v.trueValue)!=null?g:v.trueLabel)!=null?y:!0,"false-value":(b=(m=v.falseValue)!=null?m:v.falseLabel)!=null?b:!1,onChange:C(u),onFocus:w=>r.value=!0,onBlur:w=>r.value=!1,onClick:en(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[dE,C(s)]]):cn((L(),G("input",{key:1,"onUpdate:modelValue":w=>Uo(s)?s.value=w:null,class:oe(C(c).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:C(i),value:C(l),onChange:C(u),onFocus:w=>r.value=!0,onBlur:w=>r.value=!1,onClick:en(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[dE,C(s)]]),v.$slots.default||v.label?(L(),G("span",{key:2,class:oe(C(c).be("button","inner")),style:rn(C(o)?C(f):void 0)},[ht(v.$slots,"default",{},()=>[bn(je(v.label),1)])],6)):xe("v-if",!0)],2)}}});var tye=on(zje,[["__file","checkbox-button.vue"]]);const $je=Jt({modelValue:{type:ct(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Aa,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},..._s(["ariaLabel"])}),jje={[Qn]:e=>Zt(e),change:e=>Zt(e)},Hje=nt({name:"ElCheckboxGroup"}),Wje=nt({...Hje,props:$je,emits:jje,setup(e,{emit:t}){const n=e,r=Vt("checkbox"),{formItem:o}=Ds(),{inputId:i,isLabeledByFormItem:a}=fc(n,{formItemContext:o}),s=async u=>{t(Qn,u),await Yt(),t(Pr,u)},l=ee({get(){return n.modelValue},set(u){s(u)}});return _r(Hb,{...uu(Oa(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),St(()=>n.modelValue,(u,d)=>{n.validateEvent&&!fa(u,d)&&o?.validate("change").catch(c=>void 0)}),(u,d)=>{var c;return L(),yt(mr(u.tag),{id:C(i),class:oe(C(r).b("group")),role:"group","aria-label":C(a)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":C(a)?(c=C(o))==null?void 0:c.labelId:void 0},{default:rt(()=>[ht(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var nye=on(Wje,[["__file","checkbox-group.vue"]]);const tc=or(Fje,{CheckboxButton:tye,CheckboxGroup:nye}),Vje=vi(tye),rye=vi(nye),oye=Jt({modelValue:{type:[String,Number,Boolean],default:void 0},size:Aa,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),qje=Jt({...oye,border:Boolean}),iye={[Qn]:e=>In(e)||$n(e)||Eo(e),[Pr]:e=>In(e)||$n(e)||Eo(e)},aye=Symbol("radioGroupKey"),sye=(e,t)=>{const n=K(),r=dn(aye,void 0),o=ee(()=>!!r),i=ee(()=>Bl(e.value)?e.label:e.value),a=ee({get(){return o.value?r.modelValue:e.modelValue},set(c){o.value?r.changeEvent(c):t&&t(Qn,c),n.value.checked=e.modelValue===i.value}}),s=ha(ee(()=>r?.size)),l=Va(ee(()=>r?.disabled)),u=K(!1),d=ee(()=>l.value||o.value&&a.value!==i.value?-1:0);return jf({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},ee(()=>o.value&&Bl(e.value))),{radioRef:n,isGroup:o,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:d,modelValue:a,actualValue:i}},Gje=nt({name:"ElRadio"}),Kje=nt({...Gje,props:qje,emits:iye,setup(e,{emit:t}){const n=e,r=Vt("radio"),{radioRef:o,radioGroup:i,focus:a,size:s,disabled:l,modelValue:u,actualValue:d}=sye(n,t);function c(){Yt(()=>t(Pr,u.value))}return(f,p)=>{var v;return L(),G("label",{class:oe([C(r).b(),C(r).is("disabled",C(l)),C(r).is("focus",C(a)),C(r).is("bordered",f.border),C(r).is("checked",C(u)===C(d)),C(r).m(C(s))])},[x("span",{class:oe([C(r).e("input"),C(r).is("disabled",C(l)),C(r).is("checked",C(u)===C(d))])},[cn(x("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":h=>Uo(u)?u.value=h:null,class:oe(C(r).e("original")),value:C(d),name:f.name||((v=C(i))==null?void 0:v.name),disabled:C(l),checked:C(u)===C(d),type:"radio",onFocus:h=>a.value=!0,onBlur:h=>a.value=!1,onChange:c,onClick:en(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[Zge,C(u)]]),x("span",{class:oe(C(r).e("inner"))},null,2)],2),x("span",{class:oe(C(r).e("label")),onKeydown:en(()=>{},["stop"])},[ht(f.$slots,"default",{},()=>[bn(je(f.label),1)])],42,["onKeydown"])],2)}}});var Yje=on(Kje,[["__file","radio.vue"]]);const Qje=Jt({...oye}),Zje=nt({name:"ElRadioButton"}),Xje=nt({...Zje,props:Qje,setup(e){const t=e,n=Vt("radio"),{radioRef:r,focus:o,size:i,disabled:a,modelValue:s,radioGroup:l,actualValue:u}=sye(t),d=ee(()=>({backgroundColor:l?.fill||"",borderColor:l?.fill||"",boxShadow:l?.fill?`-1px 0 0 0 ${l.fill}`:"",color:l?.textColor||""}));return(c,f)=>{var p;return L(),G("label",{class:oe([C(n).b("button"),C(n).is("active",C(s)===C(u)),C(n).is("disabled",C(a)),C(n).is("focus",C(o)),C(n).bm("button",C(i))])},[cn(x("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":v=>Uo(s)?s.value=v:null,class:oe(C(n).be("button","original-radio")),value:C(u),type:"radio",name:c.name||((p=C(l))==null?void 0:p.name),disabled:C(a),onFocus:v=>o.value=!0,onBlur:v=>o.value=!1,onClick:en(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[Zge,C(s)]]),x("span",{class:oe(C(n).be("button","inner")),style:rn(C(s)===C(u)?C(d):{}),onKeydown:en(()=>{},["stop"])},[ht(c.$slots,"default",{},()=>[bn(je(c.label),1)])],46,["onKeydown"])],2)}}});var lye=on(Xje,[["__file","radio-button.vue"]]);const Jje=Jt({id:{type:String,default:void 0},size:Aa,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},..._s(["ariaLabel"])}),eHe=iye,tHe=nt({name:"ElRadioGroup"}),nHe=nt({...tHe,props:Jje,emits:eHe,setup(e,{emit:t}){const n=e,r=Vt("radio"),o=ps(),i=K(),{formItem:a}=Ds(),{inputId:s,isLabeledByFormItem:l}=fc(n,{formItemContext:a}),u=c=>{t(Qn,c),Yt(()=>t(Pr,c))};qn(()=>{const c=i.value.querySelectorAll("[type=radio]"),f=c[0];!Array.from(c).some(p=>p.checked)&&f&&(f.tabIndex=0)});const d=ee(()=>n.name||o.value);return _r(aye,Wr({...Oa(n),changeEvent:u,name:d})),St(()=>n.modelValue,(c,f)=>{n.validateEvent&&!fa(c,f)&&a?.validate("change").catch(p=>void 0)}),(c,f)=>(L(),G("div",{id:C(s),ref_key:"radioGroupRef",ref:i,class:oe(C(r).b("group")),role:"radiogroup","aria-label":C(l)?void 0:c.ariaLabel||"radio-group","aria-labelledby":C(l)?C(a).labelId:void 0},[ht(c.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var uye=on(nHe,[["__file","radio-group.vue"]]);const cye=or(Yje,{RadioButton:lye,RadioGroup:uye}),rHe=vi(uye),oHe=vi(lye),dD=Symbol();function iHe(e){return!!(Zt(e)?e.every(({type:t})=>t===da):e?.type===da)}var aHe=nt({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=Vt("cascader-node"),{renderLabelFn:n}=dn(dD),{node:r}=e,{data:o,label:i}=r,a=()=>{const s=n?.({node:r,data:o});return iHe(s)?i:s??i};return()=>He("span",{class:t.e("label")},[a()])}});const sHe=nt({name:"ElCascaderNode"}),lHe=nt({...sHe,props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,r=dn(dD),o=Vt("cascader-node"),i=ee(()=>r.isHoverMenu),a=ee(()=>r.config.multiple),s=ee(()=>r.config.checkStrictly),l=ee(()=>r.config.showPrefix),u=ee(()=>{var D;return(D=r.checkedNodes[0])==null?void 0:D.uid}),d=ee(()=>n.node.isDisabled),c=ee(()=>n.node.isLeaf),f=ee(()=>s.value&&!c.value||!d.value),p=ee(()=>h(r.expandingNode)),v=ee(()=>s.value&&r.checkedNodes.some(h)),h=D=>{var _;const{level:M,uid:O}=n.node;return((_=D?.pathNodes[M-1])==null?void 0:_.uid)===O},g=()=>{p.value||r.expandNode(n.node)},y=D=>{const{node:_}=n;D!==_.checked&&r.handleCheckChange(_,D)},m=()=>{r.lazyLoad(n.node,()=>{c.value||g()})},b=D=>{i.value&&(w(),!c.value&&t("expand",D))},w=()=>{const{node:D}=n;!f.value||D.loading||(D.loaded?g():m())},A=()=>{i.value||(c.value&&!d.value&&!s.value&&!a.value?E(!0):(r.config.checkOnClickNode||c.value&&r.config.checkOnClickLeaf)&&!d.value?S(!n.node.checked):w())},S=D=>{s.value?(y(D),n.node.loaded&&g()):E(D)},E=D=>{n.node.loaded?(y(D),!s.value&&g()):m()};return(D,_)=>(L(),G("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!C(c),"aria-owns":C(c)?void 0:e.menuId,"aria-expanded":C(p),tabindex:C(f)?-1:void 0,class:oe([C(o).b(),C(o).is("selectable",C(s)),C(o).is("active",e.node.checked),C(o).is("disabled",!C(f)),C(p)&&"in-active-path",C(v)&&"in-checked-path"]),onMouseenter:b,onFocus:b,onClick:A},[xe(" prefix "),C(a)&&C(l)?(L(),yt(C(tc),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:C(d),onClick:en(()=>{},["stop"]),"onUpdate:modelValue":S},null,8,["model-value","indeterminate","disabled","onClick"])):C(s)&&C(l)?(L(),yt(C(cye),{key:1,"model-value":C(u),label:e.node.uid,disabled:C(d),"onUpdate:modelValue":S,onClick:en(()=>{},["stop"])},{default:rt(()=>[xe(`
- Add an empty element to avoid render label,
- do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
- `),x("span")]),_:1},8,["model-value","label","disabled","onClick"])):C(c)&&e.node.checked?(L(),yt(C(Dn),{key:2,class:oe(C(o).e("prefix"))},{default:rt(()=>[He(C(B5))]),_:1},8,["class"])):xe("v-if",!0),xe(" content "),He(C(aHe),{node:e.node},null,8,["node"]),xe(" postfix "),C(c)?xe("v-if",!0):(L(),G(Rt,{key:3},[e.node.loading?(L(),yt(C(Dn),{key:0,class:oe([C(o).is("loading"),C(o).e("postfix")])},{default:rt(()=>[He(C(jc))]),_:1},8,["class"])):(L(),yt(C(Dn),{key:1,class:oe(["arrow-right",C(o).e("postfix")])},{default:rt(()=>[He(C(Da))]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex"]))}});var uHe=on(lHe,[["__file","node.vue"]]);const cHe=nt({name:"ElCascaderMenu"}),dHe=nt({...cHe,props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=br(),r=Vt("cascader-menu"),{t:o}=Gr(),i=ps();let a,s;const l=dn(dD),u=K(),d=ee(()=>!t.nodes.length),c=ee(()=>!l.initialLoaded),f=ee(()=>`${i.value}-${t.index}`),p=y=>{a=y.target},v=y=>{if(!(!l.isHoverMenu||!a||!u.value))if(a.contains(y.target)){h();const m=n.vnode.el,{left:b}=m.getBoundingClientRect(),{offsetWidth:w,offsetHeight:A}=m,S=y.clientX-b,E=a.offsetTop,D=E+a.offsetHeight;u.value.innerHTML=`
- <path style="pointer-events: auto;" fill="transparent" d="M${S} ${E} L${w} 0 V${E} Z" />
- <path style="pointer-events: auto;" fill="transparent" d="M${S} ${D} L${w} ${A} V${D} Z" />
- `}else s||(s=window.setTimeout(g,l.config.hoverThreshold))},h=()=>{s&&(clearTimeout(s),s=void 0)},g=()=>{u.value&&(u.value.innerHTML="",h())};return(y,m)=>(L(),yt(C(Hc),{key:C(f),tag:"ul",role:"menu",class:oe(C(r).b()),"wrap-class":C(r).e("wrap"),"view-class":[C(r).e("list"),C(r).is("empty",C(d))],onMousemove:v,onMouseleave:g},{default:rt(()=>{var b;return[(L(!0),G(Rt,null,un(e.nodes,w=>(L(),yt(uHe,{key:w.uid,node:w,"menu-id":C(f),onExpand:p},null,8,["node","menu-id"]))),128)),C(c)?(L(),G("div",{key:0,class:oe(C(r).e("empty-text"))},[He(C(Dn),{size:"14",class:oe(C(r).is("loading"))},{default:rt(()=>[He(C(jc))]),_:1},8,["class"]),bn(" "+je(C(o)("el.cascader.loading")),1)],2)):C(d)?(L(),G("div",{key:1,class:oe(C(r).e("empty-text"))},[ht(y.$slots,"empty",{},()=>[bn(je(C(o)("el.cascader.noData")),1)])],2)):(b=C(l))!=null&&b.isHoverMenu?(L(),G(Rt,{key:2},[xe(" eslint-disable-next-line vue/html-self-closing "),(L(),G("svg",{ref_key:"hoverZone",ref:u,class:oe(C(r).e("hover-zone"))},null,2))],2112)):xe("v-if",!0)]}),_:3},8,["class","wrap-class","view-class"]))}});var fHe=on(dHe,[["__file","menu.vue"]]);let pHe=0;const hHe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let TL=class _L{constructor(t,n,r,o=!1){this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=pHe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:a,children:s}=n,l=t[s],u=hHe(this);this.level=o?0:r?r.level+1:1,this.value=t[i],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(d=>d.value),this.pathLabels=u.map(d=>d.label),this.childrenData=l,this.children=(l||[]).map(d=>new _L(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!iu(l),this.text=""}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:o,checkStrictly:i}=r;return(Rn(o)?o(t,this):!!t[o])||!i&&!!n?.isDisabled}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:o}=this,{lazy:i,leaf:a}=n,s=Rn(a)?a(t,this):t[a];return Vr(s)?i&&!o?!1:!(Zt(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new _L(t,this.config,this);return Zt(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t){this.children.forEach(n=>{var r;n&&(n.broadcast(t),(r=n.onParentCheck)==null||r.call(n,t))})}emit(){var t;const{parent:n}=this;n&&((t=n.onChildCheck)==null||t.call(n),n.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),r=n.length?n.every(o=>o.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((o,i)=>{const a=i.checked?1:i.indeterminate?.5:0;return o+a},0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const DL=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(DL(r.children,t))),n),[]);class NJ{constructor(t,n){this.config=n;const r=(t||[]).map(o=>new TL(o,this.config));this.nodes=r,this.allNodes=DL(r,!1),this.leafNodes=DL(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new TL(t,this.config);n||this.nodes.push(r),this.appendAllNodesAndLeafNodes(r)}appendNodes(t,n){t.length>0?t.forEach(r=>this.appendNode(r,n)):n&&n.isLeaf&&this.leafNodes.push(n)}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(n=>{this.appendAllNodesAndLeafNodes(n)})}getNodeByValue(t,n=!1){return Bl(t)?null:this.getFlattedNodes(n).find(o=>fa(o.value,t)||fa(o.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:o})=>fa(t.value,r)&&t.level===o)||null}}const dye=Jt({modelValue:{type:ct([Number,String,Array])},options:{type:ct(Array),default:()=>[]},props:{type:ct(Object),default:()=>({})}}),gHe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:bo,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},vHe=Jt({...dye,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),RJ=e=>!0,mHe={[Qn]:RJ,[Pr]:RJ,close:()=>!0,"expand-change":e=>e},yHe=e=>ee(()=>({...gHe,...e.props})),BJ=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},bHe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():c1e(e)&&e.click()},wHe=(e,t)=>{const n=t.slice(0),r=n.map(i=>i.uid),o=e.reduce((i,a)=>{const s=r.indexOf(a.uid);return s>-1&&(i.push(a),n.splice(s,1),r.splice(s,1)),i},[]);return o.push(...n),o},LJ=e=>[...new Set(e)],sl=e=>!e&&e!==0?[]:Zt(e)?e:[e],AHe=nt({name:"ElCascaderPanel",inheritAttrs:!1}),CHe=nt({...AHe,props:vHe,emits:mHe,setup(e,{expose:t,emit:n}){const r=e;let o=!1;const i=Vt("cascader"),a=yHe(r),s=ga();let l;const u=K(!0),d=K([]),c=K(),f=K([]),p=K(),v=K([]),h=ee(()=>a.value.expandTrigger==="hover"),g=ee(()=>r.renderLabel||s.default),y=()=>{const{options:N}=r,W=a.value;o=!1,l=new NJ(N,W),f.value=[l.getNodes()],W.lazy&&iu(r.options)?(u.value=!1,m(void 0,B=>{B&&(l=new NJ(B,W),f.value=[l.getNodes()]),u.value=!0,M(!1,!0)})):M(!1,!0)},m=(N,W)=>{const B=a.value;N=N||new TL({},B,void 0,!0),N.loading=!0;const z=j=>{const q=N,Y=q.root?null:q;q.loading=!1,q.loaded=!0,q.childrenData=q.childrenData||[],j&&l?.appendNodes(j,Y),j&&W?.(j)};B.lazyLoad(N,z)},b=(N,W)=>{var B;const{level:z}=N,j=f.value.slice(0,z);let q;N.isLeaf?q=N.pathNodes[z-2]:(q=N,j.push(N.children)),((B=p.value)==null?void 0:B.uid)!==q?.uid&&(p.value=N,f.value=j,!W&&n("expand-change",N?.pathValues||[]))},w=(N,W,B=!0)=>{const{checkStrictly:z,multiple:j}=a.value,q=v.value[0];o=!0,!j&&q?.doCheck(!1),N.doCheck(W),_(),B&&!j&&!z&&n("close"),!B&&!j&&!z&&A(N)},A=N=>{N&&(N=N.parent,A(N),N&&b(N))},S=N=>l?.getFlattedNodes(N),E=N=>{var W;return(W=S(N))==null?void 0:W.filter(({checked:B})=>B!==!1)},D=()=>{v.value.forEach(N=>N.doCheck(!1)),_(),f.value=f.value.slice(0,1),p.value=void 0,n("expand-change",[])},_=()=>{var N;const{checkStrictly:W,multiple:B}=a.value,z=v.value,j=E(!W),q=wHe(z,j),Y=q.map(U=>U.valueByOption);v.value=q,c.value=B?Y:(N=Y[0])!=null?N:null},M=(N=!1,W=!1)=>{const{modelValue:B}=r,{lazy:z,multiple:j,checkStrictly:q}=a.value,Y=!q;if(!(!u.value||o||!W&&fa(B,c.value)))if(z&&!N){const F=LJ(uRe(sl(B))).map(H=>l?.getNodeByValue(H)).filter(H=>!!H&&!H.loaded&&!H.loading);F.length?F.forEach(H=>{m(H,()=>M(!1,W))}):M(!0,W)}else{const U=j?sl(B):[B],F=LJ(U.map(H=>l?.getNodeByValue(H,Y)));O(F,W),c.value=yE(B??void 0)}},O=(N,W=!0)=>{const{checkStrictly:B}=a.value,z=v.value,j=N.filter(U=>!!U&&(B||U.isLeaf)),q=l?.getSameNode(p.value),Y=W&&q||j[0];Y?Y.pathNodes.forEach(U=>b(U,!0)):p.value=void 0,z.forEach(U=>U.doCheck(!1)),Wr(j).forEach(U=>U.doCheck(!0)),v.value=j,Yt(k)},k=()=>{Xr&&d.value.forEach(N=>{const W=N?.$el;if(W){const B=W.querySelector(`.${i.namespace.value}-scrollbar__wrap`),z=W.querySelector(`.${i.b("node")}.${i.is("active")}:last-child`)||W.querySelector(`.${i.b("node")}.in-active-path`);CH(B,z)}})},R=N=>{const W=N.target,{code:B}=N;switch(B){case gn.up:case gn.down:{N.preventDefault();const z=B===gn.up?-1:1;xS(d1e(W,z,`.${i.b("node")}[tabindex="-1"]`));break}case gn.left:{N.preventDefault();const z=d.value[BJ(W)-1],j=z?.$el.querySelector(`.${i.b("node")}[aria-expanded="true"]`);xS(j);break}case gn.right:{N.preventDefault();const z=d.value[BJ(W)+1],j=z?.$el.querySelector(`.${i.b("node")}[tabindex="-1"]`);xS(j);break}case gn.enter:case gn.numpadEnter:bHe(W);break}};return _r(dD,Wr({config:a,expandingNode:p,checkedNodes:v,isHoverMenu:h,initialLoaded:u,renderLabelFn:g,lazyLoad:m,expandNode:b,handleCheckChange:w})),St(a,(N,W)=>{fa(N,W)||y()},{immediate:!0}),St(()=>r.options,y,{deep:!0}),St(()=>r.modelValue,()=>{o=!1,M()},{deep:!0}),St(()=>c.value,N=>{fa(N,r.modelValue)||(n(Qn,N),n(Pr,N))}),zj(()=>d.value=[]),qn(()=>!iu(r.modelValue)&&M()),t({menuList:d,menus:f,checkedNodes:v,handleKeyDown:R,handleCheckChange:w,getFlattedNodes:S,getCheckedNodes:E,clearCheckedNodes:D,calculateCheckedValue:_,scrollToExpandingNode:k}),(N,W)=>(L(),G("div",{class:oe([C(i).b("panel"),C(i).is("bordered",N.border)]),onKeydown:R},[(L(!0),G(Rt,null,un(f.value,(B,z)=>(L(),yt(fHe,{key:z,ref_for:!0,ref:j=>d.value[z]=j,index:z,nodes:[...B]},{empty:rt(()=>[ht(N.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],34))}});var xHe=on(CHe,[["__file","index.vue"]]);const fye=or(xHe),tp=Jt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:ef},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),SHe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},EHe=nt({name:"ElTag"}),kHe=nt({...EHe,props:tp,emits:SHe,setup(e,{emit:t}){const n=e,r=ha(),o=Vt("tag"),i=ee(()=>{const{type:u,hit:d,effect:c,closable:f,round:p}=n;return[o.b(),o.is("closable",f),o.m(u||"primary"),o.m(r.value),o.m(c),o.is("hit",d),o.is("round",p)]}),a=u=>{t("close",u)},s=u=>{t("click",u)},l=u=>{var d,c,f;(f=(c=(d=u?.component)==null?void 0:d.subTree)==null?void 0:c.component)!=null&&f.bum&&(u.component.subTree.component.bum=null)};return(u,d)=>u.disableTransitions?(L(),G("span",{key:0,class:oe(C(i)),style:rn({backgroundColor:u.color}),onClick:s},[x("span",{class:oe(C(o).e("content"))},[ht(u.$slots,"default")],2),u.closable?(L(),yt(C(Dn),{key:0,class:oe(C(o).e("close")),onClick:en(a,["stop"])},{default:rt(()=>[He(C(vu))]),_:1},8,["class","onClick"])):xe("v-if",!0)],6)):(L(),yt(Ki,{key:1,name:`${C(o).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:l},{default:rt(()=>[x("span",{class:oe(C(i)),style:rn({backgroundColor:u.color}),onClick:s},[x("span",{class:oe(C(o).e("content"))},[ht(u.$slots,"default")],2),u.closable?(L(),yt(C(Dn),{key:0,class:oe(C(o).e("close")),onClick:en(a,["stop"])},{default:rt(()=>[He(C(vu))]),_:1},8,["class","onClick"])):xe("v-if",!0)],6)]),_:3},8,["name"]))}});var THe=on(kHe,[["__file","tag.vue"]]);const Nh=or(THe),_He=Jt({...dye,size:Aa,placeholder:String,disabled:Boolean,clearable:Boolean,clearIcon:{type:wo,default:tf},filterable:Boolean,filterMethod:{type:ct(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:ct(Function),default:()=>!0},placement:{type:ct(String),values:Cp,default:"bottom-start"},fallbackPlacements:{type:ct(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:oi.popperClass,popperStyle:oi.popperStyle,teleported:oi.teleported,effect:{type:ct(String),default:"light"},tagType:{...tp.type,default:"info"},tagEffect:{...tp.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...lm}),FJ=e=>!0,DHe={[Qn]:FJ,[Pr]:FJ,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Eo(e),expandChange:e=>!!e,removeTag:e=>!!e},ah=new Map;if(Xr){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of ah.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function UJ(e,t){let n=[];return Zt(t.arg)?n=t.arg:cl(t.arg)&&n.push(t.arg),function(r,o){const i=t.instance.popperRef,a=r.target,s=o?.target,l=!t||!t.instance,u=!a||!s,d=e.contains(a)||e.contains(s),c=e===a,f=n.length&&n.some(v=>v?.contains(a))||n.length&&n.includes(s),p=i&&(i.contains(a)||i.contains(s));l||u||d||c||f||p||t.value(r,o)}}const np={beforeMount(e,t){ah.has(e)||ah.set(e,[]),ah.get(e).push({documentHandler:UJ(e,t),bindingFn:t.value})},updated(e,t){ah.has(e)||ah.set(e,[]);const n=ah.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),o={documentHandler:UJ(e,t),bindingFn:t.value};r>=0?n.splice(r,1,o):n.push(o)},unmounted(e){ah.delete(e)}},IHe="ElCascader",OHe=nt({name:IHe}),MHe=nt({...OHe,props:_He,emits:DHe,setup(e,{expose:t,emit:n}){const r=e,o={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:de})=>{const{modifiersData:tt,placement:ft}=de;["right","left","bottom","top"].includes(ft)||tt.arrow&&(tt.arrow.x=35)},requires:["arrow"]}]},i=yp();let a=0,s=0;const l=Vt("cascader"),u=Vt("input"),{t:d}=Gr(),{formItem:c}=Ds(),f=Va(),{valueOnClear:p}=R5(r),{isComposing:v,handleComposition:h}=F5({afterComposition(de){var tt;const ft=(tt=de.target)==null?void 0:tt.value;dt(ft)}}),g=K(null),y=K(),m=K(),b=K(null),w=K(null),A=K(null),S=K(!1),E=K(!1),D=K(!1),_=K(""),M=K(""),O=K([]),k=K([]),R=K([]),N=ee(()=>i.style),W=ee(()=>{var de;return(de=r.placeholder)!=null?de:d("el.cascader.placeholder")}),B=ee(()=>M.value||O.value.length>0||v.value?"":W.value),z=ha(),j=ee(()=>z.value==="small"?"small":"default"),q=ee(()=>!!r.props.multiple),Y=ee(()=>!r.filterable||q.value),U=ee(()=>q.value?M.value:_.value),F=ee(()=>{var de;return((de=w.value)==null?void 0:de.checkedNodes)||[]}),{wrapperRef:H,isFocused:re,handleBlur:X}=Ap(m,{disabled:f,beforeBlur(de){var tt,ft,Mt;return((tt=g.value)==null?void 0:tt.isFocusInsideContent(de))||((Mt=(ft=y.value)==null?void 0:ft[0])==null?void 0:Mt.isFocusInsideContent(de))},afterBlur(){var de;S.value=!1,r.validateEvent&&((de=c?.validate)==null||de.call(c,"blur").catch(tt=>void 0))}}),te=ee(()=>!r.clearable||f.value||D.value||!E.value&&!re.value?!1:!!F.value.length),Z=ee(()=>{const{showAllLevels:de,separator:tt}=r,ft=F.value;return ft.length?q.value?"":ft[0].calcText(de,tt):""}),le=ee(()=>c?.validateState||""),ve=ee({get(){return yE(r.modelValue)},set(de){const tt=de??p.value;n(Qn,tt),n(Pr,tt),r.validateEvent&&c?.validate("change").catch(ft=>void 0)}}),Pe=ee(()=>[l.b(),l.m(z.value),l.is("disabled",f.value),i.class]),Ae=ee(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",S.value)]),he=ee(()=>l.is("focus",re.value)),Ee=ee(()=>{var de,tt;return(tt=(de=g.value)==null?void 0:de.popperRef)==null?void 0:tt.contentRef}),Q=de=>{if(re.value){const tt=new FocusEvent("blur",de);X(tt)}me(!1)},me=de=>{var tt,ft,Mt;f.value||(de=de??!S.value,de!==S.value&&(S.value=de,(ft=(tt=m.value)==null?void 0:tt.input)==null||ft.setAttribute("aria-expanded",`${de}`),de?(De(),Yt((Mt=w.value)==null?void 0:Mt.scrollToExpandingNode)):r.filterable&&an(),n("visibleChange",de)))},De=()=>{Yt(()=>{var de;(de=g.value)==null||de.updatePopper()})},pe=()=>{D.value=!1},ie=de=>{const{showAllLevels:tt,separator:ft}=r;return{node:de,key:de.uid,text:de.calcText(tt,ft),hitState:!1,closable:!f.value&&!de.isDisabled,isCollapseTag:!1}},ue=de=>{var tt;const ft=de.node;ft.doCheck(!1),(tt=w.value)==null||tt.calculateCheckedValue(),n("removeTag",ft.valueByOption)},Be=()=>{switch(r.showCheckedStrategy){case"child":return F.value;case"parent":{const de=Re(!1),tt=de.map(Mt=>Mt.value);return de.filter(Mt=>!Mt.parent||!tt.includes(Mt.parent.value))}default:return[]}},Me=()=>{if(!q.value)return;const de=Be(),tt=[],ft=[];if(de.forEach(Mt=>ft.push(ie(Mt))),k.value=ft,de.length){de.slice(0,r.maxCollapseTags).forEach(Nn=>tt.push(ie(Nn)));const Mt=de.slice(r.maxCollapseTags),Tn=Mt.length;Tn&&(r.collapseTags?tt.push({key:-1,text:`+ ${Tn}`,closable:!1,isCollapseTag:!0}):Mt.forEach(Nn=>tt.push(ie(Nn))))}O.value=tt},Fe=()=>{var de,tt;const{filterMethod:ft,showAllLevels:Mt,separator:Tn}=r,Nn=(tt=(de=w.value)==null?void 0:de.getFlattedNodes(!r.props.checkStrictly))==null?void 0:tt.filter(We=>We.isDisabled?!1:(We.calcText(Mt,Tn),ft(We,U.value)));q.value&&(O.value.forEach(We=>{We.hitState=!1}),k.value.forEach(We=>{We.hitState=!1})),D.value=!0,R.value=Nn,De()},ze=()=>{var de;let tt;D.value&&A.value?tt=A.value.$el.querySelector(`.${l.e("suggestion-item")}`):tt=(de=w.value)==null?void 0:de.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),tt&&(tt.focus(),!D.value&&tt.click())},Ne=()=>{var de,tt;const ft=(de=m.value)==null?void 0:de.input,Mt=b.value,Tn=(tt=A.value)==null?void 0:tt.$el;if(!(!Xr||!ft)){if(Tn){const Nn=Tn.querySelector(`.${l.e("suggestion-list")}`);Nn.style.minWidth=`${ft.offsetWidth}px`}if(Mt){const{offsetHeight:Nn}=Mt,We=O.value.length>0?`${Math.max(Nn,a)-2}px`:`${a}px`;ft.style.height=We,De()}}},Re=de=>{var tt;return(tt=w.value)==null?void 0:tt.getCheckedNodes(de)},gt=de=>{De(),n("expandChange",de)},Bt=de=>{if(!v.value)switch(de.code){case gn.enter:case gn.numpadEnter:me();break;case gn.down:me(!0),Yt(ze),de.preventDefault();break;case gn.esc:S.value===!0&&(de.preventDefault(),de.stopPropagation(),me(!1));break;case gn.tab:me(!1);break}},Lt=()=>{var de;(de=w.value)==null||de.clearCheckedNodes(),!S.value&&r.filterable&&an(),me(!1),n("clear")},an=()=>{const{value:de}=Z;_.value=de,M.value=de},Kt=de=>{var tt,ft;const{checked:Mt}=de;q.value?(tt=w.value)==null||tt.handleCheckChange(de,!Mt,!1):(!Mt&&((ft=w.value)==null||ft.handleCheckChange(de,!0,!1)),me(!1))},Ht=de=>{const tt=de.target,{code:ft}=de;switch(ft){case gn.up:case gn.down:{de.preventDefault();const Mt=ft===gn.up?-1:1;xS(d1e(tt,Mt,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case gn.enter:case gn.numpadEnter:tt.click();break}},pt=()=>{const de=O.value,tt=de[de.length-1];s=M.value?0:s+1,!(!tt||!s||r.collapseTags&&de.length>1)&&(tt.hitState?ue(tt):tt.hitState=!0)},Dt=Wl(()=>{const{value:de}=U;if(!de)return;const tt=r.beforeFilter(de);kv(tt)?tt.then(Fe).catch(()=>{}):tt!==!1?Fe():pe()},r.debounce),dt=(de,tt)=>{!S.value&&me(!0),!tt?.isComposing&&(de?Dt():pe())},it=de=>Number.parseFloat(qRe(u.cssVarName("input-height"),de).value)-2;return St(D,De),St([F,f,()=>r.collapseTags],Me),St(O,()=>{Yt(()=>Ne())}),St(z,async()=>{await Yt();const de=m.value.input;a=it(de)||a,Ne()}),St(Z,an,{immediate:!0}),qn(()=>{const de=m.value.input,tt=it(de);a=de.offsetHeight||tt,li(de,Ne)}),t({getCheckedNodes:Re,cascaderPanelRef:w,togglePopperVisible:me,contentRef:Ee,presentText:Z}),(de,tt)=>(L(),yt(C(hs),{ref_key:"tooltipRef",ref:g,visible:S.value,teleported:de.teleported,"popper-class":[C(l).e("dropdown"),de.popperClass],"popper-style":de.popperStyle,"popper-options":o,"fallback-placements":de.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:de.placement,transition:`${C(l).namespace.value}-zoom-in-top`,effect:de.effect,pure:"",persistent:de.persistent,onHide:pe},{default:rt(()=>[cn((L(),G("div",{ref_key:"wrapperRef",ref:H,class:oe(C(Pe)),style:rn(C(N)),onClick:()=>me(C(Y)?void 0:!0),onKeydown:Bt,onMouseenter:ft=>E.value=!0,onMouseleave:ft=>E.value=!1},[He(C(js),{ref_key:"inputRef",ref:m,modelValue:_.value,"onUpdate:modelValue":ft=>_.value=ft,placeholder:C(B),readonly:C(Y),disabled:C(f),"validate-event":!1,size:C(z),class:oe(C(he)),tabindex:C(q)&&de.filterable&&!C(f)?-1:void 0,onCompositionstart:C(h),onCompositionupdate:C(h),onCompositionend:C(h),onInput:dt},Hl({suffix:rt(()=>[C(te)?(L(),yt(C(Dn),{key:"clear",class:oe([C(u).e("icon"),"icon-circle-close"]),onClick:en(Lt,["stop"])},{default:rt(()=>[(L(),yt(mr(de.clearIcon)))]),_:1},8,["class","onClick"])):(L(),yt(C(Dn),{key:"arrow-down",class:oe(C(Ae)),onClick:en(ft=>me(),["stop"])},{default:rt(()=>[He(C(ed))]),_:1},8,["class","onClick"]))]),_:2},[de.$slots.prefix?{name:"prefix",fn:rt(()=>[ht(de.$slots,"prefix")])}:void 0]),1032,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),C(q)?(L(),G("div",{key:0,ref_key:"tagWrapper",ref:b,class:oe([C(l).e("tags"),C(l).is("validate",!!C(le))])},[ht(de.$slots,"tag",{data:k.value,deleteTag:ue},()=>[(L(!0),G(Rt,null,un(O.value,ft=>(L(),yt(C(Nh),{key:ft.key,type:de.tagType,size:C(j),effect:de.tagEffect,hit:ft.hitState,closable:ft.closable,"disable-transitions":"",onClose:Mt=>ue(ft)},{default:rt(()=>[ft.isCollapseTag===!1?(L(),G("span",{key:0},je(ft.text),1)):(L(),yt(C(hs),{key:1,ref_for:!0,ref_key:"tagTooltipRef",ref:y,disabled:S.value||!de.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":de.popperClass,"popper-style":de.popperStyle,effect:de.effect},{default:rt(()=>[x("span",null,je(ft.text),1)]),content:rt(()=>[He(C(Hc),{"max-height":de.maxCollapseTagsTooltipHeight},{default:rt(()=>[x("div",{class:oe(C(l).e("collapse-tags"))},[(L(!0),G(Rt,null,un(k.value.slice(de.maxCollapseTags),(Mt,Tn)=>(L(),G("div",{key:Tn,class:oe(C(l).e("collapse-tag"))},[(L(),yt(C(Nh),{key:Mt.key,class:"in-tooltip",type:de.tagType,size:C(j),effect:de.tagEffect,hit:Mt.hitState,closable:Mt.closable,"disable-transitions":"",onClose:Nn=>ue(Mt)},{default:rt(()=>[x("span",null,je(Mt.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:2},1032,["disabled","popper-class","popper-style","effect"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),de.filterable&&!C(f)?cn((L(),G("input",{key:0,"onUpdate:modelValue":ft=>M.value=ft,type:"text",class:oe(C(l).e("search-input")),placeholder:C(Z)?"":C(W),onInput:ft=>dt(M.value,ft),onClick:en(ft=>me(!0),["stop"]),onKeydown:$r(pt,["delete"]),onCompositionstart:C(h),onCompositionupdate:C(h),onCompositionend:C(h)},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[qr,M.value]]):xe("v-if",!0)],2)):xe("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[C(np),Q,C(Ee)]])]),content:rt(()=>[de.$slots.header?(L(),G("div",{key:0,class:oe(C(l).e("header")),onClick:en(()=>{},["stop"])},[ht(de.$slots,"header")],10,["onClick"])):xe("v-if",!0),cn(He(C(fye),{ref_key:"cascaderPanelRef",ref:w,modelValue:C(ve),"onUpdate:modelValue":ft=>Uo(ve)?ve.value=ft:null,options:de.options,props:r.props,border:!1,"render-label":de.$slots.default,onExpandChange:gt,onClose:ft=>de.$nextTick(()=>me(!1))},{empty:rt(()=>[ht(de.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[kr,!D.value]]),de.filterable?cn((L(),yt(C(Hc),{key:1,ref_key:"suggestionPanel",ref:A,tag:"ul",class:oe(C(l).e("suggestion-panel")),"view-class":C(l).e("suggestion-list"),onKeydown:Ht},{default:rt(()=>[R.value.length?(L(!0),G(Rt,{key:0},un(R.value,ft=>(L(),G("li",{key:ft.uid,class:oe([C(l).e("suggestion-item"),C(l).is("checked",ft.checked)]),tabindex:-1,onClick:Mt=>Kt(ft)},[ht(de.$slots,"suggestion-item",{item:ft},()=>[x("span",null,je(ft.text),1),ft.checked?(L(),yt(C(Dn),{key:0},{default:rt(()=>[He(C(B5))]),_:1})):xe("v-if",!0)])],10,["onClick"]))),128)):ht(de.$slots,"empty",{key:1},()=>[x("li",{class:oe(C(l).e("empty-text"))},je(C(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[kr,D.value]]):xe("v-if",!0),de.$slots.footer?(L(),G("div",{key:2,class:oe(C(l).e("footer")),onClick:en(()=>{},["stop"])},[ht(de.$slots,"footer")],10,["onClick"])):xe("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});var PHe=on(MHe,[["__file","cascader.vue"]]);const NHe=or(PHe),RHe=Jt({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),BHe={"update:checked":e=>Eo(e),[Pr]:e=>Eo(e)},LHe=nt({name:"ElCheckTag"}),FHe=nt({...LHe,props:RHe,emits:BHe,setup(e,{emit:t}){const n=e,r=Vt("check-tag"),o=ee(()=>n.disabled),i=ee(()=>[r.b(),r.is("checked",n.checked),r.is("disabled",o.value),r.m(n.type||"primary")]),a=()=>{if(o.value)return;const s=!n.checked;t(Pr,s),t("update:checked",s)};return(s,l)=>(L(),G("span",{class:oe(C(i)),onClick:a},[ht(s.$slots,"default")],2))}});var UHe=on(FHe,[["__file","check-tag.vue"]]);const zHe=or(UHe),$He=Jt({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:ct([Number,Object]),default:()=>fi({})},sm:{type:ct([Number,Object]),default:()=>fi({})},md:{type:ct([Number,Object]),default:()=>fi({})},lg:{type:ct([Number,Object]),default:()=>fi({})},xl:{type:ct([Number,Object]),default:()=>fi({})}}),pye=Symbol("rowContextKey"),jHe=nt({name:"ElCol"}),HHe=nt({...jHe,props:$He,setup(e){const t=e,{gutter:n}=dn(pye,{gutter:ee(()=>0)}),r=Vt("col"),o=ee(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),i=ee(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const d=t[u];$n(d)&&(u==="span"?a.push(r.b(`${t[u]}`)):d>0&&a.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{$n(t[u])?a.push(r.b(`${u}-${t[u]}`)):dr(t[u])&&Object.entries(t[u]).forEach(([d,c])=>{a.push(d!=="span"?r.b(`${u}-${d}-${c}`):r.b(`${u}-${c}`))})}),n.value&&a.push(r.is("guttered")),[r.b(),a]});return(a,s)=>(L(),yt(mr(a.tag),{class:oe(C(i)),style:rn(C(o))},{default:rt(()=>[ht(a.$slots,"default")]),_:3},8,["class","style"]))}});var WHe=on(HHe,[["__file","col.vue"]]);const VHe=or(WHe),zJ=e=>$n(e)||In(e)||Zt(e),qHe=Jt({accordion:Boolean,modelValue:{type:ct([Array,String,Number]),default:()=>fi([])},expandIconPosition:{type:ct([String]),default:"right"},beforeCollapse:{type:ct(Function)}}),GHe={[Qn]:zJ,[Pr]:zJ},hye=Symbol("collapseContextKey"),KHe="ElCollapse",YHe=(e,t)=>{const n=K(Ya(e.modelValue)),r=a=>{n.value=a;const s=e.accordion?n.value[0]:n.value;t(Qn,s),t(Pr,s)},o=a=>{if(e.accordion)r([n.value[0]===a?"":a]);else{const s=[...n.value],l=s.indexOf(a);l>-1?s.splice(l,1):s.push(a),r(s)}},i=async a=>{const{beforeCollapse:s}=e;if(!s){o(a);return}const l=s(a);[kv(l),Eo(l)].includes(!0)||na(KHe,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),kv(l)?l.then(d=>{d!==!1&&o(a)}).catch(d=>{}):l&&o(a)};return St(()=>e.modelValue,()=>n.value=Ya(e.modelValue),{deep:!0}),_r(hye,{activeNames:n,handleItemClick:i}),{activeNames:n,setActiveNames:r}},QHe=e=>{const t=Vt("collapse");return{rootKls:ee(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}},ZHe=nt({name:"ElCollapse"}),XHe=nt({...ZHe,props:qHe,emits:GHe,setup(e,{expose:t,emit:n}){const r=e,{activeNames:o,setActiveNames:i}=YHe(r,n),{rootKls:a}=QHe(r);return t({activeNames:o,setActiveNames:i}),(s,l)=>(L(),G("div",{class:oe(C(a))},[ht(s.$slots,"default")],2))}});var JHe=on(XHe,[["__file","collapse.vue"]]);const eWe=nt({name:"ElCollapseTransition"}),tWe=nt({...eWe,setup(e){const t=Vt("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},r={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,i)=>(L(),yt(Ki,vr({name:C(t).b()},$Te(r)),{default:rt(()=>[ht(o.$slots,"default")]),_:3},16,["name"]))}});var nWe=on(tWe,[["__file","collapse-transition.vue"]]);const fD=or(nWe),rWe=Jt({title:{type:String,default:""},name:{type:ct([String,Number]),default:void 0},icon:{type:wo,default:Da},disabled:Boolean}),oWe=e=>{const t=dn(hye),{namespace:n}=Vt("collapse"),r=K(!1),o=K(!1),i=TH(),a=ee(()=>i.current++),s=ee(()=>{var f;return(f=e.name)!=null?f:`${n.value}-id-${i.prefix}-${C(a)}`}),l=ee(()=>t?.activeNames.value.includes(C(s)));return{focusing:r,id:a,isActive:l,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:r.value=!0},50)},handleHeaderClick:f=>{if(e.disabled)return;const p=f.target;p?.closest("input, textarea, select")||(t?.handleItemClick(C(s)),r.value=!1,o.value=!0)},handleEnterClick:f=>{const p=f.target;p?.closest("input, textarea, select")||(f.preventDefault(),t?.handleItemClick(C(s)))}}},iWe=(e,{focusing:t,isActive:n,id:r})=>{const o=Vt("collapse"),i=ee(()=>[o.b("item"),o.is("active",C(n)),o.is("disabled",e.disabled)]),a=ee(()=>[o.be("item","header"),o.is("active",C(n)),{focusing:C(t)&&!e.disabled}]),s=ee(()=>[o.be("item","arrow"),o.is("active",C(n))]),l=ee(()=>[o.be("item","title")]),u=ee(()=>o.be("item","wrap")),d=ee(()=>o.be("item","content")),c=ee(()=>o.b(`content-${C(r)}`)),f=ee(()=>o.b(`head-${C(r)}`));return{itemTitleKls:l,arrowKls:s,headKls:a,rootKls:i,itemWrapperKls:u,itemContentKls:d,scopedContentId:c,scopedHeadId:f}},aWe=nt({name:"ElCollapseItem"}),sWe=nt({...aWe,props:rWe,setup(e,{expose:t}){const n=e,{focusing:r,id:o,isActive:i,handleFocus:a,handleHeaderClick:s,handleEnterClick:l}=oWe(n),{arrowKls:u,headKls:d,rootKls:c,itemTitleKls:f,itemWrapperKls:p,itemContentKls:v,scopedContentId:h,scopedHeadId:g}=iWe(n,{focusing:r,isActive:i,id:o});return t({isActive:i}),(y,m)=>(L(),G("div",{class:oe(C(c))},[x("div",{id:C(g),class:oe(C(d)),"aria-expanded":C(i),"aria-controls":C(h),"aria-describedby":C(h),tabindex:y.disabled?-1:0,role:"button",onClick:C(s),onKeydown:$r(en(C(l),["stop"]),["space","enter"]),onFocus:C(a),onBlur:b=>r.value=!1},[x("span",{class:oe(C(f))},[ht(y.$slots,"title",{isActive:C(i)},()=>[bn(je(y.title),1)])],2),ht(y.$slots,"icon",{isActive:C(i)},()=>[He(C(Dn),{class:oe(C(u))},{default:rt(()=>[(L(),yt(mr(y.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),He(C(fD),null,{default:rt(()=>[cn(x("div",{id:C(h),role:"region",class:oe(C(p)),"aria-hidden":!C(i),"aria-labelledby":C(g)},[x("div",{class:oe(C(v))},[ht(y.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[kr,C(i)]])]),_:3})],2))}});var gye=on(sWe,[["__file","collapse-item.vue"]]);const lWe=or(JHe,{CollapseItem:gye}),uWe=vi(gye),cWe=Jt({color:{type:ct(Object),required:!0},vertical:Boolean,disabled:Boolean});let CI=!1;function eA(e,t){if(!Xr)return;const n=function(i){var a;(a=t.drag)==null||a.call(t,i)},r=function(i){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,CI=!1,(a=t.end)==null||a.call(t,i)},o=function(i){var a;CI||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),CI=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const $J=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},IL=(e,t)=>Math.abs($J(e)-$J(t)),jH=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},dWe=e=>{const t=br(),{t:n}=Gr(),r=jo(),o=jo(),i=ee(()=>e.color.get("alpha")),a=ee(()=>n("el.colorpicker.alphaLabel"));function s(c){var f;if(e.disabled)return;c.target!==r.value&&l(c),(f=r.value)==null||f.focus()}function l(c){if(!o.value||!r.value||e.disabled)return;const p=t.vnode.el.getBoundingClientRect(),{clientX:v,clientY:h}=jH(c);if(e.vertical){let g=h-p.top;g=Math.max(r.value.offsetHeight/2,g),g=Math.min(g,p.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((g-r.value.offsetHeight/2)/(p.height-r.value.offsetHeight)*100))}else{let g=v-p.left;g=Math.max(r.value.offsetWidth/2,g),g=Math.min(g,p.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((g-r.value.offsetWidth/2)/(p.width-r.value.offsetWidth)*100))}}function u(c){if(e.disabled)return;const{code:f,shiftKey:p}=c,v=p?10:1;switch(f){case gn.left:case gn.down:c.preventDefault(),c.stopPropagation(),d(-v);break;case gn.right:case gn.up:c.preventDefault(),c.stopPropagation(),d(v);break}}function d(c){let f=i.value+c;f=f<0?0:f>100?100:f,e.color.set("alpha",f)}return{thumb:r,bar:o,alpha:i,alphaLabel:a,handleDrag:l,handleClick:s,handleKeydown:u}},fWe=(e,{bar:t,thumb:n,handleDrag:r})=>{const o=br(),i=Vt("color-alpha-slider"),a=K(0),s=K(0),l=K();function u(){if(!n.value||e.vertical)return 0;const m=o.vnode.el,b=e.color.get("alpha");return m?Math.round(b*(m.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const m=o.vnode.el;if(!e.vertical)return 0;const b=e.color.get("alpha");return m?Math.round(b*(m.offsetHeight-n.value.offsetHeight/2)/100):0}function c(){if(e.color&&e.color.value){const{r:m,g:b,b:w}=e.color.toRgb();return`linear-gradient(to right, rgba(${m}, ${b}, ${w}, 0) 0%, rgba(${m}, ${b}, ${w}, 1) 100%)`}return""}function f(){a.value=u(),s.value=d(),l.value=c()}qn(()=>{if(!t.value||!n.value)return;const m={drag:b=>{r(b)},end:b=>{r(b)}};eA(t.value,m),eA(n.value,m),f()}),St(()=>e.color.get("alpha"),()=>f()),St(()=>e.color.value,()=>f());const p=ee(()=>[i.b(),i.is("vertical",e.vertical),i.is("disabled",e.disabled)]),v=ee(()=>i.e("bar")),h=ee(()=>i.e("thumb")),g=ee(()=>({background:l.value})),y=ee(()=>({left:_i(a.value),top:_i(s.value)}));return{rootKls:p,barKls:v,barStyle:g,thumbKls:h,thumbStyle:y,update:f}},pWe="ElColorAlphaSlider",hWe=nt({name:pWe}),gWe=nt({...hWe,props:cWe,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:o,bar:i,thumb:a,handleDrag:s,handleClick:l,handleKeydown:u}=dWe(n),{rootKls:d,barKls:c,barStyle:f,thumbKls:p,thumbStyle:v,update:h}=fWe(n,{bar:i,thumb:a,handleDrag:s});return t({update:h,bar:i,thumb:a}),(g,y)=>(L(),G("div",{class:oe(C(d))},[x("div",{ref_key:"bar",ref:i,class:oe(C(c)),style:rn(C(f)),onClick:C(l)},null,14,["onClick"]),x("div",{ref_key:"thumb",ref:a,class:oe(C(p)),style:rn(C(v)),"aria-label":C(o),"aria-valuenow":C(r),"aria-orientation":g.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:C(u)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var vWe=on(gWe,[["__file","alpha-slider.vue"]]);const mWe=nt({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean,disabled:Boolean},setup(e){const t=Vt("color-hue-slider"),n=br(),r=K(),o=K(),i=K(0),a=K(0),s=ee(()=>e.color.get("hue"));St(()=>s.value,()=>{f()});function l(p){if(e.disabled)return;p.target!==r.value&&u(p)}function u(p){if(!o.value||!r.value||e.disabled)return;const h=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:y}=jH(p);let m;if(e.vertical){let b=y-h.top;b=Math.min(b,h.height-r.value.offsetHeight/2),b=Math.max(r.value.offsetHeight/2,b),m=Math.round((b-r.value.offsetHeight/2)/(h.height-r.value.offsetHeight)*360)}else{let b=g-h.left;b=Math.min(b,h.width-r.value.offsetWidth/2),b=Math.max(r.value.offsetWidth/2,b),m=Math.round((b-r.value.offsetWidth/2)/(h.width-r.value.offsetWidth)*360)}e.color.set("hue",m)}function d(){if(!r.value)return 0;const p=n.vnode.el;if(e.vertical)return 0;const v=e.color.get("hue");return p?Math.round(v*(p.offsetWidth-r.value.offsetWidth/2)/360):0}function c(){if(!r.value)return 0;const p=n.vnode.el;if(!e.vertical)return 0;const v=e.color.get("hue");return p?Math.round(v*(p.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){i.value=d(),a.value=c()}return qn(()=>{if(!o.value||!r.value||e.disabled)return;const p={drag:v=>{u(v)},end:v=>{u(v)}};eA(o.value,p),eA(r.value,p),f()}),{bar:o,thumb:r,thumbLeft:i,thumbTop:a,hueValue:s,handleClick:l,update:f,ns:t}}});function yWe(e,t,n,r,o,i){return L(),G("div",{class:oe([e.ns.b(),e.ns.is("vertical",e.vertical)])},[x("div",{ref:"bar",class:oe(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),x("div",{ref:"thumb",class:oe(e.ns.e("thumb")),style:rn({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var bWe=on(mWe,[["render",yWe],["__file","hue-slider.vue"]]);const vye=Jt({modelValue:{type:ct(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:ct(Array)}}),wWe={[Qn]:e=>In(e)||ea(e)},mye=Symbol("colorCommonPickerKey"),yye=Symbol("colorPickerPanelContextKey");class xE{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new $1,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const n in t)no(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)no(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const n=new $1(t);if(this._isValid=n.isValid,n.isValid){const{h:r,s:o,v:i,a}=n.toHsv();this._hue=r,this._saturation=o*100,this._value=i*100,this._alpha=a*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}compare(t){const n=new $1({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(n)}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:o,format:i,enableAlpha:a}=this;let s=i||(a?"rgb":"hex");i==="hex"&&a&&(s="hex8"),this._tiny=new $1({h:t,s:n/100,v:r/100,a:o/100}),this.value=this._isValid?this._tiny.toString(s):""}}const AWe=nt({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean},setup(e){const t=Vt("color-predefine"),{currentColor:n}=dn(yye),r=K(i(e.colors,e.color));St(()=>n.value,a=>{const s=new xE({value:a});r.value.forEach(l=>{l.selected=s.compare(l)})}),Es(()=>{r.value=i(e.colors,e.color)});function o(a){e.disabled||e.color.fromString(e.colors[a])}function i(a,s){return a.map(l=>{const u=new xE({value:l});return u.selected=u.compare(s),u})}return{rgbaColors:r,handleSelect:o,ns:t}}});function CWe(e,t,n,r,o,i){return L(),G("div",{class:oe(e.ns.b())},[x("div",{class:oe(e.ns.e("colors"))},[(L(!0),G(Rt,null,un(e.rgbaColors,(a,s)=>(L(),G("div",{key:e.colors[s],class:oe([e.ns.e("color-selector"),e.ns.is("alpha",a.get("alpha")<100),{selected:a.selected}]),onClick:l=>e.handleSelect(s)},[x("div",{style:rn({backgroundColor:a.value})},null,4)],10,["onClick"]))),128))],2)],2)}var xWe=on(AWe,[["render",CWe],["__file","predefine.vue"]]);const SWe=nt({name:"ElSlPanel",props:{color:{type:Object,required:!0},disabled:Boolean},setup(e){const t=Vt("color-svpanel"),n=br(),r=K(0),o=K(0),i=K("hsl(0, 100%, 50%)"),a=ee(()=>{const u=e.color.get("hue"),d=e.color.get("value");return{hue:u,value:d}});function s(){const u=e.color.get("saturation"),d=e.color.get("value"),c=n.vnode.el,{clientWidth:f,clientHeight:p}=c;o.value=u*f/100,r.value=(100-d)*p/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){if(e.disabled)return;const c=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:p}=jH(u);let v=f-c.left,h=p-c.top;v=Math.max(0,v),v=Math.min(v,c.width),h=Math.max(0,h),h=Math.min(h,c.height),o.value=v,r.value=h,e.color.set({saturation:v/c.width*100,value:100-h/c.height*100})}return St(()=>a.value,()=>{s()}),qn(()=>{eA(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:o,background:i,colorValue:a,handleDrag:l,update:s,ns:t}}});function EWe(e,t,n,r,o,i){return L(),G("div",{class:oe(e.ns.b()),style:rn({backgroundColor:e.background})},[x("div",{class:oe(e.ns.e("white"))},null,2),x("div",{class:oe(e.ns.e("black"))},null,2),x("div",{class:oe(e.ns.e("cursor")),style:rn({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[x("div")],6)],6)}var kWe=on(SWe,[["render",EWe],["__file","sv-panel.vue"]]);const bye=(e,t)=>{const n=Wr(new xE({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return St(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(Qn,n.value)}),{color:n}},TWe=nt({name:"ElColorPickerPanel"}),_We=nt({...TWe,props:vye,emits:wWe,setup(e,{expose:t,emit:n}){const r=e,o=Vt("color-picker-panel"),i=Va(),a=K(),s=K(),l=K(),u=K(),d=K(""),{color:c}=dn(mye,()=>bye(r,n),!0);function f(){c.fromString(d.value),c.value!==d.value&&(d.value=c.value)}return qn(()=>{r.modelValue&&(d.value=c.value),Yt(()=>{var p,v,h;(p=a.value)==null||p.update(),(v=s.value)==null||v.update(),(h=l.value)==null||h.update()})}),St(()=>r.modelValue,p=>{p&&p!==c.value&&c.fromString(p)}),St(()=>c.value,p=>{n(Qn,p),d.value=p}),_r(yye,{currentColor:ee(()=>c.value)}),t({color:c,inputRef:u}),(p,v)=>(L(),G("div",{class:oe([C(o).b(),C(o).is("disabled",C(i)),C(o).is("border",p.border)])},[x("div",{class:oe(C(o).e("wrapper"))},[He(bWe,{ref_key:"hue",ref:a,class:"hue-slider",color:C(c),vertical:"",disabled:C(i)},null,8,["color","disabled"]),He(kWe,{ref_key:"sv",ref:s,color:C(c),disabled:C(i)},null,8,["color","disabled"])],2),p.showAlpha?(L(),yt(vWe,{key:0,ref_key:"alpha",ref:l,color:C(c),disabled:C(i)},null,8,["color","disabled"])):xe("v-if",!0),p.predefine?(L(),yt(xWe,{key:1,ref:"predefine","enable-alpha":p.showAlpha,color:C(c),colors:p.predefine,disabled:C(i)},null,8,["enable-alpha","color","colors","disabled"])):xe("v-if",!0),x("div",{class:oe(C(o).e("footer"))},[He(C(js),{ref_key:"inputRef",ref:u,modelValue:d.value,"onUpdate:modelValue":h=>d.value=h,"validate-event":!1,size:"small",disabled:C(i),onChange:f},null,8,["modelValue","onUpdate:modelValue","disabled"]),ht(p.$slots,"footer")],2)],2))}});var DWe=on(_We,[["__file","color-picker-panel.vue"]]);const wye=or(DWe),IWe=Jt({persistent:{type:Boolean,default:!0},modelValue:{type:ct(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Aa,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:oi.teleported,appendTo:oi.appendTo,predefine:{type:ct(Array)},validateEvent:{type:Boolean,default:!0},...lm,..._s(["ariaLabel"])}),OWe={[Qn]:e=>In(e)||ea(e),[Pr]:e=>In(e)||ea(e),activeChange:e=>In(e)||ea(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},MWe=nt({name:"ElColorPicker"}),PWe=nt({...MWe,props:IWe,emits:OWe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Gr(),i=Vt("color"),{formItem:a}=Ds(),s=ha(),l=Va(),{valueOnClear:u,isEmptyValue:d}=R5(r,null),c=bye(r,n),{inputId:f,isLabeledByFormItem:p}=fc(r,{formItemContext:a}),v=K(),h=K(),g=K(),y=K(!1),m=K(!1);let b=!0;const{isFocused:w,handleFocus:A,handleBlur:S}=Ap(h,{disabled:l,beforeBlur(le){var ve;return(ve=v.value)==null?void 0:ve.isFocusInsideContent(le)},afterBlur(){W(!1),q()}}),E=zRe(()=>{var le,ve;return(ve=(le=g.value)==null?void 0:le.color)!=null?ve:c.color}),D=ee(()=>uu(r,Object.keys(vye))),_=ee(()=>!r.modelValue&&!m.value?"transparent":N(E,r.showAlpha)),M=ee(()=>!r.modelValue&&!m.value?"":E.value),O=ee(()=>p.value?void 0:r.ariaLabel||o("el.colorpicker.defaultLabel")),k=ee(()=>p.value?a?.labelId:void 0),R=ee(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value),i.is("focused",w.value)]);function N(le,ve){const{r:Pe,g:Ae,b:he,a:Ee}=le.toRgb();return ve?`rgba(${Pe}, ${Ae}, ${he}, ${Ee})`:`rgb(${Pe}, ${Ae}, ${he})`}function W(le){y.value=le}const B=Wl(W,100,{leading:!0});function z(){l.value||W(!0)}function j(){B(!1),q()}function q(){Yt(()=>{r.modelValue?E.fromString(r.modelValue):(E.value="",Yt(()=>{m.value=!1}))})}function Y(){l.value||(y.value&&q(),B(!y.value))}function U(){const le=d(E.value)?u.value:E.value;n(Qn,le),n(Pr,le),r.validateEvent&&a?.validate("change").catch(ve=>void 0),B(!1),Yt(()=>{const ve=new xE({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});E.compare(ve)||q()})}function F(){B(!1),n(Qn,u.value),n(Pr,u.value),r.modelValue!==u.value&&r.validateEvent&&a?.validate("change").catch(le=>void 0),q()}function H(){y.value&&(j(),w.value&&te())}function re(le){le.preventDefault(),le.stopPropagation(),W(!1),q()}function X(le){var ve,Pe;switch(le.code){case gn.enter:case gn.numpadEnter:case gn.space:le.preventDefault(),le.stopPropagation(),z(),(Pe=(ve=g?.value)==null?void 0:ve.inputRef)==null||Pe.focus();break;case gn.esc:re(le);break}}function te(){h.value.focus()}function Z(){h.value.blur()}return St(()=>M.value,le=>{b&&n("activeChange",le),b=!0}),St(()=>E.value,()=>{!r.modelValue&&!m.value&&(m.value=!0)}),St(()=>r.modelValue,le=>{le?le&&le!==E.value&&(b=!1,E.fromString(le)):m.value=!1}),_r(mye,c),t({color:E,show:z,hide:j,focus:te,blur:Z}),(le,ve)=>(L(),yt(C(hs),{ref_key:"popper",ref:v,visible:y.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[C(i).be("picker","panel"),le.popperClass],"stop-popper-mouse-event":!1,pure:"",effect:"light",trigger:"click",teleported:le.teleported,transition:`${C(i).namespace.value}-zoom-in-top`,persistent:le.persistent,"append-to":le.appendTo,onHide:Pe=>W(!1)},{content:rt(()=>[cn((L(),yt(C(wye),vr({ref_key:"pickerPanelRef",ref:g},C(D),{border:!1,onKeydown:$r(re,["esc"])}),{footer:rt(()=>[x("div",null,[He(C(Xa),{class:oe(C(i).be("footer","link-btn")),text:"",size:"small",onClick:F},{default:rt(()=>[bn(je(C(o)("el.colorpicker.clear")),1)]),_:1},8,["class"]),He(C(Xa),{plain:"",size:"small",class:oe(C(i).be("footer","btn")),onClick:U},{default:rt(()=>[bn(je(C(o)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16,["onKeydown"])),[[C(np),H,h.value]])]),default:rt(()=>[x("div",vr({id:C(f),ref_key:"triggerRef",ref:h},le.$attrs,{class:C(R),role:"button","aria-label":C(O),"aria-labelledby":C(k),"aria-description":C(o)("el.colorpicker.description",{color:le.modelValue||""}),"aria-disabled":C(l),tabindex:C(l)?void 0:le.tabindex,onKeydown:X,onFocus:C(A),onBlur:C(S)}),[x("div",{class:oe(C(i).be("picker","trigger")),onClick:Y},[x("span",{class:oe([C(i).be("picker","color"),C(i).is("alpha",le.showAlpha)])},[x("span",{class:oe(C(i).be("picker","color-inner")),style:rn({backgroundColor:C(_)})},[cn(He(C(Dn),{class:oe([C(i).be("picker","icon"),C(i).is("icon-arrow-down")])},{default:rt(()=>[He(C(ed))]),_:1},8,["class"]),[[kr,le.modelValue||m.value]]),cn(He(C(Dn),{class:oe([C(i).be("picker","empty"),C(i).is("icon-close")])},{default:rt(()=>[He(C(vu))]),_:1},8,["class"]),[[kr,!le.modelValue&&!m.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","persistent","append-to","onHide"]))}});var NWe=on(PWe,[["__file","color-picker.vue"]]);const RWe=or(NWe),BWe=Jt({a11y:{type:Boolean,default:!0},locale:{type:ct(Object)},size:Aa,button:{type:ct(Object)},card:{type:ct(Object)},dialog:{type:ct(Object)},link:{type:ct(Object)},experimentalFeatures:{type:ct(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ct(Object)},zIndex:Number,namespace:{type:String,default:"el"},...lm}),Bs={placement:"top"},LWe=nt({name:"ElConfigProvider",props:BWe,setup(e,{slots:t}){const n=wH(e);return St(()=>e.message,r=>{var o,i;Object.assign(Bs,(i=(o=n?.value)==null?void 0:o.message)!=null?i:{},r??{})},{immediate:!0,deep:!0}),()=>ht(t,"default",{config:n?.value})}}),FWe=or(LWe),UWe=nt({name:"ElContainer"}),zWe=nt({...UWe,props:{direction:{type:String}},setup(e){const t=e,n=ga(),r=Vt("container"),o=ee(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(a=>{const s=a.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,a)=>(L(),G("section",{class:oe([C(r).b(),C(r).is("vertical",C(o))])},[ht(i.$slots,"default")],2))}});var $We=on(zWe,[["__file","container.vue"]]);const jWe=nt({name:"ElAside"}),HWe=nt({...jWe,props:{width:{type:String,default:null}},setup(e){const t=e,n=Vt("aside"),r=ee(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,i)=>(L(),G("aside",{class:oe(C(n).b()),style:rn(C(r))},[ht(o.$slots,"default")],6))}});var Aye=on(HWe,[["__file","aside.vue"]]);const WWe=nt({name:"ElFooter"}),VWe=nt({...WWe,props:{height:{type:String,default:null}},setup(e){const t=e,n=Vt("footer"),r=ee(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(L(),G("footer",{class:oe(C(n).b()),style:rn(C(r))},[ht(o.$slots,"default")],6))}});var Cye=on(VWe,[["__file","footer.vue"]]);const qWe=nt({name:"ElHeader"}),GWe=nt({...qWe,props:{height:{type:String,default:null}},setup(e){const t=e,n=Vt("header"),r=ee(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,i)=>(L(),G("header",{class:oe(C(n).b()),style:rn(C(r))},[ht(o.$slots,"default")],6))}});var xye=on(GWe,[["__file","header.vue"]]);const KWe=nt({name:"ElMain"}),YWe=nt({...KWe,setup(e){const t=Vt("main");return(n,r)=>(L(),G("main",{class:oe(C(t).b())},[ht(n.$slots,"default")],2))}});var Sye=on(YWe,[["__file","main.vue"]]);const QWe=or($We,{Aside:Aye,Footer:Cye,Header:xye,Main:Sye}),ZWe=vi(Aye),XWe=vi(Cye),JWe=vi(xye),eVe=vi(Sye);var _S={exports:{}},tVe=_S.exports,jJ;function nVe(){return jJ||(jJ=1,(function(e,t){(function(n,r){e.exports=r()})(tVe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(y){this[g]=+y}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var m=y.match(/([+-]|\d\d)/g),b=60*m[1]+(+m[2]||0);return b===0?0:m[0]==="+"?-b:b})(g)}],f=function(g){var y=l[g];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(g,y){var m,b=l.meridiem;if(b){for(var w=1;w<=24;w+=1)if(g.indexOf(b(w,0,y))>-1){m=w>12;break}}else m=g===(y?"pm":"PM");return m},v={A:[s,function(g){this.afternoon=p(g,!1)}],a:[s,function(g){this.afternoon=p(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[s,function(g){var y=l.ordinal,m=g.match(/\d+/);if(this.day=m[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[s,function(g){var y=f("months"),m=(f("monthsShort")||y.map((function(b){return b.slice(0,3)}))).indexOf(g)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(g){var y=f("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function h(g){var y,m;y=g,m=l&&l.formats;for(var b=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(M,O,k){var R=k&&k.toUpperCase();return O||m[k]||n[k]||m[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,W,B){return W||B.slice(1)}))}))).match(r),w=b.length,A=0;A<w;A+=1){var S=b[A],E=v[S],D=E&&E[0],_=E&&E[1];b[A]=_?{regex:D,parser:_}:S.replace(/^\[|\]$/g,"")}return function(M){for(var O={},k=0,R=0;k<w;k+=1){var N=b[k];if(typeof N=="string")R+=N.length;else{var W=N.regex,B=N.parser,z=M.slice(R),j=W.exec(z)[0];B.call(O,j),M=M.replace(j,"")}}return(function(q){var Y=q.afternoon;if(Y!==void 0){var U=q.hours;Y?U<12&&(q.hours+=12):U===12&&(q.hours=0),delete q.afternoon}})(O),O}}return function(g,y,m){m.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var b=y.prototype,w=b.parse;b.parse=function(A){var S=A.date,E=A.utc,D=A.args;this.$u=E;var _=D[1];if(typeof _=="string"){var M=D[2]===!0,O=D[3]===!0,k=M||O,R=D[2];O&&(R=D[2]),l=this.$locale(),!M&&R&&(l=m.Ls[R]),this.$d=(function(z,j,q,Y){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*z);var U=h(j)(z),F=U.year,H=U.month,re=U.day,X=U.hours,te=U.minutes,Z=U.seconds,le=U.milliseconds,ve=U.zone,Pe=U.week,Ae=new Date,he=re||(F||H?1:Ae.getDate()),Ee=F||Ae.getFullYear(),Q=0;F&&!H||(Q=H>0?H-1:Ae.getMonth());var me,De=X||0,pe=te||0,ie=Z||0,ue=le||0;return ve?new Date(Date.UTC(Ee,Q,he,De,pe,ie,ue+60*ve.offset*1e3)):q?new Date(Date.UTC(Ee,Q,he,De,pe,ie,ue)):(me=new Date(Ee,Q,he,De,pe,ie,ue),Pe&&(me=Y(me).week(Pe).toDate()),me)}catch{return new Date("")}})(S,_,E,m),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),k&&S!=this.format(_)&&(this.$d=new Date("")),l={}}else if(_ instanceof Array)for(var N=_.length,W=1;W<=N;W+=1){D[1]=_[W-1];var B=m.apply(this,D);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}W===N&&(this.$d=new Date(""))}else w.call(this,A)}}}))})(_S)),_S.exports}var rVe=nVe();const HH=xu(rVe),HJ=["hours","minutes","seconds"],Wc="EP_PICKER_BASE",WH="ElPopperOptions",Eye=Symbol("commonPickerContextKey"),Uy="HH:mm:ss",ph="YYYY-MM-DD",oVe={date:ph,dates:ph,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${ph} ${Uy}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:ph,datetimerange:`${ph} ${Uy}`},kye=(e,t)=>{const{lang:n}=Gr(),r=K(!1),o=K(!1),i=K(null),a=ee(()=>{const{modelValue:v}=e;return!v||Zt(v)&&!v.filter(Boolean).length}),s=v=>{if(!K1e(e.modelValue,v)){let h;Zt(v)?h=v.map(y=>IJ(y,e.valueFormat,n.value)):v&&(h=IJ(v,e.valueFormat,n.value)),t(Qn,v&&h,n.value)}},l=ee(()=>{var v;let h;if(a.value?u.value.getDefaultValue&&(h=u.value.getDefaultValue()):Zt(e.modelValue)?h=e.modelValue.map(g=>DJ(g,e.valueFormat,n.value)):h=DJ((v=e.modelValue)!=null?v:"",e.valueFormat,n.value),u.value.getRangeAvailableTime){const g=u.value.getRangeAvailableTime(h);fa(g,h)||(h=g,a.value||s(kS(h)))}return Zt(h)&&h.some(g=>!g)&&(h=[]),h}),u=K({});return{parsedValue:l,pickerActualVisible:o,pickerOptions:u,pickerVisible:r,userInput:i,valueIsEmpty:a,emitInput:s,onCalendarChange:v=>{t("calendar-change",v)},onPanelChange:(v,h,g)=>{t("panel-change",v,h,g)},onPick:(v="",h=!1)=>{r.value=h;let g;Zt(v)?g=v.map(y=>y.toDate()):g=v&&v.toDate(),i.value=null,s(g)},onSetPickerOption:v=>{u.value[v[0]]=v[1],u.value.panelReady=!0}}},VH=Jt({disabledHours:{type:ct(Function)},disabledMinutes:{type:ct(Function)},disabledSeconds:{type:ct(Function)}}),Tye=Jt({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),qH=Jt({id:{type:ct([Array,String])},name:{type:ct([Array,String])},popperClass:oi.popperClass,popperStyle:oi.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ct([String,Object]),default:tf},editable:{type:Boolean,default:!0},prefixIcon:{type:ct([String,Object]),default:""},size:Aa,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:ct(Object),default:()=>({})},modelValue:{type:ct([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ct([Date,Array])},defaultTime:{type:ct([Date,Array])},isRange:Boolean,...VH,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:ct([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:ct(String),values:Cp,default:"bottom"},fallbackPlacements:{type:ct(Array),default:["bottom","top","right","left"]},...lm,..._s(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),iVe=Jt({id:{type:ct(Array)},name:{type:ct(Array)},modelValue:{type:ct([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),aVe=nt({name:"PickerRangeTrigger",inheritAttrs:!1}),sVe=nt({...aVe,props:iVe,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const r=e,o=aD(),i=Vt("date"),a=Vt("range"),s=K(),l=K(),{wrapperRef:u,isFocused:d}=Ap(s,{disabled:ee(()=>r.disabled)}),c=A=>{n("click",A)},f=A=>{n("mouseenter",A)},p=A=>{n("mouseleave",A)},v=A=>{n("touchstart",A)},h=A=>{n("startInput",A)},g=A=>{n("endInput",A)},y=A=>{n("startChange",A)},m=A=>{n("endChange",A)};return t({focus:()=>{var A;(A=s.value)==null||A.focus()},blur:()=>{var A,S;(A=s.value)==null||A.blur(),(S=l.value)==null||S.blur()}}),(A,S)=>(L(),G("div",{ref_key:"wrapperRef",ref:u,class:oe([C(i).is("active",C(d)),A.$attrs.class]),style:rn(A.$attrs.style),onClick:c,onMouseenter:f,onMouseleave:p,onTouchstartPassive:v},[ht(A.$slots,"prefix"),x("input",vr(C(o),{id:A.id&&A.id[0],ref_key:"inputRef",ref:s,name:A.name&&A.name[0],placeholder:A.startPlaceholder,value:A.modelValue&&A.modelValue[0],class:C(a).b("input"),disabled:A.disabled,onInput:h,onChange:y}),null,16,["id","name","placeholder","value","disabled"]),ht(A.$slots,"range-separator"),x("input",vr(C(o),{id:A.id&&A.id[1],ref_key:"endInputRef",ref:l,name:A.name&&A.name[1],placeholder:A.endPlaceholder,value:A.modelValue&&A.modelValue[1],class:C(a).b("input"),disabled:A.disabled,onInput:g,onChange:m}),null,16,["id","name","placeholder","value","disabled"]),ht(A.$slots,"suffix")],38))}});var lVe=on(sVe,[["__file","picker-range-trigger.vue"]]);const uVe=nt({name:"Picker"}),cVe=nt({...uVe,props:qH,emits:[Qn,Pr,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,o=yp(),i=Vt("date"),a=Vt("input"),s=Vt("range"),{formItem:l}=Ds(),u=dn(WH,{}),{valueOnClear:d}=R5(r,null),c=K(),f=K(),p=K(null);let v=!1;const h=Va(),g=kye(r,n),{parsedValue:y,pickerActualVisible:m,userInput:b,pickerVisible:w,pickerOptions:A,valueIsEmpty:S,emitInput:E,onPick:D,onSetPickerOption:_,onCalendarChange:M,onPanelChange:O}=g,{isFocused:k,handleFocus:R,handleBlur:N}=Ap(f,{disabled:h,beforeFocus(){return r.readonly},afterFocus(){w.value=!0},beforeBlur(de){var tt;return!v&&((tt=c.value)==null?void 0:tt.isFocusInsideContent(de))},afterBlur(){Ne(),w.value=!1,v=!1,r.validateEvent&&l?.validate("blur").catch(de=>void 0)}}),W=K(!1),B=ee(()=>[i.b("editor"),i.bm("editor",r.type),a.e("wrapper"),i.is("disabled",h.value),i.is("active",w.value),s.b("editor"),Me?s.bm("editor",Me.value):"",o.class]),z=ee(()=>[a.e("icon"),s.e("close-icon"),Q.value?"":s.e("close-icon--hidden")]);St(w,de=>{de?Yt(()=>{de&&(p.value=r.modelValue)}):(b.value=null,Yt(()=>{j(r.modelValue)}))});const j=(de,tt)=>{(tt||!K1e(de,p.value))&&(n(Pr,de),tt&&(p.value=de),r.validateEvent&&l?.validate("change").catch(ft=>void 0))},q=de=>{n("keydown",de)},Y=ee(()=>f.value?Array.from(f.value.$el.querySelectorAll("input")):[]),U=(de,tt,ft)=>{const Mt=Y.value;Mt.length&&(!ft||ft==="min"?(Mt[0].setSelectionRange(de,tt),Mt[0].focus()):ft==="max"&&(Mt[1].setSelectionRange(de,tt),Mt[1].focus()))},F=()=>{m.value=!0},H=()=>{n("visible-change",!0)},re=()=>{m.value=!1,w.value=!1,n("visible-change",!1)},X=()=>{w.value=!0},te=()=>{w.value=!1},Z=ee(()=>{if(!A.value.panelReady)return"";const de=gt(y.value);return Zt(b.value)?[b.value[0]||de&&de[0]||"",b.value[1]||de&&de[1]||""]:b.value!==null?b.value:!ve.value&&S.value||!w.value&&S.value?"":de?Pe.value||Ae.value||he.value?de.join(", "):de:""}),le=ee(()=>r.type.includes("time")),ve=ee(()=>r.type.startsWith("time")),Pe=ee(()=>r.type==="dates"),Ae=ee(()=>r.type==="months"),he=ee(()=>r.type==="years"),Ee=ee(()=>r.prefixIcon||(le.value?n1e:zBe)),Q=ee(()=>r.clearable&&!h.value&&!r.readonly&&!S.value&&(W.value||k.value)),me=de=>{r.readonly||h.value||(Q.value&&(de.stopPropagation(),A.value.handleClear?A.value.handleClear():E(d.value),j(d.value,!0),re()),n("clear"))},De=async de=>{var tt;r.readonly||h.value||(((tt=de.target)==null?void 0:tt.tagName)!=="INPUT"||k.value)&&(w.value=!0)},pe=()=>{r.readonly||h.value||!S.value&&r.clearable&&(W.value=!0)},ie=()=>{W.value=!1},ue=de=>{var tt;r.readonly||h.value||(((tt=de.touches[0].target)==null?void 0:tt.tagName)!=="INPUT"||k.value)&&(w.value=!0)},Be=ee(()=>r.type.includes("range")),Me=ha(),Fe=ee(()=>{var de,tt;return(tt=(de=C(c))==null?void 0:de.popperRef)==null?void 0:tt.contentRef}),ze=yH(f,de=>{const tt=C(Fe),ft=Ta(f);tt&&(de.target===tt||de.composedPath().includes(tt))||de.target===ft||ft&&de.composedPath().includes(ft)||(w.value=!1)});Jr(()=>{ze?.()});const Ne=()=>{if(b.value){const de=Re(Z.value);de&&Bt(de)&&(E(kS(de)),b.value=null)}b.value===""&&(E(d.value),j(d.value,!0),b.value=null)},Re=de=>de?A.value.parseUserInput(de):null,gt=de=>de?A.value.formatToString(de):null,Bt=de=>A.value.isValidValue(de),Lt=async de=>{if(r.readonly||h.value)return;const{code:tt}=de;if(q(de),tt===gn.esc){w.value===!0&&(w.value=!1,de.preventDefault(),de.stopPropagation());return}if(tt===gn.down&&(A.value.handleFocusPicker&&(de.preventDefault(),de.stopPropagation()),w.value===!1&&(w.value=!0,await Yt()),A.value.handleFocusPicker)){A.value.handleFocusPicker();return}if(tt===gn.tab){v=!0;return}if(tt===gn.enter||tt===gn.numpadEnter){(b.value===null||b.value===""||Bt(Re(Z.value)))&&(Ne(),w.value=!1),de.stopPropagation();return}if(b.value){de.stopPropagation();return}A.value.handleKeydownInput&&A.value.handleKeydownInput(de)},an=de=>{b.value=de,w.value||(w.value=!0)},Kt=de=>{const tt=de.target;b.value?b.value=[tt.value,b.value[1]]:b.value=[tt.value,null]},Ht=de=>{const tt=de.target;b.value?b.value=[b.value[0],tt.value]:b.value=[null,tt.value]},pt=()=>{var de;const tt=b.value,ft=Re(tt&&tt[0]),Mt=C(y);if(ft&&ft.isValid()){b.value=[gt(ft),((de=Z.value)==null?void 0:de[1])||null];const Tn=[ft,Mt&&(Mt[1]||null)];Bt(Tn)&&(E(kS(Tn)),b.value=null)}},Dt=()=>{var de;const tt=C(b),ft=Re(tt&&tt[1]),Mt=C(y);if(ft&&ft.isValid()){b.value=[((de=C(Z))==null?void 0:de[0])||null,gt(ft)];const Tn=[Mt&&Mt[0],ft];Bt(Tn)&&(E(kS(Tn)),b.value=null)}},dt=()=>{var de;(de=f.value)==null||de.focus()},it=()=>{var de;(de=f.value)==null||de.blur()};return _r(Wc,{props:r}),_r(Eye,g),t({focus:dt,blur:it,handleOpen:X,handleClose:te,onPick:D}),(de,tt)=>(L(),yt(C(hs),vr({ref_key:"refPopper",ref:c,visible:C(w),effect:"light",pure:"",trigger:"click"},de.$attrs,{role:"dialog",teleported:"",transition:`${C(i).namespace.value}-zoom-in-top`,"popper-class":[`${C(i).namespace.value}-picker__popper`,de.popperClass],"popper-style":de.popperStyle,"popper-options":C(u),"fallback-placements":de.fallbackPlacements,"gpu-acceleration":!1,placement:de.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:F,onShow:H,onHide:re}),{default:rt(()=>[C(Be)?(L(),yt(lVe,{key:1,id:de.id,ref_key:"inputRef",ref:f,"model-value":C(Z),name:de.name,disabled:C(h),readonly:!de.editable||de.readonly,"start-placeholder":de.startPlaceholder,"end-placeholder":de.endPlaceholder,class:oe(C(B)),style:rn(de.$attrs.style),"aria-label":de.ariaLabel,tabindex:de.tabindex,autocomplete:"off",role:"combobox",onClick:De,onFocus:C(R),onBlur:C(N),onStartInput:Kt,onStartChange:pt,onEndInput:Ht,onEndChange:Dt,onMousedown:De,onMouseenter:pe,onMouseleave:ie,onTouchstartPassive:ue,onKeydown:Lt},{prefix:rt(()=>[C(Ee)?(L(),yt(C(Dn),{key:0,class:oe([C(a).e("icon"),C(s).e("icon")])},{default:rt(()=>[(L(),yt(mr(C(Ee))))]),_:1},8,["class"])):xe("v-if",!0)]),"range-separator":rt(()=>[ht(de.$slots,"range-separator",{},()=>[x("span",{class:oe(C(s).b("separator"))},je(de.rangeSeparator),3)])]),suffix:rt(()=>[de.clearIcon?(L(),yt(C(Dn),{key:0,class:oe(C(z)),onMousedown:en(C(bo),["prevent"]),onClick:me},{default:rt(()=>[(L(),yt(mr(de.clearIcon)))]),_:1},8,["class","onMousedown"])):xe("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(L(),yt(C(js),{key:0,id:de.id,ref_key:"inputRef",ref:f,"container-role":"combobox","model-value":C(Z),name:de.name,size:C(Me),disabled:C(h),placeholder:de.placeholder,class:oe([C(i).b("editor"),C(i).bm("editor",de.type),C(i).is("focus",C(w)),de.$attrs.class]),style:rn(de.$attrs.style),readonly:!de.editable||de.readonly||C(Pe)||C(Ae)||C(he)||de.type==="week","aria-label":de.ariaLabel,tabindex:de.tabindex,"validate-event":!1,onInput:an,onFocus:C(R),onBlur:C(N),onKeydown:Lt,onChange:Ne,onMousedown:De,onMouseenter:pe,onMouseleave:ie,onTouchstartPassive:ue,onClick:en(()=>{},["stop"])},{prefix:rt(()=>[C(Ee)?(L(),yt(C(Dn),{key:0,class:oe(C(a).e("icon")),onMousedown:en(De,["prevent"]),onTouchstartPassive:ue},{default:rt(()=>[(L(),yt(mr(C(Ee))))]),_:1},8,["class","onMousedown"])):xe("v-if",!0)]),suffix:rt(()=>[C(Q)&&de.clearIcon?(L(),yt(C(Dn),{key:0,class:oe(`${C(a).e("icon")} clear-icon`),onMousedown:en(C(bo),["prevent"]),onClick:me},{default:rt(()=>[(L(),yt(mr(de.clearIcon)))]),_:1},8,["class","onMousedown"])):xe("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur","onClick"]))]),content:rt(()=>[ht(de.$slots,"default",{visible:C(w),actualVisible:C(m),parsedValue:C(y),format:de.format,dateFormat:de.dateFormat,timeFormat:de.timeFormat,unlinkPanels:de.unlinkPanels,type:de.type,defaultValue:de.defaultValue,showNow:de.showNow,showConfirm:de.showConfirm,showFooter:de.showFooter,showWeekNumber:de.showWeekNumber,onPick:C(D),onSelectRange:U,onSetPickerOption:C(_),onCalendarChange:C(M),onPanelChange:C(O),onMousedown:en(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});var _ye=on(cVe,[["__file","picker.vue"]]);const dVe=Jt({...Tye,datetimeRole:String,parsedValue:{type:ct(Object)}}),Dye=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(a,s,l,u)=>{const d={hour:e,minute:t,second:n};let c=a;return["hour","minute","second"].forEach(f=>{if(d[f]){let p;const v=d[f];switch(f){case"minute":{p=v(c.hour(),s,u);break}case"second":{p=v(c.hour(),c.minute(),s,u);break}default:{p=v(s,u);break}}if(p?.length&&!p.includes(c[f]())){const h=l?0:p.length-1;c=c[f](p[h])}}}),c},o={};return{timePickerOptions:o,getAvailableTime:r,onSetOption:([a,s])=>{o[a]=s}}},xI=e=>{const t=(r,o)=>r||o,n=r=>r!==!0;return e.map(t).filter(n)},Iye=(e,t,n)=>({getHoursList:(a,s)=>wI(24,e&&(()=>e?.(a,s))),getMinutesList:(a,s,l)=>wI(60,t&&(()=>t?.(a,s,l))),getSecondsList:(a,s,l,u)=>wI(60,n&&(()=>n?.(a,s,l,u)))}),Oye=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:i}=Iye(e,t,n);return{getAvailableHours:(u,d)=>xI(r(u,d)),getAvailableMinutes:(u,d,c)=>xI(o(u,d,c)),getAvailableSeconds:(u,d,c,f)=>xI(i(u,d,c,f))}},Mye=e=>{const t=K(e.parsedValue);return St(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},fVe=Jt({role:{type:String,required:!0},spinnerDate:{type:ct(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ct(String),default:""},...VH}),pVe=100,hVe=600,SE={beforeMount(e,t){const n=t.value,{interval:r=pVe,delay:o=hVe}=Rn(n)?{}:n;let i,a;const s=()=>Rn(n)?n():n.handler(),l=()=>{a&&(clearTimeout(a),a=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),a=setTimeout(()=>{i=setInterval(()=>{s()},r)},o))})}},gVe=nt({__name:"basic-time-spinner",props:fVe,emits:[Pr,"select-range","set-option"],setup(e,{emit:t}){const n=e,r=dn(Wc),{isRange:o,format:i}=r.props,a=Vt("time"),{getHoursList:s,getMinutesList:l,getSecondsList:u}=Iye(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let d=!1;const c=K(),f=K(),p=K(),v=K(),h={hours:f,minutes:p,seconds:v},g=ee(()=>n.showSeconds?HJ:HJ.slice(0,2)),y=ee(()=>{const{spinnerDate:F}=n,H=F.hour(),re=F.minute(),X=F.second();return{hours:H,minutes:re,seconds:X}}),m=ee(()=>{const{hours:F,minutes:H}=C(y),{role:re,spinnerDate:X}=n,te=o?void 0:X;return{hours:s(re,te),minutes:l(F,re,te),seconds:u(F,H,re,te)}}),b=ee(()=>{const{hours:F,minutes:H,seconds:re}=C(y);return{hours:bI(F,23),minutes:bI(H,59),seconds:bI(re,59)}}),w=Wl(F=>{d=!1,E(F)},200),A=F=>{if(!!!n.amPmMode)return"";const re=n.amPmMode==="A";let X=F<12?" am":" pm";return re&&(X=X.toUpperCase()),X},S=F=>{let H=[0,0];const re=i||Uy,X=re.indexOf("HH"),te=re.indexOf("mm"),Z=re.indexOf("ss");switch(F){case"hours":X!==-1&&(H=[X,X+2]);break;case"minutes":te!==-1&&(H=[te,te+2]);break;case"seconds":Z!==-1&&(H=[Z,Z+2]);break}const[le,ve]=H;t("select-range",le,ve),c.value=F},E=F=>{M(F,C(y)[F])},D=()=>{E("hours"),E("minutes"),E("seconds")},_=F=>F.querySelector(`.${a.namespace.value}-scrollbar__wrap`),M=(F,H)=>{if(n.arrowControl)return;const re=C(h[F]);re&&re.$el&&(_(re.$el).scrollTop=Math.max(0,H*O(F)))},O=F=>{const H=C(h[F]),re=H?.$el.querySelector("li");return re&&Number.parseFloat(Mf(re,"height"))||0},k=()=>{N(1)},R=()=>{N(-1)},N=F=>{c.value||S("hours");const H=c.value,re=C(y)[H],X=c.value==="hours"?24:60,te=W(H,re,F,X);B(H,te),M(H,te),Yt(()=>S(H))},W=(F,H,re,X)=>{let te=(H+re+X)%X;const Z=C(m)[F];for(;Z[te]&&te!==H;)te=(te+re+X)%X;return te},B=(F,H)=>{if(C(m)[F][H])return;const{hours:te,minutes:Z,seconds:le}=C(y);let ve;switch(F){case"hours":ve=n.spinnerDate.hour(H).minute(Z).second(le);break;case"minutes":ve=n.spinnerDate.hour(te).minute(H).second(le);break;case"seconds":ve=n.spinnerDate.hour(te).minute(Z).second(H);break}t(Pr,ve)},z=(F,{value:H,disabled:re})=>{re||(B(F,H),S(F),M(F,H))},j=F=>{const H=C(h[F]);if(!H)return;d=!0,w(F);const re=Math.min(Math.round((_(H.$el).scrollTop-(q(F)*.5-10)/O(F)+3)/O(F)),F==="hours"?23:59);B(F,re)},q=F=>C(h[F]).$el.offsetHeight,Y=()=>{const F=H=>{const re=C(h[H]);re&&re.$el&&(_(re.$el).onscroll=()=>{j(H)})};F("hours"),F("minutes"),F("seconds")};qn(()=>{Yt(()=>{!n.arrowControl&&Y(),D(),n.role==="start"&&S("hours")})});const U=(F,H)=>{h[H].value=F??void 0};return t("set-option",[`${n.role}_scrollDown`,N]),t("set-option",[`${n.role}_emitSelectRange`,S]),St(()=>n.spinnerDate,()=>{d||D()}),(F,H)=>(L(),G("div",{class:oe([C(a).b("spinner"),{"has-seconds":F.showSeconds}])},[F.arrowControl?xe("v-if",!0):(L(!0),G(Rt,{key:0},un(C(g),re=>(L(),yt(C(Hc),{key:re,ref_for:!0,ref:X=>U(X,re),class:oe(C(a).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":C(a).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:X=>S(re),onMousemove:X=>E(re)},{default:rt(()=>[(L(!0),G(Rt,null,un(C(m)[re],(X,te)=>(L(),G("li",{key:te,class:oe([C(a).be("spinner","item"),C(a).is("active",te===C(y)[re]),C(a).is("disabled",X)]),onClick:Z=>z(re,{value:te,disabled:X})},[re==="hours"?(L(),G(Rt,{key:0},[bn(je(("0"+(F.amPmMode?te%12||12:te)).slice(-2))+je(A(te)),1)],64)):(L(),G(Rt,{key:1},[bn(je(("0"+te).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),F.arrowControl?(L(!0),G(Rt,{key:1},un(C(g),re=>(L(),G("div",{key:re,class:oe([C(a).be("spinner","wrapper"),C(a).is("arrow")]),onMouseenter:X=>S(re)},[cn((L(),yt(C(Dn),{class:oe(["arrow-up",C(a).be("spinner","arrow")])},{default:rt(()=>[He(C(oD))]),_:1},8,["class"])),[[C(SE),R]]),cn((L(),yt(C(Dn),{class:oe(["arrow-down",C(a).be("spinner","arrow")])},{default:rt(()=>[He(C(ed))]),_:1},8,["class"])),[[C(SE),k]]),x("ul",{class:oe(C(a).be("spinner","list"))},[(L(!0),G(Rt,null,un(C(b)[re],(X,te)=>(L(),G("li",{key:te,class:oe([C(a).be("spinner","item"),C(a).is("active",X===C(y)[re]),C(a).is("disabled",C(m)[re][X])])},[C($n)(X)?(L(),G(Rt,{key:0},[re==="hours"?(L(),G(Rt,{key:0},[bn(je(("0"+(F.amPmMode?X%12||12:X)).slice(-2))+je(A(X)),1)],64)):(L(),G(Rt,{key:1},[bn(je(("0"+X).slice(-2)),1)],64))],64)):xe("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):xe("v-if",!0)],2))}});var OL=on(gVe,[["__file","basic-time-spinner.vue"]]);const vVe=nt({__name:"panel-time-pick",props:dVe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=dn(Wc),{arrowControl:o,disabledHours:i,disabledMinutes:a,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:c}=Oye(i,a,s),f=Vt("time"),{t:p,lang:v}=Gr(),h=K([0,2]),g=Mye(n),y=ee(()=>Vr(n.actualVisible)?`${f.namespace.value}-zoom-in-top`:""),m=ee(()=>n.format.includes("ss")),b=ee(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=j=>{const q=lr(j).locale(v.value),Y=N(q);return q.isSame(Y)},A=()=>{t("pick",g.value,!1)},S=(j=!1,q=!1)=>{q||t("pick",n.parsedValue,j)},E=j=>{if(!n.visible)return;const q=N(j).millisecond(0);t("pick",q,!0)},D=(j,q)=>{t("select-range",j,q),h.value=[j,q]},_=j=>{const q=n.format,Y=q.indexOf("HH"),U=q.indexOf("mm"),F=q.indexOf("ss"),H=[],re=[];Y!==-1&&(H.push(Y),re.push("hours")),U!==-1&&(H.push(U),re.push("minutes")),F!==-1&&m.value&&(H.push(F),re.push("seconds"));const te=(H.indexOf(h.value[0])+j+H.length)%H.length;O.start_emitSelectRange(re[te])},M=j=>{const q=j.code,{left:Y,right:U,up:F,down:H}=gn;if([Y,U].includes(q)){_(q===Y?-1:1),j.preventDefault();return}if([F,H].includes(q)){const re=q===F?-1:1;O.start_scrollDown(re),j.preventDefault();return}},{timePickerOptions:O,onSetOption:k,getAvailableTime:R}=Dye({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:c}),N=j=>R(j,n.datetimeRole||"",!0),W=j=>j?lr(j,n.format).locale(v.value):null,B=j=>j?j.format(n.format):null,z=()=>lr(l).locale(v.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",B]),t("set-picker-option",["parseUserInput",W]),t("set-picker-option",["handleKeydownInput",M]),t("set-picker-option",["getRangeAvailableTime",N]),t("set-picker-option",["getDefaultValue",z]),(j,q)=>(L(),yt(Ki,{name:C(y)},{default:rt(()=>[j.actualVisible||j.visible?(L(),G("div",{key:0,class:oe(C(f).b("panel"))},[x("div",{class:oe([C(f).be("panel","content"),{"has-seconds":C(m)}])},[He(OL,{ref:"spinner",role:j.datetimeRole||"start","arrow-control":C(o),"show-seconds":C(m),"am-pm-mode":C(b),"spinner-date":j.parsedValue,"disabled-hours":C(i),"disabled-minutes":C(a),"disabled-seconds":C(s),onChange:E,onSetOption:C(k),onSelectRange:D},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),x("div",{class:oe(C(f).be("panel","footer"))},[x("button",{type:"button",class:oe([C(f).be("panel","btn"),"cancel"]),onClick:A},je(C(p)("el.datepicker.cancel")),3),x("button",{type:"button",class:oe([C(f).be("panel","btn"),"confirm"]),onClick:Y=>S()},je(C(p)("el.datepicker.confirm")),11,["onClick"])],2)],2)):xe("v-if",!0)]),_:1},8,["name"]))}});var EE=on(vVe,[["__file","panel-time-pick.vue"]]);const mVe=Jt({...Tye,parsedValue:{type:ct(Array)}}),yVe=nt({__name:"panel-time-range",props:mVe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(Ae,he)=>{const Ee=[];for(let Q=Ae;Q<=he;Q++)Ee.push(Q);return Ee},{t:o,lang:i}=Gr(),a=Vt("time"),s=Vt("picker"),l=dn(Wc),{arrowControl:u,disabledHours:d,disabledMinutes:c,disabledSeconds:f,defaultValue:p}=l.props,v=ee(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),w.value?"has-seconds":""]),h=ee(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),w.value?"has-seconds":""]),g=ee(()=>n.parsedValue[0]),y=ee(()=>n.parsedValue[1]),m=Mye(n),b=()=>{t("pick",m.value,!1)},w=ee(()=>n.format.includes("ss")),A=ee(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=(Ae=!1)=>{t("pick",[g.value,y.value],Ae)},E=Ae=>{M(Ae.millisecond(0),y.value)},D=Ae=>{M(g.value,Ae.millisecond(0))},_=Ae=>{const he=Ae.map(Q=>lr(Q).locale(i.value)),Ee=U(he);return he[0].isSame(Ee[0])&&he[1].isSame(Ee[1])},M=(Ae,he)=>{n.visible&&t("pick",[Ae,he],!0)},O=ee(()=>g.value>y.value),k=K([0,2]),R=(Ae,he)=>{t("select-range",Ae,he,"min"),k.value=[Ae,he]},N=ee(()=>w.value?11:8),W=(Ae,he)=>{t("select-range",Ae,he,"max");const Ee=C(N);k.value=[Ae+Ee,he+Ee]},B=Ae=>{const he=w.value?[0,3,6,11,14,17]:[0,3,8,11],Ee=["hours","minutes"].concat(w.value?["seconds"]:[]),me=(he.indexOf(k.value[0])+Ae+he.length)%he.length,De=he.length/2;me<De?X.start_emitSelectRange(Ee[me]):X.end_emitSelectRange(Ee[me-De])},z=Ae=>{const he=Ae.code,{left:Ee,right:Q,up:me,down:De}=gn;if([Ee,Q].includes(he)){B(he===Ee?-1:1),Ae.preventDefault();return}if([me,De].includes(he)){const pe=he===me?-1:1,ie=k.value[0]<N.value?"start":"end";X[`${ie}_scrollDown`](pe),Ae.preventDefault();return}},j=(Ae,he)=>{const Ee=d?d(Ae):[],Q=Ae==="start",De=(he||(Q?y.value:g.value)).hour(),pe=Q?r(De+1,23):r(0,De-1);return pI(Ee,pe)},q=(Ae,he,Ee)=>{const Q=c?c(Ae,he):[],me=he==="start",De=Ee||(me?y.value:g.value),pe=De.hour();if(Ae!==pe)return Q;const ie=De.minute(),ue=me?r(ie+1,59):r(0,ie-1);return pI(Q,ue)},Y=(Ae,he,Ee,Q)=>{const me=f?f(Ae,he,Ee):[],De=Ee==="start",pe=Q||(De?y.value:g.value),ie=pe.hour(),ue=pe.minute();if(Ae!==ie||he!==ue)return me;const Be=pe.second(),Me=De?r(Be+1,59):r(0,Be-1);return pI(me,Me)},U=([Ae,he])=>[te(Ae,"start",!0,he),te(he,"end",!1,Ae)],{getAvailableHours:F,getAvailableMinutes:H,getAvailableSeconds:re}=Oye(j,q,Y),{timePickerOptions:X,getAvailableTime:te,onSetOption:Z}=Dye({getAvailableHours:F,getAvailableMinutes:H,getAvailableSeconds:re}),le=Ae=>Ae?Zt(Ae)?Ae.map(he=>lr(he,n.format).locale(i.value)):lr(Ae,n.format).locale(i.value):null,ve=Ae=>Ae?Zt(Ae)?Ae.map(he=>he.format(n.format)):Ae.format(n.format):null,Pe=()=>{if(Zt(p))return p.map(he=>lr(he).locale(i.value));const Ae=lr(p).locale(i.value);return[Ae,Ae.add(60,"m")]};return t("set-picker-option",["formatToString",ve]),t("set-picker-option",["parseUserInput",le]),t("set-picker-option",["isValidValue",_]),t("set-picker-option",["handleKeydownInput",z]),t("set-picker-option",["getDefaultValue",Pe]),t("set-picker-option",["getRangeAvailableTime",U]),(Ae,he)=>Ae.actualVisible?(L(),G("div",{key:0,class:oe([C(a).b("range-picker"),C(s).b("panel")])},[x("div",{class:oe(C(a).be("range-picker","content"))},[x("div",{class:oe(C(a).be("range-picker","cell"))},[x("div",{class:oe(C(a).be("range-picker","header"))},je(C(o)("el.datepicker.startTime")),3),x("div",{class:oe(C(v))},[He(OL,{ref:"minSpinner",role:"start","show-seconds":C(w),"am-pm-mode":C(A),"arrow-control":C(u),"spinner-date":C(g),"disabled-hours":j,"disabled-minutes":q,"disabled-seconds":Y,onChange:E,onSetOption:C(Z),onSelectRange:R},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),x("div",{class:oe(C(a).be("range-picker","cell"))},[x("div",{class:oe(C(a).be("range-picker","header"))},je(C(o)("el.datepicker.endTime")),3),x("div",{class:oe(C(h))},[He(OL,{ref:"maxSpinner",role:"end","show-seconds":C(w),"am-pm-mode":C(A),"arrow-control":C(u),"spinner-date":C(y),"disabled-hours":j,"disabled-minutes":q,"disabled-seconds":Y,onChange:D,onSetOption:C(Z),onSelectRange:W},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),x("div",{class:oe(C(a).be("panel","footer"))},[x("button",{type:"button",class:oe([C(a).be("panel","btn"),"cancel"]),onClick:Ee=>b()},je(C(o)("el.datepicker.cancel")),11,["onClick"]),x("button",{type:"button",class:oe([C(a).be("panel","btn"),"confirm"]),disabled:C(O),onClick:Ee=>S()},je(C(o)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):xe("v-if",!0)}});var bVe=on(yVe,[["__file","panel-time-range.vue"]]);lr.extend(HH);var wVe=nt({name:"ElTimePicker",install:null,props:{...qH,isRange:Boolean},emits:[Qn],setup(e,t){const n=K(),[r,o]=e.isRange?["timerange",bVe]:["time",EE],i=a=>t.emit(Qn,a);return _r(WH,e.popperOptions),t.expose({focus:()=>{var a;(a=n.value)==null||a.focus()},blur:()=>{var a;(a=n.value)==null||a.blur()},handleOpen:()=>{var a;(a=n.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=n.value)==null||a.handleClose()}}),()=>{var a;const s=(a=e.format)!=null?a:Uy;return He(_ye,vr(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>He(o,l,null)})}}});const AVe=or(wVe);var DS={exports:{}},CVe=DS.exports,WJ;function xVe(){return WJ||(WJ=1,(function(e,t){(function(n,r){e.exports=r()})(CVe,(function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(c){switch(c){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),c==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),c==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return c}}));return i.bind(this)(d)}}}))})(DS)),DS.exports}var SVe=xVe();const EVe=xu(SVe);var IS={exports:{}},kVe=IS.exports,VJ;function TVe(){return VJ||(VJ=1,(function(e,t){(function(n,r){e.exports=r()})(kVe,(function(){var n="week",r="year";return function(o,i,a){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(r).add(1,r).date(u),c=a(this).endOf(n);if(d.isBefore(c))return 1}var f=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(f,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(IS)),IS.exports}var _Ve=TVe();const DVe=xu(_Ve);var OS={exports:{}},IVe=OS.exports,qJ;function OVe(){return qJ||(qJ=1,(function(e,t){(function(n,r){e.exports=r()})(IVe,(function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}}))})(OS)),OS.exports}var MVe=OVe();const PVe=xu(MVe);var MS={exports:{}},NVe=MS.exports,GJ;function RVe(){return GJ||(GJ=1,(function(e,t){(function(n,r){e.exports=r()})(NVe,(function(){return function(n,r,o){r.prototype.dayOfYear=function(i){var a=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}}))})(MS)),MS.exports}var BVe=RVe();const LVe=xu(BVe);var PS={exports:{}},FVe=PS.exports,KJ;function UVe(){return KJ||(KJ=1,(function(e,t){(function(n,r){e.exports=r()})(FVe,(function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}}))})(PS)),PS.exports}var zVe=UVe();const $Ve=xu(zVe);var NS={exports:{}},jVe=NS.exports,YJ;function HVe(){return YJ||(YJ=1,(function(e,t){(function(n,r){e.exports=r()})(jVe,(function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}}))})(NS)),NS.exports}var WVe=HVe();const VVe=xu(WVe),qVe=Jt({valueFormat:String,dateFormat:String,timeFormat:String,disabled:Boolean,modelValue:{type:ct([Date,Array,String,Number]),default:""},defaultValue:{type:ct([Date,Array])},defaultTime:{type:ct([Date,Array])},isRange:Boolean,...VH,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:ct(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0}}),GH=Symbol("rootPickerContextKey"),$5="ElIsDefaultFormat",GVe=["date","dates","year","years","month","months","week","range"],KH=Jt({cellClassName:{type:ct(Function)},disabledDate:{type:ct(Function)},date:{type:ct(Object),required:!0},minDate:{type:ct(Object)},maxDate:{type:ct(Object)},parsedValue:{type:ct([Object,Array])},rangeState:{type:ct(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),Pye=Jt({type:{type:ct(String),required:!0,values:K$e},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean}),YH=Jt({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:ct(Array)}}),QH=e=>({type:String,values:GVe,default:e}),KVe=Jt({...Pye,parsedValue:{type:ct([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),tA=e=>{if(!Zt(e))return!1;const[t,n]=e;return lr.isDayjs(t)&&lr.isDayjs(n)&&lr(t).isValid()&&lr(n).isValid()&&t.isSameOrBefore(n)},pD=(e,{lang:t,step:n=1,unit:r,unlinkPanels:o})=>{let i;if(Zt(e)){let[a,s]=e.map(l=>lr(l).locale(t));return o||(s=a.add(n,r)),[a,s]}else e?i=lr(e):i=lr();return i=i.locale(t),[i,i.add(n,r)]},YVe=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:o,now:i,unit:a,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let d=0;d<e.row;d++){const c=t[d];for(let f=0;f<e.column;f++){let p=c[f+n];p||(p={row:d,column:f,type:"normal",inRange:!1,start:!1,end:!1});const v=d*e.column+f,h=s(v);p.dayjs=h,p.date=h.toDate(),p.timestamp=h.valueOf(),p.type="normal",p.inRange=!!(r&&h.isSameOrAfter(r,a)&&o&&h.isSameOrBefore(o,a))||!!(r&&h.isSameOrBefore(r,a)&&o&&h.isSameOrAfter(o,a)),r?.isSameOrAfter(o)?(p.start=!!o&&h.isSame(o,a),p.end=r&&h.isSame(r,a)):(p.start=!!r&&h.isSame(r,a),p.end=!!o&&h.isSame(o,a)),h.isSame(i,a)&&(p.type="today"),l?.(p,{rowIndex:d,columnIndex:f}),c[f+n]=p}u?.(c)}},kE=(e,t,n,r)=>{const o=lr().locale(r).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second()),i=o.daysInMonth();return Ph(i).map(a=>o.add(a,"day").toDate())},zy=(e,t,n,r,o)=>{const i=lr().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),a=kE(e,t,n,r).find(s=>!o?.(s));return a?lr(a).locale(r):i.locale(r)},TE=(e,t,n)=>{const r=e.year();if(!n?.(e.toDate()))return e.locale(t);const o=e.month();if(!kE(e,r,o,t).every(n))return zy(e,r,o,t,n);for(let i=0;i<12;i++)if(!kE(e,r,i,t).every(n))return zy(e,r,i,t,n);return e},$y=(e,t,n,r)=>{if(Zt(e))return e.map(o=>$y(o,t,n,r));if(In(e)){const o=r?.value?lr(e):lr(e,t);if(!o.isValid())return o}return lr(e,t).locale(n)},QVe=Jt({...KH,showWeekNumber:Boolean,selectionMode:QH("date")}),ZVe=["changerange","pick","select"],ML=(e="")=>["normal","today"].includes(e),XVe=(e,t)=>{const{lang:n}=Gr(),r=K(),o=K(),i=K(),a=K(),s=K([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(j=>j.toLowerCase()),c=ee(()=>u>3?7-u:-u),f=ee(()=>{const j=e.date.startOf("month");return j.subtract(j.day()||7,"day")}),p=ee(()=>d.concat(d).slice(u,u+7)),v=ee(()=>sme(C(w)).some(j=>j.isCurrent)),h=ee(()=>{const j=e.date.startOf("month"),q=j.day()||7,Y=j.daysInMonth(),U=j.subtract(1,"month").daysInMonth();return{startOfMonthDay:q,dateCountOfMonth:Y,dateCountOfLastMonth:U}}),g=ee(()=>e.selectionMode==="dates"?sl(e.parsedValue):[]),y=(j,{count:q,rowIndex:Y,columnIndex:U})=>{const{startOfMonthDay:F,dateCountOfMonth:H,dateCountOfLastMonth:re}=C(h),X=C(c);if(Y>=0&&Y<=1){const te=F+X<0?7+F+X:F+X;if(U+Y*7>=te)return j.text=q,!0;j.text=re-(te-U%7)+1+Y*7,j.type="prev-month"}else return q<=H?j.text=q:(j.text=q-H,j.type="next-month"),!0;return!1},m=(j,{columnIndex:q,rowIndex:Y},U)=>{const{disabledDate:F,cellClassName:H}=e,re=C(g),X=y(j,{count:U,rowIndex:Y,columnIndex:q}),te=j.dayjs.toDate();return j.selected=re.find(Z=>Z.isSame(j.dayjs,"day")),j.isSelected=!!j.selected,j.isCurrent=S(j),j.disabled=F?.(te),j.customClass=H?.(te),X},b=j=>{if(e.selectionMode==="week"){const[q,Y]=e.showWeekNumber?[1,7]:[0,6],U=z(j[q+1]);j[q].inRange=U,j[q].start=U,j[Y].inRange=U,j[Y].end=U}},w=ee(()=>{const{minDate:j,maxDate:q,rangeState:Y,showWeekNumber:U}=e,F=C(c),H=C(s),re="day";let X=1;if(YVe({row:6,column:7},H,{startDate:j,columnIndexOffset:U?1:0,nextEndDate:Y.endDate||q||Y.selecting&&j||null,now:lr().locale(C(n)).startOf(re),unit:re,relativeDateGetter:te=>C(f).add(te-F,re),setCellMetadata:(...te)=>{m(...te,X)&&(X+=1)},setRowMetadata:b}),U)for(let te=0;te<6;te++)H[te][1].dayjs&&(H[te][0]={type:"week",text:H[te][1].dayjs.week()});return H});St(()=>e.date,async()=>{var j;(j=C(r))!=null&&j.contains(document.activeElement)&&(await Yt(),await A())});const A=async()=>{var j;return(j=C(o))==null?void 0:j.focus()},S=j=>e.selectionMode==="date"&&ML(j.type)&&E(j,e.parsedValue),E=(j,q)=>q?lr(q).locale(C(n)).isSame(e.date.date(Number(j.text)),"day"):!1,D=(j,q)=>{const Y=j*7+(q-(e.showWeekNumber?1:0))-C(c);return C(f).add(Y,"day")},_=j=>{var q;if(!e.rangeState.selecting)return;let Y=j.target;if(Y.tagName==="SPAN"&&(Y=(q=Y.parentNode)==null?void 0:q.parentNode),Y.tagName==="DIV"&&(Y=Y.parentNode),Y.tagName!=="TD")return;const U=Y.parentNode.rowIndex-1,F=Y.cellIndex;C(w)[U][F].disabled||(U!==C(i)||F!==C(a))&&(i.value=U,a.value=F,t("changerange",{selecting:!0,endDate:D(U,F)}))},M=j=>{l||C(v)||e.selectionMode!=="date"||B(j,!0)},O=j=>{j.target.closest("td")&&(l=!0)},k=j=>{j.target.closest("td")&&(l=!1)},R=j=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:j,maxDate:null}),t("select",!0)):(j>=e.minDate?t("pick",{minDate:e.minDate,maxDate:j}):t("pick",{minDate:j,maxDate:e.minDate}),t("select",!1))},N=j=>{const q=j.week(),Y=`${j.year()}w${q}`;t("pick",{year:j.year(),week:q,value:Y,date:j.startOf("week")})},W=(j,q)=>{const Y=q?sl(e.parsedValue).filter(U=>U?.valueOf()!==j.valueOf()):sl(e.parsedValue).concat([j]);t("pick",Y)},B=(j,q=!1)=>{if(e.disabled)return;const Y=j.target.closest("td");if(!Y)return;const U=Y.parentNode.rowIndex-1,F=Y.cellIndex,H=C(w)[U][F];if(H.disabled||H.type==="week")return;const re=D(U,F);switch(e.selectionMode){case"range":{R(re);break}case"date":{t("pick",re,q);break}case"week":{N(re);break}case"dates":{W(re,!!H.selected);break}}},z=j=>{if(e.selectionMode!=="week")return!1;let q=e.date.startOf("day");if(j.type==="prev-month"&&(q=q.subtract(1,"month")),j.type==="next-month"&&(q=q.add(1,"month")),q=q.date(Number.parseInt(j.text,10)),e.parsedValue&&!Zt(e.parsedValue)){const Y=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(Y,"day").isSame(q,"day")}return!1};return{WEEKS:p,rows:w,tbodyRef:r,currentCellRef:o,focus:A,isCurrent:S,isWeekActive:z,handlePickDate:B,handleMouseUp:k,handleMouseDown:O,handleMouseMove:_,handleFocus:M}},JVe=(e,{isCurrent:t,isWeekActive:n})=>{const r=Vt("date-table"),{t:o}=Gr(),i=ee(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"&&!e.disabled}]),a=ee(()=>o("el.datepicker.dateTablePrompt")),s=u=>{const d=[];return ML(u.type)&&!u.disabled?(d.push("available"),u.type==="today"&&d.push("today")):d.push(u.type),t(u)&&d.push("current"),u.inRange&&(ML(u.type)||e.selectionMode==="week")&&(d.push("in-range"),u.start&&d.push("start-date"),u.end&&d.push("end-date")),(u.disabled||e.disabled)&&d.push("disabled"),u.selected&&d.push("selected"),u.customClass&&d.push(u.customClass),d.join(" ")},l=u=>[r.e("row"),{current:n(u)}];return{tableKls:i,tableLabel:a,weekHeaderClass:r.e("week-header"),getCellClasses:s,getRowKls:l,t:o}},eqe=Jt({cell:{type:ct(Object)}});var ZH=nt({name:"ElDatePickerCell",props:eqe,setup(e){const t=Vt("date-table-cell"),{slots:n}=dn(GH);return()=>{const{cell:r}=e;return ht(n,"default",{...r},()=>{var o;return[He("div",{class:t.b()},[He("span",{class:t.e("text")},[(o=r?.renderText)!=null?o:r?.text])])]})}}});const tqe=nt({__name:"basic-date-table",props:QVe,emits:ZVe,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:o,rows:i,tbodyRef:a,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:d,handlePickDate:c,handleMouseUp:f,handleMouseDown:p,handleMouseMove:v,handleFocus:h}=XVe(r,n),{tableLabel:g,tableKls:y,getCellClasses:m,getRowKls:b,weekHeaderClass:w,t:A}=JVe(r,{isCurrent:u,isWeekActive:d});let S=!1;return Jr(()=>{S=!0}),t({focus:l}),(E,D)=>(L(),G("table",{"aria-label":C(g),class:oe(C(y)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:C(c),onMousemove:C(v),onMousedown:C(p),onMouseup:C(f)},[x("tbody",{ref_key:"tbodyRef",ref:a},[x("tr",null,[E.showWeekNumber?(L(),G("th",{key:0,scope:"col",class:oe(C(w))},null,2)):xe("v-if",!0),(L(!0),G(Rt,null,un(C(o),(_,M)=>(L(),G("th",{key:M,"aria-label":C(A)("el.datepicker.weeksFull."+_),scope:"col"},je(C(A)("el.datepicker.weeks."+_)),9,["aria-label"]))),128))]),(L(!0),G(Rt,null,un(C(i),(_,M)=>(L(),G("tr",{key:M,class:oe(C(b)(_[1]))},[(L(!0),G(Rt,null,un(_,(O,k)=>(L(),G("td",{key:`${M}.${k}`,ref_for:!0,ref:R=>!C(S)&&O.isSelected&&(s.value=R),class:oe(C(m)(O)),"aria-current":O.isCurrent?"date":void 0,"aria-selected":O.isCurrent,tabindex:O.isSelected?0:-1,onFocus:C(h)},[He(C(ZH),{cell:O},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var PL=on(tqe,[["__file","basic-date-table.vue"]]);const nqe=Jt({...KH,selectionMode:QH("month")}),rqe=nt({__name:"basic-month-table",props:nqe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=Vt("month-table"),{t:i,lang:a}=Gr(),s=K(),l=K(),u=K(r.date.locale("en").localeData().monthsShort().map(b=>b.toLowerCase())),d=K([[],[],[]]),c=K(),f=K(),p=ee(()=>{var b,w,A;const S=d.value,E=lr().locale(a.value).startOf("month");for(let D=0;D<3;D++){const _=S[D];for(let M=0;M<4;M++){const O=_[M]||(_[M]={row:D,column:M,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});O.type="normal";const k=D*4+M,R=r.date.startOf("year").month(k),N=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;O.inRange=!!(r.minDate&&R.isSameOrAfter(r.minDate,"month")&&N&&R.isSameOrBefore(N,"month"))||!!(r.minDate&&R.isSameOrBefore(r.minDate,"month")&&N&&R.isSameOrAfter(N,"month")),(b=r.minDate)!=null&&b.isSameOrAfter(N)?(O.start=!!(N&&R.isSame(N,"month")),O.end=r.minDate&&R.isSame(r.minDate,"month")):(O.start=!!(r.minDate&&R.isSame(r.minDate,"month")),O.end=!!(N&&R.isSame(N,"month"))),E.isSame(R)&&(O.type="today");const B=R.toDate();O.text=k,O.disabled=((w=r.disabledDate)==null?void 0:w.call(r,B))||!1,O.date=B,O.customClass=(A=r.cellClassName)==null?void 0:A.call(r,B),O.dayjs=R,O.timestamp=R.valueOf(),O.isSelected=g(O)}}return S}),v=()=>{var b;(b=l.value)==null||b.focus()},h=b=>{const w={},A=r.date.year(),S=new Date,E=b.text;return w.disabled=r.disabled||(r.disabledDate?kE(r.date,A,E,a.value).every(r.disabledDate):!1),w.current=sl(r.parsedValue).findIndex(D=>lr.isDayjs(D)&&D.year()===A&&D.month()===E)>=0,w.today=S.getFullYear()===A&&S.getMonth()===E,b.customClass&&(w[b.customClass]=!0),b.inRange&&(w["in-range"]=!0,b.start&&(w["start-date"]=!0),b.end&&(w["end-date"]=!0)),w},g=b=>{const w=r.date.year(),A=b.text;return sl(r.date).findIndex(S=>S.year()===w&&S.month()===A)>=0},y=b=>{var w;if(!r.rangeState.selecting)return;let A=b.target;if(A.tagName==="SPAN"&&(A=(w=A.parentNode)==null?void 0:w.parentNode),A.tagName==="DIV"&&(A=A.parentNode),A.tagName!=="TD")return;const S=A.parentNode.rowIndex,E=A.cellIndex;p.value[S][E].disabled||(S!==c.value||E!==f.value)&&(c.value=S,f.value=E,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(S*4+E)}))},m=b=>{var w;if(r.disabled)return;const A=(w=b.target)==null?void 0:w.closest("td");if(A?.tagName!=="TD"||Ol(A,"disabled"))return;const S=A.cellIndex,D=A.parentNode.rowIndex*4+S,_=r.date.startOf("year").month(D);if(r.selectionMode==="months"){if(b.type==="keydown"){n("pick",sl(r.parsedValue),!1);return}const M=zy(r.date,r.date.year(),D,a.value,r.disabledDate),O=Ol(A,"current")?sl(r.parsedValue).filter(k=>k?.year()!==M.year()||k?.month()!==M.month()):sl(r.parsedValue).concat([lr(M)]);n("pick",O)}else r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&_>=r.minDate?n("pick",{minDate:r.minDate,maxDate:_}):n("pick",{minDate:_,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:_,maxDate:null}),n("select",!0)):n("pick",D)};return St(()=>r.date,async()=>{var b,w;(b=s.value)!=null&&b.contains(document.activeElement)&&(await Yt(),(w=l.value)==null||w.focus())}),t({focus:v}),(b,w)=>(L(),G("table",{role:"grid","aria-label":C(i)("el.datepicker.monthTablePrompt"),class:oe(C(o).b()),onClick:m,onMousemove:y},[x("tbody",{ref_key:"tbodyRef",ref:s},[(L(!0),G(Rt,null,un(C(p),(A,S)=>(L(),G("tr",{key:S},[(L(!0),G(Rt,null,un(A,(E,D)=>(L(),G("td",{key:D,ref_for:!0,ref:_=>E.isSelected&&(l.value=_),class:oe(h(E)),"aria-selected":!!E.isSelected,"aria-label":C(i)(`el.datepicker.month${+E.text+1}`),tabindex:E.isSelected?0:-1,onKeydown:[$r(en(m,["prevent","stop"]),["space"]),$r(en(m,["prevent","stop"]),["enter"])]},[He(C(ZH),{cell:{...E,renderText:C(i)("el.datepicker.months."+u.value[E.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var nA=on(rqe,[["__file","basic-month-table.vue"]]);const oqe=Jt({...KH,selectionMode:QH("year")}),iqe=nt({__name:"basic-year-table",props:oqe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,o=(w,A)=>{const S=lr(String(w)).locale(A).startOf("year"),D=S.endOf("year").dayOfYear();return Ph(D).map(_=>S.add(_,"day").toDate())},i=Vt("year-table"),{t:a,lang:s}=Gr(),l=K(),u=K(),d=ee(()=>Math.floor(r.date.year()/10)*10),c=K([[],[],[]]),f=K(),p=K(),v=ee(()=>{var w,A,S;const E=c.value,D=lr().locale(s.value).startOf("year");for(let _=0;_<3;_++){const M=E[_];for(let O=0;O<4&&!(_*4+O>=10);O++){let k=M[O];k||(k={row:_,column:O,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),k.type="normal";const R=_*4+O+d.value,N=lr().year(R),W=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;k.inRange=!!(r.minDate&&N.isSameOrAfter(r.minDate,"year")&&W&&N.isSameOrBefore(W,"year"))||!!(r.minDate&&N.isSameOrBefore(r.minDate,"year")&&W&&N.isSameOrAfter(W,"year")),(w=r.minDate)!=null&&w.isSameOrAfter(W)?(k.start=!!(W&&N.isSame(W,"year")),k.end=!!(r.minDate&&N.isSame(r.minDate,"year"))):(k.start=!!(r.minDate&&N.isSame(r.minDate,"year")),k.end=!!(W&&N.isSame(W,"year"))),D.isSame(N)&&(k.type="today"),k.text=R;const z=N.toDate();k.disabled=((A=r.disabledDate)==null?void 0:A.call(r,z))||!1,k.date=z,k.customClass=(S=r.cellClassName)==null?void 0:S.call(r,z),k.dayjs=N,k.timestamp=N.valueOf(),k.isSelected=y(k),M[O]=k}}return E}),h=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const A={},S=lr().locale(s.value),E=w.text;return A.disabled=r.disabled||(r.disabledDate?o(E,s.value).every(r.disabledDate):!1),A.today=S.year()===E,A.current=sl(r.parsedValue).findIndex(D=>D.year()===E)>=0,w.customClass&&(A[w.customClass]=!0),w.inRange&&(A["in-range"]=!0,w.start&&(A["start-date"]=!0),w.end&&(A["end-date"]=!0)),A},y=w=>{const A=w.text;return sl(r.date).findIndex(S=>S.year()===A)>=0},m=w=>{var A;if(r.disabled)return;const S=(A=w.target)==null?void 0:A.closest("td");if(!S||!S.textContent||Ol(S,"disabled"))return;const E=S.cellIndex,_=S.parentNode.rowIndex*4+E+d.value,M=lr().year(_);if(r.selectionMode==="range")r.rangeState.selecting?(r.minDate&&M>=r.minDate?n("pick",{minDate:r.minDate,maxDate:M}):n("pick",{minDate:M,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:M,maxDate:null}),n("select",!0));else if(r.selectionMode==="years"){if(w.type==="keydown"){n("pick",sl(r.parsedValue),!1);return}const O=TE(M.startOf("year"),s.value,r.disabledDate),k=Ol(S,"current")?sl(r.parsedValue).filter(R=>R?.year()!==_):sl(r.parsedValue).concat([O]);n("pick",k)}else n("pick",_)},b=w=>{var A;if(!r.rangeState.selecting)return;const S=(A=w.target)==null?void 0:A.closest("td");if(!S)return;const E=S.parentNode.rowIndex,D=S.cellIndex;v.value[E][D].disabled||(E!==f.value||D!==p.value)&&(f.value=E,p.value=D,n("changerange",{selecting:!0,endDate:lr().year(d.value).add(E*4+D,"year")}))};return St(()=>r.date,async()=>{var w,A;(w=l.value)!=null&&w.contains(document.activeElement)&&(await Yt(),(A=u.value)==null||A.focus())}),t({focus:h}),(w,A)=>(L(),G("table",{role:"grid","aria-label":C(a)("el.datepicker.yearTablePrompt"),class:oe(C(i).b()),onClick:m,onMousemove:b},[x("tbody",{ref_key:"tbodyRef",ref:l},[(L(!0),G(Rt,null,un(C(v),(S,E)=>(L(),G("tr",{key:E},[(L(!0),G(Rt,null,un(S,(D,_)=>(L(),G("td",{key:`${E}_${_}`,ref_for:!0,ref:M=>D.isSelected&&(u.value=M),class:oe(["available",g(D)]),"aria-selected":D.isSelected,"aria-label":String(D.text),tabindex:D.isSelected?0:-1,onKeydown:[$r(en(m,["prevent","stop"]),["space"]),$r(en(m,["prevent","stop"]),["enter"])]},[He(C(ZH),{cell:D},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var rA=on(iqe,[["__file","basic-year-table.vue"]]);const aqe=nt({__name:"panel-date-pick",props:KVe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(dt,it,de)=>!0,o=Vt("picker-panel"),i=Vt("date-picker"),a=yp(),s=ga(),{t:l,lang:u}=Gr(),d=dn(Wc),c=dn($5,void 0),{shortcuts:f,disabledDate:p,cellClassName:v,defaultTime:h}=d.props,g=co(d.props,"defaultValue"),y=K(),m=K(lr().locale(u.value)),b=K(!1);let w=!1;const A=ee(()=>lr(h).locale(u.value)),S=ee(()=>m.value.month()),E=ee(()=>m.value.year()),D=K([]),_=K(null),M=K(null),O=dt=>D.value.length>0?r(dt,D.value,n.format||"HH:mm:ss"):!0,k=dt=>h&&!De.value&&!b.value&&!w?A.value.year(dt.year()).month(dt.month()).date(dt.date()):Z.value?dt.millisecond(0):dt.startOf("day"),R=(dt,...it)=>{if(!dt)t("pick",dt,...it);else if(Zt(dt)){const de=dt.map(k);t("pick",de,...it)}else t("pick",k(dt),...it);_.value=null,M.value=null,b.value=!1,w=!1},N=async(dt,it)=>{if(Y.value==="date"){dt=dt;let de=n.parsedValue?n.parsedValue.year(dt.year()).month(dt.month()).date(dt.date()):dt;O(de),m.value=de,R(de,Z.value||it)}else Y.value==="week"?R(dt.date):Y.value==="dates"&&R(dt,!0)},W=dt=>{const it=dt?"add":"subtract";m.value=m.value[it](1,"month"),Dt("month")},B=dt=>{const it=m.value,de=dt?"add":"subtract";m.value=z.value==="year"?it[de](10,"year"):it[de](1,"year"),Dt("year")},z=K("date"),j=ee(()=>{const dt=l("el.datepicker.year");if(z.value==="year"){const it=Math.floor(E.value/10)*10;return dt?`${it} ${dt} - ${it+9} ${dt}`:`${it} - ${it+9}`}return`${E.value} ${dt}`}),q=dt=>{const it=Rn(dt.value)?dt.value():dt.value;if(it){w=!0,R(lr(it).locale(u.value));return}dt.onClick&&dt.onClick({attrs:a,slots:s,emit:t})},Y=ee(()=>{const{type:dt}=n;return["week","month","months","year","years","dates"].includes(dt)?dt:"date"}),U=ee(()=>Y.value==="dates"||Y.value==="months"||Y.value==="years"),F=ee(()=>Y.value==="date"?z.value:Y.value),H=ee(()=>!!f.length),re=async(dt,it)=>{Y.value==="month"?(m.value=zy(m.value,m.value.year(),dt,u.value,p),R(m.value,!1)):Y.value==="months"?R(dt,it??!0):(m.value=zy(m.value,m.value.year(),dt,u.value,p),z.value="date",["month","year","date","week"].includes(Y.value)&&(R(m.value,!0),await Yt(),an())),Dt("month")},X=async(dt,it)=>{if(Y.value==="year"){const de=m.value.startOf("year").year(dt);m.value=TE(de,u.value,p),R(m.value,!1)}else if(Y.value==="years")R(dt,it??!0);else{const de=m.value.year(dt);m.value=TE(de,u.value,p),z.value="month",["month","year","date","week"].includes(Y.value)&&(R(m.value,!0),await Yt(),an())}Dt("year")},te=async dt=>{n.disabled||(z.value=dt,await Yt(),an())},Z=ee(()=>n.type==="datetime"||n.type==="datetimerange"),le=ee(()=>{const dt=Z.value||Y.value==="dates",it=Y.value==="years",de=Y.value==="months",tt=z.value==="date",ft=z.value==="year",Mt=z.value==="month";return dt&&tt||it&&ft||de&&Mt}),ve=ee(()=>!U.value&&n.showNow||n.showConfirm),Pe=ee(()=>p?n.parsedValue?Zt(n.parsedValue)?p(n.parsedValue[0].toDate()):p(n.parsedValue.toDate()):!0:!1),Ae=()=>{if(U.value)R(n.parsedValue);else{let dt=n.parsedValue;if(!dt){const it=lr(h).locale(u.value),de=Lt();dt=it.year(de.year()).month(de.month()).date(de.date())}m.value=dt,R(dt)}},he=ee(()=>p?p(lr().locale(u.value).toDate()):!1),Ee=()=>{const it=lr().locale(u.value).toDate();b.value=!0,(!p||!p(it))&&O(it)&&(m.value=lr().locale(u.value),R(m.value))},Q=ee(()=>n.timeFormat||G1e(n.format)||Uy),me=ee(()=>n.dateFormat||q1e(n.format)||ph),De=ee(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(Q.value)}),pe=ee(()=>{if(_.value)return _.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(me.value)}),ie=K(!1),ue=()=>{ie.value=!0},Be=()=>{ie.value=!1},Me=dt=>({hour:dt.hour(),minute:dt.minute(),second:dt.second(),year:dt.year(),month:dt.month(),date:dt.date()}),Fe=(dt,it,de)=>{const{hour:tt,minute:ft,second:Mt}=Me(dt),Tn=n.parsedValue?n.parsedValue.hour(tt).minute(ft).second(Mt):dt;m.value=Tn,R(m.value,!0),de||(ie.value=it)},ze=dt=>{const it=lr(dt,Q.value).locale(u.value);if(it.isValid()&&O(it)){const{year:de,month:tt,date:ft}=Me(m.value);m.value=it.year(de).month(tt).date(ft),M.value=null,ie.value=!1,R(m.value,!0)}},Ne=dt=>{const it=$y(dt,me.value,u.value,c);if(it.isValid()){if(p&&p(it.toDate()))return;const{hour:de,minute:tt,second:ft}=Me(m.value);m.value=it.hour(de).minute(tt).second(ft),_.value=null,R(m.value,!0)}},Re=dt=>lr.isDayjs(dt)&&dt.isValid()&&(p?!p(dt.toDate()):!0),gt=dt=>Zt(dt)?dt.map(it=>it.format(n.format)):dt.format(n.format),Bt=dt=>$y(dt,n.format,u.value,c),Lt=()=>{const dt=lr(g.value).locale(u.value);if(!g.value){const it=A.value;return lr().hour(it.hour()).minute(it.minute()).second(it.second()).locale(u.value)}return dt},an=()=>{var dt;["week","month","year","date"].includes(Y.value)&&((dt=y.value)==null||dt.focus())},Kt=()=>{an(),Y.value==="week"&&pt(gn.down)},Ht=dt=>{const{code:it}=dt;[gn.up,gn.down,gn.left,gn.right,gn.home,gn.end,gn.pageUp,gn.pageDown].includes(it)&&(pt(it),dt.stopPropagation(),dt.preventDefault()),[gn.enter,gn.space,gn.numpadEnter].includes(it)&&_.value===null&&M.value===null&&(dt.preventDefault(),R(m.value,!1))},pt=dt=>{var it;const{up:de,down:tt,left:ft,right:Mt,home:Tn,end:Nn,pageUp:We,pageDown:ke}=gn,be={year:{[de]:-4,[tt]:4,[ft]:-1,[Mt]:1,offset:(Se,qe)=>Se.setFullYear(Se.getFullYear()+qe)},month:{[de]:-4,[tt]:4,[ft]:-1,[Mt]:1,offset:(Se,qe)=>Se.setMonth(Se.getMonth()+qe)},week:{[de]:-1,[tt]:1,[ft]:-1,[Mt]:1,offset:(Se,qe)=>Se.setDate(Se.getDate()+qe*7)},date:{[de]:-7,[tt]:7,[ft]:-1,[Mt]:1,[Tn]:Se=>-Se.getDay(),[Nn]:Se=>-Se.getDay()+6,[We]:Se=>-new Date(Se.getFullYear(),Se.getMonth(),0).getDate(),[ke]:Se=>new Date(Se.getFullYear(),Se.getMonth()+1,0).getDate(),offset:(Se,qe)=>Se.setDate(Se.getDate()+qe)}},fe=m.value.toDate();for(;Math.abs(m.value.diff(fe,"year",!0))<1;){const Se=be[F.value];if(!Se)return;if(Se.offset(fe,Rn(Se[dt])?Se[dt](fe):(it=Se[dt])!=null?it:0),p&&p(fe))break;const qe=lr(fe).locale(u.value);m.value=qe,t("pick",qe,!0);break}},Dt=dt=>{t("panel-change",m.value.toDate(),dt,z.value)};return St(()=>Y.value,dt=>{if(["month","year"].includes(dt)){z.value=dt;return}else if(dt==="years"){z.value="year";return}else if(dt==="months"){z.value="month";return}z.value="date"},{immediate:!0}),St(()=>g.value,dt=>{dt&&(m.value=Lt())},{immediate:!0}),St(()=>n.parsedValue,dt=>{if(dt){if(U.value||Zt(dt))return;m.value=dt}else m.value=Lt()},{immediate:!0}),t("set-picker-option",["isValidValue",Re]),t("set-picker-option",["formatToString",gt]),t("set-picker-option",["parseUserInput",Bt]),t("set-picker-option",["handleFocusPicker",Kt]),(dt,it)=>(L(),G("div",{class:oe([C(o).b(),C(i).b(),C(o).is("border",dt.border),C(o).is("disabled",dt.disabled),{"has-sidebar":dt.$slots.sidebar||C(H),"has-time":C(Z)}])},[x("div",{class:oe(C(o).e("body-wrapper"))},[ht(dt.$slots,"sidebar",{class:oe(C(o).e("sidebar"))}),C(H)?(L(),G("div",{key:0,class:oe(C(o).e("sidebar"))},[(L(!0),G(Rt,null,un(C(f),(de,tt)=>(L(),G("button",{key:tt,type:"button",disabled:dt.disabled,class:oe(C(o).e("shortcut")),onClick:ft=>q(de)},je(de.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:oe(C(o).e("body"))},[C(Z)?(L(),G("div",{key:0,class:oe(C(i).e("time-header"))},[x("span",{class:oe(C(i).e("editor-wrap"))},[He(C(js),{placeholder:C(l)("el.datepicker.selectDate"),"model-value":C(pe),size:"small","validate-event":!1,disabled:dt.disabled,onInput:de=>_.value=de,onChange:Ne},null,8,["placeholder","model-value","disabled","onInput"])],2),cn((L(),G("span",{class:oe(C(i).e("editor-wrap"))},[He(C(js),{placeholder:C(l)("el.datepicker.selectTime"),"model-value":C(De),size:"small","validate-event":!1,disabled:dt.disabled,onFocus:ue,onInput:de=>M.value=de,onChange:ze},null,8,["placeholder","model-value","disabled","onInput"]),He(C(EE),{visible:ie.value,format:C(Q),"parsed-value":m.value,onPick:Fe},null,8,["visible","format","parsed-value"])],2)),[[C(np),Be]])],2)):xe("v-if",!0),cn(x("div",{class:oe([C(i).e("header"),(z.value==="year"||z.value==="month")&&C(i).e("header--bordered")])},[x("span",{class:oe(C(i).e("prev-btn"))},[x("button",{type:"button","aria-label":C(l)("el.datepicker.prevYear"),class:oe(["d-arrow-left",C(o).e("icon-btn")]),disabled:dt.disabled,onClick:de=>B(!1)},[ht(dt.$slots,"prev-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(l0))]),_:1})])],10,["aria-label","disabled","onClick"]),cn(x("button",{type:"button","aria-label":C(l)("el.datepicker.prevMonth"),class:oe([C(o).e("icon-btn"),"arrow-left"]),disabled:dt.disabled,onClick:de=>W(!1)},[ht(dt.$slots,"prev-month",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(Jf))]),_:1})])],10,["aria-label","disabled","onClick"]),[[kr,z.value==="date"]])],2),x("span",{role:"button",class:oe(C(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:$r(de=>te("year"),["enter"]),onClick:de=>te("year")},je(C(j)),43,["onKeydown","onClick"]),cn(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:oe([C(i).e("header-label"),{active:z.value==="month"}]),onKeydown:$r(de=>te("month"),["enter"]),onClick:de=>te("month")},je(C(l)(`el.datepicker.month${C(S)+1}`)),43,["onKeydown","onClick"]),[[kr,z.value==="date"]]),x("span",{class:oe(C(i).e("next-btn"))},[cn(x("button",{type:"button","aria-label":C(l)("el.datepicker.nextMonth"),class:oe([C(o).e("icon-btn"),"arrow-right"]),disabled:dt.disabled,onClick:de=>W(!0)},[ht(dt.$slots,"next-month",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(Da))]),_:1})])],10,["aria-label","disabled","onClick"]),[[kr,z.value==="date"]]),x("button",{type:"button","aria-label":C(l)("el.datepicker.nextYear"),class:oe([C(o).e("icon-btn"),"d-arrow-right"]),disabled:dt.disabled,onClick:de=>B(!0)},[ht(dt.$slots,"next-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(u0))]),_:1})])],10,["aria-label","disabled","onClick"])],2)],2),[[kr,z.value!=="time"]]),x("div",{class:oe(C(o).e("content")),onKeydown:Ht},[z.value==="date"?(L(),yt(PL,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":C(Y),date:m.value,"parsed-value":dt.parsedValue,"disabled-date":C(p),disabled:dt.disabled,"cell-class-name":C(v),"show-week-number":dt.showWeekNumber,onPick:N},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):xe("v-if",!0),z.value==="year"?(L(),yt(rA,{key:1,ref_key:"currentViewRef",ref:y,"selection-mode":C(Y),date:m.value,"disabled-date":C(p),disabled:dt.disabled,"parsed-value":dt.parsedValue,"cell-class-name":C(v),onPick:X},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):xe("v-if",!0),z.value==="month"?(L(),yt(nA,{key:2,ref_key:"currentViewRef",ref:y,"selection-mode":C(Y),date:m.value,"parsed-value":dt.parsedValue,"disabled-date":C(p),disabled:dt.disabled,"cell-class-name":C(v),onPick:re},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):xe("v-if",!0)],34)],2)],2),dt.showFooter&&C(le)&&C(ve)?(L(),G("div",{key:0,class:oe(C(o).e("footer"))},[cn(He(C(Xa),{text:"",size:"small",class:oe(C(o).e("link-btn")),disabled:C(he),onClick:Ee},{default:rt(()=>[bn(je(C(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[kr,!C(U)&&dt.showNow]]),dt.showConfirm?(L(),yt(C(Xa),{key:0,plain:"",size:"small",class:oe(C(o).e("link-btn")),disabled:C(Pe),onClick:Ae},{default:rt(()=>[bn(je(C(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):xe("v-if",!0)],2)):xe("v-if",!0)],2))}});var sqe=on(aqe,[["__file","panel-date-pick.vue"]]);const lqe=Jt({...Pye,...YH}),uqe=e=>{const{emit:t}=br(),n=yp(),r=ga();return i=>{const a=Rn(i.value)?i.value():i.value;if(a){t("pick",[lr(a[0]).locale(e.value),lr(a[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},XH=(e,{defaultValue:t,defaultTime:n,leftDate:r,rightDate:o,step:i,unit:a,onParsedValueChanged:s})=>{const{emit:l}=br(),{pickerNs:u}=dn(GH),d=Vt("date-range-picker"),{t:c,lang:f}=Gr(),p=uqe(f),v=K(),h=K(),g=K({endDate:null,selecting:!1}),y=S=>{g.value=S},m=(S=!1)=>{const E=C(v),D=C(h);tA([E,D])&&l("pick",[E,D],S)},b=S=>{g.value.selecting=S,S||(g.value.endDate=null)},w=S=>{if(Zt(S)&&S.length===2){const[E,D]=S;v.value=E,r.value=E,h.value=D,s(C(v),C(h))}else A()},A=()=>{let[S,E]=pD(C(t),{lang:C(f),step:i,unit:a,unlinkPanels:e.unlinkPanels});const D=M=>M.diff(M.startOf("d"),"ms"),_=C(n);if(_){let M=0,O=0;if(Zt(_)){const[k,R]=_.map(lr);M=D(k),O=D(R)}else{const k=D(lr(_));M=k,O=k}S=S.startOf("d").add(M,"ms"),E=E.startOf("d").add(O,"ms")}v.value=void 0,h.value=void 0,r.value=S,o.value=E};return St(t,S=>{S&&A()},{immediate:!0}),St(()=>e.parsedValue,S=>{S?.length||w(S)},{immediate:!0}),St(()=>e.visible,()=>{e.visible&&w(e.parsedValue)},{immediate:!0}),{minDate:v,maxDate:h,rangeState:g,lang:f,ppNs:u,drpNs:d,handleChangeRange:y,handleRangeConfirm:m,handleShortcutClick:p,onSelect:b,onReset:w,t:c}},cqe=(e,t,n,r)=>{const o=K("date"),i=K(),a=K("date"),s=K(),l=dn(Wc),{disabledDate:u}=l.props,{t:d,lang:c}=Gr(),f=ee(()=>n.value.year()),p=ee(()=>n.value.month()),v=ee(()=>r.value.year()),h=ee(()=>r.value.month());function g(S,E){const D=d("el.datepicker.year");if(S.value==="year"){const _=Math.floor(E.value/10)*10;return D?`${_} ${D} - ${_+9} ${D}`:`${_} - ${_+9}`}return`${E.value} ${D}`}function y(S){S?.focus()}async function m(S,E){if(e.disabled)return;const D=S==="left"?o:a,_=S==="left"?i:s;D.value=E,await Yt(),y(_.value)}async function b(S,E,D){if(e.disabled)return;const _=E==="left",M=_?n:r,O=_?r:n,k=_?o:a,R=_?i:s;if(S==="year"){const N=M.value.year(D);M.value=TE(N,c.value,u)}S==="month"&&(M.value=zy(M.value,M.value.year(),D,c.value,u)),e.unlinkPanels||(O.value=E==="left"?M.value.add(1,"month"):M.value.subtract(1,"month")),k.value=S==="year"?"month":"date",await Yt(),y(R.value),w(S)}function w(S){t("panel-change",[n.value.toDate(),r.value.toDate()],S)}function A(S,E,D){const _=D?"add":"subtract";return S==="year"?E[_](10,"year"):E[_](1,"year")}return{leftCurrentView:o,rightCurrentView:a,leftCurrentViewRef:i,rightCurrentViewRef:s,leftYear:f,rightYear:v,leftMonth:p,rightMonth:h,leftYearLabel:ee(()=>g(o,f)),rightYearLabel:ee(()=>g(a,v)),showLeftPicker:S=>m("left",S),showRightPicker:S=>m("right",S),handleLeftYearPick:S=>b("year","left",S),handleRightYearPick:S=>b("year","right",S),handleLeftMonthPick:S=>b("month","left",S),handleRightMonthPick:S=>b("month","right",S),handlePanelChange:w,adjustDateByView:A}},xx="month",dqe=nt({__name:"panel-date-range",props:lqe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=dn(Wc),o=dn($5,void 0),{disabledDate:i,cellClassName:a,defaultTime:s,clearable:l}=r.props,u=co(r.props,"format"),d=co(r.props,"shortcuts"),c=co(r.props,"defaultValue"),{lang:f}=Gr(),p=K(lr().locale(f.value)),v=K(lr().locale(f.value).add(1,xx));let h=!0;const{minDate:g,maxDate:y,rangeState:m,ppNs:b,drpNs:w,handleChangeRange:A,handleRangeConfirm:S,handleShortcutClick:E,onSelect:D,onReset:_,t:M}=XH(n,{defaultValue:c,defaultTime:s,leftDate:p,rightDate:v,unit:xx,onParsedValueChanged:Se});St(()=>n.visible,qe=>{!qe&&m.value.selecting&&(_(n.parsedValue),D(!1))});const O=K({min:null,max:null}),k=K({min:null,max:null}),{leftCurrentView:R,rightCurrentView:N,leftCurrentViewRef:W,rightCurrentViewRef:B,leftYear:z,rightYear:j,leftMonth:q,rightMonth:Y,leftYearLabel:U,rightYearLabel:F,showLeftPicker:H,showRightPicker:re,handleLeftYearPick:X,handleRightYearPick:te,handleLeftMonthPick:Z,handleRightMonthPick:le,handlePanelChange:ve,adjustDateByView:Pe}=cqe(n,t,p,v),Ae=ee(()=>!!d.value.length),he=ee(()=>O.value.min!==null?O.value.min:g.value?g.value.format(pe.value):""),Ee=ee(()=>O.value.max!==null?O.value.max:y.value||g.value?(y.value||g.value).format(pe.value):""),Q=ee(()=>k.value.min!==null?k.value.min:g.value?g.value.format(De.value):""),me=ee(()=>k.value.max!==null?k.value.max:y.value||g.value?(y.value||g.value).format(De.value):""),De=ee(()=>n.timeFormat||G1e(u.value||"")||Uy),pe=ee(()=>n.dateFormat||q1e(u.value||"")||ph),ie=qe=>tA(qe)&&(i?!i(qe[0].toDate())&&!i(qe[1].toDate()):!0),ue=()=>{p.value=Pe(R.value,p.value,!1),n.unlinkPanels||(v.value=p.value.add(1,"month")),ve("year")},Be=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(v.value=p.value.add(1,"month")),ve("month")},Me=()=>{n.unlinkPanels?v.value=Pe(N.value,v.value,!0):(p.value=Pe(N.value,p.value,!0),v.value=p.value.add(1,"month")),ve("year")},Fe=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(p.value=p.value.add(1,"month"),v.value=p.value.add(1,"month")),ve("month")},ze=()=>{p.value=Pe(R.value,p.value,!0),ve("year")},Ne=()=>{p.value=p.value.add(1,"month"),ve("month")},Re=()=>{v.value=Pe(N.value,v.value,!1),ve("year")},gt=()=>{v.value=v.value.subtract(1,"month"),ve("month")},Bt=ee(()=>{const qe=(q.value+1)%12,$e=q.value+1>=12?1:0;return n.unlinkPanels&&new Date(z.value+$e,qe)<new Date(j.value,Y.value)}),Lt=ee(()=>n.unlinkPanels&&j.value*12+Y.value-(z.value*12+q.value+1)>=12),an=ee(()=>!(g.value&&y.value&&!m.value.selecting&&tA([g.value,y.value]))),Kt=ee(()=>n.type==="datetime"||n.type==="datetimerange"),Ht=(qe,$e)=>{if(qe)return s?lr(s[$e]||s).locale(f.value).year(qe.year()).month(qe.month()).date(qe.date()):qe},pt=(qe,$e=!0)=>{const Le=qe.minDate,ot=qe.maxDate,vt=Ht(Le,0),Ut=Ht(ot,1);y.value===Ut&&g.value===vt||(t("calendar-change",[Le.toDate(),ot&&ot.toDate()]),y.value=Ut,g.value=vt,!Kt.value&&$e&&($e=!vt||!Ut),h=$e)};St([y,g],([qe,$e])=>{qe&&$e&&(S(h),h=!0)});const Dt=K(!1),dt=K(!1),it=()=>{Dt.value=!1},de=()=>{dt.value=!1},tt=(qe,$e)=>{O.value[$e]=qe;const Le=lr(qe,pe.value).locale(f.value);if(Le.isValid()){if(i&&i(Le.toDate()))return;$e==="min"?(p.value=Le,g.value=(g.value||p.value).year(Le.year()).month(Le.month()).date(Le.date()),!n.unlinkPanels&&(!y.value||y.value.isBefore(g.value))&&(v.value=Le.add(1,"month"),y.value=g.value.add(1,"month"))):(v.value=Le,y.value=(y.value||v.value).year(Le.year()).month(Le.month()).date(Le.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(y.value))&&(p.value=Le.subtract(1,"month"),g.value=y.value.subtract(1,"month")))}},ft=(qe,$e)=>{O.value[$e]=null},Mt=(qe,$e)=>{k.value[$e]=qe;const Le=lr(qe,De.value).locale(f.value);Le.isValid()&&($e==="min"?(Dt.value=!0,g.value=(g.value||p.value).hour(Le.hour()).minute(Le.minute()).second(Le.second())):(dt.value=!0,y.value=(y.value||v.value).hour(Le.hour()).minute(Le.minute()).second(Le.second()),v.value=y.value))},Tn=(qe,$e)=>{k.value[$e]=null,$e==="min"?(p.value=g.value,Dt.value=!1,(!y.value||y.value.isBefore(g.value))&&(y.value=g.value)):(v.value=y.value,dt.value=!1,y.value&&y.value.isBefore(g.value)&&(g.value=y.value))},Nn=(qe,$e,Le)=>{k.value.min||(qe&&(p.value=qe,g.value=(g.value||p.value).hour(qe.hour()).minute(qe.minute()).second(qe.second())),Le||(Dt.value=$e),(!y.value||y.value.isBefore(g.value))&&(y.value=g.value,v.value=qe,Yt(()=>{_(n.parsedValue)})))},We=(qe,$e,Le)=>{k.value.max||(qe&&(v.value=qe,y.value=(y.value||v.value).hour(qe.hour()).minute(qe.minute()).second(qe.second())),Le||(dt.value=$e),y.value&&y.value.isBefore(g.value)&&(g.value=y.value))},ke=()=>{p.value=pD(C(c),{lang:C(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=p.value.add(1,"month"),y.value=void 0,g.value=void 0,t("pick",null)},be=qe=>Zt(qe)?qe.map($e=>$e.format(u.value)):qe.format(u.value),fe=qe=>$y(qe,u.value||"",f.value,o);function Se(qe,$e){if(n.unlinkPanels&&$e){const Le=qe?.year()||0,ot=qe?.month()||0,vt=$e.year(),Ut=$e.month();v.value=Le===vt&&ot===Ut?$e.add(1,xx):$e}else v.value=p.value.add(1,xx),$e&&(v.value=v.value.hour($e.hour()).minute($e.minute()).second($e.second()))}return t("set-picker-option",["isValidValue",ie]),t("set-picker-option",["parseUserInput",fe]),t("set-picker-option",["formatToString",be]),t("set-picker-option",["handleClear",ke]),(qe,$e)=>(L(),G("div",{class:oe([C(b).b(),C(w).b(),C(b).is("border",qe.border),C(b).is("disabled",qe.disabled),{"has-sidebar":qe.$slots.sidebar||C(Ae),"has-time":C(Kt)}])},[x("div",{class:oe(C(b).e("body-wrapper"))},[ht(qe.$slots,"sidebar",{class:oe(C(b).e("sidebar"))}),C(Ae)?(L(),G("div",{key:0,class:oe(C(b).e("sidebar"))},[(L(!0),G(Rt,null,un(C(d),(Le,ot)=>(L(),G("button",{key:ot,type:"button",disabled:qe.disabled,class:oe(C(b).e("shortcut")),onClick:vt=>C(E)(Le)},je(Le.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:oe(C(b).e("body"))},[C(Kt)?(L(),G("div",{key:0,class:oe(C(w).e("time-header"))},[x("span",{class:oe(C(w).e("editors-wrap"))},[x("span",{class:oe(C(w).e("time-picker-wrap"))},[He(C(js),{size:"small",disabled:C(m).selecting||qe.disabled,placeholder:C(M)("el.datepicker.startDate"),class:oe(C(w).e("editor")),"model-value":C(he),"validate-event":!1,onInput:Le=>tt(Le,"min"),onChange:Le=>ft(Le,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),cn((L(),G("span",{class:oe(C(w).e("time-picker-wrap"))},[He(C(js),{size:"small",class:oe(C(w).e("editor")),disabled:C(m).selecting||qe.disabled,placeholder:C(M)("el.datepicker.startTime"),"model-value":C(Q),"validate-event":!1,onFocus:Le=>Dt.value=!0,onInput:Le=>Mt(Le,"min"),onChange:Le=>Tn(Le,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),He(C(EE),{visible:Dt.value,format:C(De),"datetime-role":"start","parsed-value":p.value,onPick:Nn},null,8,["visible","format","parsed-value"])],2)),[[C(np),it]])],2),x("span",null,[He(C(Dn),null,{default:rt(()=>[He(C(Da))]),_:1})]),x("span",{class:oe([C(w).e("editors-wrap"),"is-right"])},[x("span",{class:oe(C(w).e("time-picker-wrap"))},[He(C(js),{size:"small",class:oe(C(w).e("editor")),disabled:C(m).selecting||qe.disabled,placeholder:C(M)("el.datepicker.endDate"),"model-value":C(Ee),readonly:!C(g),"validate-event":!1,onInput:Le=>tt(Le,"max"),onChange:Le=>ft(Le,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),cn((L(),G("span",{class:oe(C(w).e("time-picker-wrap"))},[He(C(js),{size:"small",class:oe(C(w).e("editor")),disabled:C(m).selecting||qe.disabled,placeholder:C(M)("el.datepicker.endTime"),"model-value":C(me),readonly:!C(g),"validate-event":!1,onFocus:Le=>C(g)&&(dt.value=!0),onInput:Le=>Mt(Le,"max"),onChange:Le=>Tn(Le,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),He(C(EE),{"datetime-role":"end",visible:dt.value,format:C(De),"parsed-value":v.value,onPick:We},null,8,["visible","format","parsed-value"])],2)),[[C(np),de]])],2)],2)):xe("v-if",!0),x("div",{class:oe([[C(b).e("content"),C(w).e("content")],"is-left"])},[x("div",{class:oe(C(w).e("header"))},[x("button",{type:"button",class:oe([C(b).e("icon-btn"),"d-arrow-left"]),"aria-label":C(M)("el.datepicker.prevYear"),disabled:qe.disabled,onClick:ue},[ht(qe.$slots,"prev-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(l0))]),_:1})])],10,["aria-label","disabled"]),cn(x("button",{type:"button",class:oe([C(b).e("icon-btn"),"arrow-left"]),"aria-label":C(M)("el.datepicker.prevMonth"),disabled:qe.disabled,onClick:Be},[ht(qe.$slots,"prev-month",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(Jf))]),_:1})])],10,["aria-label","disabled"]),[[kr,C(R)==="date"]]),qe.unlinkPanels?(L(),G("button",{key:0,type:"button",disabled:!C(Lt)||qe.disabled,class:oe([[C(b).e("icon-btn"),C(b).is("disabled",!C(Lt)||qe.disabled)],"d-arrow-right"]),"aria-label":C(M)("el.datepicker.nextYear"),onClick:ze},[ht(qe.$slots,"next-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(u0))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),qe.unlinkPanels&&C(R)==="date"?(L(),G("button",{key:1,type:"button",disabled:!C(Bt)||qe.disabled,class:oe([[C(b).e("icon-btn"),C(b).is("disabled",!C(Bt)||qe.disabled)],"arrow-right"]),"aria-label":C(M)("el.datepicker.nextMonth"),onClick:Ne},[ht(qe.$slots,"next-month",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(Da))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),x("div",null,[x("span",{role:"button",class:oe(C(w).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:$r(Le=>C(H)("year"),["enter"]),onClick:Le=>C(H)("year")},je(C(U)),43,["onKeydown","onClick"]),cn(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:oe([C(w).e("header-label"),{active:C(R)==="month"}]),onKeydown:$r(Le=>C(H)("month"),["enter"]),onClick:Le=>C(H)("month")},je(C(M)(`el.datepicker.month${p.value.month()+1}`)),43,["onKeydown","onClick"]),[[kr,C(R)==="date"]])])],2),C(R)==="date"?(L(),yt(PL,{key:0,ref_key:"leftCurrentViewRef",ref:W,"selection-mode":"range",date:p.value,"min-date":C(g),"max-date":C(y),"range-state":C(m),"disabled-date":C(i),"cell-class-name":C(a),"show-week-number":qe.showWeekNumber,disabled:qe.disabled,onChangerange:C(A),onPick:pt,onSelect:C(D)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):xe("v-if",!0),C(R)==="year"?(L(),yt(rA,{key:1,ref_key:"leftCurrentViewRef",ref:W,"selection-mode":"year",date:p.value,"disabled-date":C(i),"parsed-value":qe.parsedValue,disabled:qe.disabled,onPick:C(X)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):xe("v-if",!0),C(R)==="month"?(L(),yt(nA,{key:2,ref_key:"leftCurrentViewRef",ref:W,"selection-mode":"month",date:p.value,"parsed-value":qe.parsedValue,"disabled-date":C(i),disabled:qe.disabled,onPick:C(Z)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):xe("v-if",!0)],2),x("div",{class:oe([[C(b).e("content"),C(w).e("content")],"is-right"])},[x("div",{class:oe([C(w).e("header"),C(b).is("disabled",!C(Lt)||qe.disabled)])},[qe.unlinkPanels?(L(),G("button",{key:0,type:"button",disabled:!C(Lt)||qe.disabled,class:oe([C(b).e("icon-btn"),"d-arrow-left"]),"aria-label":C(M)("el.datepicker.prevYear"),onClick:Re},[ht(qe.$slots,"prev-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(l0))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),qe.unlinkPanels&&C(N)==="date"?(L(),G("button",{key:1,type:"button",disabled:!C(Bt)||qe.disabled,class:oe([C(b).e("icon-btn"),"arrow-left"]),"aria-label":C(M)("el.datepicker.prevMonth"),onClick:gt},[ht(qe.$slots,"prev-month",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(Jf))]),_:1})])],10,["disabled","aria-label"])):xe("v-if",!0),x("button",{type:"button","aria-label":C(M)("el.datepicker.nextYear"),class:oe([C(b).e("icon-btn"),"d-arrow-right"]),disabled:qe.disabled,onClick:Me},[ht(qe.$slots,"next-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(u0))]),_:1})])],10,["aria-label","disabled"]),cn(x("button",{type:"button",class:oe([C(b).e("icon-btn"),"arrow-right"]),disabled:qe.disabled,"aria-label":C(M)("el.datepicker.nextMonth"),onClick:Fe},[ht(qe.$slots,"next-month",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(Da))]),_:1})])],10,["disabled","aria-label"]),[[kr,C(N)==="date"]]),x("div",null,[x("span",{role:"button",class:oe(C(w).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:$r(Le=>C(re)("year"),["enter"]),onClick:Le=>C(re)("year")},je(C(F)),43,["onKeydown","onClick"]),cn(x("span",{role:"button","aria-live":"polite",tabindex:"0",class:oe([C(w).e("header-label"),{active:C(N)==="month"}]),onKeydown:$r(Le=>C(re)("month"),["enter"]),onClick:Le=>C(re)("month")},je(C(M)(`el.datepicker.month${v.value.month()+1}`)),43,["onKeydown","onClick"]),[[kr,C(N)==="date"]])])],2),C(N)==="date"?(L(),yt(PL,{key:0,ref_key:"rightCurrentViewRef",ref:B,"selection-mode":"range",date:v.value,"min-date":C(g),"max-date":C(y),"range-state":C(m),"disabled-date":C(i),"cell-class-name":C(a),"show-week-number":qe.showWeekNumber,disabled:qe.disabled,onChangerange:C(A),onPick:pt,onSelect:C(D)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):xe("v-if",!0),C(N)==="year"?(L(),yt(rA,{key:1,ref_key:"rightCurrentViewRef",ref:B,"selection-mode":"year",date:v.value,"disabled-date":C(i),"parsed-value":qe.parsedValue,disabled:qe.disabled,onPick:C(te)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):xe("v-if",!0),C(N)==="month"?(L(),yt(nA,{key:2,ref_key:"rightCurrentViewRef",ref:B,"selection-mode":"month",date:v.value,"parsed-value":qe.parsedValue,"disabled-date":C(i),disabled:qe.disabled,onPick:C(le)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):xe("v-if",!0)],2)],2)],2),qe.showFooter&&C(Kt)&&(qe.showConfirm||C(l))?(L(),G("div",{key:0,class:oe(C(b).e("footer"))},[C(l)?(L(),yt(C(Xa),{key:0,text:"",size:"small",class:oe(C(b).e("link-btn")),onClick:ke},{default:rt(()=>[bn(je(C(M)("el.datepicker.clear")),1)]),_:1},8,["class"])):xe("v-if",!0),qe.showConfirm?(L(),yt(C(Xa),{key:1,plain:"",size:"small",class:oe(C(b).e("link-btn")),disabled:C(an),onClick:Le=>C(S)(!1)},{default:rt(()=>[bn(je(C(M)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])):xe("v-if",!0)],2)):xe("v-if",!0)],2))}});var fqe=on(dqe,[["__file","panel-date-range.vue"]]);const pqe=Jt({...YH}),hqe=["pick","set-picker-option","calendar-change"],gqe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Gr(),o=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=ee(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=ee(()=>`${n.value.year()} ${r("el.datepicker.year")}`),d=ee(()=>t.value.year()),c=ee(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:o,rightNextYear:i,leftNextYear:a,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:d,rightYear:c}},Sx="year",vqe=nt({name:"DatePickerMonthRange"}),mqe=nt({...vqe,props:pqe,emits:hqe,setup(e,{emit:t}){const n=e,{lang:r}=Gr(),o=dn(Wc),i=dn($5,void 0),{shortcuts:a,disabledDate:s,cellClassName:l}=o.props,u=co(o.props,"format"),d=co(o.props,"defaultValue"),c=K(lr().locale(r.value)),f=K(lr().locale(r.value).add(1,Sx)),{minDate:p,maxDate:v,rangeState:h,ppNs:g,drpNs:y,handleChangeRange:m,handleRangeConfirm:b,handleShortcutClick:w,onSelect:A,onReset:S}=XH(n,{defaultValue:d,leftDate:c,rightDate:f,unit:Sx,onParsedValueChanged:U}),E=ee(()=>!!a.length),{leftPrevYear:D,rightNextYear:_,leftNextYear:M,rightPrevYear:O,leftLabel:k,rightLabel:R,leftYear:N,rightYear:W}=gqe({unlinkPanels:co(n,"unlinkPanels"),leftDate:c,rightDate:f}),B=ee(()=>n.unlinkPanels&&W.value>N.value+1),z=(F,H=!0)=>{const re=F.minDate,X=F.maxDate;v.value===X&&p.value===re||(t("calendar-change",[re.toDate(),X&&X.toDate()]),v.value=X,p.value=re,H&&b())},j=()=>{c.value=pD(C(d),{lang:C(r),unit:"year",unlinkPanels:n.unlinkPanels})[0],f.value=c.value.add(1,"year"),t("pick",null)},q=F=>Zt(F)?F.map(H=>H.format(u.value)):F.format(u.value),Y=F=>$y(F,u.value,r.value,i);function U(F,H){if(n.unlinkPanels&&H){const re=F?.year()||0,X=H.year();f.value=re===X?H.add(1,Sx):H}else f.value=c.value.add(1,Sx)}return St(()=>n.visible,F=>{!F&&h.value.selecting&&(S(n.parsedValue),A(!1))}),t("set-picker-option",["isValidValue",tA]),t("set-picker-option",["formatToString",q]),t("set-picker-option",["parseUserInput",Y]),t("set-picker-option",["handleClear",j]),(F,H)=>(L(),G("div",{class:oe([C(g).b(),C(y).b(),C(g).is("border",F.border),C(g).is("disabled",F.disabled),{"has-sidebar":!!F.$slots.sidebar||C(E)}])},[x("div",{class:oe(C(g).e("body-wrapper"))},[ht(F.$slots,"sidebar",{class:oe(C(g).e("sidebar"))}),C(E)?(L(),G("div",{key:0,class:oe(C(g).e("sidebar"))},[(L(!0),G(Rt,null,un(C(a),(re,X)=>(L(),G("button",{key:X,type:"button",class:oe(C(g).e("shortcut")),disabled:F.disabled,onClick:te=>C(w)(re)},je(re.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:oe(C(g).e("body"))},[x("div",{class:oe([[C(g).e("content"),C(y).e("content")],"is-left"])},[x("div",{class:oe(C(y).e("header"))},[x("button",{type:"button",class:oe([C(g).e("icon-btn"),"d-arrow-left"]),disabled:F.disabled,onClick:C(D)},[ht(F.$slots,"prev-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(l0))]),_:1})])],10,["disabled","onClick"]),F.unlinkPanels?(L(),G("button",{key:0,type:"button",disabled:!C(B)||F.disabled,class:oe([[C(g).e("icon-btn"),{[C(g).is("disabled")]:!C(B)}],"d-arrow-right"]),onClick:C(M)},[ht(F.$slots,"next-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(u0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("div",null,je(C(k)),1)],2),He(nA,{"selection-mode":"range",date:c.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(s),disabled:F.disabled,"cell-class-name":C(l),onChangerange:C(m),onPick:z,onSelect:C(A)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),x("div",{class:oe([[C(g).e("content"),C(y).e("content")],"is-right"])},[x("div",{class:oe(C(y).e("header"))},[F.unlinkPanels?(L(),G("button",{key:0,type:"button",disabled:!C(B)||F.disabled,class:oe([[C(g).e("icon-btn"),{"is-disabled":!C(B)}],"d-arrow-left"]),onClick:C(O)},[ht(F.$slots,"prev-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(l0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("button",{type:"button",class:oe([C(g).e("icon-btn"),"d-arrow-right"]),disabled:F.disabled,onClick:C(_)},[ht(F.$slots,"next-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(u0))]),_:1})])],10,["disabled","onClick"]),x("div",null,je(C(R)),1)],2),He(nA,{"selection-mode":"range",date:f.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(s),disabled:F.disabled,"cell-class-name":C(l),onChangerange:C(m),onPick:z,onSelect:C(A)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var yqe=on(mqe,[["__file","panel-month-range.vue"]]);const bqe=Jt({...YH}),wqe=["pick","set-picker-option","calendar-change"],Aqe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const r=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},o=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},i=()=>{t.value=t.value.add(10,"year")},a=()=>{n.value=n.value.subtract(10,"year")},s=ee(()=>{const c=Math.floor(t.value.year()/10)*10;return`${c}-${c+9}`}),l=ee(()=>{const c=Math.floor(n.value.year()/10)*10;return`${c}-${c+9}`}),u=ee(()=>Math.floor(t.value.year()/10)*10+9),d=ee(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:r,rightNextYear:o,leftNextYear:i,rightPrevYear:a,leftLabel:s,rightLabel:l,leftYear:u,rightYear:d}},Lm=10,P2="year",Cqe=nt({name:"DatePickerYearRange"}),xqe=nt({...Cqe,props:bqe,emits:wqe,setup(e,{emit:t}){const n=e,{lang:r}=Gr(),o=K(lr().locale(r.value)),i=K(lr().locale(r.value).add(Lm,P2)),a=dn($5,void 0),s=dn(Wc),{shortcuts:l,disabledDate:u,cellClassName:d}=s.props,c=co(s.props,"format"),f=co(s.props,"defaultValue"),{minDate:p,maxDate:v,rangeState:h,ppNs:g,drpNs:y,handleChangeRange:m,handleRangeConfirm:b,handleShortcutClick:w,onSelect:A,onReset:S}=XH(n,{defaultValue:f,leftDate:o,rightDate:i,step:Lm,unit:P2,onParsedValueChanged:X}),{leftPrevYear:E,rightNextYear:D,leftNextYear:_,rightPrevYear:M,leftLabel:O,rightLabel:k,leftYear:R,rightYear:N}=Aqe({unlinkPanels:co(n,"unlinkPanels"),leftDate:o,rightDate:i}),W=ee(()=>!!l.length),B=ee(()=>[g.b(),y.b(),g.is("border",n.border),g.is("disabled",n.disabled),{"has-sidebar":!!ga().sidebar||W.value}]),z=ee(()=>({content:[g.e("content"),y.e("content"),"is-left"],arrowLeftBtn:[g.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[g.e("icon-btn"),{[g.is("disabled")]:!q.value},"d-arrow-right"]})),j=ee(()=>({content:[g.e("content"),y.e("content"),"is-right"],arrowLeftBtn:[g.e("icon-btn"),{"is-disabled":!q.value},"d-arrow-left"],arrowRightBtn:[g.e("icon-btn"),"d-arrow-right"]})),q=ee(()=>n.unlinkPanels&&N.value>R.value+1),Y=(te,Z=!0)=>{const le=te.minDate,ve=te.maxDate;v.value===ve&&p.value===le||(t("calendar-change",[le.toDate(),ve&&ve.toDate()]),v.value=ve,p.value=le,Z&&b())},U=te=>$y(te,c.value,r.value,a),F=te=>Zt(te)?te.map(Z=>Z.format(c.value)):te.format(c.value),H=te=>tA(te)&&(u?!u(te[0].toDate())&&!u(te[1].toDate()):!0),re=()=>{const te=pD(C(f),{lang:C(r),step:Lm,unit:P2,unlinkPanels:n.unlinkPanels});o.value=te[0],i.value=te[1],t("pick",null)};function X(te,Z){if(n.unlinkPanels&&Z){const le=te?.year()||0,ve=Z.year();i.value=le+Lm>ve?Z.add(Lm,P2):Z}else i.value=o.value.add(Lm,P2)}return St(()=>n.visible,te=>{!te&&h.value.selecting&&(S(n.parsedValue),A(!1))}),t("set-picker-option",["isValidValue",H]),t("set-picker-option",["parseUserInput",U]),t("set-picker-option",["formatToString",F]),t("set-picker-option",["handleClear",re]),(te,Z)=>(L(),G("div",{class:oe(C(B))},[x("div",{class:oe(C(g).e("body-wrapper"))},[ht(te.$slots,"sidebar",{class:oe(C(g).e("sidebar"))}),C(W)?(L(),G("div",{key:0,class:oe(C(g).e("sidebar"))},[(L(!0),G(Rt,null,un(C(l),(le,ve)=>(L(),G("button",{key:ve,type:"button",class:oe(C(g).e("shortcut")),disabled:te.disabled,onClick:Pe=>C(w)(le)},je(le.text),11,["disabled","onClick"]))),128))],2)):xe("v-if",!0),x("div",{class:oe(C(g).e("body"))},[x("div",{class:oe(C(z).content)},[x("div",{class:oe(C(y).e("header"))},[x("button",{type:"button",class:oe(C(z).arrowLeftBtn),disabled:te.disabled,onClick:C(E)},[ht(te.$slots,"prev-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(l0))]),_:1})])],10,["disabled","onClick"]),te.unlinkPanels?(L(),G("button",{key:0,type:"button",disabled:!C(q)||te.disabled,class:oe(C(z).arrowRightBtn),onClick:C(_)},[ht(te.$slots,"next-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(u0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("div",null,je(C(O)),1)],2),He(rA,{"selection-mode":"range",date:o.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(u),disabled:te.disabled,"cell-class-name":C(d),onChangerange:C(m),onPick:Y,onSelect:C(A)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),x("div",{class:oe(C(j).content)},[x("div",{class:oe(C(y).e("header"))},[te.unlinkPanels?(L(),G("button",{key:0,type:"button",disabled:!C(q)||te.disabled,class:oe(C(j).arrowLeftBtn),onClick:C(M)},[ht(te.$slots,"prev-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(l0))]),_:1})])],10,["disabled","onClick"])):xe("v-if",!0),x("button",{type:"button",class:oe(C(j).arrowRightBtn),disabled:te.disabled,onClick:C(D)},[ht(te.$slots,"next-year",{},()=>[He(C(Dn),null,{default:rt(()=>[He(C(u0))]),_:1})])],10,["disabled","onClick"]),x("div",null,je(C(k)),1)],2),He(rA,{"selection-mode":"range",date:i.value,"min-date":C(p),"max-date":C(v),"range-state":C(h),"disabled-date":C(u),disabled:te.disabled,"cell-class-name":C(d),onChangerange:C(m),onPick:Y,onSelect:C(A)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var Sqe=on(xqe,[["__file","panel-year-range.vue"]]);const Eqe=function(e){switch(e){case"daterange":case"datetimerange":return fqe;case"monthrange":return yqe;case"yearrange":return Sqe;default:return sqe}};function kqe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vo(e)}lr.extend(Y1e);lr.extend(EVe);lr.extend(HH);lr.extend(DVe);lr.extend(PVe);lr.extend(LVe);lr.extend($Ve);lr.extend(VVe);var Tqe=nt({name:"ElDatePickerPanel",install:null,props:qVe,emits:[Qn,"calendar-change","panel-change","visible-change","pick"],setup(e,{slots:t,emit:n}){const r=Vt("picker-panel"),o=dn(Wc,void 0);if(Vr(o)){const d=Wr({...Oa(e)});_r(Wc,{props:d})}_r(GH,{slots:t,pickerNs:r});const{parsedValue:i,onCalendarChange:a,onPanelChange:s,onSetPickerOption:l,onPick:u}=dn(Eye,()=>kye(e,n),!0);return()=>{const d=Eqe(e.type);return He(d,vr(e,{parsedValue:i.value,"onSet-picker-option":l,"onCalendar-change":a,"onPanel-change":s,onPick:u}),kqe(t)?t:{default:()=>[t]})}}});const Nye=or(Tqe),_qe=Jt({...qH,type:{type:ct(String),default:"date"}});function Dqe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vo(e)}var Iqe=nt({name:"ElDatePicker",install:null,props:_qe,emits:[Qn],setup(e,{expose:t,emit:n,slots:r}){const o=ee(()=>!e.format);_r($5,o),_r(WH,Wr(co(e,"popperOptions")));const i=K();t({focus:()=>{var l;(l=i.value)==null||l.focus()},blur:()=>{var l;(l=i.value)==null||l.blur()},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n(Qn,l)};return()=>{var l;const u=(l=e.format)!=null?l:oVe[e.type]||ph;return He(_ye,vr(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:d=>He(Nye,vr({border:!1},d),Dqe(r)?r:{default:()=>[r]}),"range-separator":r["range-separator"]})}}});const Oqe=or(Iqe),JH=Symbol("elDescriptions");var N2=nt({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:dn(JH,{})}},render(){var e;const t=yje(this.cell),n=(((e=this.cell)==null?void 0:e.dirs)||[]).map(y=>{const{dir:m,arg:b,modifiers:w,value:A}=y;return[m,A,b,w]}),{border:r,direction:o}=this.descriptions,i=o==="vertical",a=()=>{var y,m,b;return((b=(m=(y=this.cell)==null?void 0:y.children)==null?void 0:m.label)==null?void 0:b.call(m))||t.label},s=()=>{var y,m,b;return(b=(m=(y=this.cell)==null?void 0:y.children)==null?void 0:m.default)==null?void 0:b.call(m)},l=t.span,u=t.rowspan,d=t.align?`is-${t.align}`:"",c=t.labelAlign?`is-${t.labelAlign}`:d,f=t.className,p=t.labelClassName,v=this.type==="label"&&(t.labelWidth||this.descriptions.labelWidth)||t.width,h={width:_i(v),minWidth:_i(t.minWidth)},g=Vt("descriptions");switch(this.type){case"label":return cn(jn(this.tag,{style:h,class:[g.e("cell"),g.e("label"),g.is("bordered-label",r),g.is("vertical-label",i),c,p],colSpan:i?l:1,rowspan:i?1:u},a()),n);case"content":return cn(jn(this.tag,{style:h,class:[g.e("cell"),g.e("content"),g.is("bordered-content",r),g.is("vertical-content",i),d,f],colSpan:i?l:l*2-1,rowspan:i?u*2-1:u},s()),n);default:{const y=a(),m={},b=_i(t.labelWidth||this.descriptions.labelWidth);return b&&(m.width=b,m.display="inline-block"),cn(jn("td",{style:h,class:[g.e("cell"),d],colSpan:l,rowspan:u},[ea(y)?void 0:jn("span",{style:m,class:[g.e("label"),p]},y),jn("span",{class:[g.e("content"),f]},s())]),n)}}}});const Mqe=Jt({row:{type:ct(Array),default:()=>[]}}),Pqe=nt({name:"ElDescriptionsRow"}),Nqe=nt({...Pqe,props:Mqe,setup(e){const t=dn(JH,{});return(n,r)=>C(t).direction==="vertical"?(L(),G(Rt,{key:0},[x("tr",null,[(L(!0),G(Rt,null,un(n.row,(o,i)=>(L(),yt(C(N2),{key:`tr1-${i}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),x("tr",null,[(L(!0),G(Rt,null,un(n.row,(o,i)=>(L(),yt(C(N2),{key:`tr2-${i}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(L(),G("tr",{key:1},[(L(!0),G(Rt,null,un(n.row,(o,i)=>(L(),G(Rt,{key:`tr3-${i}`},[C(t).border?(L(),G(Rt,{key:0},[He(C(N2),{cell:o,tag:"td",type:"label"},null,8,["cell"]),He(C(N2),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(L(),yt(C(N2),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var Rqe=on(Nqe,[["__file","descriptions-row.vue"]]);const Bqe=Jt({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Aa,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],default:""}}),Rye="ElDescriptionsItem",Lqe=nt({name:"ElDescriptions"}),Fqe=nt({...Lqe,props:Bqe,setup(e){const t=e,n=Vt("descriptions"),r=ha(),o=ga();_r(JH,t);const i=ee(()=>[n.b(),n.m(r.value)]),a=(l,u,d,c=!1)=>(l.props||(l.props={}),u>d&&(l.props.span=d),c&&(l.props.span=u),l),s=()=>{if(!o.default)return[];const l=Sd(o.default()).filter(v=>{var h;return((h=v?.type)==null?void 0:h.name)===Rye}),u=[];let d=[],c=t.column,f=0;const p=[];return l.forEach((v,h)=>{var g,y,m;const b=((g=v.props)==null?void 0:g.span)||1,w=((y=v.props)==null?void 0:y.rowspan)||1,A=u.length;if(p[A]||(p[A]=0),w>1)for(let S=1;S<w;S++)p[m=A+S]||(p[m]=0),p[A+S]++,f++;if(p[A]>0&&(c-=p[A],p[A]=0),h<l.length-1&&(f+=b>c?c:b),h===l.length-1){const S=t.column-f%t.column;d.push(a(v,S,c,!0)),u.push(d);return}b<c?(c-=b,d.push(v)):(d.push(a(v,b,c)),u.push(d),c=t.column,d=[])}),u};return(l,u)=>(L(),G("div",{class:oe(C(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(L(),G("div",{key:0,class:oe(C(n).e("header"))},[x("div",{class:oe(C(n).e("title"))},[ht(l.$slots,"title",{},()=>[bn(je(l.title),1)])],2),x("div",{class:oe(C(n).e("extra"))},[ht(l.$slots,"extra",{},()=>[bn(je(l.extra),1)])],2)],2)):xe("v-if",!0),x("div",{class:oe(C(n).e("body"))},[x("table",{class:oe([C(n).e("table"),C(n).is("bordered",l.border)])},[x("tbody",null,[(L(!0),G(Rt,null,un(s(),(d,c)=>(L(),yt(Rqe,{key:c,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var Uqe=on(Fqe,[["__file","description.vue"]]);const QJ=["left","center","right"],zqe=Jt({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],default:""},align:{type:String,values:QJ,default:"left"},labelAlign:{type:String,values:QJ},className:{type:String,default:""},labelClassName:{type:String,default:""}}),Bye=nt({name:Rye,props:zqe}),$qe=or(Uqe,{DescriptionsItem:Bye}),jqe=vi(Bye),eW=e=>{if(!e)return{onClick:bo,onMousedown:bo,onMouseup:bo};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},Hqe=Jt({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:ct([String,Array,Object])},zIndex:{type:ct([String,Number])}}),Wqe={click:e=>e instanceof MouseEvent},Vqe="overlay";var qqe=nt({name:"ElOverlay",props:Hqe,emits:Wqe,setup(e,{slots:t,emit:n}){const r=Vt(Vqe),o=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:s}=eW(e.customMaskEvent?void 0:o);return()=>e.mask?He("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:s},[ht(t,"default")],Nu.STYLE|Nu.CLASS|Nu.PROPS,["onClick","onMouseup","onMousedown"]):jn("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ht(t,"default")])}});const tW=qqe,Lye=Symbol("dialogInjectionKey"),ZJ="dialog-fade",Fye=Jt({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:wo},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),Gqe={close:()=>!0},Uye=(e,t,n,r)=>{const o={offsetX:0,offsetY:0},i=K(!1),a=(f,p)=>{if(e.value){const{offsetX:v,offsetY:h}=o,g=e.value.getBoundingClientRect(),y=g.left,m=g.top,b=g.width,w=g.height,A=document.documentElement.clientWidth,S=document.documentElement.clientHeight,E=-y+v,D=-m+h,_=A-y-b+v,M=S-m-(w<S?w:0)+h;r?.value||(f=Math.min(Math.max(f,E),_),p=Math.min(Math.max(p,D),M)),o.offsetX=f,o.offsetY=p,e.value.style.transform=`translate(${_i(f)}, ${_i(p)})`}},s=f=>{const p=f.clientX,v=f.clientY,{offsetX:h,offsetY:g}=o,y=b=>{i.value||(i.value=!0);const w=h+b.clientX-p,A=g+b.clientY-v;a(w,A)},m=()=>{i.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",m)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",m)},l=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",c))},u=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",c))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},c=()=>{const{offsetX:f,offsetY:p}=o;a(f,p)};return qn(()=>{Es(()=>{n.value?l():u()})}),Jr(()=>{u()}),{isDragging:i,resetPosition:d,updatePosition:c}},hD=(...e)=>t=>{e.forEach(n=>{Rn(n)?n(t):n.value=t})},Kqe=nt({name:"ElDialogContent"}),Yqe=nt({...Kqe,props:Fye,emits:Gqe,setup(e,{expose:t}){const n=e,{t:r}=Gr(),{Close:o}=l1e,{dialogRef:i,headerRef:a,bodyId:s,ns:l,style:u}=dn(Lye),{focusTrapRef:d}=dn(IH),c=hD(d,i),f=ee(()=>!!n.draggable),p=ee(()=>!!n.overflow),{resetPosition:v,updatePosition:h,isDragging:g}=Uye(i,a,f,p),y=ee(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",f.value),l.is("dragging",g.value),l.is("align-center",!!n.alignCenter),{[l.m("center")]:n.center}]);return t({resetPosition:v,updatePosition:h}),(m,b)=>(L(),G("div",{ref:C(c),class:oe(C(y)),style:rn(C(u)),tabindex:"-1"},[x("header",{ref_key:"headerRef",ref:a,class:oe([C(l).e("header"),m.headerClass,{"show-close":m.showClose}])},[ht(m.$slots,"header",{},()=>[x("span",{role:"heading","aria-level":m.ariaLevel,class:oe(C(l).e("title"))},je(m.title),11,["aria-level"])]),m.showClose?(L(),G("button",{key:0,"aria-label":C(r)("el.dialog.close"),class:oe(C(l).e("headerbtn")),type:"button",onClick:w=>m.$emit("close")},[He(C(Dn),{class:oe(C(l).e("close"))},{default:rt(()=>[(L(),yt(mr(m.closeIcon||C(o))))]),_:1},8,["class"])],10,["aria-label","onClick"])):xe("v-if",!0)],2),x("div",{id:C(s),class:oe([C(l).e("body"),m.bodyClass])},[ht(m.$slots,"default")],10,["id"]),m.$slots.footer?(L(),G("footer",{key:0,class:oe([C(l).e("footer"),m.footerClass])},[ht(m.$slots,"footer")],2)):xe("v-if",!0)],6))}});var Qqe=on(Yqe,[["__file","dialog-content.vue"]]);const zye=Jt({...Fye,appendToBody:Boolean,appendTo:{type:uD.to.type,default:"body"},beforeClose:{type:ct(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:ct([String,Object]),default:void 0}}),$ye={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Qn]:e=>Eo(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},nW=(e,t={})=>{Uo(e)||na("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Vt("popup"),r=ee(()=>n.bm("parent","hidden"));if(!Xr||Ol(document.body,r.value))return;let o=0,i=!1,a="0";const s=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=a,Ws(document.body,r.value))},200)};St(e,l=>{if(!l){s();return}i=!Ol(document.body,r.value),i&&(a=document.body.style.width,zu(document.body,r.value)),o=Qme(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=Mf(document.body,"overflowY");o>0&&(u||d==="scroll")&&i&&(document.body.style.width=`calc(100% - ${o}px)`)}),F0e(()=>s())},jye=(e,t)=>{var n;const o=br().emit,{nextZIndex:i}=Fb();let a="";const s=ps(),l=ps(),u=K(!1),d=K(!1),c=K(!1),f=K((n=e.zIndex)!=null?n:i());let p,v;const h=Ub(),g=ee(()=>{var U,F;return(F=(U=h.value)==null?void 0:U.namespace)!=null?F:J4}),y=ee(()=>{var U;return(U=h.value)==null?void 0:U.dialog}),m=ee(()=>{const U={},F=`--${g.value}-dialog`;return e.fullscreen||(e.top&&(U[`${F}-margin-top`]=e.top),e.width&&(U[`${F}-width`]=_i(e.width))),U}),b=ee(()=>{var U,F,H;return((H=(F=e.draggable)!=null?F:(U=y.value)==null?void 0:U.draggable)!=null?H:!1)&&!e.fullscreen}),w=ee(()=>{var U,F,H;return(H=(F=e.alignCenter)!=null?F:(U=y.value)==null?void 0:U.alignCenter)!=null?H:!1}),A=ee(()=>{var U,F,H;return(H=(F=e.overflow)!=null?F:(U=y.value)==null?void 0:U.overflow)!=null?H:!1}),S=ee(()=>w.value?{display:"flex"}:{}),E=ee(()=>{var U,F,H;const re=(H=(F=e.transition)!=null?F:(U=y.value)==null?void 0:U.transition)!=null?H:ZJ,X={name:re,onAfterEnter:D,onBeforeLeave:M,onAfterLeave:_};if(dr(re)){const te={...re},Z=(le,ve)=>Pe=>{Zt(le)?le.forEach(Ae=>{Rn(Ae)&&Ae(Pe)}):Rn(le)&&le(Pe),ve()};return te.onAfterEnter=Z(te.onAfterEnter,D),te.onBeforeLeave=Z(te.onBeforeLeave,M),te.onAfterLeave=Z(te.onAfterLeave,_),te.name||(te.name=ZJ),te}return X});function D(){o("opened")}function _(){o("closed"),o(Qn,!1),e.destroyOnClose&&(c.value=!1)}function M(){o("close")}function O(){v?.(),p?.(),e.openDelay&&e.openDelay>0?{stop:p}=Mv(()=>W(),e.openDelay):W()}function k(){p?.(),v?.(),e.closeDelay&&e.closeDelay>0?{stop:v}=Mv(()=>B(),e.closeDelay):B()}function R(){function U(F){F||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(U):k()}function N(){e.closeOnClickModal&&R()}function W(){Xr&&(u.value=!0)}function B(){u.value=!1}function z(){o("openAutoFocus")}function j(){o("closeAutoFocus")}function q(U){var F;((F=U.detail)==null?void 0:F.focusReason)==="pointer"&&U.preventDefault()}e.lockScroll&&nW(u);function Y(){e.closeOnPressEscape&&R()}return St(()=>e.zIndex,()=>{var U;f.value=(U=e.zIndex)!=null?U:i()}),St(()=>e.modelValue,U=>{var F;U?(d.value=!1,O(),c.value=!0,f.value=(F=e.zIndex)!=null?F:i(),Yt(()=>{o("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):u.value&&k()}),St(()=>e.fullscreen,U=>{t.value&&(U?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),qn(()=>{e.modelValue&&(u.value=!0,c.value=!0,O())}),{afterEnter:D,afterLeave:_,beforeLeave:M,handleClose:R,onModalClick:N,close:k,doClose:B,onOpenAutoFocus:z,onCloseAutoFocus:j,onCloseRequested:Y,onFocusoutPrevented:q,titleId:s,bodyId:l,closed:d,style:m,overlayDialogStyle:S,rendered:c,visible:u,zIndex:f,transitionConfig:E,_draggable:b,_alignCenter:w,_overflow:A}},Zqe=nt({name:"ElDialog",inheritAttrs:!1}),Xqe=nt({...Zqe,props:zye,emits:$ye,setup(e,{expose:t}){const n=e,r=ga();jf({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},ee(()=>!!r.title));const o=Vt("dialog"),i=K(),a=K(),s=K(),{visible:l,titleId:u,bodyId:d,style:c,overlayDialogStyle:f,rendered:p,transitionConfig:v,zIndex:h,_draggable:g,_alignCenter:y,_overflow:m,handleClose:b,onModalClick:w,onOpenAutoFocus:A,onCloseAutoFocus:S,onCloseRequested:E,onFocusoutPrevented:D}=jye(n,i);_r(Lye,{dialogRef:i,headerRef:a,bodyId:d,ns:o,rendered:p,style:c});const _=eW(w),M=ee(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:l,dialogContentRef:s,resetPosition:()=>{var k;(k=s.value)==null||k.resetPosition()},handleClose:b}),(k,R)=>(L(),yt(C(jb),{to:k.appendTo,disabled:k.appendTo!=="body"?!1:!k.appendToBody},{default:rt(()=>[He(Ki,vr(C(v),{persisted:""}),{default:rt(()=>{var N;return[cn(He(C(tW),{"custom-mask-event":"",mask:k.modal,"overlay-class":[(N=k.modalClass)!=null?N:"",`${C(o).namespace.value}-modal-dialog`,C(o).is("penetrable",C(M))],"z-index":C(h)},{default:rt(()=>[x("div",{role:"dialog","aria-modal":"true","aria-label":k.title||void 0,"aria-labelledby":k.title?void 0:C(u),"aria-describedby":C(d),class:oe(`${C(o).namespace.value}-overlay-dialog`),style:rn(C(f)),onClick:C(_).onClick,onMousedown:C(_).onMousedown,onMouseup:C(_).onMouseup},[He(C($b),{loop:"",trapped:C(l),"focus-start-el":"container",onFocusAfterTrapped:C(A),onFocusAfterReleased:C(S),onFocusoutPrevented:C(D),onReleaseRequested:C(E)},{default:rt(()=>[C(p)?(L(),yt(Qqe,vr({key:0,ref_key:"dialogContentRef",ref:s},k.$attrs,{center:k.center,"align-center":C(y),"close-icon":k.closeIcon,draggable:C(g),overflow:C(m),fullscreen:k.fullscreen,"header-class":k.headerClass,"body-class":k.bodyClass,"footer-class":k.footerClass,"show-close":k.showClose,title:k.title,"aria-level":k.headerAriaLevel,onClose:C(b)}),Hl({header:rt(()=>[k.$slots.title?ht(k.$slots,"title",{key:1}):ht(k.$slots,"header",{key:0,close:C(b),titleId:C(u),titleClass:C(o).e("title")})]),default:rt(()=>[ht(k.$slots,"default")]),_:2},[k.$slots.footer?{name:"footer",fn:rt(()=>[ht(k.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):xe("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[kr,C(l)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});var Jqe=on(Xqe,[["__file","dialog.vue"]]);const Hye=or(Jqe),eGe=Jt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ct(String),default:"solid"}}),tGe=nt({name:"ElDivider"}),nGe=nt({...tGe,props:eGe,setup(e){const t=e,n=Vt("divider"),r=ee(()=>n.cssVar({"border-style":t.borderStyle}));return(o,i)=>(L(),G("div",{class:oe([C(n).b(),C(n).m(o.direction)]),style:rn(C(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(L(),G("div",{key:0,class:oe([C(n).e("text"),C(n).is(o.contentPosition)])},[ht(o.$slots,"default")],2)):xe("v-if",!0)],6))}});var rGe=on(nGe,[["__file","divider.vue"]]);const Wye=or(rGe),oGe=Jt({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),Vye=Symbol("splitterRootContextKey");function iGe(e){const t=K(),{width:n,height:r}=ZRe(t),o=ee(()=>e.value==="horizontal"?n.value:r.value);return{containerEl:t,containerSize:o}}function rW(e){return Number(e.slice(0,-1))/100}function oW(e){return Number(e.slice(0,-2))}function iW(e){return In(e)&&e.endsWith("%")}function aW(e){return In(e)&&e.endsWith("px")}function aGe(e,t){const n=ee(()=>e.value.map(s=>s.size)),r=ee(()=>e.value.length),o=K([]);St([n,r,t],()=>{var s;let l=[],u=0;for(let c=0;c<r.value;c+=1){const f=(s=e.value[c])==null?void 0:s.size;if(iW(f))l[c]=rW(f);else if(aW(f))l[c]=oW(f)/t.value;else if(f||f===0){const p=Number(f);Number.isNaN(p)||(l[c]=p/t.value)}else u+=1,l[c]=void 0}const d=l.reduce((c,f)=>c+(f||0),0);if(d>1||!u){const c=1/d;l=l.map(f=>f===void 0?0:f*c)}else{const c=(1-d)/u;l=l.map(f=>f===void 0?c:f)}o.value=l});const i=s=>s*t.value,a=ee(()=>o.value.map(i));return{percentSizes:o,pxSizes:a}}function sGe(e,t,n,r){const o=g=>g*t.value||0;function i(g,y){return iW(g)?o(rW(g)):aW(g)?oW(g):g??y}const a=K(0),s=K(null);let l=[],u=bo;const d=ee(()=>e.value.map(g=>[g.min,g.max]));St(r,()=>{if(a.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const c=g=>{a.value=0,s.value={index:g,confirmed:!1},l=n.value},f=(g,y)=>{var m,b;let w=null;if((!s.value||!s.value.confirmed)&&y!==0){if(y>0)w=g,s.value={index:g,confirmed:!0};else for(let R=g;R>=0;R-=1)if(l[R]>0){w=R,s.value={index:R,confirmed:!0};break}}const A=(b=w??((m=s.value)==null?void 0:m.index))!=null?b:g,S=[...l],E=A+1,D=i(d.value[A][0],0),_=i(d.value[E][0],0),M=i(d.value[A][1],t.value||0),O=i(d.value[E][1],t.value||0);let k=y;S[A]+k<D&&(k=D-S[A]),S[E]-k<_&&(k=S[E]-_),S[A]+k>M&&(k=M-S[A]),S[E]-k>O&&(k=S[E]-O),S[A]+=k,S[E]-=k,a.value=k,u=()=>{e.value.forEach((R,N)=>{R.size=S[N]}),u=bo},r.value||u()},p=()=>{r.value&&u(),a.value=0,s.value=null,l=[]},v=[];return{lazyOffset:a,onMoveStart:c,onMoving:f,onMoveEnd:p,movingIndex:s,onCollapse:(g,y)=>{v.length||v.push(...n.value);const m=n.value,b=y==="start"?g:g+1,w=y==="start"?g+1:g,A=m[b],S=m[w];if(A!==0&&S!==0)m[b]=0,m[w]+=A,v[g]=A;else{const E=A+S,D=v[g],_=E-D;m[w]=D,m[b]=_}e.value.forEach((E,D)=>{E.size=m[D]})}}}const lGe=nt({name:"ElSplitter"}),uGe=nt({...lGe,props:oGe,emits:["resizeStart","resize","resizeEnd","collapse"],setup(e,{emit:t}){const n=e,r=Vt("splitter"),o=co(n,"layout"),i=co(n,"lazy"),{containerEl:a,containerSize:s}=iGe(o),{removeChild:l,children:u,addChild:d,ChildrenSorter:c}=cD(br(),"ElSplitterPanel");St(u,()=>{u.value.forEach((_,M)=>{_.setIndex(M)})});const{percentSizes:f,pxSizes:p}=aGe(u,s),{lazyOffset:v,movingIndex:h,onMoveStart:g,onMoving:y,onMoveEnd:m,onCollapse:b}=sGe(u,s,p,i),w=ee(()=>({[`--${r.b()}-bar-offset`]:i.value?`${v.value}px`:void 0}));return _r(Vye,Wr({panels:u,percentSizes:f,pxSizes:p,layout:o,lazy:i,movingIndex:h,containerSize:s,onMoveStart:_=>{g(_),t("resizeStart",_,p.value)},onMoving:(_,M)=>{y(_,M),i.value||t("resize",_,p.value)},onMoveEnd:_=>{m(),t("resizeEnd",_,p.value)},onCollapse:(_,M)=>{b(_,M),t("collapse",_,M,p.value)},registerPanel:d,unregisterPanel:l})),(_,M)=>(L(),G("div",{ref_key:"containerEl",ref:a,class:oe([C(r).b(),C(r).e(C(o))]),style:rn(C(w))},[ht(_.$slots,"default"),He(C(c)),xe(" Prevent iframe touch events from breaking "),C(h)?(L(),G("div",{key:0,class:oe([C(r).e("mask"),C(r).e(`mask-${C(o)}`)])},null,2)):xe("v-if",!0)],6))}});var cGe=on(uGe,[["__file","splitter.vue"]]);function dGe(e){return e&&dr(e)?e:{start:!!e,end:!!e}}function XJ(e,t,n,r){return!!(e?.collapsible.end&&t>0||n?.collapsible.start&&r===0&&t>0)}const fGe=nt({name:"ElSplitterBar"}),pGe=nt({...fGe,props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=e,r=Vt("splitter-bar"),o=ee(()=>n.layout==="horizontal"),i=ee(()=>o.value?{width:0}:{height:0}),a=ee(()=>({width:o.value?"16px":"100%",height:o.value?"100%":"16px",cursor:o.value?"col-resize":"row-resize",touchAction:"none"})),s=ee(()=>{const y=r.e("dragger");return{[`${y}-horizontal`]:o.value,[`${y}-vertical`]:!o.value,[`${y}-active`]:!!l.value}}),l=K(null),u=y=>{n.resizable&&(l.value=[y.pageX,y.pageY],t("moveStart",n.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",c))},d=y=>{if(n.resizable&&y.touches.length===1){y.preventDefault();const m=y.touches[0];l.value=[m.pageX,m.pageY],t("moveStart",n.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",f)}},c=y=>{const{pageX:m,pageY:b}=y,w=m-l.value[0],A=b-l.value[1],S=o.value?w:A;t("moving",n.index,S)},f=y=>{if(y.touches.length===1){y.preventDefault();const m=y.touches[0],b=m.pageX-l.value[0],w=m.pageY-l.value[1],A=o.value?b:w;t("moving",n.index,A)}},p=()=>{l.value=null,window.removeEventListener("mouseup",p),window.removeEventListener("mousemove",c),t("moveEnd",n.index)},v=()=>{l.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",f),t("moveEnd",n.index)},h=ee(()=>o.value?Jf:oD),g=ee(()=>o.value?Da:ed);return(y,m)=>(L(),G("div",{class:oe([C(r).b()]),style:rn(C(i))},[e.startCollapsible?(L(),G("div",{key:0,class:oe([C(r).e("collapse-icon"),C(r).e(`${e.layout}-collapse-icon-start`)]),onClick:b=>t("collapse",e.index,"start")},[ht(y.$slots,"start-collapsible",{},()=>[(L(),yt(mr(C(h)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):xe("v-if",!0),x("div",{class:oe([C(r).e("dragger"),C(s),e.resizable?"":C(r).e("disable"),C(r).is("lazy",e.resizable&&e.lazy)]),style:rn(C(a)),onMousedown:u,onTouchstart:d},null,38),e.endCollapsible?(L(),G("div",{key:1,class:oe([C(r).e("collapse-icon"),C(r).e(`${e.layout}-collapse-icon-end`)]),onClick:b=>t("collapse",e.index,"end")},[ht(y.$slots,"end-collapsible",{},()=>[(L(),yt(mr(C(g)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):xe("v-if",!0)],6))}});var hGe=on(pGe,[["__file","split-bar.vue"]]);const gGe=Jt({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),qye="ElSplitterPanel",vGe=nt({name:qye}),mGe=nt({...vGe,props:gGe,emits:["update:size"],setup(e,{emit:t}){const n=e,r=Vt("splitter-panel"),o=dn(Vye);o||na(qye,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:i,layout:a,lazy:s,containerSize:l,pxSizes:u}=Oa(o),{registerPanel:d,unregisterPanel:c,onCollapse:f,onMoveEnd:p,onMoveStart:v,onMoving:h}=o,g=K(),y=br(),m=y.uid,b=K(0),w=ee(()=>i.value[b.value]),A=B=>{b.value=B},S=ee(()=>{var B;return w.value&&(B=u.value[b.value])!=null?B:0}),E=ee(()=>{var B;return w.value&&(B=u.value[b.value+1])!=null?B:0}),D=ee(()=>w.value?i.value[b.value+1]:null),_=ee(()=>{var B;return D.value?n.resizable&&((B=D.value)==null?void 0:B.resizable)&&(S.value!==0||!n.min)&&(E.value!==0||!D.value.min):!1}),M=ee(()=>w.value?b.value!==i.value.length-1:!1),O=ee(()=>XJ(w.value,S.value,D.value,E.value)),k=ee(()=>XJ(D.value,E.value,w.value,S.value));function R(B){return iW(B)?rW(B)*l.value||0:aW(B)?oW(B):B??0}let N=!1;St(()=>n.size,()=>{if(!N&&w.value){const B=R(n.size),z=R(n.max),j=R(n.min),q=Math.min(Math.max(B,j||0),z||B);q!==B&&t("update:size",q),w.value.size=q}}),St(()=>{var B;return(B=w.value)==null?void 0:B.size},B=>{B!==n.size&&(N=!0,t("update:size",B),Yt(()=>N=!1))}),St(()=>n.resizable,B=>{w.value&&(w.value.resizable=B)});const W=Wr({el:g.value,uid:m,getVnode:()=>y.vnode,setIndex:A,...n,collapsible:ee(()=>dGe(n.collapsible))});return d(W),Jr(()=>c(W)),(B,z)=>(L(),G(Rt,null,[x("div",vr({ref_key:"panelEl",ref:g,class:[C(r).b()],style:{flexBasis:`${C(S)}px`}},B.$attrs),[ht(B.$slots,"default")],16),C(M)?(L(),yt(hGe,{key:0,index:b.value,layout:C(a),lazy:C(s),resizable:C(_),"start-collapsible":C(O),"end-collapsible":C(k),onMoveStart:C(v),onMoving:C(h),onMoveEnd:C(p),onCollapse:C(f)},{"start-collapsible":rt(()=>[ht(B.$slots,"start-collapsible")]),"end-collapsible":rt(()=>[ht(B.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):xe("v-if",!0)],64))}});var Gye=on(mGe,[["__file","split-panel.vue"]]);const Kye=or(cGe,{SplitPanel:Gye}),RS=vi(Gye),yGe=Jt({...zye,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),bGe=$ye,wGe=nt({name:"ElDrawer",inheritAttrs:!1}),AGe=nt({...wGe,props:yGe,emits:bGe,setup(e,{expose:t}){const n=e,r=ga();jf({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},ee(()=>!!r.title));const o=K(),i=K(),a=Vt("drawer"),{t:s}=Gr(),{afterEnter:l,afterLeave:u,beforeLeave:d,visible:c,rendered:f,titleId:p,bodyId:v,zIndex:h,onModalClick:g,onOpenAutoFocus:y,onCloseAutoFocus:m,onFocusoutPrevented:b,onCloseRequested:w,handleClose:A}=jye(n,o),S=ee(()=>n.direction==="rtl"||n.direction==="ltr"),E=ee(()=>_i(n.size));return t({handleClose:A,afterEnter:l,afterLeave:u}),(D,_)=>(L(),yt(C(jb),{to:D.appendTo,disabled:D.appendTo!=="body"?!1:!D.appendToBody},{default:rt(()=>[He(Ki,{name:C(a).b("fade"),onAfterEnter:C(l),onAfterLeave:C(u),onBeforeLeave:C(d),persisted:""},{default:rt(()=>[cn(He(C(tW),{mask:D.modal,"overlay-class":D.modalClass,"z-index":C(h),onClick:C(g)},{default:rt(()=>[He(C($b),{loop:"",trapped:C(c),"focus-trap-el":o.value,"focus-start-el":i.value,onFocusAfterTrapped:C(y),onFocusAfterReleased:C(m),onFocusoutPrevented:C(b),onReleaseRequested:C(w)},{default:rt(()=>[He(C(Kye),{class:oe(C(a).b("splitter")),layout:C(S)?"horizontal":"vertical"},{default:rt(()=>[["rtl","btt"].includes(D.direction)?(L(),yt(C(RS),{key:0,onClick:C(g)},null,8,["onClick"])):xe("v-if",!0),He(C(RS),{resizable:D.resizable,size:C(E)},{default:rt(()=>[x("div",vr({ref_key:"drawerRef",ref:o,"aria-modal":"true","aria-label":D.title||void 0,"aria-labelledby":D.title?void 0:C(p),"aria-describedby":C(v)},D.$attrs,{class:[C(a).b(),D.direction,C(c)&&"open"],role:"dialog",onClick:en(()=>{},["stop"])}),[x("span",{ref_key:"focusStartRef",ref:i,class:oe(C(a).e("sr-focus")),tabindex:"-1"},null,2),D.withHeader?(L(),G("header",{key:0,class:oe([C(a).e("header"),D.headerClass])},[D.$slots.title?ht(D.$slots,"title",{key:1},()=>[xe(" DEPRECATED SLOT ")]):ht(D.$slots,"header",{key:0,close:C(A),titleId:C(p),titleClass:C(a).e("title")},()=>[D.$slots.title?xe("v-if",!0):(L(),G("span",{key:0,id:C(p),role:"heading","aria-level":D.headerAriaLevel,class:oe(C(a).e("title"))},je(D.title),11,["id","aria-level"]))]),D.showClose?(L(),G("button",{key:2,"aria-label":C(s)("el.drawer.close"),class:oe(C(a).e("close-btn")),type:"button",onClick:C(A)},[He(C(Dn),{class:oe(C(a).e("close"))},{default:rt(()=>[He(C(vu))]),_:1},8,["class"])],10,["aria-label","onClick"])):xe("v-if",!0)],2)):xe("v-if",!0),C(f)?(L(),G("div",{key:1,id:C(v),class:oe([C(a).e("body"),D.bodyClass])},[ht(D.$slots,"default")],10,["id"])):xe("v-if",!0),D.$slots.footer?(L(),G("div",{key:2,class:oe([C(a).e("footer"),D.footerClass])},[ht(D.$slots,"footer")],2)):xe("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["resizable","size"]),["ltr","ttb"].includes(D.direction)?(L(),yt(C(RS),{key:1,onClick:C(g)},null,8,["onClick"])):xe("v-if",!0)]),_:3},8,["class","layout"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[kr,C(c)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var CGe=on(AGe,[["__file","drawer.vue"]]);const xGe=or(CGe),SGe=nt({inheritAttrs:!1});function EGe(e,t,n,r,o,i){return ht(e.$slots,"default")}var kGe=on(SGe,[["render",EGe],["__file","collection.vue"]]);const TGe=nt({name:"ElCollectionItem",inheritAttrs:!1});function _Ge(e,t,n,r,o,i){return ht(e.$slots,"default")}var DGe=on(TGe,[["render",_Ge],["__file","collection-item.vue"]]);const Yye="data-el-collection-item",Qye=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),i={...kGe,name:t,setup(){const s=K(),l=new Map;_r(r,{itemMap:l,getItems:()=>{const d=C(s);if(!d)return[];const c=Array.from(d.querySelectorAll(`[${Yye}]`));return[...l.values()].sort((p,v)=>c.indexOf(p.ref)-c.indexOf(v.ref))},collectionRef:s})}},a={...DGe,name:n,setup(s,{attrs:l}){const u=K(),d=dn(r,void 0);_r(o,{collectionItemRef:u}),qn(()=>{const c=C(u);c&&d.itemMap.set(c,{ref:c,...l})}),Jr(()=>{const c=C(u);d.itemMap.delete(c)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:a}},IGe=Jt({style:{type:ct([String,Array,Object])},currentTabId:{type:ct(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ct(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:OGe,ElCollectionItem:MGe,COLLECTION_INJECTION_KEY:sW,COLLECTION_ITEM_INJECTION_KEY:PGe}=Qye("RovingFocusGroup"),lW=Symbol("elRovingFocusGroup"),Zye=Symbol("elRovingFocusGroupItem"),NGe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},RGe=(e,t)=>e,BGe=(e,t,n)=>{const r=RGe(e.code);return NGe[r]},LGe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),uW=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},JJ="currentTabIdChange",eee="rovingFocusGroup.entryFocus",FGe={bubbles:!1,cancelable:!0},UGe=nt({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:IGe,emits:[JJ,"entryFocus"],setup(e,{emit:t}){var n;const r=K((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=K(!1),i=K(!1),a=K(),{getItems:s}=dn(sW,void 0),l=ee(()=>[{outline:"none"},e.style]),u=h=>{t(JJ,h)},d=()=>{o.value=!0},c=Li(h=>{var g;(g=e.onMousedown)==null||g.call(e,h)},()=>{i.value=!0}),f=Li(h=>{var g;(g=e.onFocus)==null||g.call(e,h)},h=>{const g=!C(i),{target:y,currentTarget:m}=h;if(y===m&&g&&!C(o)){const b=new Event(eee,FGe);if(m?.dispatchEvent(b),!b.defaultPrevented){const w=s().filter(_=>_.focusable),A=w.find(_=>_.active),S=w.find(_=>_.id===C(r)),D=[A,S,...w].filter(Boolean).map(_=>_.ref);uW(D)}}i.value=!1}),p=Li(h=>{var g;(g=e.onBlur)==null||g.call(e,h)},()=>{o.value=!1}),v=(...h)=>{t("entryFocus",...h)};_r(lW,{currentTabbedId:_b(r),loop:co(e,"loop"),tabIndex:ee(()=>C(o)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:l,orientation:co(e,"orientation"),dir:co(e,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:p,onFocus:f,onMousedown:c}),St(()=>e.currentTabId,h=>{r.value=h??null}),Ro(a,eee,v)}});function zGe(e,t,n,r,o,i){return ht(e.$slots,"default")}var $Ge=on(UGe,[["render",zGe],["__file","roving-focus-group-impl.vue"]]);const jGe=nt({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:OGe,ElRovingFocusGroupImpl:$Ge}});function HGe(e,t,n,r,o,i){const a=hr("el-roving-focus-group-impl"),s=hr("el-focus-group-collection");return L(),yt(s,null,{default:rt(()=>[He(a,Il($d(e.$attrs)),{default:rt(()=>[ht(e.$slots,"default")]),_:3},16)]),_:3})}var WGe=on(jGe,[["render",HGe],["__file","roving-focus-group.vue"]]);const BS=Jt({trigger:oy.trigger,triggerKeys:{type:ct(Array),default:()=>[gn.enter,gn.numpadEnter,gn.space,gn.down]},effect:{...oi.effect,default:"light"},type:{type:ct(String)},placement:{type:ct(String),default:"bottom"},popperOptions:{type:ct(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:ct([Number,String]),default:0},maxHeight:{type:ct([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:g1e,default:"menu"},buttonProps:{type:ct(Object)},teleported:oi.teleported,persistent:{type:Boolean,default:!0}}),Xye=Jt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:wo}}),VGe=Jt({onKeydown:{type:ct(Function)}}),qGe=[gn.down,gn.pageDown,gn.home],Jye=[gn.up,gn.pageUp,gn.end],GGe=[...qGe,...Jye],{ElCollection:KGe,ElCollectionItem:YGe,COLLECTION_INJECTION_KEY:QGe,COLLECTION_ITEM_INJECTION_KEY:ZGe}=Qye("Dropdown"),gD=Symbol("elDropdown"),ebe="elDropdown",{ButtonGroup:XGe}=Xa,JGe=nt({name:"ElDropdown",components:{ElButton:Xa,ElButtonGroup:XGe,ElScrollbar:Hc,ElDropdownCollection:KGe,ElTooltip:hs,ElRovingFocusGroup:WGe,ElOnlyChild:b1e,ElIcon:Dn,ArrowDown:ed},props:BS,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=br(),r=Vt("dropdown"),{t:o}=Gr(),i=K(),a=K(),s=K(),l=K(),u=K(null),d=K(null),c=K(!1),f=ee(()=>({maxHeight:_i(e.maxHeight)})),p=ee(()=>[r.m(w.value)]),v=ee(()=>Ya(e.trigger)),h=ps().value,g=ee(()=>e.id||h);St([i,v],([B,z],[j])=>{var q,Y,U;(q=j?.$el)!=null&&q.removeEventListener&&j.$el.removeEventListener("pointerenter",S),(Y=B?.$el)!=null&&Y.removeEventListener&&B.$el.removeEventListener("pointerenter",S),(U=B?.$el)!=null&&U.addEventListener&&z.includes("hover")&&B.$el.addEventListener("pointerenter",S)},{immediate:!0}),Jr(()=>{var B,z;(z=(B=i.value)==null?void 0:B.$el)!=null&&z.removeEventListener&&i.value.$el.removeEventListener("pointerenter",S)});function y(){m()}function m(){var B;(B=s.value)==null||B.onClose()}function b(){var B;(B=s.value)==null||B.onOpen()}const w=ha();function A(...B){t("command",...B)}function S(){var B,z;(z=(B=i.value)==null?void 0:B.$el)==null||z.focus({preventScroll:!0})}function E(){}function D(){const B=C(l);v.value.includes("hover")&&B?.focus({preventScroll:!0}),d.value=null}function _(B){d.value=B}function M(B){c.value||(B.preventDefault(),B.stopImmediatePropagation())}function O(){t("visible-change",!0)}function k(B){var z;B?.type==="keydown"&&((z=l.value)==null||z.focus())}function R(){t("visible-change",!1)}return _r(gD,{contentRef:l,role:ee(()=>e.role),triggerId:g,isUsingKeyboard:c,onItemEnter:E,onItemLeave:D}),_r(ebe,{instance:n,dropdownSize:w,handleClick:y,commandHandler:A,trigger:co(e,"trigger"),hideOnClick:co(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:f,dropdownTriggerKls:p,dropdownSize:w,triggerId:g,currentTabId:d,handleCurrentTabIdChange:_,handlerMainButtonClick:B=>{t("click",B)},handleEntryFocus:M,handleClose:m,handleOpen:b,handleBeforeShowTooltip:O,handleShowTooltip:k,handleBeforeHideTooltip:R,onFocusAfterTrapped:B=>{var z,j;B.preventDefault(),(j=(z=l.value)==null?void 0:z.focus)==null||j.call(z,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:a}}});function eKe(e,t,n,r,o,i){var a;const s=hr("el-dropdown-collection"),l=hr("el-roving-focus-group"),u=hr("el-scrollbar"),d=hr("el-only-child"),c=hr("el-tooltip"),f=hr("el-button"),p=hr("arrow-down"),v=hr("el-icon"),h=hr("el-button-group");return L(),G("div",{class:oe([e.ns.b(),e.ns.is("disabled",e.disabled)])},[He(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Hl({content:rt(()=>[He(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:rt(()=>[He(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:rt(()=>[He(s,null,{default:rt(()=>[ht(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:rt(()=>[He(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:rt(()=>[ht(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(L(),yt(h,{key:0},{default:rt(()=>[He(f,vr({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:rt(()=>[ht(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),He(f,vr({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:rt(()=>[He(v,{class:oe(e.ns.e("icon"))},{default:rt(()=>[He(p)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):xe("v-if",!0)],2)}var tKe=on(JGe,[["render",eKe],["__file","dropdown.vue"]]);const nKe=nt({components:{ElRovingFocusCollectionItem:MGe},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:o,onItemShiftTab:i}=dn(lW,void 0),{getItems:a}=dn(sW,void 0),s=ps(),l=K(),u=Li(p=>{t("mousedown",p)},p=>{e.focusable?o(C(s)):p.preventDefault()}),d=Li(p=>{t("focus",p)},()=>{o(C(s))}),c=Li(p=>{t("keydown",p)},p=>{const{code:v,shiftKey:h,target:g,currentTarget:y}=p;if(v===gn.tab&&h){i();return}if(g!==y)return;const m=BGe(p);if(m){p.preventDefault();let w=a().filter(A=>A.focusable).map(A=>A.ref);switch(m){case"last":{w.reverse();break}case"prev":case"next":{m==="prev"&&w.reverse();const A=w.indexOf(y);w=r.value?LGe(w,A+1):w.slice(A+1);break}}Yt(()=>{uW(w)})}}),f=ee(()=>n.value===C(s));return _r(Zye,{rovingFocusGroupItemRef:l,tabIndex:ee(()=>C(f)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:c}),{id:s,handleKeydown:c,handleFocus:d,handleMousedown:u}}});function rKe(e,t,n,r,o,i){const a=hr("el-roving-focus-collection-item");return L(),yt(a,{id:e.id,focusable:e.focusable,active:e.active},{default:rt(()=>[ht(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var oKe=on(nKe,[["render",rKe],["__file","roving-focus-item.vue"]]);const iKe=nt({name:"DropdownItemImpl",components:{ElIcon:Dn},props:Xye,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Vt("dropdown"),{role:r}=dn(gD,void 0),{collectionItemRef:o}=dn(ZGe,void 0),{collectionItemRef:i}=dn(PGe,void 0),{rovingFocusGroupItemRef:a,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:d}=dn(Zye,void 0),c=hD(o,i,a),f=ee(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),p=Li(v=>{if([gn.enter,gn.numpadEnter,gn.space].includes(v.code))return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:n,itemRef:c,dataset:{[Yye]:""},role:f,tabIndex:s,handleFocus:l,handleKeydown:p,handleMousedown:d}}});function aKe(e,t,n,r,o,i){const a=hr("el-icon");return L(),G(Rt,null,[e.divided?(L(),G("li",{key:0,role:"separator",class:oe(e.ns.bem("menu","item","divided"))},null,2)):xe("v-if",!0),x("li",vr({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:s=>e.$emit("clickimpl",s),onFocus:e.handleFocus,onKeydown:en(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:s=>e.$emit("pointermove",s),onPointerleave:s=>e.$emit("pointerleave",s)}),[e.icon?(L(),yt(a,{key:0},{default:rt(()=>[(L(),yt(mr(e.icon)))]),_:1})):xe("v-if",!0),ht(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var sKe=on(iKe,[["render",aKe],["__file","dropdown-item-impl.vue"]]);const tbe=()=>{const e=dn(ebe,{}),t=ee(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},lKe=nt({name:"ElDropdownItem",components:{ElDropdownCollectionItem:YGe,ElRovingFocusItem:oKe,ElDropdownItemImpl:sKe},inheritAttrs:!1,props:Xye,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=tbe(),o=br(),i=K(null),a=ee(()=>{var p,v;return(v=(p=C(i))==null?void 0:p.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=dn(gD,void 0),u=Li(p=>(t("pointermove",p),p.defaultPrevented),CJ(p=>{if(e.disabled){l(p);return}const v=p.currentTarget;v===document.activeElement||v.contains(document.activeElement)||(s(p),p.defaultPrevented||v?.focus({preventScroll:!0}))})),d=Li(p=>(t("pointerleave",p),p.defaultPrevented),CJ(l)),c=Li(p=>{if(!e.disabled)return t("click",p),p.type!=="keydown"&&p.defaultPrevented},p=>{var v,h,g;if(e.disabled){p.stopImmediatePropagation();return}(v=r?.hideOnClick)!=null&&v.value&&((h=r.handleClick)==null||h.call(r)),(g=r.commandHandler)==null||g.call(r,e.command,o,p)}),f=ee(()=>({...e,...n}));return{handleClick:c,handlePointerMove:u,handlePointerLeave:d,textContent:a,propsAndAttrs:f}}});function uKe(e,t,n,r,o,i){var a;const s=hr("el-dropdown-item-impl"),l=hr("el-roving-focus-item"),u=hr("el-dropdown-collection-item");return L(),yt(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:rt(()=>[He(l,{focusable:!e.disabled},{default:rt(()=>[He(s,vr(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:rt(()=>[ht(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var nbe=on(lKe,[["render",uKe],["__file","dropdown-item.vue"]]);const cKe=nt({name:"ElDropdownMenu",props:VGe,setup(e){const t=Vt("dropdown"),{_elDropdownSize:n}=tbe(),r=n.value,{focusTrapRef:o,onKeydown:i}=dn(IH,void 0),{contentRef:a,role:s,triggerId:l}=dn(gD,void 0),{collectionRef:u,getItems:d}=dn(QGe,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:f,tabIndex:p,onBlur:v,onFocus:h,onMousedown:g}=dn(lW,void 0),{collectionRef:y}=dn(sW,void 0),m=ee(()=>[t.b("menu"),t.bm("menu",r?.value)]),b=hD(a,u,o,c,y),w=Li(S=>{var E;(E=e.onKeydown)==null||E.call(e,S)},S=>{const{currentTarget:E,code:D,target:_}=S;if(E.contains(_),gn.tab===D&&S.stopImmediatePropagation(),S.preventDefault(),_!==C(a)||!GGe.includes(D))return;const O=d().filter(k=>!k.disabled).map(k=>k.ref);Jye.includes(D)&&O.reverse(),uW(O)});return{size:r,rovingFocusGroupRootStyle:f,tabIndex:p,dropdownKls:m,role:s,triggerId:l,dropdownListWrapperRef:b,handleKeydown:S=>{w(S),i(S)},onBlur:v,onFocus:h,onMousedown:g}}});function dKe(e,t,n,r,o,i){return L(),G("ul",{ref:e.dropdownListWrapperRef,class:oe(e.dropdownKls),style:rn(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:en(e.handleKeydown,["self"]),onMousedown:en(e.onMousedown,["self"])},[ht(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var rbe=on(cKe,[["render",dKe],["__file","dropdown-menu.vue"]]);const fKe=or(tKe,{DropdownItem:nbe,DropdownMenu:rbe}),pKe=vi(nbe),hKe=vi(rbe),gKe=nt({name:"ImgEmpty"}),vKe=nt({...gKe,setup(e){const t=Vt("empty"),n=ps();return(r,o)=>(L(),G("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[x("defs",null,[x("linearGradient",{id:`linearGradient-1-${C(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[x("stop",{"stop-color":`var(${C(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),x("stop",{"stop-color":`var(${C(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),x("linearGradient",{id:`linearGradient-2-${C(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[x("stop",{"stop-color":`var(${C(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),x("stop",{"stop-color":`var(${C(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),x("rect",{id:`path-3-${C(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),x("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[x("g",{transform:"translate(-1268.000000, -535.000000)"},[x("g",{transform:"translate(1268.000000, 535.000000)"},[x("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${C(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),x("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),x("rect",{fill:`url(#linearGradient-1-${C(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),x("rect",{fill:`url(#linearGradient-2-${C(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),x("g",{transform:"translate(53.000000, 45.000000)"},[x("use",{fill:`var(${C(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${C(n)}`},null,8,["fill","xlink:href"]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${C(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),x("polygon",{fill:`var(${C(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var mKe=on(vKe,[["__file","img-empty.vue"]]);const yKe=Jt({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),bKe=nt({name:"ElEmpty"}),wKe=nt({...bKe,props:yKe,setup(e){const t=e,{t:n}=Gr(),r=Vt("empty"),o=ee(()=>t.description||n("el.table.emptyText")),i=ee(()=>({width:_i(t.imageSize)}));return(a,s)=>(L(),G("div",{class:oe(C(r).b())},[x("div",{class:oe(C(r).e("image")),style:rn(C(i))},[a.image?(L(),G("img",{key:0,src:a.image,ondragstart:"return false"},null,8,["src"])):ht(a.$slots,"image",{key:1},()=>[He(mKe)])],6),x("div",{class:oe(C(r).e("description"))},[a.$slots.description?ht(a.$slots,"description",{key:0}):(L(),G("p",{key:1},je(C(o)),1))],2),a.$slots.default?(L(),G("div",{key:0,class:oe(C(r).e("bottom"))},[ht(a.$slots,"default")],2)):xe("v-if",!0)],2))}});var AKe=on(wKe,[["__file","empty.vue"]]);const obe=or(AKe),CKe=Jt({size:{type:String,values:ef},disabled:Boolean}),xKe=Jt({...CKe,model:Object,rules:{type:ct(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:ct([Object,Boolean]),default:!0}}),SKe={validate:(e,t,n)=>(Zt(e)||In(e))&&Eo(t)&&In(n)};function EKe(){const e=K([]),t=ee(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const a=e.value.indexOf(i);return a===-1&&t.value,a}function r(i,a){if(i&&a){const s=n(a);e.value.splice(s,1,i)}else i&&e.value.push(i)}function o(i){const a=n(i);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:o}}const Ex=(e,t)=>{const n=Ya(t).map(r=>Zt(r)?r.join("."):r);return n.length>0?e.filter(r=>r.propString&&n.includes(r.propString)):e},kKe="ElForm",TKe=nt({name:kKe}),_Ke=nt({...TKe,props:xKe,emits:SKe,setup(e,{expose:t,emit:n}){const r=e,o=K(),i=Wr([]),a=ha(),s=Vt("form"),l=ee(()=>{const{labelPosition:w,inline:A}=r;return[s.b(),s.m(a.value||"default"),{[s.m(`label-${w}`)]:w,[s.m("inline")]:A}]}),u=w=>Ex(i,[w])[0],d=w=>{i.push(w)},c=w=>{w.prop&&i.splice(i.indexOf(w),1)},f=(w=[])=>{r.model&&Ex(i,w).forEach(A=>A.resetField())},p=(w=[])=>{Ex(i,w).forEach(A=>A.clearValidate())},v=ee(()=>!!r.model),h=w=>{if(i.length===0)return[];const A=Ex(i,w);return A.length?A:[]},g=async w=>m(void 0,w),y=async(w=[])=>{if(!v.value)return!1;const A=h(w);if(A.length===0)return!0;let S={};for(const E of A)try{await E.validate(""),E.validateState==="error"&&!E.error&&E.resetField()}catch(D){S={...S,...D}}return Object.keys(S).length===0?!0:Promise.reject(S)},m=async(w=[],A)=>{let S=!1;const E=!Rn(A);try{return S=await y(w),S===!0&&await A?.(S),S}catch(D){if(D instanceof Error)throw D;const _=D;if(r.scrollToError&&o.value){const M=o.value.querySelector(`.${s.b()}-item.is-error`);M?.scrollIntoView(r.scrollIntoViewOptions)}return!S&&await A?.(!1,_),E&&Promise.reject(_)}},b=w=>{var A;const S=u(w);S&&((A=S.$el)==null||A.scrollIntoView(r.scrollIntoViewOptions))};return St(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(w=>void 0)},{deep:!0,flush:"post"}),_r(um,Wr({...Oa(r),emit:n,resetFields:f,clearValidate:p,validateField:m,getField:u,addField:d,removeField:c,...EKe()})),t({validate:g,validateField:m,resetFields:f,clearValidate:p,scrollToField:b,getField:u,fields:i}),(w,A)=>(L(),G("form",{ref_key:"formRef",ref:o,class:oe(C(l))},[ht(w.$slots,"default")],2))}});var DKe=on(_Ke,[["__file","form.vue"]]);function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zg.apply(this,arguments)}function IKe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oA(e,t)}function NL(e){return NL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},NL(e)}function oA(e,t){return oA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},oA(e,t)}function OKe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function LS(e,t,n){return OKe()?LS=Reflect.construct.bind():LS=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),u=new l;return a&&oA(u,a.prototype),u},LS.apply(null,arguments)}function MKe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function RL(e){var t=typeof Map=="function"?new Map:void 0;return RL=function(r){if(r===null||!MKe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return LS(r,arguments,NL(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),oA(o,r)},RL(e)}var PKe=/%[sdj%]/g,NKe=function(){};function BL(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function cu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(PKe,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function RKe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ts(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||RKe(t)&&typeof e=="string"&&!e)}function BKe(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function tee(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function LKe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var nee=(function(e){IKe(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t})(RL(Error));function FKe(e,t,n,r,o){if(t.first){var i=new Promise(function(f,p){var v=function(y){return r(y),y.length?p(new nee(y,BL(y))):f(o)},h=LKe(e);tee(h,n,v)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],c=new Promise(function(f,p){var v=function(g){if(d.push.apply(d,g),u++,u===l)return r(d),d.length?p(new nee(d,BL(d))):f(o)};s.length||(r(d),f(o)),s.forEach(function(h){var g=e[h];a.indexOf(h)!==-1?tee(g,n,v):BKe(g,n,v)})});return c.catch(function(f){return f}),c}function UKe(e){return!!(e&&e.message!==void 0)}function zKe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function ree(e,t){return function(n){var r;return e.fullFields?r=zKe(t,e.fullFields):r=t[n.field||e.fullField],UKe(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function oee(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=zg({},e[n],r):e[n]=r}}return e}var ibe=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||ts(n,a||t.type))&&o.push(cu(i.messages.required,t.fullField))},$Ke=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(cu(i.messages.whitespace,t.fullField))},kx,jKe=(function(){if(kx)return kx;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
- (?:
- (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
- (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
- (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
- (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
- (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
- (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
- (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
- (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};l.v4=function(b){return b&&b.exact?a:new RegExp(""+t(b)+n+t(b),"g")},l.v6=function(b){return b&&b.exact?s:new RegExp(""+t(b)+o+t(b),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",c=l.v4().source,f=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',m="(?:"+u+"|www\\.)"+d+"(?:localhost|"+c+"|"+f+"|"+p+v+h+")"+g+y;return kx=new RegExp("(?:^"+m+"$)","i"),kx}),iee={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},x4={integer:function(t){return x4.number(t)&&parseInt(t,10)===t},float:function(t){return x4.number(t)&&!x4.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!x4.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(iee.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(jKe())},hex:function(t){return typeof t=="string"&&!!t.match(iee.hex)}},HKe=function(t,n,r,o,i){if(t.required&&n===void 0){ibe(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?x4[s](n)||o.push(cu(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(cu(i.messages.types[s],t.fullField,t.type))},WKe=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,c=null,f=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(f?c="number":p?c="string":v&&(c="array"),!c)return!1;v&&(d=n.length),p&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(cu(i.messages[c].len,t.fullField,t.len)):s&&!l&&d<t.min?o.push(cu(i.messages[c].min,t.fullField,t.min)):l&&!s&&d>t.max?o.push(cu(i.messages[c].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&o.push(cu(i.messages[c].range,t.fullField,t.min,t.max))},Fm="enum",VKe=function(t,n,r,o,i){t[Fm]=Array.isArray(t[Fm])?t[Fm]:[],t[Fm].indexOf(n)===-1&&o.push(cu(i.messages[Fm],t.fullField,t[Fm].join(", ")))},qKe=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(cu(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(cu(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ho={required:ibe,whitespace:$Ke,type:HKe,range:WKe,enum:VKe,pattern:qKe},GKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n,"string")&&!t.required)return r();Ho.required(t,n,o,a,i,"string"),ts(n,"string")||(Ho.type(t,n,o,a,i),Ho.range(t,n,o,a,i),Ho.pattern(t,n,o,a,i),t.whitespace===!0&&Ho.whitespace(t,n,o,a,i))}r(a)},KKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n)&&!t.required)return r();Ho.required(t,n,o,a,i),n!==void 0&&Ho.type(t,n,o,a,i)}r(a)},YKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),ts(n)&&!t.required)return r();Ho.required(t,n,o,a,i),n!==void 0&&(Ho.type(t,n,o,a,i),Ho.range(t,n,o,a,i))}r(a)},QKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n)&&!t.required)return r();Ho.required(t,n,o,a,i),n!==void 0&&Ho.type(t,n,o,a,i)}r(a)},ZKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n)&&!t.required)return r();Ho.required(t,n,o,a,i),ts(n)||Ho.type(t,n,o,a,i)}r(a)},XKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n)&&!t.required)return r();Ho.required(t,n,o,a,i),n!==void 0&&(Ho.type(t,n,o,a,i),Ho.range(t,n,o,a,i))}r(a)},JKe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n)&&!t.required)return r();Ho.required(t,n,o,a,i),n!==void 0&&(Ho.type(t,n,o,a,i),Ho.range(t,n,o,a,i))}r(a)},eYe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Ho.required(t,n,o,a,i,"array"),n!=null&&(Ho.type(t,n,o,a,i),Ho.range(t,n,o,a,i))}r(a)},tYe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n)&&!t.required)return r();Ho.required(t,n,o,a,i),n!==void 0&&Ho.type(t,n,o,a,i)}r(a)},nYe="enum",rYe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n)&&!t.required)return r();Ho.required(t,n,o,a,i),n!==void 0&&Ho[nYe](t,n,o,a,i)}r(a)},oYe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n,"string")&&!t.required)return r();Ho.required(t,n,o,a,i),ts(n,"string")||Ho.pattern(t,n,o,a,i)}r(a)},iYe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n,"date")&&!t.required)return r();if(Ho.required(t,n,o,a,i),!ts(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ho.type(t,l,o,a,i),l&&Ho.range(t,l.getTime(),o,a,i)}}r(a)},aYe=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Ho.required(t,n,o,a,i,s),r(a)},SI=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(ts(n,a)&&!t.required)return r();Ho.required(t,n,o,s,i,a),ts(n,a)||Ho.type(t,n,o,s,i)}r(s)},sYe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(ts(n)&&!t.required)return r();Ho.required(t,n,o,a,i)}r(a)},o3={string:GKe,method:KKe,number:YKe,boolean:QKe,regexp:ZKe,integer:XKe,float:JKe,array:eYe,object:tYe,enum:rYe,pattern:oYe,date:iYe,url:SI,hex:SI,email:SI,required:aYe,any:sYe};function LL(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var FL=LL(),j5=(function(){function e(n){this.rules=null,this._messages=FL,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=oee(LL(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function d(h){var g=[],y={};function m(w){if(Array.isArray(w)){var A;g=(A=g).concat.apply(A,w)}else g.push(w)}for(var b=0;b<h.length;b++)m(h[b]);g.length?(y=BL(g),u(g,y)):u(null,s)}if(l.messages){var c=this.messages();c===FL&&(c=LL()),oee(c,l.messages),l.messages=c}else l.messages=this.messages();var f={},p=l.keys||Object.keys(this.rules);p.forEach(function(h){var g=a.rules[h],y=s[h];g.forEach(function(m){var b=m;typeof b.transform=="function"&&(s===r&&(s=zg({},s)),y=s[h]=b.transform(y)),typeof b=="function"?b={validator:b}:b=zg({},b),b.validator=a.getValidationMethod(b),b.validator&&(b.field=h,b.fullField=b.fullField||h,b.type=a.getType(b),f[h]=f[h]||[],f[h].push({rule:b,value:y,source:s,field:h}))})});var v={};return FKe(f,l,function(h,g){var y=h.rule,m=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");m=m&&(y.required||!y.required&&h.value),y.field=h.field;function b(S,E){return zg({},E,{fullField:y.fullField+"."+S,fullFields:y.fullFields?[].concat(y.fullFields,[S]):[S]})}function w(S){S===void 0&&(S=[]);var E=Array.isArray(S)?S:[S];!l.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&y.message!==void 0&&(E=[].concat(y.message));var D=E.map(ree(y,s));if(l.first&&D.length)return v[y.field]=1,g(D);if(!m)g(D);else{if(y.required&&!h.value)return y.message!==void 0?D=[].concat(y.message).map(ree(y,s)):l.error&&(D=[l.error(y,cu(l.messages.required,y.field))]),g(D);var _={};y.defaultField&&Object.keys(h.value).map(function(k){_[k]=y.defaultField}),_=zg({},_,h.rule.fields);var M={};Object.keys(_).forEach(function(k){var R=_[k],N=Array.isArray(R)?R:[R];M[k]=N.map(b.bind(null,k))});var O=new e(M);O.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),O.validate(h.value,h.rule.options||l,function(k){var R=[];D&&D.length&&R.push.apply(R,D),k&&k.length&&R.push.apply(R,k),g(R.length?R:null)})}}var A;if(y.asyncValidator)A=y.asyncValidator(y,h.value,w,h.source,l);else if(y.validator){try{A=y.validator(y,h.value,w,h.source,l)}catch(S){console.error?.(S),l.suppressValidatorError||setTimeout(function(){throw S},0),w(S.message)}A===!0?w():A===!1?w(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):A instanceof Array?w(A):A instanceof Error&&w(A.message)}A&&A.then&&A.then(function(){return w()},function(S){return w(S)})},function(h){d(h)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!o3.hasOwnProperty(r.type))throw new Error(cu("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?o3.required:o3[this.getType(r)]||void 0},e})();j5.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");o3[t]=n};j5.warning=NKe;j5.messages=FL;j5.validators=o3;const lYe=["","error","validating","success"],uYe=Jt({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:ct([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ct([Object,Array])},error:String,validateStatus:{type:String,values:lYe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:ef}}),aee="ElLabelWrap";var cYe=nt({name:aee,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=dn(um,void 0),r=dn(Hd);r||na(aee,"usage: <el-form-item><label-wrap /></el-form-item>");const o=Vt("form"),i=K(),a=K(0),s=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const c=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},l=(d="update")=>{Yt(()=>{t.default&&e.isAutoWidth&&(d==="update"?a.value=s():d==="remove"&&n?.deregisterLabelWidth(a.value))})},u=()=>l("update");return qn(()=>{u()}),Jr(()=>{l("remove")}),Qc(()=>u()),St(a,(d,c)=>{e.updateAll&&n?.registerLabelWidth(d,c)}),li(ee(()=>{var d,c;return(c=(d=i.value)==null?void 0:d.firstElementChild)!=null?c:null}),u),()=>{var d,c;if(!t)return null;const{isAutoWidth:f}=e;if(f){const p=n?.autoLabelWidth,v=r?.hasLabel,h={};if(v&&p&&p!=="auto"){const g=Math.max(0,Number.parseInt(p,10)-a.value),m=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(h[m]=`${g}px`)}return He("div",{ref:i,class:[o.be("item","label-wrap")],style:h},[(d=t.default)==null?void 0:d.call(t)])}else return He(Rt,{ref:i},[(c=t.default)==null?void 0:c.call(t)])}}});const dYe=nt({name:"ElFormItem"}),fYe=nt({...dYe,props:uYe,setup(e,{expose:t}){const n=e,r=ga(),o=dn(um,void 0),i=dn(Hd,void 0),a=ha(void 0,{formItem:!1}),s=Vt("form-item"),l=ps().value,u=K([]),d=K(""),c=jRe(d,100),f=K(""),p=K();let v,h=!1;const g=ee(()=>n.labelPosition||o?.labelPosition),y=ee(()=>{if(g.value==="top")return{};const le=_i(n.labelWidth||o?.labelWidth||"");return le?{width:le}:{}}),m=ee(()=>{if(g.value==="top"||o?.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const le=_i(n.labelWidth||o?.labelWidth||"");return!n.label&&!r.label?{marginLeft:le}:{}}),b=ee(()=>[s.b(),s.m(a.value),s.is("error",d.value==="error"),s.is("validating",d.value==="validating"),s.is("success",d.value==="success"),s.is("required",W.value||n.required),s.is("no-asterisk",o?.hideRequiredAsterisk),o?.requireAsteriskPosition==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:o?.statusIcon,[s.m(`label-${g.value}`)]:g.value}]),w=ee(()=>Eo(n.inlineMessage)?n.inlineMessage:o?.inlineMessage||!1),A=ee(()=>[s.e("error"),{[s.em("error","inline")]:w.value}]),S=ee(()=>n.prop?Zt(n.prop)?n.prop.join("."):n.prop:""),E=ee(()=>!!(n.label||r.label)),D=ee(()=>{var le;return(le=n.for)!=null?le:u.value.length===1?u.value[0]:void 0}),_=ee(()=>!D.value&&E.value),M=!!i,O=ee(()=>{const le=o?.model;if(!(!le||!n.prop))return t3(le,n.prop).value}),k=ee(()=>{const{required:le}=n,ve=[];n.rules&&ve.push(...Ya(n.rules));const Pe=o?.rules;if(Pe&&n.prop){const Ae=t3(Pe,n.prop).value;Ae&&ve.push(...Ya(Ae))}if(le!==void 0){const Ae=ve.map((he,Ee)=>[he,Ee]).filter(([he])=>Object.keys(he).includes("required"));if(Ae.length>0)for(const[he,Ee]of Ae)he.required!==le&&(ve[Ee]={...he,required:le});else ve.push({required:le})}return ve}),R=ee(()=>k.value.length>0),N=le=>k.value.filter(Pe=>!Pe.trigger||!le?!0:Zt(Pe.trigger)?Pe.trigger.includes(le):Pe.trigger===le).map(({trigger:Pe,...Ae})=>Ae),W=ee(()=>k.value.some(le=>le.required)),B=ee(()=>{var le;return c.value==="error"&&n.showMessage&&((le=o?.showMessage)!=null?le:!0)}),z=ee(()=>`${n.label||""}${o?.labelSuffix||""}`),j=le=>{d.value=le},q=le=>{var ve,Pe;const{errors:Ae,fields:he}=le;(!Ae||!he)&&console.error(le),j("error"),f.value=Ae?(Pe=(ve=Ae?.[0])==null?void 0:ve.message)!=null?Pe:`${n.prop} is required`:"",o?.emit("validate",n.prop,!1,f.value)},Y=()=>{j("success"),o?.emit("validate",n.prop,!0,"")},U=async le=>{const ve=S.value;return new j5({[ve]:le}).validate({[ve]:O.value},{firstFields:!0}).then(()=>(Y(),!0)).catch(Ae=>(q(Ae),Promise.reject(Ae)))},F=async(le,ve)=>{if(h||!n.prop)return!1;const Pe=Rn(ve);if(!R.value)return ve?.(!1),!1;const Ae=N(le);return Ae.length===0?(ve?.(!0),!0):(j("validating"),U(Ae).then(()=>(ve?.(!0),!0)).catch(he=>{const{fields:Ee}=he;return ve?.(!1,Ee),Pe?!1:Promise.reject(Ee)}))},H=()=>{j(""),f.value="",h=!1},re=async()=>{const le=o?.model;if(!le||!n.prop)return;const ve=t3(le,n.prop);h=!0,ve.value=IX(v),await Yt(),H(),h=!1},X=le=>{u.value.includes(le)||u.value.push(le)},te=le=>{u.value=u.value.filter(ve=>ve!==le)};St(()=>n.error,le=>{f.value=le||"",j(le?"error":"")},{immediate:!0}),St(()=>n.validateStatus,le=>j(le||""));const Z=Wr({...Oa(n),$el:p,size:a,validateMessage:f,validateState:d,labelId:l,inputIds:u,isGroup:_,hasLabel:E,fieldValue:O,addInputId:X,removeInputId:te,resetField:re,clearValidate:H,validate:F,propString:S});return _r(Hd,Z),qn(()=>{n.prop&&(o?.addField(Z),v=IX(O.value))}),Jr(()=>{o?.removeField(Z)}),t({size:a,validateMessage:f,validateState:d,validate:F,clearValidate:H,resetField:re}),(le,ve)=>{var Pe;return L(),G("div",{ref_key:"formItemRef",ref:p,class:oe(C(b)),role:C(_)?"group":void 0,"aria-labelledby":C(_)?C(l):void 0},[He(C(cYe),{"is-auto-width":C(y).width==="auto","update-all":((Pe=C(o))==null?void 0:Pe.labelWidth)==="auto"},{default:rt(()=>[C(E)?(L(),yt(mr(C(D)?"label":"div"),{key:0,id:C(l),for:C(D),class:oe(C(s).e("label")),style:rn(C(y))},{default:rt(()=>[ht(le.$slots,"label",{label:C(z)},()=>[bn(je(C(z)),1)])]),_:3},8,["id","for","class","style"])):xe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),x("div",{class:oe(C(s).e("content")),style:rn(C(m))},[ht(le.$slots,"default"),He(Qge,{name:`${C(s).namespace.value}-zoom-in-top`},{default:rt(()=>[C(B)?ht(le.$slots,"error",{key:0,error:f.value},()=>[x("div",{class:oe(C(A))},je(f.value),3)]):xe("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var abe=on(fYe,[["__file","form-item.vue"]]);const pYe=or(DKe,{FormItem:abe}),hYe=vi(abe),gYe=Jt({urlList:{type:ct(Array),default:()=>fi([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:ct(String)}}),vYe={close:()=>!0,switch:e=>$n(e),rotate:e=>$n(e)},mYe=nt({name:"ElImageViewer"}),yYe=nt({...mYe,props:gYe,emits:vYe,setup(e,{expose:t,emit:n}){var r;const o=e,i={CONTAIN:{name:"contain",icon:Rd(lLe)},ORIGINAL:{name:"original",icon:Rd(DLe)}};let a,s="";const{t:l}=Gr(),u=Vt("image-viewer"),{nextZIndex:d}=Fb(),c=K(),f=K([]),p=B0e(),v=K(!0),h=K(o.initialIndex),g=jo(i.CONTAIN),y=K({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=K((r=o.zIndex)!=null?r:d()),b=ee(()=>{const{urlList:te}=o;return te.length<=1}),w=ee(()=>h.value===0),A=ee(()=>h.value===o.urlList.length-1),S=ee(()=>o.urlList[h.value]),E=ee(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&w.value)]),D=ee(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&A.value)]),_=ee(()=>{const{scale:te,deg:Z,offsetX:le,offsetY:ve,enableTransition:Pe}=y.value;let Ae=le/te,he=ve/te;const Ee=Z*Math.PI/180,Q=Math.cos(Ee),me=Math.sin(Ee);Ae=Ae*Q+he*me,he=he*Q-le/te*me;const De={transform:`scale(${te}) rotate(${Z}deg) translate(${Ae}px, ${he}px)`,transition:Pe?"transform .3s":""};return g.value.name===i.CONTAIN.name&&(De.maxWidth=De.maxHeight="100%"),De}),M=ee(()=>`${h.value+1} / ${o.urlList.length}`);function O(){R(),a?.(),document.body.style.overflow=s,n("close")}function k(){const te=Zg(le=>{switch(le.code){case gn.esc:o.closeOnPressEscape&&O();break;case gn.space:j();break;case gn.left:Y();break;case gn.up:F("zoomIn");break;case gn.right:U();break;case gn.down:F("zoomOut");break}}),Z=Zg(le=>{const ve=le.deltaY||le.deltaX;F(ve<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});p.run(()=>{Ro(document,"keydown",te),Ro(document,"wheel",Z)})}function R(){p.stop()}function N(){v.value=!1}function W(te){v.value=!1,te.target.alt=l("el.image.error")}function B(te){if(v.value||te.button!==0||!c.value)return;y.value.enableTransition=!1;const{offsetX:Z,offsetY:le}=y.value,ve=te.pageX,Pe=te.pageY,Ae=Zg(Ee=>{y.value={...y.value,offsetX:Z+Ee.pageX-ve,offsetY:le+Ee.pageY-Pe}}),he=Ro(document,"mousemove",Ae);Ro(document,"mouseup",()=>{he()}),te.preventDefault()}function z(){y.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function j(){if(v.value)return;const te=My(i),Z=Object.values(i),le=g.value.name,Pe=(Z.findIndex(Ae=>Ae.name===le)+1)%te.length;g.value=i[te[Pe]],z()}function q(te){const Z=o.urlList.length;h.value=(te+Z)%Z}function Y(){w.value&&!o.infinite||q(h.value-1)}function U(){A.value&&!o.infinite||q(h.value+1)}function F(te,Z={}){if(v.value)return;const{minScale:le,maxScale:ve}=o,{zoomRate:Pe,rotateDeg:Ae,enableTransition:he}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Z};switch(te){case"zoomOut":y.value.scale>le&&(y.value.scale=Number.parseFloat((y.value.scale/Pe).toFixed(3)));break;case"zoomIn":y.value.scale<ve&&(y.value.scale=Number.parseFloat((y.value.scale*Pe).toFixed(3)));break;case"clockwise":y.value.deg+=Ae,n("rotate",y.value.deg);break;case"anticlockwise":y.value.deg-=Ae,n("rotate",y.value.deg);break}y.value.enableTransition=he}function H(te){var Z;((Z=te.detail)==null?void 0:Z.focusReason)==="pointer"&&te.preventDefault()}function re(){o.closeOnPressEscape&&O()}function X(te){if(te.ctrlKey){if(te.deltaY<0)return te.preventDefault(),!1;if(te.deltaY>0)return te.preventDefault(),!1}}return St(S,()=>{Yt(()=>{const te=f.value[0];te?.complete||(v.value=!0)})}),St(h,te=>{z(),n("switch",te)}),qn(()=>{k(),a=Ro("wheel",X,{passive:!1}),s=document.body.style.overflow,document.body.style.overflow="hidden"}),t({setActiveItem:q}),(te,Z)=>(L(),yt(C(jb),{to:"body",disabled:!te.teleported},{default:rt(()=>[He(Ki,{name:"viewer-fade",appear:""},{default:rt(()=>[x("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:oe(C(u).e("wrapper")),style:rn({zIndex:m.value})},[He(C($b),{loop:"",trapped:"","focus-trap-el":c.value,"focus-start-el":"container",onFocusoutPrevented:H,onReleaseRequested:re},{default:rt(()=>[x("div",{class:oe(C(u).e("mask")),onClick:en(le=>te.hideOnClickModal&&O(),["self"])},null,10,["onClick"]),xe(" CLOSE "),x("span",{class:oe([C(u).e("btn"),C(u).e("close")]),onClick:O},[He(C(Dn),null,{default:rt(()=>[He(C(vu))]),_:1})],2),xe(" ARROW "),C(b)?xe("v-if",!0):(L(),G(Rt,{key:0},[x("span",{class:oe(C(E)),onClick:Y},[He(C(Dn),null,{default:rt(()=>[He(C(Jf))]),_:1})],2),x("span",{class:oe(C(D)),onClick:U},[He(C(Dn),null,{default:rt(()=>[He(C(Da))]),_:1})],2)],64)),te.$slots.progress||te.showProgress?(L(),G("div",{key:1,class:oe([C(u).e("btn"),C(u).e("progress")])},[ht(te.$slots,"progress",{activeIndex:h.value,total:te.urlList.length},()=>[bn(je(C(M)),1)])],2)):xe("v-if",!0),xe(" ACTIONS "),x("div",{class:oe([C(u).e("btn"),C(u).e("actions")])},[x("div",{class:oe(C(u).e("actions__inner"))},[ht(te.$slots,"toolbar",{actions:F,prev:Y,next:U,reset:j,activeIndex:h.value,setActiveItem:q},()=>[He(C(Dn),{onClick:le=>F("zoomOut")},{default:rt(()=>[He(C(WLe))]),_:1},8,["onClick"]),He(C(Dn),{onClick:le=>F("zoomIn")},{default:rt(()=>[He(C(s1e))]),_:1},8,["onClick"]),x("i",{class:oe(C(u).e("actions__divider"))},null,2),He(C(Dn),{onClick:j},{default:rt(()=>[(L(),yt(mr(C(g).icon)))]),_:1}),x("i",{class:oe(C(u).e("actions__divider"))},null,2),He(C(Dn),{onClick:le=>F("anticlockwise")},{default:rt(()=>[He(C(ELe))]),_:1},8,["onClick"]),He(C(Dn),{onClick:le=>F("clockwise")},{default:rt(()=>[He(C(TLe))]),_:1},8,["onClick"])])],2)],2),xe(" CANVAS "),x("div",{class:oe(C(u).e("canvas"))},[(L(!0),G(Rt,null,un(te.urlList,(le,ve)=>(L(),G(Rt,{key:ve},[ve===h.value?(L(),G("img",{key:0,ref_for:!0,ref:Pe=>f.value[ve]=Pe,src:le,style:rn(C(_)),class:oe(C(u).e("img")),crossorigin:te.crossorigin,onLoad:N,onError:W,onMousedown:B},null,46,["src","crossorigin"])):xe("v-if",!0)],64))),128))],2),ht(te.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var bYe=on(yYe,[["__file","image-viewer.vue"]]);const sbe=or(bYe),wYe=Jt({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:ct([String,Object])},previewSrcList:{type:ct(Array),default:()=>fi([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:ct(String)}}),AYe={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>$n(e),close:()=>!0,show:()=>!0},CYe=nt({name:"ElImage",inheritAttrs:!1}),xYe=nt({...CYe,props:wYe,emits:AYe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Gr(),i=Vt("image"),a=yp(),s=ee(()=>Y3(Object.entries(a).filter(([B])=>/^(data-|on[A-Z])/i.test(B)||["id","style"].includes(B)))),l=aD({excludeListeners:!0,excludeKeys:ee(()=>Object.keys(s.value))}),u=K(),d=K(!1),c=K(!0),f=K(!1),p=K(),v=K(),h=Xr&&"loading"in HTMLImageElement.prototype;let g;const y=ee(()=>[i.e("inner"),b.value&&i.e("preview"),c.value&&i.is("loading")]),m=ee(()=>{const{fit:B}=r;return Xr&&B?{objectFit:B}:{}}),b=ee(()=>{const{previewSrcList:B}=r;return Zt(B)&&B.length>0}),w=ee(()=>{const{previewSrcList:B,initialIndex:z}=r;let j=z;return z>B.length-1&&(j=0),j}),A=ee(()=>r.loading==="eager"?!1:!h&&r.loading==="lazy"||r.lazy),S=()=>{Xr&&(c.value=!0,d.value=!1,u.value=r.src)};function E(B){c.value=!1,d.value=!1,n("load",B)}function D(B){c.value=!1,d.value=!0,n("error",B)}function _(B){B&&(S(),k())}const M=Lme(_,200,!0);async function O(){var B;if(!Xr)return;await Yt();const{scrollContainer:z}=r;if(cl(z))v.value=z;else if(In(z)&&z!=="")v.value=(B=document.querySelector(z))!=null?B:void 0;else if(p.value){const q=AH(p.value);v.value=N5(q)?void 0:q}const{stop:j}=XRe(p,([q])=>{M(q.isIntersecting)},{root:v});g=j}function k(){!Xr||!M||(g?.(),v.value=void 0,g=void 0)}function R(){b.value&&(f.value=!0,n("show"))}function N(){f.value=!1,n("close")}function W(B){n("switch",B)}return St(()=>r.src,()=>{A.value?(c.value=!0,d.value=!1,k(),O()):S()}),qn(()=>{A.value?O():S()}),t({showPreview:R}),(B,z)=>(L(),G("div",vr({ref_key:"container",ref:p},C(s),{class:[C(i).b(),B.$attrs.class]}),[d.value?ht(B.$slots,"error",{key:0},()=>[x("div",{class:oe(C(i).e("error"))},je(C(o)("el.image.error")),3)]):(L(),G(Rt,{key:1},[u.value!==void 0?(L(),G("img",vr({key:0},C(l),{src:u.value,loading:B.loading,style:C(m),class:C(y),crossorigin:B.crossorigin,onClick:R,onLoad:E,onError:D}),null,16,["src","loading","crossorigin"])):xe("v-if",!0),c.value?(L(),G("div",{key:1,class:oe(C(i).e("wrapper"))},[ht(B.$slots,"placeholder",{},()=>[x("div",{class:oe(C(i).e("placeholder"))},null,2)])],2)):xe("v-if",!0)],64)),C(b)?(L(),G(Rt,{key:2},[f.value?(L(),yt(C(sbe),{key:0,"z-index":B.zIndex,"initial-index":C(w),infinite:B.infinite,"zoom-rate":B.zoomRate,"min-scale":B.minScale,"max-scale":B.maxScale,"show-progress":B.showProgress,"url-list":B.previewSrcList,crossorigin:B.crossorigin,"hide-on-click-modal":B.hideOnClickModal,teleported:B.previewTeleported,"close-on-press-escape":B.closeOnPressEscape,onClose:N,onSwitch:W},Hl({toolbar:rt(j=>[ht(B.$slots,"toolbar",Il($d(j)))]),default:rt(()=>[B.$slots.viewer?(L(),G("div",{key:0},[ht(B.$slots,"viewer")])):xe("v-if",!0)]),_:2},[B.$slots.progress?{name:"progress",fn:rt(j=>[ht(B.$slots,"progress",Il($d(j)))])}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):xe("v-if",!0)],64)):xe("v-if",!0)],16))}});var SYe=on(xYe,[["__file","image.vue"]]);const EYe=or(SYe),kYe=Jt({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:Aa,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||$n(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},..._s(["ariaLabel"]),inputmode:{type:ct(String),default:void 0},align:{type:ct(String),default:"center"},disabledScientific:Boolean}),TYe={[Pr]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[ba]:e=>$n(e)||ea(e),[Qn]:e=>$n(e)||ea(e)},_Ye=nt({name:"ElInputNumber"}),DYe=nt({..._Ye,props:kYe,emits:TYe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Gr(),i=Vt("input-number"),a=K(),s=Wr({currentValue:r.modelValue,userInput:null}),{formItem:l}=Ds(),u=ee(()=>$n(r.modelValue)&&r.modelValue<=r.min),d=ee(()=>$n(r.modelValue)&&r.modelValue>=r.max),c=ee(()=>{const B=y(r.step);return Vr(r.precision)?Math.max(y(r.modelValue),B):(B>r.precision,r.precision)}),f=ee(()=>r.controls&&r.controlsPosition==="right"),p=ha(),v=Va(),h=ee(()=>{if(s.userInput!==null)return s.userInput;let B=s.currentValue;if(ea(B))return"";if($n(B)){if(Number.isNaN(B))return"";Vr(r.precision)||(B=B.toFixed(r.precision))}return B}),g=(B,z)=>{if(Vr(z)&&(z=c.value),z===0)return Math.round(B);let j=String(B);const q=j.indexOf(".");if(q===-1||!j.replace(".","").split("")[q+z])return B;const F=j.length;return j.charAt(F-1)==="5"&&(j=`${j.slice(0,Math.max(0,F-1))}6`),Number.parseFloat(Number(j).toFixed(z))},y=B=>{if(ea(B))return 0;const z=B.toString(),j=z.indexOf(".");let q=0;return j!==-1&&(q=z.length-j-1),q},m=(B,z=1)=>$n(B)?B>=Number.MAX_SAFE_INTEGER&&z===1||B<=Number.MIN_SAFE_INTEGER&&z===-1?B:g(B+r.step*z):s.currentValue,b=B=>{var z;const j=B;if(r.disabledScientific&&["e","E"].includes(j.key)){j.preventDefault();return}const q={[gn.up]:()=>{j.preventDefault(),w()},[gn.down]:()=>{j.preventDefault(),A()}};(z=q[j.key])==null||z.call(q)},w=()=>{if(r.readonly||v.value||d.value)return;const B=Number(h.value)||0,z=m(B);E(z),n(ba,s.currentValue),N()},A=()=>{if(r.readonly||v.value||u.value)return;const B=Number(h.value)||0,z=m(B,-1);E(z),n(ba,s.currentValue),N()},S=(B,z)=>{const{max:j,min:q,step:Y,precision:U,stepStrictly:F,valueOnClear:H}=r;j<q&&na("InputNumber","min should not be greater than max.");let re=Number(B);if(ea(B)||Number.isNaN(re))return null;if(B===""){if(H===null)return null;re=In(H)?{min:q,max:j}[H]:H}return F&&(re=g(Math.round(re/Y)*Y,U),re!==B&&z&&n(Qn,re)),Vr(U)||(re=g(re,U)),(re>j||re<q)&&(re=re>j?j:q,z&&n(Qn,re)),re},E=(B,z=!0)=>{var j;const q=s.currentValue,Y=S(B);if(!z){n(Qn,Y);return}q===Y&&B||(s.userInput=null,n(Qn,Y),q!==Y&&n(Pr,Y,q),r.validateEvent&&((j=l?.validate)==null||j.call(l,"change").catch(U=>void 0)),s.currentValue=Y)},D=B=>{s.userInput=B;const z=B===""?null:Number(B);n(ba,z),E(z,!1)},_=B=>{const z=B!==""?Number(B):"";($n(z)&&!Number.isNaN(z)||B==="")&&E(z),N(),s.userInput=null},M=()=>{var B,z;(z=(B=a.value)==null?void 0:B.focus)==null||z.call(B)},O=()=>{var B,z;(z=(B=a.value)==null?void 0:B.blur)==null||z.call(B)},k=B=>{n("focus",B)},R=B=>{var z,j;s.userInput=null,s.currentValue===null&&((z=a.value)!=null&&z.input)&&(a.value.input.value=""),n("blur",B),r.validateEvent&&((j=l?.validate)==null||j.call(l,"blur").catch(q=>void 0))},N=()=>{s.currentValue!==r.modelValue&&(s.currentValue=r.modelValue)},W=B=>{document.activeElement===B.target&&B.preventDefault()};return St(()=>r.modelValue,(B,z)=>{const j=S(B,!0);s.userInput===null&&j!==z&&(s.currentValue=j)},{immediate:!0}),St(()=>r.precision,()=>{s.currentValue=S(r.modelValue)}),qn(()=>{var B;const{min:z,max:j,modelValue:q}=r,Y=(B=a.value)==null?void 0:B.input;if(Y.setAttribute("role","spinbutton"),Number.isFinite(j)?Y.setAttribute("aria-valuemax",String(j)):Y.removeAttribute("aria-valuemax"),Number.isFinite(z)?Y.setAttribute("aria-valuemin",String(z)):Y.removeAttribute("aria-valuemin"),Y.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),Y.setAttribute("aria-disabled",String(v.value)),!$n(q)&&q!=null){let U=Number(q);Number.isNaN(U)&&(U=null),n(Qn,U)}Y.addEventListener("wheel",W,{passive:!1})}),Qc(()=>{var B,z;const j=(B=a.value)==null?void 0:B.input;j?.setAttribute("aria-valuenow",`${(z=s.currentValue)!=null?z:""}`)}),t({focus:M,blur:O}),(B,z)=>(L(),G("div",{class:oe([C(i).b(),C(i).m(C(p)),C(i).is("disabled",C(v)),C(i).is("without-controls",!B.controls),C(i).is("controls-right",C(f)),C(i).is(B.align,!!B.align)]),onDragstart:en(()=>{},["prevent"])},[B.controls?cn((L(),G("span",{key:0,role:"button","aria-label":C(o)("el.inputNumber.decrease"),class:oe([C(i).e("decrease"),C(i).is("disabled",C(u))]),onKeydown:$r(A,["enter"])},[ht(B.$slots,"decrease-icon",{},()=>[He(C(Dn),null,{default:rt(()=>[C(f)?(L(),yt(C(ed),{key:0})):(L(),yt(C(gLe),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[C(SE),A]]):xe("v-if",!0),B.controls?cn((L(),G("span",{key:1,role:"button","aria-label":C(o)("el.inputNumber.increase"),class:oe([C(i).e("increase"),C(i).is("disabled",C(d))]),onKeydown:$r(w,["enter"])},[ht(B.$slots,"increase-icon",{},()=>[He(C(Dn),null,{default:rt(()=>[C(f)?(L(),yt(C(oD),{key:0})):(L(),yt(C(o1e),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[C(SE),w]]):xe("v-if",!0),He(C(js),{id:B.id,ref_key:"input",ref:a,type:"number",step:B.step,"model-value":C(h),placeholder:B.placeholder,readonly:B.readonly,disabled:C(v),size:C(p),max:B.max,min:B.min,name:B.name,"aria-label":B.ariaLabel,"validate-event":!1,inputmode:B.inputmode,onKeydown:b,onBlur:R,onFocus:k,onInput:D,onChange:_},Hl({_:2},[B.$slots.prefix?{name:"prefix",fn:rt(()=>[ht(B.$slots,"prefix")])}:void 0,B.$slots.suffix?{name:"suffix",fn:rt(()=>[ht(B.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],42,["onDragstart"]))}});var IYe=on(DYe,[["__file","input-number.vue"]]);const lbe=or(IYe),OYe=Jt({modelValue:{type:ct(Array)},max:Number,tagType:{...tp.type,default:"info"},tagEffect:tp.effect,trigger:{type:ct(String),default:gn.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:Aa,clearable:Boolean,clearIcon:{type:wo,default:tf},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),MYe={[Qn]:e=>Zt(e)||Vr(e),[Pr]:e=>Zt(e)||Vr(e),[ba]:e=>In(e),"add-tag":e=>In(e)||Zt(e),"remove-tag":e=>In(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function PYe({props:e,emit:t,formItem:n}){const r=Va(),o=ha(),i=jo(),a=K(),s=K(),l=ee(()=>["small"].includes(o.value)?"small":"default"),u=ee(()=>{var N;return(N=e.modelValue)!=null&&N.length?void 0:e.placeholder}),d=ee(()=>!(e.readonly||r.value)),c=ee(()=>{var N,W;return Vr(e.max)?!1:((W=(N=e.modelValue)==null?void 0:N.length)!=null?W:0)>=e.max}),f=ee(()=>{var N;return e.collapseTags?(N=e.modelValue)==null?void 0:N.slice(0,e.maxCollapseTags):e.modelValue}),p=ee(()=>{var N;return e.collapseTags?(N=e.modelValue)==null?void 0:N.slice(e.maxCollapseTags):[]}),v=N=>{var W;const B=[...(W=e.modelValue)!=null?W:[],...Ya(N)];t(Qn,B),t(Pr,B),t("add-tag",N),a.value=void 0},h=N=>{var W,B;const z=N.split(e.delimiter).filter(j=>j&&j!==N);if(e.max){const j=e.max-((B=(W=e.modelValue)==null?void 0:W.length)!=null?B:0);z.splice(j)}return z.length===1?z[0]:z},g=N=>{if(c.value){a.value=void 0;return}if(!M.value){if(e.delimiter&&a.value){const W=h(a.value);W.length&&v(W)}t(ba,N.target.value)}},y=N=>{var W;if(!M.value)switch(N.code){case e.trigger:N.preventDefault(),N.stopPropagation(),m();break;case gn.numpadEnter:e.trigger===gn.enter&&(N.preventDefault(),N.stopPropagation(),m());break;case gn.backspace:!a.value&&((W=e.modelValue)!=null&&W.length)&&(N.preventDefault(),N.stopPropagation(),b(e.modelValue.length-1));break}},m=()=>{var N;const W=(N=a.value)==null?void 0:N.trim();!W||c.value||v(W)},b=N=>{var W;const B=((W=e.modelValue)!=null?W:[]).slice(),[z]=B.splice(N,1);t(Qn,B),t(Pr,B),t("remove-tag",z)},w=()=>{a.value=void 0,t(Qn,void 0),t(Pr,void 0),t("clear")},A=(N,W,B)=>{var z;const j=((z=e.modelValue)!=null?z:[]).slice(),[q]=j.splice(N,1),Y=W>N&&B==="before"?-1:W<N&&B==="after"?1:0;j.splice(W+Y,0,q),t(Qn,j),t(Pr,j)},S=()=>{var N;(N=i.value)==null||N.focus()},E=()=>{var N;(N=i.value)==null||N.blur()},{wrapperRef:D,isFocused:_}=Ap(i,{disabled:r,beforeBlur(N){var W;return(W=s.value)==null?void 0:W.isFocusInsideContent(N)},afterBlur(){var N;e.saveOnBlur?m():a.value=void 0,e.validateEvent&&((N=n?.validate)==null||N.call(n,"blur").catch(W=>void 0))}}),{isComposing:M,handleCompositionStart:O,handleCompositionUpdate:k,handleCompositionEnd:R}=F5({afterComposition:g});return St(()=>e.modelValue,()=>{var N;e.validateEvent&&((N=n?.validate)==null||N.call(n,Pr).catch(W=>void 0))}),{inputRef:i,wrapperRef:D,tagTooltipRef:s,isFocused:_,isComposing:M,inputValue:a,size:o,tagSize:l,placeholder:u,closable:d,disabled:r,inputLimit:c,showTagList:f,collapseTagList:p,handleDragged:A,handleInput:g,handleKeydown:y,handleAddTag:m,handleRemoveTag:b,handleClear:w,handleCompositionStart:O,handleCompositionUpdate:k,handleCompositionEnd:R,focus:S,blur:E}}function NYe(){const e=K(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}const cW=11;function dW(){const e=jo(),t=K(0),n=ee(()=>({minWidth:`${Math.max(t.value,cW)}px`}));return li(e,()=>{var o,i;t.value=(i=(o=e.value)==null?void 0:o.getBoundingClientRect().width)!=null?i:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}function RYe({wrapperRef:e,handleDragged:t,afterDragged:n}){const r=Vt("input-tag"),o=jo(),i=K(!1);let a,s,l,u;function d(v){return`.${r.e("inner")} .${r.namespace.value}-tag:nth-child(${v+1})`}function c(v,h){a=h,s=e.value.querySelector(d(h)),s&&(s.style.opacity="0.5"),v.dataTransfer.effectAllowed="move"}function f(v,h){if(l=h,v.preventDefault(),v.dataTransfer.dropEffect="move",Vr(a)||a===h){i.value=!1;return}const g=e.value.querySelector(d(h)).getBoundingClientRect(),y=a+1!==h,m=a-1!==h,b=v.clientX-g.left,w=y?m?.5:1:-1,A=m?y?.5:0:1;b<=g.width*w?u="before":b>g.width*A?u="after":u=void 0;const S=e.value.querySelector(`.${r.e("inner")}`),E=S.getBoundingClientRect(),D=Number.parseFloat(Mf(S,"gap"))/2,_=g.top-E.top;let M=-9999;if(u==="before")M=Math.max(g.left-E.left-D,Math.floor(-D/2));else if(u==="after"){const O=g.right-E.left;M=O+(E.width===O?Math.floor(D/2):D)}Yme(o.value,{top:`${_}px`,left:`${M}px`}),i.value=!!u}function p(v){v.preventDefault(),s&&(s.style.opacity=""),u&&!Vr(a)&&!Vr(l)&&a!==l&&t(a,l,u),i.value=!1,a=void 0,s=null,l=void 0,u=void 0,n?.()}return{dropIndicatorRef:o,showDropIndicator:i,handleDragStart:c,handleDragOver:f,handleDragEnd:p}}function BYe({props:e,isFocused:t,hovering:n,disabled:r,inputValue:o,size:i,validateState:a,validateIcon:s,needStatusIcon:l}){const u=yp(),d=ga(),c=Vt("input-tag"),f=Vt("input"),p=ee(()=>[c.b(),c.is("focused",t.value),c.is("hovering",n.value),c.is("disabled",r.value),c.m(i.value),c.e("wrapper"),u.class]),v=ee(()=>[u.style]),h=ee(()=>{var m,b;return[c.e("inner"),c.is("draggable",e.draggable),c.is("left-space",!((m=e.modelValue)!=null&&m.length)&&!d.prefix),c.is("right-space",!((b=e.modelValue)!=null&&b.length)&&!y.value)]}),g=ee(()=>{var m;return e.clearable&&!r.value&&!e.readonly&&(((m=e.modelValue)==null?void 0:m.length)||o.value)&&(t.value||n.value)}),y=ee(()=>d.suffix||g.value||a.value&&s.value&&l.value);return{ns:c,nsInput:f,containerKls:p,containerStyle:v,innerKls:h,showClear:g,showSuffix:y}}const LYe=nt({name:"ElInputTag",inheritAttrs:!1}),FYe=nt({...LYe,props:OYe,emits:MYe,setup(e,{expose:t,emit:n}){const r=e,o=aD(),i=ga(),{form:a,formItem:s}=Ds(),{inputId:l}=fc(r,{formItemContext:s}),u=ee(()=>{var me;return(me=a?.statusIcon)!=null?me:!1}),d=ee(()=>s?.validateState||""),c=ee(()=>d.value&&iD[d.value]),{inputRef:f,wrapperRef:p,tagTooltipRef:v,isFocused:h,inputValue:g,size:y,tagSize:m,placeholder:b,closable:w,disabled:A,showTagList:S,collapseTagList:E,handleDragged:D,handleInput:_,handleKeydown:M,handleRemoveTag:O,handleClear:k,handleCompositionStart:R,handleCompositionUpdate:N,handleCompositionEnd:W,focus:B,blur:z}=PYe({props:r,emit:n,formItem:s}),{hovering:j,handleMouseEnter:q,handleMouseLeave:Y}=NYe(),{calculatorRef:U,inputStyle:F}=dW(),{dropIndicatorRef:H,showDropIndicator:re,handleDragStart:X,handleDragOver:te,handleDragEnd:Z}=RYe({wrapperRef:p,handleDragged:D,afterDragged:B}),{ns:le,nsInput:ve,containerKls:Pe,containerStyle:Ae,innerKls:he,showClear:Ee,showSuffix:Q}=BYe({props:r,hovering:j,isFocused:h,inputValue:g,disabled:A,size:y,validateState:d,validateIcon:c,needStatusIcon:u});return t({focus:B,blur:z}),(me,De)=>(L(),G("div",{ref_key:"wrapperRef",ref:p,class:oe(C(Pe)),style:rn(C(Ae)),onMouseenter:C(q),onMouseleave:C(Y)},[C(i).prefix?(L(),G("div",{key:0,class:oe(C(le).e("prefix"))},[ht(me.$slots,"prefix")],2)):xe("v-if",!0),x("div",{class:oe(C(he))},[(L(!0),G(Rt,null,un(C(S),(pe,ie)=>(L(),yt(C(Nh),{key:ie,size:C(m),closable:C(w),type:me.tagType,effect:me.tagEffect,draggable:C(w)&&me.draggable,"disable-transitions":"",onClose:ue=>C(O)(ie),onDragstart:ue=>C(X)(ue,ie),onDragover:ue=>C(te)(ue,ie),onDragend:C(Z),onDrop:en(()=>{},["stop"])},{default:rt(()=>[ht(me.$slots,"tag",{value:pe,index:ie},()=>[bn(je(pe),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"]))),128)),me.collapseTags&&me.modelValue&&me.modelValue.length>me.maxCollapseTags?(L(),yt(C(hs),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!me.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:me.tagEffect,placement:"bottom"},{default:rt(()=>[He(C(Nh),{closable:!1,size:C(m),type:me.tagType,effect:me.tagEffect,"disable-transitions":""},{default:rt(()=>[bn(" + "+je(me.modelValue.length-me.maxCollapseTags),1)]),_:1},8,["size","type","effect"])]),content:rt(()=>[x("div",{class:oe(C(le).e("input-tag-list"))},[(L(!0),G(Rt,null,un(C(E),(pe,ie)=>(L(),yt(C(Nh),{key:ie,size:C(m),closable:C(w),type:me.tagType,effect:me.tagEffect,"disable-transitions":"",onClose:ue=>C(O)(ie+me.maxCollapseTags)},{default:rt(()=>[ht(me.$slots,"tag",{value:pe,index:ie+me.maxCollapseTags},()=>[bn(je(pe),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):xe("v-if",!0),x("div",{class:oe(C(le).e("input-wrapper"))},[cn(x("input",vr({id:C(l),ref_key:"inputRef",ref:f,"onUpdate:modelValue":pe=>Uo(g)?g.value=pe:null},C(o),{type:"text",minlength:me.minlength,maxlength:me.maxlength,disabled:C(A),readonly:me.readonly,autocomplete:me.autocomplete,tabindex:me.tabindex,placeholder:C(b),autofocus:me.autofocus,ariaLabel:me.ariaLabel,class:C(le).e("input"),style:C(F),onCompositionstart:C(R),onCompositionupdate:C(N),onCompositionend:C(W),onInput:C(_),onKeydown:C(M)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[qr,C(g)]]),x("span",{ref_key:"calculatorRef",ref:U,"aria-hidden":"true",class:oe(C(le).e("input-calculator")),textContent:je(C(g))},null,10,["textContent"])],2),cn(x("div",{ref_key:"dropIndicatorRef",ref:H,class:oe(C(le).e("drop-indicator"))},null,2),[[kr,C(re)]])],2),C(Q)?(L(),G("div",{key:1,class:oe(C(le).e("suffix"))},[ht(me.$slots,"suffix"),C(Ee)?(L(),yt(C(Dn),{key:0,class:oe([C(le).e("icon"),C(le).e("clear")]),onMousedown:en(C(bo),["prevent"]),onClick:C(k)},{default:rt(()=>[(L(),yt(mr(me.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):xe("v-if",!0),C(d)&&C(c)&&C(u)?(L(),yt(C(Dn),{key:1,class:oe([C(ve).e("icon"),C(ve).e("validateIcon"),C(ve).is("loading",C(d)==="validating")])},{default:rt(()=>[(L(),yt(mr(C(c))))]),_:1},8,["class"])):xe("v-if",!0)],2)):xe("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var UYe=on(FYe,[["__file","input-tag.vue"]]);const zYe=or(UYe),$Ye=Jt({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:wo}}),jYe={click:e=>e instanceof MouseEvent},HYe=nt({name:"ElLink"}),WYe=nt({...HYe,props:$Ye,emits:jYe,setup(e,{emit:t}){const n=e,r=Ub("link");jf({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},ee(()=>Eo(n.underline)));const o=Vt("link"),i=ee(()=>{var l,u,d;return[o.b(),o.m((d=(u=n.type)!=null?u:(l=r.value)==null?void 0:l.type)!=null?d:"default"),o.is("disabled",n.disabled),o.is("underline",a.value==="always"),o.is("hover-underline",a.value==="hover"&&!n.disabled)]}),a=ee(()=>{var l,u,d;return Eo(n.underline)?n.underline?"hover":"never":(d=(u=n.underline)!=null?u:(l=r.value)==null?void 0:l.underline)!=null?d:"hover"});function s(l){n.disabled||t("click",l)}return(l,u)=>(L(),G("a",{class:oe(C(i)),href:l.disabled||!l.href?void 0:l.href,target:l.disabled||!l.href?void 0:l.target,onClick:s},[l.icon?(L(),yt(C(Dn),{key:0},{default:rt(()=>[(L(),yt(mr(l.icon)))]),_:1})):xe("v-if",!0),l.$slots.default?(L(),G("span",{key:1,class:oe(C(o).e("inner"))},[ht(l.$slots,"default")],2)):xe("v-if",!0),l.$slots.icon?ht(l.$slots,"icon",{key:2}):xe("v-if",!0)],10,["href","target"]))}});var VYe=on(WYe,[["__file","link.vue"]]);const qYe=or(VYe);let GYe=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let o=!1;switch(r.code){case gn.down:{this.gotoSubIndex(this.subIndex+1),o=!0;break}case gn.up:{this.gotoSubIndex(this.subIndex-1),o=!0;break}case gn.tab:{CS(t,"mouseleave");break}case gn.enter:case gn.numpadEnter:case gn.space:{o=!0,r.currentTarget.click();break}}return o&&(r.preventDefault(),r.stopPropagation()),!1})})}},KYe=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new GYe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case gn.down:{CS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case gn.up:{CS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case gn.tab:{CS(t.currentTarget,"mouseleave");break}case gn.enter:case gn.numpadEnter:case gn.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},YYe=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new KYe(r,t)})}};const QYe=nt({name:"ElMenuCollapseTransition"}),ZYe=nt({...QYe,setup(e){const t=Vt("menu"),n={onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,o){zu(r,`${t.namespace.value}-opacity-transition`),r.style.opacity="1",o()},onAfterEnter(r){Ws(r,`${t.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Ol(r,t.m("collapse"))?(Ws(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),zu(r,t.m("collapse"))):(zu(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Ws(r,t.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){zu(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}};return(r,o)=>(L(),yt(Ki,vr({mode:"out-in"},C(n)),{default:rt(()=>[ht(r.$slots,"default")]),_:3},16))}});var XYe=on(ZYe,[["__file","menu-collapse-transition.vue"]]);function ube(e,t){const n=ee(()=>{let o=e.parent;const i=[t.value];for(;o.type.name!=="ElMenu";)o.props.index&&i.unshift(o.props.index),o=o.parent;return i});return{parentMenu:ee(()=>{let o=e.parent;for(;o&&!["ElMenu","ElSubMenu"].includes(o.type.name);)o=o.parent;return o}),indexPath:n}}function JYe(e){return ee(()=>{const n=e.backgroundColor;return n?new $1(n).shade(20).toString():""})}const cbe=(e,t)=>{const n=Vt("menu");return ee(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":JYe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},fW="rootMenu",_E="subMenu:",eQe=Jt({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:wo},expandOpenIcon:{type:wo},collapseCloseIcon:{type:wo},collapseOpenIcon:{type:wo}}),EI="ElSubMenu";var pW=nt({name:EI,props:eQe,setup(e,{slots:t,expose:n}){const r=br(),{indexPath:o,parentMenu:i}=ube(r,ee(()=>e.index)),a=Vt("menu"),s=Vt("sub-menu"),l=dn(fW);l||na(EI,"can not inject root menu");const u=dn(`${_E}${i.value.uid}`);u||na(EI,"can not inject sub menu");const d=K({}),c=K({});let f;const p=K(!1),v=K(),h=K(),g=ee(()=>D.value==="horizontal"&&m.value?"bottom-start":"right-start"),y=ee(()=>D.value==="horizontal"&&m.value||D.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:ed:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:Da),m=ee(()=>u.level===0),b=ee(()=>{const U=e.teleported;return Vr(U)?m.value:U}),w=ee(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),A=ee(()=>D.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),S=ee(()=>l.openedMenus.includes(e.index)),E=ee(()=>[...Object.values(d.value),...Object.values(c.value)].some(({active:U})=>U)),D=ee(()=>l.props.mode),_=ee(()=>l.props.persistent),M=Wr({index:e.index,indexPath:o,active:E}),O=cbe(l.props,u.level+1),k=ee(()=>{var U;return(U=e.popperOffset)!=null?U:l.props.popperOffset}),R=ee(()=>{var U;return(U=e.popperClass)!=null?U:l.props.popperClass}),N=ee(()=>{var U;return(U=e.showTimeout)!=null?U:l.props.showTimeout}),W=ee(()=>{var U;return(U=e.hideTimeout)!=null?U:l.props.hideTimeout}),B=()=>{var U,F,H;return(H=(F=(U=h.value)==null?void 0:U.popperRef)==null?void 0:F.popperInstanceRef)==null?void 0:H.destroy()},z=U=>{U||B()},j=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:o.value,active:E.value})},q=(U,F=N.value)=>{var H;if(U.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,f?.(),{stop:f}=Mv(()=>{l.openMenu(e.index,o.value)},F),b.value&&((H=i.value.vnode.el)==null||H.dispatchEvent(new MouseEvent("mouseenter")))}},Y=(U=!1)=>{var F;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}f?.(),u.mouseInChild.value=!1,{stop:f}=Mv(()=>!p.value&&l.closeMenu(e.index,o.value),W.value),b.value&&U&&((F=u.handleMouseleave)==null||F.call(u,!0))};St(()=>l.props.collapse,U=>z(!!U));{const U=H=>{c.value[H.index]=H},F=H=>{delete c.value[H.index]};_r(`${_E}${r.uid}`,{addSubMenu:U,removeSubMenu:F,handleMouseleave:Y,mouseInChild:p,level:u.level+1})}return n({opened:S}),qn(()=>{l.addSubMenu(M),u.addSubMenu(M)}),Jr(()=>{u.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var U;const F=[(U=t.title)==null?void 0:U.call(t),jn(Dn,{class:s.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>In(y.value)?jn(r.appContext.components[y.value]):jn(y.value)})],H=l.isMenuPopup?jn(hs,{ref:h,visible:S.value,effect:"light",pure:!0,offset:k.value,showArrow:!1,persistent:_.value,popperClass:R.value,placement:g.value,teleported:b.value,fallbackPlacements:A.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var re;return jn("div",{class:[a.m(D.value),a.m("popup-container"),R.value],onMouseenter:X=>q(X,100),onMouseleave:()=>Y(!0),onFocus:X=>q(X,100)},[jn("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${g.value}`)],style:O.value},[(re=t.default)==null?void 0:re.call(t)])])},default:()=>jn("div",{class:s.e("title"),onClick:j},F)}):jn(Rt,{},[jn("div",{class:s.e("title"),ref:v,onClick:j},F),jn(fD,{},{default:()=>{var re;return cn(jn("ul",{role:"menu",class:[a.b(),a.m("inline")],style:O.value},[(re=t.default)==null?void 0:re.call(t)]),[[kr,S.value]])}})]);return jn("li",{class:[s.b(),s.is("active",E.value),s.is("opened",S.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:q,onMouseleave:()=>Y(),onFocus:q},[H])}}});const tQe=Jt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ct(Array),default:()=>fi([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:wo,default:()=>yLe},popperEffect:{type:ct(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),kI=e=>Zt(e)&&e.every(t=>In(t)),nQe={close:(e,t)=>In(e)&&kI(t),open:(e,t)=>In(e)&&kI(t),select:(e,t,n,r)=>In(e)&&kI(t)&&dr(n)&&(Vr(r)||r instanceof Promise)};var rQe=nt({name:"ElMenu",props:tQe,emits:nQe,setup(e,{emit:t,slots:n,expose:r}){const o=br(),i=o.appContext.config.globalProperties.$router,a=K(),s=K(),l=Vt("menu"),u=Vt("sub-menu");let d=64;const c=K(-1),f=K(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=K(e.defaultActive),v=K({}),h=K({}),g=ee(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),y=()=>{const z=p.value&&v.value[p.value];if(!z||e.mode==="horizontal"||e.collapse)return;z.indexPath.forEach(q=>{const Y=h.value[q];Y&&m(q,Y.indexPath)})},m=(z,j)=>{f.value.includes(z)||(e.uniqueOpened&&(f.value=f.value.filter(q=>j.includes(q))),f.value.push(z),t("open",z,j))},b=z=>{const j=f.value.indexOf(z);j!==-1&&f.value.splice(j,1)},w=(z,j)=>{b(z),t("close",z,j)},A=({index:z,indexPath:j})=>{f.value.includes(z)?w(z,j):m(z,j)},S=z=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:j,indexPath:q}=z;if(!(ea(j)||ea(q)))if(e.router&&i){const Y=z.route||j,U=i.push(Y).then(F=>(F||(p.value=j),F));t("select",j,q,{index:j,indexPath:q,route:Y},U)}else p.value=j,t("select",j,q,{index:j,indexPath:q})},E=z=>{var j;const q=v.value,Y=q[z]||p.value&&q[p.value]||q[e.defaultActive];p.value=(j=Y?.index)!=null?j:z},D=z=>{const j=getComputedStyle(z),q=Number.parseInt(j.marginLeft,10),Y=Number.parseInt(j.marginRight,10);return z.offsetWidth+q+Y||0},_=()=>{var z,j;if(!a.value)return-1;const q=Array.from((j=(z=a.value)==null?void 0:z.childNodes)!=null?j:[]).filter(te=>te.nodeName!=="#comment"&&(te.nodeName!=="#text"||te.nodeValue)),Y=getComputedStyle(a.value),U=Number.parseInt(Y.paddingLeft,10),F=Number.parseInt(Y.paddingRight,10),H=a.value.clientWidth-U-F;let re=0,X=0;return q.forEach((te,Z)=>{re+=D(te),re<=H-d&&(X=Z+1)}),X===q.length?-1:X},M=z=>h.value[z].indexPath,O=(z,j=33.34)=>{let q;return()=>{q&&clearTimeout(q),q=setTimeout(()=>{z()},j)}};let k=!0;const R=()=>{const z=Ta(s);if(z&&(d=D(z)||64),c.value===_())return;const j=()=>{c.value=-1,Yt(()=>{c.value=_()})};k?j():O(j)(),k=!1};St(()=>e.defaultActive,z=>{v.value[z]||(p.value=""),E(z)}),St(()=>e.collapse,z=>{z&&(f.value=[])}),St(v.value,y);let N;Es(()=>{e.mode==="horizontal"&&e.ellipsis?N=li(a,R).stop:N?.()});const W=K(!1);{const z=U=>{h.value[U.index]=U},j=U=>{delete h.value[U.index]};_r(fW,Wr({props:e,openedMenus:f,items:v,subMenus:h,activeIndex:p,isMenuPopup:g,addMenuItem:U=>{v.value[U.index]=U},removeMenuItem:U=>{delete v.value[U.index]},addSubMenu:z,removeSubMenu:j,openMenu:m,closeMenu:w,handleMenuItemClick:S,handleSubMenuClick:A})),_r(`${_E}${o.uid}`,{addSubMenu:z,removeSubMenu:j,mouseInChild:W,level:0})}qn(()=>{e.mode==="horizontal"&&new YYe(o.vnode.el,l.namespace.value)}),r({open:j=>{const{indexPath:q}=h.value[j];q.forEach(Y=>m(Y,q))},close:b,updateActiveIndex:E,handleResize:R});const B=cbe(e,0);return()=>{var z,j;let q=(j=(z=n.default)==null?void 0:z.call(n))!=null?j:[];const Y=[];if(e.mode==="horizontal"&&a.value){const H=Sd(q).filter(te=>te?.shapeFlag!==8),re=c.value===-1?H:H.slice(0,c.value),X=c.value===-1?[]:H.slice(c.value);X?.length&&e.ellipsis&&(q=re,Y.push(jn(pW,{ref:s,index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>jn(Dn,{class:u.e("icon-more")},{default:()=>jn(e.ellipsisIcon)}),default:()=>X})))}const U=e.closeOnClickOutside?[[np,()=>{f.value.length&&(W.value||(f.value.forEach(H=>t("close",H,M(H))),f.value=[]))}]]:[],F=cn(jn("ul",{key:String(e.collapse),role:"menubar",ref:a,style:B.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...q,...Y]),U);return e.collapseTransition&&e.mode==="vertical"?jn(XYe,()=>F):F}}});const oQe=Jt({index:{type:ct([String,null]),default:null},route:{type:ct([String,Object])},disabled:Boolean}),iQe={click:e=>In(e.index)&&Zt(e.indexPath)},UL="ElMenuItem",aQe=nt({name:UL}),sQe=nt({...aQe,props:oQe,emits:iQe,setup(e,{expose:t,emit:n}){const r=e;Bl(r.index)&&void 0;const o=br(),i=dn(fW),a=Vt("menu"),s=Vt("menu-item");i||na(UL,"can not inject root menu");const{parentMenu:l,indexPath:u}=ube(o,co(r,"index")),d=dn(`${_E}${l.value.uid}`);d||na(UL,"can not inject sub menu");const c=ee(()=>r.index===i.activeIndex),f=Wr({index:r.index,indexPath:u,active:c}),p=()=>{r.disabled||(i.handleMenuItemClick({index:r.index,indexPath:u.value,route:r.route}),n("click",f))};return qn(()=>{d.addSubMenu(f),i.addMenuItem(f)}),Jr(()=>{d.removeSubMenu(f),i.removeMenuItem(f)}),t({parentMenu:l,rootMenu:i,active:c,nsMenu:a,nsMenuItem:s,handleClick:p}),(v,h)=>(L(),G("li",{class:oe([C(s).b(),C(s).is("active",C(c)),C(s).is("disabled",v.disabled)]),role:"menuitem",tabindex:"-1",onClick:p},[C(l).type.name==="ElMenu"&&C(i).props.collapse&&v.$slots.title?(L(),yt(C(hs),{key:0,effect:C(i).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:C(i).props.persistent},{content:rt(()=>[ht(v.$slots,"title")]),default:rt(()=>[x("div",{class:oe(C(a).be("tooltip","trigger"))},[ht(v.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(L(),G(Rt,{key:1},[ht(v.$slots,"default"),ht(v.$slots,"title")],64))],2))}});var dbe=on(sQe,[["__file","menu-item.vue"]]);const lQe={title:String},uQe=nt({name:"ElMenuItemGroup"}),cQe=nt({...uQe,props:lQe,setup(e){const t=Vt("menu-item-group");return(n,r)=>(L(),G("li",{class:oe(C(t).b())},[x("div",{class:oe(C(t).e("title"))},[n.$slots.title?ht(n.$slots,"title",{key:1}):(L(),G(Rt,{key:0},[bn(je(n.title),1)],64))],2),x("ul",null,[ht(n.$slots,"default")])],2))}});var fbe=on(cQe,[["__file","menu-item-group.vue"]]);const dQe=or(rQe,{MenuItem:dbe,MenuItemGroup:fbe,SubMenu:pW}),fQe=vi(dbe),pQe=vi(fbe),hQe=vi(pW),gQe=Jt({icon:{type:wo,default:()=>FBe},title:String,content:{type:String,default:""}}),vQe={back:()=>!0},mQe=nt({name:"ElPageHeader"}),yQe=nt({...mQe,props:gQe,emits:vQe,setup(e,{emit:t}){const{t:n}=Gr(),r=Vt("page-header");function o(){t("back")}return(i,a)=>(L(),G("div",{class:oe([C(r).b(),{[C(r).m("has-breadcrumb")]:!!i.$slots.breadcrumb,[C(r).m("has-extra")]:!!i.$slots.extra,[C(r).is("contentful")]:!!i.$slots.default}])},[i.$slots.breadcrumb?(L(),G("div",{key:0,class:oe(C(r).e("breadcrumb"))},[ht(i.$slots,"breadcrumb")],2)):xe("v-if",!0),x("div",{class:oe(C(r).e("header"))},[x("div",{class:oe(C(r).e("left"))},[x("div",{class:oe(C(r).e("back")),role:"button",tabindex:"0",onClick:o},[i.icon||i.$slots.icon?(L(),G("div",{key:0,"aria-label":i.title||C(n)("el.pageHeader.title"),class:oe(C(r).e("icon"))},[ht(i.$slots,"icon",{},()=>[i.icon?(L(),yt(C(Dn),{key:0},{default:rt(()=>[(L(),yt(mr(i.icon)))]),_:1})):xe("v-if",!0)])],10,["aria-label"])):xe("v-if",!0),x("div",{class:oe(C(r).e("title"))},[ht(i.$slots,"title",{},()=>[bn(je(i.title||C(n)("el.pageHeader.title")),1)])],2)],2),He(C(Wye),{direction:"vertical"}),x("div",{class:oe(C(r).e("content"))},[ht(i.$slots,"content",{},()=>[bn(je(i.content),1)])],2)],2),i.$slots.extra?(L(),G("div",{key:0,class:oe(C(r).e("extra"))},[ht(i.$slots,"extra")],2)):xe("v-if",!0)],2),i.$slots.default?(L(),G("div",{key:1,class:oe(C(r).e("main"))},[ht(i.$slots,"default")],2)):xe("v-if",!0)],2))}});var bQe=on(yQe,[["__file","page-header.vue"]]);const wQe=or(bQe),pbe=Symbol("elPaginationKey"),AQe=Jt({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:wo}}),CQe={click:e=>e instanceof MouseEvent},xQe=nt({name:"ElPaginationPrev"}),SQe=nt({...xQe,props:AQe,emits:CQe,setup(e){const t=e,{t:n}=Gr(),r=ee(()=>t.disabled||t.currentPage<=1);return(o,i)=>(L(),G("button",{type:"button",class:"btn-prev",disabled:C(r),"aria-label":o.prevText||C(n)("el.pagination.prev"),"aria-disabled":C(r),onClick:a=>o.$emit("click",a)},[o.prevText?(L(),G("span",{key:0},je(o.prevText),1)):(L(),yt(C(Dn),{key:1},{default:rt(()=>[(L(),yt(mr(o.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var EQe=on(SQe,[["__file","prev.vue"]]);const kQe=Jt({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:wo}}),TQe=nt({name:"ElPaginationNext"}),_Qe=nt({...TQe,props:kQe,emits:["click"],setup(e){const t=e,{t:n}=Gr(),r=ee(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,i)=>(L(),G("button",{type:"button",class:"btn-next",disabled:C(r),"aria-label":o.nextText||C(n)("el.pagination.next"),"aria-disabled":C(r),onClick:a=>o.$emit("click",a)},[o.nextText?(L(),G("span",{key:0},je(o.nextText),1)):(L(),yt(C(Dn),{key:1},{default:rt(()=>[(L(),yt(mr(o.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var DQe=on(_Qe,[["__file","next.vue"]]);const hW={label:"label",value:"value",disabled:"disabled",options:"options"};function H5(e){const t=ee(()=>({...hW,...e.props}));return{aliasProps:t,getLabel:a=>Xi(a,t.value.label),getValue:a=>Xi(a,t.value.value),getDisabled:a=>Xi(a,t.value.disabled),getOptions:a=>Xi(a,t.value.options)}}const hbe=Symbol("ElSelectGroup"),Wb=Symbol("ElSelect"),zL="ElOption",IQe=Jt({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),gW=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),hh=e=>C5(e);function OQe(e,t){const n=dn(Wb);n||na(zL,"usage: <el-select><el-option /></el-select/>");const r=dn(hbe,{disabled:!1}),o=ee(()=>d(Ya(n.props.modelValue),e.value)),i=ee(()=>{var p;if(n.props.multiple){const v=Ya((p=n.props.modelValue)!=null?p:[]);return!o.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=ee(()=>{var p;return(p=e.label)!=null?p:dr(e.value)?"":e.value}),s=ee(()=>e.value||e.label||""),l=ee(()=>e.disabled||t.groupDisabled||i.value),u=br(),d=(p=[],v)=>{if(dr(e.value)){const h=n.props.valueKey;return p&&p.some(g=>No(Xi(g,h))===Xi(v,h))}else return p&&p.includes(v)},c=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},f=p=>{const v=new RegExp(gW(p),"i");t.visible=v.test(String(a.value))||e.created};return St(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),St(()=>e.value,(p,v)=>{const{remote:h,valueKey:g}=n.props;if((h?p!==v:!fa(p,v))&&(n.onOptionDestroy(v,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!h){if(g&&dr(p)&&dr(v)&&p[g]===v[g])return;n.setSelected()}}),St(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:s,itemSelected:o,isDisabled:l,hoverItem:c,updateOption:f}}const MQe=nt({name:zL,componentName:zL,props:IQe,setup(e){const t=Vt("select"),n=ps(),r=ee(()=>[t.be("dropdown","item"),t.is("disabled",C(s)),t.is("selected",C(a)),t.is("hovering",C(f))]),o=Wr({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:s,select:l,hoverItem:u,updateOption:d}=OQe(e,o),{visible:c,hover:f}=Oa(o),p=br().proxy;l.onOptionCreate(p),Jr(()=>{const h=p.value;Yt(()=>{const{selected:g}=l.states,y=g.some(m=>m.value===p.value);l.states.cachedOptions.get(h)===p&&!y&&l.states.cachedOptions.delete(h)}),l.onOptionDestroy(h,p)});function v(){s.value||l.handleOptionSelect(p)}return{ns:t,id:n,containerKls:r,currentLabel:i,itemSelected:a,isDisabled:s,select:l,visible:c,hover:f,states:o,hoverItem:u,updateOption:d,selectOptionClick:v}}});function PQe(e,t){return cn((L(),G("li",{id:e.id,class:oe(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:en(e.selectOptionClick,["stop"])},[ht(e.$slots,"default",{},()=>[x("span",null,je(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[kr,e.visible]])}var vW=on(MQe,[["render",PQe],["__file","option.vue"]]);const NQe=nt({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=dn(Wb),t=Vt("select"),n=ee(()=>e.props.popperClass),r=ee(()=>e.props.multiple),o=ee(()=>e.props.fitInputWidth),i=K("");function a(){var s;i.value=`${(s=e.selectRef)==null?void 0:s.offsetWidth}px`}return qn(()=>{a(),li(e.selectRef,a)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function RQe(e,t,n,r,o,i){return L(),G("div",{class:oe([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:rn({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(L(),G("div",{key:0,class:oe(e.ns.be("dropdown","header"))},[ht(e.$slots,"header")],2)):xe("v-if",!0),ht(e.$slots,"default"),e.$slots.footer?(L(),G("div",{key:1,class:oe(e.ns.be("dropdown","footer"))},[ht(e.$slots,"footer")],2)):xe("v-if",!0)],6)}var BQe=on(NQe,[["render",RQe],["__file","select-dropdown.vue"]]);const LQe=(e,t)=>{const{t:n}=Gr(),r=ps(),o=Vt("select"),i=Vt("input"),a=Wr({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),s=K(),l=K(),u=K(),d=K(),c=K(),f=K(),p=K(),v=K(),h=K(),g=K(),y=K(),m=K(!1),b=K(),{form:w,formItem:A}=Ds(),{inputId:S}=fc(e,{formItemContext:A}),{valueOnClear:E,isEmptyValue:D}=R5(e),{isComposing:_,handleCompositionStart:M,handleCompositionUpdate:O,handleCompositionEnd:k}=F5({afterComposition:Nt=>Lt(Nt)}),R=ee(()=>e.disabled||!!w?.disabled),{wrapperRef:N,isFocused:W,handleBlur:B}=Ap(c,{disabled:R,afterFocus(){e.automaticDropdown&&!m.value&&(m.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(Nt){var _n,xt;return((_n=u.value)==null?void 0:_n.isFocusInsideContent(Nt))||((xt=d.value)==null?void 0:xt.isFocusInsideContent(Nt))},afterBlur(){var Nt;m.value=!1,a.menuVisibleOnFocus=!1,e.validateEvent&&((Nt=A?.validate)==null||Nt.call(A,"blur").catch(_n=>void 0))}}),z=ee(()=>Zt(e.modelValue)?e.modelValue.length>0:!D(e.modelValue)),j=ee(()=>{var Nt;return(Nt=w?.statusIcon)!=null?Nt:!1}),q=ee(()=>e.clearable&&!R.value&&z.value&&(W.value||a.inputHovering)),Y=ee(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),U=ee(()=>o.is("reverse",!!(Y.value&&m.value))),F=ee(()=>A?.validateState||""),H=ee(()=>F.value&&iD[F.value]),re=ee(()=>e.remote?300:0),X=ee(()=>e.remote&&!a.inputValue&&a.options.size===0),te=ee(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&a.inputValue&&a.options.size>0&&Z.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),Z=ee(()=>le.value.filter(Nt=>Nt.visible).length),le=ee(()=>{const Nt=Array.from(a.options.values()),_n=[];return a.optionValues.forEach(xt=>{const Ft=Nt.findIndex(Sn=>Sn.value===xt);Ft>-1&&_n.push(Nt[Ft])}),_n.length>=Nt.length?_n:Nt}),ve=ee(()=>Array.from(a.cachedOptions.values())),Pe=ee(()=>{const Nt=le.value.filter(_n=>!_n.created).some(_n=>_n.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!Nt}),Ae=()=>{e.filterable&&Rn(e.filterMethod)||e.filterable&&e.remote&&Rn(e.remoteMethod)||le.value.forEach(Nt=>{var _n;(_n=Nt.updateOption)==null||_n.call(Nt,a.inputValue)})},he=ha(),Ee=ee(()=>["small"].includes(he.value)?"small":"default"),Q=ee({get(){return m.value&&!X.value},set(Nt){m.value=Nt}}),me=ee(()=>{if(e.multiple&&!Vr(e.modelValue))return Ya(e.modelValue).length===0&&!a.inputValue;const Nt=Zt(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Vr(Nt)?!a.inputValue:!0}),De=ee(()=>{var Nt;const _n=(Nt=e.placeholder)!=null?Nt:n("el.select.placeholder");return e.multiple||!z.value?_n:a.selectedLabel}),pe=ee(()=>wE?null:"mouseenter");St(()=>e.modelValue,(Nt,_n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",ie("")),Be(),!fa(Nt,_n)&&e.validateEvent&&A?.validate("change").catch(xt=>void 0)},{flush:"post",deep:!0}),St(()=>m.value,Nt=>{Nt?ie(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",Nt)}),St(()=>a.options.entries(),()=>{Xr&&(Be(),e.defaultFirstOption&&(e.filterable||e.remote)&&Z.value&&ue())},{flush:"post"}),St([()=>a.hoveringIndex,le],([Nt])=>{$n(Nt)&&Nt>-1?b.value=le.value[Nt]||{}:b.value={},le.value.forEach(_n=>{_n.hover=b.value===_n})}),Es(()=>{a.isBeforeHide||Ae()});const ie=Nt=>{a.previousQuery===Nt||_.value||(a.previousQuery=Nt,e.filterable&&Rn(e.filterMethod)?e.filterMethod(Nt):e.filterable&&e.remote&&Rn(e.remoteMethod)&&e.remoteMethod(Nt),e.defaultFirstOption&&(e.filterable||e.remote)&&Z.value?Yt(ue):Yt(Fe))},ue=()=>{const Nt=le.value.filter(Sn=>Sn.visible&&!Sn.disabled&&!Sn.states.groupDisabled),_n=Nt.find(Sn=>Sn.created),xt=Nt[0],Ft=le.value.map(Sn=>Sn.value);a.hoveringIndex=de(Ft,_n||xt)},Be=()=>{if(e.multiple)a.selectedLabel="";else{const _n=Zt(e.modelValue)?e.modelValue[0]:e.modelValue,xt=Me(_n);a.selectedLabel=xt.currentLabel,a.selected=[xt];return}const Nt=[];Vr(e.modelValue)||Ya(e.modelValue).forEach(_n=>{Nt.push(Me(_n))}),a.selected=Nt},Me=Nt=>{let _n;const xt=N3(Nt);for(let Bn=a.cachedOptions.size-1;Bn>=0;Bn--){const Fr=ve.value[Bn];if(xt?Xi(Fr.value,e.valueKey)===Xi(Nt,e.valueKey):Fr.value===Nt){_n={value:Nt,currentLabel:Fr.currentLabel,get isDisabled(){return Fr.isDisabled}};break}}if(_n)return _n;const Ft=xt?Nt.label:Nt??"";return{value:Nt,currentLabel:Ft}},Fe=()=>{a.hoveringIndex=le.value.findIndex(Nt=>a.selected.some(_n=>Le(_n)===Le(Nt)))},ze=()=>{a.selectionWidth=Number.parseFloat(window.getComputedStyle(l.value).width)},Ne=()=>{a.collapseItemWidth=g.value.getBoundingClientRect().width},Re=()=>{var Nt,_n;(_n=(Nt=u.value)==null?void 0:Nt.updatePopper)==null||_n.call(Nt)},gt=()=>{var Nt,_n;(_n=(Nt=d.value)==null?void 0:Nt.updatePopper)==null||_n.call(Nt)},Bt=()=>{a.inputValue.length>0&&!m.value&&(m.value=!0),ie(a.inputValue)},Lt=Nt=>{if(a.inputValue=Nt.target.value,e.remote)an();else return Bt()},an=Wl(()=>{Bt()},re.value),Kt=Nt=>{fa(e.modelValue,Nt)||t(Pr,Nt)},Ht=Nt=>Ome(Nt,_n=>{const xt=a.cachedOptions.get(_n);return xt&&!xt.disabled&&!xt.states.groupDisabled}),pt=Nt=>{if(e.multiple&&Nt.code!==gn.delete&&Nt.target.value.length<=0){const _n=Ya(e.modelValue).slice(),xt=Ht(_n);if(xt<0)return;const Ft=_n[xt];_n.splice(xt,1),t(Qn,_n),Kt(_n),t("remove-tag",Ft)}},Dt=(Nt,_n)=>{const xt=a.selected.indexOf(_n);if(xt>-1&&!R.value){const Ft=Ya(e.modelValue).slice();Ft.splice(xt,1),t(Qn,Ft),Kt(Ft),t("remove-tag",_n.value)}Nt.stopPropagation(),We()},dt=Nt=>{Nt.stopPropagation();const _n=e.multiple?[]:E.value;if(e.multiple)for(const xt of a.selected)xt.isDisabled&&_n.push(xt.value);t(Qn,_n),Kt(_n),a.hoveringIndex=-1,m.value=!1,t("clear"),We()},it=Nt=>{var _n;if(e.multiple){const xt=Ya((_n=e.modelValue)!=null?_n:[]).slice(),Ft=de(xt,Nt);Ft>-1?xt.splice(Ft,1):(e.multipleLimit<=0||xt.length<e.multipleLimit)&&xt.push(Nt.value),t(Qn,xt),Kt(xt),Nt.created&&ie(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(Qn,Nt.value),Kt(Nt.value),m.value=!1;We(),!m.value&&Yt(()=>{tt(Nt)})},de=(Nt,_n)=>Vr(_n)?-1:dr(_n.value)?Nt.findIndex(xt=>fa(Xi(xt,e.valueKey),Le(_n))):Nt.indexOf(_n.value),tt=Nt=>{var _n,xt,Ft,Sn,Bn;const Fr=Zt(Nt)?Nt[0]:Nt;let kn=null;if(Fr?.value){const Ye=le.value.filter(At=>At.value===Fr.value);Ye.length>0&&(kn=Ye[0].$el)}if(u.value&&kn){const Ye=(Sn=(Ft=(xt=(_n=u.value)==null?void 0:_n.popperRef)==null?void 0:xt.contentRef)==null?void 0:Ft.querySelector)==null?void 0:Sn.call(Ft,`.${o.be("dropdown","wrap")}`);Ye&&CH(Ye,kn)}(Bn=y.value)==null||Bn.handleScroll()},ft=Nt=>{a.options.set(Nt.value,Nt),a.cachedOptions.set(Nt.value,Nt)},Mt=(Nt,_n)=>{a.options.get(Nt)===_n&&a.options.delete(Nt)},Tn=ee(()=>{var Nt,_n;return(_n=(Nt=u.value)==null?void 0:Nt.popperRef)==null?void 0:_n.contentRef}),Nn=()=>{a.isBeforeHide=!1,Yt(()=>{var Nt;(Nt=y.value)==null||Nt.update(),tt(a.selected)})},We=()=>{var Nt;(Nt=c.value)==null||Nt.focus()},ke=()=>{var Nt;if(m.value){m.value=!1,Yt(()=>{var _n;return(_n=c.value)==null?void 0:_n.blur()});return}(Nt=c.value)==null||Nt.blur()},be=Nt=>{dt(Nt)},fe=Nt=>{if(m.value=!1,W.value){const _n=new FocusEvent("blur",Nt);Yt(()=>B(_n))}},Se=()=>{a.inputValue.length>0?a.inputValue="":m.value=!1},qe=()=>{R.value||(wE&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:m.value=!m.value)},$e=()=>{if(!m.value)qe();else{const Nt=le.value[a.hoveringIndex];Nt&&!Nt.isDisabled&&it(Nt)}},Le=Nt=>dr(Nt.value)?Xi(Nt.value,e.valueKey):Nt.value,ot=ee(()=>le.value.filter(Nt=>Nt.visible).every(Nt=>Nt.isDisabled)),vt=ee(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),Ut=ee(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),Qt=Nt=>{if(!m.value){m.value=!0;return}if(!(a.options.size===0||Z.value===0||_.value)&&!ot.value){Nt==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):Nt==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const _n=le.value[a.hoveringIndex];(_n.isDisabled||!_n.visible)&&Qt(Nt),Yt(()=>tt(b.value))}},Gt=()=>{if(!l.value)return 0;const Nt=window.getComputedStyle(l.value);return Number.parseFloat(Nt.gap||"6px")},vn=ee(()=>{const Nt=Gt(),_n=e.filterable?Nt+cW:0;return{maxWidth:`${g.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-Nt-_n:a.selectionWidth-_n}px`}}),Un=ee(()=>({maxWidth:`${a.selectionWidth}px`})),wr=Nt=>{t("popup-scroll",Nt)};li(l,ze),li(N,Re),li(h,gt),li(g,Ne);let fr;return St(()=>Q.value,Nt=>{Nt?fr=li(v,Re).stop:(fr?.(),fr=void 0)}),qn(()=>{Be()}),{inputId:S,contentId:r,nsSelect:o,nsInput:i,states:a,isFocused:W,expanded:m,optionsArray:le,hoverOption:b,selectSize:he,filteredOptionsCount:Z,updateTooltip:Re,updateTagTooltip:gt,debouncedOnInputChange:an,onInput:Lt,deletePrevTag:pt,deleteTag:Dt,deleteSelected:dt,handleOptionSelect:it,scrollToOption:tt,hasModelValue:z,shouldShowPlaceholder:me,currentPlaceholder:De,mouseEnterEventName:pe,needStatusIcon:j,showClearBtn:q,iconComponent:Y,iconReverse:U,validateState:F,validateIcon:H,showNewOption:Pe,updateOptions:Ae,collapseTagSize:Ee,setSelected:Be,selectDisabled:R,emptyText:te,handleCompositionStart:M,handleCompositionUpdate:O,handleCompositionEnd:k,onOptionCreate:ft,onOptionDestroy:Mt,handleMenuEnter:Nn,focus:We,blur:ke,handleClearClick:be,handleClickOutside:fe,handleEsc:Se,toggleMenu:qe,selectOption:$e,getValueKey:Le,navigateOptions:Qt,dropdownMenuVisible:Q,showTagList:vt,collapseTagList:Ut,popupScroll:wr,tagStyle:vn,collapseTagStyle:Un,popperRef:Tn,inputRef:c,tooltipRef:u,tagTooltipRef:d,prefixRef:f,suffixRef:p,selectRef:s,wrapperRef:N,selectionRef:l,scrollbarRef:y,menuRef:v,tagMenuRef:h,collapseItemRef:g}};var FQe=nt({name:"ElOptions",setup(e,{slots:t}){const n=dn(Wb);let r=[];return()=>{var o,i;const a=(o=t.default)==null?void 0:o.call(t),s=[];function l(u){Zt(u)&&u.forEach(d=>{var c,f,p,v;const h=(c=d?.type||{})==null?void 0:c.name;h==="ElOptionGroup"?l(!In(d.children)&&!Zt(d.children)&&Rn((f=d.children)==null?void 0:f.default)?(p=d.children)==null?void 0:p.default():d.children):h==="ElOption"?s.push((v=d.props)==null?void 0:v.value):Zt(d.children)&&l(d.children)})}return a.length&&l((i=a[0])==null?void 0:i.children),fa(s,r)||(r=s,n&&(n.states.optionValues=s)),a}}});const UQe=Jt({name:String,id:String,modelValue:{type:ct([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Aa,effect:{type:ct(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:ct([String,Object])},popperOptions:{type:ct(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:ct(Function)},filterMethod:{type:ct(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:oi.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:wo,default:tf},fitInputWidth:Boolean,suffixIcon:{type:wo,default:ed},tagType:{...tp.type,default:"info"},tagEffect:{...tp.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:ct(String),values:Cp,default:"bottom-start"},fallbackPlacements:{type:ct(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:oi.appendTo,options:{type:ct(Array)},props:{type:ct(Object),default:()=>hW},...lm,..._s(["ariaLabel"])});p1e.scroll;const zQe=nt({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Vt("select"),n=K(),r=br(),o=K([]);_r(hbe,Wr({...Oa(e)}));const i=ee(()=>o.value.some(u=>u.visible===!0)),a=u=>{var d;return u.type.name==="ElOption"&&!!((d=u.component)!=null&&d.proxy)},s=u=>{const d=Ya(u),c=[];return d.forEach(f=>{var p;Vo(f)&&(a(f)?c.push(f.component.proxy):Zt(f.children)&&f.children.length?c.push(...s(f.children)):(p=f.component)!=null&&p.subTree&&c.push(...s(f.component.subTree)))}),c},l=()=>{o.value=s(r.subTree)};return qn(()=>{l()}),Fme(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function $Qe(e,t,n,r,o,i){return cn((L(),G("ul",{ref:"groupRef",class:oe(e.ns.be("group","wrap"))},[x("li",{class:oe(e.ns.be("group","title"))},je(e.label),3),x("li",null,[x("ul",{class:oe(e.ns.b("group"))},[ht(e.$slots,"default")],2)])],2)),[[kr,e.visible]])}var mW=on(zQe,[["render",$Qe],["__file","option-group.vue"]]);const see="ElSelect",jQe=nt({name:see,componentName:see,components:{ElSelectMenu:BQe,ElOption:vW,ElOptions:FQe,ElOptionGroup:mW,ElTag:Nh,ElScrollbar:Hc,ElTooltip:hs,ElIcon:Dn},directives:{ClickOutside:np},props:UQe,emits:[Qn,Pr,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const r=br();r.appContext.config.warnHandler=(...y)=>{!y[0]||y[0].includes('Slot "default" invoked outside of the render function')||console.warn(...y)};const o=ee(()=>{const{modelValue:y,multiple:m}=e,b=m?[]:void 0;return Zt(y)?m?y:b:m?b:y}),i=Wr({...Oa(e),modelValue:o}),a=LQe(i,t),{calculatorRef:s,inputStyle:l}=dW(),{getLabel:u,getValue:d,getOptions:c,getDisabled:f}=H5(e),p=y=>({label:u(y),value:d(y),disabled:f(y)}),v=y=>y.reduce((m,b)=>(m.push(b),b.children&&b.children.length>0&&m.push(...v(b.children)),m),[]),h=y=>{Sd(y||[]).forEach(b=>{var w;if(dr(b)&&(b.type.name==="ElOption"||b.type.name==="ElTree")){const A=b.type.name;if(A==="ElTree"){const S=((w=b.props)==null?void 0:w.data)||[];v(S).forEach(D=>{D.currentLabel=D.label||(dr(D.value)?"":D.value),a.onOptionCreate(D)})}else if(A==="ElOption"){const S={...b.props};S.currentLabel=S.label||(dr(S.value)?"":S.value),a.onOptionCreate(S)}}})};St(()=>{var y;return(y=n.default)==null?void 0:y.call(n)},y=>{e.persistent||h(y)},{immediate:!0}),_r(Wb,Wr({props:i,states:a.states,selectRef:a.selectRef,optionsArray:a.optionsArray,setSelected:a.setSelected,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy}));const g=ee(()=>e.multiple?a.states.selected.map(y=>y.currentLabel):a.states.selectedLabel);return Jr(()=>{r.appContext.config.warnHandler=void 0}),{...a,modelValue:o,selectedLabel:g,calculatorRef:s,inputStyle:l,getLabel:u,getValue:d,getOptions:c,getDisabled:f,getOptionProps:p}}});function HQe(e,t){const n=hr("el-tag"),r=hr("el-tooltip"),o=hr("el-icon"),i=hr("el-option"),a=hr("el-option-group"),s=hr("el-options"),l=hr("el-scrollbar"),u=hr("el-select-menu"),d=L_("click-outside");return cn((L(),G("div",{ref:"selectRef",class:oe([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[j4(e.mouseEnterEventName)]:c=>e.states.inputHovering=!0,onMouseleave:c=>e.states.inputHovering=!1},[He(r,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:c=>e.states.isBeforeHide=!1},{default:rt(()=>{var c;return[x("div",{ref:"wrapperRef",class:oe([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:en(e.toggleMenu,["prevent"])},[e.$slots.prefix?(L(),G("div",{key:0,ref:"prefixRef",class:oe(e.nsSelect.e("prefix"))},[ht(e.$slots,"prefix")],2)):xe("v-if",!0),x("div",{ref:"selectionRef",class:oe([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?ht(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(L(!0),G(Rt,null,un(e.showTagList,f=>(L(),G("div",{key:e.getValueKey(f),class:oe(e.nsSelect.e("selected-item"))},[He(n,{closable:!e.selectDisabled&&!f.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:rn(e.tagStyle),onClose:p=>e.deleteTag(p,f)},{default:rt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))},[ht(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[bn(je(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(L(),yt(r,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:rt(()=>[x("div",{ref:"collapseItemRef",class:oe(e.nsSelect.e("selected-item"))},[He(n,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:rn(e.collapseTagStyle)},{default:rt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))}," + "+je(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:rt(()=>[x("div",{ref:"tagMenuRef",class:oe(e.nsSelect.e("selection"))},[(L(!0),G(Rt,null,un(e.collapseTagList,f=>(L(),G("div",{key:e.getValueKey(f),class:oe(e.nsSelect.e("selected-item"))},[He(n,{class:"in-tooltip",closable:!e.selectDisabled&&!f.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:p=>e.deleteTag(p,f)},{default:rt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))},[ht(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[bn(je(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):xe("v-if",!0)]):xe("v-if",!0),x("div",{class:oe([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[cn(x("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":f=>e.states.inputValue=f,type:"text",name:e.name,class:oe([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:rn(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((c=e.hoverOption)==null?void 0:c.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[$r(en(f=>e.navigateOptions("next"),["stop","prevent"]),["down"]),$r(en(f=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),$r(en(e.handleEsc,["stop","prevent"]),["esc"]),$r(en(e.selectOption,["stop","prevent"]),["enter"]),$r(en(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:en(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[qr,e.states.inputValue]]),e.filterable?(L(),G("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:oe(e.nsSelect.e("input-calculator")),textContent:je(e.states.inputValue)},null,10,["textContent"])):xe("v-if",!0)],2),e.shouldShowPlaceholder?(L(),G("div",{key:1,class:oe([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ht(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[x("span",null,je(e.currentPlaceholder),1)]):(L(),G("span",{key:1},je(e.currentPlaceholder),1))],2)):xe("v-if",!0)],2),x("div",{ref:"suffixRef",class:oe(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(L(),yt(o,{key:0,class:oe([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:rt(()=>[(L(),yt(mr(e.iconComponent)))]),_:1},8,["class"])):xe("v-if",!0),e.showClearBtn&&e.clearIcon?(L(),yt(o,{key:1,class:oe([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:rt(()=>[(L(),yt(mr(e.clearIcon)))]),_:1},8,["class","onClick"])):xe("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(L(),yt(o,{key:2,class:oe([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:rt(()=>[(L(),yt(mr(e.validateIcon)))]),_:1},8,["class"])):xe("v-if",!0)],2)],10,["onClick"])]}),content:rt(()=>[He(u,{ref:"menuRef"},{default:rt(()=>[e.$slots.header?(L(),G("div",{key:0,class:oe(e.nsSelect.be("dropdown","header")),onClick:en(()=>{},["stop"])},[ht(e.$slots,"header")],10,["onClick"])):xe("v-if",!0),cn(He(l,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:oe([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:rt(()=>[e.showNewOption?(L(),yt(i,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):xe("v-if",!0),He(s,null,{default:rt(()=>[ht(e.$slots,"default",{},()=>[(L(!0),G(Rt,null,un(e.options,(c,f)=>{var p;return L(),G(Rt,{key:f},[(p=e.getOptions(c))!=null&&p.length?(L(),yt(a,{key:0,label:e.getLabel(c),disabled:e.getDisabled(c)},{default:rt(()=>[(L(!0),G(Rt,null,un(e.getOptions(c),v=>(L(),yt(i,vr({key:e.getValue(v)},e.getOptionProps(v)),null,16))),128))]),_:2},1032,["label","disabled"])):(L(),yt(i,Il(vr({key:1},e.getOptionProps(c))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[kr,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(L(),G("div",{key:1,class:oe(e.nsSelect.be("dropdown","loading"))},[ht(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(L(),G("div",{key:2,class:oe(e.nsSelect.be("dropdown","empty"))},[ht(e.$slots,"empty",{},()=>[x("span",null,je(e.emptyText),1)])],2)):xe("v-if",!0),e.$slots.footer?(L(),G("div",{key:3,class:oe(e.nsSelect.be("dropdown","footer")),onClick:en(()=>{},["stop"])},[ht(e.$slots,"footer")],10,["onClick"])):xe("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var WQe=on(jQe,[["render",HQe],["__file","select.vue"]]);const Nv=or(WQe,{Option:vW,OptionGroup:mW}),DE=vi(vW),VQe=vi(mW),yW=()=>dn(pbe,{}),qQe=Jt({pageSize:{type:Number,required:!0},pageSizes:{type:ct(Array),default:()=>fi([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:ef},appendSizeTo:String}),GQe=nt({name:"ElPaginationSizes"}),KQe=nt({...GQe,props:qQe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Gr(),o=Vt("pagination"),i=yW(),a=K(n.pageSize);St(()=>n.pageSizes,(u,d)=>{if(!fa(u,d)&&Zt(u)){const c=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",c)}}),St(()=>n.pageSize,u=>{a.value=u});const s=ee(()=>n.pageSizes);function l(u){var d;u!==a.value&&(a.value=u,(d=i.handleSizeChange)==null||d.call(i,Number(u)))}return(u,d)=>(L(),G("span",{class:oe(C(o).e("sizes"))},[He(C(Nv),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:l},{default:rt(()=>[(L(!0),G(Rt,null,un(C(s),c=>(L(),yt(C(DE),{key:c,value:c,label:c+C(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var YQe=on(KQe,[["__file","sizes.vue"]]);const QQe=Jt({size:{type:String,values:ef}}),ZQe=nt({name:"ElPaginationJumper"}),XQe=nt({...ZQe,props:QQe,setup(e){const{t}=Gr(),n=Vt("pagination"),{pageCount:r,disabled:o,currentPage:i,changeEvent:a}=yW(),s=K(),l=ee(()=>{var c;return(c=s.value)!=null?c:i?.value});function u(c){s.value=c?+c:""}function d(c){c=Math.trunc(+c),a?.(c),s.value=void 0}return(c,f)=>(L(),G("span",{class:oe(C(n).e("jump")),disabled:C(o)},[x("span",{class:oe([C(n).e("goto")])},je(C(t)("el.pagination.goto")),3),He(C(js),{size:c.size,class:oe([C(n).e("editor"),C(n).is("in-pagination")]),min:1,max:C(r),disabled:C(o),"model-value":C(l),"validate-event":!1,"aria-label":C(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),x("span",{class:oe([C(n).e("classifier")])},je(C(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var JQe=on(XQe,[["__file","jumper.vue"]]);const eZe=Jt({total:{type:Number,default:1e3}}),tZe=nt({name:"ElPaginationTotal"}),nZe=nt({...tZe,props:eZe,setup(e){const{t}=Gr(),n=Vt("pagination"),{disabled:r}=yW();return(o,i)=>(L(),G("span",{class:oe(C(n).e("total")),disabled:C(r)},je(C(t)("el.pagination.total",{total:o.total})),11,["disabled"]))}});var rZe=on(nZe,[["__file","total.vue"]]);const oZe=Jt({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),iZe=nt({name:"ElPaginationPager"}),aZe=nt({...iZe,props:oZe,emits:[Pr],setup(e,{emit:t}){const n=e,r=Vt("pager"),o=Vt("icon"),{t:i}=Gr(),a=K(!1),s=K(!1),l=K(!1),u=K(!1),d=K(!1),c=K(!1),f=ee(()=>{const w=n.pagerCount,A=(w-1)/2,S=Number(n.currentPage),E=Number(n.pageCount);let D=!1,_=!1;E>w&&(S>w-A&&(D=!0),S<E-A&&(_=!0));const M=[];if(D&&!_){const O=E-(w-2);for(let k=O;k<E;k++)M.push(k)}else if(!D&&_)for(let O=2;O<w;O++)M.push(O);else if(D&&_){const O=Math.floor(w/2)-1;for(let k=S-O;k<=S+O;k++)M.push(k)}else for(let O=2;O<E;O++)M.push(O);return M}),p=ee(()=>["more","btn-quickprev",o.b(),r.is("disabled",n.disabled)]),v=ee(()=>["more","btn-quicknext",o.b(),r.is("disabled",n.disabled)]),h=ee(()=>n.disabled?-1:0);St(()=>[n.pageCount,n.pagerCount,n.currentPage],([w,A,S])=>{const E=(A-1)/2;let D=!1,_=!1;w>A&&(D=S>A-E,_=S<w-E),l.value&&(l.value=D),u.value&&(u.value=_),a.value=D,s.value=_},{immediate:!0});function g(w=!1){n.disabled||(w?l.value=!0:u.value=!0)}function y(w=!1){w?d.value=!0:c.value=!0}function m(w){const A=w.target;if(A.tagName.toLowerCase()==="li"&&Array.from(A.classList).includes("number")){const S=Number(A.textContent);S!==n.currentPage&&t(Pr,S)}else A.tagName.toLowerCase()==="li"&&Array.from(A.classList).includes("more")&&b(w)}function b(w){const A=w.target;if(A.tagName.toLowerCase()==="ul"||n.disabled)return;let S=Number(A.textContent);const E=n.pageCount,D=n.currentPage,_=n.pagerCount-2;A.className.includes("more")&&(A.className.includes("quickprev")?S=D-_:A.className.includes("quicknext")&&(S=D+_)),Number.isNaN(+S)||(S<1&&(S=1),S>E&&(S=E)),S!==D&&t(Pr,S)}return(w,A)=>(L(),G("ul",{class:oe(C(r).b()),onClick:b,onKeyup:$r(m,["enter"])},[w.pageCount>0?(L(),G("li",{key:0,class:oe([[C(r).is("active",w.currentPage===1),C(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":C(i)("el.pagination.currentPage",{pager:1}),tabindex:C(h)}," 1 ",10,["aria-current","aria-label","tabindex"])):xe("v-if",!0),a.value?(L(),G("li",{key:1,class:oe(C(p)),tabindex:C(h),"aria-label":C(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:S=>g(!0),onMouseleave:S=>l.value=!1,onFocus:S=>y(!0),onBlur:S=>d.value=!1},[(l.value||d.value)&&!w.disabled?(L(),yt(C(l0),{key:0})):(L(),yt(C(JX),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):xe("v-if",!0),(L(!0),G(Rt,null,un(C(f),S=>(L(),G("li",{key:S,class:oe([[C(r).is("active",w.currentPage===S),C(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===S,"aria-label":C(i)("el.pagination.currentPage",{pager:S}),tabindex:C(h)},je(S),11,["aria-current","aria-label","tabindex"]))),128)),s.value?(L(),G("li",{key:2,class:oe(C(v)),tabindex:C(h),"aria-label":C(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:S=>g(),onMouseleave:S=>u.value=!1,onFocus:S=>y(),onBlur:S=>c.value=!1},[(u.value||c.value)&&!w.disabled?(L(),yt(C(u0),{key:0})):(L(),yt(C(JX),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):xe("v-if",!0),w.pageCount>1?(L(),G("li",{key:3,class:oe([[C(r).is("active",w.currentPage===w.pageCount),C(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":C(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:C(h)},je(w.pageCount),11,["aria-current","aria-label","tabindex"])):xe("v-if",!0)],42,["onKeyup"]))}});var sZe=on(aZe,[["__file","pager.vue"]]);const Js=e=>typeof e!="number",lZe=Jt({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>$n(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ct(Array),default:()=>fi([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:wo,default:()=>Jf},nextText:{type:String,default:""},nextIcon:{type:wo,default:()=>Da},teleported:{type:Boolean,default:!0},small:Boolean,size:Aa,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),uZe={"update:current-page":e=>$n(e),"update:page-size":e=>$n(e),"size-change":e=>$n(e),change:(e,t)=>$n(e)&&$n(t),"current-change":e=>$n(e),"prev-click":e=>$n(e),"next-click":e=>$n(e)},lee="ElPagination";var cZe=nt({name:lee,props:lZe,emits:uZe,setup(e,{emit:t,slots:n}){const{t:r}=Gr(),o=Vt("pagination"),i=br().vnode.props||{},a=Vme(),s=ee(()=>{var A;return e.small?"small":(A=e.size)!=null?A:a.value});jf({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},ee(()=>!!e.small));const l="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,u="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,d=ee(()=>{if(Js(e.total)&&Js(e.pageCount)||!Js(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(Js(e.pageCount)){if(!Js(e.total)&&!Js(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),c=K(Js(e.defaultPageSize)?10:e.defaultPageSize),f=K(Js(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=ee({get(){return Js(e.pageSize)?c.value:e.pageSize},set(A){Js(e.pageSize)&&(c.value=A),u&&(t("update:page-size",A),t("size-change",A))}}),v=ee(()=>{let A=0;return Js(e.pageCount)?Js(e.total)||(A=Math.max(1,Math.ceil(e.total/p.value))):A=e.pageCount,A}),h=ee({get(){return Js(e.currentPage)?f.value:e.currentPage},set(A){let S=A;A<1?S=1:A>v.value&&(S=v.value),Js(e.currentPage)&&(f.value=S),l&&(t("update:current-page",S),t("current-change",S))}});St(v,A=>{h.value>A&&(h.value=A)}),St([h,p],A=>{t(Pr,...A)},{flush:"post"});function g(A){h.value=A}function y(A){p.value=A;const S=v.value;h.value>S&&(h.value=S)}function m(){e.disabled||(h.value-=1,t("prev-click",h.value))}function b(){e.disabled||(h.value+=1,t("next-click",h.value))}function w(A,S){A&&(A.props||(A.props={}),A.props.class=[A.props.class,S].join(" "))}return _r(pbe,{pageCount:v,disabled:ee(()=>e.disabled),currentPage:h,changeEvent:g,handleSizeChange:y}),()=>{var A,S;if(!d.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&v.value<=1)return null;const E=[],D=[],_=jn("div",{class:o.e("rightwrapper")},D),M={prev:jn(EQe,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:m}),jumper:jn(JQe,{size:s.value}),pager:jn(sZe,{currentPage:h.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:jn(DQe,{disabled:e.disabled,currentPage:h.value,pageCount:v.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:jn(YQe,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:s.value,appendSizeTo:e.appendSizeTo}),slot:(S=(A=n?.default)==null?void 0:A.call(n))!=null?S:null,total:jn(rZe,{total:Js(e.total)?0:e.total})},O=e.layout.split(",").map(R=>R.trim());let k=!1;return O.forEach(R=>{if(R==="->"){k=!0;return}k?D.push(M[R]):E.push(M[R])}),w(E[0],o.is("first")),w(E[E.length-1],o.is("last")),k&&D.length>0&&(w(D[0],o.is("first")),w(D[D.length-1],o.is("last")),E.push(_)),jn("div",{class:[o.b(),o.is("background",e.background),o.m(s.value)]},E)}}});const dZe=or(cZe),fZe=Jt({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:CL,default:"primary"},cancelButtonType:{type:String,values:CL,default:"text"},icon:{type:wo,default:()=>xLe},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},teleported:oi.teleported,persistent:oi.persistent,width:{type:[String,Number],default:150}}),pZe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},hZe=nt({name:"ElPopconfirm"}),gZe=nt({...hZe,props:fZe,emits:pZe,setup(e,{expose:t,emit:n}){const r=e,{t:o}=Gr(),i=Vt("popconfirm"),a=K(),s=ee(()=>{var v;return(v=C(a))==null?void 0:v.popperRef}),l=()=>{var v,h;(h=(v=a.value)==null?void 0:v.onClose)==null||h.call(v)},u=ee(()=>({width:_i(r.width)})),d=v=>{n("confirm",v),l()},c=v=>{n("cancel",v),l()},f=ee(()=>r.confirmButtonText||o("el.popconfirm.confirmButtonText")),p=ee(()=>r.cancelButtonText||o("el.popconfirm.cancelButtonText"));return t({popperRef:s,hide:l}),(v,h)=>(L(),yt(C(hs),vr({ref_key:"tooltipRef",ref:a,trigger:"click",effect:"light"},v.$attrs,{"popper-class":`${C(i).namespace.value}-popover`,"popper-style":C(u),teleported:v.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":v.hideAfter,persistent:v.persistent}),{content:rt(()=>[x("div",{class:oe(C(i).b())},[x("div",{class:oe(C(i).e("main"))},[!v.hideIcon&&v.icon?(L(),yt(C(Dn),{key:0,class:oe(C(i).e("icon")),style:rn({color:v.iconColor})},{default:rt(()=>[(L(),yt(mr(v.icon)))]),_:1},8,["class","style"])):xe("v-if",!0),bn(" "+je(v.title),1)],2),x("div",{class:oe(C(i).e("action"))},[ht(v.$slots,"actions",{confirm:d,cancel:c},()=>[He(C(Xa),{size:"small",type:v.cancelButtonType==="text"?"":v.cancelButtonType,text:v.cancelButtonType==="text",onClick:c},{default:rt(()=>[bn(je(C(p)),1)]),_:1},8,["type","text"]),He(C(Xa),{size:"small",type:v.confirmButtonType==="text"?"":v.confirmButtonType,text:v.confirmButtonType==="text",onClick:d},{default:rt(()=>[bn(je(C(f)),1)]),_:1},8,["type","text"])])],2)],2)]),default:rt(()=>[v.$slots.reference?ht(v.$slots,"reference",{key:0}):xe("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var vZe=on(gZe,[["__file","popconfirm.vue"]]);const mZe=or(vZe),yZe=Jt({trigger:oy.trigger,triggerKeys:oy.triggerKeys,placement:BS.placement,disabled:oy.disabled,visible:oi.visible,transition:oi.transition,popperOptions:BS.popperOptions,tabindex:BS.tabindex,content:oi.content,popperStyle:oi.popperStyle,popperClass:oi.popperClass,enterable:{...oi.enterable,default:!0},effect:{...oi.effect,default:"light"},teleported:oi.teleported,appendTo:oi.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),bZe={"update:visible":e=>Eo(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},wZe="onUpdate:visible",AZe=nt({name:"ElPopover"}),CZe=nt({...AZe,props:yZe,emits:bZe,setup(e,{expose:t,emit:n}){const r=e,o=ee(()=>r[wZe]),i=Vt("popover"),a=K(),s=ee(()=>{var g;return(g=C(a))==null?void 0:g.popperRef}),l=ee(()=>[{width:_i(r.width)},r.popperStyle]),u=ee(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),d=ee(()=>r.transition===`${i.namespace.value}-fade-in-linear`),c=()=>{var g;(g=a.value)==null||g.hide()},f=()=>{n("before-enter")},p=()=>{n("before-leave")},v=()=>{n("after-enter")},h=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:c}),(g,y)=>(L(),yt(C(hs),vr({ref_key:"tooltipRef",ref:a},g.$attrs,{trigger:g.trigger,"trigger-keys":g.triggerKeys,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":C(u),"popper-style":C(l),teleported:g.teleported,"append-to":g.appendTo,persistent:g.persistent,"gpu-acceleration":C(d),"onUpdate:visible":C(o),onBeforeShow:f,onBeforeHide:p,onShow:v,onHide:h}),{content:rt(()=>[g.title?(L(),G("div",{key:0,class:oe(C(i).e("title")),role:"title"},je(g.title),3)):xe("v-if",!0),ht(g.$slots,"default",{},()=>[bn(je(g.content),1)])]),default:rt(()=>[g.$slots.reference?ht(g.$slots,"reference",{key:0}):xe("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var xZe=on(CZe,[["__file","popover.vue"]]);const uee=(e,t)=>{const n=t.arg||t.value,r=n?.popperRef;r&&(r.triggerRef=e)};var SZe={mounted(e,t){uee(e,t)},updated(e,t){uee(e,t)}};const EZe="popover",gbe=TBe(SZe,EZe),kZe=or(xZe,{directive:gbe}),TZe=Jt({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:ct(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ct([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ct(Function),default:e=>`${e}%`}}),_Ze=nt({name:"ElProgress"}),DZe=nt({..._Ze,props:TZe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Vt("progress"),o=ee(()=>{const b={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},w=m(t.percentage);return w.includes("gradient")?b.background=w:b.backgroundColor=w,b}),i=ee(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=ee(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=ee(()=>{const b=a.value,w=t.type==="dashboard";return`
- M 50 50
- m 0 ${w?"":"-"}${b}
- a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2}
- a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2}
- `}),l=ee(()=>2*Math.PI*a.value),u=ee(()=>t.type==="dashboard"?.75:1),d=ee(()=>`${-1*l.value*(1-u.value)/2}px`),c=ee(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:d.value})),f=ee(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),p=ee(()=>{let b;return t.color?b=m(t.percentage):b=n[t.status]||n.default,b}),v=ee(()=>t.status==="warning"?zb:t.type==="line"?t.status==="success"?xH:tf:t.status==="success"?B5:vu),h=ee(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=ee(()=>t.format(t.percentage));function y(b){const w=100/b.length;return b.map((S,E)=>In(S)?{color:S,percentage:(E+1)*w}:S).sort((S,E)=>S.percentage-E.percentage)}const m=b=>{var w;const{color:A}=t;if(Rn(A))return A(b);if(In(A))return A;{const S=y(A);for(const E of S)if(E.percentage>b)return E.color;return(w=S[S.length-1])==null?void 0:w.color}};return(b,w)=>(L(),G("div",{class:oe([C(r).b(),C(r).m(b.type),C(r).is(b.status),{[C(r).m("without-text")]:!b.showText,[C(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(L(),G("div",{key:0,class:oe(C(r).b("bar"))},[x("div",{class:oe(C(r).be("bar","outer")),style:rn({height:`${b.strokeWidth}px`})},[x("div",{class:oe([C(r).be("bar","inner"),{[C(r).bem("bar","inner","indeterminate")]:b.indeterminate},{[C(r).bem("bar","inner","striped")]:b.striped},{[C(r).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:rn(C(o))},[(b.showText||b.$slots.default)&&b.textInside?(L(),G("div",{key:0,class:oe(C(r).be("bar","innerText"))},[ht(b.$slots,"default",{percentage:b.percentage},()=>[x("span",null,je(C(g)),1)])],2)):xe("v-if",!0)],6)],6)],2)):(L(),G("div",{key:1,class:oe(C(r).b("circle")),style:rn({height:`${b.width}px`,width:`${b.width}px`})},[(L(),G("svg",{viewBox:"0 0 100 100"},[x("path",{class:oe(C(r).be("circle","track")),d:C(s),stroke:`var(${C(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":b.strokeLinecap,"stroke-width":C(i),fill:"none",style:rn(C(c))},null,14,["d","stroke","stroke-linecap","stroke-width"]),x("path",{class:oe(C(r).be("circle","path")),d:C(s),stroke:C(p),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":C(i),style:rn(C(f))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(L(),G("div",{key:2,class:oe(C(r).e("text")),style:rn({fontSize:`${C(h)}px`})},[ht(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(L(),yt(C(Dn),{key:1},{default:rt(()=>[(L(),yt(mr(C(v))))]),_:1})):(L(),G("span",{key:0},je(C(g)),1))])],6)):xe("v-if",!0)],10,["aria-valuenow"]))}});var IZe=on(DZe,[["__file","progress.vue"]]);const vbe=or(IZe),OZe=Jt({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ct([Array,Object]),default:()=>fi(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ct([Array,Object]),default:()=>[vx,vx,vx]},voidIcon:{type:wo,default:()=>FLe},disabledVoidIcon:{type:wo,default:()=>vx},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ct(Array),default:()=>fi(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Aa,clearable:Boolean,..._s(["ariaLabel"])}),MZe={[Pr]:e=>$n(e),[Qn]:e=>$n(e)},PZe=nt({name:"ElRate"}),NZe=nt({...PZe,props:OZe,emits:MZe,setup(e,{expose:t,emit:n}){const r=e;function o(B,z){const j=U=>dr(U),q=Object.keys(z).map(U=>+U).filter(U=>{const F=z[U];return(j(F)?F.excluded:!1)?B<U:B<=U}).sort((U,F)=>U-F),Y=z[q[0]];return j(Y)&&Y.value||Y}const i=dn(um,void 0),a=dn(Hd,void 0),s=ha(),l=Vt("rate"),{inputId:u,isLabeledByFormItem:d}=fc(r,{formItemContext:a}),c=K(r.modelValue),f=K(-1),p=K(!0),v=ee(()=>[l.b(),l.m(s.value)]),h=ee(()=>r.disabled||i?.disabled),g=ee(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":w.value})),y=ee(()=>{let B="";return r.showScore?B=r.scoreTemplate.replace(/\{\s*value\s*\}/,h.value?`${r.modelValue}`:`${c.value}`):r.showText&&(B=r.texts[Math.ceil(c.value)-1]),B}),m=ee(()=>r.modelValue*100-Math.floor(r.modelValue)*100),b=ee(()=>Zt(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),w=ee(()=>{const B=o(c.value,b.value);return dr(B)?"":B}),A=ee(()=>{let B="";return h.value?B=`${m.value}%`:r.allowHalf&&(B="50%"),{color:w.value,width:B}}),S=ee(()=>{let B=Zt(r.icons)?[...r.icons]:{...r.icons};return B=Rd(B),Zt(B)?{[r.lowThreshold]:B[0],[r.highThreshold]:{value:B[1],excluded:!0},[r.max]:B[2]}:B}),E=ee(()=>o(r.modelValue,S.value)),D=ee(()=>h.value?In(r.disabledVoidIcon)?r.disabledVoidIcon:Rd(r.disabledVoidIcon):In(r.voidIcon)?r.voidIcon:Rd(r.voidIcon)),_=ee(()=>o(c.value,S.value));function M(B){const z=h.value&&m.value>0&&B-1<r.modelValue&&B>r.modelValue,j=r.allowHalf&&p.value&&B-.5<=c.value&&B>c.value;return z||j}function O(B){r.clearable&&B===r.modelValue&&(B=0),n(Qn,B),r.modelValue!==B&&n(Pr,B)}function k(B){h.value||(r.allowHalf&&p.value?O(c.value):O(B))}function R(B){if(h.value)return;let z=c.value;const j=B.code;return j===gn.up||j===gn.right?(r.allowHalf?z+=.5:z+=1,B.stopPropagation(),B.preventDefault()):(j===gn.left||j===gn.down)&&(r.allowHalf?z-=.5:z-=1,B.stopPropagation(),B.preventDefault()),z=z<0?0:z,z=z>r.max?r.max:z,n(Qn,z),n(Pr,z),z}function N(B,z){if(!h.value){if(r.allowHalf&&z){let j=z.target;Ol(j,l.e("item"))&&(j=j.querySelector(`.${l.e("icon")}`)),(j.clientWidth===0||Ol(j,l.e("decimal")))&&(j=j.parentNode),p.value=z.offsetX*2<=j.clientWidth,c.value=p.value?B-.5:B}else c.value=B;f.value=B}}function W(){h.value||(r.allowHalf&&(p.value=r.modelValue!==Math.floor(r.modelValue)),c.value=r.modelValue,f.value=-1)}return St(()=>r.modelValue,B=>{c.value=B,p.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Qn,0),t({setCurrentValue:N,resetCurrentValue:W}),(B,z)=>{var j;return L(),G("div",{id:C(u),class:oe([C(v),C(l).is("disabled",C(h))]),role:"slider","aria-label":C(d)?void 0:B.ariaLabel||"rating","aria-labelledby":C(d)?(j=C(a))==null?void 0:j.labelId:void 0,"aria-valuenow":c.value,"aria-valuetext":C(y)||void 0,"aria-valuemin":"0","aria-valuemax":B.max,tabindex:"0",style:rn(C(g)),onKeydown:R},[(L(!0),G(Rt,null,un(B.max,(q,Y)=>(L(),G("span",{key:Y,class:oe(C(l).e("item")),onMousemove:U=>N(q,U),onMouseleave:W,onClick:U=>k(q)},[He(C(Dn),{class:oe([C(l).e("icon"),{hover:f.value===q},C(l).is("active",q<=c.value)])},{default:rt(()=>[M(q)?xe("v-if",!0):(L(),G(Rt,{key:0},[cn((L(),yt(mr(C(_)),null,null,512)),[[kr,q<=c.value]]),cn((L(),yt(mr(C(D)),null,null,512)),[[kr,!(q<=c.value)]])],64)),M(q)?(L(),G(Rt,{key:1},[(L(),yt(mr(C(D)),{class:oe([C(l).em("decimal","box")])},null,8,["class"])),He(C(Dn),{style:rn(C(A)),class:oe([C(l).e("icon"),C(l).e("decimal")])},{default:rt(()=>[(L(),yt(mr(C(E))))]),_:1},8,["style","class"])],64)):xe("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),B.showText||B.showScore?(L(),G("span",{key:0,class:oe(C(l).e("text")),style:rn({color:B.textColor})},je(C(y)),7)):xe("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var RZe=on(NZe,[["__file","rate.vue"]]);const BZe=or(RZe),Dg={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},cee={[Dg.primary]:Q3,[Dg.success]:qBe,[Dg.warning]:zb,[Dg.error]:SH,[Dg.info]:Q3},LZe=Jt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),FZe=nt({name:"ElResult"}),UZe=nt({...FZe,props:LZe,setup(e){const t=e,n=Vt("result"),r=ee(()=>{const o=t.icon,i=o&&Dg[o]?Dg[o]:"icon-info",a=cee[i]||cee["icon-info"];return{class:i,component:a}});return(o,i)=>(L(),G("div",{class:oe(C(n).b())},[x("div",{class:oe(C(n).e("icon"))},[ht(o.$slots,"icon",{},()=>[C(r).component?(L(),yt(mr(C(r).component),{key:0,class:oe(C(r).class)},null,8,["class"])):xe("v-if",!0)])],2),o.title||o.$slots.title?(L(),G("div",{key:0,class:oe(C(n).e("title"))},[ht(o.$slots,"title",{},()=>[x("p",null,je(o.title),1)])],2)):xe("v-if",!0),o.subTitle||o.$slots["sub-title"]?(L(),G("div",{key:1,class:oe(C(n).e("subtitle"))},[ht(o.$slots,"sub-title",{},()=>[x("p",null,je(o.subTitle),1)])],2)):xe("v-if",!0),o.$slots.extra?(L(),G("div",{key:2,class:oe(C(n).e("extra"))},[ht(o.$slots,"extra")],2)):xe("v-if",!0)],2))}});var zZe=on(UZe,[["__file","result.vue"]]);const $Ze=or(zZe),jZe=["start","center","end","space-around","space-between","space-evenly"],HZe=["top","middle","bottom"],WZe=Jt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:jZe,default:"start"},align:{type:String,values:HZe}}),VZe=nt({name:"ElRow"}),qZe=nt({...VZe,props:WZe,setup(e){const t=e,n=Vt("row"),r=ee(()=>t.gutter);_r(pye,{gutter:r});const o=ee(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),i=ee(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(a,s)=>(L(),yt(mr(a.tag),{class:oe(C(i)),style:rn(C(o))},{default:rt(()=>[ht(a.$slots,"default")]),_:3},8,["class","style"]))}});var GZe=on(qZe,[["__file","row.vue"]]);const KZe=or(GZe),YZe=nt({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:Vt("select")}}});function QZe(e,t,n,r,o,i){return L(),G("div",{class:oe(e.ns.be("group","title")),style:rn({...e.style,lineHeight:`${e.height}px`})},je(e.item.label),7)}var ZZe=on(YZe,[["render",QZe],["__file","group-item.vue"]]);function XZe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const JZe=Jt({allowCreate:Boolean,autocomplete:{type:ct(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:wo,default:tf},effect:{type:ct(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:ct(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:ct([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:ct(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:ct(Array),required:!0},placeholder:{type:String},teleported:oi.teleported,persistent:{type:Boolean,default:!0},popperClass:oi.popperClass,popperStyle:oi.popperStyle,popperOptions:{type:ct(Object),default:()=>({})},remote:Boolean,size:Aa,props:{type:ct(Object),default:()=>hW},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:ct(String),values:Cp,default:"bottom-start"},fallbackPlacements:{type:ct(Array),default:["bottom-start","top-start","right","left"]},tagType:{...tp.type,default:"info"},tagEffect:{...tp.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:oi.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Eo(e)||$n(e)}},suffixIcon:{type:wo,default:ed},...lm,..._s(["ariaLabel"])}),eXe=Jt({data:Array,disabled:Boolean,hovering:Boolean,item:{type:ct(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),tXe={[Qn]:e=>!0,[Pr]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},nXe={hover:e=>$n(e),select:(e,t)=>!0},bW=Symbol("ElSelectV2Injection"),rXe=nt({props:eXe,emits:nXe,setup(e,{emit:t}){const n=dn(bW),r=Vt("select"),{hoverItem:o,selectOptionClick:i}=XZe(e,{emit:t}),{getLabel:a}=H5(n.props);return{ns:r,hoverItem:o,selectOptionClick:i,getLabel:a}}});function oXe(e,t,n,r,o,i){return L(),G("li",{"aria-selected":e.selected,style:rn(e.style),class:oe([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:e.hoverItem,onClick:en(e.selectOptionClick,["stop"])},[ht(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[x("span",null,je(e.getLabel(e.item)),1)])],46,["aria-selected","onMousemove","onClick"])}var iXe=on(rXe,[["render",oXe],["__file","option-item.vue"]]),dee=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function aXe(e,t){return!!(e===t||dee(e)&&dee(t))}function sXe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!aXe(e[n],t[n]))return!1;return!0}function lXe(e,t){t===void 0&&(t=sXe);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}const mbe=()=>{const t=br().proxy.$props;return ee(()=>{const n=(r,o,i)=>({});return t.perfMode?eD(n):lXe(n)})},$L=50,IE="itemRendered",OE="scroll",j1="forward",ME="backward",$u="auto",vD="smart",iA="start",Ed="center",aA="end",jy="horizontal",wW="vertical",uXe="ltr",iy="rtl",sA="negative",AW="positive-ascending",CW="positive-descending",cXe={[jy]:"left",[wW]:"top"},dXe=20,fXe={[jy]:"deltaX",[wW]:"deltaY"},pXe=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let o,i=0;const a=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:a,onWheel:l=>{Pv(o);const u=l[fXe[n.value]];a(i)&&a(i+u)||(i+=u,kH()||l.preventDefault(),o=s0(()=>{r(i),i=0}))}}},jL=Jc({type:ct([Number,Function]),required:!0}),HL=Jc({type:Number}),WL=Jc({type:Number,default:2}),hXe=Jc({type:String,values:["ltr","rtl"],default:"ltr"}),VL=Jc({type:Number,default:0}),PE=Jc({type:Number,required:!0}),ybe=Jc({type:String,values:["horizontal","vertical"],default:wW}),bbe=Jt({className:{type:String,default:""},containerElement:{type:ct([String,Object]),default:"div"},data:{type:ct(Array),default:()=>fi([])},direction:hXe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ct([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),wbe=Jt({cache:WL,estimatedItemSize:HL,layout:ybe,initScrollOffset:VL,total:PE,itemSize:jL,...bbe}),qL={type:Number,default:6},Abe={type:Number,default:0},Cbe={type:Number,default:2},Jg=Jt({columnCache:WL,columnWidth:jL,estimatedColumnWidth:HL,estimatedRowHeight:HL,initScrollLeft:VL,initScrollTop:VL,itemKey:{type:ct(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:WL,rowHeight:jL,totalColumn:PE,totalRow:PE,hScrollbarSize:qL,vScrollbarSize:qL,scrollbarStartGap:Abe,scrollbarEndGap:Cbe,role:String,...bbe}),xbe=Jt({alwaysOn:Boolean,class:String,layout:ybe,total:PE,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:qL,startGap:Abe,endGap:Cbe,visible:Boolean}),$g=(e,t)=>e<t?j1:ME,lA=e=>e===uXe||e===iy||e===jy,fee=e=>e===iy;let Um=null;function NE(e=!1){if(Um===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Um=CW:(t.scrollLeft=1,t.scrollLeft===0?Um=sA:Um=AW),document.body.removeChild(t),Um}return Um}function gXe({move:e,size:t,bar:n},r){const o={},i=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=i,r==="horizontal"?o.height="100%":o.width="100%",o}const GL=nt({name:"ElVirtualScrollBar",props:xbe,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=ee(()=>e.startGap+e.endGap),r=Vt("virtual-scrollbar"),o=Vt("scrollbar"),i=K(),a=K();let s=null,l=null;const u=Wr({isDragging:!1,traveled:0}),d=ee(()=>f1e[e.layout]),c=ee(()=>e.clientSize-C(n)),f=ee(()=>({position:"absolute",width:`${jy===e.layout?c.value:e.scrollbarSize}px`,height:`${jy===e.layout?e.scrollbarSize:c.value}px`,[cXe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),p=ee(()=>{const S=e.ratio;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*c.value/100;const E=c.value/3;return Math.floor(Math.min(Math.max(S*c.value/100,dXe),E))}),v=ee(()=>{if(!Number.isFinite(p.value))return{display:"none"};const S=`${p.value}px`;return gXe({bar:d.value,size:S,move:u.traveled},e.layout)}),h=ee(()=>Math.ceil(e.clientSize-p.value-C(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",b);const S=C(a);S&&(l=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",w,{passive:!0}),S.addEventListener("touchend",b))},y=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",b),document.onselectstart=l,l=null;const S=C(a);S&&(S.removeEventListener("touchmove",w),S.removeEventListener("touchend",b))},m=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(u.isDragging=!0,u[d.value.axis]=S.currentTarget[d.value.offset]-(S[d.value.client]-S.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),g())},b=()=>{u.isDragging=!1,u[d.value.axis]=0,t("stop-move"),y()},w=S=>{const{isDragging:E}=u;if(!E||!a.value||!i.value)return;const D=u[d.value.axis];if(!D)return;Pv(s);const _=(i.value.getBoundingClientRect()[d.value.direction]-S[d.value.client])*-1,M=a.value[d.value.offset]-D,O=_-M;s=s0(()=>{u.traveled=Math.max(0,Math.min(O,h.value)),t("scroll",O,h.value)})},A=S=>{const E=Math.abs(S.target.getBoundingClientRect()[d.value.direction]-S[d.value.client]),D=a.value[d.value.offset]/2,_=E-D;u.traveled=Math.max(0,Math.min(_,h.value)),t("scroll",_,h.value)};return St(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*h.value))}),Jr(()=>{y()}),()=>jn("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:f.value,onMousedown:en(A,["stop","prevent"]),onTouchstartPrevent:m},jn("div",{ref:a,class:o.e("thumb"),style:v.value,onMousedown:m},[]))}}),Sbe=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:s,clearCache:l,validateProps:u})=>nt({name:e??"ElVirtualList",props:wbe,emits:[IE,OE],setup(d,{emit:c,expose:f}){u(d);const p=br(),v=Vt("vl"),h=K(s(d,p)),g=mbe(),y=K(),m=K(),b=K(),w=K({isScrolling:!1,scrollDir:"forward",scrollOffset:$n(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),A=ee(()=>{const{total:H,cache:re}=d,{isScrolling:X,scrollDir:te,scrollOffset:Z}=C(w);if(H===0)return[0,0,0,0];const le=i(d,Z,C(h)),ve=a(d,le,Z,C(h)),Pe=!X||te===ME?Math.max(1,re):1,Ae=!X||te===j1?Math.max(1,re):1;return[Math.max(0,le-Pe),Math.max(0,Math.min(H-1,ve+Ae)),le,ve]}),S=ee(()=>o(d,C(h))),E=ee(()=>lA(d.layout)),D=ee(()=>[{position:"relative",[`overflow-${E.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:$n(d.height)?`${d.height}px`:d.height,width:$n(d.width)?`${d.width}px`:d.width},d.style]),_=ee(()=>{const H=C(S),re=C(E);return{height:re?"100%":`${H}px`,pointerEvents:C(w).isScrolling?"none":void 0,width:re?`${H}px`:"100%"}}),M=ee(()=>E.value?d.width:d.height),{onWheel:O}=pXe({atStartEdge:ee(()=>w.value.scrollOffset<=0),atEndEdge:ee(()=>w.value.scrollOffset>=S.value),layout:ee(()=>d.layout)},H=>{var re,X;(X=(re=b.value).onMouseUp)==null||X.call(re),z(Math.min(w.value.scrollOffset+H,S.value-M.value))});Ro(y,"wheel",O,{passive:!1});const k=()=>{const{total:H}=d;if(H>0){const[Z,le,ve,Pe]=C(A);c(IE,Z,le,ve,Pe)}const{scrollDir:re,scrollOffset:X,updateRequested:te}=C(w);c(OE,re,X,te)},R=H=>{const{clientHeight:re,scrollHeight:X,scrollTop:te}=H.currentTarget,Z=C(w);if(Z.scrollOffset===te)return;const le=Math.max(0,Math.min(te,X-re));w.value={...Z,isScrolling:!0,scrollDir:$g(Z.scrollOffset,le),scrollOffset:le,updateRequested:!1},Yt(Y)},N=H=>{const{clientWidth:re,scrollLeft:X,scrollWidth:te}=H.currentTarget,Z=C(w);if(Z.scrollOffset===X)return;const{direction:le}=d;let ve=X;if(le===iy)switch(NE()){case sA:{ve=-X;break}case CW:{ve=te-re-X;break}}ve=Math.max(0,Math.min(ve,te-re)),w.value={...Z,isScrolling:!0,scrollDir:$g(Z.scrollOffset,ve),scrollOffset:ve,updateRequested:!1},Yt(Y)},W=H=>{C(E)?N(H):R(H),k()},B=(H,re)=>{const X=(S.value-M.value)/re*H;z(Math.min(S.value-M.value,X))},z=H=>{H=Math.max(H,0),H!==C(w).scrollOffset&&(w.value={...C(w),scrollOffset:H,scrollDir:$g(C(w).scrollOffset,H),updateRequested:!0},Yt(Y))},j=(H,re=$u)=>{const{scrollOffset:X}=C(w);H=Math.max(0,Math.min(H,d.total-1)),z(t(d,H,re,X,C(h)))},q=H=>{const{direction:re,itemSize:X,layout:te}=d,Z=g.value(l&&X,l&&te,l&&re);let le;if(no(Z,String(H)))le=Z[H];else{const ve=r(d,H,C(h)),Pe=n(d,H,C(h)),Ae=C(E),he=re===iy,Ee=Ae?ve:0;Z[H]=le={position:"absolute",left:he?void 0:`${Ee}px`,right:he?`${Ee}px`:void 0,top:Ae?0:`${ve}px`,height:Ae?"100%":`${Pe}px`,width:Ae?`${Pe}px`:"100%"}}return le},Y=()=>{w.value.isScrolling=!1,Yt(()=>{g.value(-1,null,null)})},U=()=>{const H=y.value;H&&(H.scrollTop=0)};qn(()=>{if(!Xr)return;const{initScrollOffset:H}=d,re=C(y);$n(H)&&re&&(C(E)?re.scrollLeft=H:re.scrollTop=H),k()}),Qc(()=>{const{direction:H,layout:re}=d,{scrollOffset:X,updateRequested:te}=C(w),Z=C(y);if(te&&Z)if(re===jy)if(H===iy)switch(NE()){case sA:{Z.scrollLeft=-X;break}case AW:{Z.scrollLeft=X;break}default:{const{clientWidth:le,scrollWidth:ve}=Z;Z.scrollLeft=ve-le-X;break}}else Z.scrollLeft=X;else Z.scrollTop=X}),Db(()=>{C(y).scrollTop=C(w).scrollOffset});const F={ns:v,clientSize:M,estimatedTotalSize:S,windowStyle:D,windowRef:y,innerRef:m,innerStyle:_,itemsToRender:A,scrollbarRef:b,states:w,getItemStyle:q,onScroll:W,onScrollbarScroll:B,onWheel:O,scrollTo:z,scrollToItem:j,resetScrollTop:U};return f({windowRef:y,innerRef:m,getItemStyleCache:g,scrollTo:z,scrollToItem:j,resetScrollTop:U,states:w}),F},render(d){var c;const{$slots:f,className:p,clientSize:v,containerElement:h,data:g,getItemStyle:y,innerElement:m,itemsToRender:b,innerStyle:w,layout:A,total:S,onScroll:E,onScrollbarScroll:D,states:_,useIsScrolling:M,windowStyle:O,ns:k}=d,[R,N]=b,W=mr(h),B=mr(m),z=[];if(S>0)for(let U=R;U<=N;U++)z.push(jn(Rt,{key:U},(c=f.default)==null?void 0:c.call(f,{data:g,index:U,isScrolling:M?_.isScrolling:void 0,style:y(U)})));const j=[jn(B,{style:w,ref:"innerRef"},In(B)?z:{default:()=>z})],q=jn(GL,{ref:"scrollbarRef",clientSize:v,layout:A,onScroll:D,ratio:v*100/this.estimatedTotalSize,scrollFrom:_.scrollOffset/(this.estimatedTotalSize-v),total:S,alwaysOn:_.scrollbarAlwaysOn}),Y=jn(W,{class:[k.e("window"),p],style:O,onScroll:E,ref:"windowRef",key:0},In(W)?[j]:{default:()=>[j]});return jn("div",{key:0,class:[k.e("wrapper"),_.scrollbarAlwaysOn?"always-on":""]},[Y,q])}}),Ebe=Sbe({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:o},i,a,s)=>{const l=lA(r)?o:e,u=Math.max(0,t*n-l),d=Math.min(u,i*n),c=Math.max(0,(i+1)*n-l);switch(a===vD&&(s>=c-l&&s<=d+l?a=$u:a=Ed),a){case iA:return d;case aA:return c;case Ed:{const f=Math.round(c+(d-c)/2);return f<Math.ceil(l/2)?0:f>u+Math.floor(l/2)?u:f}case $u:default:return s>=c&&s<=d?s:s<c?c:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:o},i,a)=>{const s=i*n,l=lA(r)?o:e,u=Math.ceil((l+a-s)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),H1=(e,t,n)=>{const{itemSize:r}=e,{items:o,lastVisitedIndex:i}=n;if(t>i){let a=0;if(i>=0){const s=o[i];a=s.offset+s.size}for(let s=i+1;s<=t;s++){const l=r(s);o[s]={offset:a,size:l},a+=l}n.lastVisitedIndex=t}return o[t]},vXe=(e,t,n)=>{const{items:r,lastVisitedIndex:o}=t;return(o>0?r[o].offset:0)>=n?kbe(e,t,0,o,n):mXe(e,t,Math.max(0,o),n)},kbe=(e,t,n,r,o)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),a=H1(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return Math.max(0,n-1)},mXe=(e,t,n,r)=>{const{total:o}=e;let i=1;for(;n<o&&H1(e,n,t).offset<r;)n+=i,i*=2;return kbe(e,t,Math.floor(n/2),Math.min(n,o-1),r)},pee=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let o=0;if(r>=e&&(r=e-1),r>=0){const s=t[r];o=s.offset+s.size}const a=(e-r-1)*n;return o+a},yXe=Sbe({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>H1(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:pee,getOffset:(e,t,n,r,o)=>{const{height:i,layout:a,width:s}=e,l=lA(a)?s:i,u=H1(e,t,o),d=pee(e,o),c=Math.max(0,Math.min(d-l,u.offset)),f=Math.max(0,u.offset-l+u.size);switch(n===vD&&(r>=f-l&&r<=c+l?n=$u:n=Ed),n){case iA:return c;case aA:return f;case Ed:return Math.round(f+(c-f)/2);case $u:default:return r>=f&&r<=c?r:r<f?f:c}},getStartIndexForOffset:(e,t,n)=>vXe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:i,layout:a,width:s}=e,l=lA(a)?s:o,u=H1(e,t,r),d=n+l;let c=u.offset+u.size,f=t;for(;f<i-1&&c<d;)f++,c+=H1(e,f,r).size;return f},initCache({estimatedItemSize:e=$L},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,o=!0)=>{var i,a;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(i=t.exposed)==null||i.getItemStyleCache(-1),o&&((a=t.proxy)==null||a.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),bXe={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var wXe=nt({name:"ElSelectDropdown",props:bXe,setup(e,{slots:t,expose:n}){const r=dn(bW),o=Vt("select"),{getLabel:i,getValue:a,getDisabled:s}=H5(r.props),l=K([]),u=K(),d=ee(()=>e.data.length);St(()=>d.value,()=>{var O,k;(k=(O=r.tooltipRef.value)==null?void 0:O.updatePopper)==null||k.call(O)});const c=ee(()=>Vr(r.props.estimatedOptionHeight)),f=ee(()=>c.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:O=>l.value[O]}),p=(O=[],k)=>{const{props:{valueKey:R}}=r;return dr(k)?O&&O.some(N=>No(Xi(N,R))===Xi(k,R)):O.includes(k)},v=(O,k)=>{if(dr(k)){const{valueKey:R}=r.props;return Xi(O,R)===Xi(k,R)}else return O===k},h=(O,k)=>r.props.multiple?p(O,a(k)):v(O,a(k)),g=(O,k)=>{const{disabled:R,multiple:N,multipleLimit:W}=r.props;return R||!k&&(N?W>0&&O.length>=W:!1)},y=O=>e.hoveringIndex===O;n({listRef:u,isSized:c,isItemDisabled:g,isItemHovering:y,isItemSelected:h,scrollToItem:O=>{const k=u.value;k&&k.scrollToItem(O)},resetScrollTop:()=>{const O=u.value;O&&O.resetScrollTop()}});const A=O=>{const{index:k,data:R,style:N}=O,W=C(c),{itemSize:B,estimatedSize:z}=C(f),{modelValue:j}=r.props,{onSelect:q,onHover:Y}=r,U=R[k];if(U.type==="Group")return He(ZZe,{item:U,style:N,height:W?B:z},null);const F=h(j,U),H=g(j,F),re=y(k);return He(iXe,vr(O,{selected:F,disabled:s(U)||H,created:!!U.created,hovering:re,item:U,onSelect:q,onHover:Y}),{default:X=>{var te;return((te=t.default)==null?void 0:te.call(t,X))||He("span",null,[i(U)])}})},{onKeyboardNavigate:S,onKeyboardSelect:E}=r,D=()=>{S("forward")},_=()=>{S("backward")},M=O=>{const{code:k}=O,{tab:R,esc:N,down:W,up:B,enter:z,numpadEnter:j}=gn;switch([N,W,B,z,j].includes(k)&&(O.preventDefault(),O.stopPropagation()),k){case R:case N:break;case W:D();break;case B:_();break;case z:case j:E();break}};return()=>{var O,k,R,N;const{data:W,width:B}=e,{height:z,multiple:j,scrollbarAlwaysOn:q}=r.props,Y=ee(()=>wE?!0:q),U=C(c)?Ebe:yXe;return He("div",{class:[o.b("dropdown"),o.is("multiple",j)],style:{width:`${B}px`}},[(O=t.header)==null?void 0:O.call(t),((k=t.loading)==null?void 0:k.call(t))||((R=t.empty)==null?void 0:R.call(t))||He(U,vr({ref:u},C(f),{className:o.be("dropdown","list"),scrollbarAlwaysOn:Y.value,data:W,height:z,width:B,total:W.length,onKeydown:M}),{default:F=>He(A,F,null)}),(N=t.footer)==null?void 0:N.call(t)])}}});function AXe(e,t){const{aliasProps:n,getLabel:r,getValue:o}=H5(e),i=K(0),a=K(),s=ee(()=>e.allowCreate&&e.filterable);St(()=>e.options,p=>{const v=new Set(p.map(h=>r(h)));t.createdOptions=t.createdOptions.filter(h=>!v.has(r(h)))});function l(p){const v=h=>r(h)===p;return e.options&&e.options.some(v)||t.createdOptions.some(v)}function u(p){s.value&&(e.multiple&&p.created?i.value++:a.value=p)}function d(p){if(s.value)if(p&&p.length>0){if(l(p)){t.createdOptions=t.createdOptions.filter(h=>r(h)!==t.previousQuery);return}const v={[n.value.value]:p,[n.value.label]:p,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=v:t.createdOptions.push(v)}else if(e.multiple)t.createdOptions.length=i.value;else{const v=a.value;t.createdOptions.length=0,v&&v.created&&t.createdOptions.push(v)}}function c(p){if(!s.value||!p||!p.created||p.created&&e.reserveKeyword&&t.inputValue===r(p))return;const v=t.createdOptions.findIndex(h=>o(h)===o(p));~v&&(t.createdOptions.splice(v,1),i.value--)}function f(){s.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:d,removeNewOption:c,selectNewOption:u,clearAllNewOption:f}}const CXe=(e,t)=>{const{t:n}=Gr(),r=Vt("select"),o=Vt("input"),{form:i,formItem:a}=Ds(),{inputId:s}=fc(e,{formItemContext:a}),{aliasProps:l,getLabel:u,getValue:d,getDisabled:c,getOptions:f}=H5(e),{valueOnClear:p,isEmptyValue:v}=R5(e),h=Wr({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),g=K(-1),y=K(),m=K(),b=K(),w=K(),A=K(),S=K(),E=K(),D=K(),_=K(),M=K(),{isComposing:O,handleCompositionStart:k,handleCompositionEnd:R,handleCompositionUpdate:N}=F5({afterComposition:Ct=>Bn(Ct)}),W=ee(()=>e.disabled||!!i?.disabled),{wrapperRef:B,isFocused:z,handleBlur:j}=Ap(A,{disabled:W,afterFocus(){e.automaticDropdown&&!F.value&&(F.value=!0,h.menuVisibleOnFocus=!0)},beforeBlur(Ct){var Xt,yn;return((Xt=b.value)==null?void 0:Xt.isFocusInsideContent(Ct))||((yn=w.value)==null?void 0:yn.isFocusInsideContent(Ct))},afterBlur(){var Ct;F.value=!1,h.menuVisibleOnFocus=!1,e.validateEvent&&((Ct=a?.validate)==null||Ct.call(a,"blur").catch(Xt=>void 0))}}),q=ee(()=>me("")),Y=ee(()=>e.loading?!1:e.options.length>0||h.createdOptions.length>0),U=K([]),F=K(!1),H=ee(()=>{var Ct;return(Ct=i?.statusIcon)!=null?Ct:!1}),re=ee(()=>{const Ct=U.value.length*e.itemHeight;return Ct>e.height?e.height:Ct}),X=ee(()=>e.multiple?Zt(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),te=ee(()=>e.clearable&&!W.value&&X.value&&(z.value||h.inputHovering)),Z=ee(()=>e.remote&&e.filterable?"":e.suffixIcon),le=ee(()=>Z.value&&r.is("reverse",F.value)),ve=ee(()=>a?.validateState||""),Pe=ee(()=>{if(ve.value)return iD[ve.value]}),Ae=ee(()=>e.remote?300:0),he=ee(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!h.inputValue&&!Y.value?!1:e.filterable&&h.inputValue&&Y.value&&U.value.length===0?e.noMatchText||n("el.select.noMatch"):Y.value?null:e.noDataText||n("el.select.noData")),Ee=ee(()=>e.filterable&&Rn(e.filterMethod)),Q=ee(()=>e.filterable&&e.remote&&Rn(e.remoteMethod)),me=Ct=>{const Xt=new RegExp(gW(Ct),"i"),yn=Ln=>Ee.value||Q.value?!0:Ct?Xt.test(u(Ln)||""):!0;return e.loading?[]:[...h.createdOptions,...e.options].reduce((Ln,Zn)=>{const jr=f(Zn);if(Zt(jr)){const yo=jr.filter(yn);yo.length>0&&Ln.push({label:u(Zn),type:"Group"},...yo)}else(e.remote||yn(Zn))&&Ln.push(Zn);return Ln},[])},De=()=>{U.value=me(h.inputValue)},pe=ee(()=>{const Ct=new Map;return q.value.forEach((Xt,yn)=>{Ct.set(Se(d(Xt)),{option:Xt,index:yn})}),Ct}),ie=ee(()=>{const Ct=new Map;return U.value.forEach((Xt,yn)=>{Ct.set(Se(d(Xt)),{option:Xt,index:yn})}),Ct}),ue=ee(()=>U.value.every(Ct=>c(Ct))),Be=ha(),Me=ee(()=>Be.value==="small"?"small":"default"),Fe=()=>{var Ct;if($n(e.fitInputWidth)){g.value=e.fitInputWidth;return}const Xt=((Ct=y.value)==null?void 0:Ct.offsetWidth)||200;!e.fitInputWidth&&Y.value?Yt(()=>{g.value=Math.max(Xt,ze())}):g.value=Xt},ze=()=>{var Ct,Xt;const Ln=document.createElement("canvas").getContext("2d"),Zn=r.be("dropdown","item"),yo=(((Xt=(Ct=D.value)==null?void 0:Ct.listRef)==null?void 0:Xt.innerRef)||document).querySelector(`.${Zn}`);if(yo===null||Ln===null)return 0;const Kr=getComputedStyle(yo),xo=Number.parseFloat(Kr.paddingLeft)+Number.parseFloat(Kr.paddingRight);return Ln.font=`bold ${Kr.font.replace(new RegExp(`\\b${Kr.fontWeight}\\b`),"")}`,U.value.reduce((Sr,Yr)=>{const vo=Ln.measureText(u(Yr));return Math.max(vo.width,Sr)},0)+xo},Ne=()=>{if(!m.value)return 0;const Ct=window.getComputedStyle(m.value);return Number.parseFloat(Ct.gap||"6px")},Re=ee(()=>{const Ct=Ne(),Xt=e.filterable?Ct+cW:0;return{maxWidth:`${M.value&&e.maxCollapseTags===1?h.selectionWidth-h.collapseItemWidth-Ct-Xt:h.selectionWidth-Xt}px`}}),gt=ee(()=>({maxWidth:`${h.selectionWidth}px`})),Bt=ee(()=>Zt(e.modelValue)?e.modelValue.length===0&&!h.inputValue:e.filterable?!h.inputValue:!0),Lt=ee(()=>{var Ct;const Xt=(Ct=e.placeholder)!=null?Ct:n("el.select.placeholder");return e.multiple||!X.value?Xt:h.selectedLabel}),an=ee(()=>{var Ct,Xt;return(Xt=(Ct=b.value)==null?void 0:Ct.popperRef)==null?void 0:Xt.contentRef}),Kt=ee(()=>{if(e.multiple){const Ct=e.modelValue.length;if(e.modelValue.length>0&&ie.value.has(e.modelValue[Ct-1])){const{index:Xt}=ie.value.get(e.modelValue[Ct-1]);return Xt}}else if(!v(e.modelValue)&&ie.value.has(e.modelValue)){const{index:Ct}=ie.value.get(e.modelValue);return Ct}return-1}),Ht=ee({get(){return F.value&&he.value!==!1},set(Ct){F.value=Ct}}),pt=ee(()=>e.multiple?e.collapseTags?h.cachedOptions.slice(0,e.maxCollapseTags):h.cachedOptions:[]),Dt=ee(()=>e.multiple?e.collapseTags?h.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:dt,removeNewOption:it,selectNewOption:de,clearAllNewOption:tt}=AXe(e,h),ft=()=>{W.value||(h.menuVisibleOnFocus?h.menuVisibleOnFocus=!1:F.value=!F.value)},Mt=()=>{h.inputValue.length>0&&!F.value&&(F.value=!0),dt(h.inputValue),Yt(()=>{Nn(h.inputValue)})},Tn=Wl(Mt,Ae.value),Nn=Ct=>{h.previousQuery===Ct||O.value||(h.previousQuery=Ct,e.filterable&&Rn(e.filterMethod)?e.filterMethod(Ct):e.filterable&&e.remote&&Rn(e.remoteMethod)&&e.remoteMethod(Ct),e.defaultFirstOption&&(e.filterable||e.remote)&&U.value.length?Yt(We):Yt(Sn))},We=()=>{const Ct=U.value.filter(Ln=>!Ln.disabled&&Ln.type!=="Group"),Xt=Ct.find(Ln=>Ln.created),yn=Ct[0];h.hoveringIndex=fe(U.value,Xt||yn)},ke=Ct=>{fa(e.modelValue,Ct)||t(Pr,Ct)},be=Ct=>{t(Qn,Ct),ke(Ct),h.previousValue=e.multiple?String(Ct):Ct,Yt(()=>{if(e.multiple&&Zt(e.modelValue)){const Xt=h.cachedOptions.slice(),yn=e.modelValue.map(Ln=>At(Ln,Xt));fa(h.cachedOptions,yn)||(h.cachedOptions=yn)}else tn(!0)})},fe=(Ct=[],Xt)=>{if(!dr(Xt))return Ct.indexOf(Xt);const yn=e.valueKey;let Ln=-1;return Ct.some((Zn,jr)=>Xi(Zn,yn)===Xi(Xt,yn)?(Ln=jr,!0):!1),Ln},Se=Ct=>dr(Ct)?Xi(Ct,e.valueKey):Ct,qe=()=>{Fe()},$e=()=>{h.selectionWidth=Number.parseFloat(window.getComputedStyle(m.value).width)},Le=()=>{h.collapseItemWidth=M.value.getBoundingClientRect().width},ot=()=>{var Ct,Xt;(Xt=(Ct=b.value)==null?void 0:Ct.updatePopper)==null||Xt.call(Ct)},vt=()=>{var Ct,Xt;(Xt=(Ct=w.value)==null?void 0:Ct.updatePopper)==null||Xt.call(Ct)},Ut=Ct=>{if(e.multiple){let Xt=e.modelValue.slice();const yn=fe(Xt,d(Ct));yn>-1?(Xt=[...Xt.slice(0,yn),...Xt.slice(yn+1)],h.cachedOptions.splice(yn,1),it(Ct)):(e.multipleLimit<=0||Xt.length<e.multipleLimit)&&(Xt=[...Xt,d(Ct)],h.cachedOptions.push(Ct),de(Ct)),be(Xt),Ct.created&&Nn(""),e.filterable&&!e.reserveKeyword&&(h.inputValue="")}else h.selectedLabel=u(Ct),be(d(Ct)),F.value=!1,de(Ct),Ct.created||tt();Gt()},Qt=(Ct,Xt)=>{let yn=e.modelValue.slice();const Ln=fe(yn,d(Xt));Ln>-1&&!W.value&&(yn=[...e.modelValue.slice(0,Ln),...e.modelValue.slice(Ln+1)],h.cachedOptions.splice(Ln,1),be(yn),t("remove-tag",d(Xt)),it(Xt)),Ct.stopPropagation(),Gt()},Gt=()=>{var Ct;(Ct=A.value)==null||Ct.focus()},vn=()=>{var Ct;if(F.value){F.value=!1,Yt(()=>{var Xt;return(Xt=A.value)==null?void 0:Xt.blur()});return}(Ct=A.value)==null||Ct.blur()},Un=()=>{h.inputValue.length>0?h.inputValue="":F.value=!1},wr=Ct=>Ome(Ct,Xt=>!h.cachedOptions.some(yn=>d(yn)===Xt&&c(yn))),fr=Ct=>{if(e.multiple&&Ct.code!==gn.delete&&h.inputValue.length===0){Ct.preventDefault();const Xt=e.modelValue.slice(),yn=wr(Xt);if(yn<0)return;const Ln=Xt[yn];Xt.splice(yn,1);const Zn=h.cachedOptions[yn];h.cachedOptions.splice(yn,1),it(Zn),be(Xt),t("remove-tag",Ln)}},Nt=()=>{let Ct;Zt(e.modelValue)?Ct=[]:Ct=p.value,h.selectedLabel="",F.value=!1,be(Ct),t("clear"),tt(),Gt()},_n=(Ct,Xt=void 0)=>{const yn=U.value;if(!["forward","backward"].includes(Ct)||W.value||yn.length<=0||ue.value||O.value)return;if(!F.value)return ft();Vr(Xt)&&(Xt=h.hoveringIndex);let Ln=-1;Ct==="forward"?(Ln=Xt+1,Ln>=yn.length&&(Ln=0)):Ct==="backward"&&(Ln=Xt-1,(Ln<0||Ln>=yn.length)&&(Ln=yn.length-1));const Zn=yn[Ln];if(c(Zn)||Zn.type==="Group")return _n(Ct,Ln);h.hoveringIndex=Ln,Ye(Ln)},xt=()=>{if(F.value)~h.hoveringIndex&&U.value[h.hoveringIndex]&&Ut(U.value[h.hoveringIndex]);else return ft()},Ft=Ct=>{h.hoveringIndex=Ct??-1},Sn=()=>{e.multiple?h.hoveringIndex=U.value.findIndex(Ct=>e.modelValue.some(Xt=>Se(Xt)===Se(d(Ct)))):h.hoveringIndex=U.value.findIndex(Ct=>Se(d(Ct))===Se(e.modelValue))},Bn=Ct=>{if(h.inputValue=Ct.target.value,e.remote)Tn();else return Mt()},Fr=Ct=>{if(F.value=!1,z.value){const Xt=new FocusEvent("blur",Ct);j(Xt)}},kn=()=>(h.isBeforeHide=!1,Yt(()=>{~Kt.value&&Ye(h.hoveringIndex)})),Ye=Ct=>{D.value.scrollToItem(Ct)},At=(Ct,Xt)=>{const yn=Se(Ct);if(pe.value.has(yn)){const{option:Ln}=pe.value.get(yn);return Ln}if(Xt&&Xt.length){const Ln=Xt.find(Zn=>Se(d(Zn))===yn);if(Ln)return Ln}return{[l.value.value]:Ct,[l.value.label]:Ct}},tn=(Ct=!1)=>{if(e.multiple)if(e.modelValue.length>0){const Xt=h.cachedOptions.slice();h.cachedOptions.length=0,h.previousValue=e.modelValue.toString();for(const yn of e.modelValue){const Ln=At(yn,Xt);h.cachedOptions.push(Ln)}}else h.cachedOptions=[],h.previousValue=void 0;else if(X.value){h.previousValue=e.modelValue;const Xt=U.value,yn=Xt.findIndex(Ln=>Se(d(Ln))===Se(e.modelValue));~yn?h.selectedLabel=u(Xt[yn]):(!h.selectedLabel||Ct)&&(h.selectedLabel=Se(e.modelValue))}else h.selectedLabel="",h.previousValue=void 0;tt(),Fe()};return St(()=>e.fitInputWidth,()=>{Fe()}),St(F,Ct=>{Ct?(e.persistent||Fe(),Nn("")):(h.inputValue="",h.previousQuery=null,h.isBeforeHide=!0,dt("")),t("visible-change",Ct)}),St(()=>e.modelValue,(Ct,Xt)=>{var yn;(!Ct||Zt(Ct)&&Ct.length===0||e.multiple&&!fa(Ct.toString(),h.previousValue)||!e.multiple&&Se(Ct)!==Se(h.previousValue))&&tn(!0),!fa(Ct,Xt)&&e.validateEvent&&((yn=a?.validate)==null||yn.call(a,"change").catch(Zn=>void 0))},{deep:!0}),St(()=>e.options,()=>{const Ct=A.value;(!Ct||Ct&&document.activeElement!==Ct)&&tn()},{deep:!0,flush:"post"}),St(()=>U.value,()=>(Fe(),D.value&&Yt(D.value.resetScrollTop))),Es(()=>{h.isBeforeHide||De()}),Es(()=>{const{valueKey:Ct,options:Xt}=e,yn=new Map;for(const Ln of Xt){const Zn=d(Ln);let jr=Zn;if(dr(jr)&&(jr=Xi(Zn,Ct)),yn.get(jr))break;yn.set(jr,!0)}}),qn(()=>{tn()}),li(y,qe),li(m,$e),li(D,ot),li(B,ot),li(_,vt),li(M,Le),{inputId:s,collapseTagSize:Me,currentPlaceholder:Lt,expanded:F,emptyText:he,popupHeight:re,debounce:Ae,allOptions:q,filteredOptions:U,iconComponent:Z,iconReverse:le,tagStyle:Re,collapseTagStyle:gt,popperSize:g,dropdownMenuVisible:Ht,hasModelValue:X,shouldShowPlaceholder:Bt,selectDisabled:W,selectSize:Be,needStatusIcon:H,showClearBtn:te,states:h,isFocused:z,nsSelect:r,nsInput:o,inputRef:A,menuRef:D,tagMenuRef:_,tooltipRef:b,tagTooltipRef:w,selectRef:y,wrapperRef:B,selectionRef:m,prefixRef:S,suffixRef:E,collapseItemRef:M,popperRef:an,validateState:ve,validateIcon:Pe,showTagList:pt,collapseTagList:Dt,debouncedOnInputChange:Tn,deleteTag:Qt,getLabel:u,getValue:d,getDisabled:c,getValueKey:Se,handleClear:Nt,handleClickOutside:Fr,handleDel:fr,handleEsc:Un,focus:Gt,blur:vn,handleMenuEnter:kn,handleResize:qe,resetSelectionWidth:$e,updateTooltip:ot,updateTagTooltip:vt,updateOptions:De,toggleMenu:ft,scrollTo:Ye,onInput:Bn,onKeyboardNavigate:_n,onKeyboardSelect:xt,onSelect:Ut,onHover:Ft,handleCompositionStart:k,handleCompositionEnd:R,handleCompositionUpdate:N}},xXe=nt({name:"ElSelectV2",components:{ElSelectMenu:wXe,ElTag:Nh,ElTooltip:hs,ElIcon:Dn},directives:{ClickOutside:np},props:JZe,emits:tXe,setup(e,{emit:t}){const n=ee(()=>{const{modelValue:s,multiple:l}=e,u=l?[]:void 0;return Zt(s)?l?s:u:l?u:s}),r=CXe(Wr({...Oa(e),modelValue:n}),t),{calculatorRef:o,inputStyle:i}=dW();_r(bW,{props:Wr({...Oa(e),height:r.popupHeight,modelValue:n}),expanded:r.expanded,tooltipRef:r.tooltipRef,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect});const a=ee(()=>e.multiple?r.states.cachedOptions.map(s=>s.label):r.states.selectedLabel);return{...r,modelValue:n,selectedLabel:a,calculatorRef:o,inputStyle:i}}});function SXe(e,t,n,r,o,i){const a=hr("el-tag"),s=hr("el-tooltip"),l=hr("el-icon"),u=hr("el-select-menu"),d=L_("click-outside");return cn((L(),G("div",{ref:"selectRef",class:oe([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:c=>e.states.inputHovering=!0,onMouseleave:c=>e.states.inputHovering=!1},[He(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:c=>e.states.isBeforeHide=!1},{default:rt(()=>[x("div",{ref:"wrapperRef",class:oe([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:en(e.toggleMenu,["prevent"])},[e.$slots.prefix?(L(),G("div",{key:0,ref:"prefixRef",class:oe(e.nsSelect.e("prefix"))},[ht(e.$slots,"prefix")],2)):xe("v-if",!0),x("div",{ref:"selectionRef",class:oe([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ht(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(L(!0),G(Rt,null,un(e.showTagList,c=>(L(),G("div",{key:e.getValueKey(e.getValue(c)),class:oe(e.nsSelect.e("selected-item"))},[He(a,{closable:!e.selectDisabled&&!e.getDisabled(c),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:rn(e.tagStyle),onClose:f=>e.deleteTag(f,c)},{default:rt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))},[ht(e.$slots,"label",{label:e.getLabel(c),value:e.getValue(c)},()=>[bn(je(e.getLabel(c)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(L(),yt(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:rt(()=>[x("div",{ref:"collapseItemRef",class:oe(e.nsSelect.e("selected-item"))},[He(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:rn(e.collapseTagStyle),"disable-transitions":""},{default:rt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))}," + "+je(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:rt(()=>[x("div",{ref:"tagMenuRef",class:oe(e.nsSelect.e("selection"))},[(L(!0),G(Rt,null,un(e.collapseTagList,c=>(L(),G("div",{key:e.getValueKey(e.getValue(c)),class:oe(e.nsSelect.e("selected-item"))},[He(a,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(c),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:f=>e.deleteTag(f,c)},{default:rt(()=>[x("span",{class:oe(e.nsSelect.e("tags-text"))},[ht(e.$slots,"label",{label:e.getLabel(c),value:e.getValue(c)},()=>[bn(je(e.getLabel(c)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):xe("v-if",!0)]):xe("v-if",!0),x("div",{class:oe([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[cn(x("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":c=>e.states.inputValue=c,style:rn(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:oe([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[$r(en(c=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),$r(en(c=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),$r(en(e.onKeyboardSelect,["stop","prevent"]),["enter"]),$r(en(e.handleEsc,["stop","prevent"]),["esc"]),$r(en(e.handleDel,["stop"]),["delete"])],onClick:en(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","tabindex","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[qr,e.states.inputValue]]),e.filterable?(L(),G("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:oe(e.nsSelect.e("input-calculator")),textContent:je(e.states.inputValue)},null,10,["textContent"])):xe("v-if",!0)],2),e.shouldShowPlaceholder?(L(),G("div",{key:1,class:oe([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ht(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[x("span",null,je(e.currentPlaceholder),1)]):(L(),G("span",{key:1},je(e.currentPlaceholder),1))],2)):xe("v-if",!0)],2),x("div",{ref:"suffixRef",class:oe(e.nsSelect.e("suffix"))},[e.iconComponent?cn((L(),yt(l,{key:0,class:oe([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:rt(()=>[(L(),yt(mr(e.iconComponent)))]),_:1},8,["class"])),[[kr,!e.showClearBtn]]):xe("v-if",!0),e.showClearBtn&&e.clearIcon?(L(),yt(l,{key:1,class:oe([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:en(e.handleClear,["prevent","stop"])},{default:rt(()=>[(L(),yt(mr(e.clearIcon)))]),_:1},8,["class","onClick"])):xe("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(L(),yt(l,{key:2,class:oe([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:rt(()=>[(L(),yt(mr(e.validateIcon)))]),_:1},8,["class"])):xe("v-if",!0)],2)],10,["onClick"])]),content:rt(()=>[He(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Hl({default:rt(c=>[ht(e.$slots,"default",Il($d(c)))]),_:2},[e.$slots.header?{name:"header",fn:rt(()=>[x("div",{class:oe(e.nsSelect.be("dropdown","header")),onClick:en(()=>{},["stop"])},[ht(e.$slots,"header")],10,["onClick"])])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:rt(()=>[x("div",{class:oe(e.nsSelect.be("dropdown","loading"))},[ht(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:rt(()=>[x("div",{class:oe(e.nsSelect.be("dropdown","empty"))},[ht(e.$slots,"empty",{},()=>[x("span",null,je(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:rt(()=>[x("div",{class:oe(e.nsSelect.be("dropdown","footer")),onClick:en(()=>{},["stop"])},[ht(e.$slots,"footer")],10,["onClick"])])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var EXe=on(xXe,[["render",SXe],["__file","select.vue"]]);const kXe=or(EXe),TXe=Jt({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:ct([Number,Object])}}),_Xe=Jt({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),DXe=nt({name:"ElSkeletonItem"}),IXe=nt({...DXe,props:_Xe,setup(e){const t=Vt("skeleton");return(n,r)=>(L(),G("div",{class:oe([C(t).e("item"),C(t).e(n.variant)])},[n.variant==="image"?(L(),yt(C(wLe),{key:0})):xe("v-if",!0)],2))}});var RE=on(IXe,[["__file","skeleton-item.vue"]]);const OXe=(e,t=0)=>{if(t===0)return e;const n=dr(t)&&!!t.initVal,r=K(n);let o=null;const i=s=>{if(Vr(s)){r.value=e.value;return}o&&clearTimeout(o),o=setTimeout(()=>{r.value=e.value},s)},a=s=>{s==="leading"?$n(t)?i(t):i(t.leading):dr(t)?i(t.trailing):r.value=!1};return qn(()=>a("leading")),St(()=>e.value,s=>{a(s?"leading":"trailing")}),r},MXe=nt({name:"ElSkeleton"}),PXe=nt({...MXe,props:TXe,setup(e,{expose:t}){const n=e,r=Vt("skeleton"),o=OXe(co(n,"loading"),n.throttle);return t({uiLoading:o}),(i,a)=>C(o)?(L(),G("div",vr({key:0,class:[C(r).b(),C(r).is("animated",i.animated)]},i.$attrs),[(L(!0),G(Rt,null,un(i.count,s=>(L(),G(Rt,{key:s},[C(o)?ht(i.$slots,"template",{key:s},()=>[He(RE,{class:oe(C(r).is("first")),variant:"p"},null,8,["class"]),(L(!0),G(Rt,null,un(i.rows,l=>(L(),yt(RE,{key:l,class:oe([C(r).e("paragraph"),C(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):xe("v-if",!0)],64))),128))],16)):ht(i.$slots,"default",Il(vr({key:1},i.$attrs)))}});var NXe=on(PXe,[["__file","skeleton.vue"]]);const RXe=or(NXe,{SkeletonItem:RE}),BXe=vi(RE),Tbe=Symbol("sliderContextKey"),LXe=Jt({modelValue:{type:ct([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Aa,inputSize:Aa,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ct(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:ct(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Cp,default:"top"},marks:{type:ct(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},..._s(["ariaLabel"])}),TI=e=>$n(e)||Zt(e)&&e.every($n),FXe={[Qn]:TI,[ba]:TI,[Pr]:TI},UXe=Jt({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Cp,default:"top"}}),zXe={[Qn]:e=>$n(e)},$Xe=(e,t,n)=>{const r=K(),o=K(!1),i=ee(()=>t.value instanceof Function),a=ee(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Wl(()=>{n.value&&(o.value=!0)},50),l=Wl(()=>{n.value&&(o.value=!1)},50);return{tooltip:r,tooltipVisible:o,formatValue:a,displayTooltip:s,hideTooltip:l}},jXe=(e,t,n)=>{const{disabled:r,min:o,max:i,step:a,showTooltip:s,persistent:l,precision:u,sliderSize:d,formatTooltip:c,emitChange:f,resetSize:p,updateDragging:v}=dn(Tbe),{tooltip:h,tooltipVisible:g,formatValue:y,displayTooltip:m,hideTooltip:b}=$Xe(e,c,s),w=K(),A=ee(()=>`${(e.modelValue-o.value)/(i.value-o.value)*100}%`),S=ee(()=>e.vertical?{bottom:A.value}:{left:A.value}),E=()=>{t.hovering=!0,m()},D=()=>{t.hovering=!1,t.dragging||b()},_=H=>{r.value||(H.preventDefault(),q(H),window.addEventListener("mousemove",Y),window.addEventListener("touchmove",Y),window.addEventListener("mouseup",U),window.addEventListener("touchend",U),window.addEventListener("contextmenu",U),w.value.focus())},M=H=>{r.value||(t.newPosition=Number.parseFloat(A.value)+H/(i.value-o.value)*100,F(t.newPosition),f())},O=()=>{M(-a.value)},k=()=>{M(a.value)},R=()=>{M(-a.value*4)},N=()=>{M(a.value*4)},W=()=>{r.value||(F(0),f())},B=()=>{r.value||(F(100),f())},z=H=>{let re=!0;switch(H.code){case gn.left:case gn.down:O();break;case gn.right:case gn.up:k();break;case gn.home:W();break;case gn.end:B();break;case gn.pageDown:R();break;case gn.pageUp:N();break;default:re=!1;break}re&&H.preventDefault()},j=H=>{let re,X;return H.type.startsWith("touch")?(X=H.touches[0].clientY,re=H.touches[0].clientX):(X=H.clientY,re=H.clientX),{clientX:re,clientY:X}},q=H=>{t.dragging=!0,t.isClick=!0;const{clientX:re,clientY:X}=j(H);e.vertical?t.startY=X:t.startX=re,t.startPosition=Number.parseFloat(A.value),t.newPosition=t.startPosition},Y=H=>{if(t.dragging){t.isClick=!1,m(),p();let re;const{clientX:X,clientY:te}=j(H);e.vertical?(t.currentY=te,re=(t.startY-t.currentY)/d.value*100):(t.currentX=X,re=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+re,F(t.newPosition)}},U=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||F(t.newPosition),f()},0),window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",U),window.removeEventListener("touchend",U),window.removeEventListener("contextmenu",U))},F=async H=>{if(H===null||Number.isNaN(+H))return;H<0?H=0:H>100&&(H=100);const re=100/((i.value-o.value)/a.value);let te=Math.round(H/re)*re*(i.value-o.value)*.01+o.value;te=Number.parseFloat(te.toFixed(u.value)),te!==e.modelValue&&n(Qn,te),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Yt(),t.dragging&&m(),h.value.updatePopper()};return St(()=>t.dragging,H=>{v(H)}),Ro(w,"touchstart",_,{passive:!1}),{disabled:r,button:w,tooltip:h,tooltipVisible:g,showTooltip:s,persistent:l,wrapperStyle:S,formatValue:y,handleMouseEnter:E,handleMouseLeave:D,onButtonDown:_,onKeyDown:z,setPosition:F}},HXe=nt({name:"ElSliderButton"}),WXe=nt({...HXe,props:UXe,emits:zXe,setup(e,{expose:t,emit:n}){const r=e,o=Vt("slider"),i=Wr({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),a=ee(()=>d.value?c.value:!1),{disabled:s,button:l,tooltip:u,showTooltip:d,persistent:c,tooltipVisible:f,wrapperStyle:p,formatValue:v,handleMouseEnter:h,handleMouseLeave:g,onButtonDown:y,onKeyDown:m,setPosition:b}=jXe(r,i,n),{hovering:w,dragging:A}=Oa(i);return t({onButtonDown:y,onKeyDown:m,setPosition:b,hovering:w,dragging:A}),(S,E)=>(L(),G("div",{ref_key:"button",ref:l,class:oe([C(o).e("button-wrapper"),{hover:C(w),dragging:C(A)}]),style:rn(C(p)),tabindex:C(s)?-1:0,onMouseenter:C(h),onMouseleave:C(g),onMousedown:C(y),onFocus:C(h),onBlur:C(g),onKeydown:C(m)},[He(C(hs),{ref_key:"tooltip",ref:u,visible:C(f),placement:S.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":S.tooltipClass,disabled:!C(d),persistent:C(a)},{content:rt(()=>[x("span",null,je(C(v)),1)]),default:rt(()=>[x("div",{class:oe([C(o).e("button"),{hover:C(w),dragging:C(A)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var hee=on(WXe,[["__file","button.vue"]]);const VXe=Jt({mark:{type:ct([String,Object]),default:void 0}});var qXe=nt({name:"ElSliderMarker",props:VXe,setup(e){const t=Vt("slider"),n=ee(()=>In(e.mark)?e.mark:e.mark.label),r=ee(()=>In(e.mark)?void 0:e.mark.style);return()=>jn("div",{class:t.e("marks-text"),style:r.value},n.value)}});const GXe=(e,t,n)=>{const{form:r,formItem:o}=Ds(),i=jo(),a=K(),s=K(),l={firstButton:a,secondButton:s},u=ee(()=>e.disabled||r?.disabled||!1),d=ee(()=>Math.min(t.firstValue,t.secondValue)),c=ee(()=>Math.max(t.firstValue,t.secondValue)),f=ee(()=>e.range?`${100*(c.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),p=ee(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),v=ee(()=>e.vertical?{height:e.height}:{}),h=ee(()=>e.vertical?{height:f.value,bottom:p.value}:{width:f.value,left:p.value}),g=()=>{if(i.value){const k=i.value.getBoundingClientRect();t.sliderSize=k[e.vertical?"height":"width"]}},y=k=>{const R=e.min+k*(e.max-e.min)/100;if(!e.range)return a;let N;return Math.abs(d.value-R)<Math.abs(c.value-R)?N=t.firstValue<t.secondValue?"firstButton":"secondButton":N=t.firstValue>t.secondValue?"firstButton":"secondButton",l[N]},m=k=>{const R=y(k);return R.value.setPosition(k),R},b=k=>{t.firstValue=k??e.min,A(e.range?[d.value,c.value]:k??e.min)},w=k=>{t.secondValue=k,e.range&&A([d.value,c.value])},A=k=>{n(Qn,k),n(ba,k)},S=async()=>{await Yt(),n(Pr,e.range?[d.value,c.value]:e.modelValue)},E=k=>{var R,N,W,B,z,j;if(u.value||t.dragging)return;g();let q=0;if(e.vertical){const Y=(W=(N=(R=k.touches)==null?void 0:R.item(0))==null?void 0:N.clientY)!=null?W:k.clientY;q=(i.value.getBoundingClientRect().bottom-Y)/t.sliderSize*100}else{const Y=(j=(z=(B=k.touches)==null?void 0:B.item(0))==null?void 0:z.clientX)!=null?j:k.clientX,U=i.value.getBoundingClientRect().left;q=(Y-U)/t.sliderSize*100}if(!(q<0||q>100))return m(q)};return{elFormItem:o,slider:i,firstButton:a,secondButton:s,sliderDisabled:u,minValue:d,maxValue:c,runwayStyle:v,barStyle:h,resetSize:g,setPosition:m,emitChange:S,onSliderWrapperPrevent:k=>{var R,N;((R=l.firstButton.value)!=null&&R.dragging||(N=l.secondButton.value)!=null&&N.dragging)&&k.preventDefault()},onSliderClick:k=>{E(k)&&S()},onSliderDown:async k=>{const R=E(k);R&&(await Yt(),R.value.onButtonDown(k))},onSliderMarkerDown:k=>{if(u.value||t.dragging)return;m(k)&&S()},setFirstValue:b,setSecondValue:w}},KXe=(e,t,n,r)=>({stops:ee(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const a=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:a-1}).map((u,d)=>(d+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:a=>e.vertical?{bottom:`${a}%`}:{left:`${a}%`}}),YXe=e=>ee(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),QXe=(e,t,n,r,o,i)=>{const a=u=>{o(Qn,u),o(ba,u)},s=()=>e.range?![n.value,r.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,l=()=>{var u,d;e.min>e.max&&na("Slider","min should not be greater than max.");const c=e.modelValue;e.range&&Zt(c)?c[1]<e.min?a([e.min,e.min]):c[0]>e.max?a([e.max,e.max]):c[0]<e.min?a([e.min,c[1]]):c[1]>e.max?a([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],s()&&(e.validateEvent&&((u=i?.validate)==null||u.call(i,"change").catch(f=>void 0)),t.oldValue=c.slice())):!e.range&&$n(c)&&!Number.isNaN(c)&&(c<e.min?a(e.min):c>e.max?a(e.max):(t.firstValue=c,s()&&(e.validateEvent&&((d=i?.validate)==null||d.call(i,"change").catch(f=>void 0)),t.oldValue=c)))};l(),St(()=>t.dragging,u=>{u||l()}),St(()=>e.modelValue,(u,d)=>{t.dragging||Zt(u)&&Zt(d)&&u.every((c,f)=>c===d[f])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),St(()=>[e.min,e.max],()=>{l()})},ZXe=(e,t,n)=>{const r=K();return qn(async()=>{e.range?(Zt(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!$n(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Ro(window,"resize",n),await Yt(),n()}),{sliderWrapper:r}},XXe=nt({name:"ElSlider"}),JXe=nt({...XXe,props:LXe,emits:FXe,setup(e,{expose:t,emit:n}){const r=e,o=Vt("slider"),{t:i}=Gr(),a=Wr({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:d,sliderDisabled:c,minValue:f,maxValue:p,runwayStyle:v,barStyle:h,resetSize:g,emitChange:y,onSliderWrapperPrevent:m,onSliderClick:b,onSliderDown:w,onSliderMarkerDown:A,setFirstValue:S,setSecondValue:E}=GXe(r,a,n),{stops:D,getStopStyle:_}=KXe(r,a,f,p),{inputId:M,isLabeledByFormItem:O}=fc(r,{formItemContext:s}),k=ha(),R=ee(()=>r.inputSize||k.value),N=ee(()=>r.ariaLabel||i("el.slider.defaultLabel",{min:r.min,max:r.max})),W=ee(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):N.value),B=ee(()=>r.formatValueText?r.formatValueText(H.value):`${H.value}`),z=ee(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),j=ee(()=>r.formatValueText?r.formatValueText(re.value):`${re.value}`),q=ee(()=>[o.b(),o.m(k.value),o.is("vertical",r.vertical),{[o.m("with-input")]:r.showInput}]),Y=YXe(r);QXe(r,a,f,p,n,s);const U=ee(()=>{const Z=[r.min,r.max,r.step].map(le=>{const ve=`${le}`.split(".")[1];return ve?ve.length:0});return Math.max.apply(null,Z)}),{sliderWrapper:F}=ZXe(r,a,g),{firstValue:H,secondValue:re,sliderSize:X}=Oa(a),te=Z=>{a.dragging=Z};return Ro(F,"touchstart",m,{passive:!1}),Ro(F,"touchmove",m,{passive:!1}),_r(Tbe,{...Oa(r),sliderSize:X,disabled:c,precision:U,emitChange:y,resetSize:g,updateDragging:te}),t({onSliderClick:b}),(Z,le)=>{var ve,Pe;return L(),G("div",{id:Z.range?C(M):void 0,ref_key:"sliderWrapper",ref:F,class:oe(C(q)),role:Z.range?"group":void 0,"aria-label":Z.range&&!C(O)?C(N):void 0,"aria-labelledby":Z.range&&C(O)?(ve=C(s))==null?void 0:ve.labelId:void 0},[x("div",{ref_key:"slider",ref:l,class:oe([C(o).e("runway"),{"show-input":Z.showInput&&!Z.range},C(o).is("disabled",C(c))]),style:rn(C(v)),onMousedown:C(w),onTouchstartPassive:C(w)},[x("div",{class:oe(C(o).e("bar")),style:rn(C(h))},null,6),He(hee,{id:Z.range?void 0:C(M),ref_key:"firstButton",ref:u,"model-value":C(H),vertical:Z.vertical,"tooltip-class":Z.tooltipClass,placement:Z.placement,role:"slider","aria-label":Z.range||!C(O)?C(W):void 0,"aria-labelledby":!Z.range&&C(O)?(Pe=C(s))==null?void 0:Pe.labelId:void 0,"aria-valuemin":Z.min,"aria-valuemax":Z.range?C(re):Z.max,"aria-valuenow":C(H),"aria-valuetext":C(B),"aria-orientation":Z.vertical?"vertical":"horizontal","aria-disabled":C(c),"onUpdate:modelValue":C(S)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Z.range?(L(),yt(hee,{key:0,ref_key:"secondButton",ref:d,"model-value":C(re),vertical:Z.vertical,"tooltip-class":Z.tooltipClass,placement:Z.placement,role:"slider","aria-label":C(z),"aria-valuemin":C(H),"aria-valuemax":Z.max,"aria-valuenow":C(re),"aria-valuetext":C(j),"aria-orientation":Z.vertical?"vertical":"horizontal","aria-disabled":C(c),"onUpdate:modelValue":C(E)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):xe("v-if",!0),Z.showStops?(L(),G("div",{key:1},[(L(!0),G(Rt,null,un(C(D),(Ae,he)=>(L(),G("div",{key:he,class:oe(C(o).e("stop")),style:rn(C(_)(Ae))},null,6))),128))])):xe("v-if",!0),C(Y).length>0?(L(),G(Rt,{key:2},[x("div",null,[(L(!0),G(Rt,null,un(C(Y),(Ae,he)=>(L(),G("div",{key:he,style:rn(C(_)(Ae.position)),class:oe([C(o).e("stop"),C(o).e("marks-stop")])},null,6))),128))]),x("div",{class:oe(C(o).e("marks"))},[(L(!0),G(Rt,null,un(C(Y),(Ae,he)=>(L(),yt(C(qXe),{key:he,mark:Ae.mark,style:rn(C(_)(Ae.position)),onMousedown:en(Ee=>C(A)(Ae.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):xe("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),Z.showInput&&!Z.range?(L(),yt(C(lbe),{key:0,ref:"input","model-value":C(H),class:oe(C(o).e("input")),step:Z.step,disabled:C(c),controls:Z.showInputControls,min:Z.min,max:Z.max,precision:C(U),debounce:Z.debounce,size:C(R),"onUpdate:modelValue":C(S),onChange:C(y)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):xe("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var eJe=on(JXe,[["__file","slider.vue"]]);const tJe=or(eJe),nJe=Jt({prefixCls:{type:String}}),gee=nt({name:"ElSpaceItem",props:nJe,setup(e,{slots:t}){const n=Vt("space"),r=ee(()=>`${e.prefixCls||n.b()}__item`);return()=>jn("div",{class:r.value},ht(t,"default"))}}),vee={small:8,default:12,large:16};function rJe(e){const t=Vt("space"),n=ee(()=>[t.b(),t.m(e.direction),e.class]),r=K(0),o=K(0),i=ee(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},u={rowGap:`${o.value}px`,columnGap:`${r.value}px`};return[s,l,u,e.style]}),a=ee(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return Es(()=>{const{size:s="small",wrap:l,direction:u,fill:d}=e;if(Zt(s)){const[c=0,f=0]=s;r.value=c,o.value=f}else{let c;$n(s)?c=s:c=vee[s||"small"]||vee.small,(l||d)&&u==="horizontal"?r.value=o.value=c:u==="horizontal"?(r.value=c,o.value=0):(o.value=c,r.value=0)}}),{classes:n,containerStyle:i,itemStyle:a}}const oJe=Jt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ct([String,Object,Array]),default:""},style:{type:ct([String,Array,Object]),default:""},alignment:{type:ct(String),default:"center"},prefixCls:{type:String},spacer:{type:ct([Object,String,Number,Array]),default:null,validator:e=>Vo(e)||$n(e)||In(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ef,validator:e=>$n(e)||Zt(e)&&e.length===2&&e.every($n)}}),iJe=nt({name:"ElSpace",props:oJe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=rJe(e);function i(a,s="",l=[]){const{prefixCls:u}=e;return a.forEach((d,c)=>{kL(d)?Zt(d.children)&&d.children.forEach((f,p)=>{kL(f)&&Zt(f.children)?i(f.children,`${s+p}-`,l):Vo(f)&&f?.type===da?l.push(f):l.push(He(gee,{style:o.value,prefixCls:u,key:`nested-${s+p}`},{default:()=>[f]},Nu.PROPS|Nu.STYLE,["style","prefixCls"]))}):mje(d)&&l.push(He(gee,{style:o.value,prefixCls:u,key:`LoopKey${s+c}`},{default:()=>[d]},Nu.PROPS|Nu.STYLE,["style","prefixCls"]))}),l}return()=>{var a;const{spacer:s,direction:l}=e,u=ht(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(Zt(u.children)){let d=i(u.children);if(s){const c=d.length-1;d=d.reduce((f,p,v)=>{const h=[...f,p];return v!==c&&h.push(He("span",{style:[o.value,l==="vertical"?"width: 100%":null],key:v},[Vo(s)?s:bn(s,Nu.TEXT)],Nu.STYLE)),h},[])}return He("div",{class:n.value,style:r.value},d,Nu.STYLE|Nu.CLASS)}return u.children}}}),aJe=or(iJe),sJe=Jt({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ct([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ct([String,Object,Array])}}),lJe=nt({name:"ElStatistic"}),uJe=nt({...lJe,props:sJe,setup(e,{expose:t}){const n=e,r=Vt("statistic"),o=ee(()=>{const{value:i,formatter:a,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(Rn(a))return a(i);if(!$n(i)||Number.isNaN(i))return i;let[d,c=""]=String(i).split(".");return c=c.padEnd(s,"0").slice(0,s>0?s:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,u),[d,c].join(c?l:"")});return t({displayValue:o}),(i,a)=>(L(),G("div",{class:oe(C(r).b())},[i.$slots.title||i.title?(L(),G("div",{key:0,class:oe(C(r).e("head"))},[ht(i.$slots,"title",{},()=>[bn(je(i.title),1)])],2)):xe("v-if",!0),x("div",{class:oe(C(r).e("content"))},[i.$slots.prefix||i.prefix?(L(),G("div",{key:0,class:oe(C(r).e("prefix"))},[ht(i.$slots,"prefix",{},()=>[x("span",null,je(i.prefix),1)])],2)):xe("v-if",!0),x("span",{class:oe(C(r).e("number")),style:rn(i.valueStyle)},je(C(o)),7),i.$slots.suffix||i.suffix?(L(),G("div",{key:1,class:oe(C(r).e("suffix"))},[ht(i.$slots,"suffix",{},()=>[x("span",null,je(i.suffix),1)])],2)):xe("v-if",!0)],2)],2))}});var cJe=on(uJe,[["__file","statistic.vue"]]);const _be=or(cJe),dJe=Jt({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ct([Number,Object]),default:0},valueStyle:{type:ct([String,Object,Array])}}),fJe={finish:()=>!0,[Pr]:e=>$n(e)},pJe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],mee=e=>$n(e)?new Date(e).getTime():e.valueOf(),yee=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return pJe.reduce((i,[a,s])=>{const l=new RegExp(`${a}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/s);return n-=u*s,i.replace(l,d=>String(u).padStart(d.length,"0"))}return i},t).replace(r,"$1")},hJe=nt({name:"ElCountdown"}),gJe=nt({...hJe,props:dJe,emits:fJe,setup(e,{expose:t,emit:n}){const r=e;let o;const i=K(0),a=ee(()=>yee(i.value,r.format)),s=d=>yee(d,r.format),l=()=>{o&&(Pv(o),o=void 0)},u=()=>{const d=mee(r.value),c=()=>{let f=d-Date.now();n(Pr,f),f<=0?(f=0,l(),n("finish")):o=s0(c),i.value=f};o=s0(c)};return qn(()=>{i.value=mee(r.value)-Date.now(),St(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0})}),Jr(()=>{l()}),t({displayValue:a}),(d,c)=>(L(),yt(C(_be),{value:i.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:s},Hl({_:2},[un(d.$slots,(f,p)=>({name:p,fn:rt(()=>[ht(d.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var vJe=on(gJe,[["__file","countdown.vue"]]);const mJe=or(vJe),yJe=Jt({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),bJe={[Pr]:(e,t)=>[e,t].every($n)},Dbe="ElSteps",wJe=nt({name:"ElSteps"}),AJe=nt({...wJe,props:yJe,emits:bJe,setup(e,{emit:t}){const n=e,r=Vt("steps"),{children:o,addChild:i,removeChild:a,ChildrenSorter:s}=cD(br(),"ElStep");return St(o,()=>{o.value.forEach((l,u)=>{l.setIndex(u)})}),_r(Dbe,{props:n,steps:o,addStep:i,removeStep:a}),St(()=>n.active,(l,u)=>{t(Pr,l,u)}),(l,u)=>(L(),G("div",{class:oe([C(r).b(),C(r).m(l.simple?"simple":l.direction)])},[ht(l.$slots,"default"),He(C(s))],2))}});var CJe=on(AJe,[["__file","steps.vue"]]);const xJe=Jt({title:{type:String,default:""},icon:{type:wo},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),SJe=nt({name:"ElStep"}),EJe=nt({...SJe,props:xJe,setup(e){const t=e,n=Vt("step"),r=K(-1),o=K({}),i=K(""),a=dn(Dbe),s=br();qn(()=>{St([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([S])=>{w(S)},{immediate:!0})});const l=ee(()=>t.status||i.value),u=ee(()=>{const S=a.steps.value[r.value-1];return S?S.internalStatus.value:"wait"}),d=ee(()=>a.props.alignCenter),c=ee(()=>a.props.direction==="vertical"),f=ee(()=>a.props.simple),p=ee(()=>a.steps.value.length),v=ee(()=>{var S;return((S=a.steps.value[p.value-1])==null?void 0:S.uid)===s.uid}),h=ee(()=>f.value?"":a.props.space),g=ee(()=>[n.b(),n.is(f.value?"simple":a.props.direction),n.is("flex",v.value&&!h.value&&!d.value),n.is("center",d.value&&!c.value&&!f.value)]),y=ee(()=>{const S={flexBasis:$n(h.value)?`${h.value}px`:h.value?h.value:`${100/(p.value-(d.value?0:1))}%`};return c.value||v.value&&(S.maxWidth=`${100/p.value}%`),S}),m=S=>{r.value=S},b=S=>{const E=S==="wait",D={transitionDelay:`${E?"-":""}${150*r.value}ms`},_=S===a.props.processStatus||E?0:100;D.borderWidth=_&&!f.value?"1px":0,D[a.props.direction==="vertical"?"height":"width"]=`${_}%`,o.value=D},w=S=>{S>r.value?i.value=a.props.finishStatus:S===r.value&&u.value!=="error"?i.value=a.props.processStatus:i.value="wait";const E=a.steps.value[r.value-1];E&&E.calcProgress(i.value)},A={uid:s.uid,getVnode:()=>s.vnode,currentStatus:l,internalStatus:i,setIndex:m,calcProgress:b};return a.addStep(A),Jr(()=>{a.removeStep(A)}),(S,E)=>(L(),G("div",{style:rn(C(y)),class:oe(C(g))},[xe(" icon & line "),x("div",{class:oe([C(n).e("head"),C(n).is(C(l))])},[C(f)?xe("v-if",!0):(L(),G("div",{key:0,class:oe(C(n).e("line"))},[x("i",{class:oe(C(n).e("line-inner")),style:rn(o.value)},null,6)],2)),x("div",{class:oe([C(n).e("icon"),C(n).is(S.icon||S.$slots.icon?"icon":"text")])},[ht(S.$slots,"icon",{},()=>[S.icon?(L(),yt(C(Dn),{key:0,class:oe(C(n).e("icon-inner"))},{default:rt(()=>[(L(),yt(mr(S.icon)))]),_:1},8,["class"])):C(l)==="success"?(L(),yt(C(Dn),{key:1,class:oe([C(n).e("icon-inner"),C(n).is("status")])},{default:rt(()=>[He(C(B5))]),_:1},8,["class"])):C(l)==="error"?(L(),yt(C(Dn),{key:2,class:oe([C(n).e("icon-inner"),C(n).is("status")])},{default:rt(()=>[He(C(vu))]),_:1},8,["class"])):C(f)?xe("v-if",!0):(L(),G("div",{key:3,class:oe(C(n).e("icon-inner"))},je(r.value+1),3))])],2)],2),xe(" title & description "),x("div",{class:oe(C(n).e("main"))},[x("div",{class:oe([C(n).e("title"),C(n).is(C(l))])},[ht(S.$slots,"title",{},()=>[bn(je(S.title),1)])],2),C(f)?(L(),G("div",{key:0,class:oe(C(n).e("arrow"))},null,2)):(L(),G("div",{key:1,class:oe([C(n).e("description"),C(n).is(C(l))])},[ht(S.$slots,"description",{},()=>[bn(je(S.description),1)])],2))],2)],6))}});var Ibe=on(EJe,[["__file","item.vue"]]);const kJe=or(CJe,{Step:Ibe}),TJe=vi(Ibe),Obe=e=>["",...ef].includes(e),_Je=Jt({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:Obe},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:wo},activeActionIcon:{type:wo},activeIcon:{type:wo},inactiveIcon:{type:wo},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:ct(Function)},id:String,tabindex:{type:[String,Number]},..._s(["ariaLabel"])}),DJe={[Qn]:e=>Eo(e)||In(e)||$n(e),[Pr]:e=>Eo(e)||In(e)||$n(e),[ba]:e=>Eo(e)||In(e)||$n(e)},Mbe="ElSwitch",IJe=nt({name:Mbe}),OJe=nt({...IJe,props:_Je,emits:DJe,setup(e,{expose:t,emit:n}){const r=e,{formItem:o}=Ds(),i=ha(),a=Vt("switch"),{inputId:s}=fc(r,{formItemContext:o}),l=Va(ee(()=>r.loading)),u=K(r.modelValue!==!1),d=K(),c=K(),f=ee(()=>[a.b(),a.m(i.value),a.is("disabled",l.value),a.is("checked",y.value)]),p=ee(()=>[a.e("label"),a.em("label","left"),a.is("active",!y.value)]),v=ee(()=>[a.e("label"),a.em("label","right"),a.is("active",y.value)]),h=ee(()=>({width:_i(r.width)}));St(()=>r.modelValue,()=>{u.value=!0});const g=ee(()=>u.value?r.modelValue:!1),y=ee(()=>g.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(g.value)||(n(Qn,r.inactiveValue),n(Pr,r.inactiveValue),n(ba,r.inactiveValue)),St(y,A=>{var S;d.value.checked=A,r.validateEvent&&((S=o?.validate)==null||S.call(o,"change").catch(E=>void 0))});const m=()=>{const A=y.value?r.inactiveValue:r.activeValue;n(Qn,A),n(Pr,A),n(ba,A),Yt(()=>{d.value.checked=y.value})},b=()=>{if(l.value)return;const{beforeChange:A}=r;if(!A){m();return}const S=A();[kv(S),Eo(S)].includes(!0)||na(Mbe,"beforeChange must return type `Promise<boolean>` or `boolean`"),kv(S)?S.then(D=>{D&&m()}).catch(D=>{}):S&&m()},w=()=>{var A,S;(S=(A=d.value)==null?void 0:A.focus)==null||S.call(A)};return qn(()=>{d.value.checked=y.value}),t({focus:w,checked:y}),(A,S)=>(L(),G("div",{class:oe(C(f)),onClick:en(b,["prevent"])},[x("input",{id:C(s),ref_key:"input",ref:d,class:oe(C(a).e("input")),type:"checkbox",role:"switch","aria-checked":C(y),"aria-disabled":C(l),"aria-label":A.ariaLabel,name:A.name,"true-value":A.activeValue,"false-value":A.inactiveValue,disabled:C(l),tabindex:A.tabindex,onChange:m,onKeydown:$r(b,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!A.inlinePrompt&&(A.inactiveIcon||A.inactiveText)?(L(),G("span",{key:0,class:oe(C(p))},[A.inactiveIcon?(L(),yt(C(Dn),{key:0},{default:rt(()=>[(L(),yt(mr(A.inactiveIcon)))]),_:1})):xe("v-if",!0),!A.inactiveIcon&&A.inactiveText?(L(),G("span",{key:1,"aria-hidden":C(y)},je(A.inactiveText),9,["aria-hidden"])):xe("v-if",!0)],2)):xe("v-if",!0),x("span",{ref_key:"core",ref:c,class:oe(C(a).e("core")),style:rn(C(h))},[A.inlinePrompt?(L(),G("div",{key:0,class:oe(C(a).e("inner"))},[A.activeIcon||A.inactiveIcon?(L(),yt(C(Dn),{key:0,class:oe(C(a).is("icon"))},{default:rt(()=>[(L(),yt(mr(C(y)?A.activeIcon:A.inactiveIcon)))]),_:1},8,["class"])):A.activeText||A.inactiveText?(L(),G("span",{key:1,class:oe(C(a).is("text")),"aria-hidden":!C(y)},je(C(y)?A.activeText:A.inactiveText),11,["aria-hidden"])):xe("v-if",!0)],2)):xe("v-if",!0),x("div",{class:oe(C(a).e("action"))},[A.loading?(L(),yt(C(Dn),{key:0,class:oe(C(a).is("loading"))},{default:rt(()=>[He(C(jc))]),_:1},8,["class"])):C(y)?ht(A.$slots,"active-action",{key:1},()=>[A.activeActionIcon?(L(),yt(C(Dn),{key:0},{default:rt(()=>[(L(),yt(mr(A.activeActionIcon)))]),_:1})):xe("v-if",!0)]):C(y)?xe("v-if",!0):ht(A.$slots,"inactive-action",{key:2},()=>[A.inactiveActionIcon?(L(),yt(C(Dn),{key:0},{default:rt(()=>[(L(),yt(mr(A.inactiveActionIcon)))]),_:1})):xe("v-if",!0)])],2)],6),!A.inlinePrompt&&(A.activeIcon||A.activeText)?(L(),G("span",{key:1,class:oe(C(v))},[A.activeIcon?(L(),yt(C(Dn),{key:0},{default:rt(()=>[(L(),yt(mr(A.activeIcon)))]),_:1})):xe("v-if",!0),!A.activeIcon&&A.activeText?(L(),G("span",{key:1,"aria-hidden":!C(y)},je(A.activeText),9,["aria-hidden"])):xe("v-if",!0)],2)):xe("v-if",!0)],10,["onClick"]))}});var MJe=on(OJe,[["__file","switch.vue"]]);const PJe=or(MJe),_I=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},NJe=function(e,t,n,r,o){if(!t&&!r&&(!o||Zt(o)&&!o.length))return e;In(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return o?Mme(Ya(o),u=>In(u)?Xi(s,u):u(s,l,e)):(t!=="$key"&&dr(s)&&"$value"in s&&(s=s.$value),[dr(s)?t?Xi(s,t):null:s])},a=function(s,l){var u,d,c,f,p,v;if(r)return r(s.value,l.value);for(let h=0,g=(d=(u=s.key)==null?void 0:u.length)!=null?d:0;h<g;h++){if(((c=s.key)==null?void 0:c[h])<((f=l.key)==null?void 0:f[h]))return-1;if(((p=s.key)==null?void 0:p[h])>((v=l.key)==null?void 0:v[h]))return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:i?i(s,l):null})).sort((s,l)=>{let u=a(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},Pbe=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},RJe=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const o=e.columns[r];if(o.columnKey===t){n=o;break}}return n||na("ElTable",`No column matching with column-key: ${t}`),n},bee=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?Pbe(e,r[0]):null},Cs=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(In(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const o of n)r=r[o];return`${r}`}else if(Rn(t))return t.call(null,e);return""},ay=function(e,t,n=!1,r="children"){const o=e||[],i={};return o.forEach((a,s)=>{if(i[Cs(a,t)]={row:a,index:s},n){const l=a[r];Zt(l)&&Object.assign(i,ay(l,t,!0,r))}}),i};function BJe(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(no(t,r)){const o=t[r];Vr(o)||(n[r]=o)}return n}function xW(e){return e===""||Vr(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Nbe(e){return e===""||Vr(e)||(e=xW(e),Number.isNaN(e)&&(e=80)),e}function LJe(e){return $n(e)?e:In(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function FJe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function BE(e,t,n,r,o,i,a){let s=i??0,l=!1;const d=(()=>{if(!a)return e.indexOf(t);const h=Cs(t,a);return e.findIndex(g=>Cs(g,a)===h)})(),c=d!==-1,f=o?.call(null,t,s),p=h=>{h==="add"?e.push(t):e.splice(d,1),l=!0},v=h=>{let g=0;const y=r?.children&&h[r.children];return y&&Zt(y)&&(g+=y.length,y.forEach(m=>{g+=v(m)})),g};return(!o||f)&&(Eo(n)?n&&!c?p("add"):!n&&c&&p("remove"):p(c?"remove":"add")),!r?.checkStrictly&&r?.children&&Zt(t[r.children])&&t[r.children].forEach(h=>{const g=BE(e,h,n??!c,r,o,s+1,a);s+=v(h)+1,g&&(l=g)}),l}function UJe(e,t,n="children",r="hasChildren",o=!1){const i=s=>!(Zt(s)&&s.length);function a(s,l,u){t(s,l,u),l.forEach(d=>{if(d[r]&&o){t(d,null,u+1);return}const c=d[n];i(c)||a(d,c,u+1)})}e.forEach(s=>{if(s[r]&&o){t(s,null,0);return}const l=s[n];i(l)||a(s,l,0)})}const zJe=(e,t,n,r)=>{const o={strategy:"fixed",...e.popperOptions},i=Rn(r?.tooltipFormatter)?r.tooltipFormatter({row:n,column:r,cellValue:t3(n,r.property).value}):void 0;return Vo(i)?{slotContent:i,content:null,...e,popperOptions:o}:{slotContent:null,content:i??t,...e,popperOptions:o}};let Ns=null;function $Je(e,t,n,r,o,i){var a;const s=zJe(e,t,n,r),l={...s,slotContent:void 0};if(Ns?.trigger===o){const v=(a=Ns.vm)==null?void 0:a.component;Pme(v?.props,l),v&&s.slotContent&&(v.slots.content=()=>[s.slotContent]);return}Ns?.();const u=i?.refs.tableWrapper,d=u?.dataset.prefix,c=He(hs,{virtualTriggering:!0,virtualRef:o,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...l},s.slotContent?{content:()=>s.slotContent}:void 0);c.appContext={...i.appContext,...i};const f=document.createElement("div");i0(c,f),c.component.exposed.onOpen();const p=u?.querySelector(`.${d}-scrollbar__wrap`);Ns=()=>{var v,h;(h=(v=c.component)==null?void 0:v.exposed)!=null&&h.onClose&&c.component.exposed.onClose(),i0(null,f);const g=Ns;p?.removeEventListener("scroll",g),g.trigger=void 0,g.vm=void 0,Ns=null},Ns.trigger=o??void 0,Ns.vm=c,p?.addEventListener("scroll",Ns)}function Rbe(e){return e.children?Mme(e.children,Rbe):[e]}function wee(e,t){return e+t.colSpan}const Bbe=(e,t,n,r)=>{let o=0,i=e;const a=n.states.columns.value;if(r){const l=Rbe(r[e]);o=a.slice(0,a.indexOf(l[0])).reduce(wee,0),i=o+l.reduce(wee,0)-1}else o=e;let s;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":o>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":o>=a.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:i}:{}},SW=(e,t,n,r,o,i=0)=>{const a=[],{direction:s,start:l,after:u}=Bbe(t,n,r,o);if(s){const d=s==="left";a.push(`${e}-fixed-column--${s}`),d&&u+i===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!d&&l-i===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function Aee(e,t){return e+(P5(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const EW=(e,t,n,r)=>{const{direction:o,start:i=0,after:a=0}=Bbe(e,t,n,r);if(!o)return;const s={},l=o==="left",u=n.states.columns.value;return l?s.left=u.slice(0,i).reduce(Aee,0):s.right=u.slice(a+1).reverse().reduce(Aee,0),s},Hy=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function jJe(e){const t=br(),n=K(!1),r=K([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const d=ay(r.value,u);r.value=l.reduce((c,f)=>{const p=Cs(f,u);return d[p]&&c.push(f),c},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{BE(r.value,l,u,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,c=ay(u,d);r.value=l.reduce((f,p)=>{const v=c[p];return v&&f.push(v.row),f},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!ay(r.value,u)[Cs(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function HJe(e){const t=br(),n=K(null),r=K(null),o=u=>{t.store.assertRowKey(),n.value=u,a(u)},i=()=>{n.value=null},a=u=>{var d;const{data:c,rowKey:f}=e;let p=null;f.value&&(p=(d=(C(c)||[]).find(v=>Cs(v,f.value)===u))!=null?d:null),r.value=p??null,t.emit("current-change",r.value,null)};return{setCurrentRowKey:o,restoreCurrentRowKey:i,setCurrentRowByKey:a,updateCurrentRow:u=>{const d=r.value;if(u&&u!==d){r.value=u,t.emit("current-change",r.value,d);return}!u&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],c=r.value;if(c&&!d.includes(c)){if(u){const f=Cs(c,u);a(f)}else r.value=null;P5(r.value)&&t.emit("current-change",null,c)}else n.value&&(a(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function WJe(e){const t=K([]),n=K({}),r=K(16),o=K(!1),i=K({}),a=K("hasChildren"),s=K("children"),l=K(!1),u=br(),d=ee(()=>{if(!e.rowKey.value)return{};const w=e.data.value||[];return f(w)}),c=ee(()=>{const w=e.rowKey.value,A=Object.keys(i.value),S={};return A.length&&A.forEach(E=>{if(i.value[E].length){const D={children:[]};i.value[E].forEach(_=>{const M=Cs(_,w);D.children.push(M),_[a.value]&&!S[M]&&(S[M]={children:[]})}),S[E]=D}}),S}),f=w=>{const A=e.rowKey.value,S={};return UJe(w,(E,D,_)=>{const M=Cs(E,A);Zt(D)?S[M]={children:D.map(O=>Cs(O,A)),level:_}:o.value&&(S[M]={children:[],lazy:!0,level:_})},s.value,a.value,o.value),S},p=(w=!1,A)=>{var S,E;A||(A=(S=u.store)==null?void 0:S.states.defaultExpandAll.value);const D=d.value,_=c.value,M=Object.keys(D),O={};if(M.length){const k=C(n),R=[],N=(B,z)=>{if(w)return t.value?A||t.value.includes(z):!!(A||B?.expanded);{const j=A||t.value&&t.value.includes(z);return!!(B?.expanded||j)}};M.forEach(B=>{const z=k[B],j={...D[B]};if(j.expanded=N(z,B),j.lazy){const{loaded:q=!1,loading:Y=!1}=z||{};j.loaded=!!q,j.loading=!!Y,R.push(B)}O[B]=j});const W=Object.keys(_);o.value&&W.length&&R.length&&W.forEach(B=>{var z;const j=k[B],q=_[B].children;if(R.includes(B)){if(((z=O[B].children)==null?void 0:z.length)!==0)throw new Error("[ElTable]children must be an empty array.");O[B].children=q}else{const{loaded:Y=!1,loading:U=!1}=j||{};O[B]={lazy:!0,loaded:!!Y,loading:!!U,expanded:N(j,B),children:q,level:void 0}}})}n.value=O,(E=u.store)==null||E.updateTableScrollY()};St(()=>t.value,()=>{p(!0)}),St(()=>d.value,()=>{p()}),St(()=>c.value,()=>{p()});const v=w=>{t.value=w,p()},h=w=>o.value&&w&&"loaded"in w&&!w.loaded,g=(w,A)=>{u.store.assertRowKey();const S=e.rowKey.value,E=Cs(w,S),D=E&&n.value[E];if(E&&D&&"expanded"in D){const _=D.expanded;A=Vr(A)?!D.expanded:A,n.value[E].expanded=A,_!==A&&u.emit("expand-change",w,A),h(D)&&m(w,E,D),u.store.updateTableScrollY()}},y=w=>{u.store.assertRowKey();const A=e.rowKey.value,S=Cs(w,A),E=n.value[S];h(E)?m(w,S,E):g(w,void 0)},m=(w,A,S)=>{const{load:E}=u.props;E&&!n.value[A].loaded&&(n.value[A].loading=!0,E(w,S,D=>{if(!Zt(D))throw new TypeError("[ElTable] data must be an array");n.value[A].loading=!1,n.value[A].loaded=!0,n.value[A].expanded=!0,D.length&&(i.value[A]=D),u.emit("expand-change",w,!0)}))};return{loadData:m,loadOrToggle:y,toggleTreeExpansion:g,updateTreeExpandKeys:v,updateTreeData:p,updateKeyChildren:(w,A)=>{const{lazy:S,rowKey:E}=u.props;if(S){if(!E)throw new Error("[Table] rowKey is required in updateKeyChild");i.value[w]&&(i.value[w]=A)}},normalize:f,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:a,childrenColumnName:s,checkStrictly:l}}}const VJe=(e,t)=>{const n=t.sortingColumn;return!n||In(n.sortable)?e:NJe(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},FS=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,FS(n.children)):t.push(n)}),t};function qJe(){var e;const t=br(),{size:n}=Oa((e=t.proxy)==null?void 0:e.$props),r=K(null),o=K([]),i=K([]),a=K(!1),s=K([]),l=K([]),u=K([]),d=K([]),c=K([]),f=K([]),p=K([]),v=K([]),h=[],g=K(0),y=K(0),m=K(0),b=K(!1),w=K([]),A=K(!1),S=K(!1),E=K(null),D=K({}),_=K(null),M=K(null),O=K(null),k=K(null),R=K(null),N=ee(()=>r.value?ay(w.value,r.value):void 0);St(o,()=>{var Ht;t.state&&(j(!1),t.props.tableLayout==="auto"&&((Ht=t.refs.tableHeaderRef)==null||Ht.updateFixedColumnStyle()))},{deep:!0});const W=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},B=Ht=>{var pt;(pt=Ht.children)==null||pt.forEach(Dt=>{Dt.fixed=Ht.fixed,B(Dt)})},z=()=>{s.value.forEach(tt=>{B(tt)}),d.value=s.value.filter(tt=>[!0,"left"].includes(tt.fixed));const Ht=s.value.find(tt=>tt.type==="selection");let pt;Ht&&Ht.fixed!=="right"&&!d.value.includes(Ht)&&s.value.indexOf(Ht)===0&&d.value.length&&(d.value.unshift(Ht),pt=!0),c.value=s.value.filter(tt=>tt.fixed==="right");const Dt=s.value.filter(tt=>(pt?tt.type!=="selection":!0)&&!tt.fixed);l.value=Array.from(d.value).concat(Dt).concat(c.value);const dt=FS(Dt),it=FS(d.value),de=FS(c.value);g.value=dt.length,y.value=it.length,m.value=de.length,u.value=Array.from(it).concat(dt).concat(de),a.value=d.value.length>0||c.value.length>0},j=(Ht,pt=!1)=>{Ht&&z(),pt?t.state.doLayout():t.state.debouncedUpdateLayout()},q=Ht=>N.value?!!N.value[Cs(Ht,r.value)]:w.value.includes(Ht),Y=()=>{b.value=!1;const Ht=w.value;w.value=[],Ht.length&&t.emit("selection-change",[])},U=()=>{var Ht,pt;let Dt;if(r.value){Dt=[];const dt=(pt=(Ht=t?.store)==null?void 0:Ht.states)==null?void 0:pt.childrenColumnName.value,it=ay(o.value,r.value,!0,dt);for(const de in N.value)no(N.value,de)&&!it[de]&&Dt.push(N.value[de].row)}else Dt=w.value.filter(dt=>!o.value.includes(dt));if(Dt.length){const dt=w.value.filter(it=>!Dt.includes(it));w.value=dt,t.emit("selection-change",dt.slice())}},F=()=>(w.value||[]).slice(),H=(Ht,pt,Dt=!0,dt=!1)=>{var it,de,tt,ft;const Mt={children:(de=(it=t?.store)==null?void 0:it.states)==null?void 0:de.childrenColumnName.value,checkStrictly:(ft=(tt=t?.store)==null?void 0:tt.states)==null?void 0:ft.checkStrictly.value};if(BE(w.value,Ht,pt,Mt,dt?void 0:E.value,o.value.indexOf(Ht),r.value)){const Nn=(w.value||[]).slice();Dt&&t.emit("select",Nn,Ht),t.emit("selection-change",Nn)}},re=()=>{var Ht,pt;const Dt=S.value?!b.value:!(b.value||w.value.length);b.value=Dt;let dt=!1,it=0;const de=(pt=(Ht=t?.store)==null?void 0:Ht.states)==null?void 0:pt.rowKey.value,{childrenColumnName:tt}=t.store.states,ft={children:tt.value,checkStrictly:!1};o.value.forEach((Mt,Tn)=>{const Nn=Tn+it;BE(w.value,Mt,Dt,ft,E.value,Nn,de)&&(dt=!0),it+=te(Cs(Mt,de))}),dt&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",(w.value||[]).slice())},X=()=>{var Ht;if(((Ht=o.value)==null?void 0:Ht.length)===0){b.value=!1;return}const{childrenColumnName:pt}=t.store.states;let Dt=0,dt=0;const it=tt=>{var ft;for(const Mt of tt){const Tn=E.value&&E.value.call(null,Mt,Dt);if(q(Mt))dt++;else if(!E.value||Tn)return!1;if(Dt++,(ft=Mt[pt.value])!=null&&ft.length&&!it(Mt[pt.value]))return!1}return!0},de=it(o.value||[]);b.value=dt===0?!1:de},te=Ht=>{var pt;if(!t||!t.store)return 0;const{treeData:Dt}=t.store.states;let dt=0;const it=(pt=Dt.value[Ht])==null?void 0:pt.children;return it&&(dt+=it.length,it.forEach(de=>{dt+=te(de)})),dt},Z=(Ht,pt)=>{const Dt={};return Ya(Ht).forEach(dt=>{D.value[dt.id]=pt,Dt[dt.columnKey||dt.id]=pt}),Dt},le=(Ht,pt,Dt)=>{M.value&&M.value!==Ht&&(M.value.order=null),M.value=Ht,O.value=pt,k.value=Dt},ve=()=>{let Ht=C(i);Object.keys(D.value).forEach(pt=>{const Dt=D.value[pt];if(!Dt||Dt.length===0)return;const dt=Pbe({columns:u.value},pt);dt&&dt.filterMethod&&(Ht=Ht.filter(it=>Dt.some(de=>dt.filterMethod.call(null,de,it,dt))))}),_.value=Ht},Pe=()=>{var Ht;o.value=VJe((Ht=_.value)!=null?Ht:[],{sortingColumn:M.value,sortProp:O.value,sortOrder:k.value})},Ae=(Ht=void 0)=>{Ht?.filter||ve(),Pe()},he=Ht=>{const{tableHeaderRef:pt}=t.refs;if(!pt)return;const Dt=Object.assign({},pt.filterPanels),dt=Object.keys(Dt);if(dt.length)if(In(Ht)&&(Ht=[Ht]),Zt(Ht)){const it=Ht.map(de=>RJe({columns:u.value},de));dt.forEach(de=>{const tt=it.find(ft=>ft.id===de);tt&&(tt.filteredValue=[])}),t.store.commit("filterChange",{column:it,values:[],silent:!0,multi:!0})}else dt.forEach(it=>{const de=u.value.find(tt=>tt.id===it);de&&(de.filteredValue=[])}),D.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Ee=()=>{M.value&&(le(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Q,toggleRowExpansion:me,updateExpandRows:De,states:pe,isRowExpanded:ie}=jJe({data:o,rowKey:r}),{updateTreeExpandKeys:ue,toggleTreeExpansion:Be,updateTreeData:Me,updateKeyChildren:Fe,loadOrToggle:ze,states:Ne}=WJe({data:o,rowKey:r}),{updateCurrentRowData:Re,updateCurrentRow:gt,setCurrentRowKey:Bt,states:Lt}=HJe({data:o,rowKey:r});return{assertRowKey:W,updateColumns:z,scheduleLayout:j,isSelected:q,clearSelection:Y,cleanSelection:U,getSelectionRows:F,toggleRowSelection:H,_toggleAllSelection:re,toggleAllSelection:null,updateAllSelected:X,updateFilters:Z,updateCurrentRow:gt,updateSort:le,execFilter:ve,execSort:Pe,execQuery:Ae,clearFilter:he,clearSort:Ee,toggleRowExpansion:me,setExpandRowKeysAdapter:Ht=>{Q(Ht),ue(Ht)},setCurrentRowKey:Bt,toggleRowExpansionAdapter:(Ht,pt)=>{u.value.some(({type:dt})=>dt==="expand")?me(Ht,pt):Be(Ht,pt)},isRowExpanded:ie,updateExpandRows:De,updateCurrentRowData:Re,loadOrToggle:ze,updateTreeData:Me,updateKeyChildren:Fe,states:{tableSize:n,rowKey:r,data:o,_data:i,isComplex:a,_columns:s,originColumns:l,columns:u,fixedColumns:d,rightFixedColumns:c,leafColumns:f,fixedLeafColumns:p,rightFixedLeafColumns:v,updateOrderFns:h,leafColumnsLength:g,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:m,isAllSelected:b,selection:w,reserveSelection:A,selectOnIndeterminate:S,selectable:E,filters:D,filteredData:_,sortingColumn:M,sortProp:O,sortOrder:k,hoverRow:R,...pe,...Ne,...Lt}}}function KL(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=KL(n.children,t)),n)})}function YL(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&YL(t.children)}),e.sort((t,n)=>t.no-n.no)}function GJe(){const e=br(),t=qJe();return{ns:Vt("table"),...t,mutations:{setData(a,s){const l=C(a._data)!==s;a.data.value=s,a._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),C(a.reserveSelection)?e.store.assertRowKey():l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,s,l,u){var d;const c=C(a._columns);let f=[];l?(l&&!l.children&&(l.children=[]),(d=l.children)==null||d.push(s),f=KL(c,l)):(c.push(s),f=c),YL(f),a._columns.value=f,a.updateOrderFns.push(u),s.type==="selection"&&(a.selectable.value=s.selectable,a.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(YL(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,s,l,u){var d;const c=C(a._columns)||[];if(l)(d=l.children)==null||d.splice(l.children.findIndex(p=>p.id===s.id),1),Yt(()=>{var p;((p=l.children)==null?void 0:p.length)===0&&delete l.children}),a._columns.value=KL(c,l);else{const p=c.indexOf(s);p>-1&&(c.splice(p,1),a._columns.value=c)}const f=a.updateOrderFns.indexOf(u);f>-1&&a.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,s){const{prop:l,order:u,init:d}=s;if(l){const c=C(a.columns).find(f=>f.property===l);c&&(c.order=u,e.store.updateSort(c,l,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(a,s){const{sortingColumn:l,sortProp:u,sortOrder:d}=a,c=C(l),f=C(u),p=C(d);P5(p)&&(a.sortingColumn.value=null,a.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:c,prop:f,order:p}),e.store.updateTableScrollY()},filterChange(a,s){const{column:l,values:u,silent:d}=s,c=e.store.updateFilters(l,u);e.store.execQuery(),d||e.emit("filter-change",c),e.store.updateTableScrollY()},toggleAllSelection(){var a,s;(s=(a=e.store).toggleAllSelection)==null||s.call(a)},rowSelectedChanged(a,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(a,s){a.hoverRow.value=s},setCurrentRow(a,s){e.store.updateCurrentRow(s)}},commit:function(a,...s){const l=e.store.mutations;if(l[a])l[a].apply(e,[e.store.states,...s]);else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){Yt(()=>e.layout.updateScrollY.apply(e.layout))}}}const kW={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function KJe(e,t){if(!e)throw new Error("Table is required.");const n=GJe();return n.toggleAllSelection=Wl(n._toggleAllSelection,10),Object.keys(kW).forEach(r=>{Lbe(Fbe(t,r),r,n)}),YJe(n,t),n}function YJe(e,t){Object.keys(kW).forEach(n=>{St(()=>Fbe(t,n),r=>{Lbe(r,n,e)})})}function Lbe(e,t,n){let r=e,o=kW[t];dr(o)&&(r=r||o.default,o=o.key),n.states[o].value=r}function Fbe(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(o=>{r=r[o]}),r}else return e[t]}class QJe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=K(null),this.scrollX=K(!1),this.scrollY=K(!1),this.bodyWidth=K(null),this.fixedWidth=K(null),this.rightFixedWidth=K(null),this.gutterWidth=0;for(const n in t)no(t,n)&&(Uo(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(P5(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&n?.wrapRef){let r=!0;const o=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,o!==r}return!1}setHeight(t,n="height"){if(!Xr)return;const r=this.table.vnode.el;if(t=LJe(t),this.height.value=Number(t),!r&&(t||t===0)){Yt(()=>this.setHeight(t,n));return}r&&$n(t)?(r.style[n]=`${t}px`,this.updateElsHeight()):r&&In(t)&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!Xr)return;const n=this.fit,r=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let o=0;const i=this.getFlattenColumns(),a=i.filter(u=>!$n(u.width));if(i.forEach(u=>{$n(u.width)&&u.realWidth&&(u.realWidth=null)}),a.length>0&&n){if(i.forEach(u=>{o+=Number(u.width||u.minWidth||80)}),o<=r){this.scrollX.value=!1;const u=r-o;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+u;else{const d=a.reduce((p,v)=>p+Number(v.minWidth||80),0),c=u/d;let f=0;a.forEach((p,v)=>{if(v===0)return;const h=Math.floor(Number(p.minWidth||80)*c);f+=h,p.realWidth=Number(p.minWidth||80)+h}),a[0].realWidth=Number(a[0].minWidth||80)+u-f}}else this.scrollX.value=!0,a.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(o,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),o+=u.realWidth}),this.scrollX.value=o>r,this.bodyWidth.value=o;const s=this.store.states.fixedColumns.value;if(s.length>0){let u=0;s.forEach(d=>{u+=Number(d.realWidth||d.width)}),this.fixedWidth.value=u}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let u=0;l.forEach(d=>{u+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var o,i;switch(t){case"columns":(o=r.state)==null||o.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:ZJe}=tc,XJe=nt({name:"ElTableFilterPanel",components:{ElCheckbox:tc,ElCheckboxGroup:ZJe,ElScrollbar:Hc,ElTooltip:hs,ElIcon:Dn,ArrowDown:ed,ArrowUp:oD},directives:{ClickOutside:np},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:oi.appendTo},setup(e){const t=br(),{t:n}=Gr(),r=Vt("table-filter"),o=t?.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const i=K(!1),a=K(null),s=ee(()=>e.column&&e.column.filters),l=ee(()=>e.column&&e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),u=ee({get:()=>{var A;return(((A=e.column)==null?void 0:A.filteredValue)||[])[0]},set:A=>{d.value&&(Bl(A)?d.value.splice(0,1):d.value.splice(0,1,A))}}),d=ee({get(){return e.column?e.column.filteredValue||[]:[]},set(A){var S;e.column&&((S=e.upDataColumn)==null||S.call(e,"filteredValue",A))}}),c=ee(()=>e.column?e.column.filterMultiple:!0),f=A=>A.value===u.value,p=()=>{i.value=!1},v=A=>{A.stopPropagation(),i.value=!i.value},h=()=>{i.value=!1},g=()=>{b(d.value),p()},y=()=>{d.value=[],b(d.value),p()},m=A=>{u.value=A,Bl(A)?b([]):b(d.value),p()},b=A=>{var S,E;(S=e.store)==null||S.commit("filterChange",{column:e.column,values:A}),(E=e.store)==null||E.updateAllSelected()};St(i,A=>{var S;e.column&&((S=e.upDataColumn)==null||S.call(e,"filterOpened",A))},{immediate:!0});const w=ee(()=>{var A,S;return(S=(A=a.value)==null?void 0:A.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:i,multiple:c,filterClassName:l,filteredValue:d,filterValue:u,filters:s,handleConfirm:g,handleReset:y,handleSelect:m,isPropAbsent:Bl,isActive:f,t:n,ns:r,showFilterPanel:v,hideFilterPanel:h,popperPaneRef:w,tooltip:a}}});function JJe(e,t,n,r,o,i){const a=hr("el-checkbox"),s=hr("el-checkbox-group"),l=hr("el-scrollbar"),u=hr("arrow-up"),d=hr("arrow-down"),c=hr("el-icon"),f=hr("el-tooltip"),p=L_("click-outside");return L(),yt(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:rt(()=>[e.multiple?(L(),G("div",{key:0},[x("div",{class:oe(e.ns.e("content"))},[He(l,{"wrap-class":e.ns.e("wrap")},{default:rt(()=>[He(s,{modelValue:e.filteredValue,"onUpdate:modelValue":v=>e.filteredValue=v,class:oe(e.ns.e("checkbox-group"))},{default:rt(()=>[(L(!0),G(Rt,null,un(e.filters,v=>(L(),yt(a,{key:v.value,value:v.value},{default:rt(()=>[bn(je(v.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),x("div",{class:oe(e.ns.e("bottom"))},[x("button",{class:oe({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},je(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),x("button",{type:"button",onClick:e.handleReset},je(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(L(),G("ul",{key:1,class:oe(e.ns.e("list"))},[x("li",{class:oe([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:v=>e.handleSelect(null)},je(e.t("el.table.clearFilter")),11,["onClick"]),(L(!0),G(Rt,null,un(e.filters,v=>(L(),G("li",{key:v.value,class:oe([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:h=>e.handleSelect(v.value)},je(v.text),11,["label","onClick"]))),128))],2))]),default:rt(()=>[cn((L(),G("span",{class:oe([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[He(c,null,{default:rt(()=>[ht(e.$slots,"filter-icon",{},()=>{var v;return[(v=e.column)!=null&&v.filterOpened?(L(),yt(u,{key:0})):(L(),yt(d,{key:1}))]})]),_:3})],10,["onClick"])),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var eet=on(XJe,[["render",JJe],["__file","filter-panel.vue"]]);function TW(e){const t=br();B_(()=>{n.value.addObserver(t)}),qn(()=>{r(n.value),o(n.value)}),Qc(()=>{r(n.value),o(n.value)}),yl(()=>{n.value.removeObserver(t)});const n=ee(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var a;const s=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(d=>{u[d.id]=d});for(let d=0,c=s.length;d<c;d++){const f=s[d],p=f.getAttribute("name"),v=u[p];v&&f.setAttribute("width",v.realWidth||v.width)}},o=i=>{var a,s;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,c=l.length;d<c;d++)l[d].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let d=0,c=u.length;d<c;d++){const f=u[d];f.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",f.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:o}}const nd=Symbol("ElTable");function tet(e,t){const n=br(),r=dn(nd),o=h=>{h.stopPropagation()},i=(h,g)=>{!g.filters&&g.sortable?v(h,g,!1):g.filterable&&!g.sortable&&o(h),r?.emit("header-click",g,h)},a=(h,g)=>{r?.emit("header-contextmenu",g,h)},s=K(null),l=K(!1),u=K(),d=(h,g)=>{var y,m;if(Xr&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const b=r;t("set-drag-visible",!0);const w=b?.vnode.el,A=w?.getBoundingClientRect().left,S=(m=(y=n?.vnode)==null?void 0:y.el)==null?void 0:m.querySelector(`th.${g.id}`),E=S.getBoundingClientRect(),D=E.left-A+30;zu(S,"noclick"),u.value={startMouseLeft:h.clientX,startLeft:E.right-A,startColumnLeft:E.left-A,tableLeft:A};const _=b?.refs.resizeProxy;_.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const M=k=>{const R=k.clientX-u.value.startMouseLeft,N=u.value.startLeft+R;_.style.left=`${Math.max(D,N)}px`},O=()=>{if(l.value){const{startColumnLeft:k,startLeft:R}=u.value,W=Number.parseInt(_.style.left,10)-k;g.width=g.realWidth=W,b?.emit("header-dragend",g.width,R-k,g,h),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",O),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Ws(S,"noclick")},0)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",O)}},c=(h,g)=>{var y;if(g.children&&g.children.length>0)return;const m=h.target;if(!cl(m))return;const b=m?.closest("th");if(!(!g||!g.resizable||!b)&&!l.value&&e.border){const w=b.getBoundingClientRect(),A=document.body.style,S=((y=b.parentNode)==null?void 0:y.lastElementChild)===b,E=e.allowDragLastColumn||!S;w.width>12&&w.right-h.clientX<8&&E?(A.cursor="col-resize",Ol(b,"is-sortable")&&(b.style.cursor="col-resize"),s.value=g):l.value||(A.cursor="",Ol(b,"is-sortable")&&(b.style.cursor="pointer"),s.value=null)}},f=()=>{Xr&&(document.body.style.cursor="")},p=({order:h,sortOrders:g})=>{if(h==="")return g[0];const y=g.indexOf(h||null);return g[y>g.length-2?0:y+1]},v=(h,g,y)=>{var m;h.stopPropagation();const b=g.order===y?null:y||p(g),w=(m=h.target)==null?void 0:m.closest("th");if(w&&Ol(w,"noclick")){Ws(w,"noclick");return}if(!g.sortable)return;const A=h.currentTarget;if(["ascending","descending"].some(M=>Ol(A,M)&&!g.sortOrders.includes(M)))return;const S=e.store.states;let E=S.sortProp.value,D;const _=S.sortingColumn.value;(_!==g||_===g&&P5(_.order))&&(_&&(_.order=null),S.sortingColumn.value=g,E=g.property),b?D=g.order=b:D=g.order=null,S.sortProp.value=E,S.sortOrder.value=D,r?.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:d,handleMouseMove:c,handleMouseOut:f,handleSortClick:v,handleFilterClick:o}}function net(e){const t=dn(nd),n=Vt("table");return{getHeaderRowStyle:s=>{const l=t?.props.headerRowStyle;return Rn(l)?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t?.props.headerRowClassName;return In(u)?l.push(u):Rn(u)&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,d)=>{var c;let f=(c=t?.props.headerCellStyle)!=null?c:{};Rn(f)&&(f=f.call(null,{rowIndex:s,columnIndex:l,row:u,column:d}));const p=EW(l,d.fixed,e.store,u);return Hy(p,"left"),Hy(p,"right"),Object.assign({},f,p)},getHeaderCellClass:(s,l,u,d)=>{const c=SW(n.b(),l,d.fixed,e.store,u),f=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...c];d.children||f.push("is-leaf"),d.sortable&&f.push("is-sortable");const p=t?.props.headerCellClassName;return In(p)?f.push(p):Rn(p)&&f.push(p.call(null,{rowIndex:s,columnIndex:l,row:u,column:d})),f.push(n.e("cell")),f.filter(v=>!!v).join(" ")}}}const Ube=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,Ube(n.children))):t.push(n)}),t},zbe=e=>{let t=1;const n=(i,a)=>{if(a&&(i.level=a.level+1,t<i.level&&(t=i.level)),i.children){let s=0;i.children.forEach(l=>{n(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i<t;i++)r.push([]);return Ube(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(a=>a.isSubColumn=!0)):i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function ret(e){const t=dn(nd),n=ee(()=>zbe(e.store.states.originColumns.value));return{isGroup:ee(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t?.store.commit("toggleAllSelection")},columnRows:n}}var oet=nt({name:"ElTableHeader",components:{ElCheckbox:tc},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=br(),r=dn(nd),o=Vt("table"),i=K({}),{onColumnsChange:a,onScrollableChange:s}=TW(r),l=r?.props.tableLayout==="auto",u=Wr(new Map),d=K();let c;const f=()=>{c=setTimeout(()=>{u.size>0&&(u.forEach((O,k)=>{const R=d.value.querySelector(`.${k.replace(/\s/g,".")}`);if(R){const N=R.getBoundingClientRect().width;O.width=N||O.width}}),u.clear())})};St(u,f),Jr(()=>{c&&(clearTimeout(c),c=void 0)}),qn(async()=>{await Yt(),await Yt();const{prop:O,order:k}=e.defaultSort;r?.store.commit("sort",{prop:O,order:k,init:!0}),f()});const{handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:h,handleMouseMove:g,handleMouseOut:y,handleSortClick:m,handleFilterClick:b}=tet(e,t),{getHeaderRowStyle:w,getHeaderRowClass:A,getHeaderCellStyle:S,getHeaderCellClass:E}=net(e),{isGroup:D,toggleAllSelection:_,columnRows:M}=ret(e);return n.state={onColumnsChange:a,onScrollableChange:s},n.filterPanels=i,{ns:o,filterPanels:i,onColumnsChange:a,onScrollableChange:s,columnRows:M,getHeaderRowClass:A,getHeaderRowStyle:w,getHeaderCellClass:E,getHeaderCellStyle:S,handleHeaderClick:p,handleHeaderContextMenu:v,handleMouseDown:h,handleMouseMove:g,handleMouseOut:y,handleSortClick:m,handleFilterClick:b,isGroup:D,toggleAllSelection:_,saveIndexSelection:u,isTableLayoutAuto:l,theadRef:d,updateFixedColumnStyle:f}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:o,getHeaderRowClass:i,getHeaderRowStyle:a,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:d,handleSortClick:c,handleMouseOut:f,store:p,$parent:v,saveIndexSelection:h,isTableLayoutAuto:g}=this;let y=1;return jn("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((m,b)=>jn("tr",{class:i(b),key:b,style:a(b)},m.map((w,A)=>{w.rowSpan>y&&(y=w.rowSpan);const S=o(b,A,m,w);return g&&w.fixed&&h.set(S,w),jn("th",{class:S,colspan:w.colSpan,key:`${w.id}-thead`,rowspan:w.rowSpan,style:r(b,A,m,w),onClick:E=>{var D;(D=E.currentTarget)!=null&&D.classList.contains("noclick")||s(E,w)},onContextmenu:E=>l(E,w),onMousedown:E=>u(E,w),onMousemove:E=>d(E,w),onMouseout:f},[jn("div",{class:["cell",w.filteredValue&&w.filteredValue.length>0?"highlight":""]},[w.renderHeader?w.renderHeader({column:w,$index:A,store:p,_self:v}):w.label,w.sortable&&jn("span",{onClick:E=>c(E,w),class:"caret-wrapper"},[jn("i",{onClick:E=>c(E,w,"ascending"),class:"sort-caret ascending"}),jn("i",{onClick:E=>c(E,w,"descending"),class:"sort-caret descending"})]),w.filterable&&jn(eet,{store:p,placement:w.filterPlacement||"bottom-start",appendTo:v?.appendFilterPanelTo,column:w,upDataColumn:(E,D)=>{w[E]=D}},{"filter-icon":()=>w.renderFilterIcon?w.renderFilterIcon({filterOpened:w.filterOpened}):null})])])}))))}});function DI(e,t,n=.03){return e-t>n}function iet(e){const t=dn(nd),n=K(""),r=K(jn("div")),o=(v,h,g)=>{var y,m,b;const w=t,A=_I(v);let S=null;const E=(y=w?.vnode.el)==null?void 0:y.dataset.prefix;A&&(S=bee({columns:(b=(m=e.store)==null?void 0:m.states.columns.value)!=null?b:[]},A,E),S&&w?.emit(`cell-${g}`,h,S,A,v)),w?.emit(`row-${g}`,h,S,v)},i=(v,h)=>{o(v,h,"dblclick")},a=(v,h)=>{var g;(g=e.store)==null||g.commit("setCurrentRow",h),o(v,h,"click")},s=(v,h)=>{o(v,h,"contextmenu")},l=Wl(v=>{var h;(h=e.store)==null||h.commit("setHoverRow",v)},30),u=Wl(()=>{var v;(v=e.store)==null||v.commit("setHoverRow",null)},30),d=v=>{const h=window.getComputedStyle(v,null),g=Number.parseInt(h.paddingLeft,10)||0,y=Number.parseInt(h.paddingRight,10)||0,m=Number.parseInt(h.paddingTop,10)||0,b=Number.parseInt(h.paddingBottom,10)||0;return{left:g,right:y,top:m,bottom:b}},c=(v,h,g)=>{var y;let m=(y=h?.target)==null?void 0:y.parentNode;for(;v>1&&(m=m?.nextSibling,!(!m||m.nodeName!=="TR"));)g(m,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:i,handleClick:a,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(v,h,g)=>{var y,m,b,w,A,S,E,D;if(!t)return;const _=t,M=_I(v),O=(y=_?.vnode.el)==null?void 0:y.dataset.prefix;let k=null;if(M){if(k=bee({columns:(b=(m=e.store)==null?void 0:m.states.columns.value)!=null?b:[]},M,O),!k)return;M.rowSpan>1&&c(M.rowSpan,v,zu);const X=_.hoverState={cell:M,column:k,row:h};_?.emit("cell-mouse-enter",X.row,X.column,X.cell,v)}if(!g){((w=Ns)==null?void 0:w.trigger)===M&&((A=Ns)==null||A());return}const R=v.target.querySelector(".cell");if(!(Ol(R,`${O}-tooltip`)&&R.childNodes.length))return;const N=document.createRange();N.setStart(R,0),N.setEnd(R,R.childNodes.length);const{width:W,height:B}=N.getBoundingClientRect(),{width:z,height:j}=R.getBoundingClientRect(),{top:q,left:Y,right:U,bottom:F}=d(R),H=Y+U,re=q+F;DI(W+H,z)||DI(B+re,j)||DI(R.scrollWidth,z)?$Je(g,(S=M?.innerText||M?.textContent)!=null?S:"",h,k,M,_):((E=Ns)==null?void 0:E.trigger)===M&&((D=Ns)==null||D())},handleCellMouseLeave:v=>{const h=_I(v);if(!h)return;h.rowSpan>1&&c(h.rowSpan,v,Ws);const g=t?.hoverState;t?.emit("cell-mouse-leave",g?.row,g?.column,g?.cell,v)},tooltipContent:n,tooltipTrigger:r}}function aet(e){const t=dn(nd),n=Vt("table");return{getRowStyle:(u,d)=>{const c=t?.props.rowStyle;return Rn(c)?c.call(null,{row:u,rowIndex:d}):c||null},getRowClass:(u,d)=>{var c;const f=[n.e("row")];t?.props.highlightCurrentRow&&u===((c=e.store)==null?void 0:c.states.currentRow.value)&&f.push("current-row"),e.stripe&&d%2===1&&f.push(n.em("row","striped"));const p=t?.props.rowClassName;return In(p)?f.push(p):Rn(p)&&f.push(p.call(null,{row:u,rowIndex:d})),f},getCellStyle:(u,d,c,f)=>{const p=t?.props.cellStyle;let v=p??{};Rn(p)&&(v=p.call(null,{rowIndex:u,columnIndex:d,row:c,column:f}));const h=EW(d,e?.fixed,e.store);return Hy(h,"left"),Hy(h,"right"),Object.assign({},v,h)},getCellClass:(u,d,c,f,p)=>{const v=SW(n.b(),d,e?.fixed,e.store,void 0,p),h=[f.id,f.align,f.className,...v],g=t?.props.cellClassName;return In(g)?h.push(g):Rn(g)&&h.push(g.call(null,{rowIndex:u,columnIndex:d,row:c,column:f})),h.push(n.e("cell")),h.filter(y=>!!y).join(" ")},getSpan:(u,d,c,f)=>{let p=1,v=1;const h=t?.props.spanMethod;if(Rn(h)){const g=h({row:u,column:d,rowIndex:c,columnIndex:f});Zt(g)?(p=g[0],v=g[1]):dr(g)&&(p=g.rowspan,v=g.colspan)}return{rowspan:p,colspan:v}},getColspanRealWidth:(u,d,c)=>{if(d<1)return u[c].realWidth;const f=u.map(({realWidth:p,width:v})=>p||v).slice(c,c+d);return Number(f.reduce((p,v)=>Number(p)+Number(v),-1))}}}const set=nt({name:"TableTdWrapper"}),uet=nt({...set,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(L(),G("td",{colspan:e.colspan,rowspan:e.rowspan},[ht(t.$slots,"default")],8,["colspan","rowspan"]))}});var cet=on(uet,[["__file","td-wrapper.vue"]]);function det(e){const t=dn(nd),n=Vt("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:c}=iet(e),{getRowStyle:f,getRowClass:p,getCellStyle:v,getCellClass:h,getSpan:g,getColspanRealWidth:y}=aet(e),m=ee(()=>{var E;return(E=e.store)==null?void 0:E.states.columns.value.findIndex(({type:D})=>D==="default")}),b=(E,D)=>{var _;const M=(_=t?.props)==null?void 0:_.rowKey;return M?Cs(E,M):D},w=(E,D,_,M=!1)=>{const{tooltipEffect:O,tooltipOptions:k,store:R}=e,{indent:N,columns:W}=R.states,B=p(E,D);let z=!0;return _&&(B.push(n.em("row",`level-${_.level}`)),z=!!_.display),jn("tr",{style:[z?null:{display:"none"},f(E,D)],class:B,key:b(E,D),onDblclick:q=>r(q,E),onClick:q=>o(q,E),onContextmenu:q=>i(q,E),onMouseenter:()=>a(D),onMouseleave:s},W.value.map((q,Y)=>{const{rowspan:U,colspan:F}=g(E,q,D,Y);if(!U||!F)return null;const H=Object.assign({},q);H.realWidth=y(W.value,F,Y);const re={store:R,_self:e.context||t,column:H,row:E,$index:D,cellIndex:Y,expanded:M};Y===m.value&&_&&(re.treeNode={indent:_.level&&_.level*N.value,level:_.level},Eo(_.expanded)&&(re.treeNode.expanded=_.expanded,"loading"in _&&(re.treeNode.loading=_.loading),"noLazyChildren"in _&&(re.treeNode.noLazyChildren=_.noLazyChildren)));const X=`${b(E,D)},${Y}`,te=H.columnKey||H.rawColumnKey||"",Z=q.showOverflowTooltip&&Pme({effect:O},k,q.showOverflowTooltip);return jn(cet,{style:v(D,Y,E,q),class:h(D,Y,E,q,F-1),key:`${te}${X}`,rowspan:U,colspan:F,onMouseenter:le=>l(le,E,Z),onMouseleave:u},{default:()=>A(Y,q,re)})}))},A=(E,D,_)=>D.renderCell(_);return{wrappedRowRender:(E,D)=>{const _=e.store,{isRowExpanded:M,assertRowKey:O}=_,{treeData:k,lazyTreeNodeMap:R,childrenColumnName:N,rowKey:W}=_.states,B=_.states.columns.value;if(B.some(({type:j})=>j==="expand")){const j=M(E),q=w(E,D,void 0,j),Y=t?.renderExpanded;if(!Y)return console.error("[Element Error]renderExpanded is required."),q;const U=[[q]];return(t.props.preserveExpandedContent||j)&&U[0].push(jn("tr",{key:`expanded-row__${q.key}`,style:{display:j?"":"none"}},[jn("td",{colspan:B.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[Y({row:E,$index:D,store:_,expanded:j})])])),U}else if(Object.keys(k.value).length){O();const j=Cs(E,W.value);let q=k.value[j],Y=null;q&&(Y={expanded:q.expanded,level:q.level,display:!0,noLazyChildren:void 0,loading:void 0},Eo(q.lazy)&&(Y&&Eo(q.loaded)&&q.loaded&&(Y.noLazyChildren=!(q.children&&q.children.length)),Y.loading=q.loading));const U=[w(E,D,Y??void 0)];if(q){let F=0;const H=(X,te)=>{X&&X.length&&te&&X.forEach(Z=>{const le={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ve=Cs(Z,W.value);if(Bl(ve))throw new Error("For nested data item, row-key is required.");if(q={...k.value[ve]},q&&(le.expanded=q.expanded,q.level=q.level||le.level,q.display=!!(q.expanded&&le.display),Eo(q.lazy)&&(Eo(q.loaded)&&q.loaded&&(le.noLazyChildren=!(q.children&&q.children.length)),le.loading=q.loading)),F++,U.push(w(Z,D+F,le)),q){const Pe=R.value[ve]||Z[N.value];H(Pe,q)}})};q.display=!0;const re=R.value[j]||E[N.value];H(re,q)}return U}else return w(E,D,void 0)},tooltipContent:d,tooltipTrigger:c}}const fet={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var pet=nt({name:"ElTableBody",props:fet,setup(e){var t;const n=br(),r=dn(nd),o=Vt("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:s}=det(e),{onColumnsChange:l,onScrollableChange:u}=TW(r),d=[];return St((t=e.store)==null?void 0:t.states.hoverRow,(c,f)=>{var p,v;const h=n?.vnode.el,g=Array.from(h?.children||[]).filter(b=>b?.classList.contains(`${o.e("row")}`));let y=c;const m=(p=g[y])==null?void 0:p.childNodes;if(m?.length){let b=0;Array.from(m).reduce((A,S,E)=>{var D,_;return((D=m[E])==null?void 0:D.colSpan)>1&&(b=(_=m[E])==null?void 0:_.colSpan),S.nodeName!=="TD"&&b===0&&A.push(E),b>0&&b--,A},[]).forEach(A=>{var S;for(y=c;y>0;){const E=(S=g[y-1])==null?void 0:S.childNodes;if(E[A]&&E[A].nodeName==="TD"&&E[A].rowSpan>1){zu(E[A],"hover-cell"),d.push(E[A]);break}y--}})}else d.forEach(b=>Ws(b,"hover-cell")),d.length=0;!((v=e.store)!=null&&v.states.isComplex.value)||!Xr||s0(()=>{const b=g[f],w=g[c];b&&!b.classList.contains("hover-fixed-row")&&Ws(b,"hover-row"),w&&zu(w,"hover-row")})}),yl(()=>{var c;(c=Ns)==null||c()}),{ns:o,onColumnsChange:l,onScrollableChange:u,wrappedRowRender:i,tooltipContent:a,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=t?.states.data.value||[];return jn("tbody",{tabIndex:-1},[n.reduce((r,o)=>r.concat(e(o,r.length)),[])])}});function het(){const e=dn(nd),t=e?.store,n=ee(()=>{var s;return(s=t?.states.fixedLeafColumnsLength.value)!=null?s:0}),r=ee(()=>{var s;return(s=t?.states.rightFixedColumns.value.length)!=null?s:0}),o=ee(()=>{var s;return(s=t?.states.columns.value.length)!=null?s:0}),i=ee(()=>{var s;return(s=t?.states.fixedColumns.value.length)!=null?s:0}),a=ee(()=>{var s;return(s=t?.states.rightFixedColumns.value.length)!=null?s:0});return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:o,leftFixedCount:i,rightFixedCount:a,columns:ee(()=>{var s;return(s=t?.states.columns.value)!=null?s:[]})}}function get(e){const{columns:t}=het(),n=Vt("table");return{getCellClasses:(i,a)=>{const s=i[a],l=[n.e("cell"),s.id,s.align,s.labelClassName,...SW(n.b(),a,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(i,a)=>{const s=EW(a,i.fixed,e.store);return Hy(s,"left"),Hy(s,"right"),s},columns:t}}var vet=nt({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=dn(nd),n=Vt("table"),{getCellClasses:r,getCellStyles:o,columns:i}=get(e),{onScrollableChange:a,onColumnsChange:s}=TW(t);return{ns:n,onScrollableChange:a,onColumnsChange:s,getCellClasses:r,getCellStyles:o,columns:i}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o}=this,i=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:i}):e.forEach((s,l)=>{if(l===0){a[l]=o;return}const u=i.map(p=>Number(p[s.property])),d=[];let c=!0;u.forEach(p=>{if(!Number.isNaN(+p)){c=!1;const v=`${p}`.split(".")[1];d.push(v?v.length:0)}});const f=Math.max.apply(null,d);c?a[l]="":a[l]=u.reduce((p,v)=>{const h=Number(v);return Number.isNaN(+h)?p:Number.parseFloat((p+v).toFixed(Math.min(f,20)))},0)}),jn(jn("tfoot",[jn("tr",{},[...e.map((s,l)=>jn("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,l),style:t(s,l)},[jn("div",{class:["cell",s.labelClassName]},[a[l]])]))])]))}});function met(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f,p=!0)=>{e.toggleRowSelection(c,f,!1,p),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})},updateKeyChildren:(c,f)=>{e.updateKeyChildren(c,f)}}}function yet(e,t,n,r){const o=K(!1),i=K(null),a=K(!1),s=z=>{a.value=z},l=K({width:null,height:null,headerHeight:null}),u=K(!1),d={display:"inline-block",verticalAlign:"middle"},c=K(),f=K(0),p=K(0),v=K(0),h=K(0),g=K(0);Es(()=>{var z;t.setHeight((z=e.height)!=null?z:null)}),Es(()=>{var z;t.setMaxHeight((z=e.maxHeight)!=null?z:null)}),St(()=>[e.currentRowKey,n.states.rowKey],([z,j])=>{!C(j)||!C(z)||n.setCurrentRowKey(`${z}`)},{immediate:!0}),St(()=>e.data,z=>{r.store.commit("setData",z)},{immediate:!0,deep:!0}),Es(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},m=(z,j)=>{const{pixelX:q,pixelY:Y}=j;Math.abs(q)>=Math.abs(Y)&&(r.refs.bodyWrapper.scrollLeft+=j.pixelX/5)},b=ee(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=ee(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),A=()=>{b.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(_)};qn(async()=>{await Yt(),n.updateColumns(),M(),requestAnimationFrame(A);const z=r.vnode.el,j=r.refs.headerWrapper;e.flexible&&z&&z.parentElement&&(z.parentElement.style.minWidth="0"),l.value={width:c.value=z.offsetWidth,height:z.offsetHeight,headerHeight:e.showHeader&&j?j.offsetHeight:null},n.states.columns.value.forEach(q=>{q.filteredValue&&q.filteredValue.length&&r.store.commit("filterChange",{column:q,values:q.filteredValue,silent:!0})}),r.$ready=!0});const S=(z,j)=>{if(!z)return;const q=Array.from(z.classList).filter(Y=>!Y.startsWith("is-scrolling-"));q.push(t.scrollX.value?j:"is-scrolling-none"),z.className=q.join(" ")},E=z=>{const{tableWrapper:j}=r.refs;S(j,z)},D=z=>{const{tableWrapper:j}=r.refs;return!!(j&&j.classList.contains(z))},_=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const re="is-scrolling-none";D(re)||E(re);return}const z=r.refs.scrollBarRef.wrapRef;if(!z)return;const{scrollLeft:j,offsetWidth:q,scrollWidth:Y}=z,{headerWrapper:U,footerWrapper:F}=r.refs;U&&(U.scrollLeft=j),F&&(F.scrollLeft=j);const H=Y-q-1;j>=H?E("is-scrolling-right"):E(j===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Ro(r.refs.scrollBarRef.wrapRef,"scroll",_,{passive:!0}),e.fit?li(r.vnode.el,O):Ro(window,"resize",O),li(r.refs.bodyWrapper,()=>{var z,j;O(),(j=(z=r.refs)==null?void 0:z.scrollBarRef)==null||j.update()}))},O=()=>{var z,j,q,Y;const U=r.vnode.el;if(!r.$ready||!U)return;let F=!1;const{width:H,height:re,headerHeight:X}=l.value,te=c.value=U.offsetWidth;H!==te&&(F=!0);const Z=U.offsetHeight;(e.height||b.value)&&re!==Z&&(F=!0);const le=e.tableLayout==="fixed"?r.refs.headerWrapper:(z=r.refs.tableHeaderRef)==null?void 0:z.$el;e.showHeader&&le?.offsetHeight!==X&&(F=!0),f.value=((j=r.refs.tableWrapper)==null?void 0:j.scrollHeight)||0,v.value=le?.scrollHeight||0,h.value=((q=r.refs.footerWrapper)==null?void 0:q.offsetHeight)||0,g.value=((Y=r.refs.appendWrapper)==null?void 0:Y.offsetHeight)||0,p.value=f.value-v.value-h.value-g.value,F&&(l.value={width:te,height:Z,headerHeight:e.showHeader&&le?.offsetHeight||0},A())},k=ha(),R=ee(()=>{const{bodyWidth:z,scrollY:j,gutterWidth:q}=t;return z.value?`${z.value-(j.value?q:0)}px`:""}),N=ee(()=>e.maxHeight?"fixed":e.tableLayout),W=ee(()=>{if(e.data&&e.data.length)return;let z="100%";e.height&&p.value&&(z=`${p.value}px`);const j=c.value;return{width:j?`${j}px`:"",height:z}}),B=ee(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+h.value}px)`}:{maxHeight:`${+e.maxHeight-v.value-h.value}px`}:{});return{isHidden:o,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:y,handleHeaderFooterMousewheel:m,tableSize:k,emptyBlockStyle:W,resizeProxyVisible:a,bodyWidth:R,resizeState:l,doLayout:A,tableBodyStyles:w,tableLayout:N,scrollbarViewStyle:d,scrollbarStyle:B}}function bet(e){const t=K(),n=()=>{const o=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(s=>s())}),t.value.observe(o,i)};qn(()=>{n()}),yl(()=>{var r;(r=t.value)==null||r.disconnect()})}var wet={data:{type:Array,default:()=>[]},size:Aa,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function $be(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>Vr(o))&&(n=[]);const r=o=>{const i={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?i.style={width:`${o.width}px`}:i.name=o.id,i};return jn("colgroup",{},n.map(o=>jn("col",r(o))))}$be.props=["columns","tableLayout"];const Aet=()=>{const e=K(),t=(i,a)=>{const s=e.value;s&&s.scrollTo(i,a)},n=(i,a)=>{const s=e.value;s&&$n(a)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};var Cee=!1,Ig,QL,ZL,US,zS,jbe,$S,XL,JL,eF,Hbe,tF,nF,Wbe,Vbe;function El(){if(!Cee){Cee=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(tF=/\b(iPhone|iP[ao]d)/.exec(e),nF=/\b(iP[ao]d)/.exec(e),eF=/Android/i.exec(e),Wbe=/FBAN\/\w+;/i.exec(e),Vbe=/Mobile/i.exec(e),Hbe=!!/Win64/.exec(e),t){Ig=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ig&&document&&document.documentMode&&(Ig=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);jbe=r?parseFloat(r[1])+4:Ig,QL=t[2]?parseFloat(t[2]):NaN,ZL=t[3]?parseFloat(t[3]):NaN,US=t[4]?parseFloat(t[4]):NaN,US?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),zS=t&&t[1]?parseFloat(t[1]):NaN):zS=NaN}else Ig=QL=ZL=zS=US=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);$S=o?parseFloat(o[1].replace("_",".")):!0}else $S=!1;XL=!!n[2],JL=!!n[3]}else $S=XL=JL=!1}}var rF={ie:function(){return El()||Ig},ieCompatibilityMode:function(){return El()||jbe>Ig},ie64:function(){return rF.ie()&&Hbe},firefox:function(){return El()||QL},opera:function(){return El()||ZL},webkit:function(){return El()||US},safari:function(){return rF.webkit()},chrome:function(){return El()||zS},windows:function(){return El()||XL},osx:function(){return El()||$S},linux:function(){return El()||JL},iphone:function(){return El()||tF},mobile:function(){return El()||tF||nF||eF||Vbe},nativeApp:function(){return El()||Wbe},android:function(){return El()||eF},ipad:function(){return El()||nF}},Cet=rF,xet=!!(typeof window<"u"&&window.document&&window.document.createElement),Eet={canUseDOM:xet},qbe=Eet,Gbe;qbe.canUseDOM&&(Gbe=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function ket(e,t){if(!qbe.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r=typeof o[n]=="function"}return!r&&Gbe&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var Tet=ket,xee=10,See=40,Eee=800;function Kbe(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*xee,o=n*xee,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(e.deltaMode==1?(r*=See,o*=See):(r*=Eee,o*=Eee)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}Kbe.getEventType=function(){return Cet.firefox()?"DOMMouseScroll":Tet("wheel")?"wheel":"mousewheel"};var _et=Kbe;/**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */const Det=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=_et(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},Iet={beforeMount(e,t){Det(e,t.value)}};let Oet=1;const Met=nt({name:"ElTable",directives:{Mousewheel:Iet},components:{TableHeader:oet,TableBody:pet,TableFooter:vet,ElScrollbar:Hc,hColgroup:$be},props:wet,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=Gr(),n=Vt("table"),r=br();_r(nd,r);const o=KJe(r,e);r.store=o;const i=new QJe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const a=ee(()=>(o.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:c,toggleAllSelection:f,toggleRowExpansion:p,clearSort:v,sort:h,updateKeyChildren:g}=met(o),{isHidden:y,renderExpanded:m,setDragVisible:b,isGroup:w,handleMouseLeave:A,handleHeaderFooterMousewheel:S,tableSize:E,emptyBlockStyle:D,resizeProxyVisible:_,bodyWidth:M,resizeState:O,doLayout:k,tableBodyStyles:R,tableLayout:N,scrollbarViewStyle:W,scrollbarStyle:B}=yet(e,i,o,r),{scrollBarRef:z,scrollTo:j,setScrollLeft:q,setScrollTop:Y}=Aet(),U=Wl(k,50),F=`${n.namespace.value}-table_${Oet++}`;r.tableId=F,r.state={isGroup:w,resizeState:O,doLayout:k,debouncedUpdateLayout:U};const H=ee(()=>{var te;return(te=e.sumText)!=null?te:t("el.table.sumText")}),re=ee(()=>{var te;return(te=e.emptyText)!=null?te:t("el.table.emptyText")}),X=ee(()=>zbe(o.states.originColumns.value)[0]);return bet(r),Jr(()=>{U.cancel()}),{ns:n,layout:i,store:o,columns:X,handleHeaderFooterMousewheel:S,handleMouseLeave:A,tableId:F,tableSize:E,isHidden:y,isEmpty:a,renderExpanded:m,resizeProxyVisible:_,resizeState:O,isGroup:w,bodyWidth:M,tableBodyStyles:R,emptyBlockStyle:D,debouncedUpdateLayout:U,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:c,toggleAllSelection:f,toggleRowExpansion:p,clearSort:v,doLayout:k,sort:h,updateKeyChildren:g,t,setDragVisible:b,context:r,computedSumText:H,computedEmptyText:re,tableLayout:N,scrollbarViewStyle:W,scrollbarStyle:B,scrollBarRef:z,scrollTo:j,setScrollLeft:q,setScrollTop:Y,allowDragLastColumn:e.allowDragLastColumn}}});function Pet(e,t,n,r,o,i){const a=hr("hColgroup"),s=hr("table-header"),l=hr("table-body"),u=hr("table-footer"),d=hr("el-scrollbar"),c=L_("mousewheel");return L(),G("div",{ref:"tableWrapper",class:oe([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:rn(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[x("div",{class:oe(e.ns.e("inner-wrapper"))},[x("div",{ref:"hiddenColumns",class:"hidden-columns"},[ht(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?cn((L(),G("div",{key:0,ref:"headerWrapper",class:oe(e.ns.e("header-wrapper"))},[x("table",{ref:"tableHeader",class:oe(e.ns.e("header")),style:rn(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[He(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),He(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[c,e.handleHeaderFooterMousewheel]]):xe("v-if",!0),x("div",{ref:"bodyWrapper",class:oe(e.ns.e("body-wrapper"))},[He(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:f=>e.$emit("scroll",f)},{default:rt(()=>[x("table",{ref:"tableBody",class:oe(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:rn({width:e.bodyWidth,tableLayout:e.tableLayout})},[He(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(L(),yt(s,{key:0,ref:"tableHeaderRef",class:oe(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):xe("v-if",!0),He(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(L(),yt(u,{key:1,class:oe(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):xe("v-if",!0)],6),e.isEmpty?(L(),G("div",{key:0,ref:"emptyBlock",style:rn(e.emptyBlockStyle),class:oe(e.ns.e("empty-block"))},[x("span",{class:oe(e.ns.e("empty-text"))},[ht(e.$slots,"empty",{},()=>[bn(je(e.computedEmptyText),1)])],2)],6)):xe("v-if",!0),e.$slots.append?(L(),G("div",{key:1,ref:"appendWrapper",class:oe(e.ns.e("append-wrapper"))},[ht(e.$slots,"append")],2)):xe("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native","onScroll"])],2),e.showSummary&&e.tableLayout==="fixed"?cn((L(),G("div",{key:1,ref:"footerWrapper",class:oe(e.ns.e("footer-wrapper"))},[x("table",{class:oe(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:rn(e.tableBodyStyles)},[He(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),He(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[kr,!e.isEmpty],[c,e.handleHeaderFooterMousewheel]]):xe("v-if",!0),e.border||e.isGroup?(L(),G("div",{key:2,class:oe(e.ns.e("border-left-patch"))},null,2)):xe("v-if",!0)],2),cn(x("div",{ref:"resizeProxy",class:oe(e.ns.e("column-resize-proxy"))},null,2),[[kr,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var Net=on(Met,[["render",Pet],["__file","table.vue"]]);const Ret={selection:"table-column--selection",expand:"table__expand-column"},Bet={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Let=e=>Ret[e]||"",Fet={selection:{renderHeader({store:e,column:t}){var n;function r(){return e.states.data.value&&e.states.data.value.length===0}return jn(tc,{disabled:r(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(n=e.toggleAllSelection)!=null?n:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return jn(tc,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return $n(r)?n=t+r:Rn(r)&&(n=r(t)),jn("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:r}){const{ns:o}=n,i=[o.e("expand-icon")];return!e.renderExpand&&r&&i.push(o.em("expand-icon","expanded")),jn("div",{class:i,onClick:function(s){s.stopPropagation(),n.toggleRowExpansion(t)}},{default:()=>e.renderExpand?[e.renderExpand({expanded:r})]:[jn(Dn,null,{default:()=>[jn(Da)]})]})},sortable:!1,resizable:!1}};function Uet({row:e,column:t,$index:n}){var r;const o=t.property,i=o&&t3(e,o).value;return t&&t.formatter?t.formatter(e,t,i,n):((r=i?.toString)==null?void 0:r.call(i))||""}function zet({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[jn("span",{class:o.e("placeholder")})]:null;const i=[],a=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(jn("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),Eo(t.expanded)&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let l=Da;t.loading&&(l=jc),i.push(jn("div",{class:s,onClick:a},{default:()=>[jn(Dn,{class:{[o.is("loading")]:t.loading}},{default:()=>[jn(l)]})]}))}else i.push(jn("span",{class:o.e("placeholder")}));return i}function kee(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function $et(e,t){const n=br();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},s=kee(i,a);Object.keys(s).forEach(l=>{const u=a[l];no(t,u)&&St(()=>t[u],d=>{let c=d;u==="width"&&l==="realWidth"&&(c=xW(d)),u==="minWidth"&&l==="realMinWidth"&&(c=Nbe(d)),n.columnConfig.value[u]=c,n.columnConfig.value[l]=c;const f=u==="fixed";e.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter"],a=["showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=kee(i,s);Object.keys(l).forEach(u=>{const d=s[u];no(t,d)&&St(()=>t[d],c=>{n.columnConfig.value[u]=c})}),a.forEach(u=>{no(e.value.props,u)&&St(()=>e.value.props[u],d=>{n.columnConfig.value[u]=d})})}}}function jet(e,t,n){const r=br(),o=K(""),i=K(!1),a=K(),s=K(),l=Vt("table");Es(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),Es(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:a.value,s.value});const u=ee(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),d=ee(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:A}=w.states,S=A.value;return S&&Object.keys(S).length>0}),c=K(xW(e.width)),f=K(Nbe(e.minWidth)),p=w=>(c.value&&(w.width=c.value),f.value&&(w.minWidth=f.value),!c.value&&f.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(Vr(w.width)?w.minWidth:w.width),w),v=w=>{const A=w.type,S=Fet[A]||{};Object.keys(S).forEach(D=>{const _=S[D];D!=="className"&&!Vr(_)&&(w[D]=_)});const E=Let(A);if(E){const D=`${C(l.namespace)}-${E}`;w.className=w.className?`${w.className} ${D}`:D}return w},h=w=>{Zt(w)?w.forEach(S=>A(S)):A(w);function A(S){var E;((E=S?.type)==null?void 0:E.name)==="ElTableColumn"&&(S.vParent=r)}};return{columnId:o,realAlign:a,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:p,setColumnForcedProps:v,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=S=>(r.columnConfig.value.label,ht(t,"header",S,()=>[w.label]))),t["filter-icon"]&&(w.renderFilterIcon=S=>ht(t,"filter-icon",S)),t.expand&&(w.renderExpand=S=>ht(t,"expand",S));let A=w.renderCell;return w.type==="expand"?(w.renderCell=S=>jn("div",{class:"cell"},[A(S)]),n.value.renderExpanded=S=>t.default?t.default(S):t.default):(A=A||Uet,w.renderCell=S=>{let E=null;if(t.default){const R=t.default(S);E=R.some(N=>N.type!==da)?R:A(S)}else E=A(S);const{columns:D}=n.value.store.states,_=D.value.findIndex(R=>R.type==="default"),M=d.value&&S.cellIndex===_,O=zet(S,M),k={class:"cell",style:{}};return w.showOverflowTooltip&&(k.class=`${k.class} ${C(l.namespace)}-tooltip`,k.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),h(E),jn("div",k,[O,E])}),w},getPropsData:(...w)=>w.reduce((A,S)=>(Zt(S)&&S.forEach(E=>{A[E]=e[E]}),A),{}),getColumnElIndex:(w,A)=>Array.prototype.indexOf.call(w,A),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var Het={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Wet=1;var Ybe=nt({name:"ElTableColumn",components:{ElCheckbox:tc},props:Het,setup(e,{slots:t}){const n=br(),r=K({}),o=ee(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:i,registerComplexWatchers:a}=$et(o,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:c,setColumnForcedProps:f,setColumnRenders:p,getPropsData:v,getColumnElIndex:h,realAlign:g,updateColumnOrder:y}=jet(e,t,o),m=d.value;s.value=`${"tableId"in m&&m.tableId||"columnId"in m&&m.columnId}_column_${Wet++}`,B_(()=>{l.value=o.value!==m;const b=e.type||"default",w=e.sortable===""?!0:e.sortable,A=b==="selection"?!1:Vr(e.showOverflowTooltip)?m.props.showOverflowTooltip:e.showOverflowTooltip,S=Vr(e.tooltipFormatter)?m.props.tooltipFormatter:e.tooltipFormatter,E={...Bet[b],id:s.value,type:b,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:A,tooltipFormatter:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:n.vnode.key};let k=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);k=BJe(E,k),k=FJe(p,c,f)(k),r.value=k,i(),a()}),qn(()=>{var b,w;const A=d.value,S=l.value?(b=A.vnode.el)==null?void 0:b.children:(w=A.refs.hiddenColumns)==null?void 0:w.children,E=()=>h(S||[],n.vnode.el);r.value.getColumnIndex=E,E()>-1&&o.value.store.commit("insertColumn",r.value,l.value?"columnConfig"in A&&A.columnConfig.value:null,y)}),Jr(()=>{const b=r.value.getColumnIndex;(b?b():-1)>-1&&o.value.store.commit("removeColumn",r.value,l.value?"columnConfig"in m&&m.columnConfig.value:null,y)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Zt(r))for(const a of r)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?o.push(a):a.type===Rt&&Zt(a.children)&&a.children.forEach(s=>{s?.patchFlag!==1024&&!In(s?.children)&&o.push(s)});return jn("div",o)}catch{return jn("div",[])}}});const Vet=or(Net,{TableColumn:Ybe}),qet=vi(Ybe);var uA=(e=>(e.ASC="asc",e.DESC="desc",e))(uA||{}),cA=(e=>(e.CENTER="center",e.RIGHT="right",e))(cA||{}),Qbe=(e=>(e.LEFT="left",e.RIGHT="right",e))(Qbe||{});const oF={asc:"desc",desc:"asc"},dA=Symbol("placeholder"),Get=(e,t,n)=>{var r;const o={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(o.flexShrink=1);const i={...(r=e.style)!=null?r:{},...o,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function Ket(e,t,n){const r=ee(()=>C(t).map((g,y)=>{var m,b;return{...g,key:(b=(m=g.key)!=null?m:g.dataKey)!=null?b:y}})),o=ee(()=>C(r).filter(g=>!g.hidden)),i=ee(()=>C(o).filter(g=>g.fixed==="left"||g.fixed===!0)),a=ee(()=>C(o).filter(g=>g.fixed==="right")),s=ee(()=>C(o).filter(g=>!g.fixed)),l=ee(()=>{const g=[];return C(i).forEach(y=>{g.push({...y,placeholderSign:dA})}),C(s).forEach(y=>{g.push(y)}),C(a).forEach(y=>{g.push({...y,placeholderSign:dA})}),g}),u=ee(()=>C(i).length||C(a).length),d=ee(()=>C(r).reduce((g,y)=>(g[y.key]=Get(y,C(n),e.fixed),g),{})),c=ee(()=>C(o).reduce((g,y)=>g+y.width,0)),f=g=>C(r).find(y=>y.key===g),p=g=>C(d)[g],v=(g,y)=>{g.width=y};function h(g){var y;const{key:m}=g.currentTarget.dataset;if(!m)return;const{sortState:b,sortBy:w}=e;let A=uA.ASC;dr(b)?A=oF[b[m]]:A=oF[w.order],(y=e.onColumnSort)==null||y.call(e,{column:f(m),key:m,order:A})}return{columns:r,columnsStyles:d,columnsTotalWidth:c,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,hasFixedColumns:u,mainColumns:l,normalColumns:s,visibleColumns:o,getColumn:f,getColumnStyle:p,updateColumnWidth:v,onColumnSorted:h}}const Yet=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const i=K({scrollLeft:0,scrollTop:0});function a(p){var v,h,g;const{scrollTop:y}=p;(v=t.value)==null||v.scrollTo(p),(h=n.value)==null||h.scrollToTop(y),(g=r.value)==null||g.scrollToTop(y)}function s(p){i.value=p,a(p)}function l(p){i.value.scrollTop=p,a(C(i))}function u(p){var v,h;i.value.scrollLeft=p,(h=(v=t.value)==null?void 0:v.scrollTo)==null||h.call(v,C(i))}function d(p){var v;s(p),(v=e.onScroll)==null||v.call(e,p)}function c({scrollTop:p}){const{scrollTop:v}=C(i);p!==v&&l(p)}function f(p,v="auto"){var h;(h=t.value)==null||h.scrollToRow(p,v)}return St(()=>C(i).scrollTop,(p,v)=>{p>v&&o()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:f,onScroll:d,onVerticalScroll:c}},Qet=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:o,ns:i,isScrolling:a})=>{const s=br(),{emit:l}=s,u=jo(!1),d=K(e.defaultExpandedRowKeys||[]),c=K(-1),f=jo(null),p=K({}),v=K({}),h=jo({}),g=jo({}),y=jo({}),m=ee(()=>$n(e.estimatedRowHeight));function b(M){var O;(O=e.onRowsRendered)==null||O.call(e,M),M.rowCacheEnd>C(c)&&(c.value=M.rowCacheEnd)}function w({hovered:M,rowKey:O}){if(a.value)return;o.vnode.el.querySelectorAll(`[rowkey="${String(O)}"]`).forEach(N=>{M?N.classList.add(i.is("hovered")):N.classList.remove(i.is("hovered"))})}function A({expanded:M,rowData:O,rowIndex:k,rowKey:R}){var N,W;const B=[...C(d)],z=B.indexOf(R);M?z===-1&&B.push(R):z>-1&&B.splice(z,1),d.value=B,l("update:expandedRowKeys",B),(N=e.onRowExpand)==null||N.call(e,{expanded:M,rowData:O,rowIndex:k,rowKey:R}),(W=e.onExpandedRowsChange)==null||W.call(e,B),o.vnode.el.querySelector(`.${i.is("hovered")}[rowkey="${String(R)}"]`)&&Yt(()=>w({hovered:!0,rowKey:R}))}const S=Wl(()=>{var M,O,k,R;u.value=!0,p.value={...C(p),...C(v)},E(C(f),!1),v.value={},f.value=null,(M=t.value)==null||M.forceUpdate(),(O=n.value)==null||O.forceUpdate(),(k=r.value)==null||k.forceUpdate(),(R=s.proxy)==null||R.$forceUpdate(),u.value=!1},0);function E(M,O=!1){C(m)&&[t,n,r].forEach(k=>{const R=C(k);R&&R.resetAfterRowIndex(M,O)})}function D(M,O,k){const R=C(f);(R===null||R>k)&&(f.value=k),v.value[M]=O}function _({rowKey:M,height:O,rowIndex:k},R){R?R===Qbe.RIGHT?y.value[M]=O:h.value[M]=O:g.value[M]=O;const N=Math.max(...[h,y,g].map(W=>W.value[M]||0));C(p)[M]!==N&&(D(M,N,k),S())}return{expandedRowKeys:d,lastRenderedRowIndex:c,isDynamic:m,isResetting:u,rowHeights:p,resetAfterIndex:E,onRowExpanded:A,onRowHovered:w,onRowsRendered:b,onRowHeightChange:_}},Zet=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=K({}),i=ee(()=>{const s={},{data:l,rowKey:u}=e,d=C(t);if(!d||!d.length)return l;const c=[],f=new Set;d.forEach(v=>f.add(v));let p=l.slice();for(p.forEach(v=>s[v[u]]=0);p.length>0;){const v=p.shift();c.push(v),f.has(v[u])&&Zt(v.children)&&v.children.length>0&&(p=[...v.children,...p],v.children.forEach(h=>s[h[u]]=s[v[u]]+1))}return o.value=s,c}),a=ee(()=>{const{data:s,expandColumnKey:l}=e;return l?C(i):s});return St(a,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:a,depthMap:o}},Xet=(e,t)=>e+t,jS=e=>Zt(e)?e.reduce(Xet,0):e,Rv=(e,t,n={})=>Rn(e)?e(t):e??n,wh=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=_i(e[t])}),e),Zbe=e=>Vo(e)?t=>jn(e,t):e,Jet=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const i=ee(()=>{const{fixed:y,width:m,vScrollbarSize:b}=e,w=m-b;return y?Math.max(Math.round(C(t)),w):w}),a=ee(()=>{const{height:y=0,maxHeight:m=0,footerHeight:b,hScrollbarSize:w}=e;if(m>0){const A=C(f),S=C(n),D=C(c)+A+S+w;return Math.min(D,m-b)}return y-b}),s=ee(()=>{const{maxHeight:y}=e,m=C(a);if($n(y)&&y>0)return m;const b=C(n)+C(c)+C(f);return Math.min(m,b)}),l=y=>y.width,u=ee(()=>jS(C(r).map(l))),d=ee(()=>jS(C(o).map(l))),c=ee(()=>jS(e.headerHeight)),f=ee(()=>{var y;return(((y=e.fixedData)==null?void 0:y.length)||0)*e.rowHeight}),p=ee(()=>C(a)-C(c)-C(f)),v=ee(()=>{const{style:y={},height:m,width:b}=e;return wh({...y,height:m,width:b})}),h=ee(()=>wh({height:e.footerHeight})),g=ee(()=>({top:_i(C(c)),bottom:_i(e.footerHeight),width:_i(e.width)}));return{bodyWidth:i,fixedTableHeight:s,mainTableHeight:a,leftTableWidth:u,rightTableWidth:d,windowHeight:p,footerHeight:h,emptyStyle:g,rootStyle:v,headerHeight:c}};function ett(e){const t=K(),n=K(),r=K(),{columns:o,columnsStyles:i,columnsTotalWidth:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:d,onColumnSorted:c}=Ket(e,co(e,"columns"),co(e,"fixed")),{scrollTo:f,scrollToLeft:p,scrollToTop:v,scrollToRow:h,onScroll:g,onVerticalScroll:y,scrollPos:m}=Yet(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:Ee}),b=Vt("table-v2"),w=br(),A=jo(!1),{expandedRowKeys:S,lastRenderedRowIndex:E,isDynamic:D,isResetting:_,rowHeights:M,resetAfterIndex:O,onRowExpanded:k,onRowHeightChange:R,onRowHovered:N,onRowsRendered:W}=Qet(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:w,ns:b,isScrolling:A}),{data:B,depthMap:z}=Zet(e,{expandedRowKeys:S,lastRenderedRowIndex:E,resetAfterIndex:O}),j=ee(()=>{const{estimatedRowHeight:Q,rowHeight:me}=e,De=C(B);return $n(Q)?Object.values(C(M)).reduce((pe,ie)=>pe+ie,0):De.length*me}),{bodyWidth:q,fixedTableHeight:Y,mainTableHeight:U,leftTableWidth:F,rightTableWidth:H,windowHeight:re,footerHeight:X,emptyStyle:te,rootStyle:Z,headerHeight:le}=Jet(e,{columnsTotalWidth:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,rowsHeight:j}),ve=K(),Pe=ee(()=>{const Q=C(B).length===0;return Zt(e.fixedData)?e.fixedData.length===0&&Q:Q});function Ae(Q){const{estimatedRowHeight:me,rowHeight:De,rowKey:pe}=e;return me?C(M)[C(B)[Q][pe]]||me:De}const he=K(!1);function Ee(){const{onEndReached:Q}=e;if(!Q)return;const{scrollTop:me}=C(m),De=C(j),pe=C(re),ie=De-(me+pe)+e.hScrollbarSize;!he.value&&C(E)>=0&&De<=me+C(U)-C(le)?(he.value=!0,Q(ie)):he.value=!1}return St(()=>C(j),()=>he.value=!1),St(()=>e.expandedRowKeys,Q=>S.value=Q,{deep:!0}),{columns:o,containerRef:ve,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:D,isResetting:_,isScrolling:A,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:a,data:B,expandedRowKeys:S,depthMap:z,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:d,bodyWidth:q,emptyStyle:te,rootStyle:Z,footerHeight:X,mainTableHeight:U,fixedTableHeight:Y,leftTableWidth:F,rightTableWidth:H,showEmpty:Pe,getRowHeight:Ae,onColumnSorted:c,onRowHovered:N,onRowExpanded:k,onRowsRendered:W,onRowHeightChange:R,scrollTo:f,scrollToLeft:p,scrollToTop:v,scrollToRow:h,onScroll:g,onVerticalScroll:y}}const _W=Symbol("tableV2"),Xbe="tableV2GridScrollLeft",Jbe=String,W5={type:ct(Array),required:!0},DW={type:ct(Array)},e2e={...DW,required:!0},ttt=String,Tee={type:ct(Array),default:()=>fi([])},Og={type:Number,required:!0},t2e={type:ct([String,Number,Symbol]),default:"id"},_ee={type:ct(Object)},jg=Jt({class:String,columns:W5,columnsStyles:{type:ct(Object),required:!0},depth:Number,expandColumnKey:ttt,estimatedRowHeight:{...Jg.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ct(Function)},onRowHover:{type:ct(Function)},onRowHeightChange:{type:ct(Function)},rowData:{type:ct(Object),required:!0},rowEventHandlers:{type:ct(Object)},rowIndex:{type:Number,required:!0},rowKey:t2e,style:{type:ct(Object)}}),II={type:Number,required:!0},IW=Jt({class:String,columns:W5,fixedHeaderData:{type:ct(Array)},headerData:{type:ct(Array),required:!0},headerHeight:{type:ct([Number,Array]),default:50},rowWidth:II,rowHeight:{type:Number,default:50},height:II,width:II}),HS=Jt({columns:W5,data:e2e,fixedData:DW,estimatedRowHeight:jg.estimatedRowHeight,width:Og,height:Og,headerWidth:Og,headerHeight:IW.headerHeight,bodyWidth:Og,rowHeight:Og,cache:wbe.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Jg.scrollbarAlwaysOn,scrollbarStartGap:Jg.scrollbarStartGap,scrollbarEndGap:Jg.scrollbarEndGap,class:Jbe,style:_ee,containerStyle:_ee,getRowHeight:{type:ct(Function),required:!0},rowKey:jg.rowKey,onRowsRendered:{type:ct(Function)},onScroll:{type:ct(Function)}}),ntt=Jt({cache:HS.cache,estimatedRowHeight:jg.estimatedRowHeight,rowKey:t2e,headerClass:{type:ct([String,Function])},headerProps:{type:ct([Object,Function])},headerCellProps:{type:ct([Object,Function])},headerHeight:IW.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ct([String,Function])},rowProps:{type:ct([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ct([Object,Function])},columns:W5,data:e2e,dataGetter:{type:ct(Function)},fixedData:DW,expandColumnKey:jg.expandColumnKey,expandedRowKeys:Tee,defaultExpandedRowKeys:Tee,class:Jbe,fixed:Boolean,style:{type:ct(Object)},width:Og,height:Og,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Jg.hScrollbarSize,vScrollbarSize:Jg.vScrollbarSize,scrollbarAlwaysOn:xbe.alwaysOn,sortBy:{type:ct(Object),default:()=>({})},sortState:{type:ct(Object),default:void 0},onColumnSort:{type:ct(Function)},onExpandedRowsChange:{type:ct(Function)},onEndReached:{type:ct(Function)},onRowExpand:jg.onRowExpand,onScroll:HS.onScroll,onRowsRendered:HS.onRowsRendered,rowEventHandlers:jg.rowEventHandlers}),rtt="ElTableV2Header",ott=nt({name:rtt,props:IW,setup(e,{slots:t,expose:n}){const r=Vt("table-v2"),o=dn(Xbe),i=K(),a=ee(()=>wh({width:e.width,height:e.height})),s=ee(()=>wh({width:e.rowWidth,height:e.height})),l=ee(()=>Ya(C(e.headerHeight))),u=f=>{const p=C(i);Yt(()=>{p?.scroll&&p.scroll({left:f})})},d=()=>{const f=r.e("fixed-header-row"),{columns:p,fixedHeaderData:v,rowHeight:h}=e;return v?.map((g,y)=>{var m;const b=wh({height:h,width:"100%"});return(m=t.fixed)==null?void 0:m.call(t,{class:f,columns:p,rowData:g,rowIndex:-(y+1),style:b})})},c=()=>{const f=r.e("dynamic-header-row"),{columns:p}=e;return C(l).map((v,h)=>{var g;const y=wh({width:"100%",height:v});return(g=t.dynamic)==null?void 0:g.call(t,{class:f,columns:p,headerIndex:h,style:y})})};return Qc(()=>{o?.value&&u(o.value)}),n({scrollToLeft:u}),()=>{if(!(e.height<=0))return He("div",{ref:i,class:e.class,style:C(a),role:"rowgroup"},[He("div",{style:C(s),class:r.e("header")},[c(),d()])])}}});var itt=ott;const att=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},o)=>{let i=null,a=0,s=0;const l=(d,c)=>{const f=d<=0&&t.value||d>=0&&e.value,p=c<=0&&r.value||c>=0&&n.value;return f&&p};return{hasReachedEdge:l,onWheel:d=>{Pv(i);let c=d.deltaX,f=d.deltaY;Math.abs(c)>Math.abs(f)?f=0:c=0,d.shiftKey&&f!==0&&(c=f,f=0),!(l(a,s)&&l(a+c,s+f))&&(a+=c,s+=f,d.preventDefault(),i=s0(()=>{o(a,s),a=0,s=0}))}}},n2e=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:i,getEstimatedTotalWidth:a,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:c,initCache:f,injectToInstance:p,validateProps:v})=>nt({name:e??"ElVirtualList",props:Jg,emits:[IE,OE],setup(h,{emit:g,expose:y,slots:m}){const b=Vt("vl");v(h);const w=br(),A=K(f(h,w));p?.(w,A);const S=K(),E=K(),D=K(),_=K(null),M=K({isScrolling:!1,scrollLeft:$n(h.initScrollLeft)?h.initScrollLeft:0,scrollTop:$n(h.initScrollTop)?h.initScrollTop:0,updateRequested:!1,xAxisScrollDir:j1,yAxisScrollDir:j1}),O=mbe(),k=ee(()=>Number.parseInt(`${h.height}`,10)),R=ee(()=>Number.parseInt(`${h.width}`,10)),N=ee(()=>{const{totalColumn:pe,totalRow:ie,columnCache:ue}=h,{isScrolling:Be,xAxisScrollDir:Me,scrollLeft:Fe}=C(M);if(pe===0||ie===0)return[0,0,0,0];const ze=r(h,Fe,C(A)),Ne=o(h,ze,Fe,C(A)),Re=!Be||Me===ME?Math.max(1,ue):1,gt=!Be||Me===j1?Math.max(1,ue):1;return[Math.max(0,ze-Re),Math.max(0,Math.min(pe-1,Ne+gt)),ze,Ne]}),W=ee(()=>{const{totalColumn:pe,totalRow:ie,rowCache:ue}=h,{isScrolling:Be,yAxisScrollDir:Me,scrollTop:Fe}=C(M);if(pe===0||ie===0)return[0,0,0,0];const ze=d(h,Fe,C(A)),Ne=c(h,ze,Fe,C(A)),Re=!Be||Me===ME?Math.max(1,ue):1,gt=!Be||Me===j1?Math.max(1,ue):1;return[Math.max(0,ze-Re),Math.max(0,Math.min(ie-1,Ne+gt)),ze,Ne]}),B=ee(()=>i(h,C(A))),z=ee(()=>a(h,C(A))),j=ee(()=>{var pe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:h.direction,height:$n(h.height)?`${h.height}px`:h.height,width:$n(h.width)?`${h.width}px`:h.width},(pe=h.style)!=null?pe:{}]}),q=ee(()=>{const pe=`${C(z)}px`;return{height:`${C(B)}px`,pointerEvents:C(M).isScrolling?"none":void 0,width:pe}}),Y=()=>{const{totalColumn:pe,totalRow:ie}=h;if(pe>0&&ie>0){const[Ne,Re,gt,Bt]=C(N),[Lt,an,Kt,Ht]=C(W);g(IE,{columnCacheStart:Ne,columnCacheEnd:Re,rowCacheStart:Lt,rowCacheEnd:an,columnVisibleStart:gt,columnVisibleEnd:Bt,rowVisibleStart:Kt,rowVisibleEnd:Ht})}const{scrollLeft:ue,scrollTop:Be,updateRequested:Me,xAxisScrollDir:Fe,yAxisScrollDir:ze}=C(M);g(OE,{xAxisScrollDir:Fe,scrollLeft:ue,yAxisScrollDir:ze,scrollTop:Be,updateRequested:Me})},U=pe=>{const{clientHeight:ie,clientWidth:ue,scrollHeight:Be,scrollLeft:Me,scrollTop:Fe,scrollWidth:ze}=pe.currentTarget,Ne=C(M);if(Ne.scrollTop===Fe&&Ne.scrollLeft===Me)return;let Re=Me;if(fee(h.direction))switch(NE()){case sA:Re=-Me;break;case CW:Re=ze-ue-Me;break}M.value={...Ne,isScrolling:!0,scrollLeft:Re,scrollTop:Math.max(0,Math.min(Fe,Be-ie)),updateRequested:!0,xAxisScrollDir:$g(Ne.scrollLeft,Re),yAxisScrollDir:$g(Ne.scrollTop,Fe)},Yt(()=>le()),ve(),Y()},F=(pe,ie)=>{const ue=C(k),Be=(B.value-ue)/ie*pe;X({scrollTop:Math.min(B.value-ue,Be)})},H=(pe,ie)=>{const ue=C(R),Be=(z.value-ue)/ie*pe;X({scrollLeft:Math.min(z.value-ue,Be)})},{onWheel:re}=att({atXStartEdge:ee(()=>M.value.scrollLeft<=0),atXEndEdge:ee(()=>M.value.scrollLeft>=z.value-C(R)),atYStartEdge:ee(()=>M.value.scrollTop<=0),atYEndEdge:ee(()=>M.value.scrollTop>=B.value-C(k))},(pe,ie)=>{var ue,Be,Me,Fe;(Be=(ue=E.value)==null?void 0:ue.onMouseUp)==null||Be.call(ue),(Fe=(Me=D.value)==null?void 0:Me.onMouseUp)==null||Fe.call(Me);const ze=C(R),Ne=C(k);X({scrollLeft:Math.min(M.value.scrollLeft+pe,z.value-ze),scrollTop:Math.min(M.value.scrollTop+ie,B.value-Ne)})});Ro(S,"wheel",re,{passive:!1});const X=({scrollLeft:pe=M.value.scrollLeft,scrollTop:ie=M.value.scrollTop})=>{pe=Math.max(pe,0),ie=Math.max(ie,0);const ue=C(M);ie===ue.scrollTop&&pe===ue.scrollLeft||(M.value={...ue,xAxisScrollDir:$g(ue.scrollLeft,pe),yAxisScrollDir:$g(ue.scrollTop,ie),scrollLeft:pe,scrollTop:ie,updateRequested:!0},Yt(()=>le()),ve(),Y())},te=(pe=0,ie=0,ue=$u)=>{const Be=C(M);ie=Math.max(0,Math.min(ie,h.totalColumn-1)),pe=Math.max(0,Math.min(pe,h.totalRow-1));const Me=Qme(b.namespace.value),Fe=C(A),ze=i(h,Fe),Ne=a(h,Fe);X({scrollLeft:s(h,ie,ue,Be.scrollLeft,Fe,Ne>h.width?Me:0),scrollTop:l(h,pe,ue,Be.scrollTop,Fe,ze>h.height?Me:0)})},Z=(pe,ie)=>{const{columnWidth:ue,direction:Be,rowHeight:Me}=h,Fe=O.value(t&&ue,t&&Me,t&&Be),ze=`${pe},${ie}`;if(no(Fe,ze))return Fe[ze];{const[,Ne]=n(h,ie,C(A)),Re=C(A),gt=fee(Be),[Bt,Lt]=u(h,pe,Re),[an]=n(h,ie,Re);return Fe[ze]={position:"absolute",left:gt?void 0:`${Ne}px`,right:gt?`${Ne}px`:void 0,top:`${Lt}px`,height:`${Bt}px`,width:`${an}px`},Fe[ze]}},le=()=>{M.value.isScrolling=!1,Yt(()=>{O.value(-1,null,null)})};qn(()=>{if(!Xr)return;const{initScrollLeft:pe,initScrollTop:ie}=h,ue=C(S);ue&&($n(pe)&&(ue.scrollLeft=pe),$n(ie)&&(ue.scrollTop=ie)),Y()});const ve=()=>{const{direction:pe}=h,{scrollLeft:ie,scrollTop:ue,updateRequested:Be}=C(M),Me=C(S);if(Be&&Me){if(pe===iy)switch(NE()){case sA:{Me.scrollLeft=-ie;break}case AW:{Me.scrollLeft=ie;break}default:{const{clientWidth:Fe,scrollWidth:ze}=Me;Me.scrollLeft=ze-Fe-ie;break}}else Me.scrollLeft=Math.max(0,ie);Me.scrollTop=Math.max(0,ue)}},{resetAfterColumnIndex:Pe,resetAfterRowIndex:Ae,resetAfter:he}=w.proxy;y({windowRef:S,innerRef:_,getItemStyleCache:O,scrollTo:X,scrollToItem:te,states:M,resetAfterColumnIndex:Pe,resetAfterRowIndex:Ae,resetAfter:he});const Ee=()=>{const{scrollbarAlwaysOn:pe,scrollbarStartGap:ie,scrollbarEndGap:ue,totalColumn:Be,totalRow:Me}=h,Fe=C(R),ze=C(k),Ne=C(z),Re=C(B),{scrollLeft:gt,scrollTop:Bt}=C(M),Lt=jn(GL,{ref:E,alwaysOn:pe,startGap:ie,endGap:ue,class:b.e("horizontal"),clientSize:Fe,layout:"horizontal",onScroll:H,ratio:Fe*100/Ne,scrollFrom:gt/(Ne-Fe),total:Me,visible:!0}),an=jn(GL,{ref:D,alwaysOn:pe,startGap:ie,endGap:ue,class:b.e("vertical"),clientSize:ze,layout:"vertical",onScroll:F,ratio:ze*100/Re,scrollFrom:Bt/(Re-ze),total:Be,visible:!0});return{horizontalScrollbar:Lt,verticalScrollbar:an}},Q=()=>{var pe;const[ie,ue]=C(N),[Be,Me]=C(W),{data:Fe,totalColumn:ze,totalRow:Ne,useIsScrolling:Re,itemKey:gt}=h,Bt=[];if(Ne>0&&ze>0)for(let Lt=Be;Lt<=Me;Lt++)for(let an=ie;an<=ue;an++){const Kt=gt({columnIndex:an,data:Fe,rowIndex:Lt});Bt.push(jn(Rt,{key:Kt},(pe=m.default)==null?void 0:pe.call(m,{columnIndex:an,data:Fe,isScrolling:Re?C(M).isScrolling:void 0,style:Z(Lt,an),rowIndex:Lt})))}return Bt},me=()=>{const pe=mr(h.innerElement),ie=Q();return[jn(pe,{style:C(q),ref:_},In(pe)?ie:{default:()=>ie})]};return()=>{const pe=mr(h.containerElement),{horizontalScrollbar:ie,verticalScrollbar:ue}=Ee(),Be=me();return jn("div",{key:0,class:b.e("wrapper"),role:h.role},[jn(pe,{class:h.className,style:C(j),onScroll:U,ref:S},In(pe)?Be:{default:()=>Be}),ie,ue])}}}),{max:LE,min:r2e,floor:o2e}=Math,stt={column:"columnWidth",row:"rowHeight"},iF={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Ef=(e,t,n,r)=>{const[o,i,a]=[n[r],e[stt[r]],n[iF[r]]];if(t>a){let s=0;if(a>=0){const l=o[a];s=l.offset+l.size}for(let l=a+1;l<=t;l++){const u=i(l);o[l]={offset:s,size:u},s+=u}n[iF[r]]=t}return o[t]},i2e=(e,t,n,r,o,i)=>{for(;n<=r;){const a=n+o2e((r-n)/2),s=Ef(e,a,t,i).offset;if(s===o)return a;s<o?n=a+1:r=a-1}return LE(0,n-1)},ltt=(e,t,n,r,o)=>{const i=o==="column"?e.totalColumn:e.totalRow;let a=1;for(;n<i&&Ef(e,n,t,o).offset<r;)n+=a,a*=2;return i2e(e,t,o2e(n/2),r2e(n,i-1),r,o)},Dee=(e,t,n,r)=>{const[o,i]=[t[r],t[iF[r]]];return(i>0?o[i].offset:0)>=n?i2e(e,t,0,i,n,r):ltt(e,t,LE(0,i),n,r)},a2e=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const s=r[n];o=s.offset+s.size}const a=(e-n-1)*t;return o+a},s2e=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let o=0;if(r>e&&(r=e-1),r>=0){const s=t[r];o=s.offset+s.size}const a=(e-r-1)*n;return o+a},utt={column:s2e,row:a2e},Iee=(e,t,n,r,o,i,a)=>{const[s,l]=[i==="row"?e.height:e.width,utt[i]],u=Ef(e,t,o,i),d=l(e,o),c=LE(0,r2e(d-s,u.offset)),f=LE(0,u.offset-s+a+u.size);switch(n===vD&&(r>=f-s&&r<=c+s?n=$u:n=Ed),n){case iA:return c;case aA:return f;case Ed:return Math.round(f+(c-f)/2);case $u:default:return r>=f&&r<=c?r:f>c||r<f?f:c}},ctt=n2e({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=Ef(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=Ef(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,o,i)=>Iee(e,t,n,r,o,"column",i),getRowOffset:(e,t,n,r,o,i)=>Iee(e,t,n,r,o,"row",i),getColumnStartIndexForOffset:(e,t,n)=>Dee(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const o=Ef(e,t,r,"column"),i=n+e.width;let a=o.offset+o.size,s=t;for(;s<e.totalColumn-1&&a<i;)s++,a+=Ef(e,t,r,"column").size;return s},getEstimatedTotalHeight:a2e,getEstimatedTotalWidth:s2e,getRowStartIndexForOffset:(e,t,n)=>Dee(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:o,height:i}=e,a=Ef(e,t,r,"row"),s=n+i;let l=a.size+a.offset,u=t;for(;u<o-1&&l<s;)u++,l+=Ef(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:a},s)=>{var l,u;s=Vr(s)?!0:s,$n(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),$n(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},r=(i,a)=>{n({columnIndex:i},a)},o=(i,a)=>{n({rowIndex:i},a)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=$L,estimatedRowHeight:t=$L})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),dtt=n2e({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,o,i,a,s)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,r*t),d=Math.max(0,r*t-n+s+t);switch(o==="smart"&&(i>=d-n&&i<=u+n?o=$u:o=Ed),o){case iA:return u;case aA:return d;case Ed:{const c=Math.round(d+(u-d)/2);return c<Math.ceil(n/2)?0:c>l+Math.floor(n/2)?l:c}case $u:default:return i>=d&&i<=u?i:d>u||i<d?d:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,o,i,a,s)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,r*e),d=Math.max(0,r*e-t+s+e);switch(o===vD&&(i>=d-t&&i<=u+t?o=$u:o=Ed),o){case iA:return u;case aA:return d;case Ed:{const c=Math.round(d+(u-d)/2);return c<Math.ceil(t/2)?0:c>l+Math.floor(t/2)?l:c}case $u:default:return i>=d&&i<=u?i:d>u||i<d?d:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,o)=>{const i=r*e,a=Math.ceil((n+o-i)/e);return Math.max(0,Math.min(t-1,r+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,o)=>{const i=r*e,a=Math.ceil((n+o-i)/e);return Math.max(0,Math.min(t-1,r+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),ftt="ElTableV2Grid",ptt=e=>{const t=K(),n=K(),r=K(0),o=ee(()=>{const{data:g,rowHeight:y,estimatedRowHeight:m}=e;if(!m)return g.length*y}),i=ee(()=>{const{fixedData:g,rowHeight:y}=e;return(g?.length||0)*y}),a=ee(()=>jS(e.headerHeight)),s=ee(()=>{const{height:g}=e;return Math.max(0,g-C(a)-C(i))}),l=ee(()=>C(a)+C(i)>0),u=({data:g,rowIndex:y})=>g[y][e.rowKey];function d({rowCacheStart:g,rowCacheEnd:y,rowVisibleStart:m,rowVisibleEnd:b}){var w;(w=e.onRowsRendered)==null||w.call(e,{rowCacheStart:g,rowCacheEnd:y,rowVisibleStart:m,rowVisibleEnd:b})}function c(g,y){var m;(m=n.value)==null||m.resetAfterRowIndex(g,y)}function f(g,y){const m=C(t),b=C(n);dr(g)?(m?.scrollToLeft(g.scrollLeft),r.value=g.scrollLeft,b?.scrollTo(g)):(m?.scrollToLeft(g),r.value=g,b?.scrollTo({scrollLeft:g,scrollTop:y}))}function p(g){var y;(y=C(n))==null||y.scrollTo({scrollTop:g})}function v(g,y){var m;(m=C(n))==null||m.scrollToItem(g,1,y)}function h(){var g,y;(g=C(n))==null||g.$forceUpdate(),(y=C(t))==null||y.$forceUpdate()}return St(()=>e.bodyWidth,()=>{var g;$n(e.estimatedRowHeight)&&((g=n.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:h,fixedRowHeight:i,gridHeight:s,hasHeader:l,headerHeight:a,headerRef:t,totalHeight:o,itemKey:u,onItemRendered:d,resetAfterRowIndex:c,scrollTo:f,scrollToTop:p,scrollToRow:v,scrollLeft:r}},htt=nt({name:ftt,props:HS,setup(e,{slots:t,expose:n}){const{ns:r}=dn(_W),{bodyRef:o,fixedRowHeight:i,gridHeight:a,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:d,forceUpdate:c,itemKey:f,onItemRendered:p,resetAfterRowIndex:v,scrollTo:h,scrollToTop:g,scrollToRow:y,scrollLeft:m}=ptt(e);_r(Xbe,m),Db(async()=>{var w;await Yt();const A=(w=o.value)==null?void 0:w.states.scrollTop;A&&g(Math.round(A)+1)}),n({forceUpdate:c,totalHeight:d,scrollTo:h,scrollToTop:g,scrollToRow:y,resetAfterRowIndex:v});const b=()=>e.bodyWidth;return()=>{const{cache:w,columns:A,data:S,fixedData:E,useIsScrolling:D,scrollbarAlwaysOn:_,scrollbarEndGap:M,scrollbarStartGap:O,style:k,rowHeight:R,bodyWidth:N,estimatedRowHeight:W,headerWidth:B,height:z,width:j,getRowHeight:q,onScroll:Y}=e,U=$n(W),F=U?ctt:dtt,H=C(u);return He("div",{role:"table",class:[r.e("table"),e.class],style:k},[He(F,{ref:o,data:S,useIsScrolling:D,itemKey:f,columnCache:0,columnWidth:U?b:N,totalColumn:1,totalRow:S.length,rowCache:w,rowHeight:U?q:R,width:j,height:C(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:O,scrollbarEndGap:M,scrollbarAlwaysOn:_,onScroll:Y,onItemRendered:p,perfMode:!1},{default:re=>{var X;const te=S[re.rowIndex];return(X=t.row)==null?void 0:X.call(t,{...re,columns:A,rowData:te})}}),C(s)&&He(itt,{ref:l,class:r.e("header-wrapper"),columns:A,headerData:S,headerHeight:e.headerHeight,fixedHeaderData:E,rowWidth:B,rowHeight:R,width:j,height:Math.min(H+C(i),z)},{dynamic:t.header,fixed:t.row})])}}});var OW=htt;function gtt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vo(e)}const vtt=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return He(OW,vr({ref:n},r),gtt(t)?t:{default:()=>[t]})};var mtt=vtt;function ytt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vo(e)}const btt=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return He(OW,vr({ref:n},r),ytt(t)?t:{default:()=>[t]})};var wtt=btt;function Att(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vo(e)}const Ctt=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return He(OW,vr({ref:n},r),Att(t)?t:{default:()=>[t]})};var xtt=Ctt;const Stt=e=>{const{isScrolling:t}=dn(_W),n=K(!1),r=K(),o=ee(()=>$n(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=C(r);if(!u)return;const{columns:d,onRowHeightChange:c,rowKey:f,rowIndex:p,style:v}=e,{height:h}=u.getBoundingClientRect();n.value=!0,Yt(()=>{if(l||h!==Number.parseInt(v.height)){const g=d[0],y=g?.placeholderSign===dA;c?.({rowKey:f,height:h,rowIndex:p},g&&!y&&g.fixed)}})},a=ee(()=>{const{rowData:l,rowIndex:u,rowKey:d,onRowHover:c}=e,f=e.rowEventHandlers||{},p={};return Object.entries(f).forEach(([v,h])=>{Rn(h)&&(p[v]=g=>{h({event:g,rowData:l,rowIndex:u,rowKey:d})})}),c&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:h})=>{const g=p[v];p[v]=y=>{c({event:y,hovered:h,rowData:l,rowIndex:u,rowKey:d}),g?.(y)}}),p}),s=l=>{const{onRowExpand:u,rowData:d,rowIndex:c,rowKey:f}=e;u?.({expanded:l,rowData:d,rowIndex:c,rowKey:f})};return qn(()=>{C(o)&&i(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:r,eventHandlers:a,onExpand:s}},Ett="ElTableV2TableRow",ktt=nt({name:Ett,props:jg,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:i,measurable:a,measured:s,rowRef:l,onExpand:u}=Stt(e);return t({onExpand:u}),()=>{const{columns:d,columnsStyles:c,expandColumnKey:f,depth:p,rowData:v,rowIndex:h,style:g}=e;let y=d.map((m,b)=>{const w=Zt(v.children)&&v.children.length>0&&m.key===f;return n.cell({column:m,columns:d,columnIndex:b,depth:p,style:c[m.key],rowData:v,rowIndex:h,isScrolling:C(i),expandIconProps:w?{rowData:v,rowIndex:h,onExpand:u}:void 0})});if(n.row&&(y=n.row({cells:y.map(m=>Zt(m)&&m.length===1?m[0]:m),style:g,columns:d,depth:p,rowData:v,rowIndex:h,isScrolling:C(i)})),C(a)){const{height:m,...b}=g||{},w=C(s);return He("div",vr({ref:l,class:e.class,style:w?g:b,role:"row"},r,C(o)),[y])}return He("div",vr(r,{ref:l,class:e.class,style:g,role:"row"},C(o)),[y])}}});var Ttt=ktt;function _tt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vo(e)}const Dtt=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:o,expandColumnKey:i,expandedRowKeys:a,estimatedRowHeight:s,hasFixedColumns:l,rowData:u,rowIndex:d,style:c,isScrolling:f,rowProps:p,rowClass:v,rowKey:h,rowEventHandlers:g,ns:y,onRowHovered:m,onRowExpanded:b}=e,w=Rv(v,{columns:n,rowData:u,rowIndex:d},""),A=Rv(p,{columns:n,rowData:u,rowIndex:d}),S=u[h],E=o[S]||0,D=!!i,_=d<0,M=[y.e("row"),w,{[y.e(`row-depth-${E}`)]:D&&d>=0,[y.is("expanded")]:D&&a.includes(S),[y.is("fixed")]:!E&&_,[y.is("customized")]:!!t.row}],O=l?m:void 0,k={...A,columns:n,columnsStyles:r,class:M,depth:E,expandColumnKey:i,estimatedRowHeight:_?void 0:s,isScrolling:f,rowIndex:d,rowData:u,rowKey:S,rowEventHandlers:g,style:c};return He(Ttt,vr(k,{onRowExpand:b,onMouseenter:W=>{O?.({hovered:!0,rowKey:S,event:W,rowData:u,rowIndex:d})},onMouseleave:W=>{O?.({hovered:!1,rowKey:S,event:W,rowData:u,rowIndex:d})},rowkey:S}),_tt(t)?t:{default:()=>[t]})};var Itt=Dtt;const MW=(e,{slots:t})=>{var n;const{cellData:r,style:o}=e,i=((n=r?.toString)==null?void 0:n.call(r))||"",a=ht(t,"default",e,()=>[i]);return He("div",{class:e.class,title:i,style:o},[a])};MW.displayName="ElTableV2Cell";MW.inheritAttrs=!1;var Ott=MW;const Mtt=e=>{const{expanded:t,expandable:n,onExpand:r,style:o,size:i}=e,a={onClick:n?()=>r(!t):void 0,class:e.class};return He(Dn,vr(a,{size:i,style:o}),{default:()=>[He(Da,null,null)]})};var Ptt=Mtt;const l2e=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:o,isScrolling:i,rowData:a,rowIndex:s,style:l,expandedRowKeys:u,ns:d,cellProps:c,expandColumnKey:f,indentSize:p,iconSize:v,rowKey:h},{slots:g})=>{const y=wh(l);if(t.placeholderSign===dA)return He("div",{class:d.em("row-cell","placeholder"),style:y},null);const{cellRenderer:m,dataKey:b,dataGetter:w}=t,A=Rn(w)?w({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:s}):Xi(a,b??""),S=Rv(c,{cellData:A,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:a}),E={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:A,isScrolling:i,rowData:a,rowIndex:s},D=Zbe(m),_=D?D(E):ht(g,"default",E,()=>[He(Ott,E,null)]),M=[d.e("row-cell"),t.class,t.align===cA.CENTER&&d.is("align-center"),t.align===cA.RIGHT&&d.is("align-right")],O=s>=0&&f&&t.key===f,k=s>=0&&u.includes(a[h]);let R;const N=`margin-inline-start: ${r*p}px;`;return O&&(dr(o)?R=He(Ptt,vr(o,{class:[d.e("expand-icon"),d.is("expanded",k)],size:v,expanded:k,style:N,expandable:!0}),null):R=He("div",{style:[N,`width: ${v}px; height: ${v}px;`].join(" ")},null)),He("div",vr({class:M,style:y},S,{role:"cell"}),[R,_])};l2e.inheritAttrs=!1;var Oee=l2e;const Ntt=Jt({class:String,columns:W5,columnsStyles:{type:ct(Object),required:!0},headerIndex:Number,style:{type:ct(Object)}}),Rtt=nt({name:"ElTableV2HeaderRow",props:Ntt,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:o,style:i}=e;let a=n.map((s,l)=>t.cell({columns:n,column:s,columnIndex:l,headerIndex:o,style:r[s.key]}));return t.header&&(a=t.header({cells:a.map(s=>Zt(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),He("div",{class:e.class,style:i,role:"row"},[a])}}});var Btt=Rtt;function Ltt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vo(e)}const Ftt=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:o,headerProps:i,ns:a},{slots:s})=>{const l={columns:e,headerIndex:n},u=[a.e("header-row"),Rv(o,l,""),{[a.is("customized")]:!!s.header}],d={...Rv(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return He(Btt,d,Ltt(s)?s:{default:()=>[s]})};var Utt=Ftt;const PW=(e,{slots:t})=>ht(t,"default",e,()=>{var n,r;return[He("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])]});PW.displayName="ElTableV2HeaderCell";PW.inheritAttrs=!1;var ztt=PW;const $tt=e=>{const{sortOrder:t}=e;return He(Dn,{size:14,class:e.class},{default:()=>[t===uA.ASC?He(RLe,null,null):He(PLe,null,null)]})};var jtt=$tt;const Htt=(e,{slots:t})=>{const{column:n,ns:r,style:o,onColumnSorted:i}=e,a=wh(o);if(n.placeholderSign===dA)return He("div",{class:r.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,d={...e,class:r.e("header-cell-text")},c=Zbe(s),f=c?c(d):ht(t,"default",d,()=>[He(ztt,d,null)]),{sortBy:p,sortState:v,headerCellProps:h}=e;let g,y;if(v){const w=v[n.key];g=!!oF[w],y=g?w:uA.ASC}else g=n.key===p.key,y=g?p.order:uA.ASC;const m=[r.e("header-cell"),Rv(l,e,""),n.align===cA.CENTER&&r.is("align-center"),n.align===cA.RIGHT&&r.is("align-right"),u&&r.is("sortable")],b={...Rv(h,e),onClick:n.sortable?i:void 0,class:m,style:a,"data-key":n.key};return He("div",vr(b,{role:"columnheader"}),[f,u&&He(jtt,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:y},null)])};var Mee=Htt;const u2e=(e,{slots:t})=>{var n;return He("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};u2e.displayName="ElTableV2Footer";var Wtt=u2e;const c2e=(e,{slots:t})=>{const n=ht(t,"default",{},()=>[He(obe,null,null)]);return He("div",{class:e.class,style:e.style},[n])};c2e.displayName="ElTableV2Empty";var Vtt=c2e;const d2e=(e,{slots:t})=>{var n;return He("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};d2e.displayName="ElTableV2Overlay";var qtt=d2e;function R2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vo(e)}const Gtt="ElTableV2",Ktt=nt({name:Gtt,props:ntt,setup(e,{slots:t,expose:n}){const r=Vt("table-v2"),{columnsStyles:o,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:c,data:f,depthMap:p,expandedRowKeys:v,hasFixedColumns:h,mainTableRef:g,leftTableRef:y,rightTableRef:m,isDynamic:b,isResetting:w,isScrolling:A,bodyWidth:S,emptyStyle:E,rootStyle:D,footerHeight:_,showEmpty:M,scrollTo:O,scrollToLeft:k,scrollToTop:R,scrollToRow:N,getRowHeight:W,onColumnSorted:B,onRowHeightChange:z,onRowHovered:j,onRowExpanded:q,onRowsRendered:Y,onScroll:U,onVerticalScroll:F}=ett(e);return n({scrollTo:O,scrollToLeft:k,scrollToTop:R,scrollToRow:N}),_r(_W,{ns:r,isResetting:w,isScrolling:A}),()=>{const{cache:H,cellProps:re,estimatedRowHeight:X,expandColumnKey:te,fixedData:Z,headerHeight:le,headerClass:ve,headerProps:Pe,headerCellProps:Ae,sortBy:he,sortState:Ee,rowHeight:Q,rowClass:me,rowEventHandlers:De,rowKey:pe,rowProps:ie,scrollbarAlwaysOn:ue,indentSize:Be,iconSize:Me,useIsScrolling:Fe,vScrollbarSize:ze,width:Ne}=e,Re=C(f),gt={cache:H,class:r.e("main"),columns:C(s),data:Re,fixedData:Z,estimatedRowHeight:X,bodyWidth:C(S),headerHeight:le,headerWidth:C(S),height:C(l),mainTableRef:g,rowKey:pe,rowHeight:Q,scrollbarAlwaysOn:ue,scrollbarStartGap:2,scrollbarEndGap:ze,useIsScrolling:Fe,width:Ne,getRowHeight:W,onRowsRendered:Y,onScroll:U},Bt=C(d),Lt=C(u),an={cache:H,class:r.e("left"),columns:C(i),data:Re,fixedData:Z,estimatedRowHeight:X,leftTableRef:y,rowHeight:Q,bodyWidth:Bt,headerWidth:Bt,headerHeight:le,height:Lt,rowKey:pe,scrollbarAlwaysOn:ue,scrollbarStartGap:2,scrollbarEndGap:ze,useIsScrolling:Fe,width:Bt,getRowHeight:W,onScroll:F},Kt=C(c),Ht={cache:H,class:r.e("right"),columns:C(a),data:Re,fixedData:Z,estimatedRowHeight:X,rightTableRef:m,rowHeight:Q,bodyWidth:Kt,headerWidth:Kt,headerHeight:le,height:Lt,rowKey:pe,scrollbarAlwaysOn:ue,scrollbarStartGap:2,scrollbarEndGap:ze,width:Kt,style:`--${C(r.namespace)}-table-scrollbar-size: ${ze}px`,useIsScrolling:Fe,getRowHeight:W,onScroll:F},pt=C(o),Dt={ns:r,depthMap:C(p),columnsStyles:pt,expandColumnKey:te,expandedRowKeys:C(v),estimatedRowHeight:X,hasFixedColumns:C(h),rowProps:ie,rowClass:me,rowKey:pe,rowEventHandlers:De,onRowHovered:j,onRowExpanded:q,onRowHeightChange:z},dt={cellProps:re,expandColumnKey:te,indentSize:Be,iconSize:Me,rowKey:pe,expandedRowKeys:C(v),ns:r},it={ns:r,headerClass:ve,headerProps:Pe,columnsStyles:pt},de={ns:r,sortBy:he,sortState:Ee,headerCellProps:Ae,onColumnSorted:B},tt={row:Tn=>He(Itt,vr(Tn,Dt),{row:t.row,cell:Nn=>{let We;return t.cell?He(Oee,vr(Nn,dt,{style:pt[Nn.column.key]}),R2(We=t.cell(Nn))?We:{default:()=>[We]}):He(Oee,vr(Nn,dt,{style:pt[Nn.column.key]}),null)}}),header:Tn=>He(Utt,vr(Tn,it),{header:t.header,cell:Nn=>{let We;return t["header-cell"]?He(Mee,vr(Nn,de,{style:pt[Nn.column.key]}),R2(We=t["header-cell"](Nn))?We:{default:()=>[We]}):He(Mee,vr(Nn,de,{style:pt[Nn.column.key]}),null)}})},ft=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:C(b)}],Mt={class:r.e("footer"),style:C(_)};return He("div",{class:ft,style:C(D)},[He(mtt,gt,R2(tt)?tt:{default:()=>[tt]}),He(wtt,an,R2(tt)?tt:{default:()=>[tt]}),He(xtt,Ht,R2(tt)?tt:{default:()=>[tt]}),t.footer&&He(Wtt,Mt,{default:t.footer}),C(M)&&He(Vtt,{class:r.e("empty"),style:C(E)},{default:t.empty}),t.overlay&&He(qtt,{class:r.e("overlay")},{default:t.overlay})])}}});var Ytt=Ktt;const Qtt=Jt({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ct(Function)}}),Ztt=e=>{const t=K(),n=K(0),r=K(0);let o;return qn(()=>{o=li(t,([i])=>{const{width:a,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:d,paddingBottom:c}=getComputedStyle(i.target),f=Number.parseInt(l)||0,p=Number.parseInt(u)||0,v=Number.parseInt(d)||0,h=Number.parseInt(c)||0;n.value=a-f-p,r.value=s-v-h}).stop}),Jr(()=>{o?.()}),St([n,r],([i,a])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:a})}),{sizer:t,width:n,height:r}},Xtt=nt({name:"ElAutoResizer",props:Qtt,setup(e,{slots:t}){const n=Vt("auto-resizer"),{height:r,width:o,sizer:i}=Ztt(e),a={width:"100%",height:"100%"};return()=>{var s;return He("div",{ref:i,class:n.b(),style:a},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:o.value})])}}});var Jtt=Xtt;const ent=or(Ytt),tnt=or(Jtt),mD=Symbol("tabsRootContextKey"),nnt=Jt({tabs:{type:ct(Array),default:()=>fi([])},tabRefs:{type:ct(Object),default:()=>fi({})}}),f2e="ElTabBar",rnt=nt({name:f2e}),ont=nt({...rnt,props:nnt,setup(e,{expose:t}){const n=e,r=dn(mD);r||na(f2e,"<el-tabs><el-tab-bar /></el-tabs>");const o=Vt("tabs"),i=K(),a=K(),s=()=>{let f=0,p=0;const v=["top","bottom"].includes(r.props.tabPosition)?"width":"height",h=v==="width"?"x":"y",g=h==="x"?"left":"top";return n.tabs.every(y=>{if(Vr(y.paneName))return!1;const m=n.tabRefs[y.paneName];if(!m)return!1;if(!y.active)return!0;f=m[`offset${hh(g)}`],p=m[`client${hh(v)}`];const b=window.getComputedStyle(m);return v==="width"&&(p-=Number.parseFloat(b.paddingLeft)+Number.parseFloat(b.paddingRight),f+=Number.parseFloat(b.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${hh(h)}(${f}px)`}},l=()=>a.value=s(),u=[],d=()=>{u.forEach(f=>f.stop()),u.length=0,Object.values(n.tabRefs).forEach(f=>{u.push(li(f,l))})};St(()=>n.tabs,async()=>{await Yt(),l(),d()},{immediate:!0});const c=li(i,()=>l());return Jr(()=>{u.forEach(f=>f.stop()),u.length=0,c.stop()}),t({ref:i,update:l}),(f,p)=>(L(),G("div",{ref_key:"barRef",ref:i,class:oe([C(o).e("active-bar"),C(o).is(C(r).props.tabPosition)]),style:rn(a.value)},null,6))}});var int=on(ont,[["__file","tab-bar.vue"]]);const ant=Jt({panes:{type:ct(Array),default:()=>fi([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),snt={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},Pee="ElTabNav",lnt=nt({name:Pee,props:ant,emits:snt,setup(e,{expose:t,emit:n}){const r=dn(mD);r||na(Pee,"<el-tabs><tab-nav /></el-tabs>");const o=Vt("tabs"),i=GRe(),a=sBe(),s=K(),l=K(),u=K(),d=K({}),c=K(),f=K(!1),p=K(0),v=K(!1),h=K(!0),g=jo(),y=ee(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),m=ee(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${p.value}px)`})),b=()=>{if(!s.value)return;const k=s.value[`offset${hh(y.value)}`],R=p.value;if(!R)return;const N=R>k?R-k:0;p.value=N},w=()=>{if(!s.value||!l.value)return;const k=l.value[`offset${hh(y.value)}`],R=s.value[`offset${hh(y.value)}`],N=p.value;if(k-N<=R)return;const W=k-N>R*2?N+R:k-R;p.value=W},A=async()=>{const k=l.value;if(!f.value||!u.value||!s.value||!k)return;await Yt();const R=d.value[e.currentName];if(!R)return;const N=s.value,W=["top","bottom"].includes(r.props.tabPosition),B=R.getBoundingClientRect(),z=N.getBoundingClientRect(),j=W?k.offsetWidth-z.width:k.offsetHeight-z.height,q=p.value;let Y=q;W?(B.left<z.left&&(Y=q-(z.left-B.left)),B.right>z.right&&(Y=q+B.right-z.right)):(B.top<z.top&&(Y=q-(z.top-B.top)),B.bottom>z.bottom&&(Y=q+(B.bottom-z.bottom))),Y=Math.max(Y,0),p.value=Math.min(Y,j)},S=()=>{var k;if(!l.value||!s.value)return;e.stretch&&((k=c.value)==null||k.update());const R=l.value[`offset${hh(y.value)}`],N=s.value[`offset${hh(y.value)}`],W=p.value;N<R?(f.value=f.value||{},f.value.prev=W,f.value.next=W+N<R,R-W<N&&(p.value=R-N)):(f.value=!1,W>0&&(p.value=0))},E=k=>{let R=0;switch(k.code){case gn.left:case gn.up:R=-1;break;case gn.right:case gn.down:R=1;break;default:return}const N=Array.from(k.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let B=N.indexOf(k.target)+R;B<0?B=N.length-1:B>=N.length&&(B=0),N[B].focus({preventScroll:!0}),N[B].click(),D()},D=()=>{h.value&&(v.value=!0)},_=()=>v.value=!1,M=(k,R)=>{d.value[R]=k},O=async()=>{await Yt();const k=d.value[e.currentName];k?.focus({preventScroll:!0})};return St(i,k=>{k==="hidden"?h.value=!1:k==="visible"&&setTimeout(()=>h.value=!0,50)}),St(a,k=>{k?setTimeout(()=>h.value=!0,50):h.value=!1}),li(u,S),qn(()=>setTimeout(()=>A(),0)),Qc(()=>S()),t({scrollToActiveTab:A,removeFocus:_,focusActiveTab:O,tabListRef:l,tabBarRef:c,scheduleRender:()=>pS(g)}),()=>{const k=f.value?[He("span",{class:[o.e("nav-prev"),o.is("disabled",!f.value.prev)],onClick:b},[He(Dn,null,{default:()=>[He(Jf,null,null)]})]),He("span",{class:[o.e("nav-next"),o.is("disabled",!f.value.next)],onClick:w},[He(Dn,null,{default:()=>[He(Da,null,null)]})])]:null,R=e.panes.map((N,W)=>{var B,z,j,q;const Y=N.uid,U=N.props.disabled,F=(z=(B=N.props.name)!=null?B:N.index)!=null?z:`${W}`,H=!U&&(N.isClosable||e.editable);N.index=`${W}`;const re=H?He(Dn,{class:"is-icon-close",onClick:Z=>n("tabRemove",N,Z)},{default:()=>[He(vu,null,null)]}):null,X=((q=(j=N.slots).label)==null?void 0:q.call(j))||N.props.label,te=!U&&N.active?0:-1;return He("div",{ref:Z=>M(Z,F),class:[o.e("item"),o.is(r.props.tabPosition),o.is("active",N.active),o.is("disabled",U),o.is("closable",H),o.is("focus",v.value)],id:`tab-${F}`,key:`tab-${Y}`,"aria-controls":`pane-${F}`,role:"tab","aria-selected":N.active,tabindex:te,onFocus:()=>D(),onBlur:()=>_(),onClick:Z=>{_(),n("tabClick",N,F,Z)},onKeydown:Z=>{H&&(Z.code===gn.delete||Z.code===gn.backspace)&&n("tabRemove",N,Z)}},[X,re])});return g.value,He("div",{ref:u,class:[o.e("nav-wrap"),o.is("scrollable",!!f.value),o.is(r.props.tabPosition)]},[k,He("div",{class:o.e("nav-scroll"),ref:s},[e.panes.length>0?He("div",{class:[o.e("nav"),o.is(r.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:l,style:m.value,role:"tablist",onKeydown:E},[e.type?null:He(int,{ref:c,tabs:[...e.panes],tabRefs:d.value},null),R]):null])])}}}),unt=Jt({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:ct(Function),default:()=>!0},stretch:Boolean}),OI=e=>In(e)||$n(e),cnt={[Qn]:e=>OI(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>OI(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>OI(e),tabAdd:()=>!0},dnt=nt({name:"ElTabs",props:unt,emits:cnt,setup(e,{emit:t,slots:n,expose:r}){var o;const i=Vt("tabs"),a=ee(()=>["left","right"].includes(e.tabPosition)),{children:s,addChild:l,removeChild:u,ChildrenSorter:d}=cD(br(),"ElTabPane"),c=K(),f=K((o=e.modelValue)!=null?o:"0"),p=async(m,b=!1)=>{var w,A,S,E;if(!(f.value===m||Vr(m)))try{let D;if(e.beforeLeave){const _=e.beforeLeave(m,f.value);D=_ instanceof Promise?await _:_}else D=!0;if(D!==!1){const _=(w=s.value.find(M=>M.paneName===f.value))==null?void 0:w.isFocusInsidePane();f.value=m,b&&(t(Qn,m),t("tabChange",m)),(S=(A=c.value)==null?void 0:A.removeFocus)==null||S.call(A),_&&((E=c.value)==null||E.focusActiveTab())}}catch{}},v=(m,b,w)=>{m.props.disabled||(t("tabClick",m,w),p(b,!0))},h=(m,b)=>{m.props.disabled||Vr(m.props.name)||(b.stopPropagation(),t("edit",m.props.name,"remove"),t("tabRemove",m.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")},y=m=>{const b=m.el.firstChild,w=["bottom","right"].includes(e.tabPosition)?m.children[0].el:m.children[1].el;b!==w&&b.before(w)};return St(()=>e.modelValue,m=>p(m)),St(f,async()=>{var m;await Yt(),(m=c.value)==null||m.scrollToActiveTab()}),_r(mD,{props:e,currentName:f,registerPane:l,unregisterPane:u,nav$:c}),r({currentName:f,get tabNavRef(){return Nme(c.value,["scheduleRender"])}}),()=>{const m=n["add-icon"],b=e.editable||e.addable?He("div",{class:[i.e("new-tab"),a.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:g,onKeydown:E=>{[gn.enter,gn.numpadEnter].includes(E.code)&&g()}},[m?ht(n,"add-icon"):He(Dn,{class:i.is("icon-plus")},{default:()=>[He(o1e,null,null)]})]):null,w=()=>He(lnt,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:v,onTabRemove:h},null),A=He("div",{class:[i.e("header"),a.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[He(d,null,{default:w,$stable:!0}),b]),S=He("div",{class:i.e("content")},[ht(n,"default")]);return He("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}],onVnodeMounted:y,onVnodeUpdated:y},[S,A])}}});var fnt=dnt;const pnt=Jt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),p2e="ElTabPane",hnt=nt({name:p2e}),gnt=nt({...hnt,props:pnt,setup(e){const t=e,n=br(),r=ga(),o=dn(mD);o||na(p2e,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Vt("tab-pane"),a=K(),s=K(),l=ee(()=>t.closable||o.props.closable),u=bE(()=>{var h;return o.currentName.value===((h=t.name)!=null?h:s.value)}),d=K(u.value),c=ee(()=>{var h;return(h=t.name)!=null?h:s.value}),f=bE(()=>!t.lazy||d.value||u.value),p=()=>{var h;return(h=a.value)==null?void 0:h.contains(document.activeElement)};St(u,h=>{h&&(d.value=!0)});const v=Wr({uid:n.uid,getVnode:()=>n.vnode,slots:r,props:t,paneName:c,active:u,index:s,isClosable:l,isFocusInsidePane:p});return o.registerPane(v),Jr(()=>{o.unregisterPane(v)}),zj(()=>{var h;r.label&&((h=o.nav$.value)==null||h.scheduleRender())}),(h,g)=>C(f)?cn((L(),G("div",{key:0,id:`pane-${C(c)}`,ref_key:"paneRef",ref:a,class:oe(C(i).b()),role:"tabpanel","aria-hidden":!C(u),"aria-labelledby":`tab-${C(c)}`},[ht(h.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[kr,C(u)]]):xe("v-if",!0)}});var h2e=on(gnt,[["__file","tab-pane.vue"]]);const vnt=or(fnt,{TabPane:h2e}),mnt=vi(h2e),ynt=Jt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:ef,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),bnt=nt({name:"ElText"}),wnt=nt({...bnt,props:ynt,setup(e){const t=e,n=K(),r=ha(),o=Vt("text"),i=ee(()=>[o.b(),o.m(t.type),o.m(r.value),o.is("truncated",t.truncated),o.is("line-clamp",!Vr(t.lineClamp))]),a=()=>{var s,l,u,d,c,f,p;if(yp().title)return;let h=!1;const g=((s=n.value)==null?void 0:s.textContent)||"";if(t.truncated){const y=(l=n.value)==null?void 0:l.offsetWidth,m=(u=n.value)==null?void 0:u.scrollWidth;y&&m&&m>y&&(h=!0)}else if(!Vr(t.lineClamp)){const y=(d=n.value)==null?void 0:d.offsetHeight,m=(c=n.value)==null?void 0:c.scrollHeight;y&&m&&m>y&&(h=!0)}h?(f=n.value)==null||f.setAttribute("title",g):(p=n.value)==null||p.removeAttribute("title")};return qn(a),Qc(a),(s,l)=>(L(),yt(mr(s.tag),{ref_key:"textRef",ref:n,class:oe(C(i)),style:rn({"-webkit-line-clamp":s.lineClamp})},{default:rt(()=>[ht(s.$slots,"default")]),_:3},8,["class","style"]))}});var Ant=on(wnt,[["__file","text.vue"]]);const NW=or(Ant),Cnt=Jt({format:{type:String,default:"HH:mm"},modelValue:{type:ct(String)},disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:ct(String),default:"light"},clearable:{type:Boolean,default:!0},size:Aa,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:ct(String)},maxTime:{type:ct(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:ct([String,Object]),default:()=>n1e},clearIcon:{type:ct([String,Object]),default:()=>tf},...lm}),Pf=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},MI=(e,t)=>{const n=Pf(e);if(!n)return-1;const r=Pf(t);if(!r)return-1;const o=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return o===i?0:o>i?1:-1},Nee=e=>`${e}`.padStart(2,"0"),M1=e=>`${Nee(e.hours)}:${Nee(e.minutes)}`,xnt=(e,t)=>{const n=Pf(e);if(!n)return"";const r=Pf(t);if(!r)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=r.minutes,o.hours+=r.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,M1(o)},Snt=nt({name:"ElTimeSelect"}),Ent=nt({...Snt,props:Cnt,emits:[Pr,"blur","focus","clear",Qn],setup(e,{expose:t}){const n=e;lr.extend(HH);const{Option:r}=Nv,o=Vt("input"),i=K(),a=Va(),{lang:s}=Gr(),l=ee(()=>n.modelValue),u=ee(()=>{const y=Pf(n.start);return y?M1(y):null}),d=ee(()=>{const y=Pf(n.end);return y?M1(y):null}),c=ee(()=>{const y=Pf(n.step);return y?M1(y):null}),f=ee(()=>{const y=Pf(n.minTime||"");return y?M1(y):null}),p=ee(()=>{const y=Pf(n.maxTime||"");return y?M1(y):null}),v=ee(()=>{var y;const m=[],b=(w,A)=>{m.push({value:w,disabled:MI(A,f.value||"-1:-1")<=0||MI(A,p.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let w=u.value,A;for(;w&&d.value&&MI(w,d.value)<=0;)A=lr(w,"HH:mm").locale(s.value).format(n.format),b(A,w),w=xnt(w,c.value);if(n.includeEndTime&&d.value&&((y=m[m.length-1])==null?void 0:y.value)!==d.value){const S=lr(d.value,"HH:mm").locale(s.value).format(n.format);b(S,d.value)}}return m});return t({blur:()=>{var y,m;(m=(y=i.value)==null?void 0:y.blur)==null||m.call(y)},focus:()=>{var y,m;(m=(y=i.value)==null?void 0:y.focus)==null||m.call(y)}}),(y,m)=>(L(),yt(C(Nv),{ref_key:"select",ref:i,"model-value":C(l),disabled:C(a),clearable:y.clearable,"clear-icon":y.clearIcon,size:y.size,effect:y.effect,placeholder:y.placeholder,"default-first-option":"",filterable:y.editable,"empty-values":y.emptyValues,"value-on-clear":y.valueOnClear,"onUpdate:modelValue":b=>y.$emit(C(Qn),b),onChange:b=>y.$emit(C(Pr),b),onBlur:b=>y.$emit("blur",b),onFocus:b=>y.$emit("focus",b),onClear:()=>y.$emit("clear")},{prefix:rt(()=>[y.prefixIcon?(L(),yt(C(Dn),{key:0,class:oe(C(o).e("prefix-icon"))},{default:rt(()=>[(L(),yt(mr(y.prefixIcon)))]),_:1},8,["class"])):xe("v-if",!0)]),default:rt(()=>[(L(!0),G(Rt,null,un(C(v),b=>(L(),yt(C(r),{key:b.value,label:b.value,value:b.value,disabled:b.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var knt=on(Ent,[["__file","time-select.vue"]]);const Tnt=or(knt),_nt="timeline",Dnt=nt({name:"ElTimeline",setup(e,{slots:t}){const n=Vt("timeline");return _r(_nt,t),()=>jn("ul",{class:[n.b()]},[ht(t,"default")])}}),Int=Jt({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:wo},hollow:Boolean}),Ont=nt({name:"ElTimelineItem"}),Mnt=nt({...Ont,props:Int,setup(e){const t=e,n=Vt("timeline-item"),r=ee(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(o,i)=>(L(),G("li",{class:oe([C(n).b(),{[C(n).e("center")]:o.center}])},[x("div",{class:oe(C(n).e("tail"))},null,2),o.$slots.dot?xe("v-if",!0):(L(),G("div",{key:0,class:oe(C(r)),style:rn({backgroundColor:o.color})},[o.icon?(L(),yt(C(Dn),{key:0,class:oe(C(n).e("icon"))},{default:rt(()=>[(L(),yt(mr(o.icon)))]),_:1},8,["class"])):xe("v-if",!0)],6)),o.$slots.dot?(L(),G("div",{key:1,class:oe(C(n).e("dot"))},[ht(o.$slots,"dot")],2)):xe("v-if",!0),x("div",{class:oe(C(n).e("wrapper"))},[!o.hideTimestamp&&o.placement==="top"?(L(),G("div",{key:0,class:oe([C(n).e("timestamp"),C(n).is("top")])},je(o.timestamp),3)):xe("v-if",!0),x("div",{class:oe(C(n).e("content"))},[ht(o.$slots,"default")],2),!o.hideTimestamp&&o.placement==="bottom"?(L(),G("div",{key:1,class:oe([C(n).e("timestamp"),C(n).is("bottom")])},je(o.timestamp),3)):xe("v-if",!0)],2)],2))}});var g2e=on(Mnt,[["__file","timeline-item.vue"]]);const Pnt=or(Dnt,{TimelineItem:g2e}),Nnt=vi(g2e),v2e=Jt({nowrap:Boolean});var m2e=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(m2e||{});const Rnt=Object.values(m2e),RW=Jt({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ct(Object),default:null}}),Bnt=Jt({side:{type:ct(String),values:Rnt,required:!0}}),Lnt=["absolute","fixed"],Fnt=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],BW=Jt({arrowPadding:{type:ct(Number),default:5},effect:{type:ct(String),default:"light"},contentClass:String,placement:{type:ct(String),values:Fnt,default:"bottom"},reference:{type:ct(Object),default:null},offset:{type:Number,default:8},strategy:{type:ct(String),values:Lnt,default:"absolute"},showArrow:Boolean,..._s(["ariaLabel"])}),LW=Jt({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ct(Function)},"onUpdate:open":{type:ct(Function)}}),zm={type:ct(Function)},FW=Jt({onBlur:zm,onClick:zm,onFocus:zm,onMouseDown:zm,onMouseEnter:zm,onMouseLeave:zm}),Unt=Jt({...LW,...RW,...FW,...BW,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ct(Object),default:null},teleported:Boolean,to:{type:ct([String,Object]),default:"body"}}),yD=Symbol("tooltipV2"),y2e=Symbol("tooltipV2Content"),PI="tooltip_v2.open",znt=nt({name:"ElTooltipV2Root"}),$nt=nt({...znt,props:LW,setup(e,{expose:t}){const n=e,r=K(n.defaultOpen),o=K(null),i=ee({get:()=>Bl(n.open)?r.value:n.open,set:g=>{var y;r.value=g,(y=n["onUpdate:open"])==null||y.call(n,g)}}),a=ee(()=>$n(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=Mv(()=>{i.value=!0},ee(()=>n.delayDuration),{immediate:!1}),u=Vt("tooltip-v2"),d=ps(),c=()=>{l(),i.value=!0},f=()=>{C(a)?s():c()},p=c,v=()=>{l(),i.value=!1};return St(i,g=>{var y;g&&(document.dispatchEvent(new CustomEvent(PI)),p()),(y=n.onOpenChange)==null||y.call(n,g)}),qn(()=>{document.addEventListener(PI,v)}),Jr(()=>{l(),document.removeEventListener(PI,v)}),_r(yD,{contentId:d,triggerRef:o,ns:u,onClose:v,onDelayOpen:f,onOpen:p}),t({onOpen:p,onClose:v}),(g,y)=>ht(g.$slots,"default",{open:C(i)})}});var jnt=on($nt,[["__file","root.vue"]]);const Hnt=nt({name:"ElTooltipV2Arrow"}),Wnt=nt({...Hnt,props:{...RW,...Bnt},setup(e){const t=e,{ns:n}=dn(yD),{arrowRef:r}=dn(y2e),o=ee(()=>{const{style:i,width:a,height:s}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${a}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${a/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:a/2-1,...i||{}}});return(i,a)=>(L(),G("span",{ref_key:"arrowRef",ref:r,style:rn(C(o)),class:oe(C(n).e("arrow"))},null,6))}});var Ree=on(Wnt,[["__file","arrow.vue"]]);const Wy=Math.min,ev=Math.max,FE=Math.round,Tx=Math.floor,Ld=e=>({x:e,y:e}),Vnt={left:"right",right:"left",bottom:"top",top:"bottom"},qnt={start:"end",end:"start"};function aF(e,t,n){return ev(e,Wy(t,n))}function V5(e,t){return typeof e=="function"?e(t):e}function Bv(e){return e.split("-")[0]}function q5(e){return e.split("-")[1]}function b2e(e){return e==="x"?"y":"x"}function UW(e){return e==="y"?"height":"width"}const Gnt=new Set(["top","bottom"]);function Ah(e){return Gnt.has(Bv(e))?"y":"x"}function zW(e){return b2e(Ah(e))}function Knt(e,t,n){n===void 0&&(n=!1);const r=q5(e),o=zW(e),i=UW(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=UE(a)),[a,UE(a)]}function Ynt(e){const t=UE(e);return[sF(e),t,sF(t)]}function sF(e){return e.replace(/start|end/g,t=>qnt[t])}const Bee=["left","right"],Lee=["right","left"],Qnt=["top","bottom"],Znt=["bottom","top"];function Xnt(e,t,n){switch(e){case"top":case"bottom":return n?t?Lee:Bee:t?Bee:Lee;case"left":case"right":return t?Qnt:Znt;default:return[]}}function Jnt(e,t,n,r){const o=q5(e);let i=Xnt(Bv(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(sF)))),i}function UE(e){return e.replace(/left|right|bottom|top/g,t=>Vnt[t])}function ert(e){return{top:0,right:0,bottom:0,left:0,...e}}function w2e(e){return typeof e!="number"?ert(e):{top:e,right:e,bottom:e,left:e}}function zE(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Fee(e,t,n){let{reference:r,floating:o}=e;const i=Ah(t),a=zW(t),s=UW(a),l=Bv(t),u=i==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(q5(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const trt=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=Fee(u,r,l),f=r,p={},v=0;for(let h=0;h<s.length;h++){const{name:g,fn:y}=s[h],{x:m,y:b,data:w,reset:A}=await y({x:d,y:c,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=m??d,c=b??c,p={...p,[g]:{...p[g],...w}},A&&v<=50&&(v++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(u=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:d,y:c}=Fee(u,f,l)),h=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:p}};async function $W(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=V5(t,e),v=w2e(p),g=s[f?c==="floating"?"reference":"floating":c],y=zE(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),m=c==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},A=zE(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:b,strategy:l}):m);return{top:(y.top-A.top+v.top)/w.y,bottom:(A.bottom-y.bottom+v.bottom)/w.y,left:(y.left-A.left+v.left)/w.x,right:(A.right-y.right+v.right)/w.x}}const nrt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=V5(e,t)||{};if(u==null)return{};const c=w2e(d),f={x:n,y:r},p=zW(o),v=UW(p),h=await a.getDimensions(u),g=p==="y",y=g?"top":"left",m=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[p]-f[p]-i.floating[v],A=f[p]-i.reference[p],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let E=S?S[b]:0;(!E||!await(a.isElement==null?void 0:a.isElement(S)))&&(E=s.floating[b]||i.floating[v]);const D=w/2-A/2,_=E/2-h[v]/2-1,M=Wy(c[y],_),O=Wy(c[m],_),k=M,R=E-h[v]-O,N=E/2-h[v]/2+D,W=aF(k,N,R),B=!l.arrow&&q5(o)!=null&&N!==W&&i.reference[v]/2-(N<k?M:O)-h[v]/2<0,z=B?N<k?N-k:N-R:0;return{[p]:f[p]+z,data:{[p]:W,centerOffset:N-W-z,...B&&{alignmentOffset:z}},reset:B}}}),rrt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...g}=V5(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Bv(o),m=Ah(s),b=Bv(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),A=f||(b||!h?[UE(s)]:Ynt(s)),S=v!=="none";!f&&S&&A.push(...Jnt(s,h,v,w));const E=[s,...A],D=await $W(t,g),_=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&_.push(D[y]),c){const N=Knt(o,a,w);_.push(D[N[0]],D[N[1]])}if(M=[...M,{placement:o,overflows:_}],!_.every(N=>N<=0)){var O,k;const N=(((O=i.flip)==null?void 0:O.index)||0)+1,W=E[N];if(W&&(!(c==="alignment"?m!==Ah(W):!1)||M.every(j=>Ah(j.placement)===m?j.overflows[0]>0:!0)))return{data:{index:N,overflows:M},reset:{placement:W}};let B=(k=M.filter(z=>z.overflows[0]<=0).sort((z,j)=>z.overflows[1]-j.overflows[1])[0])==null?void 0:k.placement;if(!B)switch(p){case"bestFit":{var R;const z=(R=M.filter(j=>{if(S){const q=Ah(j.placement);return q===m||q==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(q=>q>0).reduce((q,Y)=>q+Y,0)]).sort((j,q)=>j[1]-q[1])[0])==null?void 0:R[0];z&&(B=z);break}case"initialPlacement":B=s;break}if(o!==B)return{reset:{placement:B}}}return{}}}},ort=new Set(["left","top"]);async function irt(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Bv(n),s=q5(n),l=Ah(n)==="y",u=ort.has(a)?-1:1,d=i&&l?-1:1,c=V5(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof v=="number"&&(p=s==="end"?v*-1:v),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const art=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await irt(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},srt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...l}=V5(e,t),u={x:n,y:r},d=await $W(t,l),c=Ah(Bv(o)),f=b2e(c);let p=u[f],v=u[c];if(i){const g=f==="y"?"top":"left",y=f==="y"?"bottom":"right",m=p+d[g],b=p-d[y];p=aF(m,p,b)}if(a){const g=c==="y"?"top":"left",y=c==="y"?"bottom":"right",m=v+d[g],b=v-d[y];v=aF(m,v,b)}const h=s.fn({...t,[f]:p,[c]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[c]:a}}}}}};function bD(){return typeof window<"u"}function Vb(e){return A2e(e)?(e.nodeName||"").toLowerCase():"#document"}function du(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nf(e){var t;return(t=(A2e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function A2e(e){return bD()?e instanceof Node||e instanceof du(e).Node:!1}function Vc(e){return bD()?e instanceof Element||e instanceof du(e).Element:!1}function Vd(e){return bD()?e instanceof HTMLElement||e instanceof du(e).HTMLElement:!1}function Uee(e){return!bD()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof du(e).ShadowRoot}const lrt=new Set(["inline","contents"]);function G5(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=qc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lrt.has(o)}const urt=new Set(["table","td","th"]);function crt(e){return urt.has(Vb(e))}const drt=[":popover-open",":modal"];function wD(e){return drt.some(t=>{try{return e.matches(t)}catch{return!1}})}const frt=["transform","translate","scale","rotate","perspective"],prt=["transform","translate","scale","rotate","perspective","filter"],hrt=["paint","layout","strict","content"];function jW(e){const t=HW(),n=Vc(e)?qc(e):e;return frt.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||prt.some(r=>(n.willChange||"").includes(r))||hrt.some(r=>(n.contain||"").includes(r))}function grt(e){let t=d0(e);for(;Vd(t)&&!Vy(t);){if(jW(t))return t;if(wD(t))return null;t=d0(t)}return null}function HW(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vrt=new Set(["html","body","#document"]);function Vy(e){return vrt.has(Vb(e))}function qc(e){return du(e).getComputedStyle(e)}function AD(e){return Vc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function d0(e){if(Vb(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uee(e)&&e.host||nf(e);return Uee(t)?t.host:t}function C2e(e){const t=d0(e);return Vy(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vd(t)&&G5(t)?t:C2e(t)}function fA(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=C2e(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=du(o);if(i){const s=lF(a);return t.concat(a,a.visualViewport||[],G5(o)?o:[],s&&n?fA(s):[])}return t.concat(o,fA(o,[],n))}function lF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function x2e(e){const t=qc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Vd(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=FE(n)!==i||FE(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function WW(e){return Vc(e)?e:e.contextElement}function sy(e){const t=WW(e);if(!Vd(t))return Ld(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=x2e(t);let a=(i?FE(n.width):n.width)/r,s=(i?FE(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const mrt=Ld(0);function S2e(e){const t=du(e);return!HW()||!t.visualViewport?mrt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yrt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==du(e)?!1:t}function Lv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=WW(e);let a=Ld(1);t&&(r?Vc(r)&&(a=sy(r)):a=sy(e));const s=yrt(i,n,r)?S2e(i):Ld(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,d=o.width/a.x,c=o.height/a.y;if(i){const f=du(i),p=r&&Vc(r)?du(r):r;let v=f,h=lF(v);for(;h&&r&&p!==v;){const g=sy(h),y=h.getBoundingClientRect(),m=qc(h),b=y.left+(h.clientLeft+parseFloat(m.paddingLeft))*g.x,w=y.top+(h.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,c*=g.y,l+=b,u+=w,v=du(h),h=lF(v)}}return zE({width:d,height:c,x:l,y:u})}function CD(e,t){const n=AD(e).scrollLeft;return t?t.left+n:Lv(nf(e)).left+n}function E2e(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-CD(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function brt(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=nf(r),s=t?wD(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Ld(1);const d=Ld(0),c=Vd(r);if((c||!c&&!i)&&((Vb(r)!=="body"||G5(a))&&(l=AD(r)),Vd(r))){const p=Lv(r);u=sy(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=a&&!c&&!i?E2e(a,l):Ld(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function wrt(e){return Array.from(e.getClientRects())}function Art(e){const t=nf(e),n=AD(e),r=e.ownerDocument.body,o=ev(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ev(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+CD(e);const s=-n.scrollTop;return qc(r).direction==="rtl"&&(a+=ev(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const zee=25;function Crt(e,t){const n=du(e),r=nf(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const d=HW();(!d||d&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=CD(r);if(u<=0){const d=r.ownerDocument,c=d.body,f=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(r.clientWidth-c.clientWidth-p);v<=zee&&(i-=v)}else u<=zee&&(i+=u);return{width:i,height:a,x:s,y:l}}const xrt=new Set(["absolute","fixed"]);function Srt(e,t){const n=Lv(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Vd(e)?sy(e):Ld(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:a,height:s,x:l,y:u}}function $ee(e,t,n){let r;if(t==="viewport")r=Crt(e,n);else if(t==="document")r=Art(nf(e));else if(Vc(t))r=Srt(t,n);else{const o=S2e(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return zE(r)}function k2e(e,t){const n=d0(e);return n===t||!Vc(n)||Vy(n)?!1:qc(n).position==="fixed"||k2e(n,t)}function Ert(e,t){const n=t.get(e);if(n)return n;let r=fA(e,[],!1).filter(s=>Vc(s)&&Vb(s)!=="body"),o=null;const i=qc(e).position==="fixed";let a=i?d0(e):e;for(;Vc(a)&&!Vy(a);){const s=qc(a),l=jW(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&xrt.has(o.position)||G5(a)&&!l&&k2e(e,a))?r=r.filter(d=>d!==a):o=s,a=d0(a)}return t.set(e,r),r}function krt(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?wD(t)?[]:Ert(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const c=$ee(t,d,o);return u.top=ev(c.top,u.top),u.right=Wy(c.right,u.right),u.bottom=Wy(c.bottom,u.bottom),u.left=ev(c.left,u.left),u},$ee(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Trt(e){const{width:t,height:n}=x2e(e);return{width:t,height:n}}function _rt(e,t,n){const r=Vd(t),o=nf(t),i=n==="fixed",a=Lv(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ld(0);function u(){l.x=CD(o)}if(r||!r&&!i)if((Vb(t)!=="body"||G5(o))&&(s=AD(t)),r){const p=Lv(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?E2e(o,s):Ld(0),c=a.left+s.scrollLeft-l.x-d.x,f=a.top+s.scrollTop-l.y-d.y;return{x:c,y:f,width:a.width,height:a.height}}function NI(e){return qc(e).position==="static"}function jee(e,t){if(!Vd(e)||qc(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return nf(e)===n&&(n=n.ownerDocument.body),n}function T2e(e,t){const n=du(e);if(wD(e))return n;if(!Vd(e)){let o=d0(e);for(;o&&!Vy(o);){if(Vc(o)&&!NI(o))return o;o=d0(o)}return n}let r=jee(e,t);for(;r&&crt(r)&&NI(r);)r=jee(r,t);return r&&Vy(r)&&NI(r)&&!jW(r)?n:r||grt(e)||n}const Drt=async function(e){const t=this.getOffsetParent||T2e,n=this.getDimensions,r=await n(e.floating);return{reference:_rt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Irt(e){return qc(e).direction==="rtl"}const Ort={convertOffsetParentRelativeRectToViewportRelativeRect:brt,getDocumentElement:nf,getClippingRect:krt,getOffsetParent:T2e,getElementRects:Drt,getClientRects:wrt,getDimensions:Trt,getScale:sy,isElement:Vc,isRTL:Irt};function _2e(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mrt(e,t){let n=null,r;const o=nf(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:c,width:f,height:p}=u;if(s||t(),!f||!p)return;const v=Tx(c),h=Tx(o.clientWidth-(d+f)),g=Tx(o.clientHeight-(c+p)),y=Tx(d),b={rootMargin:-v+"px "+-h+"px "+-g+"px "+-y+"px",threshold:ev(0,Wy(1,l))||1};let w=!0;function A(S){const E=S[0].intersectionRatio;if(E!==l){if(!w)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!_2e(u,e.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(A,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,b)}n.observe(e)}return a(!0),i}function Prt(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=WW(e),d=o||i?[...u?fA(u):[],...fA(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const c=u&&s?Mrt(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let v,h=l?Lv(e):null;l&&g();function g(){const y=Lv(e);h&&!_2e(h,y)&&n(),h=y,v=requestAnimationFrame(g)}return n(),()=>{var y;d.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),c?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const Nrt=$W,D2e=art,Rrt=srt,Brt=rrt,I2e=nrt,O2e=(e,t,n)=>{const r=new Map,o={platform:Ort,...n},i={...o.platform,_c:r};return trt(e,t,{...o,platform:i})},Lrt=Jt({style:{type:ct([String,Object,Array]),default:()=>({})}}),Frt=nt({name:"ElVisuallyHidden"}),Urt=nt({...Frt,props:Lrt,setup(e){const t=e,n=ee(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,o)=>(L(),G("span",vr(r.$attrs,{style:C(n)}),[ht(r.$slots,"default")],16))}});var zrt=on(Urt,[["__file","visual-hidden.vue"]]);Jt({});const $rt=e=>{if(!Xr)return;if(!e)return e;const t=Ta(e);return t||(Uo(e)?t:e)},jrt=({middleware:e,placement:t,strategy:n})=>{const r=K(),o=K(),i=K(),a=K(),s=K({}),l={x:i,y:a,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!Xr)return;const d=$rt(r),c=Ta(o);if(!d||!c)return;const f=await O2e(d,c,{placement:C(t),strategy:C(n),middleware:C(e)});My(l).forEach(p=>{l[p].value=f[p]})};return qn(()=>{Es(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:o}},Hrt=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=C(e);return r?I2e({element:r,padding:t}).fn(n):{}}}),Wrt=nt({name:"ElTooltipV2Content"}),Vrt=nt({...Wrt,props:{...BW,...v2e},setup(e){const t=e,{triggerRef:n,contentId:r}=dn(yD),o=K(t.placement),i=K(t.strategy),a=K(null),{referenceRef:s,contentRef:l,middlewareData:u,x:d,y:c,update:f}=jrt({placement:o,strategy:i,middleware:ee(()=>{const b=[D2e(t.offset)];return t.showArrow&&b.push(Hrt({arrowRef:a})),b})}),p=Fb().nextZIndex(),v=Vt("tooltip-v2"),h=ee(()=>o.value.split("-")[0]),g=ee(()=>({position:C(i),top:`${C(c)||0}px`,left:`${C(d)||0}px`,zIndex:p})),y=ee(()=>{if(!t.showArrow)return{};const{arrow:b}=C(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${b?.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${b?.y}px`||""}}),m=ee(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(C(i)),t.contentClass]);return St(a,()=>f()),St(()=>t.placement,b=>o.value=b),qn(()=>{St(()=>t.reference||n.value,b=>{s.value=b||void 0},{immediate:!0})}),_r(y2e,{arrowRef:a}),(b,w)=>(L(),G("div",{ref_key:"contentRef",ref:l,style:rn(C(g)),"data-tooltip-v2-root":""},[b.nowrap?xe("v-if",!0):(L(),G("div",{key:0,"data-side":C(h),class:oe(C(m))},[ht(b.$slots,"default",{contentStyle:C(g),contentClass:C(m)}),He(C(zrt),{id:C(r),role:"tooltip"},{default:rt(()=>[b.ariaLabel?(L(),G(Rt,{key:0},[bn(je(b.ariaLabel),1)],64)):ht(b.$slots,"default",{key:1})]),_:3},8,["id"]),ht(b.$slots,"arrow",{style:rn(C(y)),side:C(h)})],10,["data-side"]))],4))}});var Hee=on(Vrt,[["__file","content.vue"]]);const qrt=Jt({setRef:{type:ct(Function),required:!0},onlyChild:Boolean});var Grt=nt({props:qrt,setup(e,{slots:t}){const n=K(),r=hD(n,o=>{o?e.setRef(o.nextElementSibling):e.setRef(null)});return()=>{var o;const[i]=((o=t.default)==null?void 0:o.call(t))||[],a=e.onlyChild?bje(i.children):i.children;return He(Rt,{ref:r},[a])}}});const Krt=nt({name:"ElTooltipV2Trigger"}),Yrt=nt({...Krt,props:{...v2e,...FW},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:o,triggerRef:i,contentId:a}=dn(yD);let s=!1;const l=m=>{i.value=m},u=()=>{s=!1},d=Li(t.onMouseEnter,o),c=Li(t.onMouseLeave,n),f=Li(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),p=Li(t.onFocus,()=>{s||r()}),v=Li(t.onBlur,n),h=Li(t.onClick,m=>{m.detail===0&&n()}),g={blur:v,click:h,focus:p,mousedown:f,mouseenter:d,mouseleave:c},y=(m,b,w)=>{m&&Object.entries(b).forEach(([A,S])=>{m[w](A,S)})};return St(i,(m,b)=>{y(m,g,"addEventListener"),y(b,g,"removeEventListener"),m&&m.setAttribute("aria-describedby",a.value)}),Jr(()=>{y(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(m,b)=>m.nowrap?(L(),yt(C(Grt),{key:0,"set-ref":l,"only-child":""},{default:rt(()=>[ht(m.$slots,"default")]),_:3})):(L(),G("button",vr({key:1,ref_key:"triggerRef",ref:i},m.$attrs),[ht(m.$slots,"default")],16))}});var Qrt=on(Yrt,[["__file","trigger.vue"]]);const Zrt=nt({name:"ElTooltipV2"}),Xrt=nt({...Zrt,props:Unt,setup(e){const n=Oa(e),r=Wr(uu(n,Object.keys(RW))),o=Wr(uu(n,Object.keys(BW))),i=Wr(uu(n,Object.keys(LW))),a=Wr(uu(n,Object.keys(FW)));return(s,l)=>(L(),yt(jnt,Il($d(i)),{default:rt(({open:u})=>[He(Qrt,vr(a,{nowrap:""}),{default:rt(()=>[ht(s.$slots,"trigger")]),_:3},16),He(C(jb),{to:s.to,disabled:!s.teleported},{default:rt(()=>[s.fullTransition?(L(),yt(Ki,Il(vr({key:0},s.transitionProps)),{default:rt(()=>[s.alwaysOn||u?(L(),yt(Hee,Il(vr({key:0},o)),{arrow:rt(({style:d,side:c})=>[s.showArrow?(L(),yt(Ree,vr({key:0},r,{style:d,side:c}),null,16,["style","side"])):xe("v-if",!0)]),default:rt(()=>[ht(s.$slots,"default")]),_:3},16)):xe("v-if",!0)]),_:2},1040)):(L(),G(Rt,{key:1},[s.alwaysOn||u?(L(),yt(Hee,Il(vr({key:0},o)),{arrow:rt(({style:d,side:c})=>[s.showArrow?(L(),yt(Ree,vr({key:0},r,{style:d,side:c}),null,16,["style","side"])):xe("v-if",!0)]),default:rt(()=>[ht(s.$slots,"default")]),_:3},16)):xe("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var Jrt=on(Xrt,[["__file","tooltip.vue"]]);const eot=or(Jrt),M2e="left-check-change",P2e="right-check-change",P1=Jt({data:{type:ct(Array),default:()=>[]},titles:{type:ct(Array),default:()=>[]},buttonTexts:{type:ct(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ct(Function)},leftDefaultChecked:{type:ct(Array),default:()=>[]},rightDefaultChecked:{type:ct(Array),default:()=>[]},renderContent:{type:ct(Function)},modelValue:{type:ct(Array),default:()=>[]},format:{type:ct(Object),default:()=>({})},filterable:Boolean,props:{type:ct(Object),default:()=>fi({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),uF=(e,t)=>[e,t].every(Zt)||Zt(e)&&ea(t),tot={[Pr]:(e,t,n)=>[e,n].every(Zt)&&["left","right"].includes(t),[Qn]:e=>Zt(e),[M2e]:uF,[P2e]:uF},cF="checked-change",not=Jt({data:P1.data,optionRender:{type:ct(Function)},placeholder:String,title:String,filterable:Boolean,format:P1.format,filterMethod:P1.filterMethod,defaultChecked:P1.leftDefaultChecked,props:P1.props}),rot={[cF]:uF},K5=e=>{const t={label:"label",key:"key",disabled:"disabled"};return ee(()=>({...t,...e.props}))},oot=(e,t,n)=>{const r=K5(e),o=ee(()=>e.data.filter(d=>Rn(e.filterMethod)?e.filterMethod(t.query,d):String(d[r.value.label]||d[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=ee(()=>o.value.filter(d=>!d[r.value.disabled])),a=ee(()=>{const d=t.checked.length,c=e.data.length,{noChecked:f,hasChecked:p}=e.format;return f&&p?d>0?p.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,c.toString()):f.replace(/\${total}/g,c.toString()):`${d}/${c}`}),s=ee(()=>{const d=t.checked.length;return d>0&&d<i.value.length}),l=()=>{const d=i.value.map(c=>c[r.value.key]);t.allChecked=d.length>0&&d.every(c=>t.checked.includes(c))},u=d=>{t.checked=d?i.value.map(c=>c[r.value.key]):[]};return St(()=>t.checked,(d,c)=>{if(l(),t.checkChangeByUser){const f=d.concat(c).filter(p=>!d.includes(p)||!c.includes(p));n(cF,d,f)}else n(cF,d),t.checkChangeByUser=!0}),St(i,()=>{l()}),St(()=>e.data,()=>{const d=[],c=o.value.map(f=>f[r.value.key]);t.checked.forEach(f=>{c.includes(f)&&d.push(f)}),t.checkChangeByUser=!1,t.checked=d}),St(()=>e.defaultChecked,(d,c)=>{if(c&&d.length===c.length&&d.every(v=>c.includes(v)))return;const f=[],p=i.value.map(v=>v[r.value.key]);d.forEach(v=>{p.includes(v)&&f.push(v)}),t.checkChangeByUser=!1,t.checked=f},{immediate:!0}),{filteredData:o,checkableData:i,checkedSummary:a,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},iot=nt({name:"ElTransferPanel"}),aot=nt({...iot,props:not,emits:rot,setup(e,{expose:t,emit:n}){const r=e,o=ga(),i=({option:b})=>b,{t:a}=Gr(),s=Vt("transfer"),l=Wr({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=K5(r),{filteredData:d,checkedSummary:c,isIndeterminate:f,handleAllCheckedChange:p}=oot(r,l,n),v=ee(()=>!iu(l.query)&&iu(d.value)),h=ee(()=>!iu(o.default()[0].children)),{checked:g,allChecked:y,query:m}=Oa(l);return t({query:m}),(b,w)=>(L(),G("div",{class:oe(C(s).b("panel"))},[x("p",{class:oe(C(s).be("panel","header"))},[He(C(tc),{modelValue:C(y),"onUpdate:modelValue":A=>Uo(y)?y.value=A:null,indeterminate:C(f),"validate-event":!1,onChange:C(p)},{default:rt(()=>[bn(je(b.title)+" ",1),x("span",null,je(C(c)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),x("div",{class:oe([C(s).be("panel","body"),C(s).is("with-footer",C(h))])},[b.filterable?(L(),yt(C(js),{key:0,modelValue:C(m),"onUpdate:modelValue":A=>Uo(m)?m.value=A:null,class:oe(C(s).be("panel","filter")),size:"default",placeholder:b.placeholder,"prefix-icon":C(OLe),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):xe("v-if",!0),cn(He(C(rye),{modelValue:C(g),"onUpdate:modelValue":A=>Uo(g)?g.value=A:null,"validate-event":!1,class:oe([C(s).is("filterable",b.filterable),C(s).be("panel","list")])},{default:rt(()=>[(L(!0),G(Rt,null,un(C(d),A=>(L(),yt(C(tc),{key:A[C(u).key],class:oe(C(s).be("panel","item")),value:A[C(u).key],disabled:A[C(u).disabled],"validate-event":!1},{default:rt(()=>{var S;return[He(i,{option:(S=b.optionRender)==null?void 0:S.call(b,A)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[kr,!C(v)&&!C(iu)(b.data)]]),cn(x("div",{class:oe(C(s).be("panel","empty"))},[ht(b.$slots,"empty",{},()=>[bn(je(C(v)?C(a)("el.transfer.noMatch"):C(a)("el.transfer.noData")),1)])],2),[[kr,C(v)||C(iu)(b.data)]])],2),C(h)?(L(),G("p",{key:0,class:oe(C(s).be("panel","footer"))},[ht(b.$slots,"default")],2)):xe("v-if",!0)],2))}});var Wee=on(aot,[["__file","transfer-panel.vue"]]);const sot=e=>{const t=K5(e),n=ee(()=>e.data.reduce((i,a)=>(i[a[t.value.key]]=a)&&i,{})),r=ee(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),o=ee(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,a)=>{const s=n.value[a];return s&&i.push(s),i},[]));return{sourceData:r,targetData:o}},lot=(e,t,n)=>{const r=K5(e),o=(s,l,u)=>{n(Qn,s),n(Pr,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const d=u[r.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(u=>u[r.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),o(s,"right",t.leftChecked)}}},uot=(e,t)=>({onSourceCheckedChange:(o,i)=>{e.leftChecked=o,i&&t(M2e,o,i)},onTargetCheckedChange:(o,i)=>{e.rightChecked=o,i&&t(P2e,o,i)}}),cot=nt({name:"ElTransfer"}),dot=nt({...cot,props:P1,emits:tot,setup(e,{expose:t,emit:n}){const r=e,o=ga(),{t:i}=Gr(),a=Vt("transfer"),{formItem:s}=Ds(),l=Wr({leftChecked:[],rightChecked:[]}),u=K5(r),{sourceData:d,targetData:c}=sot(r),{onSourceCheckedChange:f,onTargetCheckedChange:p}=uot(l,n),{addToLeft:v,addToRight:h}=lot(r,l,n),g=K(),y=K(),m=D=>{switch(D){case"left":g.value.query="";break;case"right":y.value.query="";break}},b=ee(()=>r.buttonTexts.length===2),w=ee(()=>r.titles[0]||i("el.transfer.titles.0")),A=ee(()=>r.titles[1]||i("el.transfer.titles.1")),S=ee(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));St(()=>r.modelValue,()=>{var D;r.validateEvent&&((D=s?.validate)==null||D.call(s,"change").catch(_=>void 0))});const E=ee(()=>D=>{var _;if(r.renderContent)return r.renderContent(jn,D);const M=(((_=o.default)==null?void 0:_.call(o,{option:D}))||[]).filter(O=>O.type!==da);return M.length?M:jn("span",D[u.value.label]||D[u.value.key])});return t({clearQuery:m,leftPanel:g,rightPanel:y}),(D,_)=>(L(),G("div",{class:oe(C(a).b())},[He(Wee,{ref_key:"leftPanel",ref:g,data:C(d),"option-render":C(E),placeholder:C(S),title:C(w),filterable:D.filterable,format:D.format,"filter-method":D.filterMethod,"default-checked":D.leftDefaultChecked,props:r.props,onCheckedChange:C(f)},{empty:rt(()=>[ht(D.$slots,"left-empty")]),default:rt(()=>[ht(D.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),x("div",{class:oe(C(a).e("buttons"))},[He(C(Xa),{type:"primary",class:oe([C(a).e("button"),C(a).is("with-texts",C(b))]),disabled:C(iu)(l.rightChecked),onClick:C(v)},{default:rt(()=>[He(C(Dn),null,{default:rt(()=>[He(C(Jf))]),_:1}),C(Vr)(D.buttonTexts[0])?xe("v-if",!0):(L(),G("span",{key:0},je(D.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),He(C(Xa),{type:"primary",class:oe([C(a).e("button"),C(a).is("with-texts",C(b))]),disabled:C(iu)(l.leftChecked),onClick:C(h)},{default:rt(()=>[C(Vr)(D.buttonTexts[1])?xe("v-if",!0):(L(),G("span",{key:0},je(D.buttonTexts[1]),1)),He(C(Dn),null,{default:rt(()=>[He(C(Da))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),He(Wee,{ref_key:"rightPanel",ref:y,data:C(c),"option-render":C(E),placeholder:C(S),filterable:D.filterable,format:D.format,"filter-method":D.filterMethod,title:C(A),"default-checked":D.rightDefaultChecked,props:r.props,onCheckedChange:C(p)},{empty:rt(()=>[ht(D.$slots,"right-empty")]),default:rt(()=>[ht(D.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var fot=on(dot,[["__file","transfer.vue"]]);const pot=or(fot),ly="$treeNodeId",Vee=function(e,t){!t||t[ly]||Object.defineProperty(t,ly,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},VW=(e,t)=>t?.[e||ly],dF=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)},fF=e=>{let t=!0,n=!0,r=!0;for(let o=0,i=e.length;o<i;o++){const a=e[o];(a.checked!==!0||a.indeterminate)&&(t=!1,a.disabled||(r=!1)),(a.checked!==!1||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},S4=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=fF(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const o=e.parent;!o||o.level===0||e.store.checkStrictly||S4(o)},_x=function(e,t){const n=e.store.props,r=e.data||{},o=n[t];if(Rn(o))return o(r,e);if(In(o))return r[o];if(Vr(o)){const i=r[t];return Vr(i)?"":i}},pF=function(e,t){e.forEach(n=>{n.canFocus=t,pF(n.childNodes,t)})};let hot=0,hF=class WS{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.id=hot++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)no(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const r=n.props;if(r&&typeof r.isLeaf<"u"){const a=_x(this,"isLeaf");Eo(a)&&(this.isLeafByUser=a)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Zt(this.data)||Vee(this,this.data),!this.data)return;const o=n.defaultExpandedKeys,i=n.key;i&&!ea(this.key)&&o&&o.includes(this.key)&&this.expand(null,n.autoExpandParent),i&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){Zt(t)||Vee(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Zt(this.data)?n=this.data:n=_x(this,"children")||[];for(let r=0,o=n.length;r<o;r++)this.insertChild({data:n[r]})}get label(){return _x(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return _x(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof WS)){if(!r){const o=this.getChildren(!0);o?.includes(t.data)||(Vr(n)||n<0?o?.push(t.data):o?.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Wr(new WS(t)),t instanceof WS&&t.initialize()}t.level=this.level+1,Vr(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),pF(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{Zt(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||S4(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,pF(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:s}=fF(this.childNodes);!this.isLeaf&&!a&&s&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let f=0,p=u.length;f<p;f++){const v=u[f];o=o||t!==!1;const h=v.disabled?v.checked:o;v.setChecked(h,n,!0,o)}const{half:d,all:c}=fF(u);c||(this.checked=c,this.indeterminate=d)}};if(this.shouldLoadData()){this.loadData(()=>{l(),S4(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||S4(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let o="children";return r&&(o=r.children||"children"),Vr(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},o=[];t.forEach((i,a)=>{const s=i[ly];!!s&&n.findIndex(u=>u?.[ly]===s)>=0?r[s]={index:a,data:i}:o.push({index:a,data:i})}),this.store.lazy||n.forEach(i=>{r[i?.[ly]]||this.removeChildByData(i)}),o.forEach(({index:i,data:a})=>{this.insertChild({data:a},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)},o=()=>{this.loading=!1};this.store.load(this,r,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),t(r)}}reInitChecked(){this.store.checkStrictly||S4(this)}};class got{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const n in t)no(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new hF({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},bo)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,o=async function(i){const a=i.root?i.root.childNodes:i.childNodes;for(const[s,l]of a.entries())l.visible=!!n?.call(l,t,l.data,l),s%80===0&&s>0&&await Yt(),await o(l);if(!i.visible&&a.length){let s=!0;s=!a.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}t&&i.visible&&!i.isLeaf&&(!r||i.loaded)&&i.expand()};o(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof hF)return t;const n=dr(t)?VW(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var r;const o=this.getNode(n);(r=o.parent)==null||r.insertBefore({data:t},o)}insertAfter(t,n){var r;const o=this.getNode(n);(r=o.parent)==null||r.insertAfter({data:t},o)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=Bl(n)?this.root:this.getNode(n);r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const o=n[r];o&&o.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!ea(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const r=t.key;ea(r)||(this.nodesMap[r]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],o=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),o(s)})};return o(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)no(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const o=r.childNodes;for(let i=o.length-1;i>=0;i--){const a=o[i];this.remove(a.data)}for(let i=0,a=n.length;i<a;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(t,n=!1,r){const o=this._getAllNodes().sort((l,u)=>l.level-u.level),i=Object.create(null),a=Object.keys(r);o.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{var d;i[u.data[t]]=!0,(d=u.childNodes)!=null&&d.length&&s(u)})};for(let l=0,u=o.length;l<u;l++){const d=o[l],c=d.data[t].toString();if(!a.includes(c)){d.checked&&!i[c]&&d.setChecked(!1,!1);continue}if(d.childNodes.length&&s(d),d.isLeaf||this.checkStrictly){d.setChecked(!0,!1);continue}if(d.setChecked(!0,!0),n){d.setChecked(!1,!1);const p=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),p(g)})};p(d)}}}setCheckedNodes(t,n=!1){const r=this.key,o={};t.forEach(i=>{o[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,o)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,o={};t.forEach(i=>{o[i]=!0}),this._setCheckedKeys(r,n,o)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const o=this.getNode(t);o&&o.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var r;const o=t[this.key],i=this.nodesMap[o];this.setCurrentNode(i),n&&this.currentNode&&this.currentNode.level>1&&((r=this.currentNode.parent)==null||r.expand(null,!0))}setCurrentNodeKey(t,n=!0){var r;if(this.currentNodeKey=t,Bl(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const o=this.getNode(t);o&&(this.setCurrentNode(o),n&&this.currentNode&&this.currentNode.level>1&&((r=this.currentNode.parent)==null||r.expand(null,!0)))}}const qW="RootTree",N2e="NodeInstance",qee="TreeNodeMap",vot=nt({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Vt("tree"),n=dn(N2e),r=dn(qW);return()=>{const o=e.node,{data:i,store:a}=o;return e.renderContent?e.renderContent(jn,{_self:n,node:o,data:i,store:a}):ht(r.ctx.slots,"default",{node:o,data:i},()=>[jn(NW,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}});var mot=on(vot,[["__file","tree-node-content.vue"]]);function R2e(e){const t=dn(qee,null),n={treeNodeExpand:r=>{var o;e.node!==r&&((o=e.node)==null||o.collapse())},children:[]};return t&&t.children.push(n),_r(qee,n),{broadcastExpanded:r=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(r)}}}const B2e=Symbol("dragEvents");function yot({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const i=Vt("tree"),a=K({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return _r(B2e,{treeNodeDragStart:({event:d,treeNode:c})=>{if(d.dataTransfer){if(Rn(e.allowDrag)&&!e.allowDrag(c.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=c,t.emit("node-drag-start",c.node,d)}},treeNodeDragOver:({event:d,treeNode:c})=>{if(!d.dataTransfer)return;const f=c,p=a.value.dropNode;p&&p.node.id!==f.node.id&&Ws(p.$el,i.is("drop-inner"));const v=a.value.draggingNode;if(!v||!f)return;let h=!0,g=!0,y=!0,m=!0;Rn(e.allowDrop)&&(h=e.allowDrop(v.node,f.node,"prev"),m=g=e.allowDrop(v.node,f.node,"inner"),y=e.allowDrop(v.node,f.node,"next")),d.dataTransfer.dropEffect=g||h||y?"move":"none",(h||g||y)&&p?.node.id!==f.node.id&&(p&&t.emit("node-drag-leave",v.node,p.node,d),t.emit("node-drag-enter",v.node,f.node,d)),h||g||y?a.value.dropNode=f:a.value.dropNode=null,f.node.nextSibling===v.node&&(y=!1),f.node.previousSibling===v.node&&(h=!1),f.node.contains(v.node,!1)&&(g=!1),(v.node===f.node||v.node.contains(f.node))&&(h=!1,g=!1,y=!1);const b=f.$el,w=b.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),A=n.value.getBoundingClientRect();let S;const E=h?g?.25:y?.45:1:-1,D=y?g?.75:h?.55:0:1;let _=-9999;const M=d.clientY-w.top;M<w.height*E?S="before":M>w.height*D?S="after":g?S="inner":S="none";const O=b.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),k=r.value;S==="before"?_=O.top-A.top:S==="after"&&(_=O.bottom-A.top),k.style.top=`${_}px`,k.style.left=`${O.right-A.left}px`,S==="inner"?zu(b,i.is("drop-inner")):Ws(b,i.is("drop-inner")),a.value.showDropIndicator=S==="before"||S==="after",a.value.allowDrop=a.value.showDropIndicator||m,a.value.dropType=S,t.emit("node-drag-over",v.node,f.node,d)},treeNodeDragEnd:d=>{var c,f;const{draggingNode:p,dropType:v,dropNode:h}=a.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),p?.node.data&&h){const g={data:p.node.data};v!=="none"&&p.node.remove(),v==="before"?(c=h.node.parent)==null||c.insertBefore(g,h.node):v==="after"?(f=h.node.parent)==null||f.insertAfter(g,h.node):v==="inner"&&h.node.insertChild(g),v!=="none"&&(o.value.registerNode(g),o.value.key&&p.node.eachNode(y=>{var m;(m=o.value.nodesMap[y.data[o.value.key]])==null||m.setChecked(y.checked,!o.value.checkStrictly)})),Ws(h.$el,i.is("drop-inner")),t.emit("node-drag-end",p.node,h.node,v,d),v!=="none"&&t.emit("node-drop",p.node,h.node,v,d)}p&&!h&&t.emit("node-drag-end",p.node,null,v,d),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const bot=nt({name:"ElTreeNode",components:{ElCollapseTransition:fD,ElCheckbox:tc,NodeContent:mot,ElIcon:Dn,Loading:jc},props:{node:{type:hF,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=Vt("tree"),{broadcastExpanded:r}=R2e(e),o=dn(qW),i=K(!1),a=K(!1),s=K(),l=K(),u=K(),d=dn(B2e),c=br();_r(N2e,c),e.node.expanded&&(i.value=!0,a.value=!0);const f=o.props.props.children||"children";St(()=>{var _;const M=(_=e.node.data)==null?void 0:_[f];return M&&[...M]},()=>{e.node.updateChildren()}),St(()=>e.node.indeterminate,_=>{h(e.node.checked,_)}),St(()=>e.node.checked,_=>{h(_,e.node.indeterminate)}),St(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),St(()=>e.node.expanded,_=>{Yt(()=>i.value=_),_&&(a.value=!0)});const p=_=>VW(o.props.nodeKey,_.data),v=_=>{const M=e.props.class;if(!M)return{};let O;if(Rn(M)){const{data:k}=_;O=M(k,_)}else O=M;return In(O)?{[O]:!0}:O},h=(_,M)=>{(s.value!==_||l.value!==M)&&o.ctx.emit("check-change",e.node.data,_,M),s.value=_,l.value=M},g=_=>{dF(o.store,o.ctx.emit,()=>{var M;if((M=o?.props)==null?void 0:M.nodeKey){const k=p(e.node);o.store.value.setCurrentNodeKey(k)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&m(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&b(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,c,_)},y=_=>{var M;(M=o.instance.vnode.props)!=null&&M.onNodeContextmenu&&(_.stopPropagation(),_.preventDefault()),o.ctx.emit("node-contextmenu",_,e.node.data,e.node,c)},m=()=>{e.node.isLeaf||(i.value?(o.ctx.emit("node-collapse",e.node.data,e.node,c),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,c)}))},b=_=>{e.node.setChecked(_,!o?.props.checkStrictly),Yt(()=>{const M=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:M.getCheckedNodes(),checkedKeys:M.getCheckedKeys(),halfCheckedNodes:M.getHalfCheckedNodes(),halfCheckedKeys:M.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:o,expanded:i,childNodeRendered:a,oldChecked:s,oldIndeterminate:l,getNodeKey:p,getNodeClass:v,handleSelectChange:h,handleClick:g,handleContextMenu:y,handleExpandIconClick:m,handleCheckChange:b,handleChildNodeExpand:(_,M,O)=>{r(M),o.ctx.emit("node-expand",_,M,O)},handleDragStart:_=>{o.props.draggable&&d.treeNodeDragStart({event:_,treeNode:e})},handleDragOver:_=>{_.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:_,treeNode:{$el:u.value,node:e.node}})},handleDrop:_=>{_.preventDefault()},handleDragEnd:_=>{o.props.draggable&&d.treeNodeDragEnd(_)},CaretRight:t1e}}});function wot(e,t,n,r,o,i){const a=hr("el-icon"),s=hr("el-checkbox"),l=hr("loading"),u=hr("node-content"),d=hr("el-tree-node"),c=hr("el-collapse-transition");return cn((L(),G("div",{ref:"node$",class:oe([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:en(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:en(e.handleDragStart,["stop"]),onDragover:en(e.handleDragOver,["stop"]),onDragend:en(e.handleDragEnd,["stop"]),onDrop:en(e.handleDrop,["stop"])},[x("div",{class:oe(e.ns.be("node","content")),style:rn({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(L(),yt(a,{key:0,class:oe([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:en(e.handleExpandIconClick,["stop"])},{default:rt(()=>[(L(),yt(mr(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):xe("v-if",!0),e.showCheckbox?(L(),yt(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:en(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):xe("v-if",!0),e.node.loading?(L(),yt(a,{key:2,class:oe([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:rt(()=>[He(l)]),_:1},8,["class"])):xe("v-if",!0),He(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),He(c,null,{default:rt(()=>[!e.renderAfterExpand||e.childNodeRendered?cn((L(),G("div",{key:0,class:oe(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:en(()=>{},["stop"])},[(L(!0),G(Rt,null,un(e.node.childNodes,f=>(L(),yt(d,{key:e.getNodeKey(f),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:f,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[kr,e.expanded]]):xe("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[kr,e.node.visible]])}var Aot=on(bot,[["render",wot],["__file","tree-node.vue"]]);function Cot({el$:e},t){const n=Vt("tree");qn(()=>{i()}),Qc(()=>{Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(s=>{s.setAttribute("tabindex","-1")})});function r(a,s){var l,u;const d=t.value.getNode(a[s].dataset.key);return d.canFocus&&d.visible&&(((l=d.parent)==null?void 0:l.expanded)||((u=d.parent)==null?void 0:u.level)===0)}Ro(e,"keydown",a=>{const s=a.target;if(!s.className.includes(n.b("node")))return;const l=a.code,u=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=u.indexOf(s);let c;if([gn.up,gn.down].includes(l)){if(a.preventDefault(),l===gn.up){c=d===-1?0:d!==0?d-1:u.length-1;const p=c;for(;!r(u,c);){if(c--,c===p){c=-1;break}c<0&&(c=u.length-1)}}else{c=d===-1?0:d<u.length-1?d+1:0;const p=c;for(;!r(u,c);){if(c++,c===p){c=-1;break}c>=u.length&&(c=0)}}c!==-1&&u[c].focus()}[gn.left,gn.right].includes(l)&&(a.preventDefault(),s.click());const f=s.querySelector('[type="checkbox"]');[gn.enter,gn.numpadEnter,gn.space].includes(l)&&f&&(a.preventDefault(),f.click())});const i=()=>{var a;if(!e.value)return;const s=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(d=>{d.setAttribute("tabindex","-1")});const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(a=s[0])==null||a.setAttribute("tabindex","0")}}const xot=nt({name:"ElTree",components:{ElTreeNode:Aot},props:{data:{type:ct(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:{type:ct(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:ct(Function)},allowDrop:{type:ct(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:wo}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=Gr(),r=Vt("tree"),o=dn(Wb,null),i=K(new got({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const a=K(i.value.root),s=K(null),l=K(null),u=K(null),{broadcastExpanded:d}=R2e(e),{dragState:c}=yot({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});Cot({el$:l},i);const f=ee(()=>{const{childNodes:j}=a.value,q=o?o.hasFilteredOptions!==0:!1;return(!j||j.length===0||j.every(({visible:Y})=>!Y))&&!q});St(()=>e.currentNodeKey,j=>{i.value.setCurrentNodeKey(j??null)}),St(()=>e.defaultCheckedKeys,(j,q)=>{fa(j,q)||i.value.setDefaultCheckedKey(j??[])}),St(()=>e.defaultExpandedKeys,j=>{i.value.setDefaultExpandedKeys(j??[])}),St(()=>e.data,j=>{i.value.setData(j)},{deep:!0}),St(()=>e.checkStrictly,j=>{i.value.checkStrictly=j});const p=j=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(j)},v=j=>VW(e.nodeKey,j.data),h=j=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const q=i.value.getNode(j);if(!q)return[];const Y=[q.data];let U=q.parent;for(;U&&U!==a.value;)Y.push(U.data),U=U.parent;return Y.reverse()},g=(j,q)=>i.value.getCheckedNodes(j,q),y=j=>i.value.getCheckedKeys(j),m=()=>{const j=i.value.getCurrentNode();return j?j.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const j=m();return j?j[e.nodeKey]:null},w=(j,q)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(j,q)},A=(j,q)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(j,q)},S=(j,q,Y)=>{i.value.setChecked(j,q,Y)},E=()=>i.value.getHalfCheckedNodes(),D=()=>i.value.getHalfCheckedKeys(),_=(j,q=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");dF(i,t.emit,()=>{d(j),i.value.setUserCurrentNode(j,q)})},M=(j,q=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");dF(i,t.emit,()=>{d(),i.value.setCurrentNodeKey(j??null,q)})},O=j=>i.value.getNode(j),k=j=>{i.value.remove(j)},R=(j,q)=>{i.value.append(j,q)},N=(j,q)=>{i.value.insertBefore(j,q)},W=(j,q)=>{i.value.insertAfter(j,q)},B=(j,q,Y)=>{d(q),t.emit("node-expand",j,q,Y)},z=(j,q)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(j,q)};return _r(qW,{ctx:t,props:e,store:i,root:a,currentNode:s,instance:br()}),_r(Hd,void 0),{ns:r,store:i,root:a,currentNode:s,dragState:c,el$:l,dropIndicator$:u,isEmpty:f,filter:p,getNodeKey:v,getNodePath:h,getCheckedNodes:g,getCheckedKeys:y,getCurrentNode:m,getCurrentKey:b,setCheckedNodes:w,setCheckedKeys:A,setChecked:S,getHalfCheckedNodes:E,getHalfCheckedKeys:D,setCurrentNode:_,setCurrentKey:M,t:n,getNode:O,remove:k,append:R,insertBefore:N,insertAfter:W,handleNodeExpand:B,updateKeyChildren:z}}});function Sot(e,t,n,r,o,i){const a=hr("el-tree-node");return L(),G("div",{ref:"el$",class:oe([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(L(!0),G(Rt,null,un(e.root.childNodes,s=>(L(),yt(a,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(L(),G("div",{key:0,class:oe(e.ns.e("empty-block"))},[ht(e.$slots,"empty",{},()=>{var s;return[x("span",{class:oe(e.ns.e("empty-text"))},je((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):xe("v-if",!0),cn(x("div",{ref:"dropIndicator$",class:oe(e.ns.e("drop-indicator"))},null,2),[[kr,e.dragState.showDropIndicator]])],2)}var Eot=on(xot,[["render",Sot],["__file","tree.vue"]]);const $E=or(Eot),kot=(e,{attrs:t,emit:n},{select:r,tree:o,key:i})=>{const a=Vt("tree-select");return St(()=>e.data,()=>{e.filterable&&Yt(()=>{var l,u;(u=o.value)==null||u.filter((l=r.value)==null?void 0:l.states.inputValue)})},{flush:"post"}),{...uu(Oa(e),Object.keys(Nv.props)),...t,class:ee(()=>t.class),style:ee(()=>t.style),"onUpdate:modelValue":l=>n(Qn,l),valueKey:i,popperClass:ee(()=>{const l=[a.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{var u;e.filterMethod?e.filterMethod(l):e.remoteMethod?e.remoteMethod(l):(u=o.value)==null||u.filter(l)}}},Tot=nt({extends:DE,setup(e,t){const n=DE.setup(e,t);delete n.selectOptionClick;const r=br().proxy;return Yt(()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),St(()=>t.attrs.visible,o=>{Yt(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function gF(e){return e||e===0}function GW(e){return Zt(e)&&e.length}function $m(e){return Zt(e)?e:gF(e)?[e]:[]}function VS(e,t,n,r,o){for(let i=0;i<e.length;i++){const a=e[i];if(t(a,i,e,o))return r?r(a,i,e,o):a;{const s=n(a);if(GW(s)){const l=VS(s,t,n,r,a);if(l)return l}}}}function qS(e,t,n,r){for(let o=0;o<e.length;o++){const i=e[o];t(i,o,e,r);const a=n(i);GW(a)&&qS(a,t,n,i)}}const _ot=(e,{attrs:t,slots:n,emit:r},{select:o,tree:i,key:a})=>{St([()=>e.modelValue,i],()=>{e.showCheckbox&&Yt(()=>{const f=i.value;f&&!fa(f.getCheckedKeys(),$m(e.modelValue))&&f.setCheckedKeys($m(e.modelValue))})},{immediate:!0,deep:!0});const s=ee(()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(f,p)=>{var v;const h=s.value[f];return Rn(h)?h(p,(v=i.value)==null?void 0:v.getNode(l("value",p))):p[h]},u=$m(e.modelValue).map(f=>VS(e.data||[],p=>l("value",p)===f,p=>l("children",p),(p,v,h,g)=>g&&l("value",g))).filter(f=>gF(f)),d=ee(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const f=[];return qS(e.data.concat(e.cacheData),p=>{const v=l("value",p);f.push({value:v,currentLabel:l("label",p),isDisabled:l("disabled",p)})},p=>l("children",p)),f}),c=()=>{var f;return(f=i.value)==null?void 0:f.getCheckedKeys().filter(p=>{var v;const h=(v=i.value)==null?void 0:v.getNode(p);return!ea(h)&&iu(h.childNodes)})};return{...uu(Oa(e),Object.keys($E.props)),...t,nodeKey:a,expandOnClickNode:ee(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:ee(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(f,{node:p,data:v,store:h})=>f(Tot,{value:l("value",v),label:l("label",v),disabled:l("disabled",v),visible:p.visible},e.renderContent?()=>e.renderContent(f,{node:p,data:v,store:h}):n.default?()=>n.default({node:p,data:v,store:h}):void 0),filterNodeMethod:(f,p,v)=>e.filterNodeMethod?e.filterNodeMethod(f,p,v):f?new RegExp(gW(f),"i").test(l("label",p)||""):!0,onNodeClick:(f,p,v)=>{var h,g,y,m;if((h=t.onNodeClick)==null||h.call(t,f,p,v),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!l("disabled",f)){const b=(g=o.value)==null?void 0:g.states.options.get(l("value",f));(y=o.value)==null||y.handleOptionSelect(b)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick();(m=o.value)==null||m.focus()}},onCheck:(f,p)=>{var v;if(!e.showCheckbox)return;const h=l("value",f),g={};qS([i.value.store.root],w=>g[w.key]=w,w=>w.childNodes);const y=p.checkedKeys,m=e.multiple?$m(e.modelValue).filter(w=>!(w in g)&&!y.includes(w)):[],b=m.concat(y);if(e.checkStrictly)r(Qn,e.multiple?b:b.includes(h)?h:void 0);else if(e.multiple){const w=c();r(Qn,m.concat(w))}else{const w=VS([f],E=>!GW(l("children",E))&&!l("disabled",E),E=>l("children",E)),A=w?l("value",w):void 0,S=gF(e.modelValue)&&!!VS([f],E=>l("value",E)===e.modelValue,E=>l("children",E));r(Qn,A===e.modelValue||S?void 0:A)}Yt(()=>{var w;const A=$m(e.modelValue);i.value.setCheckedKeys(A),(w=t.onCheck)==null||w.call(t,f,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})}),(v=o.value)==null||v.focus()},onNodeExpand:(f,p,v)=>{var h;(h=t.onNodeExpand)==null||h.call(t,f,p,v),Yt(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&p.checked){const g={},y=i.value.getCheckedKeys();qS([i.value.store.root],w=>g[w.key]=w,w=>w.childNodes);const m=$m(e.modelValue).filter(w=>!(w in g)&&!y.includes(w)),b=c();r(Qn,m.concat(b))}})},cacheOptions:d}};var Dot=nt({props:{data:{type:Array,default:()=>[]}},setup(e){const t=dn(Wb);return St(()=>e.data,()=>{var n;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const r=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Xr&&!Array.from(r).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Iot=nt({name:"ElTreeSelect",inheritAttrs:!1,props:{...Nv.props,...$E.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,o=K(),i=K(),a=ee(()=>e.nodeKey||e.valueKey||"value"),s=kot(e,t,{select:o,tree:i,key:a}),{cacheOptions:l,...u}=_ot(e,t,{select:o,tree:i,key:a}),d=Wr({});return r(d),qn(()=>{Object.assign(d,{...uu(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...uu(o.value,["focus","blur","selectedLabel"])})}),()=>jn(Nv,Wr({...s,ref:c=>o.value=c}),{...n,default:()=>[jn(Dot,{data:l.value}),jn($E,Wr({...u,ref:c=>i.value=c}))]})}});var Oot=on(Iot,[["__file","tree-select.vue"]]);const Mot=or(Oot),KW=Symbol(),Pot={key:-1,level:-1,data:{}};var E4=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(E4||{}),vF=(e=>(e.ADD="add",e.DELETE="delete",e))(vF||{});const L2e={type:Number,default:26},Not=Jt({data:{type:ct(Array),default:()=>fi([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ct(Object),default:()=>fi({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:ct(Array),default:()=>fi([])},checkStrictly:Boolean,defaultExpandedKeys:{type:ct(Array),default:()=>fi([])},indent:{type:Number,default:16},itemSize:L2e,icon:{type:wo},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:ct([String,Number])},accordion:Boolean,filterMethod:{type:ct(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),Rot=Jt({node:{type:ct(Object),default:()=>fi(Pot)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:L2e}),Bot=Jt({node:{type:ct(Object),required:!0}}),F2e="node-click",U2e="node-drop",z2e="node-expand",$2e="node-collapse",j2e="current-change",H2e="check",W2e="check-change",V2e="node-contextmenu",Lot={[F2e]:(e,t,n)=>e&&t&&n,[U2e]:(e,t,n)=>e&&t&&n,[z2e]:(e,t)=>e&&t,[$2e]:(e,t)=>e&&t,[j2e]:(e,t)=>e&&t,[H2e]:(e,t)=>e&&t,[W2e]:(e,t)=>e&&Eo(t),[V2e]:(e,t,n)=>e&&t&&n},Fot={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Eo(t)};function Uot(e,t){const n=K(new Set),r=K(new Set),{emit:o}=br();St([()=>t.value,()=>e.defaultCheckedKeys],()=>Yt(()=>{m(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:w}=t.value,A=n.value,S=new Set;for(let E=w-1;E>=1;--E){const D=b.get(E);D&&D.forEach(_=>{const M=_.children;if(M){let O=!0,k=!1;for(const R of M){const N=R.key;if(A.has(N))k=!0;else if(S.has(N)){O=!1,k=!0;break}else O=!1}O?A.add(_.key):k?(S.add(_.key),A.delete(_.key)):(A.delete(_.key),S.delete(_.key))}})}r.value=S},a=b=>n.value.has(b.key),s=b=>r.value.has(b.key),l=(b,w,A=!0,S=!0)=>{const E=n.value,D=(_,M)=>{E[M?vF.ADD:vF.DELETE](_.key);const O=_.children;!e.checkStrictly&&O&&O.forEach(k=>{k.disabled||D(k,M)})};D(b,w),S&&i(),A&&u(b,w)},u=(b,w)=>{const{checkedNodes:A,checkedKeys:S}=v(),{halfCheckedNodes:E,halfCheckedKeys:D}=h();o(H2e,b.data,{checkedKeys:S,checkedNodes:A,halfCheckedKeys:D,halfCheckedNodes:E}),o(W2e,b.data,w)};function d(b=!1){return v(b).checkedKeys}function c(b=!1){return v(b).checkedNodes}function f(){return h().halfCheckedKeys}function p(){return h().halfCheckedNodes}function v(b=!1){const w=[],A=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;n.value.forEach(E=>{const D=S.get(E);D&&(!b||b&&D.isLeaf)&&(A.push(E),w.push(D.data))})}return{checkedKeys:A,checkedNodes:w}}function h(){const b=[],w=[];if(t?.value&&e.showCheckbox){const{treeNodeMap:A}=t.value;r.value.forEach(S=>{const E=A.get(S);E&&(w.push(S),b.push(E.data))})}return{halfCheckedNodes:b,halfCheckedKeys:w}}function g(b){n.value.clear(),r.value.clear(),Yt(()=>{m(b)})}function y(b,w){if(t?.value&&e.showCheckbox){const A=t.value.treeNodeMap.get(b);A&&l(A,w,!1)}}function m(b){if(t?.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&b?.length>0){for(const A of b){const S=w.get(A);S&&!a(S)&&l(S,!0,!1,!1)}i()}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:a,isIndeterminate:s,getCheckedKeys:d,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:y,setCheckedKeys:g}}function zot(e,t){const n=K(new Set([])),r=K(new Set([])),o=ee(()=>Rn(e.filterMethod));function i(s){var l;if(!o.value)return;const u=new Set,d=r.value,c=n.value,f=[],p=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;c.clear();function h(g){g.forEach(y=>{f.push(y),v?.(s,y.data,y)?f.forEach(b=>{u.add(b.key)}):y.isLeaf&&c.add(y.key);const m=y.children;if(m&&h(m),!y.isLeaf){if(!u.has(y.key))c.add(y.key);else if(m){let b=!0;for(const w of m)if(!c.has(w.key)){b=!1;break}b?d.add(y.key):d.delete(y.key)}}f.pop()})}return h(p),u}function a(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:a}}function $ot(e,t){const n=K(new Set),r=K(),o=jo(),i=K(),{isIndeterminate:a,isChecked:s,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:p,setCheckedKeys:v}=Uot(e,o),{doFilter:h,hiddenNodeKeySet:g,isForceHiddenExpandIcon:y}=zot(e,o),m=ee(()=>{var Ae;return((Ae=e.props)==null?void 0:Ae.value)||E4.KEY}),b=ee(()=>{var Ae;return((Ae=e.props)==null?void 0:Ae.children)||E4.CHILDREN}),w=ee(()=>{var Ae;return((Ae=e.props)==null?void 0:Ae.disabled)||E4.DISABLED}),A=ee(()=>{var Ae;return((Ae=e.props)==null?void 0:Ae.label)||E4.LABEL}),S=ee(()=>{var Ae;const he=n.value,Ee=g.value,Q=[],me=((Ae=o.value)==null?void 0:Ae.treeNodes)||[],De=[];for(let pe=me.length-1;pe>=0;--pe)De.push(me[pe]);for(;De.length;){const pe=De.pop();if(!Ee.has(pe.key)&&(Q.push(pe),pe.children&&he.has(pe.key)))for(let ie=pe.children.length-1;ie>=0;--ie)De.push(pe.children[ie])}return Q}),E=ee(()=>S.value.length>0);function D(Ae){const he=new Map,Ee=new Map;let Q=1;function me(pe,ie=1,ue=void 0){var Be;const Me=[];for(const Fe of pe){const ze=O(Fe),Ne={level:ie,key:ze,data:Fe};Ne.label=R(Fe),Ne.parent=ue;const Re=M(Fe);Ne.disabled=k(Fe),Ne.isLeaf=!Re||Re.length===0,Ne.expanded=n.value.has(ze),Re&&Re.length&&(Ne.children=me(Re,ie+1,Ne)),Me.push(Ne),he.set(ze,Ne),Ee.has(ie)||Ee.set(ie,[]),(Be=Ee.get(ie))==null||Be.push(Ne)}return ie>Q&&(Q=ie),Me}const De=me(Ae);return{treeNodeMap:he,levelTreeNodeMap:Ee,maxLevel:Q,treeNodes:De}}function _(Ae){const he=h(Ae);he&&(n.value=he)}function M(Ae){return Ae[b.value]}function O(Ae){return Ae?Ae[m.value]:""}function k(Ae){return Ae[w.value]}function R(Ae){return Ae[A.value]}function N(Ae){n.value.has(Ae.key)?U(Ae):Y(Ae)}function W(Ae){const he=new Set,Ee=o.value.treeNodeMap;Ae.forEach(Q=>{let me=Ee.get(Q);for(;me&&!he.has(me.key);)he.add(me.key),me.expanded=!0,me=me.parent}),n.value=he}function B(Ae,he){t(F2e,Ae.data,Ae,he),j(Ae),e.expandOnClickNode&&N(Ae),e.showCheckbox&&(e.checkOnClickNode||Ae.isLeaf&&e.checkOnClickLeaf)&&!Ae.disabled&&l(Ae,!s(Ae),!0)}function z(Ae,he){t(U2e,Ae.data,Ae,he)}function j(Ae){H(Ae)||(r.value=Ae.key,t(j2e,Ae.data,Ae))}function q(Ae,he){l(Ae,he)}function Y(Ae){const he=n.value;if(o.value&&e.accordion){const{treeNodeMap:Ee}=o.value;he.forEach(Q=>{const me=Ee.get(Q);Ae&&Ae.level===me?.level&&(he.delete(Q),me.expanded=!1)})}he.add(Ae.key),Ae.expanded=!0,t(z2e,Ae.data,Ae)}function U(Ae){n.value.delete(Ae.key),Ae.expanded=!1,t($2e,Ae.data,Ae)}function F(Ae){return!!Ae.disabled}function H(Ae){const he=r.value;return he!==void 0&&he===Ae.key}function re(){var Ae,he;if(r.value)return(he=(Ae=o.value)==null?void 0:Ae.treeNodeMap.get(r.value))==null?void 0:he.data}function X(){return r.value}function te(Ae){r.value=Ae}function Z(Ae){o.value=D(Ae)}function le(Ae){var he;const Ee=dr(Ae)?O(Ae):Ae;return(he=o.value)==null?void 0:he.treeNodeMap.get(Ee)}function ve(Ae,he="auto"){const Ee=le(Ae);Ee&&i.value&&i.value.scrollToItem(S.value.indexOf(Ee),he)}function Pe(Ae){var he;(he=i.value)==null||he.scrollTo(Ae)}return St(()=>e.currentNodeKey,Ae=>{r.value=Ae},{immediate:!0}),St(()=>e.defaultExpandedKeys,Ae=>{n.value=new Set(Ae)},{immediate:!0}),St(()=>e.data,Ae=>{Z(Ae)},{immediate:!0}),{tree:o,flattenTree:S,isNotEmpty:E,listRef:i,getKey:O,getChildren:M,toggleExpand:N,toggleCheckbox:l,isChecked:s,isIndeterminate:a,isDisabled:F,isCurrent:H,isForceHiddenExpandIcon:y,handleNodeClick:B,handleNodeDrop:z,handleNodeCheck:q,getCurrentNode:re,getCurrentKey:X,setCurrentKey:te,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:p,setCheckedKeys:v,filter:_,setData:Z,getNode:le,expandNode:Y,collapseNode:U,setExpandedKeys:W,scrollToNode:ve,scrollTo:Pe}}var jot=nt({name:"ElTreeNodeContent",props:Bot,setup(e){const t=dn(KW),n=Vt("tree");return()=>{const r=e.node,{data:o}=r;return t?.ctx.slots.default?t.ctx.slots.default({node:r,data:o}):jn(NW,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[r?.label])}}});const Hot=nt({name:"ElTreeNode"}),Wot=nt({...Hot,props:Rot,emits:Fot,setup(e,{emit:t}){const n=e,r=dn(KW),o=Vt("tree"),i=ee(()=>{var p;return(p=r?.props.indent)!=null?p:16}),a=ee(()=>{var p;return(p=r?.props.icon)!=null?p:t1e}),s=p=>{const v=r?.props.props.class;if(!v)return{};let h;if(Rn(v)){const{data:g}=p;h=v(g,p)}else h=v;return In(h)?{[h]:!0}:h},l=p=>{t("click",n.node,p)},u=p=>{t("drop",n.node,p)},d=()=>{t("toggle",n.node)},c=p=>{t("check",n.node,p)},f=p=>{var v,h,g,y;(g=(h=(v=r?.instance)==null?void 0:v.vnode)==null?void 0:h.props)!=null&&g.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),r?.ctx.emit(V2e,p,(y=n.node)==null?void 0:y.data,n.node)};return(p,v)=>{var h,g,y;return L(),G("div",{ref:"node$",class:oe([C(o).b("node"),C(o).is("expanded",p.expanded),C(o).is("current",p.current),C(o).is("focusable",!p.disabled),C(o).is("checked",!p.disabled&&p.checked),s(p.node)]),role:"treeitem",tabindex:"-1","aria-expanded":p.expanded,"aria-disabled":p.disabled,"aria-checked":p.checked,"data-key":(h=p.node)==null?void 0:h.key,onClick:en(l,["stop"]),onContextmenu:f,onDragover:en(()=>{},["prevent"]),onDragenter:en(()=>{},["prevent"]),onDrop:en(u,["stop"])},[x("div",{class:oe(C(o).be("node","content")),style:rn({paddingLeft:`${(p.node.level-1)*C(i)}px`,height:p.itemSize+"px"})},[C(a)?(L(),yt(C(Dn),{key:0,class:oe([C(o).is("leaf",!!((g=p.node)!=null&&g.isLeaf)),C(o).is("hidden",p.hiddenExpandIcon),{expanded:!((y=p.node)!=null&&y.isLeaf)&&p.expanded},C(o).be("node","expand-icon")]),onClick:en(d,["stop"])},{default:rt(()=>[(L(),yt(mr(C(a))))]),_:1},8,["class","onClick"])):xe("v-if",!0),p.showCheckbox?(L(),yt(C(tc),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:c,onClick:en(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):xe("v-if",!0),He(C(jot),{node:{...p.node,expanded:p.expanded}},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var Vot=on(Wot,[["__file","tree-node.vue"]]);const qot=nt({name:"ElTreeV2"}),Got=nt({...qot,props:Not,emits:Lot,setup(e,{expose:t,emit:n}){const r=e,o=ga(),i=ee(()=>r.itemSize);_r(KW,{ctx:{emit:n,slots:o},props:r,instance:br()}),_r(Hd,void 0);const{t:a}=Gr(),s=Vt("tree"),{flattenTree:l,isNotEmpty:u,listRef:d,toggleExpand:c,isIndeterminate:f,isChecked:p,isDisabled:v,isCurrent:h,isForceHiddenExpandIcon:g,handleNodeClick:y,handleNodeDrop:m,handleNodeCheck:b,toggleCheckbox:w,getCurrentNode:A,getCurrentKey:S,setCurrentKey:E,getCheckedKeys:D,getCheckedNodes:_,getHalfCheckedKeys:M,getHalfCheckedNodes:O,setChecked:k,setCheckedKeys:R,filter:N,setData:W,getNode:B,expandNode:z,collapseNode:j,setExpandedKeys:q,scrollToNode:Y,scrollTo:U}=$ot(r,n);return t({toggleCheckbox:w,getCurrentNode:A,getCurrentKey:S,setCurrentKey:E,getCheckedKeys:D,getCheckedNodes:_,getHalfCheckedKeys:M,getHalfCheckedNodes:O,setChecked:k,setCheckedKeys:R,filter:N,setData:W,getNode:B,expandNode:z,collapseNode:j,setExpandedKeys:q,scrollToNode:Y,scrollTo:U}),(F,H)=>(L(),G("div",{class:oe([C(s).b(),{[C(s).m("highlight-current")]:F.highlightCurrent}]),role:"tree"},[C(u)?(L(),yt(C(Ebe),{key:0,ref_key:"listRef",ref:d,"class-name":C(s).b("virtual-list"),data:C(l),total:C(l).length,height:F.height,"item-size":C(i),"perf-mode":F.perfMode,"scrollbar-always-on":F.scrollbarAlwaysOn},{default:rt(({data:re,index:X,style:te})=>[(L(),yt(Vot,{key:re[X].key,style:rn(te),node:re[X],expanded:re[X].expanded,"show-checkbox":F.showCheckbox,checked:C(p)(re[X]),indeterminate:C(f)(re[X]),"item-size":C(i),disabled:C(v)(re[X]),current:C(h)(re[X]),"hidden-expand-icon":C(g)(re[X]),onClick:C(y),onToggle:C(c),onCheck:C(b),onDrop:C(m)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(L(),G("div",{key:1,class:oe(C(s).e("empty-block"))},[ht(F.$slots,"empty",{},()=>{var re;return[x("span",{class:oe(C(s).e("empty-text"))},je((re=F.emptyText)!=null?re:C(a)("el.tree.emptyText")),3)]})],2))],2))}});var Kot=on(Got,[["__file","tree.vue"]]);const Yot=or(Kot),q2e=Symbol("uploadContextKey"),Qot="ElUpload";class Zot extends Error{constructor(t,n,r,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=o}}function Gee(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new Zot(r,n.status,t.method,e)}function Xot(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Jot=e=>{typeof XMLHttpRequest>"u"&&na(Qot,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const a=i;a.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(a)});const r=new FormData;if(e.data)for(const[i,a]of Object.entries(e.data))Zt(a)&&a.length?r.append(i,...a):r.append(i,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Gee(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Gee(n,e,t));e.onSuccess(Xot(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((i,a)=>t.setRequestHeader(a,i));else for(const[i,a]of Object.entries(o))ea(a)||t.setRequestHeader(i,String(a));return t.send(r),t},G2e=["text","picture","picture-card"];let eit=1;const mF=()=>Date.now()+eit++,K2e=Jt({action:{type:String,default:"#"},headers:{type:ct(Object)},method:{type:String,default:"post"},data:{type:ct([Object,Function,Promise]),default:()=>fi({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:ct(Array),default:()=>fi([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:G2e,default:"text"},httpRequest:{type:ct(Function),default:Jot},disabled:Boolean,limit:Number}),tit=Jt({...K2e,beforeUpload:{type:ct(Function),default:bo},beforeRemove:{type:ct(Function)},onRemove:{type:ct(Function),default:bo},onChange:{type:ct(Function),default:bo},onPreview:{type:ct(Function),default:bo},onSuccess:{type:ct(Function),default:bo},onProgress:{type:ct(Function),default:bo},onError:{type:ct(Function),default:bo},onExceed:{type:ct(Function),default:bo},crossorigin:{type:ct(String)}}),nit=Jt({files:{type:ct(Array),default:()=>fi([])},disabled:Boolean,handlePreview:{type:ct(Function),default:bo},listType:{type:String,values:G2e,default:"text"},crossorigin:{type:ct(String)}}),rit={remove:e=>!!e},oit=nt({name:"ElUploadList"}),iit=nt({...oit,props:nit,emits:rit,setup(e,{emit:t}){const n=e,{t:r}=Gr(),o=Vt("upload"),i=Vt("icon"),a=Vt("list"),s=Va(),l=K(!1),u=ee(()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",n.disabled)]),d=c=>{t("remove",c)};return(c,f)=>(L(),yt(Qge,{tag:"ul",class:oe(C(u)),name:C(a).b()},{default:rt(()=>[(L(!0),G(Rt,null,un(c.files,(p,v)=>(L(),G("li",{key:p.uid||p.name,class:oe([C(o).be("list","item"),C(o).is(p.status),{focusing:l.value}]),tabindex:"0",onKeydown:$r(h=>!C(s)&&d(p),["delete"]),onFocus:h=>l.value=!0,onBlur:h=>l.value=!1,onClick:h=>l.value=!1},[ht(c.$slots,"default",{file:p,index:v},()=>[c.listType==="picture"||p.status!=="uploading"&&c.listType==="picture-card"?(L(),G("img",{key:0,class:oe(C(o).be("list","item-thumbnail")),src:p.url,crossorigin:c.crossorigin,alt:""},null,10,["src","crossorigin"])):xe("v-if",!0),p.status==="uploading"||c.listType!=="picture-card"?(L(),G("div",{key:1,class:oe(C(o).be("list","item-info"))},[x("a",{class:oe(C(o).be("list","item-name")),onClick:en(h=>c.handlePreview(p),["prevent"])},[He(C(Dn),{class:oe(C(i).m("document"))},{default:rt(()=>[He(C(Py))]),_:1},8,["class"]),x("span",{class:oe(C(o).be("list","item-file-name")),title:p.name},je(p.name),11,["title"])],10,["onClick"]),p.status==="uploading"?(L(),yt(C(vbe),{key:0,type:c.listType==="picture-card"?"circle":"line","stroke-width":c.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:rn(c.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):xe("v-if",!0)],2)):xe("v-if",!0),x("label",{class:oe(C(o).be("list","item-status-label"))},[c.listType==="text"?(L(),yt(C(Dn),{key:0,class:oe([C(i).m("upload-success"),C(i).m("circle-check")])},{default:rt(()=>[He(C(xH))]),_:1},8,["class"])):["picture-card","picture"].includes(c.listType)?(L(),yt(C(Dn),{key:1,class:oe([C(i).m("upload-success"),C(i).m("check")])},{default:rt(()=>[He(C(B5))]),_:1},8,["class"])):xe("v-if",!0)],2),C(s)?xe("v-if",!0):(L(),yt(C(Dn),{key:2,class:oe(C(i).m("close")),onClick:h=>d(p)},{default:rt(()=>[He(C(vu))]),_:2},1032,["class","onClick"])),xe(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),xe(" This is a bug which needs to be fixed "),xe(" TODO: Fix the incorrect navigation interaction "),C(s)?xe("v-if",!0):(L(),G("i",{key:3,class:oe(C(i).m("close-tip"))},je(C(r)("el.upload.deleteTip")),3)),c.listType==="picture-card"?(L(),G("span",{key:4,class:oe(C(o).be("list","item-actions"))},[x("span",{class:oe(C(o).be("list","item-preview")),onClick:h=>c.handlePreview(p)},[He(C(Dn),{class:oe(C(i).m("zoom-in"))},{default:rt(()=>[He(C(s1e))]),_:1},8,["class"])],10,["onClick"]),C(s)?xe("v-if",!0):(L(),G("span",{key:0,class:oe(C(o).be("list","item-delete")),onClick:h=>d(p)},[He(C(Dn),{class:oe(C(i).m("delete"))},{default:rt(()=>[He(C(rLe))]),_:1},8,["class"])],10,["onClick"]))],2)):xe("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),ht(c.$slots,"append")]),_:3},8,["class","name"]))}});var Kee=on(iit,[["__file","upload-list.vue"]]);const ait=Jt({disabled:Boolean}),sit={file:e=>Zt(e)},Y2e="ElUploadDrag",lit=nt({name:Y2e}),uit=nt({...lit,props:ait,emits:sit,setup(e,{emit:t}){dn(q2e)||na(Y2e,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Vt("upload"),o=K(!1),i=Va(),a=u=>{if(i.value)return;o.value=!1,u.stopPropagation();const d=Array.from(u.dataTransfer.files),c=u.dataTransfer.items||[];d.forEach((f,p)=>{var v;const h=c[p],g=(v=h?.webkitGetAsEntry)==null?void 0:v.call(h);g&&(f.isDirectory=g.isDirectory)}),t("file",d)},s=()=>{i.value||(o.value=!0)},l=u=>{u.currentTarget.contains(u.relatedTarget)||(o.value=!1)};return(u,d)=>(L(),G("div",{class:oe([C(r).b("dragger"),C(r).is("dragover",o.value)]),onDrop:en(a,["prevent"]),onDragover:en(s,["prevent"]),onDragleave:en(l,["prevent"])},[ht(u.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var cit=on(uit,[["__file","upload-dragger.vue"]]);const dit=Jt({...K2e,beforeUpload:{type:ct(Function),default:bo},onRemove:{type:ct(Function),default:bo},onStart:{type:ct(Function),default:bo},onSuccess:{type:ct(Function),default:bo},onProgress:{type:ct(Function),default:bo},onError:{type:ct(Function),default:bo},onExceed:{type:ct(Function),default:bo}}),fit=nt({name:"ElUploadContent",inheritAttrs:!1}),pit=nt({...fit,props:dit,setup(e,{expose:t}){const n=e,r=Vt("upload"),o=Va(),i=jo({}),a=jo(),s=h=>{if(h.length===0)return;const{autoUpload:g,limit:y,fileList:m,multiple:b,onStart:w,onExceed:A}=n;if(y&&m.length+h.length>y){A(h,m);return}b||(h=h.slice(0,1));for(const S of h){const E=S;E.uid=mF(),w(E),g&&l(E)}},l=async h=>{if(a.value.value="",!n.beforeUpload)return d(h);let g,y={};try{const b=n.data,w=n.beforeUpload(h);y=N3(n.data)?yE(n.data):n.data,g=await w,N3(n.data)&&fa(b,y)&&(y=yE(n.data))}catch{g=!1}if(g===!1){n.onRemove(h);return}let m=h;g instanceof Blob&&(g instanceof File?m=g:m=new File([g],h.name,{type:h.type})),d(Object.assign(m,{uid:h.uid}),y)},u=async(h,g)=>Rn(h)?h(g):h,d=async(h,g)=>{const{headers:y,data:m,method:b,withCredentials:w,name:A,action:S,onProgress:E,onSuccess:D,onError:_,httpRequest:M}=n;try{g=await u(g??m,h)}catch{n.onRemove(h);return}const{uid:O}=h,k={headers:y||{},withCredentials:w,file:h,data:g,method:b,filename:A,action:S,onProgress:N=>{E(N,h)},onSuccess:N=>{D(N,h),delete i.value[O]},onError:N=>{_(N,h),delete i.value[O]}},R=M(k);i.value[O]=R,R instanceof Promise&&R.then(k.onSuccess,k.onError)},c=h=>{const g=h.target.files;g&&s(Array.from(g))},f=()=>{o.value||(a.value.value="",a.value.click())},p=()=>{f()};return t({abort:h=>{Gme(i.value).filter(h?([y])=>String(h.uid)===y:()=>!0).forEach(([y,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete i.value[y]})},upload:l}),(h,g)=>(L(),G("div",{class:oe([C(r).b(),C(r).m(h.listType),C(r).is("drag",h.drag),C(r).is("disabled",C(o))]),tabindex:C(o)?"-1":"0",onClick:f,onKeydown:$r(en(p,["self"]),["enter","space"])},[h.drag?(L(),yt(cit,{key:0,disabled:C(o),onFile:s},{default:rt(()=>[ht(h.$slots,"default")]),_:3},8,["disabled"])):ht(h.$slots,"default",{key:1}),x("input",{ref_key:"inputRef",ref:a,class:oe(C(r).e("input")),name:h.name,disabled:C(o),multiple:h.multiple,accept:h.accept,type:"file",onChange:c,onClick:en(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var Yee=on(pit,[["__file","upload-content.vue"]]);const Qee="ElUpload",Zee=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},hit=(e,t)=>{const n=Ume(e,"fileList",void 0,{passive:!0}),r=p=>n.value.find(v=>v.uid===p.uid);function o(p){var v;(v=t.value)==null||v.abort(p)}function i(p=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!p.includes(v.status))}function a(p){n.value=n.value.filter(v=>v.uid!==p.uid)}const s=(p,v)=>{const h=r(v);h&&(console.error(p),h.status="fail",a(h),e.onError(p,h,n.value),e.onChange(h,n.value))},l=(p,v)=>{const h=r(v);h&&(e.onProgress(p,h,n.value),h.status="uploading",h.percentage=Math.round(p.percent))},u=(p,v)=>{const h=r(v);h&&(h.status="success",h.response=p,e.onSuccess(p,h,n.value),e.onChange(h,n.value))},d=p=>{ea(p.uid)&&(p.uid=mF());const v={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(p)}catch(h){h.message,e.onError(h,v,n.value)}n.value=[...n.value,v],e.onChange(v,n.value)},c=async p=>{const v=p instanceof File?r(p):p;v||na(Qee,"file to be removed not found");const h=g=>{o(g),a(g),e.onRemove(g,n.value),Zee(g)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&h(v):h(v)};function f(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var v;return p&&((v=t.value)==null?void 0:v.upload(p))})}return St(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(v=>{const{raw:h,url:g}=v;if(!g&&h)try{v.url=URL.createObjectURL(h)}catch(y){e.onError(y,v,n.value)}return v}))}),St(n,p=>{for(const v of p)v.uid||(v.uid=mF()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:i,handleError:s,handleProgress:l,handleStart:d,handleSuccess:u,handleRemove:c,submit:f,revokeFileObjectURL:Zee}},git=nt({name:"ElUpload"}),vit=nt({...git,props:tit,setup(e,{expose:t}){const n=e,r=Va(),o=jo(),{abort:i,submit:a,clearFiles:s,uploadFiles:l,handleStart:u,handleError:d,handleRemove:c,handleSuccess:f,handleProgress:p,revokeFileObjectURL:v}=hit(n,o),h=ee(()=>n.listType==="picture-card"),g=ee(()=>({...n,fileList:l.value,onStart:u,onProgress:p,onSuccess:f,onError:d,onRemove:c}));return Jr(()=>{l.value.forEach(v)}),_r(q2e,{accept:co(n,"accept")}),t({abort:i,submit:a,clearFiles:s,handleStart:u,handleRemove:c}),(y,m)=>(L(),G("div",null,[C(h)&&y.showFileList?(L(),yt(Kee,{key:0,disabled:C(r),"list-type":y.listType,files:C(l),crossorigin:y.crossorigin,"handle-preview":y.onPreview,onRemove:C(c)},Hl({append:rt(()=>[He(Yee,vr({ref_key:"uploadRef",ref:o},C(g)),{default:rt(()=>[y.$slots.trigger?ht(y.$slots,"trigger",{key:0}):xe("v-if",!0),!y.$slots.trigger&&y.$slots.default?ht(y.$slots,"default",{key:1}):xe("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:rt(({file:b,index:w})=>[ht(y.$slots,"file",{file:b,index:w})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):xe("v-if",!0),!C(h)||C(h)&&!y.showFileList?(L(),yt(Yee,vr({key:1,ref_key:"uploadRef",ref:o},C(g)),{default:rt(()=>[y.$slots.trigger?ht(y.$slots,"trigger",{key:0}):xe("v-if",!0),!y.$slots.trigger&&y.$slots.default?ht(y.$slots,"default",{key:1}):xe("v-if",!0)]),_:3},16)):xe("v-if",!0),y.$slots.trigger?ht(y.$slots,"default",{key:2}):xe("v-if",!0),ht(y.$slots,"tip"),!C(h)&&y.showFileList?(L(),yt(Kee,{key:3,disabled:C(r),"list-type":y.listType,files:C(l),crossorigin:y.crossorigin,"handle-preview":y.onPreview,onRemove:C(c)},Hl({_:2},[y.$slots.file?{name:"default",fn:rt(({file:b,index:w})=>[ht(y.$slots,"file",{file:b,index:w})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):xe("v-if",!0)]))}});var mit=on(vit,[["__file","upload.vue"]]);const yit=or(mit),bit=Jt({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:ct([String,Array]),default:"Element Plus"},font:{type:ct(Object)},gap:{type:ct(Array),default:()=>[100,100]},offset:{type:ct(Array)}});function wit(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Ait(e){return Object.keys(e).map(t=>`${wit(t)}: ${e[t]};`).join(" ")}function Cit(){return window.devicePixelRatio||1}const xit=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},Q2e=3,Sit={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function RI(e,t,n=1){const r=document.createElement("canvas"),o=r.getContext("2d"),i=e*n,a=t*n;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${a}px`),o.save(),[o,r,i,a]}function Eit(){function e(t,n,r,o,i,a,s,l,u){const[d,c,f,p]=RI(o,i,r);if(t instanceof HTMLImageElement)d.drawImage(t,0,0,f,p);else{const{color:F,fontSize:H,fontStyle:re,fontWeight:X,fontFamily:te,textAlign:Z,textBaseline:le}=a,ve=Number(H)*r;d.font=`${re} normal ${X} ${ve}px/${i}px ${te}`,d.fillStyle=F,d.textAlign=Z,d.textBaseline=le;const Pe=Zt(t)?t:[t];Pe?.forEach((Ae,he)=>{const[Ee,Q]=Sit[Z];d.fillText(Ae??"",f*Ee+u*Q,he*(ve+Q2e*r))})}const v=Math.PI/180*Number(n),h=Math.max(o,i),[g,y,m]=RI(h,h,r);g.translate(m/2,m/2),g.rotate(v),f>0&&p>0&&g.drawImage(c,-f/2,-p/2);function b(F,H){const re=F*Math.cos(v)-H*Math.sin(v),X=F*Math.sin(v)+H*Math.cos(v);return[re,X]}let w=0,A=0,S=0,E=0;const D=f/2,_=p/2;[[0-D,0-_],[0+D,0-_],[0+D,0+_],[0-D,0+_]].forEach(([F,H])=>{const[re,X]=b(F,H);w=Math.min(w,re),A=Math.max(A,re),S=Math.min(S,X),E=Math.max(E,X)});const O=w+m/2,k=S+m/2,R=A-w,N=E-S,W=s*r,B=l*r,z=(R+W)*2,j=N+B,[q,Y]=RI(z,j);function U(F=0,H=0){q.drawImage(y,O,k,R,N,F,H,R,N)}return U(),U(R+W,-N/2-B/2),U(R+W,+N/2+B/2),[Y.toDataURL(),z/r,j/r]}return e}const kit=nt({name:"ElWatermark"}),Tit=nt({...kit,props:bit,setup(e){const t=e,n={position:"relative"},r=ee(()=>{var M,O;return(O=(M=t.font)==null?void 0:M.color)!=null?O:"rgba(0,0,0,.15)"}),o=ee(()=>{var M,O;return(O=(M=t.font)==null?void 0:M.fontSize)!=null?O:16}),i=ee(()=>{var M,O;return(O=(M=t.font)==null?void 0:M.fontWeight)!=null?O:"normal"}),a=ee(()=>{var M,O;return(O=(M=t.font)==null?void 0:M.fontStyle)!=null?O:"normal"}),s=ee(()=>{var M,O;return(O=(M=t.font)==null?void 0:M.fontFamily)!=null?O:"sans-serif"}),l=ee(()=>{var M,O;return(O=(M=t.font)==null?void 0:M.textAlign)!=null?O:"center"}),u=ee(()=>{var M,O;return(O=(M=t.font)==null?void 0:M.textBaseline)!=null?O:"hanging"}),d=ee(()=>t.gap[0]),c=ee(()=>t.gap[1]),f=ee(()=>d.value/2),p=ee(()=>c.value/2),v=ee(()=>{var M,O;return(O=(M=t.offset)==null?void 0:M[0])!=null?O:f.value}),h=ee(()=>{var M,O;return(O=(M=t.offset)==null?void 0:M[1])!=null?O:p.value}),g=()=>{const M={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let O=v.value-f.value,k=h.value-p.value;return O>0&&(M.left=`${O}px`,M.width=`calc(100% - ${O}px)`,O=0),k>0&&(M.top=`${k}px`,M.height=`calc(100% - ${k}px)`,k=0),M.backgroundPosition=`${O}px ${k}px`,M},y=jo(null),m=jo(),b=K(!1),w=()=>{m.value&&(m.value.remove(),m.value=void 0)},A=(M,O)=>{var k;y.value&&m.value&&(b.value=!0,m.value.setAttribute("style",Ait({...g(),backgroundImage:`url('${M}')`,backgroundSize:`${Math.floor(O)}px`})),(k=y.value)==null||k.append(m.value),setTimeout(()=>{b.value=!1}))},S=M=>{let O=120,k=64,R=0;const{image:N,content:W,width:B,height:z,rotate:j}=t;if(!N&&M.measureText){M.font=`${Number(o.value)}px ${s.value}`;const q=Zt(W)?W:[W];let Y=0,U=0;q.forEach(H=>{const{width:re,fontBoundingBoxAscent:X,fontBoundingBoxDescent:te,actualBoundingBoxAscent:Z,actualBoundingBoxDescent:le}=M.measureText(H),ve=Vr(X)?Z+le:X+te;re>Y&&(Y=Math.ceil(re)),ve>U&&(U=Math.ceil(ve))}),O=Y,k=U*q.length+(q.length-1)*Q2e;const F=Math.PI/180*Number(j);R=Math.ceil(Math.abs(Math.sin(F)*k)/2),O+=R}return[B??O,z??k,R]},E=Eit(),D=()=>{const O=document.createElement("canvas").getContext("2d"),k=t.image,R=t.content,N=t.rotate;if(O){m.value||(m.value=document.createElement("div"));const W=Cit(),[B,z,j]=S(O),q=Y=>{const[U,F]=E(Y||"",N,W,B,z,{color:r.value,fontSize:o.value,fontStyle:a.value,fontWeight:i.value,fontFamily:s.value,textAlign:l.value,textBaseline:u.value},d.value,c.value,j);A(U,F)};if(k){const Y=new Image;Y.onload=()=>{q(Y)},Y.onerror=()=>{q(R)},Y.crossOrigin="anonymous",Y.referrerPolicy="no-referrer",Y.src=k}else q(R)}};return qn(()=>{D()}),St(()=>t,()=>{D()},{deep:!0,flush:"post"}),Jr(()=>{w()}),Fme(y,M=>{b.value||M.forEach(O=>{xit(O,m.value)&&(w(),D())})},{attributes:!0,subtree:!0,childList:!0}),(M,O)=>(L(),G("div",{ref_key:"containerRef",ref:y,style:rn([n])},[ht(M.$slots,"default")],4))}});var _it=on(Tit,[["__file","watermark.vue"]]);const Dit=or(_it),Iit=Jt({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:ct(Object)},targetAreaClickable:{type:Boolean,default:!0}}),Oit=(e,t,n,r,o)=>{const i=K(null),a=()=>{let c;return In(e.value)?c=document.querySelector(e.value):Rn(e.value)?c=e.value():c=e.value,c},s=()=>{const c=a();if(!c||!t.value){i.value=null;return}Mit(c)||c.scrollIntoView(o.value);const{left:f,top:p,width:v,height:h}=c.getBoundingClientRect();i.value={left:f,top:p,width:v,height:h,radius:0}};qn(()=>{St([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Jr(()=>{window.removeEventListener("resize",s)});const l=c=>{var f;return(f=Zt(n.value.offset)?n.value.offset[c]:n.value.offset)!=null?f:6},u=ee(()=>{var c;if(!i.value)return i.value;const f=l(0),p=l(1),v=((c=n.value)==null?void 0:c.radius)||2;return{left:i.value.left-f,top:i.value.top-p,width:i.value.width+f*2,height:i.value.height+p*2,radius:v}}),d=ee(()=>{const c=a();return!r.value||!c||!window.DOMRect?c||void 0:{getBoundingClientRect(){var f,p,v,h;return window.DOMRect.fromRect({width:((f=u.value)==null?void 0:f.width)||0,height:((p=u.value)==null?void 0:p.height)||0,x:((v=u.value)==null?void 0:v.left)||0,y:((h=u.value)==null?void 0:h.top)||0})}}});return{mergedPosInfo:u,triggerTarget:d}},xD=Symbol("ElTour");function Mit(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:o,bottom:i,left:a}=e.getBoundingClientRect();return r>=0&&a>=0&&o<=t&&i<=n}const Pit=(e,t,n,r,o,i,a,s)=>{const l=K(),u=K(),d=K({}),c={x:l,y:u,placement:r,strategy:o,middlewareData:d},f=ee(()=>{const y=[D2e(C(i)),Brt(),Rrt(),Nit()];return C(s)&&C(n)&&y.push(I2e({element:C(n)})),y}),p=async()=>{if(!Xr)return;const y=C(e),m=C(t);if(!y||!m)return;const b=await O2e(y,m,{placement:C(r),strategy:C(o),middleware:C(f)});My(c).forEach(w=>{c[w].value=b[w]})},v=ee(()=>{if(!C(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:C(a)};const{overflow:y}=C(d);return{position:C(o),zIndex:C(a),top:C(u)!=null?`${C(u)}px`:"",left:C(l)!=null?`${C(l)}px`:"",maxWidth:y?.maxWidth?`${y?.maxWidth}px`:""}}),h=ee(()=>{if(!C(s))return{};const{arrow:y}=C(d);return{left:y?.x!=null?`${y?.x}px`:"",top:y?.y!=null?`${y?.y}px`:""}});let g;return qn(()=>{const y=C(e),m=C(t);y&&m&&(g=Prt(y,m,p)),Es(()=>{p()})}),Jr(()=>{g&&g()}),{update:p,contentStyle:v,arrowStyle:h}},Nit=()=>({name:"overflow",async fn(e){const t=await Nrt(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Rit=nt({name:"ElTourMask",inheritAttrs:!1}),Bit=nt({...Rit,props:Iit,setup(e){const t=e,{ns:n}=dn(xD),r=ee(()=>{var l,u;return(u=(l=t.pos)==null?void 0:l.radius)!=null?u:2}),o=ee(()=>{const l=r.value,u=`a${l},${l} 0 0 1`;return{topRight:`${u} ${l},${l}`,bottomRight:`${u} ${-l},${l}`,bottomLeft:`${u} ${-l},${-l}`,topLeft:`${u} ${l},${-l}`}}),i=ee(()=>{const l=window.innerWidth,u=window.innerHeight,d=o.value,c=`M${l},0 L0,0 L0,${u} L${l},${u} L${l},0 Z`,f=r.value;return t.pos?`${c} M${t.pos.left+f},${t.pos.top} h${t.pos.width-f*2} ${d.topRight} v${t.pos.height-f*2} ${d.bottomRight} h${-t.pos.width+f*2} ${d.bottomLeft} v${-t.pos.height+f*2} ${d.topLeft} z`:c}),a=ee(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),s=ee(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return nW(co(t,"visible"),{ns:n}),(l,u)=>l.visible?(L(),G("div",vr({key:0,class:C(n).e("mask"),style:C(a)},l.$attrs),[(L(),G("svg",{style:{width:"100%",height:"100%"}},[x("path",{class:oe(C(n).e("hollow")),style:rn(C(s)),d:C(i)},null,14,["d"])]))],16)):xe("v-if",!0)}});var Lit=on(Bit,[["__file","mask.vue"]]);const Fit=["absolute","fixed"],Uit=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],YW=Jt({placement:{type:ct(String),values:Uit,default:"bottom"},reference:{type:ct(Object),default:null},strategy:{type:ct(String),values:Fit,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),zit={close:()=>!0},$it=nt({name:"ElTourContent"}),jit=nt({...$it,props:YW,emits:zit,setup(e,{emit:t}){const n=e,r=K(n.placement),o=K(n.strategy),i=K(null),a=K(null);St(()=>n.placement,()=>{r.value=n.placement});const{contentStyle:s,arrowStyle:l}=Pit(co(n,"reference"),i,a,r,o,co(n,"offset"),co(n,"zIndex"),co(n,"showArrow")),u=ee(()=>r.value.split("-")[0]),{ns:d}=dn(xD),c=()=>{t("close")},f=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>(L(),G("div",{ref_key:"contentRef",ref:i,style:rn(C(s)),class:oe(C(d).e("content")),"data-side":C(u),tabindex:"-1"},[He(C($b),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:c,onFocusoutPrevented:f},{default:rt(()=>[ht(p.$slots,"default")]),_:3},8,["focus-trap-el"]),p.showArrow?(L(),G("span",{key:0,ref_key:"arrowRef",ref:a,style:rn(C(l)),class:oe(C(d).e("arrow"))},null,6)):xe("v-if",!0)],14,["data-side"]))}});var Hit=on(jit,[["__file","content.vue"]]),Wit=nt({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let r=0;return()=>{var o,i;const a=(o=t.default)==null?void 0:o.call(t),s=[];let l=0;function u(d){Zt(d)&&d.forEach(c=>{var f;((f=c?.type||{})==null?void 0:f.name)==="ElTourStep"&&(s.push(c),l+=1)})}return a.length&&u(Sd((i=a[0])==null?void 0:i.children)),r!==l&&(r=l,n("update-total",l)),s.length?s[e.current]:null}}});const Vit=Jt({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:wo},placement:YW.placement,contentStyle:{type:ct([Object])},mask:{type:ct([Boolean,Object]),default:!0},gap:{type:ct(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:ct([Boolean,Object]),default:()=>({block:"center"})},type:{type:ct(String)},appendTo:{type:uD.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),qit={[Qn]:e=>Eo(e),"update:current":e=>$n(e),close:e=>$n(e),finish:()=>!0,change:e=>$n(e)},Git=nt({name:"ElTour"}),Kit=nt({...Git,props:Vit,emits:qit,setup(e,{emit:t}){const n=e,r=Vt("tour"),o=K(0),i=K(),a=Ume(n,"current",t,{passive:!0}),s=ee(()=>{var _;return(_=i.value)==null?void 0:_.target}),l=ee(()=>[r.b(),g.value==="primary"?r.m("primary"):""]),u=ee(()=>{var _;return((_=i.value)==null?void 0:_.placement)||n.placement}),d=ee(()=>{var _,M;return(M=(_=i.value)==null?void 0:_.contentStyle)!=null?M:n.contentStyle}),c=ee(()=>{var _,M;return(M=(_=i.value)==null?void 0:_.mask)!=null?M:n.mask}),f=ee(()=>!!c.value&&n.modelValue),p=ee(()=>Eo(c.value)?void 0:c.value),v=ee(()=>{var _,M;return!!s.value&&((M=(_=i.value)==null?void 0:_.showArrow)!=null?M:n.showArrow)}),h=ee(()=>{var _,M;return(M=(_=i.value)==null?void 0:_.scrollIntoViewOptions)!=null?M:n.scrollIntoViewOptions}),g=ee(()=>{var _,M;return(M=(_=i.value)==null?void 0:_.type)!=null?M:n.type}),{nextZIndex:y}=Fb(),m=y(),b=ee(()=>{var _;return(_=n.zIndex)!=null?_:m}),{mergedPosInfo:w,triggerTarget:A}=Oit(s,co(n,"modelValue"),co(n,"gap"),c,h);St(()=>n.modelValue,_=>{_||(a.value=0)});const S=()=>{n.closeOnPressEscape&&(t(Qn,!1),t("close",a.value))},E=_=>{o.value=_},D=ga();return _r(xD,{currentStep:i,current:a,total:o,showClose:co(n,"showClose"),closeIcon:co(n,"closeIcon"),mergedType:g,ns:r,slots:D,updateModelValue(_){t(Qn,_)},onClose(){t("close",a.value)},onFinish(){t("finish")},onChange(){t(Pr,a.value)}}),(_,M)=>(L(),G(Rt,null,[He(C(jb),{to:_.appendTo},{default:rt(()=>{var O,k;return[x("div",vr({class:C(l)},_.$attrs),[He(Lit,{visible:C(f),fill:(O=C(p))==null?void 0:O.color,style:rn((k=C(p))==null?void 0:k.style),pos:C(w),"z-index":C(b),"target-area-clickable":_.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),_.modelValue?(L(),yt(Hit,{key:C(a),reference:C(A),placement:C(u),"show-arrow":C(v),"z-index":C(b),style:rn(C(d)),onClose:S},{default:rt(()=>[He(C(Wit),{current:C(a),onUpdateTotal:E},{default:rt(()=>[ht(_.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):xe("v-if",!0)],16)]}),_:3},8,["to"]),xe(" just for IDE "),xe("v-if",!0)],64))}});var Yit=on(Kit,[["__file","tour.vue"]]);const Qit=Jt({target:{type:ct([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:wo},showArrow:{type:Boolean,default:void 0},placement:YW.placement,mask:{type:ct([Boolean,Object]),default:void 0},contentStyle:{type:ct([Object])},prevButtonProps:{type:ct(Object)},nextButtonProps:{type:ct(Object)},scrollIntoViewOptions:{type:ct([Boolean,Object]),default:void 0},type:{type:ct(String)}}),Zit={close:()=>!0},Xit=nt({name:"ElTourStep"}),Jit=nt({...Xit,props:Qit,emits:Zit,setup(e,{emit:t}){const n=e,{Close:r}=l1e,{t:o}=Gr(),{currentStep:i,current:a,total:s,showClose:l,closeIcon:u,mergedType:d,ns:c,slots:f,updateModelValue:p,onClose:v,onFinish:h,onChange:g}=dn(xD);St(n,_=>{i.value=_},{immediate:!0});const y=ee(()=>{var _;return(_=n.showClose)!=null?_:l.value}),m=ee(()=>{var _,M;return(M=(_=n.closeIcon)!=null?_:u.value)!=null?M:r}),b=_=>{if(_)return Nme(_,["children","onClick"])},w=()=>{var _,M;a.value-=1,(_=n.prevButtonProps)!=null&&_.onClick&&((M=n.prevButtonProps)==null||M.onClick()),g()},A=()=>{var _;a.value>=s.value-1?S():a.value+=1,(_=n.nextButtonProps)!=null&&_.onClick&&n.nextButtonProps.onClick(),g()},S=()=>{E(),h()},E=()=>{p(!1),v(),t("close")},D=_=>{const M=_.target;if(M?.isContentEditable)return;const k={[gn.left]:()=>a.value>0&&w(),[gn.right]:A}[_.code];k&&(_.preventDefault(),k())};return qn(()=>{window.addEventListener("keydown",D)}),Jr(()=>{window.removeEventListener("keydown",D)}),(_,M)=>(L(),G(Rt,null,[C(y)?(L(),G("button",{key:0,"aria-label":"Close",class:oe(C(c).e("closebtn")),type:"button",onClick:E},[He(C(Dn),{class:oe(C(c).e("close"))},{default:rt(()=>[(L(),yt(mr(C(m))))]),_:1},8,["class"])],2)):xe("v-if",!0),x("header",{class:oe([C(c).e("header"),{"show-close":C(l)}])},[ht(_.$slots,"header",{},()=>[x("span",{role:"heading",class:oe(C(c).e("title"))},je(_.title),3)])],2),x("div",{class:oe(C(c).e("body"))},[ht(_.$slots,"default",{},()=>[x("span",null,je(_.description),1)])],2),x("footer",{class:oe(C(c).e("footer"))},[x("div",{class:oe(C(c).b("indicators"))},[C(f).indicators?(L(),yt(mr(C(f).indicators),{key:0,current:C(a),total:C(s)},null,8,["current","total"])):(L(!0),G(Rt,{key:1},un(C(s),(O,k)=>(L(),G("span",{key:O,class:oe([C(c).b("indicator"),k===C(a)?"is-active":""])},null,2))),128))],2),x("div",{class:oe(C(c).b("buttons"))},[C(a)>0?(L(),yt(C(Xa),vr({key:0,size:"small",type:C(d)},b(_.prevButtonProps),{onClick:w}),{default:rt(()=>{var O,k;return[bn(je((k=(O=_.prevButtonProps)==null?void 0:O.children)!=null?k:C(o)("el.tour.previous")),1)]}),_:1},16,["type"])):xe("v-if",!0),C(a)<=C(s)-1?(L(),yt(C(Xa),vr({key:1,size:"small",type:C(d)==="primary"?"default":"primary"},b(_.nextButtonProps),{onClick:A}),{default:rt(()=>{var O,k;return[bn(je((k=(O=_.nextButtonProps)==null?void 0:O.children)!=null?k:C(a)===C(s)-1?C(o)("el.tour.finish"):C(o)("el.tour.next")),1)]}),_:1},16,["type"])):xe("v-if",!0)],2)],2)],64))}});var Z2e=on(Jit,[["__file","step.vue"]]);const eat=or(Yit,{TourStep:Z2e}),tat=vi(Z2e),nat=Jt({container:{type:ct([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:ct(String),default:"default"},direction:{type:ct(String),default:"vertical"},selectScrollTop:Boolean}),rat={change:e=>In(e),click:(e,t)=>e instanceof MouseEvent&&(In(t)||Vr(t))},X2e=Symbol("anchor"),Dx=e=>{if(!Xr||e==="")return null;if(In(e))try{return document.querySelector(e)}catch{return null}return e};function oat(e){let t=0;const n=(...r)=>{t&&Pv(t),t=s0(()=>{e(...r),t=0})};return n.cancel=()=>{Pv(t),t=0},n}const iat=nt({name:"ElAnchor"}),aat=nt({...iat,props:nat,emits:rat,setup(e,{expose:t,emit:n}){const r=e,o=ga(),i=K(""),a=K({}),s=K(null),l=K(null),u=K(),d={};let c=!1,f=0;const p=Vt("anchor"),v=ee(()=>[p.b(),r.type==="underline"?p.m("underline"):"",p.m(r.direction)]),h=M=>{d[M.href]=M.el},g=M=>{delete d[M]},y=M=>{i.value!==M&&(i.value=M,n(Pr,M))};let m=null;const b=M=>{if(!u.value)return;const O=Dx(M);if(!O)return;m&&m(),c=!0;const k=QX(O,u.value),R=IL(O,k),N=k.scrollHeight-k.clientHeight,W=Math.min(R-r.offset,N);m=CBe(u.value,f,W,r.duration,()=>{setTimeout(()=>{c=!1},20)})},w=M=>{M&&(y(M),b(M))},A=(M,O)=>{n("click",M,O),w(O)},S=oat(()=>{u.value&&(f=ZX(u.value));const M=E();c||Vr(M)||y(M)}),E=()=>{if(!u.value)return;const M=ZX(u.value),O=[];for(const k of Object.keys(d)){const R=Dx(k);if(!R)continue;const N=QX(R,u.value),W=IL(R,N);O.push({top:W-r.offset-r.bound,href:k})}O.sort((k,R)=>k.top-R.top);for(let k=0;k<O.length;k++){const R=O[k],N=O[k+1];if(k===0&&M===0)return r.selectScrollTop?R.href:"";if(R.top<=M&&(!N||N.top>M))return R.href}},D=()=>{const M=Dx(r.container);!M||N5(M)?u.value=window:u.value=M};Ro(u,"scroll",S);const _=()=>{Yt(()=>{if(!s.value||!l.value||!i.value){a.value={};return}const M=d[i.value];if(!M){a.value={};return}const O=s.value.getBoundingClientRect(),k=l.value.getBoundingClientRect(),R=M.getBoundingClientRect();if(r.direction==="horizontal"){const N=R.left-O.left;a.value={left:`${N}px`,width:`${R.width}px`,opacity:1}}else{const N=R.top-O.top+(R.height-k.height)/2;a.value={top:`${N}px`,opacity:1}}})};return St(i,_),St(()=>{var M;return(M=o.default)==null?void 0:M.call(o)},_),qn(()=>{D();const M=decodeURIComponent(window.location.hash);Dx(M)?w(M):S()}),St(()=>r.container,()=>{D()}),_r(X2e,{ns:p,direction:r.direction,currentAnchor:i,addLink:h,removeLink:g,handleClick:A}),t({scrollTo:w}),(M,O)=>(L(),G("div",{ref_key:"anchorRef",ref:s,class:oe(C(v))},[M.marker?(L(),G("div",{key:0,ref_key:"markerRef",ref:l,class:oe(C(p).e("marker")),style:rn(a.value)},null,6)):xe("v-if",!0),x("div",{class:oe(C(p).e("list"))},[ht(M.$slots,"default")],2)],2))}});var sat=on(aat,[["__file","anchor.vue"]]);const lat=Jt({title:String,href:String}),uat=nt({name:"ElAnchorLink"}),cat=nt({...uat,props:lat,setup(e){const t=e,n=K(null),{ns:r,direction:o,currentAnchor:i,addLink:a,removeLink:s,handleClick:l}=dn(X2e),u=ee(()=>[r.e("link"),r.is("active",i.value===t.href)]),d=c=>{l(c,t.href)};return St(()=>t.href,(c,f)=>{Yt(()=>{f&&s(f),c&&a({href:c,el:n.value})})}),qn(()=>{const{href:c}=t;c&&a({href:c,el:n.value})}),Jr(()=>{const{href:c}=t;c&&s(c)}),(c,f)=>(L(),G("div",{class:oe(C(r).e("item"))},[x("a",{ref_key:"linkRef",ref:n,class:oe(C(u)),href:c.href,onClick:d},[ht(c.$slots,"default",{},()=>[bn(je(c.title),1)])],10,["href"]),c.$slots["sub-link"]&&C(o)==="vertical"?(L(),G("div",{key:0,class:oe(C(r).e("list"))},[ht(c.$slots,"sub-link")],2)):xe("v-if",!0)],2))}});var J2e=on(cat,[["__file","anchor-link.vue"]]);const dat=or(sat,{AnchorLink:J2e}),fat=vi(J2e),ewe={label:"label",value:"value",disabled:"disabled"},pat=Jt({direction:{type:ct(String),default:"horizontal"},options:{type:ct(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:ct(Object),default:()=>ewe},block:Boolean,size:Aa,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,..._s(["ariaLabel"])}),hat={[Qn]:e=>In(e)||$n(e)||Eo(e),[Pr]:e=>In(e)||$n(e)||Eo(e)},gat=nt({name:"ElSegmented"}),vat=nt({...gat,props:pat,emits:hat,setup(e,{emit:t}){const n=e,r=Vt("segmented"),o=ps(),i=ha(),a=Va(),{formItem:s}=Ds(),{inputId:l,isLabeledByFormItem:u}=fc(n,{formItemContext:s}),d=K(null),c=WRe(),f=Wr({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=O=>{const k=g(O);t(Qn,k),t(Pr,k)},v=ee(()=>({...ewe,...n.props})),h=O=>O,g=O=>dr(O)?O[v.value.value]:O,y=O=>dr(O)?O[v.value.label]:O,m=O=>!!(a.value||dr(O)&&O[v.value.disabled]),b=O=>n.modelValue===g(O),w=O=>n.options.find(k=>g(k)===O),A=O=>[r.e("item"),r.is("selected",b(O)),r.is("disabled",m(O))],S=()=>{if(!d.value)return;const O=d.value.querySelector(".is-selected"),k=d.value.querySelector(".is-selected input");if(!O||!k){f.width=0,f.height=0,f.translateX=0,f.translateY=0,f.focusVisible=!1;return}f.isInit=!0,n.direction==="vertical"?(f.height=O.offsetHeight,f.translateY=O.offsetTop):(f.width=O.offsetWidth,f.translateX=O.offsetLeft);try{f.focusVisible=k.matches(":focus-visible")}catch{}},E=ee(()=>[r.b(),r.m(i.value),r.is("block",n.block)]),D=ee(()=>({width:n.direction==="vertical"?"100%":`${f.width}px`,height:n.direction==="vertical"?`${f.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${f.translateY}px)`:`translateX(${f.translateX}px)`,display:f.isInit?"block":"none"})),_=ee(()=>[r.e("item-selected"),r.is("disabled",m(w(n.modelValue))),r.is("focus-visible",f.focusVisible)]),M=ee(()=>n.name||o.value);return li(d,S),St(c,S),St(()=>n.modelValue,()=>{var O;S(),n.validateEvent&&((O=s?.validate)==null||O.call(s,"change").catch(k=>void 0))},{flush:"post"}),(O,k)=>O.options.length?(L(),G("div",{key:0,id:C(l),ref_key:"segmentedRef",ref:d,class:oe(C(E)),role:"radiogroup","aria-label":C(u)?void 0:O.ariaLabel||"segmented","aria-labelledby":C(u)?C(s).labelId:void 0},[x("div",{class:oe([C(r).e("group"),C(r).m(n.direction)])},[x("div",{style:rn(C(D)),class:oe(C(_))},null,6),(L(!0),G(Rt,null,un(O.options,(R,N)=>(L(),G("label",{key:N,class:oe(A(R))},[x("input",{class:oe(C(r).e("item-input")),type:"radio",name:C(M),disabled:m(R),checked:b(R),onChange:W=>p(R)},null,42,["name","disabled","checked","onChange"]),x("div",{class:oe(C(r).e("item-label"))},[ht(O.$slots,"default",{item:h(R)},()=>[bn(je(y(R)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):xe("v-if",!0)}});var mat=on(vat,[["__file","segmented.vue"]]);const yat=or(mat),bat=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},wat=(e,t,n)=>{const{selectionEnd:r}=e;if(r===null)return;const o=e.value,i=Ya(t);let a=-1,s;for(let l=r-1;l>=0;--l){const u=o[l];if(u===n||u===`
- `||u==="\r"){a=l;continue}if(i.includes(u)){const d=a===-1?r:a;s={pattern:o.slice(l+1,d),start:l+1,end:d,prefix:u,prefixIndex:l,splitIndex:a,selectionEnd:r};break}}return s},Aat=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const f=document.querySelector("#input-textarea-caret-position-mirror-div");f?.parentNode&&f.parentNode.removeChild(f)}const a=document.createElement("div");a.id="input-textarea-caret-position-mirror-div",document.body.appendChild(a);const s=a.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";s.whiteSpace=u?"nowrap":"pre-wrap",u||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),i.forEach(f=>{if(u&&f==="lineHeight")if(l.boxSizing==="border-box"){const p=Number.parseInt(l.height),v=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),h=v+Number.parseInt(l.lineHeight);p>h?s.lineHeight=`${p-v}px`:p===h?s.lineHeight=l.lineHeight:s.lineHeight="0"}else s.lineHeight=l.height;else s[f]=l[f]}),kH()?e.scrollHeight>Number.parseInt(l.height)&&(s.overflowY="scroll"):s.overflow="hidden",a.textContent=e.value.slice(0,Math.max(0,o)),u&&a.textContent&&(a.textContent=a.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,a.appendChild(d);const c={top:d.offsetTop+Number.parseInt(l.borderTopWidth),left:d.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(a),c.left>=e.clientWidth&&(c.left=e.clientWidth),c},Cat=Jt({...L5,options:{type:ct(Array),default:()=>[]},prefix:{type:ct([String,Array]),default:"@",validator:e=>In(e)?e.length===1:e.every(t=>In(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:ct([Boolean,Function]),default:()=>bat,validator:e=>e===!1?!0:Rn(e)},placement:{type:ct(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:ct(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:ct(Object),default:()=>({})}}),xat={[Qn]:e=>In(e),"whole-remove":(e,t)=>In(e)&&In(t),input:e=>In(e),search:(e,t)=>In(e)&&In(t),select:(e,t)=>In(e.value)&&In(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Sat=Jt({options:{type:ct(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Eat={select:e=>In(e.value)},kat=nt({name:"ElMentionDropdown"}),Tat=nt({...kat,props:Sat,emits:Eat,setup(e,{expose:t,emit:n}){const r=e,o=Vt("mention"),{t:i}=Gr(),a=K(-1),s=K(),l=K(),u=K(),d=(b,w)=>[o.be("dropdown","item"),o.is("hovering",a.value===w),o.is("disabled",b.disabled||r.disabled)],c=b=>{b.disabled||r.disabled||n("select",b)},f=b=>{a.value=b},p=ee(()=>r.disabled||r.options.every(b=>b.disabled)),v=ee(()=>r.options[a.value]),h=()=>{v.value&&n("select",v.value)},g=b=>{const{options:w}=r;if(w.length===0||p.value)return;b==="next"?(a.value++,a.value===w.length&&(a.value=0)):b==="prev"&&(a.value--,a.value<0&&(a.value=w.length-1));const A=w[a.value];if(A.disabled){g(b);return}Yt(()=>y(A))},y=b=>{var w,A,S,E;const{options:D}=r,_=D.findIndex(O=>O.value===b.value),M=(w=l.value)==null?void 0:w[_];if(M){const O=(S=(A=u.value)==null?void 0:A.querySelector)==null?void 0:S.call(A,`.${o.be("dropdown","wrap")}`);O&&CH(O,M)}(E=s.value)==null||E.handleScroll()};return St(()=>r.options,()=>{p.value||r.options.length===0?a.value=-1:a.value=0},{immediate:!0}),t({hoveringIndex:a,navigateOptions:g,selectHoverOption:h,hoverOption:v}),(b,w)=>(L(),G("div",{ref_key:"dropdownRef",ref:u,class:oe(C(o).b("dropdown"))},[b.$slots.header?(L(),G("div",{key:0,class:oe(C(o).be("dropdown","header"))},[ht(b.$slots,"header")],2)):xe("v-if",!0),cn(He(C(Hc),{id:b.contentId,ref_key:"scrollbarRef",ref:s,tag:"ul","wrap-class":C(o).be("dropdown","wrap"),"view-class":C(o).be("dropdown","list"),role:"listbox","aria-label":b.ariaLabel,"aria-orientation":"vertical"},{default:rt(()=>[(L(!0),G(Rt,null,un(b.options,(A,S)=>(L(),G("li",{id:`${b.contentId}-${S}`,ref_for:!0,ref_key:"optionRefs",ref:l,key:S,class:oe(d(A,S)),role:"option","aria-disabled":A.disabled||b.disabled||void 0,"aria-selected":a.value===S,onMousemove:E=>f(S),onClick:en(E=>c(A),["stop"])},[ht(b.$slots,"label",{item:A,index:S},()=>{var E;return[x("span",null,je((E=A.label)!=null?E:A.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[kr,b.options.length>0&&!b.loading]]),b.loading?(L(),G("div",{key:1,class:oe(C(o).be("dropdown","loading"))},[ht(b.$slots,"loading",{},()=>[bn(je(C(i)("el.mention.loading")),1)])],2)):xe("v-if",!0),b.$slots.footer?(L(),G("div",{key:2,class:oe(C(o).be("dropdown","footer"))},[ht(b.$slots,"footer")],2)):xe("v-if",!0)],2))}});var _at=on(Tat,[["__file","mention-dropdown.vue"]]);const Dat=nt({name:"ElMention",inheritAttrs:!1}),Iat=nt({...Dat,props:Cat,emits:xat,setup(e,{expose:t,emit:n}){const r=e,o=ee(()=>uu(r,Object.keys(L5))),i=Vt("mention"),a=Va(),s=ps(),l=K(),u=K(),d=K(),c=K(!1),f=K(),p=K(),v=ee(()=>r.showArrow?r.placement:`${r.placement}-start`),h=ee(()=>r.showArrow?["bottom","top"]:["bottom-start","top-start"]),g=ee(()=>{const{filterOption:k,options:R}=r;return!p.value||!k?R:R.filter(N=>k(p.value.pattern,N))}),y=ee(()=>c.value&&(!!g.value.length||r.loading)),m=ee(()=>{var k;return`${s.value}-${(k=d.value)==null?void 0:k.hoveringIndex}`}),b=k=>{n(Qn,k),n(ba,k),_()},w=k=>{var R,N,W,B;if(!(!("code"in k)||(R=l.value)!=null&&R.isComposing))switch(k.code){case gn.left:case gn.right:_();break;case gn.up:case gn.down:if(!c.value)return;k.preventDefault(),(N=d.value)==null||N.navigateOptions(k.code===gn.up?"prev":"next");break;case gn.enter:case gn.numpadEnter:if(!c.value)return;k.preventDefault(),(W=d.value)!=null&&W.hoverOption?(B=d.value)==null||B.selectHoverOption():c.value=!1;break;case gn.esc:if(!c.value)return;k.preventDefault(),c.value=!1;break;case gn.backspace:if(r.whole&&p.value){const{splitIndex:z,selectionEnd:j,pattern:q,prefixIndex:Y,prefix:U}=p.value,F=D();if(!F)return;const H=F.value,re=r.options.find(te=>te.value===q);if((Rn(r.checkIsWhole)?r.checkIsWhole(q,U):re)&&z!==-1&&z+1===j){k.preventDefault();const te=H.slice(0,Y)+H.slice(z+1);n(Qn,te),n(ba,te),n("whole-remove",q,U);const Z=Y;Yt(()=>{F.selectionStart=Z,F.selectionEnd=Z,O()})}}}},{wrapperRef:A}=Ap(l,{disabled:a,afterFocus(){_()},beforeBlur(k){var R;return(R=u.value)==null?void 0:R.isFocusInsideContent(k)},afterBlur(){c.value=!1}}),S=()=>{_()},E=k=>{if(!p.value)return;const R=D();if(!R)return;const N=R.value,{split:W}=r,B=N.slice(p.value.end),z=B.startsWith(W),j=`${k.value}${z?"":W}`,q=N.slice(0,p.value.start)+j+B;n(Qn,q),n(ba,q),n("select",k,p.value.prefix);const Y=p.value.start+j.length+(z?1:0);Yt(()=>{R.selectionStart=Y,R.selectionEnd=Y,R.focus(),O()})},D=()=>{var k,R;return r.type==="textarea"?(k=l.value)==null?void 0:k.textarea:(R=l.value)==null?void 0:R.input},_=()=>{setTimeout(()=>{M(),O(),Yt(()=>{var k;return(k=u.value)==null?void 0:k.updatePopper()})},0)},M=()=>{const k=D();if(!k)return;const R=Aat(k),N=k.getBoundingClientRect(),W=l.value.$el.getBoundingClientRect();f.value={position:"absolute",width:0,height:`${R.height}px`,left:`${R.left+N.left-W.left}px`,top:`${R.top+N.top-W.top}px`}},O=()=>{const k=D();if(document.activeElement!==k){c.value=!1;return}const{prefix:R,split:N}=r;if(p.value=wat(k,R,N),p.value&&p.value.splitIndex===-1){c.value=!0,n("search",p.value.pattern,p.value.prefix);return}c.value=!1};return t({input:l,tooltip:u,dropdownVisible:y}),(k,R)=>(L(),G("div",{ref_key:"wrapperRef",ref:A,class:oe(C(i).b())},[He(C(js),vr(vr(C(o),k.$attrs),{ref_key:"elInputRef",ref:l,"model-value":k.modelValue,disabled:C(a),role:C(y)?"combobox":void 0,"aria-activedescendant":C(y)?C(m)||"":void 0,"aria-controls":C(y)?C(s):void 0,"aria-expanded":C(y)||void 0,"aria-label":k.ariaLabel,"aria-autocomplete":C(y)?"none":void 0,"aria-haspopup":C(y)?"listbox":void 0,onInput:b,onKeydown:w,onMousedown:S}),Hl({_:2},[un(k.$slots,(N,W)=>({name:W,fn:rt(B=>[ht(k.$slots,W,Il($d(B)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),He(C(hs),{ref_key:"tooltipRef",ref:u,visible:C(y),"popper-class":[C(i).e("popper"),k.popperClass],"popper-options":k.popperOptions,placement:C(v),"fallback-placements":C(h),effect:"light",pure:"",offset:k.offset,"show-arrow":k.showArrow},{default:rt(()=>[x("div",{style:rn(f.value)},null,4)]),content:rt(()=>{var N;return[He(_at,{ref_key:"dropdownRef",ref:d,options:C(g),disabled:C(a),loading:k.loading,"content-id":C(s),"aria-label":k.ariaLabel,onSelect:E,onClick:en((N=l.value)==null?void 0:N.focus,["stop"])},Hl({_:2},[un(k.$slots,(W,B)=>({name:B,fn:rt(z=>[ht(k.$slots,B,Il($d(z)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var Oat=on(Iat,[["__file","mention.vue"]]);const Mat=or(Oat);var Pat=[_Be,ZLe,$ze,tnt,Gze,e$e,U1e,f$e,p$e,Xa,V1e,lje,pje,Ije,Oje,NHe,fye,zHe,tc,Vje,rye,VHe,lWe,uWe,fD,wye,RWe,FWe,QWe,ZWe,XWe,JWe,eVe,Oqe,Nye,$qe,jqe,Hye,Wye,xGe,fKe,pKe,hKe,obe,pYe,hYe,Dn,EYe,sbe,js,lbe,zYe,qYe,dQe,fQe,pQe,hQe,wQe,dZe,mZe,kZe,R1e,vbe,cye,oHe,rHe,BZe,$Ze,KZe,Hc,Nv,DE,VQe,kXe,RXe,BXe,tJe,aJe,_be,mJe,kJe,TJe,PJe,Vet,qet,ent,vnt,mnt,Nh,NW,AVe,Tnt,Pnt,Nnt,hs,eot,pot,$E,Mot,Yot,yit,Dit,eat,tat,dat,fat,yat,Mat,Kye,RS];const Ru="ElInfiniteScroll",Nat=50,Rat=200,Bat=0,Lat={delay:{type:Number,default:Rat},distance:{type:Number,default:Bat},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},QW=(e,t)=>Object.entries(Lat).reduce((n,[r,o])=>{var i,a;const{type:s,default:l}=o,u=e.getAttribute(`infinite-scroll-${r}`);let d=(a=(i=t[u])!=null?i:u)!=null?a:l;return d=d==="false"?!1:d,d=s(d),n[r]=Number.isNaN(d)?l:d,n},{}),twe=e=>{const{observer:t}=e[Ru];t&&(t.disconnect(),delete e[Ru].observer)},Fat=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:i,lastScrollTop:a}=e[Ru],{disabled:s,distance:l}=QW(e,o),{clientHeight:u,scrollHeight:d,scrollTop:c}=r,f=c-a;if(e[Ru].lastScrollTop=c,i||s||f<0)return;let p=!1;if(n===e)p=d-(u+c)<=l;else{const{clientTop:v,scrollHeight:h}=e,g=IL(e,r);p=c+u>=g+v+h-l}p&&t.call(o)};function BI(e,t){const{containerEl:n,instance:r}=e[Ru],{disabled:o}=QW(e,r);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):twe(e))}const Uat={async mounted(e,t){const{instance:n,value:r}=t;Rn(r)||na(Ru,"'v-infinite-scroll' binding value must be a function"),await Yt();const{delay:o,immediate:i}=QW(e,n),a=AH(e,!0),s=a===window?document.documentElement:a,l=Zg(Fat.bind(null,e,r),o);if(a){if(e[Ru]={instance:n,container:a,containerEl:s,delay:o,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Zg(BI.bind(null,e,r),Nat));e[Ru].observer=u,u.observe(e,{childList:!0,subtree:!0}),BI(e,r)}a.addEventListener("scroll",l)}},unmounted(e){if(!e[Ru])return;const{container:t,onScroll:n}=e[Ru];t?.removeEventListener("scroll",n),twe(e)},async updated(e){if(!e[Ru])await Yt();else{const{containerEl:t,cb:n,observer:r}=e[Ru];t.clientHeight&&r&&BI(e,n)}}},yF=Uat;yF.install=e=>{e.directive("InfiniteScroll",yF)};const zat=yF;function $at(e,t){let n;const r=K(!1),o=Wr({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(p){o.text=p}function a(){const p=o.parent,v=f.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(Ws(p,v.bm("parent","relative")),p.removeAttribute("loading-number")),Ws(p,v.bm("parent","hidden"))}s(),c.unmount()}function s(){var p,v;(v=(p=f.$el)==null?void 0:p.parentNode)==null||v.removeChild(f.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(n),n=setTimeout(u,400),o.visible=!1,(p=e.closed)==null||p.call(e))}function u(){if(!r.value)return;const p=o.parent;r.value=!1,p.vLoadingAddClassList=void 0,a()}const c=eve(nt({name:"ElLoading",setup(p,{expose:v}){const{ns:h,zIndex:g}=rD("loading");return v({ns:h,zIndex:g}),()=>{const y=o.spinner||o.svg,m=jn("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[jn("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=o.text?jn("p",{class:h.b("text")},[o.text]):void 0;return jn(Ki,{name:h.b("fade"),onAfterLeave:u},{default:rt(()=>[cn(He("div",{style:{backgroundColor:o.background||""},class:[h.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[jn("div",{class:h.b("spinner")},[m,b])]),[[kr,o.visible]])])})}}}));Object.assign(c._context,t??{});const f=c.mount(document.createElement("div"));return{...Oa(o),setText:i,removeElLoadingChild:s,close:l,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let Ix;const uy=function(e={}){if(!Xr)return;const t=jat(e);if(t.fullscreen&&Ix)return Ix;const n=$at({...t,closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(Ix=void 0)}},uy._context);Hat(t,t.parent,n),Xee(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Xee(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Yt(()=>n.visible.value=t.visible),t.fullscreen&&(Ix=n),n},jat=e=>{var t,n,r,o;let i;return In(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},Hat=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Mf(document.body,"position"),n.originalOverflow.value=Mf(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Mf(document.body,"position"),await Yt();for(const i of["top","left"]){const a=i==="top"?"scrollTop":"scrollLeft";o[i]=`${e.target.getBoundingClientRect()[i]+document.body[a]+document.documentElement[a]-Number.parseInt(Mf(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])o[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Mf(t,"position");for(const[i,a]of Object.entries(o))n.$el.style[i]=a},Xee=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Ws(t,r.bm("parent","relative")):zu(t,r.bm("parent","relative")),e.fullscreen&&e.lock?zu(t,r.bm("parent","hidden")):Ws(t,r.bm("parent","hidden"))};uy._context=null;const k4=Symbol("ElLoading"),Ag=e=>`element-loading-${vp(e)}`,Jee=(e,t)=>{var n,r,o,i;const a=t.instance,s=p=>dr(t.value)?t.value[p]:void 0,l=p=>{const v=In(p)&&a?.[p]||p;return K(v)},u=p=>l(s(p)||e.getAttribute(Ag(p))),d=(n=s("fullscreen"))!=null?n:t.modifiers.fullscreen,c={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=s("target"))!=null?r:d?void 0:e,body:(o=s("body"))!=null?o:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock},f=uy(c);f._context=i3._context,e[k4]={options:c,instance:f}},Wat=(e,t)=>{for(const n of Object.keys(e))Uo(e[n])&&(e[n].value=t[n])},i3={mounted(e,t){t.value&&Jee(e,t)},updated(e,t){const n=e[k4];if(!t.value){n?.instance.close(),e[k4]=null;return}n?Wat(n.options,dr(t.value)?t.value:{text:e.getAttribute(Ag("text")),svg:e.getAttribute(Ag("svg")),svgViewBox:e.getAttribute(Ag("svgViewBox")),spinner:e.getAttribute(Ag("spinner")),background:e.getAttribute(Ag("background")),customClass:e.getAttribute(Ag("customClass"))}):Jee(e,t)},unmounted(e){var t;(t=e[k4])==null||t.instance.close(),e[k4]=null}};i3._context=null;const Vat={install(e){uy._context=e._context,i3._context=e._context,e.directive("loading",i3),e.config.globalProperties.$loading=uy},directive:i3,service:uy},nwe=["primary","success","info","warning","error"],rwe=["top","top-left","top-right","bottom","bottom-left","bottom-right"],pA="top",Ps=fi({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Xr?document.body:void 0}),qat=Jt({customClass:{type:String,default:Ps.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Ps.dangerouslyUseHTMLString},duration:{type:Number,default:Ps.duration},icon:{type:wo,default:Ps.icon},id:{type:String,default:Ps.id},message:{type:ct([String,Object,Function]),default:Ps.message},onClose:{type:ct(Function),default:Ps.onClose},showClose:{type:Boolean,default:Ps.showClose},type:{type:String,values:nwe,default:Ps.type},plain:{type:Boolean,default:Ps.plain},offset:{type:Number,default:Ps.offset},placement:{type:String,values:rwe,default:Ps.placement},zIndex:{type:Number,default:Ps.zIndex},grouping:{type:Boolean,default:Ps.grouping},repeatNum:{type:Number,default:Ps.repeatNum}}),Gat={destroy:()=>!0},Mc=M_({}),Kat=e=>(Mc[e]||(Mc[e]=M_([])),Mc[e]),Yat=(e,t)=>{const n=Mc[t]||[],r=n.findIndex(a=>a.id===e),o=n[r];let i;return r>0&&(i=n[r-1]),{current:o,prev:i}},Qat=(e,t)=>{const{prev:n}=Yat(e,t);return n?n.vm.exposed.bottom.value:0},Zat=(e,t,n)=>(Mc[n]||[]).findIndex(i=>i.id===e)>0?16:t,Xat=nt({name:"ElMessage"}),Jat=nt({...Xat,props:qat,emits:Gat,setup(e,{expose:t,emit:n}){const r=e,{Close:o}=EH,i=K(!1),{ns:a,zIndex:s}=rD("message"),{currentZIndex:l,nextZIndex:u}=s,d=K(),c=K(!1),f=K(0);let p;const v=ee(()=>r.type?r.type==="error"?"danger":r.type:"info"),h=ee(()=>{const k=r.type;return{[a.bm("icon",k)]:k&&c0[k]}}),g=ee(()=>r.icon||c0[r.type]||""),y=ee(()=>r.placement||pA),m=ee(()=>Qat(r.id,y.value)),b=ee(()=>Zat(r.id,r.offset,y.value)+m.value),w=ee(()=>f.value+b.value),A=ee(()=>y.value.includes("left")?a.is("left"):y.value.includes("right")?a.is("right"):a.is("center")),S=ee(()=>y.value.startsWith("top")?"top":"bottom"),E=ee(()=>({[S.value]:`${b.value}px`,zIndex:l.value}));function D(){r.duration!==0&&({stop:p}=Mv(()=>{M()},r.duration))}function _(){p?.()}function M(){c.value=!1,Yt(()=>{var k;i.value||((k=r.onClose)==null||k.call(r),n("destroy"))})}function O({code:k}){k===gn.esc&&M()}return qn(()=>{D(),u(),c.value=!0}),St(()=>r.repeatNum,()=>{_(),D()}),Ro(document,"keydown",O),li(d,()=>{f.value=d.value.getBoundingClientRect().height}),t({visible:c,bottom:w,close:M}),(k,R)=>(L(),yt(Ki,{name:C(a).b("fade"),onBeforeEnter:N=>i.value=!0,onBeforeLeave:k.onClose,onAfterLeave:N=>k.$emit("destroy"),persisted:""},{default:rt(()=>[cn(x("div",{id:k.id,ref_key:"messageRef",ref:d,class:oe([C(a).b(),{[C(a).m(k.type)]:k.type},C(a).is("closable",k.showClose),C(a).is("plain",k.plain),C(a).is("bottom",C(S)==="bottom"),C(A),k.customClass]),style:rn(C(E)),role:"alert",onMouseenter:_,onMouseleave:D},[k.repeatNum>1?(L(),yt(C(U1e),{key:0,value:k.repeatNum,type:C(v),class:oe(C(a).e("badge"))},null,8,["value","type","class"])):xe("v-if",!0),C(g)?(L(),yt(C(Dn),{key:1,class:oe([C(a).e("icon"),C(h)])},{default:rt(()=>[(L(),yt(mr(C(g))))]),_:1},8,["class"])):xe("v-if",!0),ht(k.$slots,"default",{},()=>[k.dangerouslyUseHTMLString?(L(),G(Rt,{key:1},[xe(" Caution here, message could've been compromised, never use user's input as message "),x("p",{class:oe(C(a).e("content")),innerHTML:k.message},null,10,["innerHTML"])],2112)):(L(),G("p",{key:0,class:oe(C(a).e("content"))},je(k.message),3))]),k.showClose?(L(),yt(C(Dn),{key:2,class:oe(C(a).e("closeBtn")),onClick:en(M,["stop"])},{default:rt(()=>[He(C(o))]),_:1},8,["class","onClick"])):xe("v-if",!0)],46,["id"]),[[kr,c.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var est=on(Jat,[["__file","message.vue"]]);let tst=1;const nst=e=>{if(!e.appendTo)e.appendTo=document.body;else if(In(e.appendTo)){let n=document.querySelector(e.appendTo);cl(n)||(n=document.body),e.appendTo=n}},rst=e=>{!e.placement&&In(Bs.placement)&&Bs.placement&&(e.placement=Bs.placement),e.placement||(e.placement=pA),rwe.includes(e.placement)||(e.placement=pA)},owe=e=>{const t=!e||In(e)||Vo(e)||Rn(e)?{message:e}:e,n={...Ps,...t};return nst(n),rst(n),Eo(Bs.grouping)&&!n.grouping&&(n.grouping=Bs.grouping),$n(Bs.duration)&&n.duration===3e3&&(n.duration=Bs.duration),$n(Bs.offset)&&n.offset===16&&(n.offset=Bs.offset),Eo(Bs.showClose)&&!n.showClose&&(n.showClose=Bs.showClose),Eo(Bs.plain)&&!n.plain&&(n.plain=Bs.plain),n},ost=e=>{const t=e.props.placement||pA,n=Mc[t],r=n.indexOf(e);if(r===-1)return;n.splice(r,1);const{handler:o}=e;o.close()},ist=({appendTo:e,...t},n)=>{const r=`message_${tst++}`,o=t.onClose,i=document.createElement("div"),a={...t,id:r,onClose:()=>{o?.(),ost(d)},onDestroy:()=>{i0(null,i)}},s=He(est,a,Rn(a.message)||Vo(a.message)?{default:Rn(a.message)?a.message:()=>a.message}:null);s.appContext=n||Fv._context,i0(s,i),e.appendChild(i.firstElementChild);const l=s.component,d={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.close()}},props:s.component.props};return d},Fv=(e={},t)=>{if(!Xr)return{close:()=>{}};const n=owe(e),r=Kat(n.placement||pA);if(n.grouping&&r.length){const i=r.find(({vnode:a})=>{var s;return((s=a.props)==null?void 0:s.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}if($n(Bs.max)&&r.length>=Bs.max)return{close:()=>{}};const o=ist(n,t);return r.push(o),o.handler};nwe.forEach(e=>{Fv[e]=(t={},n)=>{const r=owe(t);return Fv({...r,type:e},n)}});function ast(e){for(const t in Mc)if(no(Mc,t)){const n=[...Mc[t]];for(const r of n)(!e||e===r.props.type)&&r.handler.close()}}function sst(e){if(!Mc[e])return;[...Mc[e]].forEach(n=>n.handler.close())}Fv.closeAll=ast;Fv.closeAllByPlacement=sst;Fv._context=null;const Et=Xme(Fv,"$message"),bF="_trap-focus-children",Hg=[],ete=e=>{if(Hg.length===0)return;const t=Hg[Hg.length-1][bF];if(t.length>0&&e.code===gn.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],o=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},lst={beforeMount(e){e[bF]=nJ(e),Hg.push(e),Hg.length<=1&&document.addEventListener("keydown",ete)},updated(e){Yt(()=>{e[bF]=nJ(e)})},unmounted(){Hg.shift(),Hg.length===0&&document.removeEventListener("keydown",ete)}},ust=nt({name:"ElMessageBox",directives:{TrapFocus:lst},components:{ElButton:Xa,ElFocusTrap:$b,ElInput:js,ElOverlay:tW,ElIcon:Dn,...EH},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Obe},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:o,size:i}=rD("message-box",ee(()=>e.buttonSize)),{t:a}=n,{nextZIndex:s}=r,l=K(!1),u=Wr({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Rd(jc),cancelButtonLoadingIcon:Rd(jc),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),d=ee(()=>{const z=u.type;return{[o.bm("icon",z)]:z&&c0[z]}}),c=ps(),f=ps(),p=ee(()=>{const z=u.type;return u.icon||z&&c0[z]||""}),v=ee(()=>!!u.message),h=K(),g=K(),y=K(),m=K(),b=K(),w=ee(()=>u.confirmButtonClass);St(()=>u.inputValue,async z=>{await Yt(),e.boxType==="prompt"&&z&&R()},{immediate:!0}),St(()=>l.value,z=>{var j,q;z&&(e.boxType!=="prompt"&&(u.autofocus?y.value=(q=(j=b.value)==null?void 0:j.$el)!=null?q:h.value:y.value=h.value),u.zIndex=s()),e.boxType==="prompt"&&(z?Yt().then(()=>{var Y;m.value&&m.value.$el&&(u.autofocus?y.value=(Y=N())!=null?Y:h.value:y.value=h.value)}):(u.editorErrorMessage="",u.validateError=!1))});const A=ee(()=>e.draggable),S=ee(()=>e.overflow),{isDragging:E}=Uye(h,g,A,S);qn(async()=>{await Yt(),e.closeOnHashChange&&window.addEventListener("hashchange",D)}),Jr(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",D)});function D(){l.value&&(l.value=!1,Yt(()=>{u.action&&t("action",u.action)}))}const _=()=>{e.closeOnClickModal&&k(u.distinguishCancelAndClose?"close":"cancel")},M=eW(_),O=z=>{if(u.inputType!=="textarea")return z.preventDefault(),k("confirm")},k=z=>{var j;e.boxType==="prompt"&&z==="confirm"&&!R()||(u.action=z,u.beforeClose?(j=u.beforeClose)==null||j.call(u,z,u,D):D())},R=()=>{if(e.boxType==="prompt"){const z=u.inputPattern;if(z&&!z.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const j=u.inputValidator;if(Rn(j)){const q=j(u.inputValue);if(q===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(In(q))return u.editorErrorMessage=q,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},N=()=>{var z,j;const q=(z=m.value)==null?void 0:z.$refs;return(j=q?.input)!=null?j:q?.textarea},W=()=>{k("close")},B=()=>{e.closeOnPressEscape&&W()};return e.lockScroll&&nW(l),{...Oa(u),ns:o,overlayEvent:M,visible:l,hasMessage:v,typeClass:d,contentId:c,inputId:f,btnSize:i,iconComponent:p,confirmButtonClasses:w,rootRef:h,focusStartRef:y,headerRef:g,inputRef:m,isDragging:E,confirmRef:b,doClose:D,handleClose:W,onCloseRequested:B,handleWrapperClick:_,handleInputEnter:O,handleAction:k,t:a}}});function cst(e,t,n,r,o,i){const a=hr("el-icon"),s=hr("el-input"),l=hr("el-button"),u=hr("el-focus-trap"),d=hr("el-overlay");return L(),yt(Ki,{name:"fade-in-linear",onAfterLeave:c=>e.$emit("vanish"),persisted:""},{default:rt(()=>[cn(He(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:rt(()=>[x("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:oe(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[He(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:rt(()=>[x("div",{ref:"rootRef",class:oe([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:rn(e.customStyle),tabindex:"-1",onClick:en(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(L(),G("div",{key:0,ref:"headerRef",class:oe([e.ns.e("header"),{"show-close":e.showClose}])},[x("div",{class:oe(e.ns.e("title"))},[e.iconComponent&&e.center?(L(),yt(a,{key:0,class:oe([e.ns.e("status"),e.typeClass])},{default:rt(()=>[(L(),yt(mr(e.iconComponent)))]),_:1},8,["class"])):xe("v-if",!0),x("span",null,je(e.title),1)],2),e.showClose?(L(),G("button",{key:0,type:"button",class:oe(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:c=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:$r(en(c=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[He(a,{class:oe(e.ns.e("close"))},{default:rt(()=>[(L(),yt(mr(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):xe("v-if",!0)],2)):xe("v-if",!0),x("div",{id:e.contentId,class:oe(e.ns.e("content"))},[x("div",{class:oe(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(L(),yt(a,{key:0,class:oe([e.ns.e("status"),e.typeClass])},{default:rt(()=>[(L(),yt(mr(e.iconComponent)))]),_:1},8,["class"])):xe("v-if",!0),e.hasMessage?(L(),G("div",{key:1,class:oe(e.ns.e("message"))},[ht(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(L(),yt(mr(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(L(),yt(mr(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:je(e.message)},null,8,["for","textContent"]))])],2)):xe("v-if",!0)],2),cn(x("div",{class:oe(e.ns.e("input"))},[He(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":c=>e.inputValue=c,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:oe({invalid:e.validateError}),onKeydown:$r(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),x("div",{class:oe(e.ns.e("errormsg")),style:rn({visibility:e.editorErrorMessage?"visible":"hidden"})},je(e.editorErrorMessage),7)],2),[[kr,e.showInput]])],10,["id"]),x("div",{class:oe(e.ns.e("btns"))},[e.showCancelButton?(L(),yt(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:oe([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:c=>e.handleAction("cancel"),onKeydown:$r(en(c=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:rt(()=>[bn(je(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):xe("v-if",!0),cn(He(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:oe([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:c=>e.handleAction("confirm"),onKeydown:$r(en(c=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:rt(()=>[bn(je(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[kr,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[kr,e.visible]])]),_:3},8,["onAfterLeave"])}var dst=on(ust,[["render",cst],["__file","index.vue"]]);const hA=new Map,fst=e=>{let t=document.body;return e.appendTo&&(In(e.appendTo)&&(t=document.querySelector(e.appendTo)),cl(e.appendTo)&&(t=e.appendTo),cl(t)||(t=document.body)),t},pst=(e,t,n=null)=>{const r=He(dst,e,Rn(e.message)||Vo(e.message)?{default:Rn(e.message)?e.message:()=>e.message}:null);return r.appContext=n,i0(r,t),fst(e).appendChild(t.firstElementChild),r.component},hst=()=>document.createElement("div"),gst=(e,t)=>{const n=hst();e.onVanish=()=>{i0(null,n),hA.delete(o)},e.onAction=i=>{const a=hA.get(o);let s;e.showInput?s={value:o.inputValue,action:i}:s=i,e.callback?e.callback(s,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(s)};const r=pst(e,n,t),o=r.proxy;for(const i in e)no(e,i)&&!no(o.$props,i)&&(i==="closeIcon"&&dr(e[i])?o[i]=Rd(e[i]):o[i]=e[i]);return o.visible=!0,o};function qb(e,t=null){if(!Xr)return Promise.reject();let n;return In(e)||Vo(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const i=gst(e,t??qb._context);hA.set(i,{options:e,callback:n,resolve:r,reject:o})})}const vst=["alert","confirm","prompt"],mst={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};vst.forEach(e=>{qb[e]=yst(e)});function yst(e){return(t,n,r,o)=>{let i="";return dr(n)?(r=n,i=""):Vr(n)?i="":i=n,qb(Object.assign({title:i,message:t,type:"",...mst[e]},r,{boxType:e}),o)}}qb.close=()=>{hA.forEach((e,t)=>{t.doClose()}),hA.clear()};qb._context=null;const sh=qb;sh.install=e=>{sh._context=e._context,e.config.globalProperties.$msgbox=sh,e.config.globalProperties.$messageBox=sh,e.config.globalProperties.$alert=sh.alert,e.config.globalProperties.$confirm=sh.confirm,e.config.globalProperties.$prompt=sh.prompt};const bst=sh,iwe=["primary","success","info","warning","error"],wst=Jt({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:wo},id:{type:String,default:""},message:{type:ct([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:ct(Function),default:()=>{}},onClose:{type:ct(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...iwe,""],default:""},zIndex:Number,closeIcon:{type:wo,default:vu}}),Ast={destroy:()=>!0},Cst=nt({name:"ElNotification"}),xst=nt({...Cst,props:wst,emits:Ast,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=rD("notification"),{nextZIndex:i,currentZIndex:a}=o,s=K(!1);let l;const u=ee(()=>{const m=n.type;return m&&c0[n.type]?r.m(m):""}),d=ee(()=>n.type&&c0[n.type]||n.icon),c=ee(()=>n.position.endsWith("right")?"right":"left"),f=ee(()=>n.position.startsWith("top")?"top":"bottom"),p=ee(()=>{var m;return{[f.value]:`${n.offset}px`,zIndex:(m=n.zIndex)!=null?m:a.value}});function v(){n.duration>0&&({stop:l}=Mv(()=>{s.value&&g()},n.duration))}function h(){l?.()}function g(){s.value=!1}function y({code:m}){m===gn.delete||m===gn.backspace?h():m===gn.esc?s.value&&g():v()}return qn(()=>{v(),i(),s.value=!0}),Ro(document,"keydown",y),t({visible:s,close:g}),(m,b)=>(L(),yt(Ki,{name:C(r).b("fade"),onBeforeLeave:m.onClose,onAfterLeave:w=>m.$emit("destroy"),persisted:""},{default:rt(()=>[cn(x("div",{id:m.id,class:oe([C(r).b(),m.customClass,C(c)]),style:rn(C(p)),role:"alert",onMouseenter:h,onMouseleave:v,onClick:m.onClick},[C(d)?(L(),yt(C(Dn),{key:0,class:oe([C(r).e("icon"),C(u)])},{default:rt(()=>[(L(),yt(mr(C(d))))]),_:1},8,["class"])):xe("v-if",!0),x("div",{class:oe(C(r).e("group"))},[x("h2",{class:oe(C(r).e("title")),textContent:je(m.title)},null,10,["textContent"]),cn(x("div",{class:oe(C(r).e("content")),style:rn(m.title?void 0:{margin:0})},[ht(m.$slots,"default",{},()=>[m.dangerouslyUseHTMLString?(L(),G(Rt,{key:1},[xe(" Caution here, message could've been compromised, never use user's input as message "),x("p",{innerHTML:m.message},null,8,["innerHTML"])],2112)):(L(),G("p",{key:0},je(m.message),1))])],6),[[kr,m.message]]),m.showClose?(L(),yt(C(Dn),{key:0,class:oe(C(r).e("closeBtn")),onClick:en(g,["stop"])},{default:rt(()=>[(L(),yt(mr(m.closeIcon)))]),_:1},8,["class","onClick"])):xe("v-if",!0)],2)],46,["id","onClick"]),[[kr,s.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Sst=on(xst,[["__file","notification.vue"]]);const qy={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},jE=16;let Est=1;const Uv=function(e={},t){if(!Xr)return{close:()=>{}};(In(e)||Vo(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;qy[n].forEach(({vm:d})=>{var c;r+=(((c=d.el)==null?void 0:c.offsetHeight)||0)+jE}),r+=jE;const o=`notification_${Est++}`,i=e.onClose,a={...e,offset:r,id:o,onClose:()=>{kst(o,n,i)}};let s=document.body;cl(e.appendTo)?s=e.appendTo:In(e.appendTo)&&(s=document.querySelector(e.appendTo)),cl(s)||(s=document.body);const l=document.createElement("div"),u=He(Sst,a,Rn(a.message)?a.message:Vo(a.message)?()=>a.message:null);return u.appContext=Vr(t)?Uv._context:t,u.props.onDestroy=()=>{i0(null,l)},i0(u,l),qy[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};iwe.forEach(e=>{Uv[e]=(t={},n)=>((In(t)||Vo(t))&&(t={message:t}),Uv({...t,type:e},n))});function kst(e,t,n){const r=qy[t],o=r.findIndex(({vm:u})=>{var d;return((d=u.component)==null?void 0:d.props.id)===e});if(o===-1)return;const{vm:i}=r[o];if(!i)return;n?.(i);const a=i.el.offsetHeight,s=t.split("-")[0];r.splice(o,1);const l=r.length;if(!(l<1))for(let u=o;u<l;u++){const{el:d,component:c}=r[u].vm,f=Number.parseInt(d.style[s],10)-a-jE;c.props.offset=f}}function Tst(){for(const e of Object.values(qy))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function _st(e="top-right"){var t,n,r;let o=((n=(t=qy[e][0])==null?void 0:t.vm.props)==null?void 0:n.offset)||0;for(const{vm:i}of qy[e])i.component.props.offset=o,o+=(((r=i.el)==null?void 0:r.offsetHeight)||0)+jE}Uv.closeAll=Tst;Uv.updateOffsets=_st;Uv._context=null;const Dst=Xme(Uv,"$notify");var Ist=[zat,Vat,Et,bst,Dst,gbe],Ost=mBe([...Pat,...Ist]);const Zo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Mst={key:0,class:"modal-overlay"},Pst={class:"modal-body"},Nst={class:"feedback-type-section"},Rst={class:"type-buttons"},Bst={class:"feedback-content-section"},Lst={class:"textarea-container"},Fst={class:"char-count"},Ust={class:"upload-section"},zst={key:1,class:"uploaded-images"},$st=["src","alt"],jst={class:"image-actions"},Hst=["onClick"],Wst={key:0,class:"upload-progress"},Vst={class:"progress-bar"},qst={class:"progress-text"},Gst={class:"contact-section"},Kst={class:"modal-footer"},Yst=["src"],Qst={__name:"FeedbackModal",props:{visible:{type:Boolean,default:!1}},emits:["close","submit"],setup(e,{emit:t}){const n=e,r=t,o=K("function"),i=K(""),a=K(""),s=K(null),l=K([]);K(!1);const u=ee(()=>i.value.trim()?yve:bve),d=y=>{o.value=y},c=()=>{o.value="function",i.value="",a.value="",l.value=[],r("close")},f=()=>{s.value?.click()},p=async y=>{const m=Array.from(y.target.files);if(l.value.length+m.length>3){Et.warning("最多只能上传3张图片");return}const b=5*1024*1024,w=m.filter(A=>A.size>b?(Et.warning(`图片 ${A.name} 超过5MB限制`),!1):!0);if(w.length!==0){for(const A of w)await v(A);y.target.value=""}},v=async y=>{try{console.log("开始上传图片:",y.name);const m={file:y,url:URL.createObjectURL(y),uploading:!0,progress:0,error:!1};l.value.push(m);const b=new FormData;b.append("image",y),console.log("FormData 已创建:",b),console.log("开始调用后端API...");const w=await zn.uploadImage(b);if(console.log("后端API响应:",w),w.statusCode===200){const A=w.fileUrl||w.fileURL;console.log("上传成功:",A);const S=l.value.findIndex(E=>E.file===y);S!==-1&&(l.value[S]={...m,url:A,uploading:!1,progress:100}),Et.success(`图片 ${y.name} 上传成功`)}else throw new Error(w.message||"上传失败")}catch(m){console.error("图片上传失败:",m);const b=l.value.findIndex(w=>w.file===y);b!==-1&&(l.value[b].error=!0,l.value[b].uploading=!1),Et.error(`图片 ${y.name} 上传失败: ${m.message}`)}},h=y=>{l.value.splice(y,1)},g=()=>{if(!i.value.trim()){Et.warning("请填写反馈内容");return}const y=l.value.filter(w=>!w.uploading&&!w.error);let m="";y.length>0&&(m=y.map(w=>w.url).join(","));const b={type:o.value,content:i.value,contact:a.value,feedback_img:m};console.log("提交反馈数据:",b),r("submit",b),o.value="function",i.value="",a.value="",l.value=[]};return St(()=>n.visible,y=>{if(y){const m=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${m}px`}else document.body.style.overflow="",document.body.style.paddingRight=""}),yl(()=>{document.body.style.overflow="",document.body.style.paddingRight=""}),(y,m)=>e.visible?(L(),G("div",Mst,[x("div",{class:"modal-content",onClick:m[6]||(m[6]=en(()=>{},["stop"]))},[x("div",{class:"modal-header"},[m[8]||(m[8]=x("h2",{class:"modal-title"},"意见反馈",-1)),x("button",{class:"close-btn",onClick:c},m[7]||(m[7]=[x("span",{class:"close-icon"},"×",-1)]))]),x("div",Pst,[x("div",Nst,[m[9]||(m[9]=x("h3",{class:"section-title"},"请选择反馈类型",-1)),x("div",Rst,[x("button",{class:oe(["type-btn",{active:o.value==="function"}]),onClick:m[0]||(m[0]=b=>d("function"))}," 功能建议 ",2),x("button",{class:oe(["type-btn",{active:o.value==="interface"}]),onClick:m[1]||(m[1]=b=>d("interface"))}," 界面优化 ",2),x("button",{class:oe(["type-btn",{active:o.value==="experience"}]),onClick:m[2]||(m[2]=b=>d("experience"))}," 体验问题 ",2),x("button",{class:oe(["type-btn",{active:o.value==="other"}]),onClick:m[3]||(m[3]=b=>d("other"))}," 其他 ",2)])]),x("div",Bst,[m[10]||(m[10]=x("h3",{class:"section-title"},"反馈内容",-1)),x("div",Lst,[cn(x("textarea",{class:"feedback-textarea",placeholder:"请详细描述您的问题或建议...","onUpdate:modelValue":m[4]||(m[4]=b=>i.value=b),maxlength:"200"},null,512),[[qr,i.value]]),x("div",Fst,je(i.value.length)+"/200",1)])]),x("div",Ust,[l.value.length===0?(L(),G("div",{key:0,class:"upload-area",onClick:f},m[11]||(m[11]=[x("div",{class:"upload-icon"},[x("img",{src:fE,alt:"上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 上传截图(选填,最多3张,每张不超过5M) ",-1)]))):xe("",!0),l.value.length>0?(L(),G("div",zst,[(L(!0),G(Rt,null,un(l.value,(b,w)=>(L(),G("div",{key:w,class:"image-item"},[x("img",{src:b.url,alt:`截图${w+1}`,class:"preview-img"},null,8,$st),x("div",jst,[x("button",{class:"delete-btn",onClick:A=>h(w)},m[12]||(m[12]=[x("span",{class:"delete-icon"},"×",-1)]),8,Hst)]),b.uploading?(L(),G("div",Wst,[x("div",Vst,[x("div",{class:"progress-fill",style:rn({width:b.progress+"%"})},null,4)]),x("span",qst,je(b.progress)+"%",1)])):xe("",!0)]))),128)),l.value.length<3?(L(),G("div",{key:0,class:"continue-upload",onClick:f},m[13]||(m[13]=[x("div",{class:"upload-icon"},[x("img",{src:fE,alt:"继续上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 继续上传 ",-1)]))):xe("",!0)])):xe("",!0),x("input",{ref_key:"fileInput",ref:s,type:"file",accept:"image/*",multiple:"",style:{display:"none"},onChange:p},null,544)]),x("div",Gst,[cn(x("input",{type:"text",class:"contact-input",placeholder:"请留下您的联系方式(选填)","onUpdate:modelValue":m[5]||(m[5]=b=>a.value=b)},null,512),[[qr,a.value]])])]),x("div",Kst,[x("button",{class:"submit-btn",onClick:g},[x("img",{src:u.value,alt:"提交反馈",class:"submit-icon"},null,8,Yst)])])])])):xe("",!0)}},Zst=Zo(Qst,[["__scopeId","data-v-1e1e6cd4"]]),Xst={},Jst="https://aqai.shudaodsj.com:22001";function elt(){if(!Xst?.VITE_AUDIO_API_BASE)return Jst}const awe=ta.create({baseURL:elt(),timeout:12e4});awe.interceptors.request.use(e=>{const t=Xf(),n=Iv();if(t&&n){const r=n.charAt(0).toUpperCase()+n.slice(1).toLowerCase();e.headers=e.headers||{},e.headers.Authorization=`${r} ${t}`}return e});function tlt(e){return e?typeof e=="string"?e:e?.workflow_result?.data?.outputs?.text||e?.workflow_result?.data?.outputs?.content||e?.data?.outputs?.text||e?.outputs?.text||e?.text||"":""}async function nlt({file:e,userId:t}){const n=new FormData,r=e?.name||`audio_${Date.now()}.wav`;n.append("file",e,r),t&&n.append("user_id",t);const o=await awe.post("/audio_to_text",n,{headers:{"Content-Type":"multipart/form-data"}}),i=o?.data??o,a=tlt(i);if(!a)throw new Error("语音转写成功,但未返回文本内容");return{text:a,raw:i}}const Y5=typeof window<"u",tte=Y5?window.AudioContext||window.webkitAudioContext:null,rlt=Y5?window.speechSynthesis:null;function O0(){const e=K(!1),t=K(!1),n=K(!1),r=K(""),o=K(""),i=K(!1);let a=null,s=null,l=[];const u=()=>{const E=Y5&&typeof navigator<"u"&&!!navigator.mediaDevices&&typeof window.MediaRecorder<"u";return e.value=E,E},d=()=>{s&&(s.getTracks().forEach(E=>E.stop()),s=null)},c=(E=!1)=>{a&&(a.ondataavailable=null,a.onstop=null,a.onerror=null,a=null),d(),t.value=!1,E&&(l=[])},f=E=>{let D="无法访问麦克风,请检查设备设置";if(!E){o.value=D;return}switch(E.name){case"NotAllowedError":case"PermissionDeniedError":D="麦克风权限被拒绝,请允许浏览器访问麦克风";break;case"NotFoundError":case"DevicesNotFoundError":D="未检测到可用的麦克风设备";break;case"NotReadableError":case"TrackStartError":D="麦克风被占用或不可用,请检查是否有其他应用正在使用";break;case"OverconstrainedError":D="无法满足当前音频采集的约束条件";break;default:D=E.message||D}o.value=D},p=async(E,D)=>{if(!E||!E.size){o.value="未捕获到语音内容,请重新尝试";return}try{n.value=!0;let _=E;(!/wav/i.test(D||"")||E.type!=="audio/wav")&&(_=await alt(E));const M=_||E,O=new File([M],`audio_${Date.now()}.wav`,{type:"audio/wav"}),k=ilt(),{text:R}=await nlt({file:O,userId:k});r.value=R||"",o.value=""}catch(_){console.error("语音转写失败:",_),o.value=_?.message||"语音转写失败,请稍后重试"}finally{n.value=!1,l=[]}},v=()=>n.value?(o.value="上一段语音还在转写中,请稍候",!1):u()?(r.value="",o.value="",l=[],navigator.mediaDevices.getUserMedia({audio:!0}).then(E=>{s=E;const D=olt();try{a=D?new MediaRecorder(E,D):new MediaRecorder(E)}catch(_){console.error("MediaRecorder初始化失败:",_),o.value="无法启动录音,请检查浏览器是否支持录音功能",d();return}a.onstart=()=>{t.value=!0},a.ondataavailable=_=>{_.data&&_.data.size>0&&l.push(_.data)},a.onerror=_=>{console.error("MediaRecorder错误:",_.error||_),o.value="录音过程中出现问题,请重新尝试",c(!0)},a.onstop=async()=>{const _=a?.mimeType,M=new Blob(l,{type:_||"audio/webm"});c(),await p(M,_)},a.start()}).catch(E=>{console.error("获取麦克风权限失败:",E),f(E),c(!0)}),!0):(o.value="当前浏览器不支持语音输入,请更换浏览器",!1),h=()=>{if(a&&a.state!=="inactive")try{a.stop()}catch(E){console.error("停止录音失败:",E),c()}else c()},g=rlt,y=(E,D={})=>{if(!g)return o.value="浏览器不支持语音播放功能",!1;m();const _=new SpeechSynthesisUtterance(E);return _.lang=D.lang||"zh-CN",_.rate=D.rate||1,_.pitch=D.pitch||1,_.volume=D.volume||1,_.onstart=()=>{i.value=!0,o.value=""},_.onend=()=>{i.value=!1},_.onerror=M=>{let O="";switch(M.error){case"canceled":O="语音播放已取消";break;case"interrupted":O="语音播放被中断";break;case"audio-busy":O="音频设备忙,请稍后重试";break;case"audio-hardware":O="音频硬件错误";break;case"network":O="网络错误,请检查网络连接";break;case"synthesis-unavailable":O="语音播放服务不可用";break;case"synthesis-failed":O="语音播放失败";break;case"language-unavailable":O="不支持当前语言";break;case"voice-unavailable":O="当前语音不可用";break;case"text-too-long":O="文本过长,无法播放";break;case"invalid-argument":O="语音播放参数无效";break;case"not-allowed":O="语音播放权限被拒绝";break;default:O=`语音播放错误: ${M.error}`}o.value=O,i.value=!1},g.speak(_),!0},m=()=>{g&&i.value&&(g.cancel(),i.value=!1)};return{isSupported:e,isListening:t,isProcessing:n,isSpeaking:i,transcript:r,error:o,startListening:v,stopListening:h,speakText:y,stopSpeaking:m,pauseSpeaking:()=>{g&&i.value&&g.pause()},resumeSpeaking:()=>{g&&g.resume()},getAvailableVoices:()=>g?g.getVoices().filter(E=>E.lang.startsWith("zh")||E.lang.startsWith("en")):[],setVoice:E=>g?!!g.getVoices().find(M=>M.name===E):!1,checkSupport:u}}function olt(){if(!Y5||typeof window.MediaRecorder>"u")return;const e=["audio/webm;codecs=opus","audio/webm","audio/ogg;codecs=opus","audio/ogg","audio/mp4"];for(const t of e)if(window.MediaRecorder.isTypeSupported(t))return{mimeType:t}}function ilt(){if(!Y5||!window.localStorage)return"web-user";try{return window.localStorage.getItem("shudao_user_id")||"web-user"}catch(e){return console.warn("读取本地用户ID失败:",e),"web-user"}}async function alt(e){if(!e||!e.size||e.type==="audio/wav"||/wav/i.test(e.type))return e;if(!tte)return console.warn("当前环境不支持AudioContext,无法转换为WAV,将直接上传原始音频"),e;const t=new tte;try{const n=await e.arrayBuffer(),r=await t.decodeAudioData(n),o=slt(r),i=llt(o,r.sampleRate);return new Blob([i],{type:"audio/wav"})}catch(n){return console.error("音频转换为WAV失败,将上传原始格式:",n),e}finally{if(t&&t.state!=="closed")try{await t.close()}catch(n){console.warn("关闭AudioContext失败:",n)}}}function slt(e){if(e.numberOfChannels===1)return e.getChannelData(0);const t=e.length,n=new Float32Array(t);for(let r=0;r<e.numberOfChannels;r++){const o=e.getChannelData(r);for(let i=0;i<t;i++)n[i]+=o[i]}for(let r=0;r<t;r++)n[r]/=e.numberOfChannels;return n}function llt(e,t){const n=new ArrayBuffer(44+e.length*2),r=new DataView(n);return Ox(r,0,"RIFF"),r.setUint32(4,36+e.length*2,!0),Ox(r,8,"WAVE"),Ox(r,12,"fmt "),r.setUint32(16,16,!0),r.setUint16(20,1,!0),r.setUint16(22,1,!0),r.setUint32(24,t,!0),r.setUint32(28,t*2,!0),r.setUint16(32,2,!0),r.setUint16(34,16,!0),Ox(r,36,"data"),r.setUint32(40,e.length*2,!0),ult(r,44,e),n}function ult(e,t,n){for(let r=0;r<n.length;r++,t+=2){let o=Math.max(-1,Math.min(1,n[r]));o=o<0?o*32768:o*32767,e.setInt16(t,o,!0)}}function Ox(e,t,n){for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))}const rp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAI1SURBVFiF7ZjtcdswDIaf9jIANwg3iDeoOkG9Qb1BPII2yAjqBr5O4GzgdAI5EyQbJD9IJRAkSoQ+fPFd3zueZYkAXgEgCArmowAqoAbe4jjFe8UC+ifDA0c+SaXGMc69KDbASwa5ZtRRxoxvE2Q8Xa+8Ao/Av/j/DtgquTPwM/6uioq2dw6A65nn4zMd7lWxUQYfMmT0CxVrkSMSknnV5zkNRztfS4vB7zZ+rUR/JOTeGF6BP+L/ncWglaAX138Nck/i2rSarQQlcrw3G3MIXgRXTXBPqGOTdoBMbAi1cW8VLGhv/A1kQ1AY9P2mXZ4ayL28V1/Kg7fiOqfWTYUfm3DVOfgl8J/gXFwtwecM2dvxKR+QleBskMvyoFQuN/2dwY7sruUe7hL3R+FoN5k+3r/H3nx6JbNL3DfXW7lrNEp181kzXGy90iPnp3aXbMhWXZ4l9rTfvI4vIIk6QuesT36lmCO3uZyjQwcF/WHWyjXZOvHsMKC7mEIQuuFp4OgehoZGRTvHTuLZrJPeVhkq1fMdaY/J8Es8sJD3Ugo1SaKRkuCpirDa+wyXStek3NNwtEPShMUbdHi6eXtiwVbO0w3lC8EDxYDchv5crZck18DR/ZQhyR74DPGR9MclvWAWx37A+NDoWzCrwREWQqoe6ny9GLE+OEI5kmSPhNxcNZRWyMVQLaX0xjjfkfaKU9d+QM/ZaDcLukmYM7IP6paW/5dh7hh+LKjrA1umlZe+cqO/XyfxDnGRLhGwhOEKAAAAAElFTkSuQmCC",op="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABQCAYAAACwGF+mAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAtUSURBVHic7Z1fctrIFsa/biGhi8HI2CpiJi7DXE9NOXmJd5AdZAuZFUxmBZOsYJIVJFvIDrID54Xrh0kMrsTYlIwQYDMYIfV9gFYEiL82BjT9e3JQI47lT0envz5NCObk5LiQZVG8IAzPGGFZMGQZg0YItHnPKfj3wRgsQlAEgQVGLAbnI6XSp8PDXHGe85FZBh8fFzQl4r4ilLwA8GyeDxQIpuQzCPlECN7NIu6pBM2FDEJ+FxlY8JAwBguEvWu36dujo5w1afxEQefzX16C0b+EkAVLpsjgvnn69ODDuEF03MF8/utrAvpeiFmwAmQJ6Pt8/uvrcYMCM/TxcUFTFPcvAvJyEZEJBHeCkLe3t3gTVIJEgsZHo/gTTIhZsKIw9kpRmAbgt8FDQyVHPv/1NRh79SCBCQRzQkBeBpUffSVHPv/lJQF9/2BRCQR3hMH9zT9R9AR9fFzQogo7BpBdQlwCwVwwBqttkxyvp72SQ1HcVxBiFqwZhKC7RsL/DQAnJ4Ws67BjYc8J1hF/lqa9F8QKoGBt8WfpbsnB2PNlBiQQ3JVefxHIyUkhy1xWWHZAAsFdIW2So67rPF92IALBfcCieEEJpBfLDkQguA8IwzMKwsRkUBAKGGFZCibcDUFIYMhSxsRiiiAcMAaNCv9ZEBYIgTa2wV8gWDeEoAWhQghaECqEoAWhQgi6B5UWfymm/YxYTF1wJOElVIJOpTaRSMQgy8NbJdOPUjh8ksP+/u7QsaQWx6+/7iOT0QPfO4lEIjbVmIODPaTT22PHyXIE+9ldHPyyN1cs/3ZCdcV29C1IEoVp1lC+NPuOqdFo4HuoRKElEwC6wo5tqDCMKmrW9VSfmU5vI7W9CbNSR7lcGTlOliOQJIrU9iZs24Zp1gPH6fqW97Ntd6aKYVl0r10cicQGqERROD1fdkjhEbSqKpB6j/TmTWvoOH/ct22773XXcVEqGdC0BHZ0DbIcQSajI5VK4vu38kRRua4LABOFapp1qGoUSS2OHX0LjUZz6NxJLY6kFgcAGEZ1it/64fGLOLbxozRqtdpLjOoHoRG0v+4MuriqqgAIznq23YFhVGFZDWQyOmIbKlRVgSxHJgraMKqgtJt504+20Wq10WwO31AAcFmuILahQpYjSD/axvdvZe+YLEe87Fyzrqd+QjwEo0Tsp9n854GjCiY8gt74D4CumAdFyMUMALdjMoltd3B2dgFd30Ispo4U5iDGVdW7CR7vpVE4PQ+8EVzHRfmygh19C+XL/vJE17e8G2gVsvM0IvbTqDcfIKrJhEfQvQwdJFj/5GqaunRWQbmOi+/fysj9/BMkieLxXhpnZxdwnW45cnCw1zeeSnRocior3RgpHT725cu3meKZl1lFzHEcd+qbf9GEQtB8wgUA8Z6b4Mdvlz1+nJ77c8YJy7Y7uDKqSD/ahiRRSJR6guZi9SONsPAkiY48tghmFbHjuHBdty9JrIqYgZAI2s8kQQSJ674wzTpkJQKzUu97EpwVLwLHZzI6ZCWCVqs9VIIsknkzsW13UDo38HivPyk0Gjf3HeLchELQjuuOFI2iyNjN7AAAGo0mzEptobEM2oXA5AzmPsAje14Rc8xKHaZZw352dyhhBLlKyyIUgh4nCH9GNiu1lXo8PgRJLQ4tmZhLxEC3xLgyqjDNOtLp7aHFnqBJ+DIJhaDHwRdNFjFxUVUF0agy9HrjuunVz+uMbXdwVryAbXeQSm0itb05NGZV7DpOqAUtyxEvMy0iM8cTsb6VPc5Z8WJlngTc0+bXYtpsbVbqMK6qcJ3uBHAn4PcEVseu44Ra0P4/nKoqgX0c47hp/oMrY/R/6+E6Luz2j8ft4IQzkYiN7d3g42Mb6pAzM8j37+U7rcbZdmcqcftLDKBnMQbUzXzsqty4nFAL2p89ZTkyc7PP4DL5IKZZ71vqPnyS6ztOKZ3aVZk0jtL7s/JGiVtWIl6JwdF3tkZet1UTMxBiQSe1+NAfYpoFE0WWvX4K3qcxL81ma6T7AgD72e4TYxr3pXW7mF4Jv7gHGVU3c1bJruOEVtBBtS2AsSUEAM9jte0OzEpwo9G02HZnpAPgX45v3vyzctluXN3MWSW7jhOqfmiOPzv7s08qlRxbdiS1uNfbXLOuF2pHpVJJ7+cdfQup1OhMuAxG1c2cVbPrOKEUtD87G0YVl+UKHMeFJFFkMnrge/zdbotuEJLliFfWAN3VzfSj7bk3GCyCSdl31ew6TugEzbvWgB9Z1u3N3IGuozAoatprKOLvG1f33hW+I4Xz5e9vXhmU1OLYz+6uhKgtqzH2+KrZdZxQCbpb93W/N2cwy5pm3Ss9klrcy8a8843XtFeGtbBHaSq1idzPP3mC5Z9lGFWUL7tPEVmO4OCXvZFzgIei2WyNzNKraNdxlp8K7hF/5jOM6pAwSyUDUVWBqiqe8OOJmCdms1JfSKkRi6ndHmuf51sqGX3OgmnW0Wg0vQy9o2uglI7d1rVoDKOK/Y1h735VxQyEKEMPlhqjdnycnV14CxQ7utaXme8inqAd3bGYiv39Xexndz0xt1ptFE7PA+PzLzUD3W1duZ9/epAd6UE0m63Ap9Uq2nWcUAha17f6So3LCcIcfJQ6jjtxEWUS/lXIRGIDQNea40J2HBeGUUXh9Hzsip9td3B6eo5Go+mdY5pd5YsiyB9fRbuOs/YlR3fT6Q8xnxUvAhuDqES7CwWppGdHceeDux+6voXSuTHzIzWT0ft85dT2JmQlgvJlBaoaRbu3eXbahiW+AyaT0eE47lL3F1q1a283PbC6dh1nrQWtqkqfY1G+rAxd7FhMRWIzhmQy0Sdk06zBNOuQKPXqVu5AtFptmGZtKiFlMrpnwXG3YkfXkOjV5pbVQM26nqv7rlQyllZucNzeteKT1FW16zjkf/lTtuwg5oFKFAcHe55I/ZOsUc3sjuOiVmsM7SgBfjgfg/sPmzctmGYtsEwYFDOfUAadi2e2Vuu2e+729FmO93lcN5pL+boA/7VepU7CINY2Q7uOi6pZx46u4cqwULOuoaoK0untwA4ynpFHZUo+kfSLkS+AJLV4bym85jUjJRIxT8w167rPHalZ12jetKDrW4gnYpAkCrXnrtylHr5uLMf7dR0X140m4onYSosZWGNBA11b6cbXB9G2O4j29Uh0s2tjBiH4he1vr5TlCBxfs1Kj0cSVYSGqKiiVjKHz2HbHKxk2Yiqive/5UGQZtLeJFuhmv1Gtmf6bz3HdpX6Zi2nW4KzBpoW1LTlGwfs4ZpmEjcPfXlkqGUOlCpVoKHanhIXQCVrw7yYUPrRAwBGCFoQKIWhBqBCCFoQKyhjG70kSCNYExmBRQoSgBeGAEBQpCIrLDkQguBcILEoYKS47DoHgXmDEoozg87LjEAjuAwbnIyW3+LjsQASC+4BS6RM9PMoVAZGlBWvP58PDXJECAHOZyNKC9YaQT0BvYaXdoW+FHy1YVxiDRQjeAT1BHx3lLDD2brlhCQRzQti7w8NcEfAtfYssLVhTiu02fcv/4Qn66Chngbh/LCcmgWA+GNw3R0c5LxH3NSc9fXrwgYG9efiwBILZYWBvnj49+OB/jQQNzOe/vicgLx8iKIFgLgh5++RJbqiiCGwfbbfpHyDkbdAxgWDZMLAPt7cIrCQCMzQnn//6moD8uZiwBILZ6ZYZ/3096vhYQQNAPv/lJQH9E0D2HuMSCGaCMVgg7h+DNfMgEwUNAMfHBU1R3Fdg5HdCoN1LhALBFDAGC4y9a3foW7+bMYqpBM05OSlkGcPvYOw5gGfzBikQTMFn5rKP0wqZM5Og/ZycFLKu6zwnkF6AMA0MGmPIigwumIXesrUFgiJhpMgIPpNbfOw1zc3M/wHFXCrMk6BiUgAAAABJRU5ErkJggg==",ip="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABQCAYAAACwGF+mAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAArvSURBVHic7Z09TBvZFsf/947NM1pHMp3dgZ63IBWke4hEyBVhi0gkaJ9eGhBliCDaFGSDFCPlq9ingJItLdPs00aQSCmSUCF2QU4HVEvxIkGHO0Zar3DAM3eL8R3P2ONvjMeT82sQzNhzPP773PN1DUODjMyf9Oo+5QYTGNCBXiZELxgLAQg1+pzEV4kK4FAAKmdM1XXxTtG1zc3n3YeNPBmr5+SRuAjpp6dzYOwGgIFGLkgQNbIHsE2u5ZbrEXdNgrYIeRbkgYmLRQUTy9zXtbQZZ2q1k6sK+uqPp5OM4QVIyER7ORQCi1tPu1YqncQrHby28CXOGJIgMRPtp5cxJK8tfIlXOsnRQ4/ERUg7O3vBgMlWWEYQTbLE/f5FpxDE0UPrZ2ePSMyEi5nTzs5eOB0oEXTepc+12iKCaAYGTDqFH7aQI58AJi/MKoJoEiEwZU0UTUGPxEVIPzvbBdDbBrsIolFU7vf3yXjaDDn03OkcSMxE52H0SPIwIN/GVpRdUHmO6ExML80BQFd81AEkOhnTS+dDDjHSRmMIonmM+SKwfLhx0G57CKJZuKb1cY0rI+02hCDOA92n3OCcG66aIDodJjDAdSEoGSQ8gQ70ckbVDcIjMCF6OaiZQngFxkIc5KEJ7xCqOOBPEJ0GCZrwFCRowlOQoAlPQYLOEwy45xoDfXV9XQphwVOCvjXEMdzPEQ6VCmJmTMFvj/1YmvaVHBsd5Hi/4MeDccXxsdUY7q9+G4f7GV7f92NmTKl4XjjEsDztw+sffA3Z8rXjKUFPxRQ8ua3g1lDpy/o2YoijWCLBAHD9inH+6BWO5WkFo4O135aZMeOaVYXawxAMABND3NG+wmsoHEuromY72kEwYDiRpWkfEndKHUU78IygoxFmLul7B6VCkMeOju3HMlng2RsNKxs6AEN4D24qSNypzUP+lTV+VhPqWkrHxx3jGlMx55VgdJBjNP/hSubtcRtWEb9f8OPumIJBF4VInhG0Ne78fFQq6GjeQzt5vbQqkNzQ8P1POezmPwzRCEO4p/p1kxsaVlOG+O6OKRXj31cfNKSPBYIB4O539lsfDjHTO6/v6FjfdY+gaxHxroMTaQfuWCfOAXmDPx+JEtFKMRvHyz9HWhWYS+QwFTOE6eTpnVjZ0DDYxxCNMDy57cP0q5zjByeTBV5+0DAVU/DyvV2wUzGOcA9D+li4wjsHA0YINtzPa/LA2/vttxnwkKAH+gzv5uSdrct7LXFpckOr69qZLPDwFw2JGR+CAeDJbQWziRwy+XDk1x/st/lSN8PStD3mjvQYNgYdjv37v7m67GmUekUsyWSdw7x24AlBh0OFGHn4MsevRW/Gpe7C74//Uzl5q0QlYcmw5e6YgmAACAYYMlnjTZZitRIMOAtGPvaiqFfEmSyQOREIW17T3oE7vDPgEUFbqSYIJ3GdF2spHeEQw1pKt60EswnnD8L8uIJID8PnI4GXH+pbFZqhUU+cPhZ49lbDk9t22Wz94Q7vDHhE0JlsedFEQgzzNw2vvLWvYy3VWm/yykGY1Zbji1iyGxWxZDWlYy2lYXnaV9Igcku4AXhI0OVuaniw8OatpXRX3fyLQJYCGy2tZbJGTrGW0jEzpthCDcA5CW8nnhB0JWTTpBVeMBphiIZLhbK9r5sJoRtoNMhKHwvMJjSkVYFbQxwTDnV2t5TrJJ4WdDjEzLpwKxKX4X6GqVhpkjmbEK5ZCdZ3jZq2vBfXr/CaZkVWUzpWNjRksrJG7pxMu6VcJ/G0oK1vXDRszEjUw+6BbnYQnchk7Z3H4oRzuJ9jZqx870qeP9DHSkp7xSz8T3MsSdZKWhVY3xVVxW0NMQAj9l6eVhwHq9xUrpN4WtDWuYhwT22dPytHx5U92VrKnmT+9thvOx4M1F5VqXbeeU4DlhN3OAQzxJBMxkrjZombynUSzwp6dJCXvBG1NEwiIWbOUzQbB+8diLLVFwDmilFL9aUZ71wJq7iLKRc3S9xUrpN4VtBW72ylUggBGF0+wEiImi3xpVWBdJl/RGZtx+8duCfmllSKmyVusxnw0HCSFat3Xt/RsZ6fcpsYqjzvPDrIzdnm9d3WlqMm/lW49VMx55HXdlIubpa4rVwncdddPCes3jm5oePlByNbDwZgNlmKsU67GQNCrevchS1hDWDYdXdMaXiDQSuo5n3dVq6TeE7QU5YkZn3HaEHLzB0wpvLmx+2ilgNF8nGzidaKedkyfPT9TzkzDJIbDNwg6o9VxlfdVq6TeErQ4RDDpM3LFm66dcD++hVuxodGWcpnxrQrG3rLltJbQxyJGZ/5wZHXSm5o5ioS7mF4fd9XNX5tNXsHoqwXdmO5TuKppNDq+ZIOwnz+VsO3EWNuWQp/uJ+ZYl5N6S0JNQb6GCZj9qH4Z280W2VhLaVj+w9heOgew75vAs6zIRfFyoaGQYfavRvLdRLPeOjiUKPcjo/ZRM4sgU3GuM0zNyMepwRqoI9hadqH5WmfbQPC9M85R/vSar7VnG/WTAxxJO6UDgNdFHsHwrTFihvLdRJPCHoqpthCjWqjmMVLaXHHrxGsXUhZKYlGmClkGcdP/5yrWFNOq4bgt/IxajTCatpV3ipWP5V+8NwabgAAu/bw1L3W1cDoIMeDm4XacXGnSyL3xU0MFcpRsvIhkfO+9b5h8+OKOQQl2drX8eq9jskYR1o1atr1NmrmxxVksu0NO4IB4PV9v3mf5ArjVjpa0NEIs22ff/hLDtv79pcz0Gd4uOtXuE3IqyljXiEYYGbcKvl8JLCaqm2jqlXMslphXS0+7upY32m8ZhsMNN+xbJbJWCGJXk01F5q1mo4VdLHnsCZZ5YbZM1ng445esqMEMDy93KgqSR8bHbzVT7pjmFAsZplQOj2XbET8P/886ePaX6ucQdneFy1rgVfCeq9nEzkKOVqFjJ2lmKIRhhmHLfZWj1zN2zmJETDEvfqpMHMx3M/NNvnHHR3P39q9lmzUDF/m55bUVYu/W8mDcQXDlzm+e3zWluvXSkeX7ZIbGnYPCrtQ0sfC/IYkwEj+1lJ6XU0AOT88Osht45XhHobMSeG87X0dKxsM/4ygRMyAkdw9e6sh+EHDQB9HNGKIPJL/BqVv8iK/1M3Kjmb+eVIQ71/Z1g0o1cLqJx1/umjTQjk62kM7YcxxoKEkzAnreOWzN6UJpxtiXKKA5wRNfN14og5NEBISNOEpSNCEpyBBE56CAyizSYggOg6VQwgSNOEVDrlg7LDdVhDEeSAAlXPgsN2GEMR5wBlTuWDYa7chBHEe6Lp4x3lOe9duQwjiPFB0bZNvPu8+BMhLEx3P3ubz7kOjDi0EeWmiw2GbQL6xwru6lkD1aKJzUbmWWwbygt6MMxVCLLfXJoJoECaW86FzofVNXproUA65r2tJ/mIKejPOVCFwrz02EURjCIHFzTgzHbFtOGnradcKmFi8eLMIogGYWNx62rVi+5PTeVcfniYZMHkRNhFEgyz9/qSrJKJwHB9V/P57AJacjhFEuxHACvf7HSOJit/bem3hSxyCPWqNWQTRAEws/v74H/Gyh6s9/uqPp5OM4RGA3nM0iyDqRRUC94pj5mJq+mbtkbgI6bnTOQg2CyB0HtYRRI2oEGKZd3UtWasZ5ajrq+JH5k96dcU3C4gRAAONWkgQNbAHId7VKmRJw//7YGT+pFfjygjn7IYuRIgZnrsX5MGJ+lAhhCoYO+TAoWDY4zntnez81cvfwN65863CgcQAAAAASUVORK5CYII=",clt={class:"container"},dlt={class:"header"},flt={class:"username"},plt={class:"main-content"},hlt={class:"search-container"},glt={class:"search-box"},vlt=["disabled"],mlt={class:"icon-container"},ylt=["src"],blt={key:0,class:"recording-indicator"},wlt=["disabled"],Alt=["src"],Clt={class:"recommend-list"},xlt=["onClick"],Slt={class:"cards-container"},Elt={class:"card-column first-column"},klt={class:"common-questions-card"},Tlt={class:"questions-content"},_lt={class:"questions-list"},Dlt=["onClick","title"],Ilt={__name:"Index",setup(e){const t=Yl(),{isListening:n,isProcessing:r,transcript:o,error:i,startListening:a,stopListening:s}=O0(),l=K(""),u=K(!1),d=K(!1),c=K([]),f=K(null),p=K(!1),v=K([]),h=K(!1),g=K(null),y=K(!1),m=async()=>{try{const H=await zn.getRecommendQuestion({limit:8});c.value=H.data,console.log("推荐问题数据结构:",c.value)}catch(H){console.error("获取推荐问题失败:",H)}},b=()=>{m()},w=()=>{v.value=[],y.value=!1,g.value&&(clearTimeout(g.value),g.value=null)},A=()=>{if(!l.value.trim()){w();return}g.value&&clearTimeout(g.value),g.value=setTimeout(()=>{S(l.value)},100)},S=async H=>{if(!H||H.trim().length===0){v.value=[],y.value=!1;return}if(d.value){console.log("正在发送消息,跳过推荐问题获取"),v.value=[],y.value=!1;return}try{console.log("开始获取用户推荐问题,用户输入:",H),h.value=!0;const re=await zn.getUserRecommendQuestion({user_message:H.trim()});if(console.log("用户推荐问题响应:",re),d.value){console.log("请求完成时状态已变化,不显示推荐问题"),v.value=[],y.value=!1;return}re&&re.data&&re.data.questions&&re.data.questions.length>0?(v.value=re.data.questions,y.value=!0,console.log("用户推荐问题数据已设置:",v.value)):(v.value=[],y.value=!1)}catch(re){console.error("获取用户推荐问题失败:",re),v.value=[],y.value=!1}finally{h.value=!1}},E=H=>{console.log("选择用户推荐问题:",H),l.value=H,w()},D=()=>{if(console.log("点击语音按钮"),r.value){Et.info("语音正在转写,请稍候...");return}n.value?M():_()},_=()=>{console.log("开始语音输入"),a()||Et.error("语音识别启动失败,请检查麦克风权限")},M=()=>{console.log("停止语音输入"),s(),Et.info("语音转写中,请稍候...")},O=async()=>{if(!l.value.trim()){Et.warning("请输入搜索内容");return}if(!d.value){d.value=!0,w();try{console.log("搜索内容:",l.value),t.push({path:"/chat",query:{autoMessage:l.value}})}finally{d.value=!1}}},k=()=>{u.value=!0},R=()=>{u.value=!1},N=async H=>{try{console.log("收到反馈数据:",H),console.log("feedback_img字段值:",H.feedback_img);let re=H.feedback_img||"";console.log("处理后的feedbackImg:",re);const X={feedback_type:W(H.type),feedback_content:H.content,feedback_user_phone:H.contact||"",feedback_img:re};console.log(X,"feedbackPayload");const te=await zn.submitFeedback(X);console.log(te,"response"),Et.success("反馈提交成功!感谢您的宝贵意见"),R()}catch(re){console.error("提交反馈失败:",re),Et.error("提交反馈失败,请重试")}},W=H=>({function:1,interface:2,experience:3,other:4})[H]||1,B=H=>{console.log("点击问题:",H),t.push({path:"/chat",query:{autoMessage:H}})},z=()=>{t.push("/hazard-detection")},j=()=>{t.push("/safety-hazard")},q=()=>{t.push("/exam-workshop")},Y=()=>{t.push("/ai-writing")},U=()=>{t.push("/policy-document")};St(o,H=>{!H||n.value||(l.value=H)}),St(i,H=>{H&&(console.error("语音识别错误:",H),Et.error(H))});const F=H=>{!H.target.closest(".user-recommend-questions")&&!H.target.closest(".search-box")&&w()};return qn(()=>{m();const H=Vve();f.value={username:H||"蜀道用户"},console.log("用户信息:",f.value),document.addEventListener("click",F)}),yl(()=>{document.removeEventListener("click",F),g.value&&clearTimeout(g.value)}),(H,re)=>(L(),G("div",clt,[x("div",dlt,[re[5]||(re[5]=x("div",{class:"logo"},[x("img",{src:Qj,alt:"logo",class:"logo-img"})],-1)),x("div",{class:"user-info",onMouseenter:re[0]||(re[0]=X=>p.value=!0),onMouseleave:re[1]||(re[1]=X=>p.value=!1)},[re[4]||(re[4]=x("div",{class:"user-avatar"},[x("div",{class:"avatar-icon"})],-1)),x("span",flt,je(f.value?.username||"用户"),1)],32)]),x("div",plt,[re[14]||(re[14]=x("h1",{class:"main-title"},"蜀道安全管理AI智能助手",-1)),re[15]||(re[15]=x("p",{class:"sub-title"},"安全法规问答,智能识图提示,AI赋能筑造安心与高效",-1)),x("div",hlt,[x("div",glt,[cn(x("input",{type:"text",placeholder:"请输入您想问的问题...",class:"search-input","onUpdate:modelValue":re[2]||(re[2]=X=>l.value=X),onKeyup:$r(O,["enter"]),onInput:A},null,544),[[qr,l.value]]),x("button",{class:oe(["voice-btn",{recording:C(n)}]),onClick:D,disabled:d.value},[x("div",mlt,[x("img",{src:C(rp),alt:"语音",class:"action-icon"},null,8,ylt),C(n)?(L(),G("div",blt)):xe("",!0)])],10,vlt),re[6]||(re[6]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:O,disabled:d.value||!l.value.trim()},[x("img",{src:l.value.trim()&&!d.value?C(ip):C(op),alt:"发送",class:"send-icon"},null,8,Alt)],8,wlt)]),y.value&&v.value.length>0?(L(),G("div",{key:0,class:"user-recommend-questions",onClick:re[3]||(re[3]=en(()=>{},["stop"]))},[x("div",Clt,[(L(!0),G(Rt,null,un(v.value,(X,te)=>(L(),G("div",{key:te,class:"recommend-item",onClick:Z=>E(X)},je(X),9,xlt))),128))])])):xe("",!0)]),x("div",Slt,[x("div",Elt,[x("div",klt,[x("div",{class:"card-header"},[x("div",{class:"refresh-button",onClick:b},re[7]||(re[7]=[x("span",{class:"refresh-text"},"换一换",-1)]))]),x("div",Tlt,[x("div",_lt,[(L(!0),G(Rt,null,un(c.value,(X,te)=>(L(),G("div",{class:"question-item",onClick:Z=>B(X.question),key:te,title:X.question},je(te+1)+". "+je(X.question),9,Dlt))),128))])])])]),x("div",{class:"card-column"},[x("div",{class:"hazard-card",onClick:z},re[8]||(re[8]=[x("div",{class:"card-title"},"隐患提示",-1),x("div",{class:"card-description"},"图片智能识别,风险隐患提示",-1)])),x("div",{class:"training-card",onClick:j},re[9]||(re[9]=[x("div",{class:"card-title"},"安全培训",-1),x("div",{class:"card-description"},"智能编排大纲,生成精美演示文稿",-1)]))]),x("div",{class:"card-column"},[x("div",{class:"service-card exam-workshop-card",onClick:q},re[10]||(re[10]=[ki('<div class="service-header" data-v-5ac77eb3><div class="service-icon" data-v-5ac77eb3><img src="'+hve+'" alt="考试工坊" class="icon-img" data-v-5ac77eb3></div><div class="service-title" data-v-5ac77eb3>考试工坊</div></div><div class="service-description" data-v-5ac77eb3>让组卷更省心,让出题更精准</div><div class="service-tag" style="color:#2563EB;" data-v-5ac77eb3>生成考题 ›</div>',3)])),x("div",{class:"service-card policy-document-card",onClick:U},re[11]||(re[11]=[ki('<div class="service-header" data-v-5ac77eb3><div class="service-icon" data-v-5ac77eb3><img src="'+gve+'" alt="政策文件" class="icon-img" data-v-5ac77eb3></div><div class="service-title" data-v-5ac77eb3>政策文件</div></div><div class="service-description" data-v-5ac77eb3>汇集国家、行业及集团政策文件</div><div class="service-tag" style="color:#EA580C;" data-v-5ac77eb3>了解更多 ›</div>',3)]))]),x("div",{class:"card-column"},[x("div",{class:"service-card ai-writing-card",onClick:Y},re[12]||(re[12]=[ki('<div class="service-header" data-v-5ac77eb3><div class="service-icon" data-v-5ac77eb3><img src="'+vve+'" alt="AI写作" class="icon-img" data-v-5ac77eb3></div><div class="service-title" data-v-5ac77eb3>AI写作</div></div><div class="service-description" data-v-5ac77eb3>一键创作公文,让文案更专业</div><div class="service-tag" style="color:#16A34A;" data-v-5ac77eb3>开始创作 ›</div>',3)])),x("div",{class:"service-card feedback-card",onClick:k},re[13]||(re[13]=[ki('<div class="service-header" data-v-5ac77eb3><div class="service-icon" data-v-5ac77eb3><img src="'+mve+'" alt="意见反馈" class="icon-img" data-v-5ac77eb3></div><div class="service-title" data-v-5ac77eb3>意见反馈</div></div><div class="service-description" data-v-5ac77eb3>助力产品升级,期待您的反馈</div><div class="service-tag" style="color:#9333EA;" data-v-5ac77eb3>参与反馈 ›</div>',3)]))])])]),re[16]||(re[16]=x("div",{class:"footer"},[x("div",{class:"footer-info"},[x("span",null,"工信部备案号: 蜀ICP备20251411234号-1"),x("span",null,"川公网安备: 51010502011234号"),x("span",null,"推荐电脑分辨率:1920*1080,1920*1200,3840*2160"),x("span",null,"推荐浏览器:Google,Edge,火狐浏览器")])],-1)),He(Zst,{visible:u.value,onClose:R,onSubmit:N},null,8,["visible"])]))}},Olt=Zo(Ilt,[["__scopeId","data-v-5ac77eb3"]]),kc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAD5SURBVFiF7ZdLDoIwFEVvifuQpbATdQwDZAXPDRAH4tS6E9mJbMTngE8a09IWNJjQMyK0eRx6+wFg7QiXTllOCQux9SrM3FzO9LD127gU4wg7gPc+AiwgAVgFIp+iv2CIIMspad9USwIg9qz9hGEExAv3Pp4hgjZjv2G2EAPQ1mMhBrH/iUAlLeiGzr4qyWmlmEgL4u5SViUdPtsXH4Eg4LQRqegynTNnFh+BIBAEgkAQ8N4JAUgAYKDubzBQTz0yvQV0R+q1JNmL+bJ4BIsLWCNIjyfTh6ojPNpqnwOC5TyBcbQRMNB8+0HqqlExrp4pv2MmXH/T1skbfkFGJuI/zo8AAAAASUVORK5CYII=",swe="/assets/2-DNbvF9Ja.jpg",Mlt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABGCAYAAACUsCfoAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAOZSURBVHic7ZrtcdswDIbBXv9H3UAb1CN4g3iDqBMknaDuBEkn8HWCtBPYG7idQOoEciZ4+0NM69ACBEmA3fT43OVylih8kCBEggrkDICCiBZEdE1EBRGV8a+ITQ5E1Bz9/x5C2Hnb5QaAFYBHAC3G08Znq0v7oQZABaCe4CxH/U93AIAlgK2hw30dUF7azxcAuHN0+JgWwJ2FzWGmwwURfSIirTENEe2oS2RP8doV/U14C6WchxDCR2Vbe9AloCG2AG6hCFMAJfQ5YnMGF3uNXA8YtgewnCFf0wFrO490Rg05fX9GXSZzXmNIKRjRAlgxzxUAbtBNj30czT2AwXkdR59bD7Q4R7YHsBEcr3raF3HUOMNrpd5K0Pto7miifCEoPwk5dKu3oZXbfoR+KeyXps4mirfaHh8wskYX8vcYGaaCDVszRxOF0twuk7arnjZt7IyCUaG1YynYMUs2p5CbY5ukXYnT19A+7ZyZtnDrh1srHcfKtoyyVdJuk9yvLZ2OOrhRtw939CepVtGudLCl0NpjoWiwh3E6t30SDokRqJrnb5R6Sub6IfmdLka+KeVPoWGumzrOCUuVXyW/fyrlTyHt9GdKzcNax7U8Jb8bY/lmvFW2a5jraSQ8xP/viehrCIF7zgIuCrlIGI+Q3NTLTWvmJrcxirg1t/1qadgWbiDUr7Mxc/wHc/16hAwrlsz1nbkmdHvpPtze1YItXJhXHsq48AI8t4SndkiblNJLKdfTZ0ty4OtwfsVHyFtTszqboF/a45feyjeC8spRr3Ro4V9qjqMulZOWDjqlklftPtpHhkgJxrTqqejo3qquG5Dn2x5GCxvIhwprCx1TjNoIRs1OduiKkRy+JeUBw4o4uhzLGbKl6VTjAkvl1EBpDqoOCxi5teB0aejCdCC/akafbUE+NakcXJgO+JJvOyYs0V+efuYyR8MSkEN+PUKONNqlnwczAP+KU4+6MNprZ/OnA77eDSgWGsJoT06SHKbFxhDCgYi+MLc1xzs3zHXPMrUNmFEWYp4DHOa2tsqqJoRwQPcKe5feA1DEqDgh5oDPPbca52ptJvM/M+vLRg50OzOrffIuhPDBSNYfzJNb5Pm7dAus5LzA+tDQg8ZD6Gtw3IXsuDG/DGXZHft6g+HKqJbaY7nqCvo/8htLdWk/JgG5SjqE+5GUG+h2avUEp2tcuoo6F3TzXSpBp5h+/pnJZDKZTCaTyWReF78BvdVdZXUzhOEAAAAASUVORK5CYII=",wF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAALJSURBVGiB7Zk9ctswEIUfABbqotQpQt1AbjTDTi7T2TewT5DoBEqK1I5PYN/AqdLaHU020A2sI7j0jLyzKQxpIoo/ALGyJjP6WgK7+7hP5IICjhw58l+j9hE0z/PUGDNn5ikAKKWWAGaTyWQhnUtcgCveAhjWXD6RFqElgwGAMeYO9cUDwF2e56lkPlEBRVF8BzBuWZIaY75K5hSzkLPOk89aIjrNsuxBIq9YB4wxN/tY24WIgMfHx28ApgFbUme3aKIt1PHUaYWIRlmWLWPyR3fA2SG4eLf3PjZ/lIAe1qkSbaXeFoqxTpUYK/XuQIx1amL1tlIvAUVRnCHOOlVSZ8dggi1krR2uVqsnNN/9WwDXRPRcvZAkyRUznzXseyaik1ArJSGLAWC1Ws3Rbp1F08BWFMVvpVSTgGGSJFcAzkPqCbJQnudTAK2tZuaPITEre8/KsrwI2eMtwFo79BkBtNYfWi6PPFLNQyZWbwHOOp2BmTn2yZQaY+a+i70E+FhnjVKqUYBS6rNfWbjwtVKnAF/rrBHowBovK3UK8LXOP7R1IEScl5VaBZRlOYandda0daBHdzqt1NWB4INH211m5jQ0HoC5tbYxZqMAj/NtE1K/gTWps3EttaOEwKR5SUQP1UJihramibV2lBCYNG+MMRHbd3Hid16EOxYSOKSsuWXmc2a+UEr9ArAz3AVSe/jZspDQIeUZwGl1oHOx7xH2SN6haqWtDkgcUpj5um4adUl/xMQGdg8/GwGC1mn79inxXXTLShp4Gxe01t4DVBt7eA/U5diMGRoAXl9fxc63aHjxWGuHSimRmwRsPiJD5Xk+lfg+U2FBRLPBYLAAgJeXl7H7faXCeS5VWZZ/AHwRDvxeLLVS6tOhq4gg1cxcHrqKCB40Ef1E/FvyUMx0lmVLIjrB26t/eeiKunA13hLRaB9/Gh45cuSd+QuneSb9xW/YywAAAABJRU5ErkJggg==",AF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAPgSURBVGiBzVrLdds4FL0gTB0tlQqGrmDMDXi4ilzBKBVIrsBJBbYqsF1B6ArsVBDOCkf0gi6BU8FobQp8WRhUYgug+JV8Vzp4JHEv3nv4PIhhAEgppycnJ5dFUZwxxiYAngHcCyGivvtifX0oTdPJy8vLV8bYJYCJ5bEMwKNS6i4Mw6yPfjsLkFJOOedXAKYNX42UUvdhGMZd+m8lIE3TSZ7ncwAzNCf+HhmApVIqbuOVRgJ0bP9DRAvYw6Qt1ngNr2UTIbUEdAiTtohRM+mtAmomZR1cAJijnfgMe5J+R0Dfoy2EYPq7nv7uDO0GxJj0WwE6MR/Qc5iUAt71MwNwBcBr8cnIdd1vvu+vAcApW/M8v8EBYtz3/bUQIhJCnCqlzgFEDT+x0AMNQHsgSZIzAGl/NH/jvQdMkFJ6juMsGGNz1PSKUuo8DMO49MDnDhw7IwzDLAiCayHEKV6TPt73Duf8b0CHEBF9GpRhA+jwOldKneI1vNam50rODgAwxv4/GMOaCMMwE0JcENGdyV5yLj1gVPkRwBj7y9RecnZMxg8Gr8roAEBRFP8dhEqPKDmXHsiOR6UaROSZ2jnnv0NoPB5/5BzwTO1CiGdAC/B9f01E2cFY1YSUcmoxbQd8m8SO4zwPTagpysXKgC3XP2ehbFA2LcAYm5raiejf8vdWwGaz+XEATo1ARGcW064HxuPxMyzL9jGgN5ieyTYajeLy91aA3l9/pDy4tLTH5VkA2F2JH4fj0xhTS/sbjm8EuK57PxSbJtDTp2eyKaXe5OobAdo18UC8aoNzPreYdmpHps3cUb0gpfQALCzmHW47AlzXfcQRZyPO+XeLKTPViXYE6G2F8RAxNHTsT002IjJGhvE8MBqNbnEEL1SM/rooishkMAo4hhdWq9U1LDMPEVkrc9YTmfaC8aW+IaWcMsauLOYsCIJr27tWAdoL37qS2wddcrSFDgAsq96vPBMHQfCIAdcFTf4n7OfeaF+Feu+h3nXdLxggodM0nXDOH2AnnymlKkcfqCHA9/21UupLQ36V0AXenwBs22UopS7qXHTUKquEYRgT0d7RqAMppZfneYoK8kS0rHt3VrsupGeCqO7zJqxWqxnnPEVFrYeIllWzzns0vuR7enp6IKJZ3eeFEEyHzA3se5wSkRDiogmfxgKaXoQQ0bLmNVVj8kCHe+IkSb5j/4jWxa0QotWa07o2qivHnRObiJZtyQM93NQnSbJAu/uuTE+VcZf+O1enhRBRi7uuW9d1/a7kgR7/7AG8TpOMsRvYvRHrm/i4rz57FVBCh9UcerFijMWbzeauT+IlfgFRmqNOTONauAAAAABJRU5ErkJggg==",CF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAALQSURBVGiB1ZrLcZtQFIa/A15oqVQQpYLIG8ns7AoyqcCTCmJXYKmDuIKMO0gqkHdYbIQ7IBVES894LicLwCMRQLzB/4wWwL2X7+ec++AKYURyXffStu07YA4EgG+MWTuOE+TVkZ7YTmq73a5E5C7jUgB8XSwWfla9URgogE+0B66yTAxuoAR8okwTgxqoAJ/oPxODGagBn+jIhNUuViVd16w3BTae581hQAOqet+g+hTYuK47e2994Egi8qs3A09PTzeWZV2r6u/lcrlKzjcxoapBLwbSkKq6bsnEvvM+kAUnInfb7XaVHC+Xy5Wqrms073cagVNPtmkkjDGfOotAGZgmkVDVteM43fSBqk+yaiQOy7cegZyb74Eb4FtWnSqRSJttNQIF8G9Tv+d5O6L1/km4U6MXtGigJPwc2BW1k2PiSxiGDxcXFz/S5VsxUAF+Q7QMKFTWk85TYwNtwycKw/A264mn1agTdwUPICLfy5SrbaBL+FgPZQrVSqGu4TvtA2OCh4oGxgYPFQyMER5KGhgrPJQwMGZ4OGFg7PBQYOA9wEPORFawHr8dEzxkGCh6mVDVGYwHHlIpVPJNyidnPX9KbcPDgYGmm0yn1AU8xAZ2u9309fX1b9uNJ+oKHuI+8PLycpgSgTHmKvkRpUxtdQkPcAZg2/bn5ISI+I7jPCbHnuft6zbeNTzEERCR2cFNH9touA94iA2o6lsKGWOemzbaFzzEKcTBsDiZTNI5nzY0pWAY7RMeQFJbHfvFYvGhqEL8X+4m61rf8ACWMeZoNnVdd1anoSHgAazDEQiY2ra9qWpiKHiAMxG5VNXDc7PYxJXjOIHrujPLsuYi8pEo94/yf0h4iPpA3l5lMv7nLtiGhodoFJrlXCtcaY4BHiIDAcWry31cxif6euR5Mpn45+fntWfoNnVGtGf/E5iraiAij4Cvqn/CMPSLPnUZg/4B6JIy/nMEqqIAAAAASUVORK5CYII=",xF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANUSURBVGiB7ZrLdeIwGEY/WWO2kxKcDuJFRLwjJaQDU0GSCoAKJqkAOkimgrBTrCyUDnAJrHGEZoGYIeYlyzIM53BXeRwjf1hX+iUZOHPmzEkgpbw4RDukyQ+XUl7MZrMHQkgPwFRr/dxqtZ7iOJ421WZjgYQQKYAegKj0rxzAgDE2aqJd74GEEFcAXrAepMxYKTVIkmTss31vgTjnEaW0ByCteOnIBMt93EftQCVPXPHmV61AOzxxJUdNv5wCVfDEFWe/KgWq4YkThJDXr6+vxyp+WQXy5IkrlfzaG6gBT1yZAnjc59fWQAfwxJWdfq0FOrQnrmzz61ugLMv6R/LElTW/CLCQvigKif+ve9mSK6VukyTJAwCYzWYdnG4YAIiCILgCgAAA5vP5Jxaz9CnzEzCBkiTJwzCMtdYDLIbHkyVY/hDH8bTdbveVUjEh5PWYN2XJCBu+/KD8hyRJ8uvr6zul1C2AcfP3VZkcQMwY62qt1wL92HaVmbjGplL4BeAgewI7yGFRia89oTKMsVEYhpfH9EtrPQjDMLZZVuwNBBzVr5FS6rLdbvdtF35bu9wmTJlxxznvmPKoU/0ercgB3DHGPqteWCnQkgb9ylFzxWoVyBSsE5Q2NBhjIynlq1kr3aNGMK31oLzmMe0OsegJsc0Ts3II/8qilFI6ybKszzmPAC9+rXkipbzIsqxPKZUw3VopZfVl2Qb6BiGkRyl9M10OgNP8lcPMJ6tLgPf394eiKCam6q/8xJ0CGSIAQyHExCwGASz8YozdAuhi8zCfA+gyxi5XuxDnvCOEeAuCoJaTdQItiQBIIcRw2Q2BzfPXpvmEcx59fHy8UErf4GHUdBrltpBSStMsy/7KbZzoSynXNjhWNl7utdbeqhAfT+gbhJBeURRy1a9yGCFEWseTXXgPZIiwwa+lJwCGaKg2tOpylFLXGi7Cwq+x+b3j+DkbIYTsXz5swoxGTzXa7qBemNGWbatnLAacz1ar9RuouBV8hE3HXCnVrbLH7bpZn6LZYNP5fD64ubmp3Cucj1M451EQBKnnfbza50S1D7w87rR6OcnzfSS5rIyr4PWstYlD4xR2flUW3oZjHOs7C29Doy9elAaOg7x4cTAO9WrMmTNn6vEHE6Hhcf/sG9cAAAAASUVORK5CYII=",Plt={class:"nav-sidebar"},Nlt={class:"nav-menu"},Rlt={__name:"Sidebar",setup(e){const t=Yl(),n=j_(),r=ee(()=>(console.log("当前路由名称:",n.name,"当前路径:",n.path),n.name)),o=a=>{switch(console.log("切换导航:",a),a){case"ai-chat":t.push("/chat");break;case"safety-hazard":t.push("/safety-hazard");break;case"hazard-detection":t.push("/hazard-detection");break;case"ai-writing":t.push("/ai-writing");break;case"exam-workshop":t.push("/exam-workshop");break}},i=()=>{t.push("/")};return(a,s)=>(L(),G("div",Plt,[x("div",{class:"logo-section",onClick:i},s[5]||(s[5]=[x("img",{src:swe,alt:"logo",class:"logo-image"},null,-1)])),x("div",Nlt,[x("div",{class:oe(["nav-item",{active:r.value==="Chat"}]),onClick:s[0]||(s[0]=l=>o("ai-chat"))},s[6]||(s[6]=[x("img",{src:Mlt,alt:"AI问答",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"AI问答",-1)]),2),x("div",{class:oe(["nav-item",{active:r.value==="HazardDetection"}]),onClick:s[1]||(s[1]=l=>o("hazard-detection"))},s[7]||(s[7]=[x("img",{src:wF,alt:"隐患识别",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"隐患提示",-1)]),2),x("div",{class:oe(["nav-item",{active:r.value==="SafetyHazard"}]),onClick:s[2]||(s[2]=l=>o("safety-hazard"))},s[8]||(s[8]=[x("img",{src:AF,alt:"安全隐患",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"安全培训",-1)]),2),x("div",{class:oe(["nav-item",{active:r.value==="AIWriting"}]),onClick:s[3]||(s[3]=l=>o("ai-writing"))},s[9]||(s[9]=[x("img",{src:CF,alt:"AI写作",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"AI写作",-1)]),2),x("div",{class:oe(["nav-item",{active:r.value==="ExamWorkshop"}]),onClick:s[4]||(s[4]=l=>o("exam-workshop"))},s[10]||(s[10]=[x("img",{src:xF,alt:"考试工坊",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"考试工坊",-1)]),2)])]))}},Q5=Zo(Rlt,[["__scopeId","data-v-9f53bf3f"]]);var Du={},ZW="1.13.7",nte=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},SD=Array.prototype,XW=Object.prototype,rte=typeof Symbol<"u"?Symbol.prototype:null,Blt=SD.push,Z5=SD.slice,gA=XW.toString,Llt=XW.hasOwnProperty,lwe=typeof ArrayBuffer<"u",Flt=typeof DataView<"u",Ult=Array.isArray,ote=Object.keys,ite=Object.create,ate=lwe&&ArrayBuffer.isView,zlt=isNaN,$lt=isFinite,uwe=!{toString:null}.propertyIsEnumerable("toString"),ste=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],jlt=Math.pow(2,53)-1;function hl(e,t){return t=t==null?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}}function M0(e){var t=typeof e;return t==="function"||t==="object"&&!!e}function cwe(e){return e===null}function JW(e){return e===void 0}function eV(e){return e===!0||e===!1||gA.call(e)==="[object Boolean]"}function dwe(e){return!!(e&&e.nodeType===1)}function Qs(e){var t="[object "+e+"]";return function(n){return gA.call(n)===t}}const ED=Qs("String"),tV=Qs("Number"),fwe=Qs("Date"),pwe=Qs("RegExp"),hwe=Qs("Error"),nV=Qs("Symbol"),rV=Qs("ArrayBuffer");var gwe=Qs("Function"),Hlt=nte.document&&nte.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Hlt!="function"&&(gwe=function(e){return typeof e=="function"||!1});const Vs=gwe,vwe=Qs("Object");var mwe=Flt&&(!/\[native code\]/.test(String(DataView))||vwe(new DataView(new ArrayBuffer(8)))),oV=typeof Map<"u"&&vwe(new Map),Wlt=Qs("DataView");function Vlt(e){return e!=null&&Vs(e.getInt8)&&rV(e.buffer)}const vA=mwe?Vlt:Wlt,P0=Ult||Qs("Array");function N0(e,t){return e!=null&&Llt.call(e,t)}var SF=Qs("Arguments");(function(){SF(arguments)||(SF=function(e){return N0(e,"callee")})})();const kD=SF;function ywe(e){return!nV(e)&&$lt(e)&&!isNaN(parseFloat(e))}function iV(e){return tV(e)&&zlt(e)}function aV(e){return function(){return e}}function bwe(e){return function(t){var n=e(t);return typeof n=="number"&&n>=0&&n<=jlt}}function wwe(e){return function(t){return t?.[e]}}const HE=wwe("byteLength"),qlt=bwe(HE);var Glt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Klt(e){return ate?ate(e)&&!vA(e):qlt(e)&&Glt.test(gA.call(e))}const sV=lwe?Klt:aV(!1),Vl=wwe("length");function Ylt(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(o){return t[o]===!0},push:function(o){return t[o]=!0,e.push(o)}}}function Awe(e,t){t=Ylt(t);var n=ste.length,r=e.constructor,o=Vs(r)&&r.prototype||XW,i="constructor";for(N0(e,i)&&!t.contains(i)&&t.push(i);n--;)i=ste[n],i in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function ns(e){if(!M0(e))return[];if(ote)return ote(e);var t=[];for(var n in e)N0(e,n)&&t.push(n);return uwe&&Awe(e,t),t}function Cwe(e){if(e==null)return!0;var t=Vl(e);return typeof t=="number"&&(P0(e)||ED(e)||kD(e))?t===0:Vl(ns(e))===0}function lV(e,t){var n=ns(t),r=n.length;if(e==null)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0}function di(e){if(e instanceof di)return e;if(!(this instanceof di))return new di(e);this._wrapped=e}di.VERSION=ZW;di.prototype.value=function(){return this._wrapped};di.prototype.valueOf=di.prototype.toJSON=di.prototype.value;di.prototype.toString=function(){return String(this._wrapped)};function lte(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,HE(e))}var ute="[object DataView]";function EF(e,t,n,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;return o!=="function"&&o!=="object"&&typeof t!="object"?!1:xwe(e,t,n,r)}function xwe(e,t,n,r){e instanceof di&&(e=e._wrapped),t instanceof di&&(t=t._wrapped);var o=gA.call(e);if(o!==gA.call(t))return!1;if(mwe&&o=="[object Object]"&&vA(e)){if(!vA(t))return!1;o=ute}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return rte.valueOf.call(e)===rte.valueOf.call(t);case"[object ArrayBuffer]":case ute:return xwe(lte(e),lte(t),n,r)}var i=o==="[object Array]";if(!i&&sV(e)){var a=HE(e);if(a!==HE(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;i=!0}if(!i){if(typeof e!="object"||typeof t!="object")return!1;var s=e.constructor,l=t.constructor;if(s!==l&&!(Vs(s)&&s instanceof s&&Vs(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!EF(e[u],t[u],n,r))return!1}else{var d=ns(e),c;if(u=d.length,ns(t).length!==u)return!1;for(;u--;)if(c=d[u],!(N0(t,c)&&EF(e[c],t[c],n,r)))return!1}return n.pop(),r.pop(),!0}function Swe(e,t){return EF(e,t)}function Gb(e){if(!M0(e))return[];var t=[];for(var n in e)t.push(n);return uwe&&Awe(e,t),t}function uV(e){var t=Vl(e);return function(n){if(n==null)return!1;var r=Gb(n);if(Vl(r))return!1;for(var o=0;o<t;o++)if(!Vs(n[e[o]]))return!1;return e!==Twe||!Vs(n[cV])}}var cV="forEach",Ewe="has",dV=["clear","delete"],kwe=["get",Ewe,"set"],Qlt=dV.concat(cV,kwe),Twe=dV.concat(kwe),Zlt=["add"].concat(dV,cV,Ewe);const _we=oV?uV(Qlt):Qs("Map"),Dwe=oV?uV(Twe):Qs("WeakMap"),Iwe=oV?uV(Zlt):Qs("Set"),Owe=Qs("WeakSet");function cm(e){for(var t=ns(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function Mwe(e){for(var t=ns(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function fV(e){for(var t={},n=ns(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function mA(e){var t=[];for(var n in e)Vs(e[n])&&t.push(n);return t.sort()}function pV(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||n==null)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),s=a.length,l=0;l<s;l++){var u=a[l];(!t||n[u]===void 0)&&(n[u]=i[u])}return n}}const hV=pV(Gb),Gy=pV(ns),gV=pV(Gb,!0);function Xlt(){return function(){}}function Pwe(e){if(!M0(e))return{};if(ite)return ite(e);var t=Xlt();t.prototype=e;var n=new t;return t.prototype=null,n}function Nwe(e,t){var n=Pwe(e);return t&&Gy(n,t),n}function Rwe(e){return M0(e)?P0(e)?e.slice():hV({},e):e}function Bwe(e,t){return t(e),e}function vV(e){return P0(e)?e:[e]}di.toPath=vV;function X5(e){return di.toPath(e)}function mV(e,t){for(var n=t.length,r=0;r<n;r++){if(e==null)return;e=e[t[r]]}return n?e:void 0}function yV(e,t,n){var r=mV(e,X5(t));return JW(r)?n:r}function Lwe(e,t){t=X5(t);for(var n=t.length,r=0;r<n;r++){var o=t[r];if(!N0(e,o))return!1;e=e[o]}return!!n}function TD(e){return e}function zv(e){return e=Gy({},e),function(t){return lV(t,e)}}function _D(e){return e=X5(e),function(t){return mV(t,e)}}function J5(e,t,n){if(t===void 0)return e;switch(n??3){case 1:return function(r){return e.call(t,r)};case 3:return function(r,o,i){return e.call(t,r,o,i)};case 4:return function(r,o,i,a){return e.call(t,r,o,i,a)}}return function(){return e.apply(t,arguments)}}function Fwe(e,t,n){return e==null?TD:Vs(e)?J5(e,t,n):M0(e)&&!P0(e)?zv(e):_D(e)}function DD(e,t){return Fwe(e,t,1/0)}di.iteratee=DD;function Ql(e,t,n){return di.iteratee!==DD?di.iteratee(e,t):Fwe(e,t,n)}function Uwe(e,t,n){t=Ql(t,n);for(var r=ns(e),o=r.length,i={},a=0;a<o;a++){var s=r[a];i[s]=t(e[s],s,e)}return i}function bV(){}function zwe(e){return e==null?bV:function(t){return yV(e,t)}}function $we(e,t,n){var r=Array(Math.max(0,e));t=J5(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function WE(e,t){return t==null&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}const Ky=Date.now||function(){return new Date().getTime()};function jwe(e){var t=function(i){return e[i]},n="(?:"+ns(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(i){return i=i==null?"":""+i,r.test(i)?i.replace(o,t):i}}const Hwe={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Wwe=jwe(Hwe),Jlt=fV(Hwe),Vwe=jwe(Jlt),qwe=di.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var LI=/(.)^/,eut={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},tut=/\\|'|\r|\n|\u2028|\u2029/g;function nut(e){return"\\"+eut[e]}var rut=/^\s*(\w|\$)+\s*$/;function Gwe(e,t,n){!t&&n&&(t=n),t=gV({},t,di.templateSettings);var r=RegExp([(t.escape||LI).source,(t.interpolate||LI).source,(t.evaluate||LI).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(u,d,c,f,p){return i+=e.slice(o,p).replace(tut,nut),o=p+u.length,d?i+=`'+
- ((__t=(`+d+`))==null?'':_.escape(__t))+
- '`:c?i+=`'+
- ((__t=(`+c+`))==null?'':__t)+
- '`:f&&(i+=`';
- `+f+`
- __p+='`),u}),i+=`';
- `;var a=t.variable;if(a){if(!rut.test(a))throw new Error("variable is not a bare identifier: "+a)}else i=`with(obj||{}){
- `+i+`}
- `,a="obj";i=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
- `+i+`return __p;
- `;var s;try{s=new Function(a,"_",i)}catch(u){throw u.source=i,u}var l=function(u){return s.call(this,u,di)};return l.source="function("+a+`){
- `+i+"}",l}function Kwe(e,t,n){t=X5(t);var r=t.length;if(!r)return Vs(n)?n.call(e):n;for(var o=0;o<r;o++){var i=e?.[t[o]];i===void 0&&(i=n,o=r),e=Vs(i)?i.call(e):i}return e}var out=0;function Ywe(e){var t=++out+"";return e?e+t:t}function Qwe(e){var t=di(e);return t._chain=!0,t}function Zwe(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=Pwe(e.prototype),a=e.apply(i,o);return M0(a)?a:i}var dm=hl(function(e,t){var n=dm.placeholder,r=function(){for(var o=0,i=t.length,a=Array(i),s=0;s<i;s++)a[s]=t[s]===n?arguments[o++]:t[s];for(;o<arguments.length;)a.push(arguments[o++]);return Zwe(e,r,this,this,a)};return r});dm.placeholder=di;const wV=hl(function(e,t,n){if(!Vs(e))throw new TypeError("Bind must be called on a function");var r=hl(function(o){return Zwe(e,r,t,this,n.concat(o))});return r}),Su=bwe(Vl);function fm(e,t,n,r){if(r=r||[],!t&&t!==0)t=1/0;else if(t<=0)return r.concat(e);for(var o=r.length,i=0,a=Vl(e);i<a;i++){var s=e[i];if(Su(s)&&(P0(s)||kD(s)))if(t>1)fm(s,t-1,n,r),o=r.length;else for(var l=0,u=s.length;l<u;)r[o++]=s[l++];else n||(r[o++]=s)}return r}const Xwe=hl(function(e,t){t=fm(t,!1,!1);var n=t.length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=wV(e[r],e)}return e});function Jwe(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return N0(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n}const AV=hl(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),e4e=dm(AV,di,1);function t4e(e,t,n){var r,o,i,a,s=0;n||(n={});var l=function(){s=n.leading===!1?0:Ky(),r=null,a=e.apply(o,i),r||(o=i=null)},u=function(){var d=Ky();!s&&n.leading===!1&&(s=d);var c=t-(d-s);return o=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),s=d,a=e.apply(o,i),r||(o=i=null)):!r&&n.trailing!==!1&&(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=o=i=null},u}function n4e(e,t,n){var r,o,i,a,s,l=function(){var d=Ky()-o;t>d?r=setTimeout(l,t-d):(r=null,n||(a=e.apply(s,i)),r||(i=s=null))},u=hl(function(d){return s=this,i=d,o=Ky(),r||(r=setTimeout(l,t),n&&(a=e.apply(s,i))),a});return u.cancel=function(){clearTimeout(r),r=i=s=null},u}function r4e(e,t){return dm(t,e)}function ID(e){return function(){return!e.apply(this,arguments)}}function o4e(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function i4e(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function CV(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const a4e=dm(CV,2);function xV(e,t,n){t=Ql(t,n);for(var r=ns(e),o,i=0,a=r.length;i<a;i++)if(o=r[i],t(e[o],o,e))return o}function s4e(e){return function(t,n,r){n=Ql(n,r);for(var o=Vl(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}const OD=s4e(1),SV=s4e(-1);function EV(e,t,n,r){n=Ql(n,r,1);for(var o=n(t),i=0,a=Vl(e);i<a;){var s=Math.floor((i+a)/2);n(e[s])<o?i=s+1:a=s}return i}function l4e(e,t,n){return function(r,o,i){var a=0,s=Vl(r);if(typeof i=="number")e>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(Z5.call(r,a,s),iV),i>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i<s;i+=e)if(r[i]===o)return i;return-1}}const kV=l4e(1,OD,EV),u4e=l4e(-1,SV);function yA(e,t,n){var r=Su(e)?OD:xV,o=r(e,t,n);if(o!==void 0&&o!==-1)return e[o]}function c4e(e,t){return yA(e,zv(t))}function Gc(e,t,n){t=J5(t,n);var r,o;if(Su(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=ns(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e}function ap(e,t,n){t=Ql(t,n);for(var r=!Su(e)&&ns(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var s=r?r[a]:a;i[a]=t(e[s],s,e)}return i}function d4e(e){var t=function(n,r,o,i){var a=!Su(n)&&ns(n),s=(a||n).length,l=e>0?0:s-1;for(i||(o=n[a?a[l]:l],l+=e);l>=0&&l<s;l+=e){var u=a?a[l]:l;o=r(o,n[u],u,n)}return o};return function(n,r,o,i){var a=arguments.length>=3;return t(n,J5(r,i,4),o,a)}}const cy=d4e(1),VE=d4e(-1);function f0(e,t,n){var r=[];return t=Ql(t,n),Gc(e,function(o,i,a){t(o,i,a)&&r.push(o)}),r}function f4e(e,t,n){return f0(e,ID(Ql(t)),n)}function qE(e,t,n){t=Ql(t,n);for(var r=!Su(e)&&ns(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0}function GE(e,t,n){t=Ql(t,n);for(var r=!Su(e)&&ns(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1}function Gu(e,t,n,r){return Su(e)||(e=cm(e)),(typeof n!="number"||r)&&(n=0),kV(e,t,n)>=0}const p4e=hl(function(e,t,n){var r,o;return Vs(t)?o=t:(t=X5(t),r=t.slice(0,-1),t=t[t.length-1]),ap(e,function(i){var a=o;if(!a){if(r&&r.length&&(i=mV(i,r)),i==null)return;a=i[t]}return a==null?a:a.apply(i,n)})});function MD(e,t){return ap(e,_D(t))}function h4e(e,t){return f0(e,zv(t))}function TV(e,t,n){var r=-1/0,o=-1/0,i,a;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=Su(e)?e:cm(e);for(var s=0,l=e.length;s<l;s++)i=e[s],i!=null&&i>r&&(r=i)}else t=Ql(t,n),Gc(e,function(u,d,c){a=t(u,d,c),(a>o||a===-1/0&&r===-1/0)&&(r=u,o=a)});return r}function g4e(e,t,n){var r=1/0,o=1/0,i,a;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=Su(e)?e:cm(e);for(var s=0,l=e.length;s<l;s++)i=e[s],i!=null&&i<r&&(r=i)}else t=Ql(t,n),Gc(e,function(u,d,c){a=t(u,d,c),(a<o||a===1/0&&r===1/0)&&(r=u,o=a)});return r}var iut=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function _V(e){return e?P0(e)?Z5.call(e):ED(e)?e.match(iut):Su(e)?ap(e,TD):cm(e):[]}function DV(e,t,n){if(t==null||n)return Su(e)||(e=cm(e)),e[WE(e.length-1)];var r=_V(e),o=Vl(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var s=WE(a,i),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)}function v4e(e){return DV(e,1/0)}function m4e(e,t,n){var r=0;return t=Ql(t,n),MD(ap(e,function(o,i,a){return{value:o,index:r++,criteria:t(o,i,a)}}).sort(function(o,i){var a=o.criteria,s=i.criteria;if(a!==s){if(a>s||a===void 0)return 1;if(a<s||s===void 0)return-1}return o.index-i.index}),"value")}function PD(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=Ql(r,o),Gc(n,function(a,s){var l=r(a,s,n);e(i,a,l)}),i}}const y4e=PD(function(e,t,n){N0(e,n)?e[n].push(t):e[n]=[t]}),b4e=PD(function(e,t,n){e[n]=t}),w4e=PD(function(e,t,n){N0(e,n)?e[n]++:e[n]=1}),A4e=PD(function(e,t,n){e[n?0:1].push(t)},!0);function C4e(e){return e==null?0:Su(e)?e.length:ns(e).length}function aut(e,t,n){return t in n}const IV=hl(function(e,t){var n={},r=t[0];if(e==null)return n;Vs(r)?(t.length>1&&(r=J5(r,t[1])),t=Gb(e)):(r=aut,t=fm(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var a=t[o],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),x4e=hl(function(e,t){var n=t[0],r;return Vs(n)?(n=ID(n),t.length>1&&(r=t[1])):(t=ap(fm(t,!1,!1),String),n=function(o,i){return!Gu(t,i)}),IV(e,n,r)});function OV(e,t,n){return Z5.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))}function dy(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[0]:OV(e,e.length-t)}function tv(e,t,n){return Z5.call(e,t==null||n?1:t)}function S4e(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[e.length-1]:tv(e,Math.max(0,e.length-t))}function E4e(e){return f0(e,Boolean)}function k4e(e,t){return fm(e,t,!1)}const MV=hl(function(e,t){return t=fm(t,!0,!0),f0(e,function(n){return!Gu(t,n)})}),T4e=hl(function(e,t){return MV(e,t)});function bA(e,t,n,r){eV(t)||(r=n,n=t,t=!1),n!=null&&(n=Ql(n,r));for(var o=[],i=[],a=0,s=Vl(e);a<s;a++){var l=e[a],u=n?n(l,a,e):l;t&&!n?((!a||i!==u)&&o.push(l),i=u):n?Gu(i,u)||(i.push(u),o.push(l)):Gu(o,l)||o.push(l)}return o}const _4e=hl(function(e){return bA(fm(e,!0,!0))});function D4e(e){for(var t=[],n=arguments.length,r=0,o=Vl(e);r<o;r++){var i=e[r];if(!Gu(t,i)){var a;for(a=1;a<n&&Gu(arguments[a],i);a++);a===n&&t.push(i)}}return t}function wA(e){for(var t=e&&TV(e,Vl).length||0,n=Array(t),r=0;r<t;r++)n[r]=MD(e,r);return n}const I4e=hl(wA);function O4e(e,t){for(var n={},r=0,o=Vl(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function M4e(e,t,n){t==null&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o}function P4e(e,t){if(t==null||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(Z5.call(e,r,r+=t));return n}function PV(e,t){return e._chain?di(t).chain():t}function NV(e){return Gc(mA(e),function(t){var n=di[t]=e[t];di.prototype[t]=function(){var r=[this._wrapped];return Blt.apply(r,arguments),PV(this,n.apply(di,r))}}),di}Gc(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=SD[e];di.prototype[e]=function(){var n=this._wrapped;return n!=null&&(t.apply(n,arguments),(e==="shift"||e==="splice")&&n.length===0&&delete n[0]),PV(this,n)}});Gc(["concat","join","slice"],function(e){var t=SD[e];di.prototype[e]=function(){var n=this._wrapped;return n!=null&&(n=t.apply(n,arguments)),PV(this,n)}});const sut=Object.freeze(Object.defineProperty({__proto__:null,VERSION:ZW,after:i4e,all:qE,allKeys:Gb,any:GE,assign:Gy,before:CV,bind:wV,bindAll:Xwe,chain:Qwe,chunk:P4e,clone:Rwe,collect:ap,compact:E4e,compose:o4e,constant:aV,contains:Gu,countBy:w4e,create:Nwe,debounce:n4e,default:di,defaults:gV,defer:e4e,delay:AV,detect:yA,difference:MV,drop:tv,each:Gc,escape:Wwe,every:qE,extend:hV,extendOwn:Gy,filter:f0,find:yA,findIndex:OD,findKey:xV,findLastIndex:SV,findWhere:c4e,first:dy,flatten:k4e,foldl:cy,foldr:VE,forEach:Gc,functions:mA,get:yV,groupBy:y4e,has:Lwe,head:dy,identity:TD,include:Gu,includes:Gu,indexBy:b4e,indexOf:kV,initial:OV,inject:cy,intersection:D4e,invert:fV,invoke:p4e,isArguments:kD,isArray:P0,isArrayBuffer:rV,isBoolean:eV,isDataView:vA,isDate:fwe,isElement:dwe,isEmpty:Cwe,isEqual:Swe,isError:hwe,isFinite:ywe,isFunction:Vs,isMap:_we,isMatch:lV,isNaN:iV,isNull:cwe,isNumber:tV,isObject:M0,isRegExp:pwe,isSet:Iwe,isString:ED,isSymbol:nV,isTypedArray:sV,isUndefined:JW,isWeakMap:Dwe,isWeakSet:Owe,iteratee:DD,keys:ns,last:S4e,lastIndexOf:u4e,map:ap,mapObject:Uwe,matcher:zv,matches:zv,max:TV,memoize:Jwe,methods:mA,min:g4e,mixin:NV,negate:ID,noop:bV,now:Ky,object:O4e,omit:x4e,once:a4e,pairs:Mwe,partial:dm,partition:A4e,pick:IV,pluck:MD,property:_D,propertyOf:zwe,random:WE,range:M4e,reduce:cy,reduceRight:VE,reject:f4e,rest:tv,restArguments:hl,result:Kwe,sample:DV,select:f0,shuffle:v4e,size:C4e,some:GE,sortBy:m4e,sortedIndex:EV,tail:tv,take:dy,tap:Bwe,template:Gwe,templateSettings:qwe,throttle:t4e,times:$we,toArray:_V,toPath:vV,transpose:wA,unescape:Vwe,union:_4e,uniq:bA,unique:bA,uniqueId:Ywe,unzip:wA,values:cm,where:h4e,without:T4e,wrap:r4e,zip:I4e},Symbol.toStringTag,{value:"Module"}));var kF=NV(sut);kF._=kF;const lut=Object.freeze(Object.defineProperty({__proto__:null,VERSION:ZW,after:i4e,all:qE,allKeys:Gb,any:GE,assign:Gy,before:CV,bind:wV,bindAll:Xwe,chain:Qwe,chunk:P4e,clone:Rwe,collect:ap,compact:E4e,compose:o4e,constant:aV,contains:Gu,countBy:w4e,create:Nwe,debounce:n4e,default:kF,defaults:gV,defer:e4e,delay:AV,detect:yA,difference:MV,drop:tv,each:Gc,escape:Wwe,every:qE,extend:hV,extendOwn:Gy,filter:f0,find:yA,findIndex:OD,findKey:xV,findLastIndex:SV,findWhere:c4e,first:dy,flatten:k4e,foldl:cy,foldr:VE,forEach:Gc,functions:mA,get:yV,groupBy:y4e,has:Lwe,head:dy,identity:TD,include:Gu,includes:Gu,indexBy:b4e,indexOf:kV,initial:OV,inject:cy,intersection:D4e,invert:fV,invoke:p4e,isArguments:kD,isArray:P0,isArrayBuffer:rV,isBoolean:eV,isDataView:vA,isDate:fwe,isElement:dwe,isEmpty:Cwe,isEqual:Swe,isError:hwe,isFinite:ywe,isFunction:Vs,isMap:_we,isMatch:lV,isNaN:iV,isNull:cwe,isNumber:tV,isObject:M0,isRegExp:pwe,isSet:Iwe,isString:ED,isSymbol:nV,isTypedArray:sV,isUndefined:JW,isWeakMap:Dwe,isWeakSet:Owe,iteratee:DD,keys:ns,last:S4e,lastIndexOf:u4e,map:ap,mapObject:Uwe,matcher:zv,matches:zv,max:TV,memoize:Jwe,methods:mA,min:g4e,mixin:NV,negate:ID,noop:bV,now:Ky,object:O4e,omit:x4e,once:a4e,pairs:Mwe,partial:dm,partition:A4e,pick:IV,pluck:MD,property:_D,propertyOf:zwe,random:WE,range:M4e,reduce:cy,reduceRight:VE,reject:f4e,rest:tv,restArguments:hl,result:Kwe,sample:DV,select:f0,shuffle:v4e,size:C4e,some:GE,sortBy:m4e,sortedIndex:EV,tail:tv,take:dy,tap:Bwe,template:Gwe,templateSettings:qwe,throttle:t4e,times:$we,toArray:_V,toPath:vV,transpose:wA,unescape:Vwe,union:_4e,uniq:bA,unique:bA,uniqueId:Ywe,unzip:wA,values:cm,where:h4e,without:T4e,wrap:r4e,zip:I4e},Symbol.toStringTag,{value:"Module"})),Pa=B$e(lut);var Mx={},Iu={},FI={exports:{}},Px={exports:{}},cte;function Kb(){if(cte)return Px.exports;cte=1;var e=(function(){return this===void 0})();if(e)Px.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:e,propertyIsWritable:function(d,c){var f=Object.getOwnPropertyDescriptor(d,c);return!!(!f||f.writable||f.set)}};else{var t={}.hasOwnProperty,n={}.toString,r={}.constructor.prototype,o=function(d){var c=[];for(var f in d)t.call(d,f)&&c.push(f);return c},i=function(d,c){return{value:d[c]}},a=function(d,c,f){return d[c]=f.value,d},s=function(d){return d},l=function(d){try{return Object(d).constructor.prototype}catch{return r}},u=function(d){try{return n.call(d)==="[object Array]"}catch{return!1}};Px.exports={isArray:u,keys:o,names:o,defineProperty:a,getDescriptor:i,freeze:s,getPrototypeOf:l,isES5:e,propertyIsWritable:function(){return!0}}}return Px.exports}var B2,dte;function Hi(){if(dte)return B2;dte=1;var e={},t=Kb(),n=typeof navigator>"u",r={e:{}},o,i=typeof self<"u"?self:typeof window<"u"?window:typeof Hs<"u"?Hs:B2!==void 0?B2:null;function a(){try{var H=o;return o=null,H.apply(this,arguments)}catch(re){return r.e=re,r}}function s(H){return o=H,a}var l=function(H,re){var X={}.hasOwnProperty;function te(){this.constructor=H,this.constructor$=re;for(var Z in re.prototype)X.call(re.prototype,Z)&&Z.charAt(Z.length-1)!=="$"&&(this[Z+"$"]=re.prototype[Z])}return te.prototype=re.prototype,H.prototype=new te,H.prototype};function u(H){return H==null||H===!0||H===!1||typeof H=="string"||typeof H=="number"}function d(H){return typeof H=="function"||typeof H=="object"&&H!==null}function c(H){return u(H)?new Error(E(H)):H}function f(H,re){var X=H.length,te=new Array(X+1),Z;for(Z=0;Z<X;++Z)te[Z]=H[Z];return te[Z]=re,te}function p(H,re,X){if(t.isES5){var te=Object.getOwnPropertyDescriptor(H,re);if(te!=null)return te.get==null&&te.set==null?te.value:X}else return{}.hasOwnProperty.call(H,re)?H[re]:void 0}function v(H,re,X){if(u(H))return H;var te={value:X,configurable:!0,enumerable:!1,writable:!0};return t.defineProperty(H,re,te),H}function h(H){throw H}var g=(function(){var H=[Array.prototype,Object.prototype,Function.prototype],re=function(Z){for(var le=0;le<H.length;++le)if(H[le]===Z)return!0;return!1};if(t.isES5){var X=Object.getOwnPropertyNames;return function(Z){for(var le=[],ve=Object.create(null);Z!=null&&!re(Z);){var Pe;try{Pe=X(Z)}catch{return le}for(var Ae=0;Ae<Pe.length;++Ae){var he=Pe[Ae];if(!ve[he]){ve[he]=!0;var Ee=Object.getOwnPropertyDescriptor(Z,he);Ee!=null&&Ee.get==null&&Ee.set==null&&le.push(he)}}Z=t.getPrototypeOf(Z)}return le}}else{var te={}.hasOwnProperty;return function(Z){if(re(Z))return[];var le=[];e:for(var ve in Z)if(te.call(Z,ve))le.push(ve);else{for(var Pe=0;Pe<H.length;++Pe)if(te.call(H[Pe],ve))continue e;le.push(ve)}return le}}})(),y=/this\s*\.\s*\S+\s*=/;function m(H){try{if(typeof H=="function"){var re=t.names(H.prototype),X=t.isES5&&re.length>1,te=re.length>0&&!(re.length===1&&re[0]==="constructor"),Z=y.test(H+"")&&t.names(H).length>0;if(X||te||Z)return!0}return!1}catch{return!1}}function b(H){return H}var w=/^[a-z$_][a-z$_0-9]*$/i;function A(H){return w.test(H)}function S(H,re,X){for(var te=new Array(H),Z=0;Z<H;++Z)te[Z]=re+Z+X;return te}function E(H){try{return H+""}catch{return"[no string representation]"}}function D(H){return H!==null&&typeof H=="object"&&typeof H.message=="string"&&typeof H.name=="string"}function _(H){try{v(H,"isOperational",!0)}catch{}}function M(H){return H==null?!1:H instanceof Error.__BluebirdErrorTypes__.OperationalError||H.isOperational===!0}function O(H){return D(H)&&t.propertyIsWritable(H,"stack")}var k=(function(){return"stack"in new Error?function(H){return O(H)?H:new Error(E(H))}:function(H){if(O(H))return H;try{throw new Error(E(H))}catch(re){return re}}})();function R(H){return{}.toString.call(H)}function N(H,re,X){for(var te=t.names(H),Z=0;Z<te.length;++Z){var le=te[Z];if(X(le))try{t.defineProperty(re,le,t.getDescriptor(H,le))}catch{}}}var W=function(H){return t.isArray(H)?H:null};if(typeof Symbol<"u"&&Symbol.iterator){var B=typeof Array.from=="function"?function(H){return Array.from(H)}:function(H){for(var re=[],X=H[Symbol.iterator](),te;!(te=X.next()).done;)re.push(te.value);return re};W=function(H){return t.isArray(H)?H:H!=null&&typeof H[Symbol.iterator]=="function"?B(H):null}}var z=typeof process<"u"&&R(process).toLowerCase()==="[object process]",j=typeof process<"u"&&typeof e<"u";function q(H){return j?e[H]:void 0}function Y(){if(typeof Promise=="function")try{var H=new Promise(function(){});if({}.toString.call(H)==="[object Promise]")return Promise}catch{}}function U(H,re){return H.bind(re)}var F={isClass:m,isIdentifier:A,inheritedDataKeys:g,getDataPropertyOrDefault:p,thrower:h,isArray:t.isArray,asArray:W,notEnumerableProp:v,isPrimitive:u,isObject:d,isError:D,canEvaluate:n,errorObj:r,tryCatch:s,inherits:l,withAppended:f,maybeWrapAsError:c,toFastProperties:b,filledRange:S,toString:E,canAttachTrace:O,ensureErrorObject:k,originatesFromRejection:M,markAsOriginatingFromRejection:_,classString:R,copyDescriptors:N,hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:z,hasEnvVariables:j,env:q,global:i,getNativePromise:Y,domainBind:U};F.isRecentNode=F.isNode&&(function(){var H=process.versions.node.split(".").map(Number);return H[0]===0&&H[1]>10||H[0]>0})(),F.isNode&&F.toFastProperties(process);try{throw new Error}catch(H){F.lastLineError=H}return B2=F,B2}var Nx={exports:{}},UI,fte;function uut(){if(fte)return UI;fte=1;var e=Hi(),t,n=function(){throw new Error(`No async scheduler available
- See http://goo.gl/MqrFmX
- `)},r=e.getNativePromise();if(e.isNode&&typeof MutationObserver>"u"){var o=Hs.setImmediate,i=process.nextTick;t=e.isRecentNode?function(s){o.call(Hs,s)}:function(s){i.call(process,s)}}else if(typeof r=="function"&&typeof r.resolve=="function"){var a=r.resolve();t=function(s){a.then(s)}}else typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova))?t=(function(){var s=document.createElement("div"),l={attributes:!0},u=!1,d=document.createElement("div"),c=new MutationObserver(function(){s.classList.toggle("foo"),u=!1});c.observe(d,l);var f=function(){u||(u=!0,d.classList.toggle("foo"))};return function(v){var h=new MutationObserver(function(){h.disconnect(),v()});h.observe(s,l),f()}})():typeof setImmediate<"u"?t=function(s){setImmediate(s)}:typeof setTimeout<"u"?t=function(s){setTimeout(s,0)}:t=n;return UI=t,UI}var zI,pte;function cut(){if(pte)return zI;pte=1;function e(n,r,o,i,a){for(var s=0;s<a;++s)o[s+i]=n[s+r],n[s+r]=void 0}function t(n){this._capacity=n,this._length=0,this._front=0}return t.prototype._willBeOverCapacity=function(n){return this._capacity<n},t.prototype._pushOne=function(n){var r=this.length();this._checkCapacity(r+1);var o=this._front+r&this._capacity-1;this[o]=n,this._length=r+1},t.prototype.push=function(n,r,o){var i=this.length()+3;if(this._willBeOverCapacity(i)){this._pushOne(n),this._pushOne(r),this._pushOne(o);return}var a=this._front+i-3;this._checkCapacity(i);var s=this._capacity-1;this[a+0&s]=n,this[a+1&s]=r,this[a+2&s]=o,this._length=i},t.prototype.shift=function(){var n=this._front,r=this[n];return this[n]=void 0,this._front=n+1&this._capacity-1,this._length--,r},t.prototype.length=function(){return this._length},t.prototype._checkCapacity=function(n){this._capacity<n&&this._resizeTo(this._capacity<<1)},t.prototype._resizeTo=function(n){var r=this._capacity;this._capacity=n;var o=this._front,i=this._length,a=o+i&r-1;e(this,0,this,r,a)},zI=t,zI}var hte;function dut(){if(hte)return Nx.exports;hte=1;var e;try{throw new Error}catch(l){e=l}var t=uut(),n=cut(),r=Hi();function o(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new n(16),this._normalQueue=new n(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var l=this;this.drainQueues=function(){l._drainQueues()},this._schedule=t}o.prototype.setScheduler=function(l){var u=this._schedule;return this._schedule=l,this._customScheduler=!0,u},o.prototype.hasCustomScheduler=function(){return this._customScheduler},o.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},o.prototype.disableTrampolineIfNecessary=function(){r.hasDevTools&&(this._trampolineEnabled=!1)},o.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},o.prototype.fatalError=function(l,u){u?(process.stderr.write("Fatal "+(l instanceof Error?l.stack:l)+`
- `),process.exit(2)):this.throwLater(l)},o.prototype.throwLater=function(l,u){if(arguments.length===1&&(u=l,l=function(){throw u}),typeof setTimeout<"u")setTimeout(function(){l(u)},0);else try{this._schedule(function(){l(u)})}catch{throw new Error(`No async scheduler available
- See http://goo.gl/MqrFmX
- `)}};function i(l,u,d){this._lateQueue.push(l,u,d),this._queueTick()}function a(l,u,d){this._normalQueue.push(l,u,d),this._queueTick()}function s(l){this._normalQueue._pushOne(l),this._queueTick()}return r.hasDevTools?(o.prototype.invokeLater=function(l,u,d){this._trampolineEnabled?i.call(this,l,u,d):this._schedule(function(){setTimeout(function(){l.call(u,d)},100)})},o.prototype.invoke=function(l,u,d){this._trampolineEnabled?a.call(this,l,u,d):this._schedule(function(){l.call(u,d)})},o.prototype.settlePromises=function(l){this._trampolineEnabled?s.call(this,l):this._schedule(function(){l._settlePromises()})}):(o.prototype.invokeLater=i,o.prototype.invoke=a,o.prototype.settlePromises=s),o.prototype._drainQueue=function(l){for(;l.length()>0;){var u=l.shift();if(typeof u!="function"){u._settlePromises();continue}var d=l.shift(),c=l.shift();u.call(d,c)}},o.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},o.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},o.prototype._reset=function(){this._isTickUsed=!1},Nx.exports=o,Nx.exports.firstLineError=e,Nx.exports}var $I,gte;function p0(){if(gte)return $I;gte=1;var e=Kb(),t=e.freeze,n=Hi(),r=n.inherits,o=n.notEnumerableProp;function i(y,m){function b(w){if(!(this instanceof b))return new b(w);o(this,"message",typeof w=="string"?w:m),o(this,"name",y),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return r(b,Error),b}var a,s,l=i("Warning","warning"),u=i("CancellationError","cancellation error"),d=i("TimeoutError","timeout error"),c=i("AggregateError","aggregate error");try{a=TypeError,s=RangeError}catch{a=i("TypeError","type error"),s=i("RangeError","range error")}for(var f="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),p=0;p<f.length;++p)typeof Array.prototype[f[p]]=="function"&&(c.prototype[f[p]]=Array.prototype[f[p]]);e.defineProperty(c.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),c.prototype.isOperational=!0;var v=0;c.prototype.toString=function(){var y=Array(v*4+1).join(" "),m=`
- `+y+`AggregateError of:
- `;v++,y=Array(v*4+1).join(" ");for(var b=0;b<this.length;++b){for(var w=this[b]===this?"[Circular AggregateError]":this[b]+"",A=w.split(`
- `),S=0;S<A.length;++S)A[S]=y+A[S];w=A.join(`
- `),m+=w+`
- `}return v--,m};function h(y){if(!(this instanceof h))return new h(y);o(this,"name","OperationalError"),o(this,"message",y),this.cause=y,this.isOperational=!0,y instanceof Error?(o(this,"message",y.message),o(this,"stack",y.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}r(h,Error);var g=Error.__BluebirdErrorTypes__;return g||(g=t({CancellationError:u,TimeoutError:d,OperationalError:h,RejectionError:h,AggregateError:c}),e.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),$I={Error,TypeError:a,RangeError:s,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:l},$I}var jI,vte;function fut(){return vte||(vte=1,jI=function(e,t){var n=Hi(),r=n.errorObj,o=n.isObject;function i(c,f){if(o(c)){if(c instanceof e)return c;var p=s(c);if(p===r){f&&f._pushContext();var v=e.reject(p.e);return f&&f._popContext(),v}else if(typeof p=="function"){if(u(c)){var v=new e(t);return c._then(v._fulfill,v._reject,void 0,v,null),v}return d(c,p,f)}}return c}function a(c){return c.then}function s(c){try{return a(c)}catch(f){return r.e=f,r}}var l={}.hasOwnProperty;function u(c){try{return l.call(c,"_promise0")}catch{return!1}}function d(c,f,p){var v=new e(t),h=v;p&&p._pushContext(),v._captureStackTrace(),p&&p._popContext();var g=!0,y=n.tryCatch(f).call(c,m,b);g=!1,v&&y===r&&(v._rejectCallback(y.e,!0,!0),v=null);function m(w){v&&(v._resolveCallback(w),v=null)}function b(w){v&&(v._rejectCallback(w,g,!0),v=null)}return h}return i}),jI}var HI,mte;function put(){return mte||(mte=1,HI=function(e,t,n,r,o){var i=Hi();i.isArray;function a(l){switch(l){case-2:return[];case-3:return{}}}function s(l){var u=this._promise=new e(t);l instanceof e&&u._propagateFrom(l,3),u._setOnCancel(this),this._values=l,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return i.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function l(u,d){var c=n(this._values,this._promise);if(c instanceof e){c=c._target();var f=c._bitField;if(this._values=c,(f&50397184)===0)return this._promise._setAsyncGuaranteed(),c._then(l,this._reject,void 0,this,d);if((f&33554432)!==0)c=c._value();else return(f&16777216)!==0?this._reject(c._reason()):this._cancel()}if(c=i.asArray(c),c===null){var p=r("expecting an array or an iterable object but got "+i.classString(c)).reason();this._promise._rejectCallback(p,!1);return}if(c.length===0){d===-5?this._resolveEmptyArray():this._resolve(a(d));return}this._iterate(c)},s.prototype._iterate=function(l){var u=this.getActualLength(l.length);this._length=u,this._values=this.shouldCopyValues()?new Array(u):this._values;for(var d=this._promise,c=!1,f=null,p=0;p<u;++p){var v=n(l[p],d);v instanceof e?(v=v._target(),f=v._bitField):f=null,c?f!==null&&v.suppressUnhandledRejections():f!==null?(f&50397184)===0?(v._proxy(this,p),this._values[p]=v):(f&33554432)!==0?c=this._promiseFulfilled(v._value(),p):(f&16777216)!==0?c=this._promiseRejected(v._reason(),p):c=this._promiseCancelled(p):c=this._promiseFulfilled(v,p)}c||d._setAsyncGuaranteed()},s.prototype._isResolved=function(){return this._values===null},s.prototype._resolve=function(l){this._values=null,this._promise._fulfill(l)},s.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},s.prototype._reject=function(l){this._values=null,this._promise._rejectCallback(l,!1)},s.prototype._promiseFulfilled=function(l,u){this._values[u]=l;var d=++this._totalResolved;return d>=this._length?(this._resolve(this._values),!0):!1},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(l){return this._totalResolved++,this._reject(l),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var l=this._values;if(this._cancel(),l instanceof e)l.cancel();else for(var u=0;u<l.length;++u)l[u]instanceof e&&l[u].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(l){return l},s}),HI}var WI,yte;function hut(){return yte||(yte=1,WI=function(e){var t=!1,n=[];e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){};function r(){this._trace=new r.CapturedTrace(i())}r.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(this._trace!==void 0){var a=n.pop(),s=a._promiseCreated;return a._promiseCreated=null,s}return null};function o(){if(t)return new r}function i(){var a=n.length-1;if(a>=0)return n[a]}return r.CapturedTrace=null,r.create=o,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var a=e.prototype._pushContext,s=e.prototype._popContext,l=e._peekContext,u=e.prototype._peekContext,d=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=a,e.prototype._popContext=s,e._peekContext=l,e.prototype._peekContext=u,e.prototype._promiseCreated=d,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var c=this._peekContext();c&&c._promiseCreated==null&&(c._promiseCreated=this)}},r}),WI}var VI,bte;function gut(){return bte||(bte=1,VI=function(e,t){var n=e._getDomain,r=e._async,o=p0().Warning,i=Hi(),a=i.canAttachTrace,s,l,u=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,d=/\((?:timers\.js):\d+:\d+\)/,c=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,f=null,p=null,v=!1,h,g=!!(i.env("BLUEBIRD_DEBUG")!=0&&(i.env("BLUEBIRD_DEBUG")||i.env("NODE_ENV")==="development")),y=!!(i.env("BLUEBIRD_WARNINGS")!=0&&(g||i.env("BLUEBIRD_WARNINGS"))),m=!!(i.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(g||i.env("BLUEBIRD_LONG_STACK_TRACES"))),b=i.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(y||!!i.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var ze=this._target();ze._bitField=ze._bitField&-1048577|524288},e.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),r.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){he("rejectionHandled",s,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ze=this._settledValue();this._setUnhandledRejectionIsNotified(),he("unhandledRejection",l,ze,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},e.prototype._warn=function(ze,Ne,Re){return re(ze,Ne,Re||this)},e.onPossiblyUnhandledRejection=function(ze){var Ne=n();l=typeof ze=="function"?Ne===null?ze:i.domainBind(Ne,ze):void 0},e.onUnhandledRejectionHandled=function(ze){var Ne=n();s=typeof ze=="function"?Ne===null?ze:i.domainBind(Ne,ze):void 0};var w=function(){};e.longStackTraces=function(){if(r.haveItemsQueued()&&!Fe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
- See http://goo.gl/MqrFmX
- `);if(!Fe.longStackTraces&&me()){var ze=e.prototype._captureStackTrace,Ne=e.prototype._attachExtraTrace;Fe.longStackTraces=!0,w=function(){if(r.haveItemsQueued()&&!Fe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
- See http://goo.gl/MqrFmX
- `);e.prototype._captureStackTrace=ze,e.prototype._attachExtraTrace=Ne,t.deactivateLongStackTraces(),r.enableTrampoline(),Fe.longStackTraces=!1},e.prototype._captureStackTrace=Y,e.prototype._attachExtraTrace=U,t.activateLongStackTraces(),r.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return Fe.longStackTraces&&me()};var A=(function(){try{if(typeof CustomEvent=="function"){var ze=new CustomEvent("CustomEvent");return i.global.dispatchEvent(ze),function(Ne,Re){var gt=new CustomEvent(Ne.toLowerCase(),{detail:Re,cancelable:!0});return!i.global.dispatchEvent(gt)}}else if(typeof Event=="function"){var ze=new Event("CustomEvent");return i.global.dispatchEvent(ze),function(Re,gt){var Bt=new Event(Re.toLowerCase(),{cancelable:!0});return Bt.detail=gt,!i.global.dispatchEvent(Bt)}}else{var ze=document.createEvent("CustomEvent");return ze.initCustomEvent("testingtheevent",!1,!0,{}),i.global.dispatchEvent(ze),function(Re,gt){var Bt=document.createEvent("CustomEvent");return Bt.initCustomEvent(Re.toLowerCase(),!1,!0,gt),!i.global.dispatchEvent(Bt)}}}catch{}return function(){return!1}})(),S=(function(){return i.isNode?function(){return process.emit.apply(process,arguments)}:i.global?function(ze){var Ne="on"+ze.toLowerCase(),Re=i.global[Ne];return Re?(Re.apply(i.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}})();function E(ze,Ne){return{promise:Ne}}var D={promiseCreated:E,promiseFulfilled:E,promiseRejected:E,promiseResolved:E,promiseCancelled:E,promiseChained:function(ze,Ne,Re){return{promise:Ne,child:Re}},warning:function(ze,Ne){return{warning:Ne}},unhandledRejection:function(ze,Ne,Re){return{reason:Ne,promise:Re}},rejectionHandled:E},_=function(ze){var Ne=!1;try{Ne=S.apply(null,arguments)}catch(gt){r.throwLater(gt),Ne=!0}var Re=!1;try{Re=A(ze,D[ze].apply(null,arguments))}catch(gt){r.throwLater(gt),Re=!0}return Re||Ne};e.config=function(ze){if(ze=Object(ze),"longStackTraces"in ze&&(ze.longStackTraces?e.longStackTraces():!ze.longStackTraces&&e.hasLongStackTraces()&&w()),"warnings"in ze){var Ne=ze.warnings;Fe.warnings=!!Ne,b=Fe.warnings,i.isObject(Ne)&&"wForgottenReturn"in Ne&&(b=!!Ne.wForgottenReturn)}if("cancellation"in ze&&ze.cancellation&&!Fe.cancellation){if(r.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=W,e.prototype._propagateFrom=B,e.prototype._onCancel=R,e.prototype._setOnCancel=N,e.prototype._attachCancellationCallback=k,e.prototype._execute=O,j=B,Fe.cancellation=!0}return"monitoring"in ze&&(ze.monitoring&&!Fe.monitoring?(Fe.monitoring=!0,e.prototype._fireEvent=_):!ze.monitoring&&Fe.monitoring&&(Fe.monitoring=!1,e.prototype._fireEvent=M)),e};function M(){return!1}e.prototype._fireEvent=M,e.prototype._execute=function(ze,Ne,Re){try{ze(Ne,Re)}catch(gt){return gt}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(ze){},e.prototype._attachCancellationCallback=function(ze){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(ze,Ne){};function O(ze,Ne,Re){var gt=this;try{ze(Ne,Re,function(Bt){if(typeof Bt!="function")throw new TypeError("onCancel must be a function, got: "+i.toString(Bt));gt._attachCancellationCallback(Bt)})}catch(Bt){return Bt}}function k(ze){if(!this._isCancellable())return this;var Ne=this._onCancel();Ne!==void 0?i.isArray(Ne)?Ne.push(ze):this._setOnCancel([Ne,ze]):this._setOnCancel(ze)}function R(){return this._onCancelField}function N(ze){this._onCancelField=ze}function W(){this._cancellationParent=void 0,this._onCancelField=void 0}function B(ze,Ne){if((Ne&1)!==0){this._cancellationParent=ze;var Re=ze._branchesRemainingToCancel;Re===void 0&&(Re=0),ze._branchesRemainingToCancel=Re+1}(Ne&2)!==0&&ze._isBound()&&this._setBoundTo(ze._boundTo)}function z(ze,Ne){(Ne&2)!==0&&ze._isBound()&&this._setBoundTo(ze._boundTo)}var j=z;function q(){var ze=this._boundTo;return ze!==void 0&&ze instanceof e?ze.isFulfilled()?ze.value():void 0:ze}function Y(){this._trace=new Be(this._peekContext())}function U(ze,Ne){if(a(ze)){var Re=this._trace;if(Re!==void 0&&Ne&&(Re=Re._parent),Re!==void 0)Re.attachExtraTrace(ze);else if(!ze.__stackCleaned__){var gt=Pe(ze);i.notEnumerableProp(ze,"stack",gt.message+`
- `+gt.stack.join(`
- `)),i.notEnumerableProp(ze,"__stackCleaned__",!0)}}}function F(ze,Ne,Re,gt,Bt){if(ze===void 0&&Ne!==null&&b){if(Bt!==void 0&&Bt._returnedNonUndefined()||(gt._bitField&65535)===0)return;Re&&(Re=Re+" ");var Lt="",an="";if(Ne._trace){for(var Kt=Ne._trace.stack.split(`
- `),Ht=le(Kt),pt=Ht.length-1;pt>=0;--pt){var Dt=Ht[pt];if(!d.test(Dt)){var dt=Dt.match(c);dt&&(Lt="at "+dt[1]+":"+dt[2]+":"+dt[3]+" ");break}}if(Ht.length>0){for(var it=Ht[0],pt=0;pt<Kt.length;++pt)if(Kt[pt]===it){pt>0&&(an=`
- `+Kt[pt-1]);break}}}var de="a promise was created in a "+Re+"handler "+Lt+"but was not returned from it, see http://goo.gl/rRqMUw"+an;gt._warn(de,!0,Ne)}}function H(ze,Ne){var Re=ze+" is deprecated and will be removed in a future version.";return Ne&&(Re+=" Use "+Ne+" instead."),re(Re)}function re(ze,Ne,Re){if(Fe.warnings){var gt=new o(ze),Bt;if(Ne)Re._attachExtraTrace(gt);else if(Fe.longStackTraces&&(Bt=e._peekContext()))Bt.attachExtraTrace(gt);else{var Lt=Pe(gt);gt.stack=Lt.message+`
- `+Lt.stack.join(`
- `)}_("warning",gt)||Ae(gt,"",!0)}}function X(ze,Ne){for(var Re=0;Re<Ne.length-1;++Re)Ne[Re].push("From previous event:"),Ne[Re]=Ne[Re].join(`
- `);return Re<Ne.length&&(Ne[Re]=Ne[Re].join(`
- `)),ze+`
- `+Ne.join(`
- `)}function te(ze){for(var Ne=0;Ne<ze.length;++Ne)(ze[Ne].length===0||Ne+1<ze.length&&ze[Ne][0]===ze[Ne+1][0])&&(ze.splice(Ne,1),Ne--)}function Z(ze){for(var Ne=ze[0],Re=1;Re<ze.length;++Re){for(var gt=ze[Re],Bt=Ne.length-1,Lt=Ne[Bt],an=-1,Kt=gt.length-1;Kt>=0;--Kt)if(gt[Kt]===Lt){an=Kt;break}for(var Kt=an;Kt>=0;--Kt){var Ht=gt[Kt];if(Ne[Bt]===Ht)Ne.pop(),Bt--;else break}Ne=gt}}function le(ze){for(var Ne=[],Re=0;Re<ze.length;++Re){var gt=ze[Re],Bt=gt===" (No stack trace)"||f.test(gt),Lt=Bt&&De(gt);Bt&&!Lt&&(v&>.charAt(0)!==" "&&(gt=" "+gt),Ne.push(gt))}return Ne}function ve(ze){for(var Ne=ze.stack.replace(/\s+$/g,"").split(`
- `),Re=0;Re<Ne.length;++Re){var gt=Ne[Re];if(gt===" (No stack trace)"||f.test(gt))break}return Re>0&&ze.name!="SyntaxError"&&(Ne=Ne.slice(Re)),Ne}function Pe(ze){var Ne=ze.stack,Re=ze.toString();return Ne=typeof Ne=="string"&&Ne.length>0?ve(ze):[" (No stack trace)"],{message:Re,stack:ze.name=="SyntaxError"?Ne:le(Ne)}}function Ae(ze,Ne,Re){if(typeof console<"u"){var gt;if(i.isObject(ze)){var Bt=ze.stack;gt=Ne+p(Bt,ze)}else gt=Ne+String(ze);typeof h=="function"?h(gt,Re):(typeof console.log=="function"||typeof console.log=="object")&&console.log(gt)}}function he(ze,Ne,Re,gt){var Bt=!1;try{typeof Ne=="function"&&(Bt=!0,ze==="rejectionHandled"?Ne(gt):Ne(Re,gt))}catch(Lt){r.throwLater(Lt)}ze==="unhandledRejection"?!_(ze,Re,gt)&&!Bt&&Ae(Re,"Unhandled rejection "):_(ze,gt)}function Ee(ze){var Ne;if(typeof ze=="function")Ne="[function "+(ze.name||"anonymous")+"]";else{Ne=ze&&typeof ze.toString=="function"?ze.toString():i.toString(ze);var Re=/\[object [a-zA-Z0-9$_]+\]/;if(Re.test(Ne))try{var gt=JSON.stringify(ze);Ne=gt}catch{}Ne.length===0&&(Ne="(empty array)")}return"(<"+Q(Ne)+">, no stack trace)"}function Q(ze){var Ne=41;return ze.length<Ne?ze:ze.substr(0,Ne-3)+"..."}function me(){return typeof Me=="function"}var De=function(){return!1},pe=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function ie(ze){var Ne=ze.match(pe);if(Ne)return{fileName:Ne[1],line:parseInt(Ne[2],10)}}function ue(ze,Ne){if(me()){for(var Re=ze.stack.split(`
- `),gt=Ne.stack.split(`
- `),Bt=-1,Lt=-1,an,Kt,Ht=0;Ht<Re.length;++Ht){var pt=ie(Re[Ht]);if(pt){an=pt.fileName,Bt=pt.line;break}}for(var Ht=0;Ht<gt.length;++Ht){var pt=ie(gt[Ht]);if(pt){Kt=pt.fileName,Lt=pt.line;break}}Bt<0||Lt<0||!an||!Kt||an!==Kt||Bt>=Lt||(De=function(Dt){if(u.test(Dt))return!0;var dt=ie(Dt);return!!(dt&&dt.fileName===an&&Bt<=dt.line&&dt.line<=Lt)})}}function Be(ze){this._parent=ze,this._promisesCreated=0;var Ne=this._length=1+(ze===void 0?0:ze._length);Me(this,Be),Ne>32&&this.uncycle()}i.inherits(Be,Error),t.CapturedTrace=Be,Be.prototype.uncycle=function(){var ze=this._length;if(!(ze<2)){for(var Ne=[],Re={},gt=0,Bt=this;Bt!==void 0;++gt)Ne.push(Bt),Bt=Bt._parent;ze=this._length=gt;for(var gt=ze-1;gt>=0;--gt){var Lt=Ne[gt].stack;Re[Lt]===void 0&&(Re[Lt]=gt)}for(var gt=0;gt<ze;++gt){var an=Ne[gt].stack,Kt=Re[an];if(Kt!==void 0&&Kt!==gt){Kt>0&&(Ne[Kt-1]._parent=void 0,Ne[Kt-1]._length=1),Ne[gt]._parent=void 0,Ne[gt]._length=1;var Ht=gt>0?Ne[gt-1]:this;Kt<ze-1?(Ht._parent=Ne[Kt+1],Ht._parent.uncycle(),Ht._length=Ht._parent._length+1):(Ht._parent=void 0,Ht._length=1);for(var pt=Ht._length+1,Dt=gt-2;Dt>=0;--Dt)Ne[Dt]._length=pt,pt++;return}}}},Be.prototype.attachExtraTrace=function(ze){if(!ze.__stackCleaned__){this.uncycle();for(var Ne=Pe(ze),Re=Ne.message,gt=[Ne.stack],Bt=this;Bt!==void 0;)gt.push(le(Bt.stack.split(`
- `))),Bt=Bt._parent;Z(gt),te(gt),i.notEnumerableProp(ze,"stack",X(Re,gt)),i.notEnumerableProp(ze,"__stackCleaned__",!0)}};var Me=(function(){var Ne=/^\s*at\s*/,Re=function(an,Kt){return typeof an=="string"?an:Kt.name!==void 0&&Kt.message!==void 0?Kt.toString():Ee(Kt)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,f=Ne,p=Re;var gt=Error.captureStackTrace;return De=function(an){return u.test(an)},function(an,Kt){Error.stackTraceLimit+=6,gt(an,Kt),Error.stackTraceLimit-=6}}var Bt=new Error;if(typeof Bt.stack=="string"&&Bt.stack.split(`
- `)[0].indexOf("stackDetection@")>=0)return f=/@/,p=Re,v=!0,function(Kt){Kt.stack=new Error().stack};var Lt;try{throw new Error}catch(an){Lt="stack"in an}return!("stack"in Bt)&&Lt&&typeof Error.stackTraceLimit=="number"?(f=Ne,p=Re,function(Kt){Error.stackTraceLimit+=6;try{throw new Error}catch(Ht){Kt.stack=Ht.stack}Error.stackTraceLimit-=6}):(p=function(an,Kt){return typeof an=="string"?an:(typeof Kt=="object"||typeof Kt=="function")&&Kt.name!==void 0&&Kt.message!==void 0?Kt.toString():Ee(Kt)},null)})();typeof console<"u"&&typeof console.warn<"u"&&(h=function(ze){console.warn(ze)},i.isNode&&process.stderr.isTTY?h=function(ze,Ne){var Re=Ne?"\x1B[33m":"\x1B[31m";console.warn(Re+ze+`\x1B[0m
- `)}:!i.isNode&&typeof new Error().stack=="string"&&(h=function(ze,Ne){console.warn("%c"+ze,Ne?"color: darkorange":"color: red")}));var Fe={warnings:y,longStackTraces:!1,cancellation:!1,monitoring:!1};return m&&e.longStackTraces(),{longStackTraces:function(){return Fe.longStackTraces},warnings:function(){return Fe.warnings},cancellation:function(){return Fe.cancellation},monitoring:function(){return Fe.monitoring},propagateFromFunction:function(){return j},boundValueFunction:function(){return q},checkForgottenReturns:F,setBounds:ue,warn:re,deprecated:H,CapturedTrace:Be,fireDomEvent:A,fireGlobalEvent:S}}),VI}var qI,wte;function vut(){return wte||(wte=1,qI=function(e,t){var n=Hi(),r=e.CancellationError,o=n.errorObj;function i(c,f,p){this.promise=c,this.type=f,this.handler=p,this.called=!1,this.cancelPromise=null}i.prototype.isFinallyHandler=function(){return this.type===0};function a(c){this.finallyHandler=c}a.prototype._resultCancelled=function(){s(this.finallyHandler)};function s(c,f){return c.cancelPromise!=null?(arguments.length>1?c.cancelPromise._reject(f):c.cancelPromise._cancel(),c.cancelPromise=null,!0):!1}function l(){return d.call(this,this.promise._target()._settledValue())}function u(c){if(!s(this,c))return o.e=c,o}function d(c){var f=this.promise,p=this.handler;if(!this.called){this.called=!0;var v=this.isFinallyHandler()?p.call(f._boundValue()):p.call(f._boundValue(),c);if(v!==void 0){f._setReturnedNonUndefined();var h=t(v,f);if(h instanceof e){if(this.cancelPromise!=null)if(h._isCancelled()){var g=new r("late cancellation observer");return f._attachExtraTrace(g),o.e=g,o}else h.isPending()&&h._attachCancellationCallback(new a(this));return h._then(l,u,void 0,this,void 0)}}}return f.isRejected()?(s(this),o.e=c,o):(s(this),c)}return e.prototype._passThrough=function(c,f,p,v){return typeof c!="function"?this.then():this._then(p,v,void 0,new i(this,f,c),void 0)},e.prototype.lastly=e.prototype.finally=function(c){return this._passThrough(c,0,d,d)},e.prototype.tap=function(c){return this._passThrough(c,1,d)},i}),qI}var GI,Ate;function mut(){return Ate||(Ate=1,GI=function(e){var t=Hi(),n=Kb().keys,r=t.tryCatch,o=t.errorObj;function i(a,s,l){return function(u){var d=l._boundValue();e:for(var c=0;c<a.length;++c){var f=a[c];if(f===Error||f!=null&&f.prototype instanceof Error){if(u instanceof f)return r(s).call(d,u)}else if(typeof f=="function"){var p=r(f).call(d,u);if(p===o)return p;if(p)return r(s).call(d,u)}else if(t.isObject(u)){for(var v=n(f),h=0;h<v.length;++h){var g=v[h];if(f[g]!=u[g])continue e}return r(s).call(d,u)}}return e}}return i}),GI}var KI,Cte;function N4e(){if(Cte)return KI;Cte=1;var e=Hi(),t=e.maybeWrapAsError,n=p0(),r=n.OperationalError,o=Kb();function i(u){return u instanceof Error&&o.getPrototypeOf(u)===Error.prototype}var a=/^(?:name|message|stack|cause)$/;function s(u){var d;if(i(u)){d=new r(u),d.name=u.name,d.message=u.message,d.stack=u.stack;for(var c=o.keys(u),f=0;f<c.length;++f){var p=c[f];a.test(p)||(d[p]=u[p])}return d}return e.markAsOriginatingFromRejection(u),u}function l(u,d){return function(c,f){if(u!==null){if(c){var p=s(t(c));u._attachExtraTrace(p),u._reject(p)}else if(!d)u._fulfill(f);else{for(var v=arguments.length,h=new Array(Math.max(v-1,0)),g=1;g<v;++g)h[g-1]=arguments[g];u._fulfill(h)}u=null}}}return KI=l,KI}var YI,xte;function yut(){return xte||(xte=1,YI=function(e,t,n,r,o){var i=Hi(),a=i.tryCatch;e.method=function(s){if(typeof s!="function")throw new e.TypeError("expecting a function but got "+i.classString(s));return function(){var l=new e(t);l._captureStackTrace(),l._pushContext();var u=a(s).apply(this,arguments),d=l._popContext();return o.checkForgottenReturns(u,d,"Promise.method",l),l._resolveFromSyncValue(u),l}},e.attempt=e.try=function(s){if(typeof s!="function")return r("expecting a function but got "+i.classString(s));var l=new e(t);l._captureStackTrace(),l._pushContext();var u;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var d=arguments[1],c=arguments[2];u=i.isArray(d)?a(s).apply(c,d):a(s).call(c,d)}else u=a(s)();var f=l._popContext();return o.checkForgottenReturns(u,f,"Promise.try",l),l._resolveFromSyncValue(u),l},e.prototype._resolveFromSyncValue=function(s){s===i.errorObj?this._rejectCallback(s.e,!1):this._resolveCallback(s,!0)}}),YI}var QI,Ste;function but(){return Ste||(Ste=1,QI=function(e,t,n,r){var o=!1,i=function(u,d){this._reject(d)},a=function(u,d){d.promiseRejectionQueued=!0,d.bindingPromise._then(i,i,null,this,u)},s=function(u,d){(this._bitField&50397184)===0&&this._resolveCallback(d.target)},l=function(u,d){d.promiseRejectionQueued||this._reject(u)};e.prototype.bind=function(u){o||(o=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var d=n(u),c=new e(t);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(d),d instanceof e){var p={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:d};f._then(t,a,void 0,c,p),d._then(s,l,void 0,c,p),c._setOnCancel(d)}else c._resolveCallback(f);return c},e.prototype._setBoundTo=function(u){u!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=u):this._bitField=this._bitField&-2097153},e.prototype._isBound=function(){return(this._bitField&2097152)===2097152},e.bind=function(u,d){return e.resolve(d).bind(u)}}),QI}var ZI,Ete;function wut(){return Ete||(Ete=1,ZI=function(e,t,n,r){var o=Hi(),i=o.tryCatch,a=o.errorObj,s=e._async;e.prototype.break=e.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var l=this,u=l;l._isCancellable();){if(!l._cancelBy(u)){u._isFollowing()?u._followee().cancel():u._cancelBranched();break}var d=l._cancellationParent;if(d==null||!d._isCancellable()){l._isFollowing()?l._followee().cancel():l._cancelBranched();break}else l._isFollowing()&&l._followee().cancel(),l._setWillBeCancelled(),u=l,l=d}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(l){return l===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),s.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(l,u){if(o.isArray(l))for(var d=0;d<l.length;++d)this._doInvokeOnCancel(l[d],u);else if(l!==void 0)if(typeof l=="function"){if(!u){var c=i(l).call(this._boundValue());c===a&&(this._attachExtraTrace(c.e),s.throwLater(c.e))}}else l._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var l=this._onCancel();this._unsetOnCancel(),s.invoke(this._doInvokeOnCancel,this,l)},e.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}),ZI}var XI,kte;function Aut(){return kte||(kte=1,XI=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(r){return r instanceof e&&r.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:r},void 0)},e.prototype.throw=e.prototype.thenThrow=function(r){return this._then(n,void 0,void 0,{reason:r},void 0)},e.prototype.catchThrow=function(r){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:r},void 0);var o=arguments[1],i=function(){throw o};return this.caught(r,i)},e.prototype.catchReturn=function(r){if(arguments.length<=1)return r instanceof e&&r.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:r},void 0);var o=arguments[1];o instanceof e&&o.suppressUnhandledRejections();var i=function(){return o};return this.caught(r,i)}}),XI}var JI,Tte;function Cut(){return Tte||(Tte=1,JI=function(e){function t(l){l!==void 0?(l=l._target(),this._bitField=l._bitField,this._settledValueField=l._isFateSealed()?l._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
- See http://goo.gl/MqrFmX
- `);return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
- See http://goo.gl/MqrFmX
- `);return this._settledValue()},o=t.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},i=t.prototype.isRejected=function(){return(this._bitField&16777216)!==0},a=t.prototype.isPending=function(){return(this._bitField&50397184)===0},s=t.prototype.isResolved=function(){return(this._bitField&50331648)!==0};t.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},e.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return i.call(this._target())},e.prototype.isFulfilled=function(){return o.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var l=this._target();return l._unsetRejectionIsUnhandled(),r.call(l)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}),JI}var eO,_te;function xut(){return _te||(_te=1,eO=function(e,t,n,r,o,i){var a=Hi(),s=a.canEvaluate,l=a.tryCatch,u=a.errorObj,d;if(s){for(var c=function(m){return new Function("value","holder",`
- 'use strict';
- holder.pIndex = value;
- holder.checkFulfillment(this);
- `.replace(/Index/g,m))},f=function(m){return new Function("promise","holder",`
- 'use strict';
- holder.pIndex = promise;
- `.replace(/Index/g,m))},p=function(m){for(var b=new Array(m),w=0;w<b.length;++w)b[w]="this.p"+(w+1);var A=b.join(" = ")+" = null;",S=`var promise;
- `+b.map(function(M){return`
- promise = `+M+`;
- if (promise instanceof Promise) {
- promise.cancel();
- }
- `}).join(`
- `),E=b.join(", "),D="Holder$"+m,_=`return function(tryCatch, errorObj, Promise, async) {
- 'use strict';
- function [TheName](fn) {
- [TheProperties]
- this.fn = fn;
- this.asyncNeeded = true;
- this.now = 0;
- }
-
- [TheName].prototype._callFunction = function(promise) {
- promise._pushContext();
- var ret = tryCatch(this.fn)([ThePassedArguments]);
- promise._popContext();
- if (ret === errorObj) {
- promise._rejectCallback(ret.e, false);
- } else {
- promise._resolveCallback(ret);
- }
- };
-
- [TheName].prototype.checkFulfillment = function(promise) {
- var now = ++this.now;
- if (now === [TheTotal]) {
- if (this.asyncNeeded) {
- async.invoke(this._callFunction, this, promise);
- } else {
- this._callFunction(promise);
- }
-
- }
- };
-
- [TheName].prototype._resultCancelled = function() {
- [CancellationCode]
- };
-
- return [TheName];
- }(tryCatch, errorObj, Promise, async);
- `;return _=_.replace(/\[TheName\]/g,D).replace(/\[TheTotal\]/g,m).replace(/\[ThePassedArguments\]/g,E).replace(/\[TheProperties\]/g,A).replace(/\[CancellationCode\]/g,S),new Function("tryCatch","errorObj","Promise","async",_)(l,u,e,o)},v=[],h=[],g=[],y=0;y<8;++y)v.push(p(y+1)),h.push(c(y+1)),g.push(f(y+1));d=function(m){this._reject(m)}}e.join=function(){var m=arguments.length-1,b;if(m>0&&typeof arguments[m]=="function"&&(b=arguments[m],m<=8&&s)){var N=new e(r);N._captureStackTrace();for(var w=v[m-1],A=new w(b),S=h,E=0;E<m;++E){var D=n(arguments[E],N);if(D instanceof e){D=D._target();var _=D._bitField;(_&50397184)===0?(D._then(S[E],d,void 0,N,A),g[E](D,A),A.asyncNeeded=!1):(_&33554432)!==0?S[E].call(N,D._value(),A):(_&16777216)!==0?N._reject(D._reason()):N._cancel()}else S[E].call(N,D,A)}if(!N._isFateSealed()){if(A.asyncNeeded){var M=i();M!==null&&(A.fn=a.domainBind(M,A.fn))}N._setAsyncGuaranteed(),N._setOnCancel(A)}return N}for(var O=arguments.length,k=new Array(O),R=0;R<O;++R)k[R]=arguments[R];b&&k.pop();var N=new t(k).promise();return b!==void 0?N.spread(b):N}}),eO}var tO,Dte;function Sut(){return Dte||(Dte=1,tO=function(e,t,n,r,o,i){var a=e._getDomain,s=Hi(),l=s.tryCatch,u=s.errorObj,d=e._async;function c(p,v,h,g){this.constructor$(p),this._promise._captureStackTrace();var y=a();this._callback=y===null?v:s.domainBind(y,v),this._preservedValues=g===o?new Array(this.length()):null,this._limit=h,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}s.inherits(c,t),c.prototype._asyncInit=function(){this._init$(void 0,-2)},c.prototype._init=function(){},c.prototype._promiseFulfilled=function(p,v){var h=this._values,g=this.length(),y=this._preservedValues,m=this._limit;if(v<0){if(v=v*-1-1,h[v]=p,m>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(m>=1&&this._inFlight>=m)return h[v]=p,this._queue.push(v),!1;y!==null&&(y[v]=p);var b=this._promise,w=this._callback,A=b._boundValue();b._pushContext();var S=l(w).call(A,p,v,g),E=b._popContext();if(i.checkForgottenReturns(S,E,y!==null?"Promise.filter":"Promise.map",b),S===u)return this._reject(S.e),!0;var D=r(S,this._promise);if(D instanceof e){D=D._target();var _=D._bitField;if((_&50397184)===0)return m>=1&&this._inFlight++,h[v]=D,D._proxy(this,(v+1)*-1),!1;if((_&33554432)!==0)S=D._value();else return(_&16777216)!==0?(this._reject(D._reason()),!0):(this._cancel(),!0)}h[v]=S}var M=++this._totalResolved;return M>=g?(y!==null?this._filter(h,y):this._resolve(h),!0):!1},c.prototype._drainQueue=function(){for(var p=this._queue,v=this._limit,h=this._values;p.length>0&&this._inFlight<v;){if(this._isResolved())return;var g=p.pop();this._promiseFulfilled(h[g],g)}},c.prototype._filter=function(p,v){for(var h=v.length,g=new Array(h),y=0,m=0;m<h;++m)p[m]&&(g[y++]=v[m]);g.length=y,this._resolve(g)},c.prototype.preservedValues=function(){return this._preservedValues};function f(p,v,h,g){if(typeof v!="function")return n("expecting a function but got "+s.classString(v));var y=0;if(h!==void 0)if(typeof h=="object"&&h!==null){if(typeof h.concurrency!="number")return e.reject(new TypeError("'concurrency' must be a number but it is "+s.classString(h.concurrency)));y=h.concurrency}else return e.reject(new TypeError("options argument must be an object but it is "+s.classString(h)));return y=typeof y=="number"&&isFinite(y)&&y>=1?y:0,new c(p,v,y,g).promise()}e.prototype.map=function(p,v){return f(this,p,v,null)},e.map=function(p,v,h,g){return f(p,v,h,g)}}),tO}var nO,Ite;function Eut(){if(Ite)return nO;Ite=1;var e=Object.create;if(e){var t=e(null),n=e(null);t[" size"]=n[" size"]=0}return nO=function(r){var o=Hi(),i=o.canEvaluate,a=o.isIdentifier,s,l;{var u=function(g){return new Function("ensureMethod",`
- return function(obj) {
- 'use strict'
- var len = this.length;
- ensureMethod(obj, 'methodName');
- switch(len) {
- case 1: return obj.methodName(this[0]);
- case 2: return obj.methodName(this[0], this[1]);
- case 3: return obj.methodName(this[0], this[1], this[2]);
- case 0: return obj.methodName();
- default:
- return obj.methodName.apply(obj, this);
- }
- };
- `.replace(/methodName/g,g))(f)},d=function(g){return new Function("obj",`
- 'use strict';
- return obj.propertyName;
- `.replace("propertyName",g))},c=function(g,y,m){var b=m[g];if(typeof b!="function"){if(!a(g))return null;if(b=y(g),m[g]=b,m[" size"]++,m[" size"]>512){for(var w=Object.keys(m),A=0;A<256;++A)delete m[w[A]];m[" size"]=w.length-256}}return b};s=function(g){return c(g,u,t)},l=function(g){return c(g,d,n)}}function f(g,y){var m;if(g!=null&&(m=g[y]),typeof m!="function"){var b="Object "+o.classString(g)+" has no method '"+o.toString(y)+"'";throw new r.TypeError(b)}return m}function p(g){var y=this.pop(),m=f(g,y);return m.apply(g,this)}r.prototype.call=function(g){for(var y=arguments.length,m=new Array(Math.max(y-1,0)),b=1;b<y;++b)m[b-1]=arguments[b];if(i){var w=s(g);if(w!==null)return this._then(w,void 0,void 0,m,void 0)}return m.push(g),this._then(p,void 0,void 0,m,void 0)};function v(g){return g[this]}function h(g){var y=+this;return y<0&&(y=Math.max(0,y+g.length)),g[y]}r.prototype.get=function(g){var y=typeof g=="number",m;if(y)m=h;else if(i){var b=l(g);m=b!==null?b:v}else m=v;return this._then(m,void 0,void 0,g,void 0)}},nO}var rO,Ote;function kut(){return Ote||(Ote=1,rO=function(e,t,n,r,o,i){var a=Hi(),s=p0().TypeError,l=Hi().inherits,u=a.errorObj,d=a.tryCatch,c={};function f(b){setTimeout(function(){throw b},0)}function p(b){var w=n(b);return w!==b&&typeof b._isDisposable=="function"&&typeof b._getDisposer=="function"&&b._isDisposable()&&w._setDisposable(b._getDisposer()),w}function v(b,w){var A=0,S=b.length,E=new e(o);function D(){if(A>=S)return E._fulfill();var _=p(b[A++]);if(_ instanceof e&&_._isDisposable()){try{_=n(_._getDisposer().tryDispose(w),b.promise)}catch(M){return f(M)}if(_ instanceof e)return _._then(D,f,null,null,null)}D()}return D(),E}function h(b,w,A){this._data=b,this._promise=w,this._context=A}h.prototype.data=function(){return this._data},h.prototype.promise=function(){return this._promise},h.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():c},h.prototype.tryDispose=function(b){var w=this.resource(),A=this._context;A!==void 0&&A._pushContext();var S=w!==c?this.doDispose(w,b):null;return A!==void 0&&A._popContext(),this._promise._unsetDisposable(),this._data=null,S},h.isDisposer=function(b){return b!=null&&typeof b.resource=="function"&&typeof b.tryDispose=="function"};function g(b,w,A){this.constructor$(b,w,A)}l(g,h),g.prototype.doDispose=function(b,w){var A=this.data();return A.call(b,b,w)};function y(b){return h.isDisposer(b)?(this.resources[this.index]._setDisposable(b),b.promise()):b}function m(b){this.length=b,this.promise=null,this[b-1]=null}m.prototype._resultCancelled=function(){for(var b=this.length,w=0;w<b;++w){var A=this[w];A instanceof e&&A.cancel()}},e.using=function(){var b=arguments.length;if(b<2)return t("you must pass at least 2 arguments to Promise.using");var w=arguments[b-1];if(typeof w!="function")return t("expecting a function but got "+a.classString(w));var A,S=!0;b===2&&Array.isArray(arguments[0])?(A=arguments[0],b=A.length,S=!1):(A=arguments,b--);for(var E=new m(b),D=0;D<b;++D){var _=A[D];if(h.isDisposer(_)){var M=_;_=_.promise(),_._setDisposable(M)}else{var O=n(_);O instanceof e&&(_=O._then(y,null,null,{resources:E,index:D},void 0))}E[D]=_}for(var k=new Array(E.length),D=0;D<k.length;++D)k[D]=e.resolve(E[D]).reflect();var R=e.all(k).then(function(W){for(var B=0;B<W.length;++B){var z=W[B];if(z.isRejected())return u.e=z.error(),u;if(!z.isFulfilled()){R.cancel();return}W[B]=z.value()}N._pushContext(),w=d(w);var j=S?w.apply(void 0,W):w(W),q=N._popContext();return i.checkForgottenReturns(j,q,"Promise.using",N),j}),N=R.lastly(function(){var W=new e.PromiseInspection(R);return v(E,W)});return E.promise=N,N._setOnCancel(E),N},e.prototype._setDisposable=function(b){this._bitField=this._bitField|131072,this._disposer=b},e.prototype._isDisposable=function(){return(this._bitField&131072)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(b){if(typeof b=="function")return new g(b,this,r());throw new s}}),rO}var oO,Mte;function Tut(){return Mte||(Mte=1,oO=function(e,t,n){var r=Hi(),o=e.TimeoutError;function i(c){this.handle=c}i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var a=function(c){return s(+this).thenReturn(c)},s=e.delay=function(c,f){var p,v;return f!==void 0?(p=e.resolve(f)._then(a,null,null,c,void 0),n.cancellation()&&f instanceof e&&p._setOnCancel(f)):(p=new e(t),v=setTimeout(function(){p._fulfill()},+c),n.cancellation()&&p._setOnCancel(new i(v)),p._captureStackTrace()),p._setAsyncGuaranteed(),p};e.prototype.delay=function(c){return s(c,this)};var l=function(c,f,p){var v;typeof f!="string"?f instanceof Error?v=f:v=new o("operation timed out"):v=new o(f),r.markAsOriginatingFromRejection(v),c._attachExtraTrace(v),c._reject(v),p?.cancel()};function u(c){return clearTimeout(this.handle),c}function d(c){throw clearTimeout(this.handle),c}e.prototype.timeout=function(c,f){c=+c;var p,v,h=new i(setTimeout(function(){p.isPending()&&l(p,f,v)},c));return n.cancellation()?(v=this.then(),p=v._then(u,d,void 0,h,void 0),p._setOnCancel(h)):p=this._then(u,d,void 0,h,void 0),p}}),oO}var iO,Pte;function _ut(){return Pte||(Pte=1,iO=function(e,t,n,r,o,i){var a=p0(),s=a.TypeError,l=Hi(),u=l.errorObj,d=l.tryCatch,c=[];function f(v,h,g){for(var y=0;y<h.length;++y){g._pushContext();var m=d(h[y])(v);if(g._popContext(),m===u){g._pushContext();var b=e.reject(u.e);return g._popContext(),b}var w=r(m,g);if(w instanceof e)return w}return null}function p(v,h,g,y){if(i.cancellation()){var m=new e(n),b=this._finallyPromise=new e(n);this._promise=m.lastly(function(){return b}),m._captureStackTrace(),m._setOnCancel(this)}else{var w=this._promise=new e(n);w._captureStackTrace()}this._stack=y,this._generatorFunction=v,this._receiver=h,this._generator=void 0,this._yieldHandlers=typeof g=="function"?[g].concat(c):c,this._yieldedPromise=null,this._cancellationPhase=!1}l.inherits(p,o),p.prototype._isResolved=function(){return this._promise===null},p.prototype._cleanup=function(){this._promise=this._generator=null,i.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},p.prototype._promiseCancelled=function(){if(!this._isResolved()){var v=typeof this._generator.return<"u",h;if(v)this._promise._pushContext(),h=d(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var g=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=g,this._promise._attachExtraTrace(g),this._promise._pushContext(),h=d(this._generator.throw).call(this._generator,g),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(h)}},p.prototype._promiseFulfilled=function(v){this._yieldedPromise=null,this._promise._pushContext();var h=d(this._generator.next).call(this._generator,v);this._promise._popContext(),this._continue(h)},p.prototype._promiseRejected=function(v){this._yieldedPromise=null,this._promise._attachExtraTrace(v),this._promise._pushContext();var h=d(this._generator.throw).call(this._generator,v);this._promise._popContext(),this._continue(h)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var v=this._yieldedPromise;this._yieldedPromise=null,v.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},p.prototype._continue=function(v){var h=this._promise;if(v===u)return this._cleanup(),this._cancellationPhase?h.cancel():h._rejectCallback(v.e,!1);var g=v.value;if(v.done===!0)return this._cleanup(),this._cancellationPhase?h.cancel():h._resolveCallback(g);var y=r(g,this._promise);if(!(y instanceof e)&&(y=f(y,this._yieldHandlers,this._promise),y===null)){this._promiseRejected(new s(`A value %s was yielded that could not be treated as a promise
- See http://goo.gl/MqrFmX
- `.replace("%s",g)+`From coroutine:
- `+this._stack.split(`
- `).slice(1,-7).join(`
- `)));return}y=y._target();var m=y._bitField;(m&50397184)===0?(this._yieldedPromise=y,y._proxy(this,null)):(m&33554432)!==0?e._async.invoke(this._promiseFulfilled,this,y._value()):(m&16777216)!==0?e._async.invoke(this._promiseRejected,this,y._reason()):this._promiseCancelled()},e.coroutine=function(v,h){if(typeof v!="function")throw new s(`generatorFunction must be a function
- See http://goo.gl/MqrFmX
- `);var g=Object(h).yieldHandler,y=p,m=new Error().stack;return function(){var b=v.apply(this,arguments),w=new y(void 0,void 0,g,m),A=w.promise();return w._generator=b,w._promiseFulfilled(void 0),A}},e.coroutine.addYieldHandler=function(v){if(typeof v!="function")throw new s("expecting a function but got "+l.classString(v));c.push(v)},e.spawn=function(v){if(i.deprecated("Promise.spawn()","Promise.coroutine()"),typeof v!="function")return t(`generatorFunction must be a function
- See http://goo.gl/MqrFmX
- `);var h=new p(v,this),g=h.promise();return h._run(e.spawn),g}}),iO}var aO,Nte;function Dut(){return Nte||(Nte=1,aO=function(e){var t=Hi(),n=e._async,r=t.tryCatch,o=t.errorObj;function i(l,u){var d=this;if(!t.isArray(l))return a.call(d,l,u);var c=r(u).apply(d._boundValue(),[null].concat(l));c===o&&n.throwLater(c.e)}function a(l,u){var d=this,c=d._boundValue(),f=l===void 0?r(u).call(c,null):r(u).call(c,null,l);f===o&&n.throwLater(f.e)}function s(l,u){var d=this;if(!l){var c=new Error(l+"");c.cause=l,l=c}var f=r(u).call(d._boundValue(),l);f===o&&n.throwLater(f.e)}e.prototype.asCallback=e.prototype.nodeify=function(l,u){if(typeof l=="function"){var d=a;u!==void 0&&Object(u).spread&&(d=i),this._then(d,s,void 0,this,l)}return this}}),aO}var sO,Rte;function Iut(){return Rte||(Rte=1,sO=function(e,t){var n={},r=Hi(),o=N4e(),i=r.withAppended,a=r.maybeWrapAsError,s=r.canEvaluate,l=p0().TypeError,u="Async",d={__isPromisified__:!0},c=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],f=new RegExp("^(?:"+c.join("|")+")$"),p=function(R){return r.isIdentifier(R)&&R.charAt(0)!=="_"&&R!=="constructor"};function v(R){return!f.test(R)}function h(R){try{return R.__isPromisified__===!0}catch{return!1}}function g(R,N,W){var B=r.getDataPropertyOrDefault(R,N+W,d);return B?h(B):!1}function y(R,N,W){for(var B=0;B<R.length;B+=2){var z=R[B];if(W.test(z)){for(var j=z.replace(W,""),q=0;q<R.length;q+=2)if(R[q]===j)throw new l(`Cannot promisify an API that has normal methods with '%s'-suffix
- See http://goo.gl/MqrFmX
- `.replace("%s",N))}}}function m(R,N,W,B){for(var z=r.inheritedDataKeys(R),j=[],q=0;q<z.length;++q){var Y=z[q],U=R[Y],F=B===p?!0:p(Y);typeof U=="function"&&!h(U)&&!g(R,Y,N)&&B(Y,U,R,F)&&j.push(Y,U)}return y(j,N,W),j}var b=function(R){return R.replace(/([$])/,"\\$")},w;{var A=function(R){for(var N=[R],W=Math.max(0,R-1-3),B=R-1;B>=W;--B)N.push(B);for(var B=R+1;B<=3;++B)N.push(B);return N},S=function(R){return r.filledRange(R,"_arg","")},E=function(R){return r.filledRange(Math.max(R,3),"_arg","")},D=function(R){return typeof R.length=="number"?Math.max(Math.min(R.length,1024),0):0};w=function(R,N,W,B,z,j){var q=Math.max(0,D(B)-1),Y=A(q),U=typeof R=="string"||N===n;function F(te){var Z=S(te).join(", "),le=te>0?", ":"",ve;return U?ve=`ret = callback.call(this, {{args}}, nodeback); break;
- `:ve=N===void 0?`ret = callback({{args}}, nodeback); break;
- `:`ret = callback.call(receiver, {{args}}, nodeback); break;
- `,ve.replace("{{args}}",Z).replace(", ",le)}function H(){for(var te="",Z=0;Z<Y.length;++Z)te+="case "+Y[Z]+":"+F(Y[Z]);return te+=`
- default:
- var args = new Array(len + 1);
- var i = 0;
- for (var i = 0; i < len; ++i) {
- args[i] = arguments[i];
- }
- args[i] = nodeback;
- [CodeForCall]
- break;
- `.replace("[CodeForCall]",U?`ret = callback.apply(this, args);
- `:`ret = callback.apply(receiver, args);
- `),te}var re=typeof R=="string"?"this != null ? this['"+R+"'] : fn":"fn",X=`'use strict';
- var ret = function (Parameters) {
- 'use strict';
- var len = arguments.length;
- var promise = new Promise(INTERNAL);
- promise._captureStackTrace();
- var nodeback = nodebackForPromise(promise, `+j+`);
- var ret;
- var callback = tryCatch([GetFunctionCode]);
- switch(len) {
- [CodeForSwitchCase]
- }
- if (ret === errorObj) {
- promise._rejectCallback(maybeWrapAsError(ret.e), true, true);
- }
- if (!promise._isFateSealed()) promise._setAsyncGuaranteed();
- return promise;
- };
- notEnumerableProp(ret, '__isPromisified__', true);
- return ret;
- `.replace("[CodeForSwitchCase]",H()).replace("[GetFunctionCode]",re);return X=X.replace("Parameters",E(q)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",X)(e,B,N,i,a,o,r.tryCatch,r.errorObj,r.notEnumerableProp,t)}}function _(R,N,W,B,z,j){var q=(function(){return this})(),Y=R;typeof Y=="string"&&(R=B);function U(){var F=N;N===n&&(F=this);var H=new e(t);H._captureStackTrace();var re=typeof Y=="string"&&this!==q?this[Y]:R,X=o(H,j);try{re.apply(F,i(arguments,X))}catch(te){H._rejectCallback(a(te),!0,!0)}return H._isFateSealed()||H._setAsyncGuaranteed(),H}return r.notEnumerableProp(U,"__isPromisified__",!0),U}var M=s?w:_;function O(R,N,W,B,z){for(var j=new RegExp(b(N)+"$"),q=m(R,N,j,W),Y=0,U=q.length;Y<U;Y+=2){var F=q[Y],H=q[Y+1],re=F+N;if(B===M)R[re]=M(F,n,F,H,N,z);else{var X=B(H,function(){return M(F,n,F,H,N,z)});r.notEnumerableProp(X,"__isPromisified__",!0),R[re]=X}}return r.toFastProperties(R),R}function k(R,N,W){return M(R,N,void 0,R,null,W)}e.promisify=function(R,N){if(typeof R!="function")throw new l("expecting a function but got "+r.classString(R));if(h(R))return R;N=Object(N);var W=N.context===void 0?n:N.context,B=!!N.multiArgs,z=k(R,W,B);return r.copyDescriptors(R,z,v),z},e.promisifyAll=function(R,N){if(typeof R!="function"&&typeof R!="object")throw new l(`the target of promisifyAll must be an object or a function
- See http://goo.gl/MqrFmX
- `);N=Object(N);var W=!!N.multiArgs,B=N.suffix;typeof B!="string"&&(B=u);var z=N.filter;typeof z!="function"&&(z=p);var j=N.promisifier;if(typeof j!="function"&&(j=M),!r.isIdentifier(B))throw new RangeError(`suffix must be a valid identifier
- See http://goo.gl/MqrFmX
- `);for(var q=r.inheritedDataKeys(R),Y=0;Y<q.length;++Y){var U=R[q[Y]];q[Y]!=="constructor"&&r.isClass(U)&&(O(U.prototype,B,z,j,W),O(U,B,z,j,W))}return O(R,B,z,j,W)}}),sO}var lO,Bte;function Out(){return Bte||(Bte=1,lO=function(e,t,n,r){var o=Hi(),i=o.isObject,a=Kb(),s;typeof Map=="function"&&(s=Map);var l=(function(){var f=0,p=0;function v(h,g){this[f]=h,this[f+p]=g,f++}return function(g){p=g.size,f=0;var y=new Array(g.size*2);return g.forEach(v,y),y}})(),u=function(f){for(var p=new s,v=f.length/2|0,h=0;h<v;++h){var g=f[v+h],y=f[h];p.set(g,y)}return p};function d(f){var p=!1,v;if(s!==void 0&&f instanceof s)v=l(f),p=!0;else{var h=a.keys(f),g=h.length;v=new Array(g*2);for(var y=0;y<g;++y){var m=h[y];v[y]=f[m],v[y+g]=m}}this.constructor$(v),this._isMap=p,this._init$(void 0,-3)}o.inherits(d,t),d.prototype._init=function(){},d.prototype._promiseFulfilled=function(f,p){this._values[p]=f;var v=++this._totalResolved;if(v>=this._length){var h;if(this._isMap)h=u(this._values);else{h={};for(var g=this.length(),y=0,m=this.length();y<m;++y)h[this._values[y+g]]=this._values[y]}return this._resolve(h),!0}return!1},d.prototype.shouldCopyValues=function(){return!1},d.prototype.getActualLength=function(f){return f>>1};function c(f){var p,v=n(f);if(i(v))v instanceof e?p=v._then(e.props,void 0,void 0,void 0,void 0):p=new d(v).promise();else return r(`cannot await properties of a non-object
- See http://goo.gl/MqrFmX
- `);return v instanceof e&&p._propagateFrom(v,2),p}e.prototype.props=function(){return c(this)},e.props=function(f){return c(f)}}),lO}var uO,Lte;function Mut(){return Lte||(Lte=1,uO=function(e,t,n,r){var o=Hi(),i=function(s){return s.then(function(l){return a(l,s)})};function a(s,l){var u=n(s);if(u instanceof e)return i(u);if(s=o.asArray(s),s===null)return r("expecting an array or an iterable object but got "+o.classString(s));var d=new e(t);l!==void 0&&d._propagateFrom(l,3);for(var c=d._fulfill,f=d._reject,p=0,v=s.length;p<v;++p){var h=s[p];h===void 0&&!(p in s)||e.cast(h)._then(c,f,void 0,d,null)}return d}e.race=function(s){return a(s,void 0)},e.prototype.race=function(){return a(this,void 0)}}),uO}var cO,Fte;function Put(){return Fte||(Fte=1,cO=function(e,t,n,r,o,i){var a=e._getDomain,s=Hi(),l=s.tryCatch;function u(v,h,g,y){this.constructor$(v);var m=a();this._fn=m===null?h:s.domainBind(m,h),g!==void 0&&(g=e.resolve(g),g._attachCancellationCallback(this)),this._initialValue=g,this._currentCancellable=null,y===o?this._eachValues=Array(this._length):y===0?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}s.inherits(u,t),u.prototype._gotAccum=function(v){this._eachValues!==void 0&&this._eachValues!==null&&v!==o&&this._eachValues.push(v)},u.prototype._eachComplete=function(v){return this._eachValues!==null&&this._eachValues.push(v),this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(v){this._promise._resolveCallback(v),this._values=null},u.prototype._resultCancelled=function(v){if(v===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},u.prototype._iterate=function(v){this._values=v;var h,g,y=v.length;if(this._initialValue!==void 0?(h=this._initialValue,g=0):(h=e.resolve(v[0]),g=1),this._currentCancellable=h,!h.isRejected())for(;g<y;++g){var m={accum:null,value:v[g],index:g,length:y,array:this};h=h._then(f,void 0,void 0,m,void 0)}this._eachValues!==void 0&&(h=h._then(this._eachComplete,void 0,void 0,this,void 0)),h._then(d,d,void 0,h,this)},e.prototype.reduce=function(v,h){return c(this,v,h,null)},e.reduce=function(v,h,g,y){return c(v,h,g,y)};function d(v,h){this.isFulfilled()?h._resolve(v):h._reject(v)}function c(v,h,g,y){if(typeof h!="function")return n("expecting a function but got "+s.classString(h));var m=new u(v,h,g,y);return m.promise()}function f(v){this.accum=v,this.array._gotAccum(v);var h=r(this.value,this.array._promise);return h instanceof e?(this.array._currentCancellable=h,h._then(p,void 0,void 0,this,void 0)):p.call(this,h)}function p(v){var h=this.array,g=h._promise,y=l(h._fn);g._pushContext();var m;h._eachValues!==void 0?m=y.call(g._boundValue(),v,this.index,this.length):m=y.call(g._boundValue(),this.accum,v,this.index,this.length),m instanceof e&&(h._currentCancellable=m);var b=g._popContext();return i.checkForgottenReturns(m,b,h._eachValues!==void 0?"Promise.each":"Promise.reduce",g),m}}),cO}var dO,Ute;function Nut(){return Ute||(Ute=1,dO=function(e,t,n){var r=e.PromiseInspection,o=Hi();function i(a){this.constructor$(a)}o.inherits(i,t),i.prototype._promiseResolved=function(a,s){this._values[a]=s;var l=++this._totalResolved;return l>=this._length?(this._resolve(this._values),!0):!1},i.prototype._promiseFulfilled=function(a,s){var l=new r;return l._bitField=33554432,l._settledValueField=a,this._promiseResolved(s,l)},i.prototype._promiseRejected=function(a,s){var l=new r;return l._bitField=16777216,l._settledValueField=a,this._promiseResolved(s,l)},e.settle=function(a){return n.deprecated(".settle()",".reflect()"),new i(a).promise()},e.prototype.settle=function(){return e.settle(this)}}),dO}var fO,zte;function Rut(){return zte||(zte=1,fO=function(e,t,n){var r=Hi(),o=p0().RangeError,i=p0().AggregateError,a=r.isArray,s={};function l(d){this.constructor$(d),this._howMany=0,this._unwrap=!1,this._initialized=!1}r.inherits(l,t),l.prototype._init=function(){if(this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var d=a(this._values);!this._isResolved()&&d&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},l.prototype.init=function(){this._initialized=!0,this._init()},l.prototype.setUnwrap=function(){this._unwrap=!0},l.prototype.howMany=function(){return this._howMany},l.prototype.setHowMany=function(d){this._howMany=d},l.prototype._promiseFulfilled=function(d){return this._addFulfilled(d),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},l.prototype._promiseRejected=function(d){return this._addRejected(d),this._checkOutcome()},l.prototype._promiseCancelled=function(){return this._values instanceof e||this._values==null?this._cancel():(this._addRejected(s),this._checkOutcome())},l.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var d=new i,c=this.length();c<this._values.length;++c)this._values[c]!==s&&d.push(this._values[c]);return d.length>0?this._reject(d):this._cancel(),!0}return!1},l.prototype._fulfilled=function(){return this._totalResolved},l.prototype._rejected=function(){return this._values.length-this.length()},l.prototype._addRejected=function(d){this._values.push(d)},l.prototype._addFulfilled=function(d){this._values[this._totalResolved++]=d},l.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},l.prototype._getRangeError=function(d){var c="Input array must contain at least "+this._howMany+" items but contains only "+d+" items";return new o(c)},l.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function u(d,c){if((c|0)!==c||c<0)return n(`expecting a positive integer
- See http://goo.gl/MqrFmX
- `);var f=new l(d),p=f.promise();return f.setHowMany(c),f.init(),p}e.some=function(d,c){return u(d,c)},e.prototype.some=function(d){return u(this,d)},e._SomePromiseArray=l}),fO}var pO,$te;function But(){return $te||($te=1,pO=function(e,t){var n=e.map;e.prototype.filter=function(r,o){return n(this,r,o,t)},e.filter=function(r,o,i){return n(r,o,i,t)}}),pO}var hO,jte;function Lut(){return jte||(jte=1,hO=function(e,t){var n=e.reduce,r=e.all;function o(){return r(this)}function i(a,s){return n(a,s,t,t)}e.prototype.each=function(a){return n(this,a,t,0)._then(o,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(a){return n(this,a,t,t)},e.each=function(a,s){return n(a,s,t,0)._then(o,void 0,void 0,a,void 0)},e.mapSeries=i}),hO}var gO,Hte;function Fut(){return Hte||(Hte=1,gO=function(e){var t=e._SomePromiseArray;function n(r){var o=new t(r),i=o.promise();return o.setHowMany(1),o.setUnwrap(),o.init(),i}e.any=function(r){return n(r)},e.prototype.any=function(){return n(this)}}),gO}var Wte;function Uut(){return Wte||(Wte=1,(function(e){e.exports=function(){var t=function(){return new f(`circular promise resolution chain
- See http://goo.gl/MqrFmX
- `)},n=function(){return new k.PromiseInspection(this._target())},r=function(B){return k.reject(new f(B))};function o(){}var i={},a=Hi(),s;a.isNode?s=function(){var B=process.domain;return B===void 0&&(B=null),B}:s=function(){return null},a.notEnumerableProp(k,"_getDomain",s);var l=Kb(),u=dut(),d=new u;l.defineProperty(k,"_async",{value:d});var c=p0(),f=k.TypeError=c.TypeError;k.RangeError=c.RangeError;var p=k.CancellationError=c.CancellationError;k.TimeoutError=c.TimeoutError,k.OperationalError=c.OperationalError,k.RejectionError=c.OperationalError,k.AggregateError=c.AggregateError;var v=function(){},h={},g={},y=fut()(k,v),m=put()(k,v,y,r,o),b=hut()(k),w=b.create,A=gut()(k,b);A.CapturedTrace;var S=vut()(k,y),E=mut()(g),D=N4e(),_=a.errorObj,M=a.tryCatch;function O(B,z){if(typeof z!="function")throw new f("expecting a function but got "+a.classString(z));if(B.constructor!==k)throw new f(`the promise constructor cannot be invoked directly
- See http://goo.gl/MqrFmX
- `)}function k(B){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,B!==v&&(O(this,B),this._resolveFromExecutor(B)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}k.prototype.toString=function(){return"[object Promise]"},k.prototype.caught=k.prototype.catch=function(B){var z=arguments.length;if(z>1){var j=new Array(z-1),q=0,Y;for(Y=0;Y<z-1;++Y){var U=arguments[Y];if(a.isObject(U))j[q++]=U;else return r("expecting an object but got A catch statement predicate "+a.classString(U))}return j.length=q,B=arguments[Y],this.then(void 0,E(j,B,this))}return this.then(void 0,B)},k.prototype.reflect=function(){return this._then(n,n,void 0,this,void 0)},k.prototype.then=function(B,z){if(A.warnings()&&arguments.length>0&&typeof B!="function"&&typeof z!="function"){var j=".then() only accepts functions but was passed: "+a.classString(B);arguments.length>1&&(j+=", "+a.classString(z)),this._warn(j)}return this._then(B,z,void 0,void 0,void 0)},k.prototype.done=function(B,z){var j=this._then(B,z,void 0,void 0,void 0);j._setIsFinal()},k.prototype.spread=function(B){return typeof B!="function"?r("expecting a function but got "+a.classString(B)):this.all()._then(B,void 0,void 0,h,void 0)},k.prototype.toJSON=function(){var B={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(B.fulfillmentValue=this.value(),B.isFulfilled=!0):this.isRejected()&&(B.rejectionReason=this.reason(),B.isRejected=!0),B},k.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new m(this).promise()},k.prototype.error=function(B){return this.caught(a.originatesFromRejection,B)},k.getNewLibraryCopy=e.exports,k.is=function(B){return B instanceof k},k.fromNode=k.fromCallback=function(B){var z=new k(v);z._captureStackTrace();var j=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,q=M(B)(D(z,j));return q===_&&z._rejectCallback(q.e,!0),z._isFateSealed()||z._setAsyncGuaranteed(),z},k.all=function(B){return new m(B).promise()},k.cast=function(B){var z=y(B);return z instanceof k||(z=new k(v),z._captureStackTrace(),z._setFulfilled(),z._rejectionHandler0=B),z},k.resolve=k.fulfilled=k.cast,k.reject=k.rejected=function(B){var z=new k(v);return z._captureStackTrace(),z._rejectCallback(B,!0),z},k.setScheduler=function(B){if(typeof B!="function")throw new f("expecting a function but got "+a.classString(B));return d.setScheduler(B)},k.prototype._then=function(B,z,j,q,Y){var U=Y!==void 0,F=U?Y:new k(v),H=this._target(),re=H._bitField;U||(F._propagateFrom(this,3),F._captureStackTrace(),q===void 0&&(this._bitField&2097152)!==0&&((re&50397184)!==0?q=this._boundValue():q=H===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,F));var X=s();if((re&50397184)!==0){var te,Z,le=H._settlePromiseCtx;(re&33554432)!==0?(Z=H._rejectionHandler0,te=B):(re&16777216)!==0?(Z=H._fulfillmentHandler0,te=z,H._unsetRejectionIsUnhandled()):(le=H._settlePromiseLateCancellationObserver,Z=new p("late cancellation observer"),H._attachExtraTrace(Z),te=z),d.invoke(le,H,{handler:X===null?te:typeof te=="function"&&a.domainBind(X,te),promise:F,receiver:q,value:Z})}else H._addCallbacks(B,z,F,q,X);return F},k.prototype._length=function(){return this._bitField&65535},k.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},k.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},k.prototype._setLength=function(B){this._bitField=this._bitField&-65536|B&65535},k.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},k.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},k.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},k.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},k.prototype._isFinal=function(){return(this._bitField&4194304)>0},k.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},k.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},k.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},k.prototype._setAsyncGuaranteed=function(){d.hasCustomScheduler()||(this._bitField=this._bitField|134217728)},k.prototype._receiverAt=function(B){var z=B===0?this._receiver0:this[B*4-4+3];if(z!==i)return z===void 0&&this._isBound()?this._boundValue():z},k.prototype._promiseAt=function(B){return this[B*4-4+2]},k.prototype._fulfillmentHandlerAt=function(B){return this[B*4-4+0]},k.prototype._rejectionHandlerAt=function(B){return this[B*4-4+1]},k.prototype._boundValue=function(){},k.prototype._migrateCallback0=function(B){B._bitField;var z=B._fulfillmentHandler0,j=B._rejectionHandler0,q=B._promise0,Y=B._receiverAt(0);Y===void 0&&(Y=i),this._addCallbacks(z,j,q,Y,null)},k.prototype._migrateCallbackAt=function(B,z){var j=B._fulfillmentHandlerAt(z),q=B._rejectionHandlerAt(z),Y=B._promiseAt(z),U=B._receiverAt(z);U===void 0&&(U=i),this._addCallbacks(j,q,Y,U,null)},k.prototype._addCallbacks=function(B,z,j,q,Y){var U=this._length();if(U>=65531&&(U=0,this._setLength(0)),U===0)this._promise0=j,this._receiver0=q,typeof B=="function"&&(this._fulfillmentHandler0=Y===null?B:a.domainBind(Y,B)),typeof z=="function"&&(this._rejectionHandler0=Y===null?z:a.domainBind(Y,z));else{var F=U*4-4;this[F+2]=j,this[F+3]=q,typeof B=="function"&&(this[F+0]=Y===null?B:a.domainBind(Y,B)),typeof z=="function"&&(this[F+1]=Y===null?z:a.domainBind(Y,z))}return this._setLength(U+1),U},k.prototype._proxy=function(B,z){this._addCallbacks(void 0,void 0,z,B,null)},k.prototype._resolveCallback=function(B,z){if((this._bitField&117506048)===0){if(B===this)return this._rejectCallback(t(),!1);var j=y(B,this);if(!(j instanceof k))return this._fulfill(B);z&&this._propagateFrom(j,2);var q=j._target();if(q===this){this._reject(t());return}var Y=q._bitField;if((Y&50397184)===0){var U=this._length();U>0&&q._migrateCallback0(this);for(var F=1;F<U;++F)q._migrateCallbackAt(this,F);this._setFollowing(),this._setLength(0),this._setFollowee(q)}else if((Y&33554432)!==0)this._fulfill(q._value());else if((Y&16777216)!==0)this._reject(q._reason());else{var H=new p("late cancellation observer");q._attachExtraTrace(H),this._reject(H)}}},k.prototype._rejectCallback=function(B,z,j){var q=a.ensureErrorObject(B),Y=q===B;if(!Y&&!j&&A.warnings()){var U="a promise was rejected with a non-error: "+a.classString(B);this._warn(U,!0)}this._attachExtraTrace(q,z?Y:!1),this._reject(B)},k.prototype._resolveFromExecutor=function(B){var z=this;this._captureStackTrace(),this._pushContext();var j=!0,q=this._execute(B,function(Y){z._resolveCallback(Y)},function(Y){z._rejectCallback(Y,j)});j=!1,this._popContext(),q!==void 0&&z._rejectCallback(q,!0)},k.prototype._settlePromiseFromHandler=function(B,z,j,q){var Y=q._bitField;if((Y&65536)===0){q._pushContext();var U;z===h?!j||typeof j.length!="number"?(U=_,U.e=new f("cannot .spread() a non-array: "+a.classString(j))):U=M(B).apply(this._boundValue(),j):U=M(B).call(z,j);var F=q._popContext();Y=q._bitField,(Y&65536)===0&&(U===g?q._reject(j):U===_?q._rejectCallback(U.e,!1):(A.checkForgottenReturns(U,F,"",q,this),q._resolveCallback(U)))}},k.prototype._target=function(){for(var B=this;B._isFollowing();)B=B._followee();return B},k.prototype._followee=function(){return this._rejectionHandler0},k.prototype._setFollowee=function(B){this._rejectionHandler0=B},k.prototype._settlePromise=function(B,z,j,q){var Y=B instanceof k,U=this._bitField,F=(U&134217728)!==0;(U&65536)!==0?(Y&&B._invokeInternalOnCancel(),j instanceof S&&j.isFinallyHandler()?(j.cancelPromise=B,M(z).call(j,q)===_&&B._reject(_.e)):z===n?B._fulfill(n.call(j)):j instanceof o?j._promiseCancelled(B):Y||B instanceof m?B._cancel():j.cancel()):typeof z=="function"?Y?(F&&B._setAsyncGuaranteed(),this._settlePromiseFromHandler(z,j,q,B)):z.call(j,q,B):j instanceof o?j._isResolved()||((U&33554432)!==0?j._promiseFulfilled(q,B):j._promiseRejected(q,B)):Y&&(F&&B._setAsyncGuaranteed(),(U&33554432)!==0?B._fulfill(q):B._reject(q))},k.prototype._settlePromiseLateCancellationObserver=function(B){var z=B.handler,j=B.promise,q=B.receiver,Y=B.value;typeof z=="function"?j instanceof k?this._settlePromiseFromHandler(z,q,Y,j):z.call(q,Y,j):j instanceof k&&j._reject(Y)},k.prototype._settlePromiseCtx=function(B){this._settlePromise(B.promise,B.handler,B.receiver,B.value)},k.prototype._settlePromise0=function(B,z,j){var q=this._promise0,Y=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(q,B,Y,z)},k.prototype._clearCallbackDataAtIndex=function(B){var z=B*4-4;this[z+2]=this[z+3]=this[z+0]=this[z+1]=void 0},k.prototype._fulfill=function(B){var z=this._bitField;if(!((z&117506048)>>>16)){if(B===this){var j=t();return this._attachExtraTrace(j),this._reject(j)}this._setFulfilled(),this._rejectionHandler0=B,(z&65535)>0&&((z&134217728)!==0?this._settlePromises():d.settlePromises(this))}},k.prototype._reject=function(B){var z=this._bitField;if(!((z&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=B,this._isFinal())return d.fatalError(B,a.isNode);(z&65535)>0?d.settlePromises(this):this._ensurePossibleRejectionHandled()}},k.prototype._fulfillPromises=function(B,z){for(var j=1;j<B;j++){var q=this._fulfillmentHandlerAt(j),Y=this._promiseAt(j),U=this._receiverAt(j);this._clearCallbackDataAtIndex(j),this._settlePromise(Y,q,U,z)}},k.prototype._rejectPromises=function(B,z){for(var j=1;j<B;j++){var q=this._rejectionHandlerAt(j),Y=this._promiseAt(j),U=this._receiverAt(j);this._clearCallbackDataAtIndex(j),this._settlePromise(Y,q,U,z)}},k.prototype._settlePromises=function(){var B=this._bitField,z=B&65535;if(z>0){if((B&16842752)!==0){var j=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,j,B),this._rejectPromises(z,j)}else{var q=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,q,B),this._fulfillPromises(z,q)}this._setLength(0)}this._clearCancellationData()},k.prototype._settledValue=function(){var B=this._bitField;if((B&33554432)!==0)return this._rejectionHandler0;if((B&16777216)!==0)return this._fulfillmentHandler0};function R(B){this.promise._resolveCallback(B)}function N(B){this.promise._rejectCallback(B,!1)}k.defer=k.pending=function(){A.deprecated("Promise.defer","new Promise");var B=new k(v);return{promise:B,resolve:R,reject:N}},a.notEnumerableProp(k,"_makeSelfResolutionError",t),yut()(k,v,y,r,A),but()(k,v,y,A),wut()(k,m,r,A),Aut()(k),Cut()(k),xut()(k,m,y,v,d,s),k.Promise=k,k.version="3.4.7",Sut()(k,m,r,y,v,A),Eut()(k),kut()(k,r,y,w,v,A),Tut()(k,v,A),_ut()(k,r,v,y,o,A),Dut()(k),Iut()(k,v),Out()(k,m,y,r),Mut()(k,v,y,r),Put()(k,m,r,y,v,A),Nut()(k,m,A),Rut()(k,m,r),But()(k,v),Lut()(k,v),Fut()(k),a.toFastProperties(k),a.toFastProperties(k.prototype);function W(B){var z=new k(v);z._fulfillmentHandler0=B,z._rejectionHandler0=B,z._promise0=B,z._receiver0=B}return W({a:1}),W({b:2}),W({c:3}),W(1),W(function(){}),W(void 0),W(!1),W(new k(v)),A.setBounds(u.firstLineError,a.lastLineError),k}})(FI)),FI.exports}var Vte;function R0(){if(Vte)return Iu;Vte=1;var e=Pa,t=Uut()();Iu.defer=n,Iu.when=t.resolve,Iu.resolve=t.resolve,Iu.all=t.all,Iu.props=t.props,Iu.reject=t.reject,Iu.promisify=t.promisify,Iu.mapSeries=t.mapSeries,Iu.attempt=t.attempt,Iu.nfcall=function(r){var o=Array.prototype.slice.call(arguments,1),i=t.promisify(r);return i.apply(null,o)},t.prototype.fail=t.prototype.caught,t.prototype.also=function(r){return this.then(function(o){var i=e.extend({},o,r(o));return t.props(i)})};function n(){var r,o,i=new t.Promise(function(a,s){r=a,o=s});return{resolve:r,reject:o,promise:i}}return Iu}var ri={},qte;function pm(){if(qte)return ri;qte=1;var e=Pa,t=ri.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function n(S,E){return E=E||{},{type:t.document,children:S,notes:E.notes||new c({}),comments:E.comments||[]}}function r(S,E){E=E||{};var D=E.indent||{};return{type:t.paragraph,children:S,styleId:E.styleId||null,styleName:E.styleName||null,numbering:E.numbering||null,alignment:E.alignment||null,indent:{start:D.start||null,end:D.end||null,firstLine:D.firstLine||null,hanging:D.hanging||null}}}function o(S,E){return E=E||{},{type:t.run,children:S,styleId:E.styleId||null,styleName:E.styleName||null,isBold:!!E.isBold,isUnderline:!!E.isUnderline,isItalic:!!E.isItalic,isStrikethrough:!!E.isStrikethrough,isAllCaps:!!E.isAllCaps,isSmallCaps:!!E.isSmallCaps,verticalAlignment:E.verticalAlignment||i.baseline,font:E.font||null,fontSize:E.fontSize||null,highlight:E.highlight||null}}var i={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function a(S){return{type:t.text,value:S}}function s(){return{type:t.tab}}function l(S){return{type:t.checkbox,checked:S.checked}}function u(S,E){return{type:t.hyperlink,children:S,href:E.href,anchor:E.anchor,targetFrame:E.targetFrame}}function d(S){return{type:t.noteReference,noteType:S.noteType,noteId:S.noteId}}function c(S){this._notes=e.indexBy(S,function(E){return h(E.noteType,E.noteId)})}c.prototype.resolve=function(S){return this.findNoteByKey(h(S.noteType,S.noteId))},c.prototype.findNoteByKey=function(S){return this._notes[S]||null};function f(S){return{type:t.note,noteType:S.noteType,noteId:S.noteId,body:S.body}}function p(S){return{type:t.commentReference,commentId:S.commentId}}function v(S){return{type:t.comment,commentId:S.commentId,body:S.body,authorName:S.authorName,authorInitials:S.authorInitials}}function h(S,E){return S+"-"+E}function g(S){return{type:t.image,read:function(E){return E?S.readImage(E):S.readImage().then(function(D){return Buffer.from(D)})},readAsArrayBuffer:function(){return S.readImage()},readAsBase64String:function(){return S.readImage("base64")},readAsBuffer:function(){return S.readImage().then(function(E){return Buffer.from(E)})},altText:S.altText,contentType:S.contentType}}function y(S,E){return E=E||{},{type:t.table,children:S,styleId:E.styleId||null,styleName:E.styleName||null}}function m(S,E){return E=E||{},{type:t.tableRow,children:S,isHeader:E.isHeader||!1}}function b(S,E){return E=E||{},{type:t.tableCell,children:S,colSpan:E.colSpan==null?1:E.colSpan,rowSpan:E.rowSpan==null?1:E.rowSpan}}function w(S){return{type:t.break,breakType:S}}function A(S){return{type:t.bookmarkStart,name:S.name}}return ri.document=ri.Document=n,ri.paragraph=ri.Paragraph=r,ri.run=ri.Run=o,ri.text=ri.Text=a,ri.tab=ri.Tab=s,ri.checkbox=ri.Checkbox=l,ri.Hyperlink=u,ri.noteReference=ri.NoteReference=d,ri.Notes=c,ri.Note=f,ri.commentReference=p,ri.comment=v,ri.Image=g,ri.Table=y,ri.TableRow=m,ri.TableCell=b,ri.lineBreak=w("line"),ri.pageBreak=w("page"),ri.columnBreak=w("column"),ri.BookmarkStart=A,ri.verticalAlignment=i,ri}var jm={},Gte;function sp(){if(Gte)return jm;Gte=1;var e=Pa;jm.Result=t,jm.success=n,jm.warning=r,jm.error=o;function t(l,u){this.value=l,this.messages=u||[]}t.prototype.map=function(l){return new t(l(this.value),this.messages)},t.prototype.flatMap=function(l){var u=l(this.value);return new t(u.value,i([this,u]))},t.prototype.flatMapThen=function(l){var u=this;return l(this.value).then(function(d){return new t(d.value,i([u,d]))})},t.combine=function(l){var u=e.flatten(e.pluck(l,"value")),d=i(l);return new t(u,d)};function n(l){return new t(l,[])}function r(l){return{type:"warning",message:l}}function o(l){return{type:"error",message:l.message,error:l}}function i(l){var u=[];return e.flatten(e.pluck(l,"messages"),!0).forEach(function(d){a(u,d)||u.push(d)}),u}function a(l,u){return e.find(l,s.bind(null,u))!==void 0}function s(l,u){return l.type===u.type&&l.message===u.message}return jm}var L2={},F2={},Kte;function zut(){if(Kte)return F2;Kte=1,F2.byteLength=s,F2.toByteArray=u,F2.fromByteArray=f;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;t[45]=62,t[95]=63;function a(p){var v=p.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var h=p.indexOf("=");h===-1&&(h=v);var g=h===v?0:4-h%4;return[h,g]}function s(p){var v=a(p),h=v[0],g=v[1];return(h+g)*3/4-g}function l(p,v,h){return(v+h)*3/4-h}function u(p){var v,h=a(p),g=h[0],y=h[1],m=new n(l(p,g,y)),b=0,w=y>0?g-4:g,A;for(A=0;A<w;A+=4)v=t[p.charCodeAt(A)]<<18|t[p.charCodeAt(A+1)]<<12|t[p.charCodeAt(A+2)]<<6|t[p.charCodeAt(A+3)],m[b++]=v>>16&255,m[b++]=v>>8&255,m[b++]=v&255;return y===2&&(v=t[p.charCodeAt(A)]<<2|t[p.charCodeAt(A+1)]>>4,m[b++]=v&255),y===1&&(v=t[p.charCodeAt(A)]<<10|t[p.charCodeAt(A+1)]<<4|t[p.charCodeAt(A+2)]>>2,m[b++]=v>>8&255,m[b++]=v&255),m}function d(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function c(p,v,h){for(var g,y=[],m=v;m<h;m+=3)g=(p[m]<<16&16711680)+(p[m+1]<<8&65280)+(p[m+2]&255),y.push(d(g));return y.join("")}function f(p){for(var v,h=p.length,g=h%3,y=[],m=16383,b=0,w=h-g;b<w;b+=m)y.push(c(p,b,b+m>w?w:b+m));return g===1?(v=p[h-1],y.push(e[v>>2]+e[v<<4&63]+"==")):g===2&&(v=(p[h-2]<<8)+p[h-1],y.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),y.join("")}return F2}function Rx(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vO={exports:{}};/*!
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
- <http://stuartk.com/jszip>
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
- JSZip uses the library pako released under the MIT license :
- https://github.com/nodeca/pako/blob/main/LICENSE
- */var Yte;function $ut(){return Yte||(Yte=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,o,i){function a(u,d){if(!o[u]){if(!r[u]){var c=typeof Rx=="function"&&Rx;if(!d&&c)return c(u,!0);if(s)return s(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=o[u]={exports:{}};r[u][0].call(p.exports,function(v){var h=r[u][1][v];return a(h||v)},p,p.exports,n,r,o,i)}return o[u].exports}for(var s=typeof Rx=="function"&&Rx,l=0;l<i.length;l++)a(i[l]);return a})({1:[function(n,r,o){var i=n("./utils"),a=n("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(l){for(var u,d,c,f,p,v,h,g=[],y=0,m=l.length,b=m,w=i.getTypeOf(l)!=="string";y<l.length;)b=m-y,c=w?(u=l[y++],d=y<m?l[y++]:0,y<m?l[y++]:0):(u=l.charCodeAt(y++),d=y<m?l.charCodeAt(y++):0,y<m?l.charCodeAt(y++):0),f=u>>2,p=(3&u)<<4|d>>4,v=1<b?(15&d)<<2|c>>6:64,h=2<b?63&c:64,g.push(s.charAt(f)+s.charAt(p)+s.charAt(v)+s.charAt(h));return g.join("")},o.decode=function(l){var u,d,c,f,p,v,h=0,g=0,y="data:";if(l.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var m,b=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&b--,l.charAt(l.length-2)===s.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=a.uint8array?new Uint8Array(0|b):new Array(0|b);h<l.length;)u=s.indexOf(l.charAt(h++))<<2|(f=s.indexOf(l.charAt(h++)))>>4,d=(15&f)<<4|(p=s.indexOf(l.charAt(h++)))>>2,c=(3&p)<<6|(v=s.indexOf(l.charAt(h++))),m[g++]=u,p!==64&&(m[g++]=d),v!==64&&(m[g++]=c);return m}},{"./support":30,"./utils":32}],2:[function(n,r,o){var i=n("./external"),a=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function u(d,c,f,p,v){this.compressedSize=d,this.uncompressedSize=c,this.crc32=f,this.compression=p,this.compressedContent=v}u.prototype={getContentWorker:function(){var d=new a(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),c=this;return d.on("end",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new a(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(d,c,f){return d.pipe(new s).pipe(new l("uncompressedSize")).pipe(c.compressWorker(f)).pipe(new l("compressedSize")).withStreamInfo("compression",c)},r.exports=u},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,o){var i=n("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},o.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,o){var i=n("./utils"),a=(function(){for(var s,l=[],u=0;u<256;u++){s=u;for(var d=0;d<8;d++)s=1&s?3988292384^s>>>1:s>>>1;l[u]=s}return l})();r.exports=function(s,l){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?(function(u,d,c,f){var p=a,v=f+c;u^=-1;for(var h=f;h<v;h++)u=u>>>8^p[255&(u^d[h])];return-1^u})(0|l,s,s.length,0):(function(u,d,c,f){var p=a,v=f+c;u^=-1;for(var h=f;h<v;h++)u=u>>>8^p[255&(u^d.charCodeAt(h))];return-1^u})(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(n,r,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(n,r,o){var i=null;i=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:i}},{lie:37}],7:[function(n,r,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=n("pako"),s=n("./utils"),l=n("./stream/GenericWorker"),u=i?"uint8array":"array";function d(c,f){l.call(this,"FlateWorker/"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=f,this.meta={}}o.magic="\b\0",s.inherits(d,l),d.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(u,c.data),!1)},d.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(f){c.push({data:f,meta:c.meta})}},o.compressWorker=function(c){return new d("Deflate",c)},o.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,o){function i(p,v){var h,g="";for(h=0;h<v;h++)g+=String.fromCharCode(255&p),p>>>=8;return g}function a(p,v,h,g,y,m){var b,w,A=p.file,S=p.compression,E=m!==u.utf8encode,D=s.transformTo("string",m(A.name)),_=s.transformTo("string",u.utf8encode(A.name)),M=A.comment,O=s.transformTo("string",m(M)),k=s.transformTo("string",u.utf8encode(M)),R=_.length!==A.name.length,N=k.length!==M.length,W="",B="",z="",j=A.dir,q=A.date,Y={crc32:0,compressedSize:0,uncompressedSize:0};v&&!h||(Y.crc32=p.crc32,Y.compressedSize=p.compressedSize,Y.uncompressedSize=p.uncompressedSize);var U=0;v&&(U|=8),E||!R&&!N||(U|=2048);var F=0,H=0;j&&(F|=16),y==="UNIX"?(H=798,F|=(function(X,te){var Z=X;return X||(Z=te?16893:33204),(65535&Z)<<16})(A.unixPermissions,j)):(H=20,F|=(function(X){return 63&(X||0)})(A.dosPermissions)),b=q.getUTCHours(),b<<=6,b|=q.getUTCMinutes(),b<<=5,b|=q.getUTCSeconds()/2,w=q.getUTCFullYear()-1980,w<<=4,w|=q.getUTCMonth()+1,w<<=5,w|=q.getUTCDate(),R&&(B=i(1,1)+i(d(D),4)+_,W+="up"+i(B.length,2)+B),N&&(z=i(1,1)+i(d(O),4)+k,W+="uc"+i(z.length,2)+z);var re="";return re+=`
- \0`,re+=i(U,2),re+=S.magic,re+=i(b,2),re+=i(w,2),re+=i(Y.crc32,4),re+=i(Y.compressedSize,4),re+=i(Y.uncompressedSize,4),re+=i(D.length,2),re+=i(W.length,2),{fileRecord:c.LOCAL_FILE_HEADER+re+D+W,dirRecord:c.CENTRAL_FILE_HEADER+i(H,2)+re+i(O.length,2)+"\0\0\0\0"+i(F,4)+i(g,4)+D+W+O}}var s=n("../utils"),l=n("../stream/GenericWorker"),u=n("../utf8"),d=n("../crc32"),c=n("../signature");function f(p,v,h,g){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=v,this.zipPlatform=h,this.encodeFileName=g,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(f,l),f.prototype.push=function(p){var v=p.meta.percent||0,h=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,l.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:h?(v+100*(h-g-1))/h:100}}))},f.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var v=this.streamFiles&&!p.file.dir;if(v){var h=a(p,v,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(p){this.accumulate=!1;var v=this.streamFiles&&!p.file.dir,h=a(p,v,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),v)this.push({data:(function(g){return c.DATA_DESCRIPTOR+i(g.crc32,4)+i(g.compressedSize,4)+i(g.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var p=this.bytesWritten,v=0;v<this.dirRecords.length;v++)this.push({data:this.dirRecords[v],meta:{percent:100}});var h=this.bytesWritten-p,g=(function(y,m,b,w,A){var S=s.transformTo("string",A(w));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(y,2)+i(y,2)+i(m,4)+i(b,4)+i(S.length,2)+S})(this.dirRecords.length,h,p,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(p){this._sources.push(p);var v=this;return p.on("data",function(h){v.processChunk(h)}),p.on("end",function(){v.closedSource(v.previous.streamInfo),v._sources.length?v.prepareNextSource():v.end()}),p.on("error",function(h){v.error(h)}),this},f.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(p){var v=this._sources;if(!l.prototype.error.call(this,p))return!1;for(var h=0;h<v.length;h++)try{v[h].error(p)}catch{}return!0},f.prototype.lock=function(){l.prototype.lock.call(this);for(var p=this._sources,v=0;v<p.length;v++)p[v].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,o){var i=n("../compressions"),a=n("./ZipFileWorker");o.generateWorker=function(s,l,u){var d=new a(l.streamFiles,u,l.platform,l.encodeFileName),c=0;try{s.forEach(function(f,p){c++;var v=(function(m,b){var w=m||b,A=i[w];if(!A)throw new Error(w+" is not a valid compression method !");return A})(p.options.compression,l.compression),h=p.options.compressionOptions||l.compressionOptions||{},g=p.dir,y=p.date;p._compressWorker(v,h).withStreamInfo("file",{name:f,dir:g,date:y,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(d)}),d.entriesCount=c}catch(f){d.error(f)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,o){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new i;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(i.prototype=n("./object")).loadAsync=n("./load"),i.support=n("./support"),i.defaults=n("./defaults"),i.version="3.10.1",i.loadAsync=function(a,s){return new i().loadAsync(a,s)},i.external=n("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,o){var i=n("./utils"),a=n("./external"),s=n("./utf8"),l=n("./zipEntries"),u=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function c(f){return new a.Promise(function(p,v){var h=f.decompressed.getContentWorker().pipe(new u);h.on("error",function(g){v(g)}).on("end",function(){h.streamInfo.crc32!==f.decompressed.crc32?v(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}r.exports=function(f,p){var v=this;return p=i.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),d.isNode&&d.isStream(f)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",f,!0,p.optimizedBinaryString,p.base64).then(function(h){var g=new l(p);return g.load(h),g}).then(function(h){var g=[a.Promise.resolve(h)],y=h.files;if(p.checkCRC32)for(var m=0;m<y.length;m++)g.push(c(y[m]));return a.Promise.all(g)}).then(function(h){for(var g=h.shift(),y=g.files,m=0;m<y.length;m++){var b=y[m],w=b.fileNameStr,A=i.resolve(b.fileNameStr);v.file(A,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:p.createFolders}),b.dir||(v.file(A).unsafeOriginalName=w)}return g.zipComment.length&&(v.comment=g.zipComment),v})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,o){var i=n("../utils"),a=n("../stream/GenericWorker");function s(l,u){a.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(u)}i.inherits(s,a),s.prototype._bindStream=function(l){var u=this;(this._stream=l).pause(),l.on("data",function(d){u.push({data:d,meta:{percent:0}})}).on("error",function(d){u.isPaused?this.generatedError=d:u.error(d)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,o){var i=n("readable-stream").Readable;function a(s,l,u){i.call(this,l),this._helper=s;var d=this;s.on("data",function(c,f){d.push(c)||d._helper.pause(),u&&u(f)}).on("error",function(c){d.emit("error",c)}).on("end",function(){d.push(null)})}n("../utils").inherits(a,i),a.prototype._read=function(){this._helper.resume()},r.exports=a},{"../utils":32,"readable-stream":16}],14:[function(n,r,o){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,a);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,a)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var a=new Buffer(i);return a.fill(0),a},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(n,r,o){function i(A,S,E){var D,_=s.getTypeOf(S),M=s.extend(E||{},d);M.date=M.date||new Date,M.compression!==null&&(M.compression=M.compression.toUpperCase()),typeof M.unixPermissions=="string"&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(A=y(A)),M.createFolders&&(D=g(A))&&m.call(this,D,!0);var O=_==="string"&&M.binary===!1&&M.base64===!1;E&&E.binary!==void 0||(M.binary=!O),(S instanceof c&&S.uncompressedSize===0||M.dir||!S||S.length===0)&&(M.base64=!1,M.binary=!0,S="",M.compression="STORE",_="string");var k=null;k=S instanceof c||S instanceof l?S:v.isNode&&v.isStream(S)?new h(A,S):s.prepareContent(A,S,M.binary,M.optimizedBinaryString,M.base64);var R=new f(A,k,M);this.files[A]=R}var a=n("./utf8"),s=n("./utils"),l=n("./stream/GenericWorker"),u=n("./stream/StreamHelper"),d=n("./defaults"),c=n("./compressedObject"),f=n("./zipObject"),p=n("./generate"),v=n("./nodejsUtils"),h=n("./nodejs/NodejsStreamInputAdapter"),g=function(A){A.slice(-1)==="/"&&(A=A.substring(0,A.length-1));var S=A.lastIndexOf("/");return 0<S?A.substring(0,S):""},y=function(A){return A.slice(-1)!=="/"&&(A+="/"),A},m=function(A,S){return S=S!==void 0?S:d.createFolders,A=y(A),this.files[A]||i.call(this,A,null,{dir:!0,createFolders:S}),this.files[A]};function b(A){return Object.prototype.toString.call(A)==="[object RegExp]"}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(A){var S,E,D;for(S in this.files)D=this.files[S],(E=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&A(E,D)},filter:function(A){var S=[];return this.forEach(function(E,D){A(E,D)&&S.push(D)}),S},file:function(A,S,E){if(arguments.length!==1)return A=this.root+A,i.call(this,A,S,E),this;if(b(A)){var D=A;return this.filter(function(M,O){return!O.dir&&D.test(M)})}var _=this.files[this.root+A];return _&&!_.dir?_:null},folder:function(A){if(!A)return this;if(b(A))return this.filter(function(_,M){return M.dir&&A.test(_)});var S=this.root+A,E=m.call(this,S),D=this.clone();return D.root=E.name,D},remove:function(A){A=this.root+A;var S=this.files[A];if(S||(A.slice(-1)!=="/"&&(A+="/"),S=this.files[A]),S&&!S.dir)delete this.files[A];else for(var E=this.filter(function(_,M){return M.name.slice(0,A.length)===A}),D=0;D<E.length;D++)delete this.files[E[D].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(A){var S,E={};try{if((E=s.extend(A||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=E.type.toLowerCase(),E.compression=E.compression.toUpperCase(),E.type==="binarystring"&&(E.type="string"),!E.type)throw new Error("No output type specified.");s.checkSupport(E.type),E.platform!=="darwin"&&E.platform!=="freebsd"&&E.platform!=="linux"&&E.platform!=="sunos"||(E.platform="UNIX"),E.platform==="win32"&&(E.platform="DOS");var D=E.comment||this.comment||"";S=p.generateWorker(this,E,D)}catch(_){(S=new l("error")).error(_)}return new u(S,E.type||"string",E.mimeType)},generateAsync:function(A,S){return this.generateInternalStream(A).accumulate(S)},generateNodeStream:function(A,S){return(A=A||{}).type||(A.type="nodebuffer"),this.generateInternalStream(A).toNodejsStream(S)}};r.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,o){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,o){var i=n("./DataReader");function a(s){i.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}n("../utils").inherits(a,i),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),u=s.charCodeAt(1),d=s.charCodeAt(2),c=s.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===l&&this.data[f+1]===u&&this.data[f+2]===d&&this.data[f+3]===c)return f-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),u=s.charCodeAt(1),d=s.charCodeAt(2),c=s.charCodeAt(3),f=this.readData(4);return l===f[0]&&u===f[1]&&d===f[2]&&c===f[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./DataReader":18}],18:[function(n,r,o){var i=n("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,u=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)u=(u<<8)+this.byteAt(l);return this.index+=s,u},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},r.exports=a},{"../utils":32}],19:[function(n,r,o){var i=n("./Uint8ArrayReader");function a(s){i.call(this,s)}n("../utils").inherits(a,i),a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,o){var i=n("./DataReader");function a(s){i.call(this,s)}n("../utils").inherits(a,i),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,o){var i=n("./ArrayReader");function a(s){i.call(this,s)}n("../utils").inherits(a,i),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,o){var i=n("../utils"),a=n("../support"),s=n("./ArrayReader"),l=n("./StringReader"),u=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(c){var f=i.getTypeOf(c);return i.checkSupport(f),f!=="string"||a.uint8array?f==="nodebuffer"?new u(c):a.uint8array?new d(i.transformTo("uint8array",c)):new s(i.transformTo("array",c)):new l(c)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,o){var i=n("./GenericWorker"),a=n("../utils");function s(l){i.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(s,i),s.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,o){var i=n("./GenericWorker"),a=n("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(s,i),s.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,o){var i=n("../utils"),a=n("./GenericWorker");function s(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(s,a),s.prototype.processChunk=function(l){if(l){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+l.data.length}a.prototype.processChunk.call(this,l)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,o){var i=n("../utils"),a=n("./GenericWorker");function s(l){a.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(d){u.dataIsReady=!0,u.data=d,u.max=d&&d.length||0,u.type=i.getTypeOf(d),u.isPaused||u._tickAndRepeat()},function(d){u.error(d)})}i.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,u);break;case"uint8array":l=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":l=this.data.slice(this.index,u)}return this.index=u,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,o){function i(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var l=0;l<this._listeners[a].length;l++)this._listeners[a][l].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(l){s.processChunk(l)}),a.on("end",function(){s.end()}),a.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},r.exports=i},{}],29:[function(n,r,o){var i=n("../utils"),a=n("./ConvertWorker"),s=n("./GenericWorker"),l=n("../base64"),u=n("../support"),d=n("../external"),c=null;if(u.nodestream)try{c=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(v,h){return new d.Promise(function(g,y){var m=[],b=v._internalType,w=v._outputType,A=v._mimeType;v.on("data",function(S,E){m.push(S),h&&h(E)}).on("error",function(S){m=[],y(S)}).on("end",function(){try{var S=(function(E,D,_){switch(E){case"blob":return i.newBlob(i.transformTo("arraybuffer",D),_);case"base64":return l.encode(D);default:return i.transformTo(E,D)}})(w,(function(E,D){var _,M=0,O=null,k=0;for(_=0;_<D.length;_++)k+=D[_].length;switch(E){case"string":return D.join("");case"array":return Array.prototype.concat.apply([],D);case"uint8array":for(O=new Uint8Array(k),_=0;_<D.length;_++)O.set(D[_],M),M+=D[_].length;return O;case"nodebuffer":return Buffer.concat(D);default:throw new Error("concat : unsupported type '"+E+"'")}})(b,m),A);g(S)}catch(E){y(E)}m=[]}).resume()})}function p(v,h,g){var y=h;switch(h){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=h,this._mimeType=g,i.checkSupport(y),this._worker=v.pipe(new a(y)),v.lock()}catch(m){this._worker=new s("error"),this._worker.error(m)}}p.prototype={accumulate:function(v){return f(this,v)},on:function(v,h){var g=this;return v==="data"?this._worker.on(v,function(y){h.call(g,y.data,y.meta)}):this._worker.on(v,function(){i.delay(h,arguments,g)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(v){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:this._outputType!=="nodebuffer"},v)}},r.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var i=new ArrayBuffer(0);try{o.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),o.blob=a.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!n("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,o){for(var i=n("./utils"),a=n("./support"),s=n("./nodejsUtils"),l=n("./stream/GenericWorker"),u=new Array(256),d=0;d<256;d++)u[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;u[254]=u[254]=1;function c(){l.call(this,"utf-8 decode"),this.leftOver=null}function f(){l.call(this,"utf-8 encode")}o.utf8encode=function(p){return a.nodebuffer?s.newBufferFrom(p,"utf-8"):(function(v){var h,g,y,m,b,w=v.length,A=0;for(m=0;m<w;m++)(64512&(g=v.charCodeAt(m)))==55296&&m+1<w&&(64512&(y=v.charCodeAt(m+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),m++),A+=g<128?1:g<2048?2:g<65536?3:4;for(h=a.uint8array?new Uint8Array(A):new Array(A),m=b=0;b<A;m++)(64512&(g=v.charCodeAt(m)))==55296&&m+1<w&&(64512&(y=v.charCodeAt(m+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),m++),g<128?h[b++]=g:(g<2048?h[b++]=192|g>>>6:(g<65536?h[b++]=224|g>>>12:(h[b++]=240|g>>>18,h[b++]=128|g>>>12&63),h[b++]=128|g>>>6&63),h[b++]=128|63&g);return h})(p)},o.utf8decode=function(p){return a.nodebuffer?i.transformTo("nodebuffer",p).toString("utf-8"):(function(v){var h,g,y,m,b=v.length,w=new Array(2*b);for(h=g=0;h<b;)if((y=v[h++])<128)w[g++]=y;else if(4<(m=u[y]))w[g++]=65533,h+=m-1;else{for(y&=m===2?31:m===3?15:7;1<m&&h<b;)y=y<<6|63&v[h++],m--;1<m?w[g++]=65533:y<65536?w[g++]=y:(y-=65536,w[g++]=55296|y>>10&1023,w[g++]=56320|1023&y)}return w.length!==g&&(w.subarray?w=w.subarray(0,g):w.length=g),i.applyFromCharCode(w)})(p=i.transformTo(a.uint8array?"uint8array":"array",p))},i.inherits(c,l),c.prototype.processChunk=function(p){var v=i.transformTo(a.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var h=v;(v=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),v.set(h,this.leftOver.length)}else v=this.leftOver.concat(v);this.leftOver=null}var g=(function(m,b){var w;for((b=b||m.length)>m.length&&(b=m.length),w=b-1;0<=w&&(192&m[w])==128;)w--;return w<0||w===0?b:w+u[m[w]]>b?w:b})(v),y=v;g!==v.length&&(a.uint8array?(y=v.subarray(0,g),this.leftOver=v.subarray(g,v.length)):(y=v.slice(0,g),this.leftOver=v.slice(g,v.length))),this.push({data:o.utf8decode(y),meta:p.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=c,i.inherits(f,l),f.prototype.processChunk=function(p){this.push({data:o.utf8encode(p.data),meta:p.meta})},o.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,o){var i=n("./support"),a=n("./base64"),s=n("./nodejsUtils"),l=n("./external");function u(h){return h}function d(h,g){for(var y=0;y<h.length;++y)g[y]=255&h.charCodeAt(y);return g}n("setimmediate"),o.newBlob=function(h,g){o.checkSupport("blob");try{return new Blob([h],{type:g})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(h),y.getBlob(g)}catch{throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(h,g,y){var m=[],b=0,w=h.length;if(w<=y)return String.fromCharCode.apply(null,h);for(;b<w;)g==="array"||g==="nodebuffer"?m.push(String.fromCharCode.apply(null,h.slice(b,Math.min(b+y,w)))):m.push(String.fromCharCode.apply(null,h.subarray(b,Math.min(b+y,w)))),b+=y;return m.join("")},stringifyByChar:function(h){for(var g="",y=0;y<h.length;y++)g+=String.fromCharCode(h[y]);return g},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}})()}};function f(h){var g=65536,y=o.getTypeOf(h),m=!0;if(y==="uint8array"?m=c.applyCanBeUsed.uint8array:y==="nodebuffer"&&(m=c.applyCanBeUsed.nodebuffer),m)for(;1<g;)try{return c.stringifyByChunk(h,y,g)}catch{g=Math.floor(g/2)}return c.stringifyByChar(h)}function p(h,g){for(var y=0;y<h.length;y++)g[y]=h[y];return g}o.applyFromCharCode=f;var v={};v.string={string:u,array:function(h){return d(h,new Array(h.length))},arraybuffer:function(h){return v.string.uint8array(h).buffer},uint8array:function(h){return d(h,new Uint8Array(h.length))},nodebuffer:function(h){return d(h,s.allocBuffer(h.length))}},v.array={string:f,array:u,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return s.newBufferFrom(h)}},v.arraybuffer={string:function(h){return f(new Uint8Array(h))},array:function(h){return p(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:u,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return s.newBufferFrom(new Uint8Array(h))}},v.uint8array={string:f,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:u,nodebuffer:function(h){return s.newBufferFrom(h)}},v.nodebuffer={string:f,array:function(h){return p(h,new Array(h.length))},arraybuffer:function(h){return v.nodebuffer.uint8array(h).buffer},uint8array:function(h){return p(h,new Uint8Array(h.length))},nodebuffer:u},o.transformTo=function(h,g){if(g=g||"",!h)return g;o.checkSupport(h);var y=o.getTypeOf(g);return v[y][h](g)},o.resolve=function(h){for(var g=h.split("/"),y=[],m=0;m<g.length;m++){var b=g[m];b==="."||b===""&&m!==0&&m!==g.length-1||(b===".."?y.pop():y.push(b))}return y.join("/")},o.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(h)?"nodebuffer":i.uint8array&&h instanceof Uint8Array?"uint8array":i.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(h){if(!i[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(h){var g,y,m="";for(y=0;y<(h||"").length;y++)m+="\\x"+((g=h.charCodeAt(y))<16?"0":"")+g.toString(16).toUpperCase();return m},o.delay=function(h,g,y){setImmediate(function(){h.apply(y||null,g||[])})},o.inherits=function(h,g){function y(){}y.prototype=g.prototype,h.prototype=new y},o.extend=function(){var h,g,y={};for(h=0;h<arguments.length;h++)for(g in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],g)&&y[g]===void 0&&(y[g]=arguments[h][g]);return y},o.prepareContent=function(h,g,y,m,b){return l.Promise.resolve(g).then(function(w){return i.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new l.Promise(function(A,S){var E=new FileReader;E.onload=function(D){A(D.target.result)},E.onerror=function(D){S(D.target.error)},E.readAsArrayBuffer(w)}):w}).then(function(w){var A=o.getTypeOf(w);return A?(A==="arraybuffer"?w=o.transformTo("uint8array",w):A==="string"&&(b?w=a.decode(w):y&&m!==!0&&(w=(function(S){return d(S,i.uint8array?new Uint8Array(S.length):new Array(S.length))})(w))),w):l.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,o){var i=n("./reader/readerFor"),a=n("./utils"),s=n("./signature"),l=n("./zipEntry"),u=n("./support");function d(c){this.files=[],this.loadOptions=c}d.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(f)+", expected "+a.pretty(c)+")")}},isSignature:function(c,f){var p=this.reader.index;this.reader.setIndex(c);var v=this.reader.readString(4)===f;return this.reader.setIndex(p),v},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var c=this.reader.readData(this.zipCommentLength),f=u.uint8array?"uint8array":"array",p=a.transformTo(f,c);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var c,f,p,v=this.zip64EndOfCentralSize-44;0<v;)c=this.reader.readInt(2),f=this.reader.readInt(4),p=this.reader.readData(f),this.zip64ExtensibleData[c]={id:c,length:f,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var c,f;for(c=0;c<this.files.length;c++)f=this.files[c],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(c=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(c);var f=c;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var v=f-p;if(0<v)this.isSignature(f,s.CENTRAL_FILE_HEADER)||(this.reader.zero=v);else if(v<0)throw new Error("Corrupted zip: missing "+Math.abs(v)+" bytes.")},prepareReader:function(c){this.reader=i(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,o){var i=n("./reader/readerFor"),a=n("./utils"),s=n("./compressedObject"),l=n("./crc32"),u=n("./utf8"),d=n("./compressions"),c=n("./support");function f(p,v){this.options=p,this.loadOptions=v}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var v,h;if(p.skip(22),this.fileNameLength=p.readInt(2),h=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(h),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((v=(function(g){for(var y in d)if(Object.prototype.hasOwnProperty.call(d,y)&&d[y].magic===g)return d[y];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,v,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var v=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(v),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var v,h,g,y=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<y;)v=p.readInt(2),h=p.readInt(2),g=p.readData(h),this.extraFields[v]={id:v,length:h,value:g};p.setIndex(y)},handleUTF8:function(){var p=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var v=this.findExtraFieldUnicodePath();if(v!==null)this.fileNameStr=v;else{var h=a.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var g=this.findExtraFieldUnicodeComment();if(g!==null)this.fileCommentStr=g;else{var y=a.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var v=i(p.value);return v.readInt(1)!==1||l(this.fileName)!==v.readInt(4)?null:u.utf8decode(v.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var v=i(p.value);return v.readInt(1)!==1||l(this.fileComment)!==v.readInt(4)?null:u.utf8decode(v.readData(p.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,o){function i(v,h,g){this.name=v,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=h,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var a=n("./stream/StreamHelper"),s=n("./stream/DataWorker"),l=n("./utf8"),u=n("./compressedObject"),d=n("./stream/GenericWorker");i.prototype={internalStream:function(v){var h=null,g="string";try{if(!v)throw new Error("No output type specified.");var y=(g=v.toLowerCase())==="string"||g==="text";g!=="binarystring"&&g!=="text"||(g="string"),h=this._decompressWorker();var m=!this._dataBinary;m&&!y&&(h=h.pipe(new l.Utf8EncodeWorker)),!m&&y&&(h=h.pipe(new l.Utf8DecodeWorker))}catch(b){(h=new d("error")).error(b)}return new a(h,g,"")},async:function(v,h){return this.internalStream(v).accumulate(h)},nodeStream:function(v,h){return this.internalStream(v||"nodebuffer").toNodejsStream(h)},_compressWorker:function(v,h){if(this._data instanceof u&&this._data.compression.magic===v.magic)return this._data.getCompressedWorker();var g=this._decompressWorker();return this._dataBinary||(g=g.pipe(new l.Utf8EncodeWorker)),u.createWorkerFrom(g,v,h)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof d?this._data:new s(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<c.length;p++)i.prototype[c[p]]=f;r.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,o){(function(i){var a,s,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var u=0,d=new l(v),c=i.document.createTextNode("");d.observe(c,{characterData:!0}),a=function(){c.data=u=++u%2}}else if(i.setImmediate||i.MessageChannel===void 0)a="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var h=i.document.createElement("script");h.onreadystatechange=function(){v(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},i.document.documentElement.appendChild(h)}:function(){setTimeout(v,0)};else{var f=new i.MessageChannel;f.port1.onmessage=v,a=function(){f.port2.postMessage(0)}}var p=[];function v(){var h,g;s=!0;for(var y=p.length;y;){for(g=p,p=[],h=-1;++h<y;)g[h]();y=p.length}s=!1}r.exports=function(h){p.push(h)!==1||s||a()}}).call(this,typeof Hs<"u"?Hs:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,o){var i=n("immediate");function a(){}var s={},l=["REJECTED"],u=["FULFILLED"],d=["PENDING"];function c(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,y!==a&&h(this,y)}function f(y,m,b){this.promise=y,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function p(y,m,b){i(function(){var w;try{w=m(b)}catch(A){return s.reject(y,A)}w===y?s.reject(y,new TypeError("Cannot resolve promise with itself")):s.resolve(y,w)})}function v(y){var m=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof m=="function")return function(){m.apply(y,arguments)}}function h(y,m){var b=!1;function w(E){b||(b=!0,s.reject(y,E))}function A(E){b||(b=!0,s.resolve(y,E))}var S=g(function(){m(A,w)});S.status==="error"&&w(S.value)}function g(y,m){var b={};try{b.value=y(m),b.status="success"}catch(w){b.status="error",b.value=w}return b}(r.exports=c).prototype.finally=function(y){if(typeof y!="function")return this;var m=this.constructor;return this.then(function(b){return m.resolve(y()).then(function(){return b})},function(b){return m.resolve(y()).then(function(){throw b})})},c.prototype.catch=function(y){return this.then(null,y)},c.prototype.then=function(y,m){if(typeof y!="function"&&this.state===u||typeof m!="function"&&this.state===l)return this;var b=new this.constructor(a);return this.state!==d?p(b,this.state===u?y:m,this.outcome):this.queue.push(new f(b,y,m)),b},f.prototype.callFulfilled=function(y){s.resolve(this.promise,y)},f.prototype.otherCallFulfilled=function(y){p(this.promise,this.onFulfilled,y)},f.prototype.callRejected=function(y){s.reject(this.promise,y)},f.prototype.otherCallRejected=function(y){p(this.promise,this.onRejected,y)},s.resolve=function(y,m){var b=g(v,m);if(b.status==="error")return s.reject(y,b.value);var w=b.value;if(w)h(y,w);else{y.state=u,y.outcome=m;for(var A=-1,S=y.queue.length;++A<S;)y.queue[A].callFulfilled(m)}return y},s.reject=function(y,m){y.state=l,y.outcome=m;for(var b=-1,w=y.queue.length;++b<w;)y.queue[b].callRejected(m);return y},c.resolve=function(y){return y instanceof this?y:s.resolve(new this(a),y)},c.reject=function(y){var m=new this(a);return s.reject(m,y)},c.all=function(y){var m=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=y.length,w=!1;if(!b)return this.resolve([]);for(var A=new Array(b),S=0,E=-1,D=new this(a);++E<b;)_(y[E],E);return D;function _(M,O){m.resolve(M).then(function(k){A[O]=k,++S!==b||w||(w=!0,s.resolve(D,A))},function(k){w||(w=!0,s.reject(D,k))})}},c.race=function(y){var m=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=y.length,w=!1;if(!b)return this.resolve([]);for(var A=-1,S=new this(a);++A<b;)E=y[A],m.resolve(E).then(function(D){w||(w=!0,s.resolve(S,D))},function(D){w||(w=!0,s.reject(S,D))});var E;return S}},{immediate:36}],38:[function(n,r,o){var i={};(0,n("./lib/utils/common").assign)(i,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,o){var i=n("./zlib/deflate"),a=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/messages"),u=n("./zlib/zstream"),d=Object.prototype.toString,c=0,f=-1,p=0,v=8;function h(y){if(!(this instanceof h))return new h(y);this.options=a.assign({level:f,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},y||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var b=i.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(b!==c)throw new Error(l[b]);if(m.header&&i.deflateSetHeader(this.strm,m.header),m.dictionary){var w;if(w=typeof m.dictionary=="string"?s.string2buf(m.dictionary):d.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(b=i.deflateSetDictionary(this.strm,w))!==c)throw new Error(l[b]);this._dict_set=!0}}function g(y,m){var b=new h(m);if(b.push(y,!0),b.err)throw b.msg||l[b.err];return b.result}h.prototype.push=function(y,m){var b,w,A=this.strm,S=this.options.chunkSize;if(this.ended)return!1;w=m===~~m?m:m===!0?4:0,typeof y=="string"?A.input=s.string2buf(y):d.call(y)==="[object ArrayBuffer]"?A.input=new Uint8Array(y):A.input=y,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new a.Buf8(S),A.next_out=0,A.avail_out=S),(b=i.deflate(A,w))!==1&&b!==c)return this.onEnd(b),!(this.ended=!0);A.avail_out!==0&&(A.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(A.output,A.next_out))):this.onData(a.shrinkBuf(A.output,A.next_out)))}while((0<A.avail_in||A.avail_out===0)&&b!==1);return w===4?(b=i.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===c):w!==2||(this.onEnd(c),!(A.avail_out=0))},h.prototype.onData=function(y){this.chunks.push(y)},h.prototype.onEnd=function(y){y===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},o.Deflate=h,o.deflate=g,o.deflateRaw=function(y,m){return(m=m||{}).raw=!0,g(y,m)},o.gzip=function(y,m){return(m=m||{}).gzip=!0,g(y,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,o){var i=n("./zlib/inflate"),a=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/constants"),u=n("./zlib/messages"),d=n("./zlib/zstream"),c=n("./zlib/gzheader"),f=Object.prototype.toString;function p(h){if(!(this instanceof p))return new p(h);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},h||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||h&&h.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var y=i.inflateInit2(this.strm,g.windowBits);if(y!==l.Z_OK)throw new Error(u[y]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function v(h,g){var y=new p(g);if(y.push(h,!0),y.err)throw y.msg||u[y.err];return y.result}p.prototype.push=function(h,g){var y,m,b,w,A,S,E=this.strm,D=this.options.chunkSize,_=this.options.dictionary,M=!1;if(this.ended)return!1;m=g===~~g?g:g===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof h=="string"?E.input=s.binstring2buf(h):f.call(h)==="[object ArrayBuffer]"?E.input=new Uint8Array(h):E.input=h,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new a.Buf8(D),E.next_out=0,E.avail_out=D),(y=i.inflate(E,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&_&&(S=typeof _=="string"?s.string2buf(_):f.call(_)==="[object ArrayBuffer]"?new Uint8Array(_):_,y=i.inflateSetDictionary(this.strm,S)),y===l.Z_BUF_ERROR&&M===!0&&(y=l.Z_OK,M=!1),y!==l.Z_STREAM_END&&y!==l.Z_OK)return this.onEnd(y),!(this.ended=!0);E.next_out&&(E.avail_out!==0&&y!==l.Z_STREAM_END&&(E.avail_in!==0||m!==l.Z_FINISH&&m!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=s.utf8border(E.output,E.next_out),w=E.next_out-b,A=s.buf2string(E.output,b),E.next_out=w,E.avail_out=D-w,w&&a.arraySet(E.output,E.output,b,w,0),this.onData(A)):this.onData(a.shrinkBuf(E.output,E.next_out)))),E.avail_in===0&&E.avail_out===0&&(M=!0)}while((0<E.avail_in||E.avail_out===0)&&y!==l.Z_STREAM_END);return y===l.Z_STREAM_END&&(m=l.Z_FINISH),m===l.Z_FINISH?(y=i.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===l.Z_OK):m!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(E.avail_out=0))},p.prototype.onData=function(h){this.chunks.push(h)},p.prototype.onEnd=function(h){h===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},o.Inflate=p,o.inflate=v,o.inflateRaw=function(h,g){return(g=g||{}).raw=!0,v(h,g)},o.ungzip=v},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(l){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var d=u.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var c in d)d.hasOwnProperty(c)&&(l[c]=d[c])}}return l},o.shrinkBuf=function(l,u){return l.length===u?l:l.subarray?l.subarray(0,u):(l.length=u,l)};var a={arraySet:function(l,u,d,c,f){if(u.subarray&&l.subarray)l.set(u.subarray(d,d+c),f);else for(var p=0;p<c;p++)l[f+p]=u[d+p]},flattenChunks:function(l){var u,d,c,f,p,v;for(u=c=0,d=l.length;u<d;u++)c+=l[u].length;for(v=new Uint8Array(c),u=f=0,d=l.length;u<d;u++)p=l[u],v.set(p,f),f+=p.length;return v}},s={arraySet:function(l,u,d,c,f){for(var p=0;p<c;p++)l[f+p]=u[d+p]},flattenChunks:function(l){return[].concat.apply([],l)}};o.setTyped=function(l){l?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,a)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,s))},o.setTyped(i)},{}],42:[function(n,r,o){var i=n("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new i.Buf8(256),u=0;u<256;u++)l[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function d(c,f){if(f<65537&&(c.subarray&&s||!c.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(c,f));for(var p="",v=0;v<f;v++)p+=String.fromCharCode(c[v]);return p}l[254]=l[254]=1,o.string2buf=function(c){var f,p,v,h,g,y=c.length,m=0;for(h=0;h<y;h++)(64512&(p=c.charCodeAt(h)))==55296&&h+1<y&&(64512&(v=c.charCodeAt(h+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),h++),m+=p<128?1:p<2048?2:p<65536?3:4;for(f=new i.Buf8(m),h=g=0;g<m;h++)(64512&(p=c.charCodeAt(h)))==55296&&h+1<y&&(64512&(v=c.charCodeAt(h+1)))==56320&&(p=65536+(p-55296<<10)+(v-56320),h++),p<128?f[g++]=p:(p<2048?f[g++]=192|p>>>6:(p<65536?f[g++]=224|p>>>12:(f[g++]=240|p>>>18,f[g++]=128|p>>>12&63),f[g++]=128|p>>>6&63),f[g++]=128|63&p);return f},o.buf2binstring=function(c){return d(c,c.length)},o.binstring2buf=function(c){for(var f=new i.Buf8(c.length),p=0,v=f.length;p<v;p++)f[p]=c.charCodeAt(p);return f},o.buf2string=function(c,f){var p,v,h,g,y=f||c.length,m=new Array(2*y);for(p=v=0;p<y;)if((h=c[p++])<128)m[v++]=h;else if(4<(g=l[h]))m[v++]=65533,p+=g-1;else{for(h&=g===2?31:g===3?15:7;1<g&&p<y;)h=h<<6|63&c[p++],g--;1<g?m[v++]=65533:h<65536?m[v++]=h:(h-=65536,m[v++]=55296|h>>10&1023,m[v++]=56320|1023&h)}return d(m,v)},o.utf8border=function(c,f){var p;for((f=f||c.length)>c.length&&(f=c.length),p=f-1;0<=p&&(192&c[p])==128;)p--;return p<0||p===0?f:p+l[c[p]]>f?p:f}},{"./common":41}],43:[function(n,r,o){r.exports=function(i,a,s,l){for(var u=65535&i|0,d=i>>>16&65535|0,c=0;s!==0;){for(s-=c=2e3<s?2e3:s;d=d+(u=u+a[l++]|0)|0,--c;);u%=65521,d%=65521}return u|d<<16|0}},{}],44:[function(n,r,o){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,o){var i=(function(){for(var a,s=[],l=0;l<256;l++){a=l;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;s[l]=a}return s})();r.exports=function(a,s,l,u){var d=i,c=u+l;a^=-1;for(var f=u;f<c;f++)a=a>>>8^d[255&(a^s[f])];return-1^a}},{}],46:[function(n,r,o){var i,a=n("../utils/common"),s=n("./trees"),l=n("./adler32"),u=n("./crc32"),d=n("./messages"),c=0,f=4,p=0,v=-2,h=-1,g=4,y=2,m=8,b=9,w=286,A=30,S=19,E=2*w+1,D=15,_=3,M=258,O=M+_+1,k=42,R=113,N=1,W=2,B=3,z=4;function j(Q,me){return Q.msg=d[me],me}function q(Q){return(Q<<1)-(4<Q?9:0)}function Y(Q){for(var me=Q.length;0<=--me;)Q[me]=0}function U(Q){var me=Q.state,De=me.pending;De>Q.avail_out&&(De=Q.avail_out),De!==0&&(a.arraySet(Q.output,me.pending_buf,me.pending_out,De,Q.next_out),Q.next_out+=De,me.pending_out+=De,Q.total_out+=De,Q.avail_out-=De,me.pending-=De,me.pending===0&&(me.pending_out=0))}function F(Q,me){s._tr_flush_block(Q,0<=Q.block_start?Q.block_start:-1,Q.strstart-Q.block_start,me),Q.block_start=Q.strstart,U(Q.strm)}function H(Q,me){Q.pending_buf[Q.pending++]=me}function re(Q,me){Q.pending_buf[Q.pending++]=me>>>8&255,Q.pending_buf[Q.pending++]=255&me}function X(Q,me){var De,pe,ie=Q.max_chain_length,ue=Q.strstart,Be=Q.prev_length,Me=Q.nice_match,Fe=Q.strstart>Q.w_size-O?Q.strstart-(Q.w_size-O):0,ze=Q.window,Ne=Q.w_mask,Re=Q.prev,gt=Q.strstart+M,Bt=ze[ue+Be-1],Lt=ze[ue+Be];Q.prev_length>=Q.good_match&&(ie>>=2),Me>Q.lookahead&&(Me=Q.lookahead);do if(ze[(De=me)+Be]===Lt&&ze[De+Be-1]===Bt&&ze[De]===ze[ue]&&ze[++De]===ze[ue+1]){ue+=2,De++;do;while(ze[++ue]===ze[++De]&&ze[++ue]===ze[++De]&&ze[++ue]===ze[++De]&&ze[++ue]===ze[++De]&&ze[++ue]===ze[++De]&&ze[++ue]===ze[++De]&&ze[++ue]===ze[++De]&&ze[++ue]===ze[++De]&&ue<gt);if(pe=M-(gt-ue),ue=gt-M,Be<pe){if(Q.match_start=me,Me<=(Be=pe))break;Bt=ze[ue+Be-1],Lt=ze[ue+Be]}}while((me=Re[me&Ne])>Fe&&--ie!=0);return Be<=Q.lookahead?Be:Q.lookahead}function te(Q){var me,De,pe,ie,ue,Be,Me,Fe,ze,Ne,Re=Q.w_size;do{if(ie=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=Re+(Re-O)){for(a.arraySet(Q.window,Q.window,Re,Re,0),Q.match_start-=Re,Q.strstart-=Re,Q.block_start-=Re,me=De=Q.hash_size;pe=Q.head[--me],Q.head[me]=Re<=pe?pe-Re:0,--De;);for(me=De=Re;pe=Q.prev[--me],Q.prev[me]=Re<=pe?pe-Re:0,--De;);ie+=Re}if(Q.strm.avail_in===0)break;if(Be=Q.strm,Me=Q.window,Fe=Q.strstart+Q.lookahead,ze=ie,Ne=void 0,Ne=Be.avail_in,ze<Ne&&(Ne=ze),De=Ne===0?0:(Be.avail_in-=Ne,a.arraySet(Me,Be.input,Be.next_in,Ne,Fe),Be.state.wrap===1?Be.adler=l(Be.adler,Me,Ne,Fe):Be.state.wrap===2&&(Be.adler=u(Be.adler,Me,Ne,Fe)),Be.next_in+=Ne,Be.total_in+=Ne,Ne),Q.lookahead+=De,Q.lookahead+Q.insert>=_)for(ue=Q.strstart-Q.insert,Q.ins_h=Q.window[ue],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[ue+1])&Q.hash_mask;Q.insert&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[ue+_-1])&Q.hash_mask,Q.prev[ue&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=ue,ue++,Q.insert--,!(Q.lookahead+Q.insert<_)););}while(Q.lookahead<O&&Q.strm.avail_in!==0)}function Z(Q,me){for(var De,pe;;){if(Q.lookahead<O){if(te(Q),Q.lookahead<O&&me===c)return N;if(Q.lookahead===0)break}if(De=0,Q.lookahead>=_&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+_-1])&Q.hash_mask,De=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),De!==0&&Q.strstart-De<=Q.w_size-O&&(Q.match_length=X(Q,De)),Q.match_length>=_)if(pe=s._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-_),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=_){for(Q.match_length--;Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+_-1])&Q.hash_mask,De=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart,--Q.match_length!=0;);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else pe=s._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(pe&&(F(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=Q.strstart<_-1?Q.strstart:_-1,me===f?(F(Q,!0),Q.strm.avail_out===0?B:z):Q.last_lit&&(F(Q,!1),Q.strm.avail_out===0)?N:W}function le(Q,me){for(var De,pe,ie;;){if(Q.lookahead<O){if(te(Q),Q.lookahead<O&&me===c)return N;if(Q.lookahead===0)break}if(De=0,Q.lookahead>=_&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+_-1])&Q.hash_mask,De=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=_-1,De!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-De<=Q.w_size-O&&(Q.match_length=X(Q,De),Q.match_length<=5&&(Q.strategy===1||Q.match_length===_&&4096<Q.strstart-Q.match_start)&&(Q.match_length=_-1)),Q.prev_length>=_&&Q.match_length<=Q.prev_length){for(ie=Q.strstart+Q.lookahead-_,pe=s._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-_),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;++Q.strstart<=ie&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+_-1])&Q.hash_mask,De=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),--Q.prev_length!=0;);if(Q.match_available=0,Q.match_length=_-1,Q.strstart++,pe&&(F(Q,!1),Q.strm.avail_out===0))return N}else if(Q.match_available){if((pe=s._tr_tally(Q,0,Q.window[Q.strstart-1]))&&F(Q,!1),Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return N}else Q.match_available=1,Q.strstart++,Q.lookahead--}return Q.match_available&&(pe=s._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0),Q.insert=Q.strstart<_-1?Q.strstart:_-1,me===f?(F(Q,!0),Q.strm.avail_out===0?B:z):Q.last_lit&&(F(Q,!1),Q.strm.avail_out===0)?N:W}function ve(Q,me,De,pe,ie){this.good_length=Q,this.max_lazy=me,this.nice_length=De,this.max_chain=pe,this.func=ie}function Pe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*E),this.dyn_dtree=new a.Buf16(2*(2*A+1)),this.bl_tree=new a.Buf16(2*(2*S+1)),Y(this.dyn_ltree),Y(this.dyn_dtree),Y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(D+1),this.heap=new a.Buf16(2*w+1),Y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*w+1),Y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ae(Q){var me;return Q&&Q.state?(Q.total_in=Q.total_out=0,Q.data_type=y,(me=Q.state).pending=0,me.pending_out=0,me.wrap<0&&(me.wrap=-me.wrap),me.status=me.wrap?k:R,Q.adler=me.wrap===2?0:1,me.last_flush=c,s._tr_init(me),p):j(Q,v)}function he(Q){var me=Ae(Q);return me===p&&(function(De){De.window_size=2*De.w_size,Y(De.head),De.max_lazy_match=i[De.level].max_lazy,De.good_match=i[De.level].good_length,De.nice_match=i[De.level].nice_length,De.max_chain_length=i[De.level].max_chain,De.strstart=0,De.block_start=0,De.lookahead=0,De.insert=0,De.match_length=De.prev_length=_-1,De.match_available=0,De.ins_h=0})(Q.state),me}function Ee(Q,me,De,pe,ie,ue){if(!Q)return v;var Be=1;if(me===h&&(me=6),pe<0?(Be=0,pe=-pe):15<pe&&(Be=2,pe-=16),ie<1||b<ie||De!==m||pe<8||15<pe||me<0||9<me||ue<0||g<ue)return j(Q,v);pe===8&&(pe=9);var Me=new Pe;return(Q.state=Me).strm=Q,Me.wrap=Be,Me.gzhead=null,Me.w_bits=pe,Me.w_size=1<<Me.w_bits,Me.w_mask=Me.w_size-1,Me.hash_bits=ie+7,Me.hash_size=1<<Me.hash_bits,Me.hash_mask=Me.hash_size-1,Me.hash_shift=~~((Me.hash_bits+_-1)/_),Me.window=new a.Buf8(2*Me.w_size),Me.head=new a.Buf16(Me.hash_size),Me.prev=new a.Buf16(Me.w_size),Me.lit_bufsize=1<<ie+6,Me.pending_buf_size=4*Me.lit_bufsize,Me.pending_buf=new a.Buf8(Me.pending_buf_size),Me.d_buf=1*Me.lit_bufsize,Me.l_buf=3*Me.lit_bufsize,Me.level=me,Me.strategy=ue,Me.method=De,he(Q)}i=[new ve(0,0,0,0,function(Q,me){var De=65535;for(De>Q.pending_buf_size-5&&(De=Q.pending_buf_size-5);;){if(Q.lookahead<=1){if(te(Q),Q.lookahead===0&&me===c)return N;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var pe=Q.block_start+De;if((Q.strstart===0||Q.strstart>=pe)&&(Q.lookahead=Q.strstart-pe,Q.strstart=pe,F(Q,!1),Q.strm.avail_out===0)||Q.strstart-Q.block_start>=Q.w_size-O&&(F(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=0,me===f?(F(Q,!0),Q.strm.avail_out===0?B:z):(Q.strstart>Q.block_start&&(F(Q,!1),Q.strm.avail_out),N)}),new ve(4,4,8,4,Z),new ve(4,5,16,8,Z),new ve(4,6,32,32,Z),new ve(4,4,16,16,le),new ve(8,16,32,32,le),new ve(8,16,128,128,le),new ve(8,32,128,256,le),new ve(32,128,258,1024,le),new ve(32,258,258,4096,le)],o.deflateInit=function(Q,me){return Ee(Q,me,m,15,8,0)},o.deflateInit2=Ee,o.deflateReset=he,o.deflateResetKeep=Ae,o.deflateSetHeader=function(Q,me){return Q&&Q.state?Q.state.wrap!==2?v:(Q.state.gzhead=me,p):v},o.deflate=function(Q,me){var De,pe,ie,ue;if(!Q||!Q.state||5<me||me<0)return Q?j(Q,v):v;if(pe=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||pe.status===666&&me!==f)return j(Q,Q.avail_out===0?-5:v);if(pe.strm=Q,De=pe.last_flush,pe.last_flush=me,pe.status===k)if(pe.wrap===2)Q.adler=0,H(pe,31),H(pe,139),H(pe,8),pe.gzhead?(H(pe,(pe.gzhead.text?1:0)+(pe.gzhead.hcrc?2:0)+(pe.gzhead.extra?4:0)+(pe.gzhead.name?8:0)+(pe.gzhead.comment?16:0)),H(pe,255&pe.gzhead.time),H(pe,pe.gzhead.time>>8&255),H(pe,pe.gzhead.time>>16&255),H(pe,pe.gzhead.time>>24&255),H(pe,pe.level===9?2:2<=pe.strategy||pe.level<2?4:0),H(pe,255&pe.gzhead.os),pe.gzhead.extra&&pe.gzhead.extra.length&&(H(pe,255&pe.gzhead.extra.length),H(pe,pe.gzhead.extra.length>>8&255)),pe.gzhead.hcrc&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending,0)),pe.gzindex=0,pe.status=69):(H(pe,0),H(pe,0),H(pe,0),H(pe,0),H(pe,0),H(pe,pe.level===9?2:2<=pe.strategy||pe.level<2?4:0),H(pe,3),pe.status=R);else{var Be=m+(pe.w_bits-8<<4)<<8;Be|=(2<=pe.strategy||pe.level<2?0:pe.level<6?1:pe.level===6?2:3)<<6,pe.strstart!==0&&(Be|=32),Be+=31-Be%31,pe.status=R,re(pe,Be),pe.strstart!==0&&(re(pe,Q.adler>>>16),re(pe,65535&Q.adler)),Q.adler=1}if(pe.status===69)if(pe.gzhead.extra){for(ie=pe.pending;pe.gzindex<(65535&pe.gzhead.extra.length)&&(pe.pending!==pe.pending_buf_size||(pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),U(Q),ie=pe.pending,pe.pending!==pe.pending_buf_size));)H(pe,255&pe.gzhead.extra[pe.gzindex]),pe.gzindex++;pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),pe.gzindex===pe.gzhead.extra.length&&(pe.gzindex=0,pe.status=73)}else pe.status=73;if(pe.status===73)if(pe.gzhead.name){ie=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),U(Q),ie=pe.pending,pe.pending===pe.pending_buf_size)){ue=1;break}ue=pe.gzindex<pe.gzhead.name.length?255&pe.gzhead.name.charCodeAt(pe.gzindex++):0,H(pe,ue)}while(ue!==0);pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),ue===0&&(pe.gzindex=0,pe.status=91)}else pe.status=91;if(pe.status===91)if(pe.gzhead.comment){ie=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),U(Q),ie=pe.pending,pe.pending===pe.pending_buf_size)){ue=1;break}ue=pe.gzindex<pe.gzhead.comment.length?255&pe.gzhead.comment.charCodeAt(pe.gzindex++):0,H(pe,ue)}while(ue!==0);pe.gzhead.hcrc&&pe.pending>ie&&(Q.adler=u(Q.adler,pe.pending_buf,pe.pending-ie,ie)),ue===0&&(pe.status=103)}else pe.status=103;if(pe.status===103&&(pe.gzhead.hcrc?(pe.pending+2>pe.pending_buf_size&&U(Q),pe.pending+2<=pe.pending_buf_size&&(H(pe,255&Q.adler),H(pe,Q.adler>>8&255),Q.adler=0,pe.status=R)):pe.status=R),pe.pending!==0){if(U(Q),Q.avail_out===0)return pe.last_flush=-1,p}else if(Q.avail_in===0&&q(me)<=q(De)&&me!==f)return j(Q,-5);if(pe.status===666&&Q.avail_in!==0)return j(Q,-5);if(Q.avail_in!==0||pe.lookahead!==0||me!==c&&pe.status!==666){var Me=pe.strategy===2?(function(Fe,ze){for(var Ne;;){if(Fe.lookahead===0&&(te(Fe),Fe.lookahead===0)){if(ze===c)return N;break}if(Fe.match_length=0,Ne=s._tr_tally(Fe,0,Fe.window[Fe.strstart]),Fe.lookahead--,Fe.strstart++,Ne&&(F(Fe,!1),Fe.strm.avail_out===0))return N}return Fe.insert=0,ze===f?(F(Fe,!0),Fe.strm.avail_out===0?B:z):Fe.last_lit&&(F(Fe,!1),Fe.strm.avail_out===0)?N:W})(pe,me):pe.strategy===3?(function(Fe,ze){for(var Ne,Re,gt,Bt,Lt=Fe.window;;){if(Fe.lookahead<=M){if(te(Fe),Fe.lookahead<=M&&ze===c)return N;if(Fe.lookahead===0)break}if(Fe.match_length=0,Fe.lookahead>=_&&0<Fe.strstart&&(Re=Lt[gt=Fe.strstart-1])===Lt[++gt]&&Re===Lt[++gt]&&Re===Lt[++gt]){Bt=Fe.strstart+M;do;while(Re===Lt[++gt]&&Re===Lt[++gt]&&Re===Lt[++gt]&&Re===Lt[++gt]&&Re===Lt[++gt]&&Re===Lt[++gt]&&Re===Lt[++gt]&&Re===Lt[++gt]&><Bt);Fe.match_length=M-(Bt-gt),Fe.match_length>Fe.lookahead&&(Fe.match_length=Fe.lookahead)}if(Fe.match_length>=_?(Ne=s._tr_tally(Fe,1,Fe.match_length-_),Fe.lookahead-=Fe.match_length,Fe.strstart+=Fe.match_length,Fe.match_length=0):(Ne=s._tr_tally(Fe,0,Fe.window[Fe.strstart]),Fe.lookahead--,Fe.strstart++),Ne&&(F(Fe,!1),Fe.strm.avail_out===0))return N}return Fe.insert=0,ze===f?(F(Fe,!0),Fe.strm.avail_out===0?B:z):Fe.last_lit&&(F(Fe,!1),Fe.strm.avail_out===0)?N:W})(pe,me):i[pe.level].func(pe,me);if(Me!==B&&Me!==z||(pe.status=666),Me===N||Me===B)return Q.avail_out===0&&(pe.last_flush=-1),p;if(Me===W&&(me===1?s._tr_align(pe):me!==5&&(s._tr_stored_block(pe,0,0,!1),me===3&&(Y(pe.head),pe.lookahead===0&&(pe.strstart=0,pe.block_start=0,pe.insert=0))),U(Q),Q.avail_out===0))return pe.last_flush=-1,p}return me!==f?p:pe.wrap<=0?1:(pe.wrap===2?(H(pe,255&Q.adler),H(pe,Q.adler>>8&255),H(pe,Q.adler>>16&255),H(pe,Q.adler>>24&255),H(pe,255&Q.total_in),H(pe,Q.total_in>>8&255),H(pe,Q.total_in>>16&255),H(pe,Q.total_in>>24&255)):(re(pe,Q.adler>>>16),re(pe,65535&Q.adler)),U(Q),0<pe.wrap&&(pe.wrap=-pe.wrap),pe.pending!==0?p:1)},o.deflateEnd=function(Q){var me;return Q&&Q.state?(me=Q.state.status)!==k&&me!==69&&me!==73&&me!==91&&me!==103&&me!==R&&me!==666?j(Q,v):(Q.state=null,me===R?j(Q,-3):p):v},o.deflateSetDictionary=function(Q,me){var De,pe,ie,ue,Be,Me,Fe,ze,Ne=me.length;if(!Q||!Q.state||(ue=(De=Q.state).wrap)===2||ue===1&&De.status!==k||De.lookahead)return v;for(ue===1&&(Q.adler=l(Q.adler,me,Ne,0)),De.wrap=0,Ne>=De.w_size&&(ue===0&&(Y(De.head),De.strstart=0,De.block_start=0,De.insert=0),ze=new a.Buf8(De.w_size),a.arraySet(ze,me,Ne-De.w_size,De.w_size,0),me=ze,Ne=De.w_size),Be=Q.avail_in,Me=Q.next_in,Fe=Q.input,Q.avail_in=Ne,Q.next_in=0,Q.input=me,te(De);De.lookahead>=_;){for(pe=De.strstart,ie=De.lookahead-(_-1);De.ins_h=(De.ins_h<<De.hash_shift^De.window[pe+_-1])&De.hash_mask,De.prev[pe&De.w_mask]=De.head[De.ins_h],De.head[De.ins_h]=pe,pe++,--ie;);De.strstart=pe,De.lookahead=_-1,te(De)}return De.strstart+=De.lookahead,De.block_start=De.strstart,De.insert=De.lookahead,De.lookahead=0,De.match_length=De.prev_length=_-1,De.match_available=0,Q.next_in=Me,Q.input=Fe,Q.avail_in=Be,De.wrap=ue,p},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,o){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,o){r.exports=function(i,a){var s,l,u,d,c,f,p,v,h,g,y,m,b,w,A,S,E,D,_,M,O,k,R,N,W;s=i.state,l=i.next_in,N=i.input,u=l+(i.avail_in-5),d=i.next_out,W=i.output,c=d-(a-i.avail_out),f=d+(i.avail_out-257),p=s.dmax,v=s.wsize,h=s.whave,g=s.wnext,y=s.window,m=s.hold,b=s.bits,w=s.lencode,A=s.distcode,S=(1<<s.lenbits)-1,E=(1<<s.distbits)-1;e:do{b<15&&(m+=N[l++]<<b,b+=8,m+=N[l++]<<b,b+=8),D=w[m&S];t:for(;;){if(m>>>=_=D>>>24,b-=_,(_=D>>>16&255)===0)W[d++]=65535&D;else{if(!(16&_)){if((64&_)==0){D=w[(65535&D)+(m&(1<<_)-1)];continue t}if(32&_){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}M=65535&D,(_&=15)&&(b<_&&(m+=N[l++]<<b,b+=8),M+=m&(1<<_)-1,m>>>=_,b-=_),b<15&&(m+=N[l++]<<b,b+=8,m+=N[l++]<<b,b+=8),D=A[m&E];n:for(;;){if(m>>>=_=D>>>24,b-=_,!(16&(_=D>>>16&255))){if((64&_)==0){D=A[(65535&D)+(m&(1<<_)-1)];continue n}i.msg="invalid distance code",s.mode=30;break e}if(O=65535&D,b<(_&=15)&&(m+=N[l++]<<b,(b+=8)<_&&(m+=N[l++]<<b,b+=8)),p<(O+=m&(1<<_)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(m>>>=_,b-=_,(_=d-c)<O){if(h<(_=O-_)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(R=y,(k=0)===g){if(k+=v-_,_<M){for(M-=_;W[d++]=y[k++],--_;);k=d-O,R=W}}else if(g<_){if(k+=v+g-_,(_-=g)<M){for(M-=_;W[d++]=y[k++],--_;);if(k=0,g<M){for(M-=_=g;W[d++]=y[k++],--_;);k=d-O,R=W}}}else if(k+=g-_,_<M){for(M-=_;W[d++]=y[k++],--_;);k=d-O,R=W}for(;2<M;)W[d++]=R[k++],W[d++]=R[k++],W[d++]=R[k++],M-=3;M&&(W[d++]=R[k++],1<M&&(W[d++]=R[k++]))}else{for(k=d-O;W[d++]=W[k++],W[d++]=W[k++],W[d++]=W[k++],2<(M-=3););M&&(W[d++]=W[k++],1<M&&(W[d++]=W[k++]))}break}}break}}while(l<u&&d<f);l-=M=b>>3,m&=(1<<(b-=M<<3))-1,i.next_in=l,i.next_out=d,i.avail_in=l<u?u-l+5:5-(l-u),i.avail_out=d<f?f-d+257:257-(d-f),s.hold=m,s.bits=b}},{}],49:[function(n,r,o){var i=n("../utils/common"),a=n("./adler32"),s=n("./crc32"),l=n("./inffast"),u=n("./inftrees"),d=1,c=2,f=0,p=-2,v=1,h=852,g=592;function y(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(k){var R;return k&&k.state?(R=k.state,k.total_in=k.total_out=R.total=0,k.msg="",R.wrap&&(k.adler=1&R.wrap),R.mode=v,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new i.Buf32(h),R.distcode=R.distdyn=new i.Buf32(g),R.sane=1,R.back=-1,f):p}function w(k){var R;return k&&k.state?((R=k.state).wsize=0,R.whave=0,R.wnext=0,b(k)):p}function A(k,R){var N,W;return k&&k.state?(W=k.state,R<0?(N=0,R=-R):(N=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15<R)?p:(W.window!==null&&W.wbits!==R&&(W.window=null),W.wrap=N,W.wbits=R,w(k))):p}function S(k,R){var N,W;return k?(W=new m,(k.state=W).window=null,(N=A(k,R))!==f&&(k.state=null),N):p}var E,D,_=!0;function M(k){if(_){var R;for(E=new i.Buf32(512),D=new i.Buf32(32),R=0;R<144;)k.lens[R++]=8;for(;R<256;)k.lens[R++]=9;for(;R<280;)k.lens[R++]=7;for(;R<288;)k.lens[R++]=8;for(u(d,k.lens,0,288,E,0,k.work,{bits:9}),R=0;R<32;)k.lens[R++]=5;u(c,k.lens,0,32,D,0,k.work,{bits:5}),_=!1}k.lencode=E,k.lenbits=9,k.distcode=D,k.distbits=5}function O(k,R,N,W){var B,z=k.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new i.Buf8(z.wsize)),W>=z.wsize?(i.arraySet(z.window,R,N-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(W<(B=z.wsize-z.wnext)&&(B=W),i.arraySet(z.window,R,N-W,B,z.wnext),(W-=B)?(i.arraySet(z.window,R,N-W,W,0),z.wnext=W,z.whave=z.wsize):(z.wnext+=B,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=B))),0}o.inflateReset=w,o.inflateReset2=A,o.inflateResetKeep=b,o.inflateInit=function(k){return S(k,15)},o.inflateInit2=S,o.inflate=function(k,R){var N,W,B,z,j,q,Y,U,F,H,re,X,te,Z,le,ve,Pe,Ae,he,Ee,Q,me,De,pe,ie=0,ue=new i.Buf8(4),Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return p;(N=k.state).mode===12&&(N.mode=13),j=k.next_out,B=k.output,Y=k.avail_out,z=k.next_in,W=k.input,q=k.avail_in,U=N.hold,F=N.bits,H=q,re=Y,me=f;e:for(;;)switch(N.mode){case v:if(N.wrap===0){N.mode=13;break}for(;F<16;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if(2&N.wrap&&U===35615){ue[N.check=0]=255&U,ue[1]=U>>>8&255,N.check=s(N.check,ue,2,0),F=U=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&U)<<8)+(U>>8))%31){k.msg="incorrect header check",N.mode=30;break}if((15&U)!=8){k.msg="unknown compression method",N.mode=30;break}if(F-=4,Q=8+(15&(U>>>=4)),N.wbits===0)N.wbits=Q;else if(Q>N.wbits){k.msg="invalid window size",N.mode=30;break}N.dmax=1<<Q,k.adler=N.check=1,N.mode=512&U?10:12,F=U=0;break;case 2:for(;F<16;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if(N.flags=U,(255&N.flags)!=8){k.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){k.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=U>>8&1),512&N.flags&&(ue[0]=255&U,ue[1]=U>>>8&255,N.check=s(N.check,ue,2,0)),F=U=0,N.mode=3;case 3:for(;F<32;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}N.head&&(N.head.time=U),512&N.flags&&(ue[0]=255&U,ue[1]=U>>>8&255,ue[2]=U>>>16&255,ue[3]=U>>>24&255,N.check=s(N.check,ue,4,0)),F=U=0,N.mode=4;case 4:for(;F<16;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}N.head&&(N.head.xflags=255&U,N.head.os=U>>8),512&N.flags&&(ue[0]=255&U,ue[1]=U>>>8&255,N.check=s(N.check,ue,2,0)),F=U=0,N.mode=5;case 5:if(1024&N.flags){for(;F<16;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}N.length=U,N.head&&(N.head.extra_len=U),512&N.flags&&(ue[0]=255&U,ue[1]=U>>>8&255,N.check=s(N.check,ue,2,0)),F=U=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(q<(X=N.length)&&(X=q),X&&(N.head&&(Q=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),i.arraySet(N.head.extra,W,z,X,Q)),512&N.flags&&(N.check=s(N.check,W,X,z)),q-=X,z+=X,N.length-=X),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(q===0)break e;for(X=0;Q=W[z+X++],N.head&&Q&&N.length<65536&&(N.head.name+=String.fromCharCode(Q)),Q&&X<q;);if(512&N.flags&&(N.check=s(N.check,W,X,z)),q-=X,z+=X,Q)break e}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(q===0)break e;for(X=0;Q=W[z+X++],N.head&&Q&&N.length<65536&&(N.head.comment+=String.fromCharCode(Q)),Q&&X<q;);if(512&N.flags&&(N.check=s(N.check,W,X,z)),q-=X,z+=X,Q)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;F<16;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if(U!==(65535&N.check)){k.msg="header crc mismatch",N.mode=30;break}F=U=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),k.adler=N.check=0,N.mode=12;break;case 10:for(;F<32;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}k.adler=N.check=y(U),F=U=0,N.mode=11;case 11:if(N.havedict===0)return k.next_out=j,k.avail_out=Y,k.next_in=z,k.avail_in=q,N.hold=U,N.bits=F,2;k.adler=N.check=1,N.mode=12;case 12:if(R===5||R===6)break e;case 13:if(N.last){U>>>=7&F,F-=7&F,N.mode=27;break}for(;F<3;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}switch(N.last=1&U,F-=1,3&(U>>>=1)){case 0:N.mode=14;break;case 1:if(M(N),N.mode=20,R!==6)break;U>>>=2,F-=2;break e;case 2:N.mode=17;break;case 3:k.msg="invalid block type",N.mode=30}U>>>=2,F-=2;break;case 14:for(U>>>=7&F,F-=7&F;F<32;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if((65535&U)!=(U>>>16^65535)){k.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&U,F=U=0,N.mode=15,R===6)break e;case 15:N.mode=16;case 16:if(X=N.length){if(q<X&&(X=q),Y<X&&(X=Y),X===0)break e;i.arraySet(B,W,z,X,j),q-=X,z+=X,Y-=X,j+=X,N.length-=X;break}N.mode=12;break;case 17:for(;F<14;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if(N.nlen=257+(31&U),U>>>=5,F-=5,N.ndist=1+(31&U),U>>>=5,F-=5,N.ncode=4+(15&U),U>>>=4,F-=4,286<N.nlen||30<N.ndist){k.msg="too many length or distance symbols",N.mode=30;break}N.have=0,N.mode=18;case 18:for(;N.have<N.ncode;){for(;F<3;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}N.lens[Be[N.have++]]=7&U,U>>>=3,F-=3}for(;N.have<19;)N.lens[Be[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,De={bits:N.lenbits},me=u(0,N.lens,0,19,N.lencode,0,N.work,De),N.lenbits=De.bits,me){k.msg="invalid code lengths set",N.mode=30;break}N.have=0,N.mode=19;case 19:for(;N.have<N.nlen+N.ndist;){for(;ve=(ie=N.lencode[U&(1<<N.lenbits)-1])>>>16&255,Pe=65535&ie,!((le=ie>>>24)<=F);){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if(Pe<16)U>>>=le,F-=le,N.lens[N.have++]=Pe;else{if(Pe===16){for(pe=le+2;F<pe;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if(U>>>=le,F-=le,N.have===0){k.msg="invalid bit length repeat",N.mode=30;break}Q=N.lens[N.have-1],X=3+(3&U),U>>>=2,F-=2}else if(Pe===17){for(pe=le+3;F<pe;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}F-=le,Q=0,X=3+(7&(U>>>=le)),U>>>=3,F-=3}else{for(pe=le+7;F<pe;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}F-=le,Q=0,X=11+(127&(U>>>=le)),U>>>=7,F-=7}if(N.have+X>N.nlen+N.ndist){k.msg="invalid bit length repeat",N.mode=30;break}for(;X--;)N.lens[N.have++]=Q}}if(N.mode===30)break;if(N.lens[256]===0){k.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,De={bits:N.lenbits},me=u(d,N.lens,0,N.nlen,N.lencode,0,N.work,De),N.lenbits=De.bits,me){k.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,De={bits:N.distbits},me=u(c,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,De),N.distbits=De.bits,me){k.msg="invalid distances set",N.mode=30;break}if(N.mode=20,R===6)break e;case 20:N.mode=21;case 21:if(6<=q&&258<=Y){k.next_out=j,k.avail_out=Y,k.next_in=z,k.avail_in=q,N.hold=U,N.bits=F,l(k,re),j=k.next_out,B=k.output,Y=k.avail_out,z=k.next_in,W=k.input,q=k.avail_in,U=N.hold,F=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;ve=(ie=N.lencode[U&(1<<N.lenbits)-1])>>>16&255,Pe=65535&ie,!((le=ie>>>24)<=F);){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if(ve&&(240&ve)==0){for(Ae=le,he=ve,Ee=Pe;ve=(ie=N.lencode[Ee+((U&(1<<Ae+he)-1)>>Ae)])>>>16&255,Pe=65535&ie,!(Ae+(le=ie>>>24)<=F);){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}U>>>=Ae,F-=Ae,N.back+=Ae}if(U>>>=le,F-=le,N.back+=le,N.length=Pe,ve===0){N.mode=26;break}if(32&ve){N.back=-1,N.mode=12;break}if(64&ve){k.msg="invalid literal/length code",N.mode=30;break}N.extra=15&ve,N.mode=22;case 22:if(N.extra){for(pe=N.extra;F<pe;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}N.length+=U&(1<<N.extra)-1,U>>>=N.extra,F-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;ve=(ie=N.distcode[U&(1<<N.distbits)-1])>>>16&255,Pe=65535&ie,!((le=ie>>>24)<=F);){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if((240&ve)==0){for(Ae=le,he=ve,Ee=Pe;ve=(ie=N.distcode[Ee+((U&(1<<Ae+he)-1)>>Ae)])>>>16&255,Pe=65535&ie,!(Ae+(le=ie>>>24)<=F);){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}U>>>=Ae,F-=Ae,N.back+=Ae}if(U>>>=le,F-=le,N.back+=le,64&ve){k.msg="invalid distance code",N.mode=30;break}N.offset=Pe,N.extra=15&ve,N.mode=24;case 24:if(N.extra){for(pe=N.extra;F<pe;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}N.offset+=U&(1<<N.extra)-1,U>>>=N.extra,F-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){k.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(Y===0)break e;if(X=re-Y,N.offset>X){if((X=N.offset-X)>N.whave&&N.sane){k.msg="invalid distance too far back",N.mode=30;break}te=X>N.wnext?(X-=N.wnext,N.wsize-X):N.wnext-X,X>N.length&&(X=N.length),Z=N.window}else Z=B,te=j-N.offset,X=N.length;for(Y<X&&(X=Y),Y-=X,N.length-=X;B[j++]=Z[te++],--X;);N.length===0&&(N.mode=21);break;case 26:if(Y===0)break e;B[j++]=N.length,Y--,N.mode=21;break;case 27:if(N.wrap){for(;F<32;){if(q===0)break e;q--,U|=W[z++]<<F,F+=8}if(re-=Y,k.total_out+=re,N.total+=re,re&&(k.adler=N.check=N.flags?s(N.check,B,re,j-re):a(N.check,B,re,j-re)),re=Y,(N.flags?U:y(U))!==N.check){k.msg="incorrect data check",N.mode=30;break}F=U=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;F<32;){if(q===0)break e;q--,U+=W[z++]<<F,F+=8}if(U!==(4294967295&N.total)){k.msg="incorrect length check",N.mode=30;break}F=U=0}N.mode=29;case 29:me=1;break e;case 30:me=-3;break e;case 31:return-4;case 32:default:return p}return k.next_out=j,k.avail_out=Y,k.next_in=z,k.avail_in=q,N.hold=U,N.bits=F,(N.wsize||re!==k.avail_out&&N.mode<30&&(N.mode<27||R!==4))&&O(k,k.output,k.next_out,re-k.avail_out)?(N.mode=31,-4):(H-=k.avail_in,re-=k.avail_out,k.total_in+=H,k.total_out+=re,N.total+=re,N.wrap&&re&&(k.adler=N.check=N.flags?s(N.check,B,re,k.next_out-re):a(N.check,B,re,k.next_out-re)),k.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(H==0&&re===0||R===4)&&me===f&&(me=-5),me)},o.inflateEnd=function(k){if(!k||!k.state)return p;var R=k.state;return R.window&&(R.window=null),k.state=null,f},o.inflateGetHeader=function(k,R){var N;return k&&k.state?(2&(N=k.state).wrap)==0?p:((N.head=R).done=!1,f):p},o.inflateSetDictionary=function(k,R){var N,W=R.length;return k&&k.state?(N=k.state).wrap!==0&&N.mode!==11?p:N.mode===11&&a(1,R,W,0)!==N.check?-3:O(k,R,W,W)?(N.mode=31,-4):(N.havedict=1,f):p},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,o){var i=n("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],u=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(d,c,f,p,v,h,g,y){var m,b,w,A,S,E,D,_,M,O=y.bits,k=0,R=0,N=0,W=0,B=0,z=0,j=0,q=0,Y=0,U=0,F=null,H=0,re=new i.Buf16(16),X=new i.Buf16(16),te=null,Z=0;for(k=0;k<=15;k++)re[k]=0;for(R=0;R<p;R++)re[c[f+R]]++;for(B=O,W=15;1<=W&&re[W]===0;W--);if(W<B&&(B=W),W===0)return v[h++]=20971520,v[h++]=20971520,y.bits=1,0;for(N=1;N<W&&re[N]===0;N++);for(B<N&&(B=N),k=q=1;k<=15;k++)if(q<<=1,(q-=re[k])<0)return-1;if(0<q&&(d===0||W!==1))return-1;for(X[1]=0,k=1;k<15;k++)X[k+1]=X[k]+re[k];for(R=0;R<p;R++)c[f+R]!==0&&(g[X[c[f+R]]++]=R);if(E=d===0?(F=te=g,19):d===1?(F=a,H-=257,te=s,Z-=257,256):(F=l,te=u,-1),k=N,S=h,j=R=U=0,w=-1,A=(Y=1<<(z=B))-1,d===1&&852<Y||d===2&&592<Y)return 1;for(;;){for(D=k-j,M=g[R]<E?(_=0,g[R]):g[R]>E?(_=te[Z+g[R]],F[H+g[R]]):(_=96,0),m=1<<k-j,N=b=1<<z;v[S+(U>>j)+(b-=m)]=D<<24|_<<16|M|0,b!==0;);for(m=1<<k-1;U&m;)m>>=1;if(m!==0?(U&=m-1,U+=m):U=0,R++,--re[k]==0){if(k===W)break;k=c[f+g[R]]}if(B<k&&(U&A)!==w){for(j===0&&(j=B),S+=N,q=1<<(z=k-j);z+j<W&&!((q-=re[z+j])<=0);)z++,q<<=1;if(Y+=1<<z,d===1&&852<Y||d===2&&592<Y)return 1;v[w=U&A]=B<<24|z<<16|S-h|0}}return U!==0&&(v[S+U]=k-j<<24|64<<16|0),y.bits=B,0}},{"../utils/common":41}],51:[function(n,r,o){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,o){var i=n("../utils/common"),a=0,s=1;function l(ie){for(var ue=ie.length;0<=--ue;)ie[ue]=0}var u=0,d=29,c=256,f=c+1+d,p=30,v=19,h=2*f+1,g=15,y=16,m=7,b=256,w=16,A=17,S=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=new Array(2*(f+2));l(O);var k=new Array(2*p);l(k);var R=new Array(512);l(R);var N=new Array(256);l(N);var W=new Array(d);l(W);var B,z,j,q=new Array(p);function Y(ie,ue,Be,Me,Fe){this.static_tree=ie,this.extra_bits=ue,this.extra_base=Be,this.elems=Me,this.max_length=Fe,this.has_stree=ie&&ie.length}function U(ie,ue){this.dyn_tree=ie,this.max_code=0,this.stat_desc=ue}function F(ie){return ie<256?R[ie]:R[256+(ie>>>7)]}function H(ie,ue){ie.pending_buf[ie.pending++]=255&ue,ie.pending_buf[ie.pending++]=ue>>>8&255}function re(ie,ue,Be){ie.bi_valid>y-Be?(ie.bi_buf|=ue<<ie.bi_valid&65535,H(ie,ie.bi_buf),ie.bi_buf=ue>>y-ie.bi_valid,ie.bi_valid+=Be-y):(ie.bi_buf|=ue<<ie.bi_valid&65535,ie.bi_valid+=Be)}function X(ie,ue,Be){re(ie,Be[2*ue],Be[2*ue+1])}function te(ie,ue){for(var Be=0;Be|=1&ie,ie>>>=1,Be<<=1,0<--ue;);return Be>>>1}function Z(ie,ue,Be){var Me,Fe,ze=new Array(g+1),Ne=0;for(Me=1;Me<=g;Me++)ze[Me]=Ne=Ne+Be[Me-1]<<1;for(Fe=0;Fe<=ue;Fe++){var Re=ie[2*Fe+1];Re!==0&&(ie[2*Fe]=te(ze[Re]++,Re))}}function le(ie){var ue;for(ue=0;ue<f;ue++)ie.dyn_ltree[2*ue]=0;for(ue=0;ue<p;ue++)ie.dyn_dtree[2*ue]=0;for(ue=0;ue<v;ue++)ie.bl_tree[2*ue]=0;ie.dyn_ltree[2*b]=1,ie.opt_len=ie.static_len=0,ie.last_lit=ie.matches=0}function ve(ie){8<ie.bi_valid?H(ie,ie.bi_buf):0<ie.bi_valid&&(ie.pending_buf[ie.pending++]=ie.bi_buf),ie.bi_buf=0,ie.bi_valid=0}function Pe(ie,ue,Be,Me){var Fe=2*ue,ze=2*Be;return ie[Fe]<ie[ze]||ie[Fe]===ie[ze]&&Me[ue]<=Me[Be]}function Ae(ie,ue,Be){for(var Me=ie.heap[Be],Fe=Be<<1;Fe<=ie.heap_len&&(Fe<ie.heap_len&&Pe(ue,ie.heap[Fe+1],ie.heap[Fe],ie.depth)&&Fe++,!Pe(ue,Me,ie.heap[Fe],ie.depth));)ie.heap[Be]=ie.heap[Fe],Be=Fe,Fe<<=1;ie.heap[Be]=Me}function he(ie,ue,Be){var Me,Fe,ze,Ne,Re=0;if(ie.last_lit!==0)for(;Me=ie.pending_buf[ie.d_buf+2*Re]<<8|ie.pending_buf[ie.d_buf+2*Re+1],Fe=ie.pending_buf[ie.l_buf+Re],Re++,Me===0?X(ie,Fe,ue):(X(ie,(ze=N[Fe])+c+1,ue),(Ne=E[ze])!==0&&re(ie,Fe-=W[ze],Ne),X(ie,ze=F(--Me),Be),(Ne=D[ze])!==0&&re(ie,Me-=q[ze],Ne)),Re<ie.last_lit;);X(ie,b,ue)}function Ee(ie,ue){var Be,Me,Fe,ze=ue.dyn_tree,Ne=ue.stat_desc.static_tree,Re=ue.stat_desc.has_stree,gt=ue.stat_desc.elems,Bt=-1;for(ie.heap_len=0,ie.heap_max=h,Be=0;Be<gt;Be++)ze[2*Be]!==0?(ie.heap[++ie.heap_len]=Bt=Be,ie.depth[Be]=0):ze[2*Be+1]=0;for(;ie.heap_len<2;)ze[2*(Fe=ie.heap[++ie.heap_len]=Bt<2?++Bt:0)]=1,ie.depth[Fe]=0,ie.opt_len--,Re&&(ie.static_len-=Ne[2*Fe+1]);for(ue.max_code=Bt,Be=ie.heap_len>>1;1<=Be;Be--)Ae(ie,ze,Be);for(Fe=gt;Be=ie.heap[1],ie.heap[1]=ie.heap[ie.heap_len--],Ae(ie,ze,1),Me=ie.heap[1],ie.heap[--ie.heap_max]=Be,ie.heap[--ie.heap_max]=Me,ze[2*Fe]=ze[2*Be]+ze[2*Me],ie.depth[Fe]=(ie.depth[Be]>=ie.depth[Me]?ie.depth[Be]:ie.depth[Me])+1,ze[2*Be+1]=ze[2*Me+1]=Fe,ie.heap[1]=Fe++,Ae(ie,ze,1),2<=ie.heap_len;);ie.heap[--ie.heap_max]=ie.heap[1],(function(Lt,an){var Kt,Ht,pt,Dt,dt,it,de=an.dyn_tree,tt=an.max_code,ft=an.stat_desc.static_tree,Mt=an.stat_desc.has_stree,Tn=an.stat_desc.extra_bits,Nn=an.stat_desc.extra_base,We=an.stat_desc.max_length,ke=0;for(Dt=0;Dt<=g;Dt++)Lt.bl_count[Dt]=0;for(de[2*Lt.heap[Lt.heap_max]+1]=0,Kt=Lt.heap_max+1;Kt<h;Kt++)We<(Dt=de[2*de[2*(Ht=Lt.heap[Kt])+1]+1]+1)&&(Dt=We,ke++),de[2*Ht+1]=Dt,tt<Ht||(Lt.bl_count[Dt]++,dt=0,Nn<=Ht&&(dt=Tn[Ht-Nn]),it=de[2*Ht],Lt.opt_len+=it*(Dt+dt),Mt&&(Lt.static_len+=it*(ft[2*Ht+1]+dt)));if(ke!==0){do{for(Dt=We-1;Lt.bl_count[Dt]===0;)Dt--;Lt.bl_count[Dt]--,Lt.bl_count[Dt+1]+=2,Lt.bl_count[We]--,ke-=2}while(0<ke);for(Dt=We;Dt!==0;Dt--)for(Ht=Lt.bl_count[Dt];Ht!==0;)tt<(pt=Lt.heap[--Kt])||(de[2*pt+1]!==Dt&&(Lt.opt_len+=(Dt-de[2*pt+1])*de[2*pt],de[2*pt+1]=Dt),Ht--)}})(ie,ue),Z(ze,Bt,ie.bl_count)}function Q(ie,ue,Be){var Me,Fe,ze=-1,Ne=ue[1],Re=0,gt=7,Bt=4;for(Ne===0&&(gt=138,Bt=3),ue[2*(Be+1)+1]=65535,Me=0;Me<=Be;Me++)Fe=Ne,Ne=ue[2*(Me+1)+1],++Re<gt&&Fe===Ne||(Re<Bt?ie.bl_tree[2*Fe]+=Re:Fe!==0?(Fe!==ze&&ie.bl_tree[2*Fe]++,ie.bl_tree[2*w]++):Re<=10?ie.bl_tree[2*A]++:ie.bl_tree[2*S]++,ze=Fe,Bt=(Re=0)===Ne?(gt=138,3):Fe===Ne?(gt=6,3):(gt=7,4))}function me(ie,ue,Be){var Me,Fe,ze=-1,Ne=ue[1],Re=0,gt=7,Bt=4;for(Ne===0&&(gt=138,Bt=3),Me=0;Me<=Be;Me++)if(Fe=Ne,Ne=ue[2*(Me+1)+1],!(++Re<gt&&Fe===Ne)){if(Re<Bt)for(;X(ie,Fe,ie.bl_tree),--Re!=0;);else Fe!==0?(Fe!==ze&&(X(ie,Fe,ie.bl_tree),Re--),X(ie,w,ie.bl_tree),re(ie,Re-3,2)):Re<=10?(X(ie,A,ie.bl_tree),re(ie,Re-3,3)):(X(ie,S,ie.bl_tree),re(ie,Re-11,7));ze=Fe,Bt=(Re=0)===Ne?(gt=138,3):Fe===Ne?(gt=6,3):(gt=7,4)}}l(q);var De=!1;function pe(ie,ue,Be,Me){re(ie,(u<<1)+(Me?1:0),3),(function(Fe,ze,Ne,Re){ve(Fe),H(Fe,Ne),H(Fe,~Ne),i.arraySet(Fe.pending_buf,Fe.window,ze,Ne,Fe.pending),Fe.pending+=Ne})(ie,ue,Be)}o._tr_init=function(ie){De||((function(){var ue,Be,Me,Fe,ze,Ne=new Array(g+1);for(Fe=Me=0;Fe<d-1;Fe++)for(W[Fe]=Me,ue=0;ue<1<<E[Fe];ue++)N[Me++]=Fe;for(N[Me-1]=Fe,Fe=ze=0;Fe<16;Fe++)for(q[Fe]=ze,ue=0;ue<1<<D[Fe];ue++)R[ze++]=Fe;for(ze>>=7;Fe<p;Fe++)for(q[Fe]=ze<<7,ue=0;ue<1<<D[Fe]-7;ue++)R[256+ze++]=Fe;for(Be=0;Be<=g;Be++)Ne[Be]=0;for(ue=0;ue<=143;)O[2*ue+1]=8,ue++,Ne[8]++;for(;ue<=255;)O[2*ue+1]=9,ue++,Ne[9]++;for(;ue<=279;)O[2*ue+1]=7,ue++,Ne[7]++;for(;ue<=287;)O[2*ue+1]=8,ue++,Ne[8]++;for(Z(O,f+1,Ne),ue=0;ue<p;ue++)k[2*ue+1]=5,k[2*ue]=te(ue,5);B=new Y(O,E,c+1,f,g),z=new Y(k,D,0,p,g),j=new Y(new Array(0),_,0,v,m)})(),De=!0),ie.l_desc=new U(ie.dyn_ltree,B),ie.d_desc=new U(ie.dyn_dtree,z),ie.bl_desc=new U(ie.bl_tree,j),ie.bi_buf=0,ie.bi_valid=0,le(ie)},o._tr_stored_block=pe,o._tr_flush_block=function(ie,ue,Be,Me){var Fe,ze,Ne=0;0<ie.level?(ie.strm.data_type===2&&(ie.strm.data_type=(function(Re){var gt,Bt=4093624447;for(gt=0;gt<=31;gt++,Bt>>>=1)if(1&Bt&&Re.dyn_ltree[2*gt]!==0)return a;if(Re.dyn_ltree[18]!==0||Re.dyn_ltree[20]!==0||Re.dyn_ltree[26]!==0)return s;for(gt=32;gt<c;gt++)if(Re.dyn_ltree[2*gt]!==0)return s;return a})(ie)),Ee(ie,ie.l_desc),Ee(ie,ie.d_desc),Ne=(function(Re){var gt;for(Q(Re,Re.dyn_ltree,Re.l_desc.max_code),Q(Re,Re.dyn_dtree,Re.d_desc.max_code),Ee(Re,Re.bl_desc),gt=v-1;3<=gt&&Re.bl_tree[2*M[gt]+1]===0;gt--);return Re.opt_len+=3*(gt+1)+5+5+4,gt})(ie),Fe=ie.opt_len+3+7>>>3,(ze=ie.static_len+3+7>>>3)<=Fe&&(Fe=ze)):Fe=ze=Be+5,Be+4<=Fe&&ue!==-1?pe(ie,ue,Be,Me):ie.strategy===4||ze===Fe?(re(ie,2+(Me?1:0),3),he(ie,O,k)):(re(ie,4+(Me?1:0),3),(function(Re,gt,Bt,Lt){var an;for(re(Re,gt-257,5),re(Re,Bt-1,5),re(Re,Lt-4,4),an=0;an<Lt;an++)re(Re,Re.bl_tree[2*M[an]+1],3);me(Re,Re.dyn_ltree,gt-1),me(Re,Re.dyn_dtree,Bt-1)})(ie,ie.l_desc.max_code+1,ie.d_desc.max_code+1,Ne+1),he(ie,ie.dyn_ltree,ie.dyn_dtree)),le(ie),Me&&ve(ie)},o._tr_tally=function(ie,ue,Be){return ie.pending_buf[ie.d_buf+2*ie.last_lit]=ue>>>8&255,ie.pending_buf[ie.d_buf+2*ie.last_lit+1]=255&ue,ie.pending_buf[ie.l_buf+ie.last_lit]=255&Be,ie.last_lit++,ue===0?ie.dyn_ltree[2*Be]++:(ie.matches++,ue--,ie.dyn_ltree[2*(N[Be]+c+1)]++,ie.dyn_dtree[2*F(ue)]++),ie.last_lit===ie.lit_bufsize-1},o._tr_align=function(ie){re(ie,2,3),X(ie,b,O),(function(ue){ue.bi_valid===16?(H(ue,ue.bi_buf),ue.bi_buf=0,ue.bi_valid=0):8<=ue.bi_valid&&(ue.pending_buf[ue.pending++]=255&ue.bi_buf,ue.bi_buf>>=8,ue.bi_valid-=8)})(ie)}},{"../utils/common":41}],53:[function(n,r,o){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,o){(function(i){(function(a,s){if(!a.setImmediate){var l,u,d,c,f=1,p={},v=!1,h=a.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(a);g=g&&g.setTimeout?g:a,l={}.toString.call(a.process)==="[object process]"?function(w){process.nextTick(function(){m(w)})}:(function(){if(a.postMessage&&!a.importScripts){var w=!0,A=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=A,w}})()?(c="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",b,!1):a.attachEvent("onmessage",b),function(w){a.postMessage(c+w,"*")}):a.MessageChannel?((d=new MessageChannel).port1.onmessage=function(w){m(w.data)},function(w){d.port2.postMessage(w)}):h&&"onreadystatechange"in h.createElement("script")?(u=h.documentElement,function(w){var A=h.createElement("script");A.onreadystatechange=function(){m(w),A.onreadystatechange=null,u.removeChild(A),A=null},u.appendChild(A)}):function(w){setTimeout(m,0,w)},g.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var A=new Array(arguments.length-1),S=0;S<A.length;S++)A[S]=arguments[S+1];var E={callback:w,args:A};return p[f]=E,l(f),f++},g.clearImmediate=y}function y(w){delete p[w]}function m(w){if(v)setTimeout(m,0,w);else{var A=p[w];if(A){v=!0;try{(function(S){var E=S.callback,D=S.args;switch(D.length){case 0:E();break;case 1:E(D[0]);break;case 2:E(D[0],D[1]);break;case 3:E(D[0],D[1],D[2]);break;default:E.apply(s,D)}})(A)}finally{y(w),v=!1}}}}function b(w){w.source===a&&typeof w.data=="string"&&w.data.indexOf(c)===0&&m(+w.data.slice(c.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof Hs<"u"?Hs:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(vO)),vO.exports}var Qte;function R4e(){if(Qte)return L2;Qte=1;var e=zut(),t=$ut();L2.openArrayBuffer=n,L2.splitPath=r,L2.joinPath=o;function n(i){return t.loadAsync(i).then(function(a){function s(c){return a.file(c)!==null}function l(c,f){return a.file(c).async("uint8array").then(function(p){if(f==="base64")return e.fromByteArray(p);if(f){var v=new TextDecoder(f);return v.decode(p)}else return p})}function u(c,f){a.file(c,f)}function d(){return a.generateAsync({type:"arraybuffer"})}return{exists:s,read:l,write:u,toArrayBuffer:d}})}function r(i){var a=i.lastIndexOf("/");return a===-1?{dirname:"",basename:i}:{dirname:i.substring(0,a),basename:i.substring(a+1)}}function o(){var i=Array.prototype.filter.call(arguments,function(s){return s}),a=[];return i.forEach(function(s){/^\//.test(s)?a=[s]:a.push(s)}),a.join("/")}return L2}var Bx={},Rp={},Hm={},Zte;function B4e(){if(Zte)return Hm;Zte=1;var e=Pa;Hm.Element=n,Hm.element=function(i,a,s){return new n(i,a,s)},Hm.text=function(i){return{type:"text",value:i}};var t=Hm.emptyElement={first:function(){return null},firstOrEmpty:function(){return t},attributes:{},children:[]};function n(i,a,s){this.type="element",this.name=i,this.attributes=a||{},this.children=s||[]}n.prototype.first=function(i){return e.find(this.children,function(a){return a.name===i})},n.prototype.firstOrEmpty=function(i){return this.first(i)||t},n.prototype.getElementsByTagName=function(i){var a=e.filter(this.children,function(s){return s.name===i});return o(a)},n.prototype.text=function(){if(this.children.length===0)return"";if(this.children.length!==1||this.children[0].type!=="text")throw new Error("Not implemented");return this.children[0].value};var r={getElementsByTagName:function(i){return o(e.flatten(this.map(function(a){return a.getElementsByTagName(i)},!0)))}};function o(i){return e.extend(i,r)}return Hm}var mO={},Lx={},U2={},hf={},Z0={},Xte;function ND(){if(Xte)return Z0;Xte=1;function e(i,a,s){if(s===void 0&&(s=Array.prototype),i&&typeof s.find=="function")return s.find.call(i,a);for(var l=0;l<i.length;l++)if(Object.prototype.hasOwnProperty.call(i,l)){var u=i[l];if(a.call(void 0,u,l,i))return u}}function t(i,a){return a===void 0&&(a=Object),a&&typeof a.freeze=="function"?a.freeze(i):i}function n(i,a){if(i===null||typeof i!="object")throw new TypeError("target is not an object");for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s]);return i}var r=t({HTML:"text/html",isHTML:function(i){return i===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(i){return i===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return Z0.assign=n,Z0.find=e,Z0.freeze=t,Z0.MIME_TYPE=r,Z0.NAMESPACE=o,Z0}var Jte;function RV(){if(Jte)return hf;Jte=1;var e=ND(),t=e.find,n=e.NAMESPACE;function r(We){return We!==""}function o(We){return We?We.split(/[\t\n\f\r ]+/).filter(r):[]}function i(We,ke){return We.hasOwnProperty(ke)||(We[ke]=!0),We}function a(We){if(!We)return[];var ke=o(We);return Object.keys(ke.reduce(i,{}))}function s(We){return function(ke){return We&&We.indexOf(ke)!==-1}}function l(We,ke){for(var be in We)Object.prototype.hasOwnProperty.call(We,be)&&(ke[be]=We[be])}function u(We,ke){var be=We.prototype;if(!(be instanceof ke)){let fe=function(){};fe.prototype=ke.prototype,fe=new fe,l(be,fe),We.prototype=be=fe}be.constructor!=We&&(typeof We!="function"&&console.error("unknown Class:"+We),be.constructor=We)}var d={},c=d.ELEMENT_NODE=1,f=d.ATTRIBUTE_NODE=2,p=d.TEXT_NODE=3,v=d.CDATA_SECTION_NODE=4,h=d.ENTITY_REFERENCE_NODE=5,g=d.ENTITY_NODE=6,y=d.PROCESSING_INSTRUCTION_NODE=7,m=d.COMMENT_NODE=8,b=d.DOCUMENT_NODE=9,w=d.DOCUMENT_TYPE_NODE=10,A=d.DOCUMENT_FRAGMENT_NODE=11,S=d.NOTATION_NODE=12,E={},D={};E.INDEX_SIZE_ERR=(D[1]="Index size error",1),E.DOMSTRING_SIZE_ERR=(D[2]="DOMString size error",2);var _=E.HIERARCHY_REQUEST_ERR=(D[3]="Hierarchy request error",3);E.WRONG_DOCUMENT_ERR=(D[4]="Wrong document",4),E.INVALID_CHARACTER_ERR=(D[5]="Invalid character",5),E.NO_DATA_ALLOWED_ERR=(D[6]="No data allowed",6),E.NO_MODIFICATION_ALLOWED_ERR=(D[7]="No modification allowed",7);var M=E.NOT_FOUND_ERR=(D[8]="Not found",8);E.NOT_SUPPORTED_ERR=(D[9]="Not supported",9);var O=E.INUSE_ATTRIBUTE_ERR=(D[10]="Attribute in use",10);E.INVALID_STATE_ERR=(D[11]="Invalid state",11),E.SYNTAX_ERR=(D[12]="Syntax error",12),E.INVALID_MODIFICATION_ERR=(D[13]="Invalid modification",13),E.NAMESPACE_ERR=(D[14]="Invalid namespace",14),E.INVALID_ACCESS_ERR=(D[15]="Invalid access",15);function k(We,ke){if(ke instanceof Error)var be=ke;else be=this,Error.call(this,D[We]),this.message=D[We],Error.captureStackTrace&&Error.captureStackTrace(this,k);return be.code=We,ke&&(this.message=this.message+": "+ke),be}k.prototype=Error.prototype,l(E,k);function R(){}R.prototype={length:0,item:function(We){return We>=0&&We<this.length?this[We]:null},toString:function(We,ke){for(var be=[],fe=0;fe<this.length;fe++)ft(this[fe],be,We,ke);return be.join("")},filter:function(We){return Array.prototype.filter.call(this,We)},indexOf:function(We){return Array.prototype.indexOf.call(this,We)}};function N(We,ke){this._node=We,this._refresh=ke,W(this)}function W(We){var ke=We._node._inc||We._node.ownerDocument._inc;if(We._inc!==ke){var be=We._refresh(We._node);if(Nn(We,"length",be.length),!We.$$length||be.length<We.$$length)for(var fe=be.length;fe in We;fe++)Object.prototype.hasOwnProperty.call(We,fe)&&delete We[fe];l(be,We),We._inc=ke}}N.prototype.item=function(We){return W(this),this[We]||null},u(N,R);function B(){}function z(We,ke){for(var be=We.length;be--;)if(We[be]===ke)return be}function j(We,ke,be,fe){if(fe?ke[z(ke,fe)]=be:ke[ke.length++]=be,We){be.ownerElement=We;var Se=We.ownerDocument;Se&&(fe&&te(Se,We,fe),X(Se,We,be))}}function q(We,ke,be){var fe=z(ke,be);if(fe>=0){for(var Se=ke.length-1;fe<Se;)ke[fe]=ke[++fe];if(ke.length=Se,We){var qe=We.ownerDocument;qe&&(te(qe,We,be),be.ownerElement=null)}}else throw new k(M,new Error(We.tagName+"@"+be))}B.prototype={length:0,item:R.prototype.item,getNamedItem:function(We){for(var ke=this.length;ke--;){var be=this[ke];if(be.nodeName==We)return be}},setNamedItem:function(We){var ke=We.ownerElement;if(ke&&ke!=this._ownerElement)throw new k(O);var be=this.getNamedItem(We.nodeName);return j(this._ownerElement,this,We,be),be},setNamedItemNS:function(We){var ke=We.ownerElement,be;if(ke&&ke!=this._ownerElement)throw new k(O);return be=this.getNamedItemNS(We.namespaceURI,We.localName),j(this._ownerElement,this,We,be),be},removeNamedItem:function(We){var ke=this.getNamedItem(We);return q(this._ownerElement,this,ke),ke},removeNamedItemNS:function(We,ke){var be=this.getNamedItemNS(We,ke);return q(this._ownerElement,this,be),be},getNamedItemNS:function(We,ke){for(var be=this.length;be--;){var fe=this[be];if(fe.localName==ke&&fe.namespaceURI==We)return fe}return null}};function Y(){}Y.prototype={hasFeature:function(We,ke){return!0},createDocument:function(We,ke,be){var fe=new re;if(fe.implementation=this,fe.childNodes=new R,fe.doctype=be||null,be&&fe.appendChild(be),ke){var Se=fe.createElementNS(We,ke);fe.appendChild(Se)}return fe},createDocumentType:function(We,ke,be){var fe=new Lt;return fe.name=We,fe.nodeName=We,fe.publicId=ke||"",fe.systemId=be||"",fe}};function U(){}U.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(We,ke){return ue(this,We,ke)},replaceChild:function(We,ke){ue(this,We,ke,ie),ke&&this.removeChild(ke)},removeChild:function(We){return le(this,We)},appendChild:function(We){return this.insertBefore(We,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(We){return Tn(this.ownerDocument||this,this,We)},normalize:function(){for(var We=this.firstChild;We;){var ke=We.nextSibling;ke&&ke.nodeType==p&&We.nodeType==p?(this.removeChild(ke),We.appendData(ke.data)):(We.normalize(),We=ke)}},isSupported:function(We,ke){return this.ownerDocument.implementation.hasFeature(We,ke)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(We){for(var ke=this;ke;){var be=ke._nsMap;if(be){for(var fe in be)if(Object.prototype.hasOwnProperty.call(be,fe)&&be[fe]===We)return fe}ke=ke.nodeType==f?ke.ownerDocument:ke.parentNode}return null},lookupNamespaceURI:function(We){for(var ke=this;ke;){var be=ke._nsMap;if(be&&Object.prototype.hasOwnProperty.call(be,We))return be[We];ke=ke.nodeType==f?ke.ownerDocument:ke.parentNode}return null},isDefaultNamespace:function(We){var ke=this.lookupPrefix(We);return ke==null}};function F(We){return We=="<"&&"<"||We==">"&&">"||We=="&"&&"&"||We=='"'&&"""||"&#"+We.charCodeAt()+";"}l(d,U),l(d,U.prototype);function H(We,ke){if(ke(We))return!0;if(We=We.firstChild)do if(H(We,ke))return!0;while(We=We.nextSibling)}function re(){this.ownerDocument=this}function X(We,ke,be){We&&We._inc++;var fe=be.namespaceURI;fe===n.XMLNS&&(ke._nsMap[be.prefix?be.localName:""]=be.value)}function te(We,ke,be,fe){We&&We._inc++;var Se=be.namespaceURI;Se===n.XMLNS&&delete ke._nsMap[be.prefix?be.localName:""]}function Z(We,ke,be){if(We&&We._inc){We._inc++;var fe=ke.childNodes;if(be)fe[fe.length++]=be;else{for(var Se=ke.firstChild,qe=0;Se;)fe[qe++]=Se,Se=Se.nextSibling;fe.length=qe,delete fe[fe.length]}}}function le(We,ke){var be=ke.previousSibling,fe=ke.nextSibling;return be?be.nextSibling=fe:We.firstChild=fe,fe?fe.previousSibling=be:We.lastChild=be,ke.parentNode=null,ke.previousSibling=null,ke.nextSibling=null,Z(We.ownerDocument,We),ke}function ve(We){return We&&(We.nodeType===U.DOCUMENT_NODE||We.nodeType===U.DOCUMENT_FRAGMENT_NODE||We.nodeType===U.ELEMENT_NODE)}function Pe(We){return We&&(he(We)||Ee(We)||Ae(We)||We.nodeType===U.DOCUMENT_FRAGMENT_NODE||We.nodeType===U.COMMENT_NODE||We.nodeType===U.PROCESSING_INSTRUCTION_NODE)}function Ae(We){return We&&We.nodeType===U.DOCUMENT_TYPE_NODE}function he(We){return We&&We.nodeType===U.ELEMENT_NODE}function Ee(We){return We&&We.nodeType===U.TEXT_NODE}function Q(We,ke){var be=We.childNodes||[];if(t(be,he)||Ae(ke))return!1;var fe=t(be,Ae);return!(ke&&fe&&be.indexOf(fe)>be.indexOf(ke))}function me(We,ke){var be=We.childNodes||[];function fe(qe){return he(qe)&&qe!==ke}if(t(be,fe))return!1;var Se=t(be,Ae);return!(ke&&Se&&be.indexOf(Se)>be.indexOf(ke))}function De(We,ke,be){if(!ve(We))throw new k(_,"Unexpected parent node type "+We.nodeType);if(be&&be.parentNode!==We)throw new k(M,"child not in parent");if(!Pe(ke)||Ae(ke)&&We.nodeType!==U.DOCUMENT_NODE)throw new k(_,"Unexpected node type "+ke.nodeType+" for parent node type "+We.nodeType)}function pe(We,ke,be){var fe=We.childNodes||[],Se=ke.childNodes||[];if(ke.nodeType===U.DOCUMENT_FRAGMENT_NODE){var qe=Se.filter(he);if(qe.length>1||t(Se,Ee))throw new k(_,"More than one element or text in fragment");if(qe.length===1&&!Q(We,be))throw new k(_,"Element in fragment can not be inserted before doctype")}if(he(ke)&&!Q(We,be))throw new k(_,"Only one element can be added and only after doctype");if(Ae(ke)){if(t(fe,Ae))throw new k(_,"Only one doctype is allowed");var $e=t(fe,he);if(be&&fe.indexOf($e)<fe.indexOf(be))throw new k(_,"Doctype can only be inserted before an element");if(!be&&$e)throw new k(_,"Doctype can not be appended since element is present")}}function ie(We,ke,be){var fe=We.childNodes||[],Se=ke.childNodes||[];if(ke.nodeType===U.DOCUMENT_FRAGMENT_NODE){var qe=Se.filter(he);if(qe.length>1||t(Se,Ee))throw new k(_,"More than one element or text in fragment");if(qe.length===1&&!me(We,be))throw new k(_,"Element in fragment can not be inserted before doctype")}if(he(ke)&&!me(We,be))throw new k(_,"Only one element can be added and only after doctype");if(Ae(ke)){if(t(fe,function(ot){return Ae(ot)&&ot!==be}))throw new k(_,"Only one doctype is allowed");var $e=t(fe,he);if(be&&fe.indexOf($e)<fe.indexOf(be))throw new k(_,"Doctype can only be inserted before an element")}}function ue(We,ke,be,fe){De(We,ke,be),We.nodeType===U.DOCUMENT_NODE&&(fe||pe)(We,ke,be);var Se=ke.parentNode;if(Se&&Se.removeChild(ke),ke.nodeType===A){var qe=ke.firstChild;if(qe==null)return ke;var $e=ke.lastChild}else qe=$e=ke;var Le=be?be.previousSibling:We.lastChild;qe.previousSibling=Le,$e.nextSibling=be,Le?Le.nextSibling=qe:We.firstChild=qe,be==null?We.lastChild=$e:be.previousSibling=$e;do{qe.parentNode=We;var ot=We.ownerDocument||We;Be(qe,ot)}while(qe!==$e&&(qe=qe.nextSibling));return Z(We.ownerDocument||We,We),ke.nodeType==A&&(ke.firstChild=ke.lastChild=null),ke}function Be(We,ke){if(We.ownerDocument!==ke){if(We.ownerDocument=ke,We.nodeType===c&&We.attributes)for(var be=0;be<We.attributes.length;be++){var fe=We.attributes.item(be);fe&&(fe.ownerDocument=ke)}for(var Se=We.firstChild;Se;)Be(Se,ke),Se=Se.nextSibling}}function Me(We,ke){ke.parentNode&&ke.parentNode.removeChild(ke),ke.parentNode=We,ke.previousSibling=We.lastChild,ke.nextSibling=null,ke.previousSibling?ke.previousSibling.nextSibling=ke:We.firstChild=ke,We.lastChild=ke,Z(We.ownerDocument,We,ke);var be=We.ownerDocument||We;return Be(ke,be),ke}re.prototype={nodeName:"#document",nodeType:b,doctype:null,documentElement:null,_inc:1,insertBefore:function(We,ke){if(We.nodeType==A){for(var be=We.firstChild;be;){var fe=be.nextSibling;this.insertBefore(be,ke),be=fe}return We}return ue(this,We,ke),Be(We,this),this.documentElement===null&&We.nodeType===c&&(this.documentElement=We),We},removeChild:function(We){return this.documentElement==We&&(this.documentElement=null),le(this,We)},replaceChild:function(We,ke){ue(this,We,ke,ie),Be(We,this),ke&&this.removeChild(ke),he(We)&&(this.documentElement=We)},importNode:function(We,ke){return Mt(this,We,ke)},getElementById:function(We){var ke=null;return H(this.documentElement,function(be){if(be.nodeType==c&&be.getAttribute("id")==We)return ke=be,!0}),ke},getElementsByClassName:function(We){var ke=a(We);return new N(this,function(be){var fe=[];return ke.length>0&&H(be.documentElement,function(Se){if(Se!==be&&Se.nodeType===c){var qe=Se.getAttribute("class");if(qe){var $e=We===qe;if(!$e){var Le=a(qe);$e=ke.every(s(Le))}$e&&fe.push(Se)}}}),fe})},createElement:function(We){var ke=new Fe;ke.ownerDocument=this,ke.nodeName=We,ke.tagName=We,ke.localName=We,ke.childNodes=new R;var be=ke.attributes=new B;return be._ownerElement=ke,ke},createDocumentFragment:function(){var We=new pt;return We.ownerDocument=this,We.childNodes=new R,We},createTextNode:function(We){var ke=new Re;return ke.ownerDocument=this,ke.appendData(We),ke},createComment:function(We){var ke=new gt;return ke.ownerDocument=this,ke.appendData(We),ke},createCDATASection:function(We){var ke=new Bt;return ke.ownerDocument=this,ke.appendData(We),ke},createProcessingInstruction:function(We,ke){var be=new Dt;return be.ownerDocument=this,be.tagName=be.nodeName=be.target=We,be.nodeValue=be.data=ke,be},createAttribute:function(We){var ke=new ze;return ke.ownerDocument=this,ke.name=We,ke.nodeName=We,ke.localName=We,ke.specified=!0,ke},createEntityReference:function(We){var ke=new Ht;return ke.ownerDocument=this,ke.nodeName=We,ke},createElementNS:function(We,ke){var be=new Fe,fe=ke.split(":"),Se=be.attributes=new B;return be.childNodes=new R,be.ownerDocument=this,be.nodeName=ke,be.tagName=ke,be.namespaceURI=We,fe.length==2?(be.prefix=fe[0],be.localName=fe[1]):be.localName=ke,Se._ownerElement=be,be},createAttributeNS:function(We,ke){var be=new ze,fe=ke.split(":");return be.ownerDocument=this,be.nodeName=ke,be.name=ke,be.namespaceURI=We,be.specified=!0,fe.length==2?(be.prefix=fe[0],be.localName=fe[1]):be.localName=ke,be}},u(re,U);function Fe(){this._nsMap={}}Fe.prototype={nodeType:c,hasAttribute:function(We){return this.getAttributeNode(We)!=null},getAttribute:function(We){var ke=this.getAttributeNode(We);return ke&&ke.value||""},getAttributeNode:function(We){return this.attributes.getNamedItem(We)},setAttribute:function(We,ke){var be=this.ownerDocument.createAttribute(We);be.value=be.nodeValue=""+ke,this.setAttributeNode(be)},removeAttribute:function(We){var ke=this.getAttributeNode(We);ke&&this.removeAttributeNode(ke)},appendChild:function(We){return We.nodeType===A?this.insertBefore(We,null):Me(this,We)},setAttributeNode:function(We){return this.attributes.setNamedItem(We)},setAttributeNodeNS:function(We){return this.attributes.setNamedItemNS(We)},removeAttributeNode:function(We){return this.attributes.removeNamedItem(We.nodeName)},removeAttributeNS:function(We,ke){var be=this.getAttributeNodeNS(We,ke);be&&this.removeAttributeNode(be)},hasAttributeNS:function(We,ke){return this.getAttributeNodeNS(We,ke)!=null},getAttributeNS:function(We,ke){var be=this.getAttributeNodeNS(We,ke);return be&&be.value||""},setAttributeNS:function(We,ke,be){var fe=this.ownerDocument.createAttributeNS(We,ke);fe.value=fe.nodeValue=""+be,this.setAttributeNode(fe)},getAttributeNodeNS:function(We,ke){return this.attributes.getNamedItemNS(We,ke)},getElementsByTagName:function(We){return new N(this,function(ke){var be=[];return H(ke,function(fe){fe!==ke&&fe.nodeType==c&&(We==="*"||fe.tagName==We)&&be.push(fe)}),be})},getElementsByTagNameNS:function(We,ke){return new N(this,function(be){var fe=[];return H(be,function(Se){Se!==be&&Se.nodeType===c&&(We==="*"||Se.namespaceURI===We)&&(ke==="*"||Se.localName==ke)&&fe.push(Se)}),fe})}},re.prototype.getElementsByTagName=Fe.prototype.getElementsByTagName,re.prototype.getElementsByTagNameNS=Fe.prototype.getElementsByTagNameNS,u(Fe,U);function ze(){}ze.prototype.nodeType=f,u(ze,U);function Ne(){}Ne.prototype={data:"",substringData:function(We,ke){return this.data.substring(We,We+ke)},appendData:function(We){We=this.data+We,this.nodeValue=this.data=We,this.length=We.length},insertData:function(We,ke){this.replaceData(We,0,ke)},appendChild:function(We){throw new Error(D[_])},deleteData:function(We,ke){this.replaceData(We,ke,"")},replaceData:function(We,ke,be){var fe=this.data.substring(0,We),Se=this.data.substring(We+ke);be=fe+be+Se,this.nodeValue=this.data=be,this.length=be.length}},u(Ne,U);function Re(){}Re.prototype={nodeName:"#text",nodeType:p,splitText:function(We){var ke=this.data,be=ke.substring(We);ke=ke.substring(0,We),this.data=this.nodeValue=ke,this.length=ke.length;var fe=this.ownerDocument.createTextNode(be);return this.parentNode&&this.parentNode.insertBefore(fe,this.nextSibling),fe}},u(Re,Ne);function gt(){}gt.prototype={nodeName:"#comment",nodeType:m},u(gt,Ne);function Bt(){}Bt.prototype={nodeName:"#cdata-section",nodeType:v},u(Bt,Ne);function Lt(){}Lt.prototype.nodeType=w,u(Lt,U);function an(){}an.prototype.nodeType=S,u(an,U);function Kt(){}Kt.prototype.nodeType=g,u(Kt,U);function Ht(){}Ht.prototype.nodeType=h,u(Ht,U);function pt(){}pt.prototype.nodeName="#document-fragment",pt.prototype.nodeType=A,u(pt,U);function Dt(){}Dt.prototype.nodeType=y,u(Dt,U);function dt(){}dt.prototype.serializeToString=function(We,ke,be){return it.call(We,ke,be)},U.prototype.toString=it;function it(We,ke){var be=[],fe=this.nodeType==9&&this.documentElement||this,Se=fe.prefix,qe=fe.namespaceURI;if(qe&&Se==null){var Se=fe.lookupPrefix(qe);if(Se==null)var $e=[{namespace:qe,prefix:null}]}return ft(this,be,We,ke,$e),be.join("")}function de(We,ke,be){var fe=We.prefix||"",Se=We.namespaceURI;if(!Se||fe==="xml"&&Se===n.XML||Se===n.XMLNS)return!1;for(var qe=be.length;qe--;){var $e=be[qe];if($e.prefix===fe)return $e.namespace!==Se}return!0}function tt(We,ke,be){We.push(" ",ke,'="',be.replace(/[<>&"\t\n\r]/g,F),'"')}function ft(We,ke,be,fe,Se){if(Se||(Se=[]),fe)if(We=fe(We),We){if(typeof We=="string"){ke.push(We);return}}else return;switch(We.nodeType){case c:var qe=We.attributes,$e=qe.length,Nt=We.firstChild,Le=We.tagName;be=n.isHTML(We.namespaceURI)||be;var ot=Le;if(!be&&!We.prefix&&We.namespaceURI){for(var vt,Ut=0;Ut<qe.length;Ut++)if(qe.item(Ut).name==="xmlns"){vt=qe.item(Ut).value;break}if(!vt)for(var Qt=Se.length-1;Qt>=0;Qt--){var Gt=Se[Qt];if(Gt.prefix===""&&Gt.namespace===We.namespaceURI){vt=Gt.namespace;break}}if(vt!==We.namespaceURI)for(var Qt=Se.length-1;Qt>=0;Qt--){var Gt=Se[Qt];if(Gt.namespace===We.namespaceURI){Gt.prefix&&(ot=Gt.prefix+":"+Le);break}}}ke.push("<",ot);for(var vn=0;vn<$e;vn++){var Un=qe.item(vn);Un.prefix=="xmlns"?Se.push({prefix:Un.localName,namespace:Un.value}):Un.nodeName=="xmlns"&&Se.push({prefix:"",namespace:Un.value})}for(var vn=0;vn<$e;vn++){var Un=qe.item(vn);if(de(Un,be,Se)){var wr=Un.prefix||"",fr=Un.namespaceURI;tt(ke,wr?"xmlns:"+wr:"xmlns",fr),Se.push({prefix:wr,namespace:fr})}ft(Un,ke,be,fe,Se)}if(Le===ot&&de(We,be,Se)){var wr=We.prefix||"",fr=We.namespaceURI;tt(ke,wr?"xmlns:"+wr:"xmlns",fr),Se.push({prefix:wr,namespace:fr})}if(Nt||be&&!/^(?:meta|link|img|br|hr|input)$/i.test(Le)){if(ke.push(">"),be&&/^script$/i.test(Le))for(;Nt;)Nt.data?ke.push(Nt.data):ft(Nt,ke,be,fe,Se.slice()),Nt=Nt.nextSibling;else for(;Nt;)ft(Nt,ke,be,fe,Se.slice()),Nt=Nt.nextSibling;ke.push("</",ot,">")}else ke.push("/>");return;case b:case A:for(var Nt=We.firstChild;Nt;)ft(Nt,ke,be,fe,Se.slice()),Nt=Nt.nextSibling;return;case f:return tt(ke,We.name,We.value);case p:return ke.push(We.data.replace(/[<&>]/g,F));case v:return ke.push("<![CDATA[",We.data,"]]>");case m:return ke.push("<!--",We.data,"-->");case w:var _n=We.publicId,xt=We.systemId;if(ke.push("<!DOCTYPE ",We.name),_n)ke.push(" PUBLIC ",_n),xt&&xt!="."&&ke.push(" ",xt),ke.push(">");else if(xt&&xt!=".")ke.push(" SYSTEM ",xt,">");else{var Ft=We.internalSubset;Ft&&ke.push(" [",Ft,"]"),ke.push(">")}return;case y:return ke.push("<?",We.target," ",We.data,"?>");case h:return ke.push("&",We.nodeName,";");default:ke.push("??",We.nodeName)}}function Mt(We,ke,be){var fe;switch(ke.nodeType){case c:fe=ke.cloneNode(!1),fe.ownerDocument=We;case A:break;case f:be=!0;break}if(fe||(fe=ke.cloneNode(!1)),fe.ownerDocument=We,fe.parentNode=null,be)for(var Se=ke.firstChild;Se;)fe.appendChild(Mt(We,Se,be)),Se=Se.nextSibling;return fe}function Tn(We,ke,be){var fe=new ke.constructor;for(var Se in ke)if(Object.prototype.hasOwnProperty.call(ke,Se)){var qe=ke[Se];typeof qe!="object"&&qe!=fe[Se]&&(fe[Se]=qe)}switch(ke.childNodes&&(fe.childNodes=new R),fe.ownerDocument=We,fe.nodeType){case c:var $e=ke.attributes,Le=fe.attributes=new B,ot=$e.length;Le._ownerElement=fe;for(var vt=0;vt<ot;vt++)fe.setAttributeNode(Tn(We,$e.item(vt),!0));break;case f:be=!0}if(be)for(var Ut=ke.firstChild;Ut;)fe.appendChild(Tn(We,Ut,be)),Ut=Ut.nextSibling;return fe}function Nn(We,ke,be){We[ke]=be}try{if(Object.defineProperty){let We=function(ke){switch(ke.nodeType){case c:case A:var be=[];for(ke=ke.firstChild;ke;)ke.nodeType!==7&&ke.nodeType!==8&&be.push(We(ke)),ke=ke.nextSibling;return be.join("");default:return ke.nodeValue}};Object.defineProperty(N.prototype,"length",{get:function(){return W(this),this.$$length}}),Object.defineProperty(U.prototype,"textContent",{get:function(){return We(this)},set:function(ke){switch(this.nodeType){case c:case A:for(;this.firstChild;)this.removeChild(this.firstChild);(ke||String(ke))&&this.appendChild(this.ownerDocument.createTextNode(ke));break;default:this.data=ke,this.value=ke,this.nodeValue=ke}}}),Nn=function(ke,be,fe){ke["$$"+be]=fe}}}catch{}return hf.DocumentType=Lt,hf.DOMException=k,hf.DOMImplementation=Y,hf.Element=Fe,hf.Node=U,hf.NodeList=R,hf.XMLSerializer=dt,hf}var z2={},yO={},ene;function jut(){return ene||(ene=1,(function(e){var t=ND().freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES})(yO)),yO}var Fx={},tne;function Hut(){if(tne)return Fx;tne=1;var e=ND().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),r=new RegExp("^"+t.source+n.source+"*(?::"+t.source+n.source+"*)?$"),o=0,i=1,a=2,s=3,l=4,u=5,d=6,c=7;function f(_,M){this.message=_,this.locator=M,Error.captureStackTrace&&Error.captureStackTrace(this,f)}f.prototype=new Error,f.prototype.name=f.name;function p(){}p.prototype={parse:function(_,M,O){var k=this.domBuilder;k.startDocument(),w(M,M={}),v(_,M,O,k,this.errorHandler),k.endDocument()}};function v(_,M,O,k,R){function N(Me){if(Me>65535){Me-=65536;var Fe=55296+(Me>>10),ze=56320+(Me&1023);return String.fromCharCode(Fe,ze)}else return String.fromCharCode(Me)}function W(Me){var Fe=Me.slice(1,-1);return Object.hasOwnProperty.call(O,Fe)?O[Fe]:Fe.charAt(0)==="#"?N(parseInt(Fe.substr(1).replace("x","0x"))):(R.error("entity not found:"+Me),Me)}function B(Me){if(Me>re){var Fe=_.substring(re,Me).replace(/&#?\w+;/g,W);U&&z(re),k.characters(Fe,0,Me-re),re=Me}}function z(Me,Fe){for(;Me>=q&&(Fe=Y.exec(_));)j=Fe.index,q=j+Fe[0].length,U.lineNumber++;U.columnNumber=Me-j+1}for(var j=0,q=0,Y=/.*(?:\r\n?|\n)|.*$/g,U=k.locator,F=[{currentNSMap:M}],H={},re=0;;){try{var X=_.indexOf("<",re);if(X<0){if(!_.substr(re).match(/^\s*$/)){var te=k.doc,Z=te.createTextNode(_.substr(re));te.appendChild(Z),k.currentElement=Z}return}switch(X>re&&B(X),_.charAt(X+1)){case"/":var De=_.indexOf(">",X+3),le=_.substring(X+2,De).replace(/[ \t\n\r]+$/g,""),ve=F.pop();De<0?(le=_.substring(X+2).replace(/[\s<].*/,""),R.error("end tag name: "+le+" is not complete:"+ve.tagName),De=X+1+le.length):le.match(/\s</)&&(le=le.replace(/[\s<].*/,""),R.error("end tag name: "+le+" maybe not complete"),De=X+1+le.length);var Pe=ve.localNSMap,Ae=ve.tagName==le,he=Ae||ve.tagName&&ve.tagName.toLowerCase()==le.toLowerCase();if(he){if(k.endElement(ve.uri,ve.localName,le),Pe)for(var Ee in Pe)Object.prototype.hasOwnProperty.call(Pe,Ee)&&k.endPrefixMapping(Ee);Ae||R.fatalError("end tag name: "+le+" is not match the current start tagName:"+ve.tagName)}else F.push(ve);De++;break;case"?":U&&z(X),De=S(_,X,k);break;case"!":U&&z(X),De=A(_,X,k,R);break;default:U&&z(X);var Q=new E,me=F[F.length-1].currentNSMap,De=g(_,X,Q,me,W,R),pe=Q.length;if(!Q.closed&&b(_,De,Q.tagName,H)&&(Q.closed=!0,O.nbsp||R.warning("unclosed xml attribute")),U&&pe){for(var ie=h(U,{}),ue=0;ue<pe;ue++){var Be=Q[ue];z(Be.offset),Be.locator=h(U,{})}k.locator=ie,y(Q,k,me)&&F.push(Q),k.locator=U}else y(Q,k,me)&&F.push(Q);e.isHTML(Q.uri)&&!Q.closed?De=m(_,De,Q.tagName,W,k):De++}}catch(Me){if(Me instanceof f)throw Me;R.error("element parse error: "+Me),De=-1}De>re?re=De:B(Math.max(X,re)+1)}}function h(_,M){return M.lineNumber=_.lineNumber,M.columnNumber=_.columnNumber,M}function g(_,M,O,k,R,N){function W(U,F,H){O.attributeNames.hasOwnProperty(U)&&N.fatalError("Attribute "+U+" redefined"),O.addValue(U,F.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,R),H)}for(var B,z,j=++M,q=o;;){var Y=_.charAt(j);switch(Y){case"=":if(q===i)B=_.slice(M,j),q=s;else if(q===a)q=s;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(q===s||q===i)if(q===i&&(N.warning('attribute value must after "="'),B=_.slice(M,j)),M=j+1,j=_.indexOf(Y,M),j>0)z=_.slice(M,j),W(B,z,M-1),q=u;else throw new Error("attribute value no end '"+Y+"' match");else if(q==l)z=_.slice(M,j),W(B,z,M),N.warning('attribute "'+B+'" missed start quot('+Y+")!!"),M=j+1,q=u;else throw new Error('attribute value must after "="');break;case"/":switch(q){case o:O.setTagName(_.slice(M,j));case u:case d:case c:q=c,O.closed=!0;case l:case i:break;case a:O.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return N.error("unexpected end of input"),q==o&&O.setTagName(_.slice(M,j)),j;case">":switch(q){case o:O.setTagName(_.slice(M,j));case u:case d:case c:break;case l:case i:z=_.slice(M,j),z.slice(-1)==="/"&&(O.closed=!0,z=z.slice(0,-1));case a:q===a&&(z=B),q==l?(N.warning('attribute "'+z+'" missed quot(")!'),W(B,z,M)):((!e.isHTML(k[""])||!z.match(/^(?:disabled|checked|selected)$/i))&&N.warning('attribute "'+z+'" missed value!! "'+z+'" instead!!'),W(z,z,M));break;case s:throw new Error("attribute value missed!!")}return j;case"":Y=" ";default:if(Y<=" ")switch(q){case o:O.setTagName(_.slice(M,j)),q=d;break;case i:B=_.slice(M,j),q=a;break;case l:var z=_.slice(M,j);N.warning('attribute "'+z+'" missed quot(")!!'),W(B,z,M);case u:q=d;break}else switch(q){case a:O.tagName,(!e.isHTML(k[""])||!B.match(/^(?:disabled|checked|selected)$/i))&&N.warning('attribute "'+B+'" missed value!! "'+B+'" instead2!!'),W(B,B,M),M=j,q=i;break;case u:N.warning('attribute space is required"'+B+'"!!');case d:q=i,M=j;break;case s:q=l,M=j;break;case c:throw new Error("elements closed character '/' and '>' must be connected to")}}j++}}function y(_,M,O){for(var k=_.tagName,R=null,Y=_.length;Y--;){var N=_[Y],W=N.qName,B=N.value,U=W.indexOf(":");if(U>0)var z=N.prefix=W.slice(0,U),j=W.slice(U+1),q=z==="xmlns"&&j;else j=W,z=null,q=W==="xmlns"&&"";N.localName=j,q!==!1&&(R==null&&(R={},w(O,O={})),O[q]=R[q]=B,N.uri=e.XMLNS,M.startPrefixMapping(q,B))}for(var Y=_.length;Y--;){N=_[Y];var z=N.prefix;z&&(z==="xml"&&(N.uri=e.XML),z!=="xmlns"&&(N.uri=O[z||""]))}var U=k.indexOf(":");U>0?(z=_.prefix=k.slice(0,U),j=_.localName=k.slice(U+1)):(z=null,j=_.localName=k);var F=_.uri=O[z||""];if(M.startElement(F,j,k,_),_.closed){if(M.endElement(F,j,k),R)for(z in R)Object.prototype.hasOwnProperty.call(R,z)&&M.endPrefixMapping(z)}else return _.currentNSMap=O,_.localNSMap=R,!0}function m(_,M,O,k,R){if(/^(?:script|textarea)$/i.test(O)){var N=_.indexOf("</"+O+">",M),W=_.substring(M+1,N);if(/[&<]/.test(W))return/^script$/i.test(O)?(R.characters(W,0,W.length),N):(W=W.replace(/&#?\w+;/g,k),R.characters(W,0,W.length),N)}return M+1}function b(_,M,O,k){var R=k[O];return R==null&&(R=_.lastIndexOf("</"+O+">"),R<M&&(R=_.lastIndexOf("</"+O)),k[O]=R),R<M}function w(_,M){for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&(M[O]=_[O])}function A(_,M,O,k){var R=_.charAt(M+2);switch(R){case"-":if(_.charAt(M+3)==="-"){var N=_.indexOf("-->",M+4);return N>M?(O.comment(_,M+4,N-M-4),N+3):(k.error("Unclosed comment"),-1)}else return-1;default:if(_.substr(M+3,6)=="CDATA["){var N=_.indexOf("]]>",M+9);return O.startCDATA(),O.characters(_,M+9,N-M-9),O.endCDATA(),N+3}var W=D(_,M),B=W.length;if(B>1&&/!doctype/i.test(W[0][0])){var z=W[1][0],j=!1,q=!1;B>3&&(/^public$/i.test(W[2][0])?(j=W[3][0],q=B>4&&W[4][0]):/^system$/i.test(W[2][0])&&(q=W[3][0]));var Y=W[B-1];return O.startDTD(z,j,q),O.endDTD(),Y.index+Y[0].length}}return-1}function S(_,M,O){var k=_.indexOf("?>",M);if(k){var R=_.substring(M,k).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return R?(R[0].length,O.processingInstruction(R[1],R[2]),k+2):-1}return-1}function E(){this.attributeNames={}}E.prototype={setTagName:function(_){if(!r.test(_))throw new Error("invalid tagName:"+_);this.tagName=_},addValue:function(_,M,O){if(!r.test(_))throw new Error("invalid attribute:"+_);this.attributeNames[_]=this.length,this[this.length++]={qName:_,value:M,offset:O}},length:0,getLocalName:function(_){return this[_].localName},getLocator:function(_){return this[_].locator},getQName:function(_){return this[_].qName},getURI:function(_){return this[_].uri},getValue:function(_){return this[_].value}};function D(_,M){var O,k=[],R=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(R.lastIndex=M,R.exec(_);O=R.exec(_);)if(k.push(O),O[1])return k}return Fx.XMLReader=p,Fx.ParseError=f,Fx}var nne;function Wut(){if(nne)return z2;nne=1;var e=ND(),t=RV(),n=jut(),r=Hut(),o=t.DOMImplementation,i=e.NAMESPACE,a=r.ParseError,s=r.XMLReader;function l(g){return g.replace(/\r[\n\u0085]/g,`
- `).replace(/[\r\u0085\u2028]/g,`
- `)}function u(g){this.options=g||{locator:{}}}u.prototype.parseFromString=function(g,y){var m=this.options,b=new s,w=m.domBuilder||new c,A=m.errorHandler,S=m.locator,E=m.xmlns||{},D=/\/x?html?$/.test(y),_=D?n.HTML_ENTITIES:n.XML_ENTITIES;S&&w.setDocumentLocator(S),b.errorHandler=d(A,w,S),b.domBuilder=m.domBuilder||w,D&&(E[""]=i.HTML),E.xml=E.xml||i.XML;var M=m.normalizeLineEndings||l;return g&&typeof g=="string"?b.parse(M(g),E,_):b.errorHandler.error("invalid doc source"),w.doc};function d(g,y,m){if(!g){if(y instanceof c)return y;g=y}var b={},w=g instanceof Function;m=m||{};function A(S){var E=g[S];!E&&w&&(E=g.length==2?function(D){g(S,D)}:g),b[S]=E&&function(D){E("[xmldom "+S+"] "+D+p(m))}||function(){}}return A("warning"),A("error"),A("fatalError"),b}function c(){this.cdata=!1}function f(g,y){y.lineNumber=g.lineNumber,y.columnNumber=g.columnNumber}c.prototype={startDocument:function(){this.doc=new o().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(g,y,m,b){var w=this.doc,A=w.createElementNS(g,m||y),S=b.length;h(this,A),this.currentElement=A,this.locator&&f(this.locator,A);for(var E=0;E<S;E++){var g=b.getURI(E),D=b.getValue(E),m=b.getQName(E),_=w.createAttributeNS(g,m);this.locator&&f(b.getLocator(E),_),_.value=_.nodeValue=D,A.setAttributeNode(_)}},endElement:function(g,y,m){var b=this.currentElement;b.tagName,this.currentElement=b.parentNode},startPrefixMapping:function(g,y){},endPrefixMapping:function(g){},processingInstruction:function(g,y){var m=this.doc.createProcessingInstruction(g,y);this.locator&&f(this.locator,m),h(this,m)},ignorableWhitespace:function(g,y,m){},characters:function(g,y,m){if(g=v.apply(this,arguments),g){if(this.cdata)var b=this.doc.createCDATASection(g);else var b=this.doc.createTextNode(g);this.currentElement?this.currentElement.appendChild(b):/^\s*$/.test(g)&&this.doc.appendChild(b),this.locator&&f(this.locator,b)}},skippedEntity:function(g){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(g){(this.locator=g)&&(g.lineNumber=0)},comment:function(g,y,m){g=v.apply(this,arguments);var b=this.doc.createComment(g);this.locator&&f(this.locator,b),h(this,b)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(g,y,m){var b=this.doc.implementation;if(b&&b.createDocumentType){var w=b.createDocumentType(g,y,m);this.locator&&f(this.locator,w),h(this,w),this.doc.doctype=w}},warning:function(g){console.warn("[xmldom warning] "+g,p(this.locator))},error:function(g){console.error("[xmldom error] "+g,p(this.locator))},fatalError:function(g){throw new a(g,this.locator)}};function p(g){if(g)return`
- @`+(g.systemId||"")+"#[line:"+g.lineNumber+",col:"+g.columnNumber+"]"}function v(g,y,m){return typeof g=="string"?g.substr(y,m):g.length>=y+m||y?new java.lang.String(g,y,m)+"":g}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(g){c.prototype[g]=function(){return null}});function h(g,y){g.currentElement?g.currentElement.appendChild(y):g.doc.appendChild(y)}return z2.__DOMHandler=c,z2.normalizeLineEndings=l,z2.DOMParser=u,z2}var rne;function Vut(){if(rne)return U2;rne=1;var e=RV();return U2.DOMImplementation=e.DOMImplementation,U2.XMLSerializer=e.XMLSerializer,U2.DOMParser=Wut().DOMParser,U2}var one;function qut(){if(one)return Lx;one=1;var e=Vut(),t=RV();function n(r){var o=null,i=new e.DOMParser({errorHandler:function(s,l){o={level:s,message:l}}}),a=i.parseFromString(r);if(o===null)return a;throw new Error(o.level+": "+o.message)}return Lx.parseFromString=n,Lx.Node=t.Node,Lx}var ine;function Gut(){if(ine)return mO;ine=1;var e=R0(),t=Pa,n=qut(),r=B4e(),o=r.Element;mO.readString=a;var i=n.Node;function a(s,l){l=l||{};try{var u=n.parseFromString(s,"text/xml")}catch(p){return e.reject(p)}if(u.documentElement.tagName==="parsererror")return e.resolve(new Error(u.documentElement.textContent));function d(p){switch(p.nodeType){case i.ELEMENT_NODE:return c(p);case i.TEXT_NODE:return r.text(p.nodeValue)}}function c(p){var v=f(p),h=[];t.forEach(p.childNodes,function(y){var m=d(y);m&&h.push(m)});var g={};return t.forEach(p.attributes,function(y){g[f(y)]=y.value}),new o(v,g,h)}function f(p){if(p.namespaceURI){var v=l[p.namespaceURI],h;return v?h=v+":":h="{"+p.namespaceURI+"}",h+p.localName}else return p.localName}return e.resolve(d(u.documentElement))}return mO}var bO={},X0={},sd={},ane;function B0(){return ane||(ane=1,(function(){var e,t,n,r,o,i,a,s=[].slice,l={}.hasOwnProperty;e=function(){var u,d,c,f,p,v;if(v=arguments[0],p=2<=arguments.length?s.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(u=0,c=p.length;u<c;u++)if(f=p[u],f!=null)for(d in f)l.call(f,d)&&(v[d]=f[d]);return v},o=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},i=function(u){var d;return!!u&&((d=typeof u)=="function"||d==="object")},n=function(u){return o(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},r=function(u){var d;if(n(u))return!u.length;for(d in u)if(l.call(u,d))return!1;return!0},a=function(u){var d,c;return i(u)&&(c=Object.getPrototypeOf(u))&&(d=c.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},t=function(u){return o(u.valueOf)?u.valueOf():u},sd.assign=e,sd.isFunction=o,sd.isObject=i,sd.isArray=n,sd.isEmpty=r,sd.isPlainObject=a,sd.getValue=t}).call(sd)),sd}var GS={exports:{}},KS={exports:{}},YS={exports:{}},QS={exports:{}},Kut=QS.exports,sne;function L4e(){return sne||(sne=1,(function(){QS.exports=(function(){function e(t,n,r){if(this.options=t.options,this.stringify=t.stringify,this.parent=t,n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));if(r==null)throw new Error("Missing attribute value. "+this.debugInfo(n));this.name=this.stringify.attName(n),this.value=this.stringify.attValue(r)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},e.prototype.debugInfo=function(t){return t=t||this.name,t==null?"parent: <"+this.parent.name+">":"attribute: {"+t+"}, parent: <"+this.parent.name+">"},e})()}).call(Kut)),QS.exports}var Yut=YS.exports,lne;function RD(){return lne||(lne=1,(function(){var e,t,n,r,o,i,a=function(l,u){for(var d in u)s.call(u,d)&&(l[d]=u[d]);function c(){this.constructor=l}return c.prototype=u.prototype,l.prototype=new c,l.__super__=u.prototype,l},s={}.hasOwnProperty;i=B0(),o=i.isObject,r=i.isFunction,n=i.getValue,t=Zl(),e=L4e(),YS.exports=(function(l){a(u,l);function u(d,c,f){if(u.__super__.constructor.call(this,d),c==null)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(c),this.attributes={},f!=null&&this.attribute(f),d.isDocument&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this)}return u.prototype.clone=function(){var d,c,f,p;f=Object.create(this),f.isRoot&&(f.documentObject=null),f.attributes={},p=this.attributes;for(c in p)s.call(p,c)&&(d=p[c],f.attributes[c]=d.clone());return f.children=[],this.children.forEach(function(v){var h;return h=v.clone(),h.parent=f,f.children.push(h)}),f},u.prototype.attribute=function(d,c){var f,p;if(d!=null&&(d=n(d)),o(d))for(f in d)s.call(d,f)&&(p=d[f],this.attribute(f,p));else r(c)&&(c=c.apply()),(!this.options.skipNullAttributes||c!=null)&&(this.attributes[d]=new e(this,d,c));return this},u.prototype.removeAttribute=function(d){var c,f,p;if(d==null)throw new Error("Missing attribute name. "+this.debugInfo());if(d=n(d),Array.isArray(d))for(f=0,p=d.length;f<p;f++)c=d[f],delete this.attributes[c];else delete this.attributes[d];return this},u.prototype.toString=function(d){return this.options.writer.set(d).element(this)},u.prototype.att=function(d,c){return this.attribute(d,c)},u.prototype.a=function(d,c){return this.attribute(d,c)},u})(t)}).call(Yut)),YS.exports}var ZS={exports:{}},Qut=ZS.exports,une;function BD(){return une||(une=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Zl(),ZS.exports=(function(r){t(o,r);function o(i,a){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).cdata(this)},o})(e)}).call(Qut)),ZS.exports}var XS={exports:{}},Zut=XS.exports,cne;function LD(){return cne||(cne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Zl(),XS.exports=(function(r){t(o,r);function o(i,a){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).comment(this)},o})(e)}).call(Zut)),XS.exports}var JS={exports:{}},Xut=JS.exports,dne;function FD(){return dne||(dne=1,(function(){var e,t,n=function(o,i){for(var a in i)r.call(i,a)&&(o[a]=i[a]);function s(){this.constructor=o}return s.prototype=i.prototype,o.prototype=new s,o.__super__=i.prototype,o},r={}.hasOwnProperty;t=B0().isObject,e=Zl(),JS.exports=(function(o){n(i,o);function i(a,s,l,u){var d;i.__super__.constructor.call(this,a),t(s)&&(d=s,s=d.version,l=d.encoding,u=d.standalone),s||(s="1.0"),this.version=this.stringify.xmlVersion(s),l!=null&&(this.encoding=this.stringify.xmlEncoding(l)),u!=null&&(this.standalone=this.stringify.xmlStandalone(u))}return i.prototype.toString=function(a){return this.options.writer.set(a).declaration(this)},i})(e)}).call(Xut)),JS.exports}var e8={exports:{}},t8={exports:{}},Jut=t8.exports,fne;function UD(){return fne||(fne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Zl(),t8.exports=(function(r){t(o,r);function o(i,a,s,l,u,d){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(s==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(a));if(!l)throw new Error("Missing DTD attribute type. "+this.debugInfo(a));if(!u)throw new Error("Missing DTD attribute default. "+this.debugInfo(a));if(u.indexOf("#")!==0&&(u="#"+u),!u.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(d&&!u.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a));this.elementName=this.stringify.eleName(a),this.attributeName=this.stringify.attName(s),this.attributeType=this.stringify.dtdAttType(l),this.defaultValue=this.stringify.dtdAttDefault(d),this.defaultValueType=u}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdAttList(this)},o})(e)}).call(Jut)),t8.exports}var n8={exports:{}},ect=n8.exports,pne;function zD(){return pne||(pne=1,(function(){var e,t,n=function(o,i){for(var a in i)r.call(i,a)&&(o[a]=i[a]);function s(){this.constructor=o}return s.prototype=i.prototype,o.prototype=new s,o.__super__=i.prototype,o},r={}.hasOwnProperty;t=B0().isObject,e=Zl(),n8.exports=(function(o){n(i,o);function i(a,s,l,u){if(i.__super__.constructor.call(this,a),l==null)throw new Error("Missing DTD entity name. "+this.debugInfo(l));if(u==null)throw new Error("Missing DTD entity value. "+this.debugInfo(l));if(this.pe=!!s,this.name=this.stringify.eleName(l),!t(u))this.value=this.stringify.dtdEntityValue(u);else{if(!u.pubID&&!u.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(l));if(u.pubID&&!u.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(l));if(u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID)),u.nData!=null&&(this.nData=this.stringify.dtdNData(u.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(l))}}return i.prototype.toString=function(a){return this.options.writer.set(a).dtdEntity(this)},i})(e)}).call(ect)),n8.exports}var r8={exports:{}},tct=r8.exports,hne;function $D(){return hne||(hne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Zl(),r8.exports=(function(r){t(o,r);function o(i,a,s){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());s||(s="(#PCDATA)"),Array.isArray(s)&&(s="("+s.join(",")+")"),this.name=this.stringify.eleName(a),this.value=this.stringify.dtdElementValue(s)}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdElement(this)},o})(e)}).call(tct)),r8.exports}var o8={exports:{}},nct=o8.exports,gne;function jD(){return gne||(gne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Zl(),o8.exports=(function(r){t(o,r);function o(i,a,s){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!s.pubID&&!s.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.eleName(a),s.pubID!=null&&(this.pubID=this.stringify.dtdPubID(s.pubID)),s.sysID!=null&&(this.sysID=this.stringify.dtdSysID(s.sysID))}return o.prototype.toString=function(i){return this.options.writer.set(i).dtdNotation(this)},o})(e)}).call(nct)),o8.exports}var rct=e8.exports,vne;function HD(){return vne||(vne=1,(function(){var e,t,n,r,o,i,a=function(l,u){for(var d in u)s.call(u,d)&&(l[d]=u[d]);function c(){this.constructor=l}return c.prototype=u.prototype,l.prototype=new c,l.__super__=u.prototype,l},s={}.hasOwnProperty;i=B0().isObject,o=Zl(),e=UD(),n=zD(),t=$D(),r=jD(),e8.exports=(function(l){a(u,l);function u(d,c,f){var p,v;u.__super__.constructor.call(this,d),this.name="!DOCTYPE",this.documentObject=d,i(c)&&(p=c,c=p.pubID,f=p.sysID),f==null&&(v=[c,f],f=v[0],c=v[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),f!=null&&(this.sysID=this.stringify.dtdSysID(f))}return u.prototype.element=function(d,c){var f;return f=new t(this,d,c),this.children.push(f),this},u.prototype.attList=function(d,c,f,p,v){var h;return h=new e(this,d,c,f,p,v),this.children.push(h),this},u.prototype.entity=function(d,c){var f;return f=new n(this,!1,d,c),this.children.push(f),this},u.prototype.pEntity=function(d,c){var f;return f=new n(this,!0,d,c),this.children.push(f),this},u.prototype.notation=function(d,c){var f;return f=new r(this,d,c),this.children.push(f),this},u.prototype.toString=function(d){return this.options.writer.set(d).docType(this)},u.prototype.ele=function(d,c){return this.element(d,c)},u.prototype.att=function(d,c,f,p,v){return this.attList(d,c,f,p,v)},u.prototype.ent=function(d,c){return this.entity(d,c)},u.prototype.pent=function(d,c){return this.pEntity(d,c)},u.prototype.not=function(d,c){return this.notation(d,c)},u.prototype.up=function(){return this.root()||this.documentObject},u})(o)}).call(rct)),e8.exports}var i8={exports:{}},oct=i8.exports,mne;function WD(){return mne||(mne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Zl(),i8.exports=(function(r){t(o,r);function o(i,a){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).raw(this)},o})(e)}).call(oct)),i8.exports}var a8={exports:{}},ict=a8.exports,yne;function VD(){return yne||(yne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Zl(),a8.exports=(function(r){t(o,r);function o(i,a){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).text(this)},o})(e)}).call(ict)),a8.exports}var s8={exports:{}},act=s8.exports,bne;function qD(){return bne||(bne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Zl(),s8.exports=(function(r){t(o,r);function o(i,a,s){if(o.__super__.constructor.call(this,i),a==null)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(a),s&&(this.value=this.stringify.insValue(s))}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return this.options.writer.set(i).processingInstruction(this)},o})(e)}).call(act)),s8.exports}var l8={exports:{}},sct=l8.exports,wne;function BV(){return wne||(wne=1,(function(){var e,t=function(r,o){for(var i in o)n.call(o,i)&&(r[i]=o[i]);function a(){this.constructor=r}return a.prototype=o.prototype,r.prototype=new a,r.__super__=o.prototype,r},n={}.hasOwnProperty;e=Zl(),l8.exports=(function(r){t(o,r);function o(i){o.__super__.constructor.call(this,i),this.isDummy=!0}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(i){return""},o})(e)}).call(sct)),l8.exports}var lct=KS.exports,Ane;function Zl(){return Ane||(Ane=1,(function(){var e,t,n,r,o,i,a,s,l,u,d,c,f,p,v={}.hasOwnProperty;p=B0(),f=p.isObject,c=p.isFunction,d=p.isEmpty,u=p.getValue,i=null,e=null,t=null,n=null,r=null,s=null,l=null,a=null,o=null,KS.exports=(function(){function h(g){this.parent=g,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],i||(i=RD(),e=BD(),t=LD(),n=FD(),r=HD(),s=WD(),l=VD(),a=qD(),o=BV())}return h.prototype.element=function(g,y,m){var b,w,A,S,E,D,_,M,O,k,R;if(D=null,y===null&&m==null&&(O=[{},null],y=O[0],m=O[1]),y==null&&(y={}),y=u(y),f(y)||(k=[y,m],m=k[0],y=k[1]),g!=null&&(g=u(g)),Array.isArray(g))for(A=0,_=g.length;A<_;A++)w=g[A],D=this.element(w);else if(c(g))D=this.element(g.apply());else if(f(g)){for(E in g)if(v.call(g,E))if(R=g[E],c(R)&&(R=R.apply()),f(R)&&d(R)&&(R=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&E.indexOf(this.stringify.convertAttKey)===0)D=this.attribute(E.substr(this.stringify.convertAttKey.length),R);else if(!this.options.separateArrayItems&&Array.isArray(R))for(S=0,M=R.length;S<M;S++)w=R[S],b={},b[E]=w,D=this.element(b);else f(R)?(D=this.element(E),D.element(R)):D=this.element(E,R)}else this.options.skipNullNodes&&m===null?D=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&g.indexOf(this.stringify.convertTextKey)===0?D=this.text(m):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&g.indexOf(this.stringify.convertCDataKey)===0?D=this.cdata(m):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&g.indexOf(this.stringify.convertCommentKey)===0?D=this.comment(m):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&g.indexOf(this.stringify.convertRawKey)===0?D=this.raw(m):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&g.indexOf(this.stringify.convertPIKey)===0?D=this.instruction(g.substr(this.stringify.convertPIKey.length),m):D=this.node(g,y,m);if(D==null)throw new Error("Could not create any elements with: "+g+". "+this.debugInfo());return D},h.prototype.insertBefore=function(g,y,m){var b,w,A;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(g));return w=this.parent.children.indexOf(this),A=this.parent.children.splice(w),b=this.parent.element(g,y,m),Array.prototype.push.apply(this.parent.children,A),b},h.prototype.insertAfter=function(g,y,m){var b,w,A;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(g));return w=this.parent.children.indexOf(this),A=this.parent.children.splice(w+1),b=this.parent.element(g,y,m),Array.prototype.push.apply(this.parent.children,A),b},h.prototype.remove=function(){var g;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return g=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[g,g-g+1].concat([])),this.parent},h.prototype.node=function(g,y,m){var b,w;return g!=null&&(g=u(g)),y||(y={}),y=u(y),f(y)||(w=[y,m],m=w[0],y=w[1]),b=new i(this,g,y),m!=null&&b.text(m),this.children.push(b),b},h.prototype.text=function(g){var y;return y=new l(this,g),this.children.push(y),this},h.prototype.cdata=function(g){var y;return y=new e(this,g),this.children.push(y),this},h.prototype.comment=function(g){var y;return y=new t(this,g),this.children.push(y),this},h.prototype.commentBefore=function(g){var y,m;return y=this.parent.children.indexOf(this),m=this.parent.children.splice(y),this.parent.comment(g),Array.prototype.push.apply(this.parent.children,m),this},h.prototype.commentAfter=function(g){var y,m;return y=this.parent.children.indexOf(this),m=this.parent.children.splice(y+1),this.parent.comment(g),Array.prototype.push.apply(this.parent.children,m),this},h.prototype.raw=function(g){var y;return y=new s(this,g),this.children.push(y),this},h.prototype.dummy=function(){var g;return g=new o(this),this.children.push(g),g},h.prototype.instruction=function(g,y){var m,b,w,A,S;if(g!=null&&(g=u(g)),y!=null&&(y=u(y)),Array.isArray(g))for(A=0,S=g.length;A<S;A++)m=g[A],this.instruction(m);else if(f(g))for(m in g)v.call(g,m)&&(b=g[m],this.instruction(m,b));else c(y)&&(y=y.apply()),w=new a(this,g,y),this.children.push(w);return this},h.prototype.instructionBefore=function(g,y){var m,b;return m=this.parent.children.indexOf(this),b=this.parent.children.splice(m),this.parent.instruction(g,y),Array.prototype.push.apply(this.parent.children,b),this},h.prototype.instructionAfter=function(g,y){var m,b;return m=this.parent.children.indexOf(this),b=this.parent.children.splice(m+1),this.parent.instruction(g,y),Array.prototype.push.apply(this.parent.children,b),this},h.prototype.declaration=function(g,y,m){var b,w;return b=this.document(),w=new n(b,g,y,m),b.children[0]instanceof n?b.children[0]=w:b.children.unshift(w),b.root()||b},h.prototype.doctype=function(g,y){var m,b,w,A,S,E,D,_,M,O;for(b=this.document(),w=new r(b,g,y),M=b.children,A=S=0,D=M.length;S<D;A=++S)if(m=M[A],m instanceof r)return b.children[A]=w,w;for(O=b.children,A=E=0,_=O.length;E<_;A=++E)if(m=O[A],m.isRoot)return b.children.splice(A,0,w),w;return b.children.push(w),w},h.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},h.prototype.root=function(){var g;for(g=this;g;){if(g.isDocument)return g.rootObject;if(g.isRoot)return g;g=g.parent}},h.prototype.document=function(){var g;for(g=this;g;){if(g.isDocument)return g;g=g.parent}},h.prototype.end=function(g){return this.document().end(g)},h.prototype.prev=function(){var g;for(g=this.parent.children.indexOf(this);g>0&&this.parent.children[g-1].isDummy;)g=g-1;if(g<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[g-1]},h.prototype.next=function(){var g;for(g=this.parent.children.indexOf(this);g<this.parent.children.length-1&&this.parent.children[g+1].isDummy;)g=g+1;if(g===-1||g===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[g+1]},h.prototype.importDocument=function(g){var y;return y=g.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},h.prototype.debugInfo=function(g){var y,m;return g=g||this.name,g==null&&!((y=this.parent)!=null&&y.name)?"":g==null?"parent: <"+this.parent.name+">":(m=this.parent)!=null&&m.name?"node: <"+g+">, parent: <"+this.parent.name+">":"node: <"+g+">"},h.prototype.ele=function(g,y,m){return this.element(g,y,m)},h.prototype.nod=function(g,y,m){return this.node(g,y,m)},h.prototype.txt=function(g){return this.text(g)},h.prototype.dat=function(g){return this.cdata(g)},h.prototype.com=function(g){return this.comment(g)},h.prototype.ins=function(g,y){return this.instruction(g,y)},h.prototype.doc=function(){return this.document()},h.prototype.dec=function(g,y,m){return this.declaration(g,y,m)},h.prototype.dtd=function(g,y){return this.doctype(g,y)},h.prototype.e=function(g,y,m){return this.element(g,y,m)},h.prototype.n=function(g,y,m){return this.node(g,y,m)},h.prototype.t=function(g){return this.text(g)},h.prototype.d=function(g){return this.cdata(g)},h.prototype.c=function(g){return this.comment(g)},h.prototype.r=function(g){return this.raw(g)},h.prototype.i=function(g,y){return this.instruction(g,y)},h.prototype.u=function(){return this.up()},h.prototype.importXMLBuilder=function(g){return this.importDocument(g)},h})()}).call(lct)),KS.exports}var u8={exports:{}},uct=u8.exports,Cne;function F4e(){return Cne||(Cne=1,(function(){var e=function(n,r){return function(){return n.apply(r,arguments)}},t={}.hasOwnProperty;u8.exports=(function(){function n(r){this.assertLegalChar=e(this.assertLegalChar,this);var o,i,a;r||(r={}),this.noDoubleEncoding=r.noDoubleEncoding,i=r.stringify||{};for(o in i)t.call(i,o)&&(a=i[o],this[o]=a)}return n.prototype.eleName=function(r){return r=""+r||"",this.assertLegalChar(r)},n.prototype.eleText=function(r){return r=""+r||"",this.assertLegalChar(this.elEscape(r))},n.prototype.cdata=function(r){return r=""+r||"",r=r.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(r)},n.prototype.comment=function(r){if(r=""+r||"",r.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+r);return this.assertLegalChar(r)},n.prototype.raw=function(r){return""+r||""},n.prototype.attName=function(r){return r=""+r||""},n.prototype.attValue=function(r){return r=""+r||"",this.attEscape(r)},n.prototype.insTarget=function(r){return""+r||""},n.prototype.insValue=function(r){if(r=""+r||"",r.match(/\?>/))throw new Error("Invalid processing instruction value: "+r);return r},n.prototype.xmlVersion=function(r){if(r=""+r||"",!r.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+r);return r},n.prototype.xmlEncoding=function(r){if(r=""+r||"",!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+r);return r},n.prototype.xmlStandalone=function(r){return r?"yes":"no"},n.prototype.dtdPubID=function(r){return""+r||""},n.prototype.dtdSysID=function(r){return""+r||""},n.prototype.dtdElementValue=function(r){return""+r||""},n.prototype.dtdAttType=function(r){return""+r||""},n.prototype.dtdAttDefault=function(r){return r!=null?""+r||"":r},n.prototype.dtdEntityValue=function(r){return""+r||""},n.prototype.dtdNData=function(r){return""+r||""},n.prototype.convertAttKey="@",n.prototype.convertPIKey="?",n.prototype.convertTextKey="#text",n.prototype.convertCDataKey="#cdata",n.prototype.convertCommentKey="#comment",n.prototype.convertRawKey="#raw",n.prototype.assertLegalChar=function(r){var o;if(o=r.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),o)throw new Error("Invalid character in string: "+r+" at index "+o.index);return r},n.prototype.elEscape=function(r){var o;return o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(o,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},n.prototype.attEscape=function(r){var o;return o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(o,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},n})()}).call(uct)),u8.exports}var c8={exports:{}},d8={exports:{}},cct=d8.exports,xne;function U4e(){return xne||(xne=1,(function(){var e={}.hasOwnProperty;d8.exports=(function(){function t(n){var r,o,i,a,s,l,u,d,c;n||(n={}),this.pretty=n.pretty||!1,this.allowEmpty=(o=n.allowEmpty)!=null?o:!1,this.pretty?(this.indent=(i=n.indent)!=null?i:" ",this.newline=(a=n.newline)!=null?a:`
- `,this.offset=(s=n.offset)!=null?s:0,this.dontprettytextnodes=(l=n.dontprettytextnodes)!=null?l:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(u=n.spacebeforeslash)!=null?u:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=n.writer||{};for(r in d)e.call(d,r)&&(c=d[r],this[r]=c)}return t.prototype.set=function(n){var r,o,i;n||(n={}),"pretty"in n&&(this.pretty=n.pretty),"allowEmpty"in n&&(this.allowEmpty=n.allowEmpty),this.pretty?(this.indent="indent"in n?n.indent:" ",this.newline="newline"in n?n.newline:`
- `,this.offset="offset"in n?n.offset:0,this.dontprettytextnodes="dontprettytextnodes"in n?n.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in n?n.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=n.writer||{};for(r in o)e.call(o,r)&&(i=o[r],this[r]=i);return this},t.prototype.space=function(n){var r;return this.pretty?(r=(n||0)+this.offset+1,r>0?new Array(r).join(this.indent):""):""},t})()}).call(cct)),d8.exports}var dct=c8.exports,Sne;function LV(){return Sne||(Sne=1,(function(){var e,t,n,r,o,i,a,s,l,u,d,c,f,p,v=function(g,y){for(var m in y)h.call(y,m)&&(g[m]=y[m]);function b(){this.constructor=g}return b.prototype=y.prototype,g.prototype=new b,g.__super__=y.prototype,g},h={}.hasOwnProperty;a=FD(),s=HD(),e=BD(),t=LD(),u=RD(),c=WD(),f=VD(),d=qD(),l=BV(),n=UD(),r=$D(),o=zD(),i=jD(),p=U4e(),c8.exports=(function(g){v(y,g);function y(m){y.__super__.constructor.call(this,m)}return y.prototype.document=function(m){var b,w,A,S,E;for(this.textispresent=!1,S="",E=m.children,w=0,A=E.length;w<A;w++)b=E[w],!(b instanceof l)&&(S+=(function(){switch(!1){case!(b instanceof a):return this.declaration(b);case!(b instanceof s):return this.docType(b);case!(b instanceof t):return this.comment(b);case!(b instanceof d):return this.processingInstruction(b);default:return this.element(b,0)}}).call(this));return this.pretty&&S.slice(-this.newline.length)===this.newline&&(S=S.slice(0,-this.newline.length)),S},y.prototype.attribute=function(m){return" "+m.name+'="'+m.value+'"'},y.prototype.cdata=function(m,b){return this.space(b)+"<![CDATA["+m.text+"]]>"+this.newline},y.prototype.comment=function(m,b){return this.space(b)+"<!-- "+m.text+" -->"+this.newline},y.prototype.declaration=function(m,b){var w;return w=this.space(b),w+='<?xml version="'+m.version+'"',m.encoding!=null&&(w+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(w+=' standalone="'+m.standalone+'"'),w+=this.spacebeforeslash+"?>",w+=this.newline,w},y.prototype.docType=function(m,b){var w,A,S,E,D;if(b||(b=0),E=this.space(b),E+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?E+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(E+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(E+=" [",E+=this.newline,D=m.children,A=0,S=D.length;A<S;A++)w=D[A],E+=(function(){switch(!1){case!(w instanceof n):return this.dtdAttList(w,b+1);case!(w instanceof r):return this.dtdElement(w,b+1);case!(w instanceof o):return this.dtdEntity(w,b+1);case!(w instanceof i):return this.dtdNotation(w,b+1);case!(w instanceof e):return this.cdata(w,b+1);case!(w instanceof t):return this.comment(w,b+1);case!(w instanceof d):return this.processingInstruction(w,b+1);default:throw new Error("Unknown DTD node type: "+w.constructor.name)}}).call(this);E+="]"}return E+=this.spacebeforeslash+">",E+=this.newline,E},y.prototype.element=function(m,b){var w,A,S,E,D,_,M,O,k,R,N,W,B;b||(b=0),B=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),W=this.space(b),O="",O+=W+"<"+m.name,k=m.attributes;for(M in k)h.call(k,M)&&(w=k[M],O+=this.attribute(w));if(m.children.length===0||m.children.every(function(z){return z.value===""}))this.allowEmpty?O+="></"+m.name+">"+this.newline:O+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)O+=">",O+=m.children[0].value,O+="</"+m.name+">"+this.newline;else{if(this.dontprettytextnodes){for(R=m.children,S=0,D=R.length;S<D;S++)if(A=R[S],A.value!=null){this.textispresent++,B=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,W=this.space(b)),O+=">"+this.newline,N=m.children,E=0,_=N.length;E<_;E++)A=N[E],O+=(function(){switch(!1){case!(A instanceof e):return this.cdata(A,b+1);case!(A instanceof t):return this.comment(A,b+1);case!(A instanceof u):return this.element(A,b+1);case!(A instanceof c):return this.raw(A,b+1);case!(A instanceof f):return this.text(A,b+1);case!(A instanceof d):return this.processingInstruction(A,b+1);case!(A instanceof l):return"";default:throw new Error("Unknown XML node type: "+A.constructor.name)}}).call(this);B&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),O+=W+"</"+m.name+">"+this.newline}return O},y.prototype.processingInstruction=function(m,b){var w;return w=this.space(b)+"<?"+m.target,m.value&&(w+=" "+m.value),w+=this.spacebeforeslash+"?>"+this.newline,w},y.prototype.raw=function(m,b){return this.space(b)+m.value+this.newline},y.prototype.text=function(m,b){return this.space(b)+m.value+this.newline},y.prototype.dtdAttList=function(m,b){var w;return w=this.space(b)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(w+=" "+m.defaultValueType),m.defaultValue&&(w+=' "'+m.defaultValue+'"'),w+=this.spacebeforeslash+">"+this.newline,w},y.prototype.dtdElement=function(m,b){return this.space(b)+"<!ELEMENT "+m.name+" "+m.value+this.spacebeforeslash+">"+this.newline},y.prototype.dtdEntity=function(m,b){var w;return w=this.space(b)+"<!ENTITY",m.pe&&(w+=" %"),w+=" "+m.name,m.value?w+=' "'+m.value+'"':(m.pubID&&m.sysID?w+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(w+=' SYSTEM "'+m.sysID+'"'),m.nData&&(w+=" NDATA "+m.nData)),w+=this.spacebeforeslash+">"+this.newline,w},y.prototype.dtdNotation=function(m,b){var w;return w=this.space(b)+"<!NOTATION "+m.name,m.pubID&&m.sysID?w+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?w+=' PUBLIC "'+m.pubID+'"':m.sysID&&(w+=' SYSTEM "'+m.sysID+'"'),w+=this.spacebeforeslash+">"+this.newline,w},y.prototype.openNode=function(m,b){var w,A,S,E;if(b||(b=0),m instanceof u){S=this.space(b)+"<"+m.name,E=m.attributes;for(A in E)h.call(E,A)&&(w=E[A],S+=this.attribute(w));return S+=(m.children?">":"/>")+this.newline,S}else return S=this.space(b)+"<!DOCTYPE "+m.rootNodeName,m.pubID&&m.sysID?S+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(S+=' SYSTEM "'+m.sysID+'"'),S+=(m.children?" [":">")+this.newline,S},y.prototype.closeNode=function(m,b){switch(b||(b=0),!1){case!(m instanceof u):return this.space(b)+"</"+m.name+">"+this.newline;case!(m instanceof s):return this.space(b)+"]>"+this.newline}},y})(p)}).call(dct)),c8.exports}var fct=GS.exports,Ene;function pct(){return Ene||(Ene=1,(function(){var e,t,n,r,o=function(a,s){for(var l in s)i.call(s,l)&&(a[l]=s[l]);function u(){this.constructor=a}return u.prototype=s.prototype,a.prototype=new u,a.__super__=s.prototype,a},i={}.hasOwnProperty;r=B0().isPlainObject,e=Zl(),n=F4e(),t=LV(),GS.exports=(function(a){o(s,a);function s(l){s.__super__.constructor.call(this,null),this.name="?xml",l||(l={}),l.writer||(l.writer=new t),this.options=l,this.stringify=new n(l),this.isDocument=!0}return s.prototype.end=function(l){var u;return l?r(l)&&(u=l,l=this.options.writer.set(u)):l=this.options.writer,l.document(this)},s.prototype.toString=function(l){return this.options.writer.set(l).document(this)},s})(e)}).call(fct)),GS.exports}var f8={exports:{}},hct=f8.exports,kne;function gct(){return kne||(kne=1,(function(){var e,t,n,r,o,i,a,s,l,u,d,c,f,p,v,h,g,y,m,b,w={}.hasOwnProperty;b=B0(),y=b.isObject,g=b.isFunction,m=b.isPlainObject,h=b.getValue,u=RD(),t=BD(),n=LD(),c=WD(),v=VD(),d=qD(),s=FD(),l=HD(),r=UD(),i=zD(),o=$D(),a=jD(),e=L4e(),p=F4e(),f=LV(),f8.exports=(function(){function A(S,E,D){var _;this.name="?xml",S||(S={}),S.writer?m(S.writer)&&(_=S.writer,S.writer=new f(_)):S.writer=new f(S),this.options=S,this.writer=S.writer,this.stringify=new p(S),this.onDataCallback=E||function(){},this.onEndCallback=D||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return A.prototype.node=function(S,E,D){var _,M;if(S==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(S));return this.openCurrent(),S=h(S),E===null&&D==null&&(_=[{},null],E=_[0],D=_[1]),E==null&&(E={}),E=h(E),y(E)||(M=[E,D],D=M[0],E=M[1]),this.currentNode=new u(this,S,E),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,D!=null&&this.text(D),this},A.prototype.element=function(S,E,D){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(S,E,D)},A.prototype.attribute=function(S,E){var D,_;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(S));if(S!=null&&(S=h(S)),y(S))for(D in S)w.call(S,D)&&(_=S[D],this.attribute(D,_));else g(E)&&(E=E.apply()),(!this.options.skipNullAttributes||E!=null)&&(this.currentNode.attributes[S]=new e(this,S,E));return this},A.prototype.text=function(S){var E;return this.openCurrent(),E=new v(this,S),this.onData(this.writer.text(E,this.currentLevel+1),this.currentLevel+1),this},A.prototype.cdata=function(S){var E;return this.openCurrent(),E=new t(this,S),this.onData(this.writer.cdata(E,this.currentLevel+1),this.currentLevel+1),this},A.prototype.comment=function(S){var E;return this.openCurrent(),E=new n(this,S),this.onData(this.writer.comment(E,this.currentLevel+1),this.currentLevel+1),this},A.prototype.raw=function(S){var E;return this.openCurrent(),E=new c(this,S),this.onData(this.writer.raw(E,this.currentLevel+1),this.currentLevel+1),this},A.prototype.instruction=function(S,E){var D,_,M,O,k;if(this.openCurrent(),S!=null&&(S=h(S)),E!=null&&(E=h(E)),Array.isArray(S))for(D=0,O=S.length;D<O;D++)_=S[D],this.instruction(_);else if(y(S))for(_ in S)w.call(S,_)&&(M=S[_],this.instruction(_,M));else g(E)&&(E=E.apply()),k=new d(this,S,E),this.onData(this.writer.processingInstruction(k,this.currentLevel+1),this.currentLevel+1);return this},A.prototype.declaration=function(S,E,D){var _;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return _=new s(this,S,E,D),this.onData(this.writer.declaration(_,this.currentLevel+1),this.currentLevel+1),this},A.prototype.doctype=function(S,E,D){if(this.openCurrent(),S==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new l(this,E,D),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},A.prototype.dtdElement=function(S,E){var D;return this.openCurrent(),D=new o(this,S,E),this.onData(this.writer.dtdElement(D,this.currentLevel+1),this.currentLevel+1),this},A.prototype.attList=function(S,E,D,_,M){var O;return this.openCurrent(),O=new r(this,S,E,D,_,M),this.onData(this.writer.dtdAttList(O,this.currentLevel+1),this.currentLevel+1),this},A.prototype.entity=function(S,E){var D;return this.openCurrent(),D=new i(this,!1,S,E),this.onData(this.writer.dtdEntity(D,this.currentLevel+1),this.currentLevel+1),this},A.prototype.pEntity=function(S,E){var D;return this.openCurrent(),D=new i(this,!0,S,E),this.onData(this.writer.dtdEntity(D,this.currentLevel+1),this.currentLevel+1),this},A.prototype.notation=function(S,E){var D;return this.openCurrent(),D=new a(this,S,E),this.onData(this.writer.dtdNotation(D,this.currentLevel+1),this.currentLevel+1),this},A.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},A.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},A.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},A.prototype.openNode=function(S){if(!S.isOpen)return!this.root&&this.currentLevel===0&&S instanceof u&&(this.root=S),this.onData(this.writer.openNode(S,this.currentLevel),this.currentLevel),S.isOpen=!0},A.prototype.closeNode=function(S){if(!S.isClosed)return this.onData(this.writer.closeNode(S,this.currentLevel),this.currentLevel),S.isClosed=!0},A.prototype.onData=function(S,E){return this.documentStarted=!0,this.onDataCallback(S,E+1)},A.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},A.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},A.prototype.ele=function(){return this.element.apply(this,arguments)},A.prototype.nod=function(S,E,D){return this.node(S,E,D)},A.prototype.txt=function(S){return this.text(S)},A.prototype.dat=function(S){return this.cdata(S)},A.prototype.com=function(S){return this.comment(S)},A.prototype.ins=function(S,E){return this.instruction(S,E)},A.prototype.dec=function(S,E,D){return this.declaration(S,E,D)},A.prototype.dtd=function(S,E,D){return this.doctype(S,E,D)},A.prototype.e=function(S,E,D){return this.element(S,E,D)},A.prototype.n=function(S,E,D){return this.node(S,E,D)},A.prototype.t=function(S){return this.text(S)},A.prototype.d=function(S){return this.cdata(S)},A.prototype.c=function(S){return this.comment(S)},A.prototype.r=function(S){return this.raw(S)},A.prototype.i=function(S,E){return this.instruction(S,E)},A.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},A.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},A.prototype.ent=function(S,E){return this.entity(S,E)},A.prototype.pent=function(S,E){return this.pEntity(S,E)},A.prototype.not=function(S,E){return this.notation(S,E)},A})()}).call(hct)),f8.exports}var p8={exports:{}},vct=p8.exports,Tne;function mct(){return Tne||(Tne=1,(function(){var e,t,n,r,o,i,a,s,l,u,d,c,f,p,v=function(g,y){for(var m in y)h.call(y,m)&&(g[m]=y[m]);function b(){this.constructor=g}return b.prototype=y.prototype,g.prototype=new b,g.__super__=y.prototype,g},h={}.hasOwnProperty;a=FD(),s=HD(),e=BD(),t=LD(),u=RD(),c=WD(),f=VD(),d=qD(),l=BV(),n=UD(),r=$D(),o=zD(),i=jD(),p=U4e(),p8.exports=(function(g){v(y,g);function y(m,b){y.__super__.constructor.call(this,b),this.stream=m}return y.prototype.document=function(m){var b,w,A,S,E,D,_,M;for(D=m.children,w=0,S=D.length;w<S;w++)b=D[w],b.isLastRootNode=!1;for(m.children[m.children.length-1].isLastRootNode=!0,_=m.children,M=[],A=0,E=_.length;A<E;A++)if(b=_[A],!(b instanceof l))switch(!1){case!(b instanceof a):M.push(this.declaration(b));break;case!(b instanceof s):M.push(this.docType(b));break;case!(b instanceof t):M.push(this.comment(b));break;case!(b instanceof d):M.push(this.processingInstruction(b));break;default:M.push(this.element(b))}return M},y.prototype.attribute=function(m){return this.stream.write(" "+m.name+'="'+m.value+'"')},y.prototype.cdata=function(m,b){return this.stream.write(this.space(b)+"<![CDATA["+m.text+"]]>"+this.endline(m))},y.prototype.comment=function(m,b){return this.stream.write(this.space(b)+"<!-- "+m.text+" -->"+this.endline(m))},y.prototype.declaration=function(m,b){return this.stream.write(this.space(b)),this.stream.write('<?xml version="'+m.version+'"'),m.encoding!=null&&this.stream.write(' encoding="'+m.encoding+'"'),m.standalone!=null&&this.stream.write(' standalone="'+m.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(m))},y.prototype.docType=function(m,b){var w,A,S,E;if(b||(b=0),this.stream.write(this.space(b)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(m)),E=m.children,A=0,S=E.length;A<S;A++)switch(w=E[A],!1){case!(w instanceof n):this.dtdAttList(w,b+1);break;case!(w instanceof r):this.dtdElement(w,b+1);break;case!(w instanceof o):this.dtdEntity(w,b+1);break;case!(w instanceof i):this.dtdNotation(w,b+1);break;case!(w instanceof e):this.cdata(w,b+1);break;case!(w instanceof t):this.comment(w,b+1);break;case!(w instanceof d):this.processingInstruction(w,b+1);break;default:throw new Error("Unknown DTD node type: "+w.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(m))},y.prototype.element=function(m,b){var w,A,S,E,D,_,M,O;b||(b=0),O=this.space(b),this.stream.write(O+"<"+m.name),_=m.attributes;for(D in _)h.call(_,D)&&(w=_[D],this.attribute(w));if(m.children.length===0||m.children.every(function(k){return k.value===""}))this.allowEmpty?this.stream.write("></"+m.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write("</"+m.name+">");else{for(this.stream.write(">"+this.newline),M=m.children,S=0,E=M.length;S<E;S++)switch(A=M[S],!1){case!(A instanceof e):this.cdata(A,b+1);break;case!(A instanceof t):this.comment(A,b+1);break;case!(A instanceof u):this.element(A,b+1);break;case!(A instanceof c):this.raw(A,b+1);break;case!(A instanceof f):this.text(A,b+1);break;case!(A instanceof d):this.processingInstruction(A,b+1);break;case!(A instanceof l):break;default:throw new Error("Unknown XML node type: "+A.constructor.name)}this.stream.write(O+"</"+m.name+">")}return this.stream.write(this.endline(m))},y.prototype.processingInstruction=function(m,b){return this.stream.write(this.space(b)+"<?"+m.target),m.value&&this.stream.write(" "+m.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(m))},y.prototype.raw=function(m,b){return this.stream.write(this.space(b)+m.value+this.endline(m))},y.prototype.text=function(m,b){return this.stream.write(this.space(b)+m.value+this.endline(m))},y.prototype.dtdAttList=function(m,b){return this.stream.write(this.space(b)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType),m.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+m.defaultValueType),m.defaultValue&&this.stream.write(' "'+m.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},y.prototype.dtdElement=function(m,b){return this.stream.write(this.space(b)+"<!ELEMENT "+m.name+" "+m.value),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},y.prototype.dtdEntity=function(m,b){return this.stream.write(this.space(b)+"<!ENTITY"),m.pe&&this.stream.write(" %"),this.stream.write(" "+m.name),m.value?this.stream.write(' "'+m.value+'"'):(m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.nData&&this.stream.write(" NDATA "+m.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},y.prototype.dtdNotation=function(m,b){return this.stream.write(this.space(b)+"<!NOTATION "+m.name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.pubID?this.stream.write(' PUBLIC "'+m.pubID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},y.prototype.endline=function(m){return m.isLastRootNode?"":this.newline},y})(p)}).call(vct)),p8.exports}var _ne;function yct(){return _ne||(_ne=1,(function(){var e,t,n,r,o,i,a;a=B0(),o=a.assign,i=a.isFunction,e=pct(),t=gct(),r=LV(),n=mct(),X0.create=function(s,l,u,d){var c,f;if(s==null)throw new Error("Root element needs a name.");return d=o({},l,u,d),c=new e(d),f=c.element(s),d.headless||(c.declaration(d),(d.pubID!=null||d.sysID!=null)&&c.doctype(d)),f},X0.begin=function(s,l,u){var d;return i(s)&&(d=[s,l],l=d[0],u=d[1],s={}),l?new t(s,l,u):new e(s)},X0.stringWriter=function(s){return new r(s)},X0.streamWriter=function(s,l){return new n(s,l)}}).call(X0)),X0}var Dne;function bct(){if(Dne)return bO;Dne=1;var e=Pa,t=yct();bO.writeString=n;function n(o,i){var a=e.invert(i),s={element:u,text:r};function l(f,p){return s[p.type](f,p)}function u(f,p){var v=f.element(d(p.name),p.attributes);p.children.forEach(function(h){l(v,h)})}function d(f){var p=/^\{(.*)\}(.*)$/.exec(f);if(p){var v=a[p[1]];return v+(v===""?"":":")+p[2]}else return f}function c(f){var p=t.create(d(f.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return e.forEach(i,function(v,h){var g="xmlns"+(h===""?"":":"+h);p.attribute(g,v)}),f.children.forEach(function(v){l(p,v)}),p.end()}return c(o)}function r(o,i){o.text(i.value)}return bO}var Ine;function FV(){if(Ine)return Rp;Ine=1;var e=B4e();return Rp.Element=e.Element,Rp.element=e.element,Rp.emptyElement=e.emptyElement,Rp.text=e.text,Rp.readString=Gut().readString,Rp.writeString=bct().writeString,Rp}var One;function wct(){if(One)return Bx;One=1;var e=Pa,t=R0(),n=FV();Bx.read=o,Bx.readXmlFromZipFile=i;var r={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function o(l){return n.readString(l,r).then(function(u){return s(u)[0]})}function i(l,u){return l.exists(u)?l.read(u,"utf-8").then(a).then(o):t.resolve(null)}function a(l){return l.replace(/^\uFEFF/g,"")}function s(l){return l.type==="element"?l.name==="mc:AlternateContent"?l.firstOrEmpty("mc:Fallback").children:(l.children=e.flatten(l.children.map(s,!0)),[l]):[l]}return Bx}var Ux={},gc={},zx={},Mne;function Act(){if(Mne)return zx;Mne=1,Object.defineProperty(zx,"__esModule",{value:!0});var e=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];return zx.default=e,zx}var Pne;function Cct(){if(Pne)return gc;Pne=1;var e=gc&&gc.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(gc,"__esModule",{value:!0}),gc.hex=gc.dec=gc.codePoint=void 0;for(var t=e(Act()),n={},r=String.fromCodePoint?String.fromCodePoint:f,o=0,i=t.default;o<i.length;o++){var a=i[o],s=parseInt(a["Unicode dec"],10),l={codePoint:s,string:r(s)};n[a["Typeface name"].toUpperCase()+"_"+a["Dingbat dec"]]=l}function u(p,v){return n[p.toUpperCase()+"_"+v]}gc.codePoint=u;function d(p,v){return u(p,parseInt(v,10))}gc.dec=d;function c(p,v){return u(p,parseInt(v,16))}gc.hex=c;function f(p){if(p<=65535)return String.fromCharCode(p);var v=Math.floor((p-65536)/1024)+55296,h=(p-65536)%1024+56320;return String.fromCharCode(v,h)}return gc}var Bp={},Nne;function z4e(){if(Nne)return Bp;Nne=1;var e=Pa;Bp.paragraph=t,Bp.run=n,Bp._elements=o,Bp._elementsOfType=r,Bp.getDescendantsOfType=i,Bp.getDescendants=a;function t(l){return r("paragraph",l)}function n(l){return r("run",l)}function r(l,u){return o(function(d){return d.type===l?u(d):d})}function o(l){return function u(d){if(d.children){var c=e.map(d.children,u);d=e.extend(d,{children:c})}return l(d)}}function i(l,u){return a(l).filter(function(d){return d.type===u})}function a(l){var u=[];return s(l,function(d){u.push(d)}),u}function s(l,u){l.children&&l.children.forEach(function(d){s(d,u),u(d)})}return Bp}var $x={},Rne;function xct(){if(Rne)return $x;Rne=1,$x.uriToZipEntryName=e,$x.replaceFragment=t;function e(n,r){return r.charAt(0)==="/"?r.substr(1):n+"/"+r}function t(n,r){var o=n.indexOf("#");return o!==-1&&(n=n.substring(0,o)),n+"#"+r}return $x}var Bne;function Sct(){if(Bne)return Ux;Bne=1,Ux.createBodyReader=l,Ux._readNumberingProperties=d;var e=Cct(),t=Pa,n=pm(),r=sp().Result,o=sp().warning,i=FV(),a=z4e(),s=xct();function l(A){return{readXmlElement:function(S){return new u(A).readXmlElement(S)},readXmlElements:function(S){return new u(A).readXmlElements(S)}}}function u(A){var S=[],E=[],D=[],_=A.relationships,M=A.contentTypes,O=A.docxFile,k=A.files,R=A.numbering,N=A.styles;function W(pt){var Dt=pt.map(B);return m(Dt)}function B(pt){if(pt.type==="element"){var Dt=pe[pt.name];if(Dt)return Dt(pt);if(!Object.prototype.hasOwnProperty.call(f,pt.name)){var dt=o("An unrecognised element was ignored: "+pt.name);return p([dt])}}return v()}function z(pt){return re(pt).map(function(Dt){return{type:"paragraphProperties",styleId:Dt.styleId,styleName:Dt.name,alignment:pt.firstOrEmpty("w:jc").attributes["w:val"],numbering:d(Dt.styleId,pt.firstOrEmpty("w:numPr"),R),indent:j(pt.firstOrEmpty("w:ind"))}})}function j(pt){return{start:pt.attributes["w:start"]||pt.attributes["w:left"],end:pt.attributes["w:end"]||pt.attributes["w:right"],firstLine:pt.attributes["w:firstLine"],hanging:pt.attributes["w:hanging"]}}function q(pt){return X(pt).map(function(Dt){var dt=pt.firstOrEmpty("w:sz").attributes["w:val"],it=/^[0-9]+$/.test(dt)?parseInt(dt,10)/2:null;return{type:"runProperties",styleId:Dt.styleId,styleName:Dt.name,verticalAlignment:pt.firstOrEmpty("w:vertAlign").attributes["w:val"],font:pt.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:it,isBold:U(pt.first("w:b")),isUnderline:Y(pt.first("w:u")),isItalic:U(pt.first("w:i")),isStrikethrough:U(pt.first("w:strike")),isAllCaps:U(pt.first("w:caps")),isSmallCaps:U(pt.first("w:smallCaps")),highlight:H(pt.firstOrEmpty("w:highlight").attributes["w:val"])}})}function Y(pt){if(pt){var Dt=pt.attributes["w:val"];return Dt!==void 0&&Dt!=="false"&&Dt!=="0"&&Dt!=="none"}else return!1}function U(pt){if(pt){var Dt=pt.attributes["w:val"];return Dt!=="false"&&Dt!=="0"}else return!1}function F(pt){return pt!=="false"&&pt!=="0"}function H(pt){return!pt||pt==="none"?null:pt}function re(pt){return Z(pt,"w:pStyle","Paragraph",N.findParagraphStyleById)}function X(pt){return Z(pt,"w:rStyle","Run",N.findCharacterStyleById)}function te(pt){return Z(pt,"w:tblStyle","Table",N.findTableStyleById)}function Z(pt,Dt,dt,it){var de=[],tt=pt.first(Dt),ft=null,Mt=null;if(tt&&(ft=tt.attributes["w:val"],ft)){var Tn=it(ft);Tn?Mt=Tn.name:de.push(Ht(dt,ft))}return g({styleId:ft,name:Mt},de)}function le(pt){var Dt=pt.attributes["w:fldCharType"];if(Dt==="begin")S.push({type:"begin",fldChar:pt}),E=[];else if(Dt==="end"){var dt=S.pop();if(dt.type==="begin"&&(dt=Pe(dt)),dt.type==="checkbox")return h(n.checkbox({checked:dt.checked}))}else if(Dt==="separate"){var it=S.pop(),de=Pe(it);S.push(de)}return v()}function ve(){var pt=t.last(S.filter(function(Dt){return Dt.type==="hyperlink"}));return pt?pt.options:null}function Pe(pt){return Ae(E.join(""),pt.type==="begin"?pt.fldChar:i.emptyElement)}function Ae(pt,Dt){var dt=/\s*HYPERLINK "(.*)"/.exec(pt);if(dt)return{type:"hyperlink",options:{href:dt[1]}};var it=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(pt);if(it)return{type:"hyperlink",options:{anchor:it[1]}};var de=/\s*FORMCHECKBOX\s*/.exec(pt);if(de){var tt=Dt.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),ft=tt.first("w:checked"),Mt=ft==null?U(tt.first("w:default")):U(ft);return{type:"checkbox",checked:Mt}}return{type:"unknown"}}function he(pt){return E.push(pt.text()),v()}function Ee(pt){var Dt=pt.attributes["w:font"],dt=pt.attributes["w:char"],it=e.hex(Dt,dt);return it==null&&/^F0..$/.test(dt)&&(it=e.hex(Dt,dt.substring(2))),it==null?p([o("A w:sym element with an unsupported character was ignored: char "+dt+" in font "+Dt)]):h(new n.Text(it.string))}function Q(pt){return function(Dt){var dt=Dt.attributes["w:id"];return h(new n.NoteReference({noteType:pt,noteId:dt}))}}function me(pt){return h(n.commentReference({commentId:pt.attributes["w:id"]}))}function De(pt){return W(pt.children)}var pe={"w:p":function(pt){var Dt=pt.firstOrEmpty("w:pPr"),dt=!!Dt.firstOrEmpty("w:rPr").first("w:del");if(dt)return pt.children.forEach(function(de){D.push(de)}),v();var it=pt.children;return D.length>0&&(it=D.concat(it),D=[]),y.map(z(Dt),W(it),function(de,tt){return new n.Paragraph(tt,de)}).insertExtra()},"w:r":function(pt){return y.map(q(pt.firstOrEmpty("w:rPr")),W(pt.children),function(Dt,dt){var it=ve();return it!==null&&(dt=[new n.Hyperlink(dt,it)]),new n.Run(dt,Dt)})},"w:fldChar":le,"w:instrText":he,"w:t":function(pt){return h(new n.Text(pt.text()))},"w:tab":function(pt){return h(new n.Tab)},"w:noBreakHyphen":function(){return h(new n.Text("‑"))},"w:softHyphen":function(pt){return h(new n.Text(""))},"w:sym":Ee,"w:hyperlink":function(pt){var Dt=pt.attributes["r:id"],dt=pt.attributes["w:anchor"];return W(pt.children).map(function(it){function de(ft){var Mt=pt.attributes["w:tgtFrame"]||null;return new n.Hyperlink(it,t.extend({targetFrame:Mt},ft))}if(Dt){var tt=_.findTargetByRelationshipId(Dt);return dt&&(tt=s.replaceFragment(tt,dt)),de({href:tt})}else return dt?de({anchor:dt}):it})},"w:tbl":ie,"w:tr":Be,"w:tc":Me,"w:footnoteReference":Q("footnote"),"w:endnoteReference":Q("endnote"),"w:commentReference":me,"w:br":function(pt){var Dt=pt.attributes["w:type"];return Dt==null||Dt==="textWrapping"?h(n.lineBreak):Dt==="page"?h(n.pageBreak):Dt==="column"?h(n.columnBreak):p([o("Unsupported break type: "+Dt)])},"w:bookmarkStart":function(pt){var Dt=pt.attributes["w:name"];return Dt==="_GoBack"?v():h(new n.BookmarkStart({name:Dt}))},"mc:AlternateContent":function(pt){return De(pt.firstOrEmpty("mc:Fallback"))},"w:sdt":function(pt){var Dt=W(pt.firstOrEmpty("w:sdtContent").children);return Dt.map(function(dt){var it=pt.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(it){var de=it.first("wordml:checked"),tt=!!de&&F(de.attributes["wordml:val"]),ft=n.checkbox({checked:tt}),Mt=!1,Tn=dt.map(a._elementsOfType(n.types.text,function(Nn){return Nn.value.length>0&&!Mt?(Mt=!0,ft):Nn}));return Mt?Tn:ft}else return dt})},"w:ins":De,"w:object":De,"w:smartTag":De,"w:drawing":De,"w:pict":function(pt){return De(pt).toExtra()},"v:roundrect":De,"v:shape":De,"v:textbox":De,"w:txbxContent":De,"wp:inline":Ne,"wp:anchor":Ne,"v:imagedata":Lt,"v:group":De,"v:rect":De};return{readXmlElement:B,readXmlElements:W};function ie(pt){var Dt=ue(pt.firstOrEmpty("w:tblPr"));return W(pt.children).flatMap(ze).flatMap(function(dt){return Dt.map(function(it){return n.Table(dt,it)})})}function ue(pt){return te(pt).map(function(Dt){return{styleId:Dt.styleId,styleName:Dt.name}})}function Be(pt){var Dt=pt.firstOrEmpty("w:trPr"),dt=!!Dt.first("w:del");if(dt)return v();var it=!!Dt.first("w:tblHeader");return W(pt.children).map(function(de){return n.TableRow(de,{isHeader:it})})}function Me(pt){return W(pt.children).map(function(Dt){var dt=pt.firstOrEmpty("w:tcPr"),it=dt.firstOrEmpty("w:gridSpan").attributes["w:val"],de=it?parseInt(it,10):1,tt=n.TableCell(Dt,{colSpan:de});return tt._vMerge=Fe(dt),tt})}function Fe(pt){var Dt=pt.first("w:vMerge");if(Dt){var dt=Dt.attributes["w:val"];return dt==="continue"||!dt}else return null}function ze(pt){var Dt=t.any(pt,function(de){return de.type!==n.types.tableRow});if(Dt)return g(pt,[o("unexpected non-row element in table, cell merging may be incorrect")]);var dt=t.any(pt,function(de){return t.any(de.children,function(tt){return tt.type!==n.types.tableCell})});if(dt)return g(pt,[o("unexpected non-cell element in table row, cell merging may be incorrect")]);var it={};return pt.forEach(function(de){var tt=0;de.children.forEach(function(ft){ft._vMerge&&it[tt]?it[tt].rowSpan++:(it[tt]=ft,ft._vMerge=!1),tt+=ft.colSpan})}),pt.forEach(function(de){de.children=de.children.filter(function(tt){return!tt._vMerge}),de.children.forEach(function(tt){delete tt._vMerge})}),h(pt)}function Ne(pt){var Dt=pt.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return m(Dt.map(Re.bind(null,pt)))}function Re(pt,Dt){var dt=pt.first("wp:docPr").attributes,it=gt(dt.descr)?dt.title:dt.descr,de=Bt(Dt);return de===null?p([o("Could not find image file for a:blip element")]):Kt(de,it)}function gt(pt){return pt==null||/^\s*$/.test(pt)}function Bt(pt){var Dt=pt.attributes["r:embed"],dt=pt.attributes["r:link"];if(Dt)return an(Dt);if(dt){var it=_.findTargetByRelationshipId(dt);return{path:it,read:k.read.bind(k,it)}}else return null}function Lt(pt){var Dt=pt.attributes["r:id"];return Dt?Kt(an(Dt),pt.attributes["o:title"]):p([o("A v:imagedata element without a relationship ID was ignored")])}function an(pt){var Dt=s.uriToZipEntryName("word",_.findTargetByRelationshipId(pt));return{path:Dt,read:O.read.bind(O,Dt)}}function Kt(pt,Dt){var dt=M.findContentType(pt.path),it=n.Image({readImage:pt.read,altText:Dt,contentType:dt}),de=c[dt]?[]:o("Image of type "+dt+" is unlikely to display in web browsers");return g(it,de)}function Ht(pt,Dt){return o(pt+" style with ID "+Dt+" was referenced but not defined in the document")}}function d(A,S,E){var D=S.firstOrEmpty("w:ilvl").attributes["w:val"],_=S.firstOrEmpty("w:numId").attributes["w:val"];if(D!==void 0&&_!==void 0)return E.findLevel(_,D);if(A!=null){var M=E.findLevelByParagraphStyleId(A);if(M!=null)return M}return null}var c={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},f={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function p(A){return new y(null,null,A)}function v(){return new y(null)}function h(A){return new y(A)}function g(A,S){return new y(A,null,S)}function y(A,S,E){this.value=A||[],this.extra=S||[],this._result=new r({element:this.value,extra:S},E),this.messages=this._result.messages}y.prototype.toExtra=function(){return new y(null,b(this.extra,this.value),this.messages)},y.prototype.insertExtra=function(){var A=this.extra;return A&&A.length?new y(b(this.value,A),null,this.messages):this},y.prototype.map=function(A){var S=this._result.map(function(E){return A(E.element)});return new y(S.value,this.extra,S.messages)},y.prototype.flatMap=function(A){var S=this._result.flatMap(function(E){return A(E.element)._result});return new y(S.value.element,b(this.extra,S.value.extra),S.messages)},y.map=function(A,S,E){return new y(E(A.value,S.value),b(A.extra,S.extra),A.messages.concat(S.messages))};function m(A){var S=r.combine(t.pluck(A,"_result"));return new y(t.flatten(t.pluck(S.value,"element")),t.filter(t.flatten(t.pluck(S.value,"extra")),w),S.messages)}function b(A,S){return t.flatten([A,S])}function w(A){return A}return Ux}var wO={},Lne;function Ect(){if(Lne)return wO;Lne=1,wO.DocumentXmlReader=n;var e=pm(),t=sp().Result;function n(r){var o=r.bodyReader;function i(a){var s=a.first("w:body");if(s==null)throw new Error("Could not find the body element: are you sure this is a docx file?");var l=o.readXmlElements(s.children).map(function(u){return new e.Document(u,{notes:r.notes,comments:r.comments})});return new t(l.value,l.messages)}return{convertXmlToDocument:i}}return wO}var $2={},Fne;function kct(){if(Fne)return $2;Fne=1,$2.readRelationships=e,$2.defaultValue=new t([]),$2.Relationships=t;function e(n){var r=[];return n.children.forEach(function(o){if(o.name==="relationships:Relationship"){var i={relationshipId:o.attributes.Id,target:o.attributes.Target,type:o.attributes.Type};r.push(i)}}),new t(r)}function t(n){var r={};n.forEach(function(i){r[i.relationshipId]=i.target});var o={};return n.forEach(function(i){o[i.type]||(o[i.type]=[]),o[i.type].push(i.target)}),{findTargetByRelationshipId:function(i){return r[i]},findTargetsByType:function(i){return o[i]||[]}}}return $2}var jx={},Une;function Tct(){if(Une)return jx;Une=1,jx.readContentTypesFromXml=t;var e={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};jx.defaultContentTypes=n({},{});function t(r){var o={},i={};return r.children.forEach(function(a){if(a.name==="content-types:Default"&&(o[a.attributes.Extension]=a.attributes.ContentType),a.name==="content-types:Override"){var s=a.attributes.PartName;s.charAt(0)==="/"&&(s=s.substring(1)),i[s]=a.attributes.ContentType}}),n(i,o)}function n(r,o){return{findContentType:function(i){var a=r[i];if(a)return a;var s=i.split("."),l=s[s.length-1];if(o.hasOwnProperty(l))return o[l];var u=e[l.toLowerCase()];return u?"image/"+u:null}}}return jx}var j2={},zne;function _ct(){if(zne)return j2;zne=1;var e=Pa;j2.readNumberingXml=n,j2.Numbering=t,j2.defaultNumbering=new t({},{});function t(a,s,l){var u=e.flatten(e.values(s).map(function(p){return e.values(p.levels)})),d=e.indexBy(u.filter(function(p){return p.paragraphStyleId!=null}),"paragraphStyleId");function c(p,v){var h=a[p];if(h){var g=s[h.abstractNumId];if(g){if(g.numStyleLink==null)return s[h.abstractNumId].levels[v];var y=l.findNumberingStyleById(g.numStyleLink);return c(y.numId,v)}else return null}else return null}function f(p){return d[p]||null}return{findLevel:c,findLevelByParagraphStyleId:f}}function n(a,s){if(!s||!s.styles)throw new Error("styles is missing");var l=r(a),u=i(a);return new t(u,l,s.styles)}function r(a){var s={};return a.getElementsByTagName("w:abstractNum").forEach(function(l){var u=l.attributes["w:abstractNumId"];s[u]=o(l)}),s}function o(a){var s={};a.getElementsByTagName("w:lvl").forEach(function(u){var d=u.attributes["w:ilvl"],c=u.firstOrEmpty("w:numFmt").attributes["w:val"],f=u.firstOrEmpty("w:pStyle").attributes["w:val"];s[d]={isOrdered:c!=="bullet",level:d,paragraphStyleId:f}});var l=a.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:s,numStyleLink:l}}function i(a){var s={};return a.getElementsByTagName("w:num").forEach(function(l){var u=l.attributes["w:numId"],d=l.first("w:abstractNumId").attributes["w:val"];s[u]={abstractNumId:d}}),s}return j2}var H2={},$ne;function Dct(){if($ne)return H2;$ne=1,H2.readStylesXml=t,H2.Styles=e,H2.defaultStyles=new e({},{});function e(i,a,s,l){return{findParagraphStyleById:function(u){return i[u]},findCharacterStyleById:function(u){return a[u]},findTableStyleById:function(u){return s[u]},findNumberingStyleById:function(u){return l[u]}}}e.EMPTY=new e({},{},{},{});function t(i){var a={},s={},l={},u={},d={paragraph:a,character:s,table:l};return i.getElementsByTagName("w:style").forEach(function(c){var f=n(c);if(f.type==="numbering")u[f.styleId]=o(c);else{var p=d[f.type];p&&(p[f.styleId]=f)}}),new e(a,s,l,u)}function n(i){var a=i.attributes["w:type"],s=i.attributes["w:styleId"],l=r(i);return{type:a,styleId:s,name:l}}function r(i){var a=i.first("w:name");return a?a.attributes["w:val"]:null}function o(i){var a=i.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{numId:a}}return H2}var Wm={},jne;function Ict(){if(jne)return Wm;jne=1;var e=pm(),t=sp().Result;Wm.createFootnotesReader=n.bind(Wm,"footnote"),Wm.createEndnotesReader=n.bind(Wm,"endnote");function n(r,o){function i(l){return t.combine(l.getElementsByTagName("w:"+r).filter(a).map(s))}function a(l){var u=l.attributes["w:type"];return u!=="continuationSeparator"&&u!=="separator"}function s(l){var u=l.attributes["w:id"];return o.readXmlElements(l.children).map(function(d){return e.Note({noteType:r,noteId:u,body:d})})}return i}return Wm}var AO={},Hne;function Oct(){if(Hne)return AO;Hne=1;var e=pm(),t=sp().Result;function n(r){function o(a){return t.combine(a.getElementsByTagName("w:comment").map(i))}function i(a){var s=a.attributes["w:id"];function l(u){return(a.attributes[u]||"").trim()||null}return r.readXmlElements(a.children).map(function(u){return e.comment({commentId:s,body:u,authorName:l("w:author"),authorInitials:l("w:initials")})})}return o}return AO.createCommentsReader=n,AO}var CO={},Wne;function Mct(){if(Wne)return CO;Wne=1;var e=R0();CO.Files=t;function t(){function n(r){return e.reject(new Error("could not open external image: '"+r+`'
- cannot open linked files from a web browser`))}return{read:n}}return CO}var Vne;function Pct(){if(Vne)return Mx;Vne=1,Mx.read=v,Mx._findPartPaths=h;var e=R0(),t=pm(),n=sp().Result,r=R4e(),o=wct().readXmlFromZipFile,i=Sct().createBodyReader,a=Ect().DocumentXmlReader,s=kct(),l=Tct(),u=_ct(),d=Dct(),c=Ict(),f=Oct(),p=Mct().Files;function v(_,M){return M=M||{},e.props({contentTypes:A(_),partPaths:h(_),docxFile:_,files:M.path?p.relativeToFile(M.path):new p(null)}).also(function(O){return{styles:E(_,O.partPaths.styles)}}).also(function(O){return{numbering:S(_,O.partPaths.numbering,O.styles)}}).also(function(O){return{footnotes:b(O.partPaths.footnotes,O,function(k,R){return R?c.createFootnotesReader(k)(R):new n([])}),endnotes:b(O.partPaths.endnotes,O,function(k,R){return R?c.createEndnotesReader(k)(R):new n([])}),comments:b(O.partPaths.comments,O,function(k,R){return R?f.createCommentsReader(k)(R):new n([])})}}).also(function(O){return{notes:O.footnotes.flatMap(function(k){return O.endnotes.map(function(R){return new t.Notes(k.concat(R))})})}}).then(function(O){return b(O.partPaths.mainDocument,O,function(k,R){return O.notes.flatMap(function(N){return O.comments.flatMap(function(W){var B=new a({bodyReader:k,notes:N,comments:W});return B.convertXmlToDocument(R)})})})})}function h(_){return D(_).then(function(M){var O=g({docxFile:_,relationships:M,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!_.exists(O))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return m({filename:w(O),readElement:s.readRelationships,defaultValue:s.defaultValue})(_).then(function(k){function R(N){return g({docxFile:_,relationships:k,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+N,basePath:r.splitPath(O).dirname,fallbackPath:"word/"+N+".xml"})}return{mainDocument:O,comments:R("comments"),endnotes:R("endnotes"),footnotes:R("footnotes"),numbering:R("numbering"),styles:R("styles")}})})}function g(_){var M=_.docxFile,O=_.relationships,k=_.relationshipType,R=_.basePath,N=_.fallbackPath,W=O.findTargetsByType(k),B=W.map(function(j){return y(r.joinPath(R,j),"/")}),z=B.filter(function(j){return M.exists(j)});return z.length===0?N:z[0]}function y(_,M){return _.substring(0,M.length)===M?_.substring(M.length):_}function m(_){return function(M){return o(M,_.filename).then(function(O){return O?_.readElement(O):_.defaultValue})}}function b(_,M,O){var k=m({filename:w(_),readElement:s.readRelationships,defaultValue:s.defaultValue});return k(M.docxFile).then(function(R){var N=new i({relationships:R,contentTypes:M.contentTypes,docxFile:M.docxFile,numbering:M.numbering,styles:M.styles,files:M.files});return o(M.docxFile,_).then(function(W){return O(N,W)})})}function w(_){var M=r.splitPath(_);return r.joinPath(M.dirname,"_rels",M.basename+".rels")}var A=m({filename:"[Content_Types].xml",readElement:l.readContentTypesFromXml,defaultValue:l.defaultContentTypes});function S(_,M,O){return m({filename:M,readElement:function(k){return u.readNumberingXml(k,{styles:O})},defaultValue:u.defaultNumbering})(_)}function E(_,M){return m({filename:M,readElement:d.readStylesXml,defaultValue:d.defaultStyles})(_)}var D=m({filename:"_rels/.rels",readElement:s.readRelationships,defaultValue:s.defaultValue});return Mx}var Hx={},qne;function Nct(){if(qne)return Hx;qne=1;var e=Pa,t=R0(),n=FV();Hx.writeStyleMap=a,Hx.readStyleMap=d;var r="http://schemas.zwobble.org/mammoth/style-map",o="mammoth/style-map",i="/"+o;function a(c,f){return c.write(o,f),s(c).then(function(){return l(c)})}function s(c){var f="word/_rels/document.xml.rels",p="http://schemas.openxmlformats.org/package/2006/relationships",v="{"+p+"}Relationship";return c.read(f,"utf8").then(n.readString).then(function(h){var g=h.children;u(g,v,"Id",{Id:"rMammothStyleMap",Type:r,Target:i});var y={"":p};return c.write(f,n.writeString(h,y))})}function l(c){var f="[Content_Types].xml",p="http://schemas.openxmlformats.org/package/2006/content-types",v="{"+p+"}Override";return c.read(f,"utf8").then(n.readString).then(function(h){var g=h.children;u(g,v,"PartName",{PartName:i,ContentType:"text/prs.mammoth.style-map"});var y={"":p};return c.write(f,n.writeString(h,y))})}function u(c,f,p,v){var h=e.find(c,function(g){return g.name===f&&g.attributes[p]===v[p]});h?h.attributes=v:c.push(n.element(f,v))}function d(c){return c.exists(o)?c.read(o,"utf8"):t.resolve(null)}return Hx}var Wx={},J0={},gf={},Lp={},Gne;function $4e(){if(Gne)return Lp;Gne=1;var e=KD();function t(l,u,d){return r(e.element(l,u,{fresh:!1}),d)}function n(l,u,d){var c=e.element(l,u,{fresh:!0});return r(c,d)}function r(l,u){return{type:"element",tag:l,children:u||[]}}function o(l){return{type:"text",value:l}}var i={type:"forceWrite"};Lp.freshElement=n,Lp.nonFreshElement=t,Lp.elementWithTag=r,Lp.text=o,Lp.forceWrite=i;var a={br:!0,hr:!0,img:!0,input:!0};function s(l){return l.children.length===0&&a[l.tag.tagName]}return Lp.isVoidElement=s,Lp}var xO,Kne;function Rct(){if(Kne)return xO;Kne=1;var e=Pa,t=$4e();function n(h){return r(u(h))}function r(h){var g=[];return h.map(o).forEach(function(y){l(g,y)}),g}function o(h){return i[h.type](h)}var i={element:a,text:s,forceWrite:s};function a(h){return t.elementWithTag(h.tag,r(h.children))}function s(h){return h}function l(h,g){var y=h[h.length-1];g.type==="element"&&!g.tag.fresh&&y&&y.type==="element"&&g.tag.matchesElement(y.tag)?(g.tag.separator&&l(y.children,t.text(g.tag.separator)),g.children.forEach(function(m){l(y.children,m)})):h.push(g)}function u(h){return d(h,function(g){return c[g.type](g)})}function d(h,g){return e.flatten(e.map(h,g),!0)}var c={element:p,text:v,forceWrite:f};function f(h){return[h]}function p(h){var g=u(h.children);return g.length===0&&!t.isVoidElement(h)?[]:[t.elementWithTag(h.tag,g)]}function v(h){return h.value.length===0?[]:[h]}return xO=n,xO}var Yne;function GD(){if(Yne)return gf;Yne=1;var e=$4e();gf.freshElement=e.freshElement,gf.nonFreshElement=e.nonFreshElement,gf.elementWithTag=e.elementWithTag,gf.text=e.text,gf.forceWrite=e.forceWrite,gf.simplify=Rct();function t(a,s){s.forEach(function(l){n(a,l)})}function n(a,s){r[s.type](a,s)}var r={element:o,text:i,forceWrite:function(){}};function o(a,s){e.isVoidElement(s)?a.selfClosing(s.tag.tagName,s.tag.attributes):(a.open(s.tag.tagName,s.tag.attributes),t(a,s.children),a.close(s.tag.tagName))}function i(a,s){a.text(s.value)}return gf.write=t,gf}var Qne;function KD(){if(Qne)return J0;Qne=1;var e=Pa,t=GD();J0.topLevelElement=n,J0.elements=r,J0.element=i;function n(s,l){return r([i(s,l,{fresh:!0})])}function r(s){return new o(s.map(function(l){return e.isString(l)?i(l):l}))}function o(s){this._elements=s}o.prototype.wrap=function(l){for(var u=l(),d=this._elements.length-1;d>=0;d--)u=this._elements[d].wrapNodes(u);return u};function i(s,l,u){return u=u||{},new a(s,l,u)}function a(s,l,u){var d={};e.isArray(s)?(s.forEach(function(c){d[c]=!0}),s=s[0]):d[s]=!0,this.tagName=s,this.tagNames=d,this.attributes=l||{},this.fresh=u.fresh,this.separator=u.separator}return a.prototype.matchesElement=function(s){return this.tagNames[s.tagName]&&e.isEqual(this.attributes||{},s.attributes||{})},a.prototype.wrap=function(l){return this.wrapNodes(l())},a.prototype.wrapNodes=function(l){return[t.elementWithTag(this,l)]},J0.empty=r([]),J0.ignore={wrap:function(){return[]}},J0}var SO={},Zne;function j4e(){return Zne||(Zne=1,(function(e){var t=Pa,n=R0(),r=GD();e.imgElement=o;function o(i){return function(a,s){return n.when(i(a)).then(function(l){var u={};return a.altText&&(u.alt=a.altText),t.extend(u,l),[r.freshElement("img",u)]})}}e.inline=e.imgElement,e.dataUri=o(function(i){return i.readAsBase64String().then(function(a){return{src:"data:"+i.contentType+";base64,"+a}})})})(SO)),SO}var EO={},kO={},Xne;function Bct(){if(Xne)return kO;Xne=1;var e=Pa;kO.writer=t;function t(s){return s=s||{},s.prettyPrint?r():o()}var n={div:!0,p:!0,ul:!0,li:!0};function r(){var s=0,l=" ",u=[],d=!0,c=!1,f=o();function p(A,S){n[A]&&b(),u.push(A),f.open(A,S),n[A]&&s++,d=!1}function v(A){n[A]&&(s--,b()),u.pop(),f.close(A)}function h(A){m();var S=w()?A:A.replace(`
- `,`
- `+l);f.text(S)}function g(A,S){b(),f.selfClosing(A,S)}function y(){return u.length===0||n[u[u.length-1]]}function m(){c||(b(),c=!0)}function b(){if(c=!1,!d&&y()&&!w()){f._append(`
- `);for(var A=0;A<s;A++)f._append(l)}}function w(){return e.some(u,function(A){return A==="pre"})}return{asString:f.asString,open:p,close:v,text:h,selfClosing:g}}function o(){var s=[];function l(h,g){var y=c(g);s.push("<"+h+y+">")}function u(h){s.push("</"+h+">")}function d(h,g){var y=c(g);s.push("<"+h+y+" />")}function c(h){return e.map(h,function(g,y){return" "+y+'="'+a(g)+'"'}).join("")}function f(h){s.push(i(h))}function p(h){s.push(h)}function v(){return s.join("")}return{asString:v,open:l,close:u,text:f,selfClosing:d,_append:p}}function i(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function a(s){return s.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}return kO}var TO={},Jne;function Lct(){if(Jne)return TO;Jne=1;var e=Pa;function t(c){return n(c,c)}function n(c,f){return function(){return{start:c,end:f}}}function r(c){var f=c.href||"";return f?{start:"[",end:"]("+f+")",anchorPosition:"before"}:{}}function o(c){var f=c.src||"",p=c.alt||"";return f||p?{start:""}:{}}function i(c){return function(f,p){return{start:p?`
- `:"",end:p?"":`
- `,list:{isOrdered:c.isOrdered,indent:p?p.indent+1:0,count:0}}}}function a(c,f,p){f=f||{indent:0,isOrdered:!1,count:0},f.count++,p.hasClosed=!1;var v=f.isOrdered?f.count+".":"-",h=l(" ",f.indent)+v+" ";return{start:h,end:function(){if(!p.hasClosed)return p.hasClosed=!0,`
- `}}}var s={p:n("",`
- `),br:n("",`
- `),ul:i({isOrdered:!1}),ol:i({isOrdered:!0}),li:a,strong:t("__"),em:t("*"),a:r,img:o};(function(){for(var c=1;c<=6;c++)s["h"+c]=n(l("#",c)+" ",`
- `)})();function l(c,f){return new Array(f+1).join(c)}function u(){var c=[],f=[],p=null,v={};function h(A,S){S=S||{};var E=s[A]||function(){return{}},D=E(S,p,v);f.push({end:D.end,list:p}),D.list&&(p=D.list);var _=D.anchorPosition==="before";_&&g(S),c.push(D.start||""),_||g(S)}function g(A){A.id&&c.push('<a id="'+A.id+'"></a>')}function y(A){var S=f.pop();p=S.list;var E=e.isFunction(S.end)?S.end():S.end;c.push(E||"")}function m(A,S){h(A,S),y()}function b(A){c.push(d(A))}function w(){return c.join("")}return{asString:w,open:h,close:y,text:b,selfClosing:m}}TO.writer=u;function d(c){return c.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}return TO}var ere;function Fct(){if(ere)return EO;ere=1;var e=Bct(),t=Lct();EO.writer=n;function n(r){return r=r||{},r.outputFormat==="markdown"?t.writer():e.writer(r)}return EO}var tre;function Uct(){if(tre)return Wx;tre=1;var e=Pa,t=R0(),n=pm(),r=KD(),o=sp(),i=j4e(),a=GD(),s=Fct();Wx.DocumentConverter=l;function l(g){return{convertToHtml:function(y){var m=e.indexBy(y.type===n.types.document?y.comments:[],"commentId"),b=new u(g,m);return b.convertToHtml(y)}}}function u(g,y){var m=1,b=[],w=[];g=e.extend({ignoreEmptyParagraphs:!0},g);var A=g.idPrefix===void 0?"":g.idPrefix,S=g.ignoreEmptyParagraphs,E=r.topLevelElement("p"),D=g.styleMap||[];function _(Q){var me=[],De=O(Q,me,{}),pe=[];v(De,function(ue){ue.type==="deferred"&&pe.push(ue)});var ie={};return t.mapSeries(pe,function(ue){return ue.value().then(function(Be){ie[ue.id]=Be})}).then(function(){function ue(Me){return p(Me,function(Fe){return Fe.type==="deferred"?ie[Fe.id]:Fe.children?[e.extend({},Fe,{children:ue(Fe.children)})]:[Fe]})}var Be=s.writer({prettyPrint:g.prettyPrint,outputFormat:g.outputFormat});return a.write(Be,a.simplify(ue(De))),new o.Result(Be.asString(),me)})}function M(Q,me,De){return p(Q,function(pe){return O(pe,me,De)})}function O(Q,me,De){if(!De)throw new Error("options not set");var pe=Ee[Q.type];return pe?pe(Q,me,De):[]}function k(Q,me,De){return R(Q,me).wrap(function(){var pe=M(Q.children,me,De);return S?pe:[a.forceWrite].concat(pe)})}function R(Q,me){var De=z(Q);return De?De.to:(Q.styleId&&me.push(f("paragraph",Q)),E)}function N(Q,me,De){var pe=function(){return M(Q.children,me,De)},ie=[];if(Q.highlight!==null){var ue=B({type:"highlight",color:Q.highlight});ue&&ie.push(ue)}Q.isSmallCaps&&ie.push(W("smallCaps")),Q.isAllCaps&&ie.push(W("allCaps")),Q.isStrikethrough&&ie.push(W("strikethrough","s")),Q.isUnderline&&ie.push(W("underline")),Q.verticalAlignment===n.verticalAlignment.subscript&&ie.push(r.element("sub",{},{fresh:!1})),Q.verticalAlignment===n.verticalAlignment.superscript&&ie.push(r.element("sup",{},{fresh:!1})),Q.isItalic&&ie.push(W("italic","em")),Q.isBold&&ie.push(W("bold","strong"));var Be=r.empty,Me=z(Q);return Me?Be=Me.to:Q.styleId&&me.push(f("run",Q)),ie.push(Be),ie.forEach(function(Fe){pe=Fe.wrap.bind(Fe,pe)}),pe()}function W(Q,me){var De=B({type:Q});return De||(me?r.element(me,{},{fresh:!1}):r.empty)}function B(Q,me){var De=z(Q);return De?De.to:me}function z(Q){for(var me=0;me<D.length;me++)if(D[me].from.matches(Q))return D[me]}function j(Q){return function(me,De){return t.attempt(function(){return Q(me,De)}).caught(function(pe){return De.push(o.error(pe)),[]})}}function q(Q){return U(Q.noteType,Q.noteId)}function Y(Q){return F(Q.noteType,Q.noteId)}function U(Q,me){return H(Q+"-"+me)}function F(Q,me){return H(Q+"-ref-"+me)}function H(Q){return A+Q}var re=r.elements([r.element("table",{},{fresh:!0})]);function X(Q,me,De){return B(Q,re).wrap(function(){return te(Q,me,De)})}function te(Q,me,De){var pe=e.findIndex(Q.children,function(Me){return!Me.type===n.types.tableRow||!Me.isHeader});pe===-1&&(pe=Q.children.length);var ie;if(pe===0)ie=M(Q.children,me,e.extend({},De,{isTableHeader:!1}));else{var ue=M(Q.children.slice(0,pe),me,e.extend({},De,{isTableHeader:!0})),Be=M(Q.children.slice(pe),me,e.extend({},De,{isTableHeader:!1}));ie=[a.freshElement("thead",{},ue),a.freshElement("tbody",{},Be)]}return[a.forceWrite].concat(ie)}function Z(Q,me,De){var pe=M(Q.children,me,De);return[a.freshElement("tr",{},[a.forceWrite].concat(pe))]}function le(Q,me,De){var pe=De.isTableHeader?"th":"td",ie=M(Q.children,me,De),ue={};return Q.colSpan!==1&&(ue.colspan=Q.colSpan.toString()),Q.rowSpan!==1&&(ue.rowspan=Q.rowSpan.toString()),[a.freshElement(pe,ue,[a.forceWrite].concat(ie))]}function ve(Q,me,De){return B(Q,r.ignore).wrap(function(){var pe=y[Q.commentId],ie=w.length+1,ue="["+h(pe)+ie+"]";return w.push({label:ue,comment:pe}),[a.freshElement("a",{href:"#"+U("comment",Q.commentId),id:F("comment",Q.commentId)},[a.text(ue)])]})}function Pe(Q,me,De){var pe=Q.label,ie=Q.comment,ue=M(ie.body,me,De).concat([a.nonFreshElement("p",{},[a.text(" "),a.freshElement("a",{href:"#"+F("comment",ie.commentId)},[a.text("↑")])])]);return[a.freshElement("dt",{id:U("comment",ie.commentId)},[a.text("Comment "+pe)]),a.freshElement("dd",{},ue)]}function Ae(Q,me,De){return he(Q).wrap(function(){return[]})}function he(Q){var me=z(Q);return me?me.to:Q.breakType==="line"?r.topLevelElement("br"):r.empty}var Ee={document:function(Q,me,De){var pe=M(Q.children,me,De),ie=b.map(function(Be){return Q.notes.resolve(Be)}),ue=M(ie,me,De);return pe.concat([a.freshElement("ol",{},ue),a.freshElement("dl",{},p(w,function(Be){return Pe(Be,me,De)}))])},paragraph:k,run:N,text:function(Q,me,De){return[a.text(Q.value)]},tab:function(Q,me,De){return[a.text(" ")]},hyperlink:function(Q,me,De){var pe=Q.anchor?"#"+H(Q.anchor):Q.href,ie={href:pe};Q.targetFrame!=null&&(ie.target=Q.targetFrame);var ue=M(Q.children,me,De);return[a.nonFreshElement("a",ie,ue)]},checkbox:function(Q){var me={type:"checkbox"};return Q.checked&&(me.checked="checked"),[a.freshElement("input",me)]},bookmarkStart:function(Q,me,De){var pe=a.freshElement("a",{id:H(Q.name)},[a.forceWrite]);return[pe]},noteReference:function(Q,me,De){b.push(Q);var pe=a.freshElement("a",{href:"#"+q(Q),id:Y(Q)},[a.text("["+m+++"]")]);return[a.freshElement("sup",{},[pe])]},note:function(Q,me,De){var pe=M(Q.body,me,De),ie=a.elementWithTag(r.element("p",{},{fresh:!1}),[a.text(" "),a.freshElement("a",{href:"#"+Y(Q)},[a.text("↑")])]),ue=pe.concat([ie]);return a.freshElement("li",{id:q(Q)},ue)},commentReference:ve,comment:Pe,image:c(j(g.convertImage||i.dataUri)),table:X,tableRow:Z,tableCell:le,break:Ae};return{convertToHtml:_}}var d=1;function c(g){return function(y,m,b){return[{type:"deferred",id:d++,value:function(){return g(y,m,b)}}]}}function f(g,y){return o.warning("Unrecognised "+g+" style: '"+y.styleName+"' (Style ID: "+y.styleId+")")}function p(g,y){return e.flatten(g.map(y),!0)}function v(g,y){g.forEach(function(m){y(m),m.children&&v(m.children,y)})}var h=Wx.commentAuthorLabel=function(y){return y.authorInitials||""};return Wx}var _O={},nre;function zct(){if(nre)return _O;nre=1;var e=pm();function t(n){if(n.type==="text")return n.value;if(n.type===e.types.tab)return" ";var r=n.type==="paragraph"?`
- `:"";return(n.children||[]).map(t).join("")+r}return _O.convertElementToRawText=t,_O}var W2={},vc={},DO={},IO={exports:{}},rre;function $ct(){if(rre)return IO.exports;rre=1;var e=IO.exports=function(t,n){this._tokens=t,this._startIndex=n||0};return e.prototype.head=function(){return this._tokens[this._startIndex]},e.prototype.tail=function(t){return new e(this._tokens,this._startIndex+1)},e.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},e.prototype.end=function(){return this._tokens[this._tokens.length-1]},e.prototype.to=function(t){var n=this.head().source,r=t.head()||t.end();return n.to(r.source)},IO.exports}var ore;function jct(){if(ore)return DO;ore=1;var e=$ct();return DO.Parser=function(t){var n=function(r,o){return r(new e(o))};return{parseTokens:n}},DO}var OO={},MO={},ire;function Hct(){return ire||(ire=1,(function(e){e.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return e.none},flatMap:function(){return e.none},filter:function(){return e.none},toArray:function(){return[]},orElse:t,valueOrElse:t});function t(r){return typeof r=="function"?r():r}e.some=function(r){return new n(r)};var n=function(r){this._value=r};n.prototype.value=function(){return this._value},n.prototype.isNone=function(){return!1},n.prototype.isSome=function(){return!0},n.prototype.map=function(r){return new n(r(this._value))},n.prototype.flatMap=function(r){return r(this._value)},n.prototype.filter=function(r){return r(this._value)?this:e.none},n.prototype.toArray=function(){return[this._value]},n.prototype.orElse=function(r){return this},n.prototype.valueOrElse=function(r){return this._value},e.isOption=function(r){return r===e.none||r instanceof n},e.fromNullable=function(r){return r==null?e.none:new n(r)}})(MO)),MO}var PO,are;function UV(){if(are)return PO;are=1,PO={failure:function(t,n){if(t.length<1)throw new Error("Failure must have errors");return new e({status:"failure",remaining:n,errors:t})},error:function(t,n){if(t.length<1)throw new Error("Failure must have errors");return new e({status:"error",remaining:n,errors:t})},success:function(t,n,r){return new e({status:"success",value:t,source:r,remaining:n,errors:[]})},cut:function(t){return new e({status:"cut",remaining:t,errors:[]})}};var e=function(t){this._value=t.value,this._status=t.status,this._hasValue=t.value!==void 0,this._remaining=t.remaining,this._source=t.source,this._errors=t.errors};return e.prototype.map=function(t){return this._hasValue?new e({value:t(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this},e.prototype.changeRemaining=function(t){return new e({value:this._value,status:this._status,remaining:t,source:this._source,errors:this._errors})},e.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"},e.prototype.isFailure=function(){return this._status==="failure"},e.prototype.isError=function(){return this._status==="error"},e.prototype.isCut=function(){return this._status==="cut"},e.prototype.value=function(){return this._value},e.prototype.remaining=function(){return this._remaining},e.prototype.source=function(){return this._source},e.prototype.errors=function(){return this._errors},PO}var NO={},sre;function H4e(){if(sre)return NO;sre=1,NO.error=function(t){return new e(t)};var e=function(t){this.expected=t.expected,this.actual=t.actual,this._location=t.location};return e.prototype.describe=function(){var t=this._location?this._location.describe()+`:
- `:"";return t+"Expected "+this.expected+`
- but got `+this.actual},e.prototype.lineNumber=function(){return this._location.lineNumber()},e.prototype.characterNumber=function(){return this._location.characterNumber()},NO}var RO={},lre;function Wct(){if(lre)return RO;lre=1,RO.fromArray=function(t){var n=0,r=function(){return n<t.length};return new e({hasNext:r,next:function(){if(r())return t[n++];throw new Error("No more elements")}})};var e=function(t){this._iterator=t};return e.prototype.map=function(t){var n=this._iterator;return new e({hasNext:function(){return n.hasNext()},next:function(){return t(n.next())}})},e.prototype.filter=function(t){var n=this._iterator,r=!1,o=!1,i,a=function(){if(!r)for(r=!0,o=!1;n.hasNext()&&!o;)i=n.next(),o=t(i)};return new e({hasNext:function(){return a(),o},next:function(){a();var s=i;return r=!1,s}})},e.prototype.first=function(){var t=this._iterator;return this._iterator.hasNext()?t.next():null},e.prototype.toArray=function(){for(var t=[];this._iterator.hasNext();)t.push(this._iterator.next());return t},RO}var ure;function W4e(){return ure||(ure=1,(function(e){var t=Pa,n=Hct(),r=UV(),o=H4e(),i=Wct();e.token=function(f,p){var v=p!==void 0;return function(h){var g=h.head();if(g&&g.name===f&&(!v||g.value===p))return r.success(g.value,h.tail(),g.source);var y=d({name:f,value:p});return c(h,y)}},e.tokenOfType=function(f){return e.token(f)},e.firstOf=function(f,p){return t.isArray(p)||(p=Array.prototype.slice.call(arguments,1)),function(v){return i.fromArray(p).map(function(h){return h(v)}).filter(function(h){return h.isSuccess()||h.isError()}).first()||c(v,f)}},e.then=function(f,p){return function(v){var h=f(v);return h.map||console.log(h),h.map(p)}},e.sequence=function(){var f=Array.prototype.slice.call(arguments,0),p=function(h){var g=t.foldl(f,function(m,b){var w=m.result,A=m.hasCut;if(!w.isSuccess())return{result:w,hasCut:A};var S=b(w.remaining());if(S.isCut())return{result:w,hasCut:!0};if(S.isSuccess()){var E;b.isCaptured?E=w.value().withValue(b,S.value()):E=w.value();var D=S.remaining(),_=h.to(D);return{result:r.success(E,D,_),hasCut:A}}else return A?{result:r.error(S.errors(),S.remaining()),hasCut:A}:{result:S,hasCut:A}},{result:r.success(new a,h),hasCut:!1}).result,y=h.to(g.remaining());return g.map(function(m){return m.withValue(e.sequence.source,y)})};p.head=function(){var h=t.find(f,v);return e.then(p,e.sequence.extract(h))},p.map=function(h){return e.then(p,function(g){return h.apply(this,g.toArray())})};function v(h){return h.isCaptured}return p};var a=function(f,p){this._values=f||{},this._valuesArray=p||[]};a.prototype.withValue=function(f,p){if(f.captureName&&f.captureName in this._values)throw new Error('Cannot add second value for capture "'+f.captureName+'"');var v=t.clone(this._values);v[f.captureName]=p;var h=this._valuesArray.concat([p]);return new a(v,h)},a.prototype.get=function(f){if(f.captureName in this._values)return this._values[f.captureName];throw new Error('No value for capture "'+f.captureName+'"')},a.prototype.toArray=function(){return this._valuesArray},e.sequence.capture=function(f,p){var v=function(){return f.apply(this,arguments)};return v.captureName=p,v.isCaptured=!0,v},e.sequence.extract=function(f){return function(p){return p.get(f)}},e.sequence.applyValues=function(f){var p=Array.prototype.slice.call(arguments,1);return function(v){var h=p.map(function(g){return v.get(g)});return f.apply(this,h)}},e.sequence.source={captureName:"☃source☃"},e.sequence.cut=function(){return function(f){return r.cut(f)}},e.optional=function(f){return function(p){var v=f(p);return v.isSuccess()?v.map(n.some):v.isFailure()?r.success(n.none,p):v}},e.zeroOrMoreWithSeparator=function(f,p){return u(f,p,!1)},e.oneOrMoreWithSeparator=function(f,p){return u(f,p,!0)};var s=e.zeroOrMore=function(f){return function(p){for(var v=[],h;(h=f(p))&&h.isSuccess();)p=h.remaining(),v.push(h.value());return h.isError()?h:r.success(v,p)}};e.oneOrMore=function(f){return e.oneOrMoreWithSeparator(f,l)};function l(f){return r.success(null,f)}var u=function(f,p,v){return function(h){var g=f(h);if(g.isSuccess()){var y=e.sequence.capture(f,"main"),m=s(e.then(e.sequence(p,y),e.sequence.extract(y))),b=m(g.remaining());return r.success([g.value()].concat(b.value()),b.remaining())}else return v||g.isError()?g:r.success([],h)}};e.leftAssociative=function(f,p,v){var h;v?h=[{func:v,rule:p}]:h=p,h=h.map(function(y){return e.then(y.rule,function(m){return function(b,w){return y.func(b,m,w)}})});var g=e.firstOf.apply(null,["rules"].concat(h));return function(y){var m=y,b=f(y);if(!b.isSuccess())return b;for(var w=g(b.remaining());w.isSuccess();){var A=w.remaining(),S=m.to(w.remaining()),E=w.value();b=r.success(E(b.value(),S),A,S),w=g(b.remaining())}return w.isError()?w:b}},e.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},e.nonConsuming=function(f){return function(p){return f(p).changeRemaining(p)}};var d=function(f){return f.value?f.name+' "'+f.value+'"':f.name};function c(f,p){var v,h=f.head();return h?v=o.error({expected:p,actual:d(h),location:h.source}):v=o.error({expected:p,actual:"end of tokens"}),r.failure([v],f)}})(OO)),OO}var BO={exports:{}},cre;function V4e(){if(cre)return BO.exports;cre=1,BO.exports=function(t,n){var r={asString:function(){return t},range:function(o,i){return new e(t,n,o,i)}};return r};var e=function(t,n,r,o){this._string=t,this._description=n,this._startIndex=r,this._endIndex=o};return e.prototype.to=function(t){return new e(this._string,this._description,this._startIndex,t._endIndex)},e.prototype.describe=function(){var t=this._position(),n=this._description?this._description+`
- `:"";return n+"Line number: "+t.lineNumber+`
- Character number: `+t.characterNumber},e.prototype.lineNumber=function(){return this._position().lineNumber},e.prototype.characterNumber=function(){return this._position().characterNumber},e.prototype._position=function(){for(var t=this,n=0,r=function(){return t._string.indexOf(`
- `,n)},o=1;r()!==-1&&r()<this._startIndex;)n=r()+1,o+=1;var i=this._startIndex-n+1;return{lineNumber:o,characterNumber:i}},BO.exports}var LO,dre;function q4e(){return dre||(dre=1,LO=function(e,t,n){this.name=e,this.value=t,n&&(this.source=n)}),LO}var FO={},fre;function Vct(){return fre||(fre=1,(function(e){var t=W4e(),n=UV();e.parser=function(i,a,s){var l={rule:f,leftAssociative:p,rightAssociative:v},u=new r(s.map(c)),d=t.firstOf(i,a);function c(y){return{name:y.name,rule:o(y.ruleBuilder.bind(null,l))}}function f(){return h(u)}function p(y){return h(u.untilExclusive(y))}function v(y){return h(u.untilInclusive(y))}function h(y){return g.bind(null,y)}function g(y,m){var b=d(m);return b.isSuccess()?y.apply(b):b}return l};function r(i){function a(c){return new r(i.slice(0,l().indexOf(c)))}function s(c){return new r(i.slice(0,l().indexOf(c)+1))}function l(){return i.map(function(c){return c.name})}function u(c){for(var f,p;;)if(f=d(c.remaining()),f.isSuccess())p=c.source().to(f.source()),c=n.success(f.value()(c.value(),p),f.remaining(),p);else return f.isFailure()?c:f}function d(c){return t.firstOf("infix",i.map(function(f){return f.rule}))(c)}return{apply:u,untilExclusive:a,untilInclusive:s}}e.infix=function(i,a){function s(l){return e.infix(i,function(u){var d=a(u);return function(c){var f=d(c);return f.map(function(p){return function(v,h){return l(v,p,h)}})}})}return{name:i,ruleBuilder:a,map:s}};var o=function(i){var a;return function(s){return a||(a=i()),a(s)}}})(FO)),FO}var UO={},pre;function qct(){if(pre)return UO;pre=1;var e=q4e(),t=V4e();UO.RegexTokeniser=n;function n(r){r=r.map(function(s){return{name:s.name,regex:new RegExp(s.regex.source,"g")}});function o(s,l){for(var u=new t(s,l),d=0,c=[];d<s.length;){var f=i(s,d,u);d=f.endIndex,c.push(f.token)}return c.push(a(s,u)),c}function i(s,l,u){for(var d=0;d<r.length;d++){var c=r[d].regex;c.lastIndex=l;var f=c.exec(s);if(f){var v=l+f[0].length;if(f.index===l&&v>l){var p=f[1],h=new e(r[d].name,p,u.range(l,v));return{token:h,endIndex:v}}}}var v=l+1,h=new e("unrecognisedCharacter",s.substring(l,v),u.range(l,v));return{token:h,endIndex:v}}function a(s,l){return new e("end",null,l.range(s.length,s.length))}return{tokenise:o}}return UO}var hre;function G4e(){return hre||(hre=1,vc.Parser=jct().Parser,vc.rules=W4e(),vc.errors=H4e(),vc.results=UV(),vc.StringSource=V4e(),vc.Token=q4e(),vc.bottomUp=Vct(),vc.RegexTokeniser=qct().RegexTokeniser,vc.rule=function(e){var t;return function(n){return t||(t=e()),t(n)}}),vc}var ss={},gre;function Gct(){if(gre)return ss;gre=1,ss.paragraph=e,ss.run=t,ss.table=n,ss.bold=new o("bold"),ss.italic=new o("italic"),ss.underline=new o("underline"),ss.strikethrough=new o("strikethrough"),ss.allCaps=new o("allCaps"),ss.smallCaps=new o("smallCaps"),ss.highlight=r,ss.commentReference=new o("commentReference"),ss.lineBreak=new a({breakType:"line"}),ss.pageBreak=new a({breakType:"page"}),ss.columnBreak=new a({breakType:"column"}),ss.equalTo=l,ss.startsWith=u;function e(f){return new o("paragraph",f)}function t(f){return new o("run",f)}function n(f){return new o("table",f)}function r(f){return new i(f)}function o(f,p){p=p||{},this._elementType=f,this._styleId=p.styleId,this._styleName=p.styleName,p.list&&(this._listIndex=p.list.levelIndex,this._listIsOrdered=p.list.isOrdered)}o.prototype.matches=function(f){return f.type===this._elementType&&(this._styleId===void 0||f.styleId===this._styleId)&&(this._styleName===void 0||f.styleName&&this._styleName.operator(this._styleName.operand,f.styleName))&&(this._listIndex===void 0||s(f,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===f.breakType)};function i(f){f=f||{},this._color=f.color}i.prototype.matches=function(f){return f.type==="highlight"&&(this._color===void 0||f.color===this._color)};function a(f){f=f||{},this._breakType=f.breakType}a.prototype.matches=function(f){return f.type==="break"&&(this._breakType===void 0||f.breakType===this._breakType)};function s(f,p,v){return f.numbering&&f.numbering.level==p&&f.numbering.isOrdered==v}function l(f){return{operator:d,operand:f}}function u(f){return{operator:c,operand:f}}function d(f,p){return f.toUpperCase()===p.toUpperCase()}function c(f,p){return p.toUpperCase().indexOf(f.toUpperCase())===0}return ss}var zO={},vre;function Kct(){if(vre)return zO;vre=1;var e=G4e(),t=e.RegexTokeniser;zO.tokenise=r;var n="'((?:\\\\.|[^'])*)";function r(o){var i="(?:[a-zA-Z\\-_]|\\\\.)",a=new t([{name:"identifier",regex:new RegExp("("+i+"(?:"+i+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(n+"'")},{name:"unterminated-string",regex:new RegExp(n)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return a.tokenise(o)}return zO}var mre;function Yct(){if(mre)return W2;mre=1;var e=Pa,t=G4e(),n=Gct(),r=KD(),o=Kct().tokenise,i=sp();W2.readHtmlPath=d,W2.readDocumentMatcher=l,W2.readStyle=a;function a(D){return w(E,D)}function s(){return t.rules.sequence(t.rules.sequence.capture(u()),t.rules.tokenOfType("whitespace"),t.rules.tokenOfType("arrow"),t.rules.sequence.capture(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("whitespace"),t.rules.sequence.capture(c())).head())),t.rules.tokenOfType("end")).map(function(D,_){return{from:D,to:_.valueOrElse(r.empty)}})}function l(D){return w(u(),D)}function u(){var D=t.rules.sequence,_=function(Pe,Ae){return t.rules.then(t.rules.token("identifier",Pe),function(){return Ae})},M=_("p",n.paragraph),O=_("r",n.run),k=t.rules.firstOf("p or r or table",M,O),R=t.rules.sequence(t.rules.tokenOfType("dot"),t.rules.sequence.cut(),t.rules.sequence.capture(f)).map(function(Pe){return{styleId:Pe}}),N=t.rules.firstOf("style name matcher",t.rules.then(t.rules.sequence(t.rules.tokenOfType("equals"),t.rules.sequence.cut(),t.rules.sequence.capture(v)).head(),function(Pe){return{styleName:n.equalTo(Pe)}}),t.rules.then(t.rules.sequence(t.rules.tokenOfType("startsWith"),t.rules.sequence.cut(),t.rules.sequence.capture(v)).head(),function(Pe){return{styleName:n.startsWith(Pe)}})),W=t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.token("identifier","style-name"),t.rules.sequence.capture(N),t.rules.tokenOfType("close-square-bracket")).head(),B=t.rules.firstOf("list type",_("ordered-list",{isOrdered:!0}),_("unordered-list",{isOrdered:!1})),z=D(t.rules.tokenOfType("colon"),D.capture(B),D.cut(),t.rules.tokenOfType("open-paren"),D.capture(p),t.rules.tokenOfType("close-paren")).map(function(Pe,Ae){return{list:{isOrdered:Pe.isOrdered,levelIndex:Ae-1}}});function j(Pe){var Ae=t.rules.firstOf.apply(t.rules.firstOf,["matcher suffix"].concat(Pe)),he=t.rules.zeroOrMore(Ae);return t.rules.then(he,function(Ee){var Q={};return Ee.forEach(function(me){e.extend(Q,me)}),Q})}var q=D(D.capture(k),D.capture(j([R,W,z]))).map(function(Pe,Ae){return Pe(Ae)}),Y=D(t.rules.token("identifier","table"),D.capture(j([R,W]))).map(function(Pe){return n.table(Pe)}),U=_("b",n.bold),F=_("i",n.italic),H=_("u",n.underline),re=_("strike",n.strikethrough),X=_("all-caps",n.allCaps),te=_("small-caps",n.smallCaps),Z=D(t.rules.token("identifier","highlight"),t.rules.sequence.capture(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.token("identifier","color"),t.rules.tokenOfType("equals"),t.rules.sequence.capture(v),t.rules.tokenOfType("close-square-bracket")).head()))).map(function(Pe){return n.highlight({color:Pe.valueOrElse(void 0)})}),le=_("comment-reference",n.commentReference),ve=D(t.rules.token("identifier","br"),D.cut(),t.rules.tokenOfType("open-square-bracket"),t.rules.token("identifier","type"),t.rules.tokenOfType("equals"),D.capture(v),t.rules.tokenOfType("close-square-bracket")).map(function(Pe){switch(Pe){case"line":return n.lineBreak;case"page":return n.pageBreak;case"column":return n.columnBreak}});return t.rules.firstOf("element type",q,Y,U,F,H,re,X,te,Z,le,ve)}function d(D){return w(c(),D)}function c(){var D=t.rules.sequence.capture,_=t.rules.tokenOfType("whitespace"),M=t.rules.then(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("colon"),t.rules.token("identifier","fresh"))),function(N){return N.map(function(){return!0}).valueOrElse(!1)}),O=t.rules.then(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("colon"),t.rules.token("identifier","separator"),t.rules.tokenOfType("open-paren"),D(v),t.rules.tokenOfType("close-paren")).head()),function(N){return N.valueOrElse("")}),k=t.rules.oneOrMoreWithSeparator(f,t.rules.tokenOfType("choice")),R=t.rules.sequence(D(k),D(t.rules.zeroOrMore(b)),D(M),D(O)).map(function(N,W,B,z){var j={},q={};return W.forEach(function(Y){Y.append&&j[Y.name]?j[Y.name]+=" "+Y.value:j[Y.name]=Y.value}),B&&(q.fresh=!0),z&&(q.separator=z),r.element(N,j,q)});return t.rules.firstOf("html path",t.rules.then(t.rules.tokenOfType("bang"),function(){return r.ignore}),t.rules.then(t.rules.zeroOrMoreWithSeparator(R,t.rules.sequence(_,t.rules.tokenOfType("gt"),_)),r.elements))}var f=t.rules.then(t.rules.tokenOfType("identifier"),g),p=t.rules.tokenOfType("integer"),v=t.rules.then(t.rules.tokenOfType("string"),g),h={n:`
- `,r:"\r",t:" "};function g(D){return D.replace(/\\(.)/g,function(_,M){return h[M]||M})}var y=t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.sequence.capture(f),t.rules.tokenOfType("equals"),t.rules.sequence.capture(v),t.rules.tokenOfType("close-square-bracket")).map(function(D,_){return{name:D,value:_,append:!1}}),m=t.rules.sequence(t.rules.tokenOfType("dot"),t.rules.sequence.cut(),t.rules.sequence.capture(f)).map(function(D){return{name:"class",value:D,append:!0}}),b=t.rules.firstOf("attribute or class",y,m);function w(D,_){var M=o(_),O=t.Parser(),k=O.parseTokens(D,M);return k.isSuccess()?i.success(k.value()):new i.Result(null,[i.warning(A(_,k))])}function A(D,_){return"Did not understand this style mapping, so ignored it: "+D+`
- `+_.errors().map(S).join(`
- `)}function S(D){return"Error was at character number "+D.characterNumber()+": Expected "+D.expected+" but got "+D.actual}var E=s();return W2}var V2={},yre;function Qct(){if(yre)return V2;yre=1,V2.readOptions=r;var e=Pa,t=V2._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],n=V2._standardOptions={transformDocument:i,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function r(a){return a=a||{},e.extend({},n,a,{customStyleMap:o(a.styleMap),readStyleMap:function(){var s=this.customStyleMap;return this.includeEmbeddedStyleMap&&(s=s.concat(o(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(s=s.concat(t)),s}})}function o(a){return a?e.isString(a)?a.split(`
- `).map(function(s){return s.trim()}).filter(function(s){return s!==""&&s.charAt(0)!=="#"}):a:[]}function i(a){return a}return V2}var $O={},bre;function Zct(){if(bre)return $O;bre=1;var e=R0(),t=R4e();$O.openZip=n;function n(r){return r.arrayBuffer?e.resolve(t.openArrayBuffer(r.arrayBuffer)):e.reject(new Error("Could not find file in options"))}return $O}var jO={},wre;function Xct(){if(wre)return jO;wre=1;var e=KD(),t=GD();jO.element=n;function n(r){return function(o){return t.elementWithTag(e.element(r),[o])}}return jO}var Are;function Jct(){if(Are)return Du;Are=1;var e=Pa,t=Pct(),n=Nct(),r=Uct().DocumentConverter,o=zct().convertElementToRawText,i=Yct().readStyle,a=Qct().readOptions,s=Zct(),l=sp().Result;Du.convertToHtml=u,Du.convertToMarkdown=d,Du.convert=c,Du.extractRawText=h,Du.images=j4e(),Du.transforms=z4e(),Du.underline=Xct(),Du.embedStyleMap=g,Du.readEmbeddedStyleMap=f;function u(y,m){return c(y,m)}function d(y,m){var b=Object.create(m||{});return b.outputFormat="markdown",c(y,b)}function c(y,m){return m=a(m),s.openZip(y).tap(function(b){return n.readStyleMap(b).then(function(w){m.embeddedStyleMap=w})}).then(function(b){return t.read(b,y).then(function(w){return w.map(m.transformDocument)}).then(function(w){return p(w,m)})})}function f(y){return s.openZip(y).then(n.readStyleMap)}function p(y,m){var b=v(m.readStyleMap()),w=e.extend({},m,{styleMap:b.value}),A=new r(w);return y.flatMapThen(function(S){return b.flatMapThen(function(E){return A.convertToHtml(S)})})}function v(y){return l.combine((y||[]).map(i)).map(function(m){return m.filter(function(b){return!!b})})}function h(y){return s.openZip(y).then(t.read).then(function(m){return m.map(o)})}function g(y,m){return s.openZip(y).tap(function(b){return n.writeStyleMap(b,m)}).then(function(b){return b.toArrayBuffer()}).then(function(b){return{toArrayBuffer:function(){return b},toBuffer:function(){return Buffer.from(b)}}})}return Du.styleMapping=function(){throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)},Du}var zV=Jct();const edt=xu(zV),KE=zke({__proto__:null,default:edt},[zV]),tdt={__name:"DeleteConfirmModal",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"删除确认"},message:{type:String,default:"删除将清除该数据,无法撤销。确定继续删除吗?"}},emits:["close","confirm","cancel"],setup(e,{emit:t}){const n=t,r=()=>{n("close")},o=()=>{n("cancel"),n("close")},i=()=>{n("confirm"),n("close")};return(a,s)=>e.visible?(L(),G("div",{key:0,class:"delete-modal-overlay",onClick:r},[x("div",{class:"delete-modal",onClick:s[0]||(s[0]=en(()=>{},["stop"]))},[s[1]||(s[1]=x("div",{class:"modal-title"},"删除确认",-1)),s[2]||(s[2]=x("div",{class:"modal-message"},"删除将清除该数据无法撤销,确定继续删除吗?",-1)),x("div",{class:"modal-actions"},[x("button",{class:"btn btn-cancel",onClick:o}," 取消 "),x("button",{class:"btn btn-delete",onClick:i}," 删除 ")])])])):xe("",!0)}},h0=Zo(tdt,[["__scopeId","data-v-d2f3ad5a"]]),ndt={key:0,class:"toast-container"},rdt={class:"toast-content"},odt={key:0,class:"toast-icon"},idt=["src","alt"],adt={class:"toast-text"},sdt={__name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"info",validator:e=>["success","error","warning","info"].includes(e)},duration:{type:Number,default:2e3},icon:{type:String,default:"/src/assets/AIWriting/17.png"}},setup(e,{expose:t}){const n=e,r=K(!1);return t({show:()=>{r.value=!0,n.duration>0&&setTimeout(()=>{r.value=!1},n.duration)},hide:()=>{r.value=!1}}),(a,s)=>(L(),yt(Ki,{name:"toast-fade"},{default:rt(()=>[r.value?(L(),G("div",ndt,[x("div",rdt,[e.icon?(L(),G("div",odt,[x("img",{src:e.icon,alt:e.type,class:"icon-img"},null,8,idt)])):xe("",!0),x("span",adt,je(e.message),1)])])):xe("",!0)]),_:1}))}},ldt=Zo(sdt,[["__scopeId","data-v-f0e7cdfe"]]),h8=ta.create({baseURL:"/api",timeout:1e4,headers:{"Content-Type":"application/json"}});let HO=!1,WO=[];h8.interceptors.request.use(e=>{const t=Xf();return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>(console.error("请求错误:",e),Promise.reject(e)));h8.interceptors.response.use(e=>e.data,async e=>{const t=e.config;if(e.response&&e.response.status===401){if(t.url==="/auth/refresh")return AS(),window.location.href="/#/login",Promise.reject(e);if(HO)return new Promise(r=>{WO.push(o=>{t.headers.Authorization=`Bearer ${o}`,r(h8(t))})});{HO=!0;const r=V9e();if(!r)return AS(),window.location.href="/#/login",Promise.reject(e);try{const o=await ta.post("/api/auth/refresh",{refresh_token:r}),{access_token:i}=o.data;return q9e(i,r),t.headers.Authorization=`Bearer ${i}`,WO.forEach(a=>a(i)),WO=[],h8(t)}catch(o){return console.error("刷新token失败:",o),AS(),window.location.href="/#/login",Promise.reject(o)}finally{HO=!1}}}const n=e.response?.data?.message||e.message||"请求失败";return console.error("响应错误:",n),Promise.reject({code:e.response?.status||500,message:n,data:e.response?.data})});function $V(){return"/chatwithai/api/v1"}function jV(e){const t=$V(),n=e.startsWith("/")?e:`/${e}`;return`${t}${n}`}function K4e(e){return e?`https://aqai.shudaodsj.com:22000/apiv1/oss/parse/?url=${encodeURIComponent(e)}`:""}async function Y4e(e,t){try{const n=await fetch(jV("/sse/stop"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ai_conversation_id:t})});if(!n.ok)return console.error("停止请求失败,状态码:",n.status),{success:!1,message:`请求失败: ${n.status} ${n.statusText}`};const r=await n.text();if(!r||r.trim()==="")return console.log("停止请求成功(无响应体)"),{success:!0,message:"已发送停止请求"};try{return JSON.parse(r)}catch(o){return console.error("解析JSON失败:",o,"原始响应:",r),{success:!0,message:"已发送停止请求"}}}catch(n){return console.error("发送停止请求异常:",n),{success:!1,message:n.message||"网络请求失败"}}}async function wd(e,t){try{const n=await fetch(jV("/report/update-ai-message"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ai_message_id:e,content:t})});if(!n.ok)return console.error("更新AI消息失败,状态码:",n.status),{success:!1,message:`请求失败: ${n.status} ${n.statusText}`};const r=await n.text();if(!r||r.trim()==="")return console.log("更新AI消息成功(无响应体)"),{success:!0,message:"已更新AI消息"};try{return JSON.parse(r)}catch(o){return console.error("解析JSON失败:",o,"原始响应:",r),{success:!0,message:"已更新AI消息"}}}catch(n){return console.error("更新AI消息异常:",n),{success:!1,message:n.message||"网络请求失败"}}}function HV(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var hm=HV();function Q4e(e){hm=e}var a3={exec:()=>null};function ai(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(ll.caret,"$1"),n=n.replace(o,a),r},getRegex:()=>new RegExp(n,t)};return r}var ll={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},udt=/^(?:[ \t]*(?:\n|$))+/,cdt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ddt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,eC=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fdt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,WV=/(?:[*+-]|\d{1,9}[.)])/,Z4e=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,X4e=ai(Z4e).replace(/bull/g,WV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pdt=ai(Z4e).replace(/bull/g,WV).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),VV=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,hdt=/^[^\n]+/,qV=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gdt=ai(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",qV).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vdt=ai(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,WV).getRegex(),YD="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",GV=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,mdt=ai("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",GV).replace("tag",YD).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),J4e=ai(VV).replace("hr",eC).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",YD).getRegex(),ydt=ai(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",J4e).getRegex(),KV={blockquote:ydt,code:cdt,def:gdt,fences:ddt,heading:fdt,hr:eC,html:mdt,lheading:X4e,list:vdt,newline:udt,paragraph:J4e,table:a3,text:hdt},Cre=ai("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",eC).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",YD).getRegex(),bdt={...KV,lheading:pdt,table:Cre,paragraph:ai(VV).replace("hr",eC).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Cre).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",YD).getRegex()},wdt={...KV,html:ai(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",GV).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:a3,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ai(VV).replace("hr",eC).replace("heading",` *#{1,6} *[^
- ]`).replace("lheading",X4e).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Adt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Cdt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,e3e=/^( {2,}|\\)\n(?!\s*$)/,xdt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,QD=/[\p{P}\p{S}]/u,YV=/[\s\p{P}\p{S}]/u,t3e=/[^\s\p{P}\p{S}]/u,Sdt=ai(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,YV).getRegex(),n3e=/(?!~)[\p{P}\p{S}]/u,Edt=/(?!~)[\s\p{P}\p{S}]/u,kdt=/(?:[^\s\p{P}\p{S}]|~)/u,Tdt=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,r3e=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_dt=ai(r3e,"u").replace(/punct/g,QD).getRegex(),Ddt=ai(r3e,"u").replace(/punct/g,n3e).getRegex(),o3e="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Idt=ai(o3e,"gu").replace(/notPunctSpace/g,t3e).replace(/punctSpace/g,YV).replace(/punct/g,QD).getRegex(),Odt=ai(o3e,"gu").replace(/notPunctSpace/g,kdt).replace(/punctSpace/g,Edt).replace(/punct/g,n3e).getRegex(),Mdt=ai("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,t3e).replace(/punctSpace/g,YV).replace(/punct/g,QD).getRegex(),Pdt=ai(/\\(punct)/,"gu").replace(/punct/g,QD).getRegex(),Ndt=ai(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Rdt=ai(GV).replace("(?:-->|$)","-->").getRegex(),Bdt=ai("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Rdt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),YE=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ldt=ai(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",YE).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),i3e=ai(/^!?\[(label)\]\[(ref)\]/).replace("label",YE).replace("ref",qV).getRegex(),a3e=ai(/^!?\[(ref)\](?:\[\])?/).replace("ref",qV).getRegex(),Fdt=ai("reflink|nolink(?!\\()","g").replace("reflink",i3e).replace("nolink",a3e).getRegex(),xre=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,QV={_backpedal:a3,anyPunctuation:Pdt,autolink:Ndt,blockSkip:Tdt,br:e3e,code:Cdt,del:a3,emStrongLDelim:_dt,emStrongRDelimAst:Idt,emStrongRDelimUnd:Mdt,escape:Adt,link:Ldt,nolink:a3e,punctuation:Sdt,reflink:i3e,reflinkSearch:Fdt,tag:Bdt,text:xdt,url:a3},Udt={...QV,link:ai(/^!?\[(label)\]\((.*?)\)/).replace("label",YE).getRegex(),reflink:ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",YE).getRegex()},TF={...QV,emStrongRDelimAst:Odt,emStrongLDelim:Ddt,url:ai(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",xre).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ai(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",xre).getRegex()},zdt={...TF,br:ai(e3e).replace("{2,}","*").getRegex(),text:ai(TF.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Vx={normal:KV,gfm:bdt,pedantic:wdt},q2={normal:QV,gfm:TF,breaks:zdt,pedantic:Udt},$dt={"&":"&","<":"<",">":">",'"':""","'":"'"},Sre=e=>$dt[e];function cd(e,t){if(t){if(ll.escapeTest.test(e))return e.replace(ll.escapeReplace,Sre)}else if(ll.escapeTestNoEncode.test(e))return e.replace(ll.escapeReplaceNoEncode,Sre);return e}function Ere(e){try{e=encodeURI(e).replace(ll.percentDecode,"%")}catch{return null}return e}function kre(e,t){let n=e.replace(ll.findPipe,(i,a,s)=>{let l=!1,u=a;for(;--u>=0&&s[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(ll.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(ll.slashPipe,"|");return r}function G2(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function jdt(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Tre(e,t,n,r,o){let i=t.href,a=t.title||null,s=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function Hdt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
- `).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[s]=a;return s.length>=o.length?i.slice(o.length):i}).join(`
- `)}var QE=class{options;rules;lexer;constructor(t){this.options=t||hm}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:G2(r,`
- `)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let r=n[0],o=Hdt(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let o=G2(r,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:G2(n[0],`
- `)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let r=G2(n[0],`
- `).split(`
- `),o="",i="",a=[];for(;r.length>0;){let s=!1,l=[],u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))l.push(r[u]),s=!0;else if(!s)l.push(r[u]);else break;r=r.slice(u);let d=l.join(`
- `),c=d.replace(this.rules.other.blockquoteSetextReplace,`
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
- ${d}`:d,i=i?`${i}
- ${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=f,r.length===0)break;let p=a.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let v=p,h=v.raw+`
- `+r.join(`
- `),g=this.blockquote(h);a[a.length-1]=g,o=o.substring(0,o.length-v.raw.length)+g.raw,i=i.substring(0,i.length-v.text.length)+g.text;break}else if(p?.type==="list"){let v=p,h=v.raw+`
- `+r.join(`
- `),g=this.list(h);a[a.length-1]=g,o=o.substring(0,o.length-p.raw.length)+g.raw,i=i.substring(0,i.length-v.raw.length)+g.raw,r=h.substring(a.at(-1).raw.length).split(`
- `);continue}}return{type:"blockquote",raw:o,tokens:a,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim(),o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");let a=this.rules.other.listItemRegex(r),s=!1;for(;t;){let u=!1,d="",c="";if(!(n=a.exec(t))||this.rules.block.hr.test(t))break;d=n[0],t=t.substring(d.length);let f=n[2].split(`
- `,1)[0].replace(this.rules.other.listReplaceTabs,m=>" ".repeat(3*m.length)),p=t.split(`
- `,1)[0],v=!f.trim(),h=0;if(this.options.pedantic?(h=2,c=f.trimStart()):v?h=n[1].length+1:(h=n[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,c=f.slice(h),h+=n[1].length),v&&this.rules.other.blankLine.test(p)&&(d+=p+`
- `,t=t.substring(p.length+1),u=!0),!u){let m=this.rules.other.nextBulletRegex(h),b=this.rules.other.hrRegex(h),w=this.rules.other.fencesBeginRegex(h),A=this.rules.other.headingBeginRegex(h),S=this.rules.other.htmlBeginRegex(h);for(;t;){let E=t.split(`
- `,1)[0],D;if(p=E,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),D=p):D=p.replace(this.rules.other.tabCharGlobal," "),w.test(p)||A.test(p)||S.test(p)||m.test(p)||b.test(p))break;if(D.search(this.rules.other.nonSpaceChar)>=h||!p.trim())c+=`
- `+D.slice(h);else{if(v||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(f)||A.test(f)||b.test(f))break;c+=`
- `+p}!v&&!p.trim()&&(v=!0),d+=E+`
- `,t=t.substring(E.length+1),f=D.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0));let g=null,y;this.options.gfm&&(g=this.rules.other.listIsTask.exec(c),g&&(y=g[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:d,task:!!g,checked:y,loose:!1,text:c,tokens:[]}),i.raw+=d}let l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){let d=i.items[u].tokens.filter(f=>f.type==="space"),c=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));i.loose=c}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(t){let n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){let n=this.rules.block.def.exec(t);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(t){let n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=kre(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
- `):[],a={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(let s of o)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<r.length;s++)a.header.push({text:r[s],tokens:this.lexer.inline(r[s]),header:!0,align:a.align[s]});for(let s of i)a.rows.push(kre(s,a.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[u]})));return a}}lheading(t){let n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){let n=this.rules.block.paragraph.exec(t);if(n){let r=n[1].charAt(n[1].length-1)===`
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=G2(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=jdt(n[2],"()");if(a===-2)return;if(a>-1){let s=(n[0].indexOf("!")===0?5:4)+n[1].length+a;n[2]=n[2].substring(0,a),n[0]=n[0].substring(0,s).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],i=a[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o=o.slice(1):o=o.slice(1,-1)),Tre(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let o=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[o.toLowerCase()];if(!i){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return Tre(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||o[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...o[0]].length-1,a,s,l=i,u=0,d=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+i);(o=d.exec(n))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(s=[...a].length,o[3]||o[4]){l+=s;continue}else if((o[5]||o[6])&&i%3&&!((i+s)%3)){u+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+u);let c=[...o[0]][0].length,f=t.slice(0,i+o.index+c+s);if(Math.min(i,s)%2){let v=f.slice(1,-1);return{type:"em",raw:f,text:v,tokens:this.lexer.inlineTokens(v)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return o&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){let n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){let n=this.rules.inline.autolink.exec(t);if(n){let r,o;return n[2]==="@"?(r=n[1],o="mailto:"+r):(r=n[1],o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,o;if(n[2]==="@")r=n[0],o="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},Cc=class _F{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||hm,this.options.tokenizer=this.options.tokenizer||new QE,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:ll,block:Vx.normal,inline:q2.normal};this.options.pedantic?(n.block=Vx.pedantic,n.inline=q2.pedantic):this.options.gfm&&(n.block=Vx.gfm,this.options.breaks?n.inline=q2.breaks:n.inline=q2.gfm),this.tokenizer.rules=n}static get rules(){return{block:Vx,inline:q2}}static lex(t,n){return new _F(n).lex(t)}static lexInline(t,n){return new _F(n).inlineTokens(t)}lex(t){t=t.replace(ll.carriageReturn,`
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace(ll.tabCharGlobal," ").replace(ll.spaceLine,""));t;){let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let a=n.at(-1);o.raw.length===1&&a!==void 0?a.raw+=`
- `:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
- `)?"":`
- `)+o.raw,a.text+=`
- `+o.text,this.inlineQueue.at(-1).src=a.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
- `)?"":`
- `)+o.raw,a.text+=`
- `+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},n.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}let i=t;if(this.options.extensions?.startBlock){let a=1/0,s=t.slice(1),l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},s),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(i=t.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(i))){let a=n.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
- `)?"":`
- `)+o.raw,a.text+=`
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(o),r=i.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let a=n.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
- `)?"":`
- `)+o.raw,a.text+=`
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(o);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,o=null;if(this.tokens.links){let s=Object.keys(this.tokens.links);if(s.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)s.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,a="";for(;t;){i||(a=""),i=!1;let s;if(this.options.extensions?.inline?.some(u=>(s=u.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length);let u=n.at(-1);s.type==="text"&&u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):n.push(s);continue}if(s=this.tokenizer.emStrong(t,r,a)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.del(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),n.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),n.push(s);continue}let l=t;if(this.options.extensions?.startInline){let u=1/0,d=t.slice(1),c;this.options.extensions.startInline.forEach(f=>{c=f.call({lexer:this},d),typeof c=="number"&&c>=0&&(u=Math.min(u,c))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(s=this.tokenizer.inlineText(l)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(a=s.raw.slice(-1)),i=!0;let u=n.at(-1);u?.type==="text"?(u.raw+=s.raw,u.text+=s.text):n.push(s);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}},ZE=class{options;parser;constructor(t){this.options=t||hm}space(t){return""}code({text:t,lang:n,escaped:r}){let o=(n||"").match(ll.notSpaceStart)?.[0],i=t.replace(ll.endingNewline,"")+`
- `;return o?'<pre><code class="language-'+cd(o)+'">'+(r?i:cd(i,!0))+`</code></pre>
- `:"<pre><code>"+(r?i:cd(i,!0))+`</code></pre>
- `}blockquote({tokens:t}){return`<blockquote>
- ${this.parser.parse(t)}</blockquote>
- `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
- `}hr(t){return`<hr>
- `}list(t){let n=t.ordered,r=t.start,o="";for(let s=0;s<t.items.length;s++){let l=t.items[s];o+=this.listitem(l)}let i=n?"ol":"ul",a=n&&r!==1?' start="'+r+'"':"";return"<"+i+a+`>
- `+o+"</"+i+`>
- `}listitem(t){let n="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+cd(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
- `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
- `}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let o="";for(let i=0;i<t.rows.length;i++){let a=t.rows[i];r="";for(let s=0;s<a.length;s++)r+=this.tablecell(a[s]);o+=this.tablerow({text:r})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
- <thead>
- `+n+`</thead>
- `+o+`</table>
- `}tablerow({text:t}){return`<tr>
- ${t}</tr>
- `}tablecell(t){let n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${cd(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){let o=this.parser.parseInline(r),i=Ere(t);if(i===null)return o;t=i;let a='<a href="'+t+'"';return n&&(a+=' title="'+cd(n)+'"'),a+=">"+o+"</a>",a}image({href:t,title:n,text:r,tokens:o}){o&&(r=this.parser.parseInline(o,this.parser.textRenderer));let i=Ere(t);if(i===null)return cd(r);t=i;let a=`<img src="${t}" alt="${r}"`;return n&&(a+=` title="${cd(n)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:cd(t.text)}},ZV=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},xc=class DF{options;renderer;textRenderer;constructor(t){this.options=t||hm,this.options.renderer=this.options.renderer||new ZE,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ZV}static parse(t,n){return new DF(n).parse(t)}static parseInline(t,n){return new DF(n).parseInline(t)}parse(t,n=!0){let r="";for(let o=0;o<t.length;o++){let i=t[o];if(this.options.extensions?.renderers?.[i.type]){let s=i,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){r+=l||"";continue}}let a=i;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"def":{r+=this.renderer.def(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let s=a,l=this.renderer.text(s);for(;o+1<t.length&&t[o+1].type==="text";)s=t[++o],l+=`
- `+this.renderer.text(s);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):r+=l;continue}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}parseInline(t,n=this.renderer){let r="";for(let o=0;o<t.length;o++){let i=t[o];if(this.options.extensions?.renderers?.[i.type]){let s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=s||"";continue}}let a=i;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}},T4=class{options;block;constructor(t){this.options=t||hm}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Cc.lex:Cc.lexInline}provideParser(){return this.block?xc.parse:xc.parseInline}},Wdt=class{defaults=HV();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=xc;Renderer=ZE;TextRenderer=ZV;Lexer=Cc;Tokenizer=QE;Hooks=T4;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(let o of t)switch(r=r.concat(n.call(this,o)),o.type){case"table":{let i=o;for(let a of i.header)r=r.concat(this.walkTokens(a.tokens,n));for(let a of i.rows)for(let s of a)r=r.concat(this.walkTokens(s.tokens,n));break}case"list":{let i=o;r=r.concat(this.walkTokens(i.items,n));break}default:{let i=o;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);r=r.concat(this.walkTokens(s,n))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,n)))}}return r}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=n.renderers[i.name];a?n.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=n[i.level];a?a.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){let i=this.defaults.renderer||new ZE(this.defaults);for(let a in r.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,l=r.renderer[s],u=i[s];i[s]=(...d)=>{let c=l.apply(i,d);return c===!1&&(c=u.apply(i,d)),c||""}}o.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new QE(this.defaults);for(let a in r.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,l=r.tokenizer[s],u=i[s];i[s]=(...d)=>{let c=l.apply(i,d);return c===!1&&(c=u.apply(i,d)),c}}o.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new T4;for(let a in r.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,l=r.hooks[s],u=i[s];T4.passThroughHooks.has(a)?i[s]=d=>{if(this.defaults.async&&T4.passThroughHooksRespectAsync.has(a))return(async()=>{let f=await l.call(i,d);return u.call(i,f)})();let c=l.call(i,d);return u.call(i,c)}:i[s]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(i,d);return f===!1&&(f=await u.apply(i,d)),f})();let c=l.apply(i,d);return c===!1&&(c=u.apply(i,d)),c}}o.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,a=r.walkTokens;o.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),i&&(l=l.concat(i.call(this,s))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Cc.lex(t,n??this.defaults)}parser(t,n){return xc.parse(t,n??this.defaults)}parseMarkdown(t){return(n,r)=>{let o={...r},i={...this.defaults,...o},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&o.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(n):n,l=await(i.hooks?await i.hooks.provideLexer():t?Cc.lex:Cc.lexInline)(s,i),u=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser():t?xc.parse:xc.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(a);try{i.hooks&&(n=i.hooks.preprocess(n));let s=(i.hooks?i.hooks.provideLexer():t?Cc.lex:Cc.lexInline)(n,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let l=(i.hooks?i.hooks.provideParser():t?xc.parse:xc.parseInline)(s,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(s){return a(s)}}}onError(t,n){return r=>{if(r.message+=`
- Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+cd(r.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}}},$v=new Wdt;function ui(e,t){return $v.parse(e,t)}ui.options=ui.setOptions=function(e){return $v.setOptions(e),ui.defaults=$v.defaults,Q4e(ui.defaults),ui};ui.getDefaults=HV;ui.defaults=hm;ui.use=function(...e){return $v.use(...e),ui.defaults=$v.defaults,Q4e(ui.defaults),ui};ui.walkTokens=function(e,t){return $v.walkTokens(e,t)};ui.parseInline=$v.parseInline;ui.Parser=xc;ui.parser=xc.parse;ui.Renderer=ZE;ui.TextRenderer=ZV;ui.Lexer=Cc;ui.lexer=Cc.lex;ui.Tokenizer=QE;ui.Hooks=T4;ui.parse=ui;ui.options;ui.setOptions;ui.use;ui.walkTokens;ui.parseInline;xc.parse;Cc.lex;/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:s3e,setPrototypeOf:_re,isFrozen:Vdt,getPrototypeOf:qdt,getOwnPropertyDescriptor:Gdt}=Object;let{freeze:gl,seal:nc,create:IF}=Object,{apply:OF,construct:MF}=typeof Reflect<"u"&&Reflect;gl||(gl=function(t){return t});nc||(nc=function(t){return t});OF||(OF=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});MF||(MF=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const qx=vl(Array.prototype.forEach),Kdt=vl(Array.prototype.lastIndexOf),Dre=vl(Array.prototype.pop),K2=vl(Array.prototype.push),Ydt=vl(Array.prototype.splice),g8=vl(String.prototype.toLowerCase),VO=vl(String.prototype.toString),qO=vl(String.prototype.match),Y2=vl(String.prototype.replace),Qdt=vl(String.prototype.indexOf),Zdt=vl(String.prototype.trim),yc=vl(Object.prototype.hasOwnProperty),el=vl(RegExp.prototype.test),Q2=Xdt(TypeError);function vl(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return OF(e,t,r)}}function Xdt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return MF(e,n)}}function Fo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g8;_re&&_re(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(Vdt(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Jdt(e){for(let t=0;t<e.length;t++)yc(e,t)||(e[t]=null);return e}function Cf(e){const t=IF(null);for(const[n,r]of s3e(e))yc(e,n)&&(Array.isArray(r)?t[n]=Jdt(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Cf(r):t[n]=r);return t}function Z2(e,t){for(;e!==null;){const r=Gdt(e,t);if(r){if(r.get)return vl(r.get);if(typeof r.value=="function")return vl(r.value)}e=qdt(e)}function n(){return null}return n}const Ire=gl(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),GO=gl(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),KO=gl(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),eft=gl(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),YO=gl(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),tft=gl(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ore=gl(["#text"]),Mre=gl(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),QO=gl(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Pre=gl(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Gx=gl(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nft=nc(/\{\{[\w\W]*|[\w\W]*\}\}/gm),rft=nc(/<%[\w\W]*|[\w\W]*%>/gm),oft=nc(/\$\{[\w\W]*/gm),ift=nc(/^data-[\-\w.\u00B7-\uFFFF]+$/),aft=nc(/^aria-[\-\w]+$/),l3e=nc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sft=nc(/^(?:\w+script|data):/i),lft=nc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),u3e=nc(/^html$/i),uft=nc(/^[a-z][.\w]*(-[.\w]+)+$/i);var Nre=Object.freeze({__proto__:null,ARIA_ATTR:aft,ATTR_WHITESPACE:lft,CUSTOM_ELEMENT:uft,DATA_ATTR:ift,DOCTYPE_NAME:u3e,ERB_EXPR:rft,IS_ALLOWED_URI:l3e,IS_SCRIPT_OR_DATA:sft,MUSTACHE_EXPR:nft,TMPLIT_EXPR:oft});const X2={element:1,text:3,progressingInstruction:7,comment:8,document:9},cft=function(){return typeof window>"u"?null:window},dft=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Rre=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function c3e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cft();const t=kn=>c3e(kn);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==X2.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:f,trustedTypes:p}=e,v=l.prototype,h=Z2(v,"cloneNode"),g=Z2(v,"remove"),y=Z2(v,"nextSibling"),m=Z2(v,"childNodes"),b=Z2(v,"parentNode");if(typeof a=="function"){const kn=n.createElement("template");kn.content&&kn.content.ownerDocument&&(n=kn.content.ownerDocument)}let w,A="";const{implementation:S,createNodeIterator:E,createDocumentFragment:D,getElementsByTagName:_}=n,{importNode:M}=r;let O=Rre();t.isSupported=typeof s3e=="function"&&typeof b=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:k,ERB_EXPR:R,TMPLIT_EXPR:N,DATA_ATTR:W,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:q}=Nre;let{IS_ALLOWED_URI:Y}=Nre,U=null;const F=Fo({},[...Ire,...GO,...KO,...YO,...Ore]);let H=null;const re=Fo({},[...Mre,...QO,...Pre,...Gx]);let X=Object.seal(IF(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,Z=null;const le=Object.seal(IF(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ve=!0,Pe=!0,Ae=!1,he=!0,Ee=!1,Q=!0,me=!1,De=!1,pe=!1,ie=!1,ue=!1,Be=!1,Me=!0,Fe=!1;const ze="user-content-";let Ne=!0,Re=!1,gt={},Bt=null;const Lt=Fo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let an=null;const Kt=Fo({},["audio","video","img","source","image","track"]);let Ht=null;const pt=Fo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dt="http://www.w3.org/1998/Math/MathML",dt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let de=it,tt=!1,ft=null;const Mt=Fo({},[Dt,dt,it],VO);let Tn=Fo({},["mi","mo","mn","ms","mtext"]),Nn=Fo({},["annotation-xml"]);const We=Fo({},["title","style","font","a","script"]);let ke=null;const be=["application/xhtml+xml","text/html"],fe="text/html";let Se=null,qe=null;const $e=n.createElement("form"),Le=function(Ye){return Ye instanceof RegExp||Ye instanceof Function},ot=function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(qe&&qe===Ye)){if((!Ye||typeof Ye!="object")&&(Ye={}),Ye=Cf(Ye),ke=be.indexOf(Ye.PARSER_MEDIA_TYPE)===-1?fe:Ye.PARSER_MEDIA_TYPE,Se=ke==="application/xhtml+xml"?VO:g8,U=yc(Ye,"ALLOWED_TAGS")?Fo({},Ye.ALLOWED_TAGS,Se):F,H=yc(Ye,"ALLOWED_ATTR")?Fo({},Ye.ALLOWED_ATTR,Se):re,ft=yc(Ye,"ALLOWED_NAMESPACES")?Fo({},Ye.ALLOWED_NAMESPACES,VO):Mt,Ht=yc(Ye,"ADD_URI_SAFE_ATTR")?Fo(Cf(pt),Ye.ADD_URI_SAFE_ATTR,Se):pt,an=yc(Ye,"ADD_DATA_URI_TAGS")?Fo(Cf(Kt),Ye.ADD_DATA_URI_TAGS,Se):Kt,Bt=yc(Ye,"FORBID_CONTENTS")?Fo({},Ye.FORBID_CONTENTS,Se):Lt,te=yc(Ye,"FORBID_TAGS")?Fo({},Ye.FORBID_TAGS,Se):Cf({}),Z=yc(Ye,"FORBID_ATTR")?Fo({},Ye.FORBID_ATTR,Se):Cf({}),gt=yc(Ye,"USE_PROFILES")?Ye.USE_PROFILES:!1,ve=Ye.ALLOW_ARIA_ATTR!==!1,Pe=Ye.ALLOW_DATA_ATTR!==!1,Ae=Ye.ALLOW_UNKNOWN_PROTOCOLS||!1,he=Ye.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=Ye.SAFE_FOR_TEMPLATES||!1,Q=Ye.SAFE_FOR_XML!==!1,me=Ye.WHOLE_DOCUMENT||!1,ie=Ye.RETURN_DOM||!1,ue=Ye.RETURN_DOM_FRAGMENT||!1,Be=Ye.RETURN_TRUSTED_TYPE||!1,pe=Ye.FORCE_BODY||!1,Me=Ye.SANITIZE_DOM!==!1,Fe=Ye.SANITIZE_NAMED_PROPS||!1,Ne=Ye.KEEP_CONTENT!==!1,Re=Ye.IN_PLACE||!1,Y=Ye.ALLOWED_URI_REGEXP||l3e,de=Ye.NAMESPACE||it,Tn=Ye.MATHML_TEXT_INTEGRATION_POINTS||Tn,Nn=Ye.HTML_INTEGRATION_POINTS||Nn,X=Ye.CUSTOM_ELEMENT_HANDLING||{},Ye.CUSTOM_ELEMENT_HANDLING&&Le(Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&Le(Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=Ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ye.CUSTOM_ELEMENT_HANDLING&&typeof Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=Ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(Pe=!1),ue&&(ie=!0),gt&&(U=Fo({},Ore),H=[],gt.html===!0&&(Fo(U,Ire),Fo(H,Mre)),gt.svg===!0&&(Fo(U,GO),Fo(H,QO),Fo(H,Gx)),gt.svgFilters===!0&&(Fo(U,KO),Fo(H,QO),Fo(H,Gx)),gt.mathMl===!0&&(Fo(U,YO),Fo(H,Pre),Fo(H,Gx))),Ye.ADD_TAGS&&(typeof Ye.ADD_TAGS=="function"?le.tagCheck=Ye.ADD_TAGS:(U===F&&(U=Cf(U)),Fo(U,Ye.ADD_TAGS,Se))),Ye.ADD_ATTR&&(typeof Ye.ADD_ATTR=="function"?le.attributeCheck=Ye.ADD_ATTR:(H===re&&(H=Cf(H)),Fo(H,Ye.ADD_ATTR,Se))),Ye.ADD_URI_SAFE_ATTR&&Fo(Ht,Ye.ADD_URI_SAFE_ATTR,Se),Ye.FORBID_CONTENTS&&(Bt===Lt&&(Bt=Cf(Bt)),Fo(Bt,Ye.FORBID_CONTENTS,Se)),Ne&&(U["#text"]=!0),me&&Fo(U,["html","head","body"]),U.table&&(Fo(U,["tbody"]),delete te.tbody),Ye.TRUSTED_TYPES_POLICY){if(typeof Ye.TRUSTED_TYPES_POLICY.createHTML!="function")throw Q2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ye.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Q2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=Ye.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=dft(p,o)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));gl&&gl(Ye),qe=Ye}},vt=Fo({},[...GO,...KO,...eft]),Ut=Fo({},[...YO,...tft]),Qt=function(Ye){let At=b(Ye);(!At||!At.tagName)&&(At={namespaceURI:de,tagName:"template"});const tn=g8(Ye.tagName),Ct=g8(At.tagName);return ft[Ye.namespaceURI]?Ye.namespaceURI===dt?At.namespaceURI===it?tn==="svg":At.namespaceURI===Dt?tn==="svg"&&(Ct==="annotation-xml"||Tn[Ct]):!!vt[tn]:Ye.namespaceURI===Dt?At.namespaceURI===it?tn==="math":At.namespaceURI===dt?tn==="math"&&Nn[Ct]:!!Ut[tn]:Ye.namespaceURI===it?At.namespaceURI===dt&&!Nn[Ct]||At.namespaceURI===Dt&&!Tn[Ct]?!1:!Ut[tn]&&(We[tn]||!vt[tn]):!!(ke==="application/xhtml+xml"&&ft[Ye.namespaceURI]):!1},Gt=function(Ye){K2(t.removed,{element:Ye});try{b(Ye).removeChild(Ye)}catch{g(Ye)}},vn=function(Ye,At){try{K2(t.removed,{attribute:At.getAttributeNode(Ye),from:At})}catch{K2(t.removed,{attribute:null,from:At})}if(At.removeAttribute(Ye),Ye==="is")if(ie||ue)try{Gt(At)}catch{}else try{At.setAttribute(Ye,"")}catch{}},Un=function(Ye){let At=null,tn=null;if(pe)Ye="<remove></remove>"+Ye;else{const yn=qO(Ye,/^[\r\n\t ]+/);tn=yn&&yn[0]}ke==="application/xhtml+xml"&&de===it&&(Ye='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ye+"</body></html>");const Ct=w?w.createHTML(Ye):Ye;if(de===it)try{At=new f().parseFromString(Ct,ke)}catch{}if(!At||!At.documentElement){At=S.createDocument(de,"template",null);try{At.documentElement.innerHTML=tt?A:Ct}catch{}}const Xt=At.body||At.documentElement;return Ye&&tn&&Xt.insertBefore(n.createTextNode(tn),Xt.childNodes[0]||null),de===it?_.call(At,me?"html":"body")[0]:me?At.documentElement:Xt},wr=function(Ye){return E.call(Ye.ownerDocument||Ye,Ye,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},fr=function(Ye){return Ye instanceof c&&(typeof Ye.nodeName!="string"||typeof Ye.textContent!="string"||typeof Ye.removeChild!="function"||!(Ye.attributes instanceof d)||typeof Ye.removeAttribute!="function"||typeof Ye.setAttribute!="function"||typeof Ye.namespaceURI!="string"||typeof Ye.insertBefore!="function"||typeof Ye.hasChildNodes!="function")},Nt=function(Ye){return typeof s=="function"&&Ye instanceof s};function _n(kn,Ye,At){qx(kn,tn=>{tn.call(t,Ye,At,qe)})}const xt=function(Ye){let At=null;if(_n(O.beforeSanitizeElements,Ye,null),fr(Ye))return Gt(Ye),!0;const tn=Se(Ye.nodeName);if(_n(O.uponSanitizeElement,Ye,{tagName:tn,allowedTags:U}),Q&&Ye.hasChildNodes()&&!Nt(Ye.firstElementChild)&&el(/<[/\w!]/g,Ye.innerHTML)&&el(/<[/\w!]/g,Ye.textContent)||Ye.nodeType===X2.progressingInstruction||Q&&Ye.nodeType===X2.comment&&el(/<[/\w]/g,Ye.data))return Gt(Ye),!0;if(!(le.tagCheck instanceof Function&&le.tagCheck(tn))&&(!U[tn]||te[tn])){if(!te[tn]&&Sn(tn)&&(X.tagNameCheck instanceof RegExp&&el(X.tagNameCheck,tn)||X.tagNameCheck instanceof Function&&X.tagNameCheck(tn)))return!1;if(Ne&&!Bt[tn]){const Ct=b(Ye)||Ye.parentNode,Xt=m(Ye)||Ye.childNodes;if(Xt&&Ct){const yn=Xt.length;for(let Ln=yn-1;Ln>=0;--Ln){const Zn=h(Xt[Ln],!0);Zn.__removalCount=(Ye.__removalCount||0)+1,Ct.insertBefore(Zn,y(Ye))}}}return Gt(Ye),!0}return Ye instanceof l&&!Qt(Ye)||(tn==="noscript"||tn==="noembed"||tn==="noframes")&&el(/<\/no(script|embed|frames)/i,Ye.innerHTML)?(Gt(Ye),!0):(Ee&&Ye.nodeType===X2.text&&(At=Ye.textContent,qx([k,R,N],Ct=>{At=Y2(At,Ct," ")}),Ye.textContent!==At&&(K2(t.removed,{element:Ye.cloneNode()}),Ye.textContent=At)),_n(O.afterSanitizeElements,Ye,null),!1)},Ft=function(Ye,At,tn){if(Me&&(At==="id"||At==="name")&&(tn in n||tn in $e))return!1;if(!(Pe&&!Z[At]&&el(W,At))){if(!(ve&&el(B,At))){if(!(le.attributeCheck instanceof Function&&le.attributeCheck(At,Ye))){if(!H[At]||Z[At]){if(!(Sn(Ye)&&(X.tagNameCheck instanceof RegExp&&el(X.tagNameCheck,Ye)||X.tagNameCheck instanceof Function&&X.tagNameCheck(Ye))&&(X.attributeNameCheck instanceof RegExp&&el(X.attributeNameCheck,At)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(At,Ye))||At==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&el(X.tagNameCheck,tn)||X.tagNameCheck instanceof Function&&X.tagNameCheck(tn))))return!1}else if(!Ht[At]){if(!el(Y,Y2(tn,j,""))){if(!((At==="src"||At==="xlink:href"||At==="href")&&Ye!=="script"&&Qdt(tn,"data:")===0&&an[Ye])){if(!(Ae&&!el(z,Y2(tn,j,"")))){if(tn)return!1}}}}}}}return!0},Sn=function(Ye){return Ye!=="annotation-xml"&&qO(Ye,q)},Bn=function(Ye){_n(O.beforeSanitizeAttributes,Ye,null);const{attributes:At}=Ye;if(!At||fr(Ye))return;const tn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0};let Ct=At.length;for(;Ct--;){const Xt=At[Ct],{name:yn,namespaceURI:Ln,value:Zn}=Xt,jr=Se(yn),yo=Zn;let Kr=yn==="value"?yo:Zdt(yo);if(tn.attrName=jr,tn.attrValue=Kr,tn.keepAttr=!0,tn.forceKeepAttr=void 0,_n(O.uponSanitizeAttribute,Ye,tn),Kr=tn.attrValue,Fe&&(jr==="id"||jr==="name")&&(vn(yn,Ye),Kr=ze+Kr),Q&&el(/((--!?|])>)|<\/(style|title|textarea)/i,Kr)){vn(yn,Ye);continue}if(jr==="attributename"&&qO(Kr,"href")){vn(yn,Ye);continue}if(tn.forceKeepAttr)continue;if(!tn.keepAttr){vn(yn,Ye);continue}if(!he&&el(/\/>/i,Kr)){vn(yn,Ye);continue}Ee&&qx([k,R,N],zo=>{Kr=Y2(Kr,zo," ")});const xo=Se(Ye.nodeName);if(!Ft(xo,jr,Kr)){vn(yn,Ye);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Ln)switch(p.getAttributeType(xo,jr)){case"TrustedHTML":{Kr=w.createHTML(Kr);break}case"TrustedScriptURL":{Kr=w.createScriptURL(Kr);break}}if(Kr!==yo)try{Ln?Ye.setAttributeNS(Ln,yn,Kr):Ye.setAttribute(yn,Kr),fr(Ye)?Gt(Ye):Dre(t.removed)}catch{vn(yn,Ye)}}_n(O.afterSanitizeAttributes,Ye,null)},Fr=function kn(Ye){let At=null;const tn=wr(Ye);for(_n(O.beforeSanitizeShadowDOM,Ye,null);At=tn.nextNode();)_n(O.uponSanitizeShadowNode,At,null),xt(At),Bn(At),At.content instanceof i&&kn(At.content);_n(O.afterSanitizeShadowDOM,Ye,null)};return t.sanitize=function(kn){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},At=null,tn=null,Ct=null,Xt=null;if(tt=!kn,tt&&(kn="<!-->"),typeof kn!="string"&&!Nt(kn))if(typeof kn.toString=="function"){if(kn=kn.toString(),typeof kn!="string")throw Q2("dirty is not a string, aborting")}else throw Q2("toString is not a function");if(!t.isSupported)return kn;if(De||ot(Ye),t.removed=[],typeof kn=="string"&&(Re=!1),Re){if(kn.nodeName){const Zn=Se(kn.nodeName);if(!U[Zn]||te[Zn])throw Q2("root node is forbidden and cannot be sanitized in-place")}}else if(kn instanceof s)At=Un("<!---->"),tn=At.ownerDocument.importNode(kn,!0),tn.nodeType===X2.element&&tn.nodeName==="BODY"||tn.nodeName==="HTML"?At=tn:At.appendChild(tn);else{if(!ie&&!Ee&&!me&&kn.indexOf("<")===-1)return w&&Be?w.createHTML(kn):kn;if(At=Un(kn),!At)return ie?null:Be?A:""}At&&pe&&Gt(At.firstChild);const yn=wr(Re?kn:At);for(;Ct=yn.nextNode();)xt(Ct),Bn(Ct),Ct.content instanceof i&&Fr(Ct.content);if(Re)return kn;if(ie){if(ue)for(Xt=D.call(At.ownerDocument);At.firstChild;)Xt.appendChild(At.firstChild);else Xt=At;return(H.shadowroot||H.shadowrootmode)&&(Xt=M.call(r,Xt,!0)),Xt}let Ln=me?At.outerHTML:At.innerHTML;return me&&U["!doctype"]&&At.ownerDocument&&At.ownerDocument.doctype&&At.ownerDocument.doctype.name&&el(u3e,At.ownerDocument.doctype.name)&&(Ln="<!DOCTYPE "+At.ownerDocument.doctype.name+`>
- `+Ln),Ee&&qx([k,R,N],Zn=>{Ln=Y2(Ln,Zn," ")}),w&&Be?w.createHTML(Ln):Ln},t.setConfig=function(){let kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ot(kn),De=!0},t.clearConfig=function(){qe=null,De=!1},t.isValidAttribute=function(kn,Ye,At){qe||ot({});const tn=Se(kn),Ct=Se(Ye);return Ft(tn,Ct,At)},t.addHook=function(kn,Ye){typeof Ye=="function"&&K2(O[kn],Ye)},t.removeHook=function(kn,Ye){if(Ye!==void 0){const At=Kdt(O[kn],Ye);return At===-1?void 0:Ydt(O[kn],At,1)[0]}return Dre(O[kn])},t.removeHooks=function(kn){O[kn]=[]},t.removeAllHooks=function(){O=Rre()},t}var fft=c3e();class Tl{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new Tl(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class fu{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new fu(n,Tl.range(this,t))}}class Gn{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,o,i,a=n&&n.loc;if(a&&a.start<=a.end){var s=a.lexer.input;o=a.start,i=a.end,o===s.length?r+=" at end of input: ":r+=" at position "+(o+1)+": ";var l=s.slice(o,i).replace(/[^]/g,"$&̲"),u;o>15?u="…"+s.slice(o-15,o):u=s.slice(0,o);var d;i+15<s.length?d=s.slice(i,i+15)+"…":d=s.slice(i),r+=u+l+d}var c=new Error(r);return c.name="ParseError",c.__proto__=Gn.prototype,c.position=o,o!=null&&i!=null&&(c.length=i-o),c.rawMessage=t,c}}Gn.prototype.__proto__=Error.prototype;var pft=function(t,n){return t===void 0?n:t},hft=/([A-Z])/g,gft=function(t){return t.replace(hft,"-$1").toLowerCase()},vft={"&":"&",">":">","<":"<",'"':""","'":"'"},mft=/[&><"']/g;function yft(e){return String(e).replace(mft,t=>vft[t])}var d3e=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},bft=function(t){var n=d3e(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},wft=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Aft=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},ei={deflt:pft,escape:yft,hyphenate:gft,getBaseElem:d3e,isCharacterBox:bft,protocolFromUrl:Aft},v8={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Cft(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class XV{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in v8)if(v8.hasOwnProperty(n)){var r=v8[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:Cft(r)}}reportNonstrict(t,n,r){var o=this.strict;if(typeof o=="function"&&(o=o(t,n,r)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new Gn("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);o==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var o=this.strict;if(typeof o=="function")try{o=o(t,n,r)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=ei.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class Fp{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return md[xft[this.id]]}sub(){return md[Sft[this.id]]}fracNum(){return md[Eft[this.id]]}fracDen(){return md[kft[this.id]]}cramp(){return md[Tft[this.id]]}text(){return md[_ft[this.id]]}isTight(){return this.size>=2}}var JV=0,XE=1,fy=2,Hf=3,AA=4,ju=5,Yy=6,ul=7,md=[new Fp(JV,0,!1),new Fp(XE,0,!0),new Fp(fy,1,!1),new Fp(Hf,1,!0),new Fp(AA,2,!1),new Fp(ju,2,!0),new Fp(Yy,3,!1),new Fp(ul,3,!0)],xft=[AA,ju,AA,ju,Yy,ul,Yy,ul],Sft=[ju,ju,ju,ju,ul,ul,ul,ul],Eft=[fy,Hf,AA,ju,Yy,ul,Yy,ul],kft=[Hf,Hf,ju,ju,ul,ul,ul,ul],Tft=[XE,XE,Hf,Hf,ju,ju,ul,ul],_ft=[JV,XE,fy,Hf,fy,Hf,fy,Hf],Zr={DISPLAY:md[JV],TEXT:md[fy],SCRIPT:md[AA],SCRIPTSCRIPT:md[Yy]},PF=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Dft(e){for(var t=0;t<PF.length;t++)for(var n=PF[t],r=0;r<n.blocks.length;r++){var o=n.blocks[r];if(e>=o[0]&&e<=o[1])return n.name}return null}var m8=[];PF.forEach(e=>e.blocks.forEach(t=>m8.push(...t)));function f3e(e){for(var t=0;t<m8.length;t+=2)if(e>=m8[t]&&e<=m8[t+1])return!0;return!1}var Vm=80,Ift=function(t,n){return"M95,"+(622+t+n)+`
- c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
- c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
- c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
- s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
- c69,-144,104.5,-217.7,106.5,-221
- l`+t/2.075+" -"+t+`
- c5.3,-9.3,12,-14,20,-14
- H400000v`+(40+t)+`H845.2724
- s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
- c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
- M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Oft=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
- c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
- c340,-704.7,510.7,-1060.3,512,-1067
- l`+t/2.084+" -"+t+`
- c4.7,-7.3,11,-11,19,-11
- H40000v`+(40+t)+`H1012.3
- s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
- c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
- s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
- c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
- M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Mft=function(t,n){return"M983 "+(10+t+n)+`
- l`+t/3.13+" -"+t+`
- c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
- H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
- s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
- c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
- c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
- c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
- c53.7,-170.3,84.5,-266.8,92.5,-289.5z
- M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Pft=function(t,n){return"M424,"+(2398+t+n)+`
- c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
- c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
- s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
- s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
- l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
- v`+(40+t)+`H1014.6
- s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
- c-2,6,-10,9,-24,9
- c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
- h400000v`+(40+t)+"h-400000z"},Nft=function(t,n){return"M473,"+(2713+t+n)+`
- c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
- c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
- s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
- c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
- c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
- s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
- 606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Rft=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Bft=function(t,n,r){var o=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
- H742v`+o+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
- h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
- c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
- 219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Lft=function(t,n,r){n=1e3*n;var o="";switch(t){case"sqrtMain":o=Ift(n,Vm);break;case"sqrtSize1":o=Oft(n,Vm);break;case"sqrtSize2":o=Mft(n,Vm);break;case"sqrtSize3":o=Pft(n,Vm);break;case"sqrtSize4":o=Nft(n,Vm);break;case"sqrtTall":o=Bft(n,Vm,r)}return o},Fft=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},Bre={doubleleftarrow:`M262 157
- l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
- 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
- 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
- c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
- 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
- -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
- -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
- m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
- -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
- 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
- -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
- -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
- -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
- c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
- -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
- 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
- -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
- c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
- 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
- 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
- l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
- -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
- 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
- 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
- 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
- -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
- H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
- 435 0h399565z`,leftgroupunder:`M400000 262
- H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
- 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
- -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
- -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
- -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
- 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
- -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
- -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
- m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
- 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
- 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
- -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
- 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
- -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
- v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
- -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
- -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
- 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
- M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
- M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
- -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
- c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
- 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
- M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
- c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
- -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
- 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
- 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
- c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
- 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
- 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
- -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
- -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
- m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
- 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
- -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
- m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
- c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
- -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
- m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
- 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
- -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
- m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
- c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
- -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
- 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
- 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
- -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
- 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
- -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
- s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
- c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
- 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
- -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
- 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
- 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
- -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
- -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
- 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
- -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
- 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
- m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
- 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
- -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
- -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
- 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
- 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
- -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
- m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
- 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
- -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
- 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
- M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
- 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
- -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
- -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
- 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
- -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
- -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
- -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
- 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
- c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
- 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
- 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
- -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
- 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
- -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
- 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
- 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
- -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
- -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
- 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
- c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
- 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
- -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
- 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
- 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
- -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
- -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
- 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
- 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
- -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
- 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
- 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
- -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
- -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
- H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
- c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
- c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
- -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
- c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
- c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
- s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
- 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
- s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
- c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
- M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
- -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
- 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
- -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
- -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
- 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
- c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
- c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
- c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
- M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
- M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
- 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
- -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
- M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Uft=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
- H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
- M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
- M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
- MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
- MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
- M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
- M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
- c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
- -36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
- 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
- c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
- -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
- l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
- -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
- 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
- c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
- c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
- c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
- c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
- c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
- l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class tC{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){var t=n=>n.toText();return this.children.map(t).join("")}}var kd={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Kx={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Lre={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function zft(e,t){kd[e]=t}function eq(e,t,n){if(!kd[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),o=kd[t][r];if(!o&&e[0]in Lre&&(r=Lre[e[0]].charCodeAt(0),o=kd[t][r]),!o&&n==="text"&&f3e(r)&&(o=kd[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var ZO={};function $ft(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!ZO[t]){var n=ZO[t]={cssEmPerMu:Kx.quad[t]/18};for(var r in Kx)Kx.hasOwnProperty(r)&&(n[r]=Kx[r][t])}return ZO[t]}var jft=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Fre=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ure=function(t,n){return n.size<2?t:jft[t-1][n.size-1]};class kf{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||kf.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Fre[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new kf(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Ure(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Fre[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Ure(kf.BASESIZE,t);return this.size===n&&this.textSize===kf.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==kf.BASESIZE?["sizing","reset-size"+this.size,"size"+kf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=$ft(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}kf.BASESIZE=6;var NF={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Hft={ex:!0,em:!0,mu:!0},p3e=function(t){return typeof t!="string"&&(t=t.unit),t in NF||t in Hft||t==="ex"},ca=function(t,n){var r;if(t.unit in NF)r=NF[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var o;if(n.style.isTight()?o=n.havingStyle(n.style.text()):o=n,t.unit==="ex")r=o.fontMetrics().xHeight;else if(t.unit==="em")r=o.fontMetrics().quad;else throw new Gn("Invalid unit: '"+t.unit+"'");o!==n&&(r*=o.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},tr=function(t){return+t.toFixed(4)+"em"},g0=function(t){return t.filter(n=>n).join(" ")},h3e=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var o=n.getColor();o&&(this.style.color=o)}},g3e=function(t){var n=document.createElement(t);n.className=g0(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var o in this.attributes)this.attributes.hasOwnProperty(o)&&n.setAttribute(o,this.attributes[o]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n},Wft=/[\s"'>/=\x00-\x1f]/,v3e=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+ei.escape(g0(this.classes))+'"');var r="";for(var o in this.style)this.style.hasOwnProperty(o)&&(r+=ei.hyphenate(o)+":"+this.style[o]+";");r&&(n+=' style="'+ei.escape(r)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(Wft.test(i))throw new Gn("Invalid attribute name '"+i+"'");n+=" "+i+'="'+ei.escape(this.attributes[i])+'"'}n+=">";for(var a=0;a<this.children.length;a++)n+=this.children[a].toMarkup();return n+="</"+t+">",n};class nC{constructor(t,n,r,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,h3e.call(this,t,r,o),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return g3e.call(this,"span")}toMarkup(){return v3e.call(this,"span")}}class tq{constructor(t,n,r,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,h3e.call(this,n,o),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return g3e.call(this,"a")}toMarkup(){return v3e.call(this,"a")}}class Vft{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+ei.escape(this.src)+'"'+(' alt="'+ei.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=ei.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+ei.escape(n)+'"'),t+="'/>",t}}var qft={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class rc{constructor(t,n,r,o,i,a,s,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=r||0,this.italic=o||0,this.skew=i||0,this.width=a||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var u=Dft(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=qft[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=tr(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=g0(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=ei.escape(g0(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var o in this.style)this.style.hasOwnProperty(o)&&(r+=ei.hyphenate(o)+":"+this.style[o]+";");r&&(t=!0,n+=' style="'+ei.escape(r)+'"');var i=ei.escape(this.text);return t?(n+=">",n+=i,n+="</span>",n):i}}class lp{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+ei.escape(this.attributes[n])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class v0{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",Bre[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+ei.escape(this.alternate)+'"/>':'<path d="'+ei.escape(Bre[this.pathName])+'"/>'}}class RF{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+ei.escape(this.attributes[n])+'"');return t+="/>",t}}function zre(e){if(e instanceof rc)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Gft(e){if(e instanceof nC)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Kft={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Yft={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},zi={math:{},text:{}};function ge(e,t,n,r,o,i){zi[e][o]={font:t,group:n,replace:r},i&&r&&(zi[e][r]=zi[e][o])}var _e="math",Hn="text",et="main",Tt="ams",oa="accent-token",xr="bin",bl="close",Yb="inner",Qr="mathord",qa="op-token",Eu="open",ZD="punct",It="rel",xp="spacing",Wt="textord";ge(_e,et,It,"≡","\\equiv",!0);ge(_e,et,It,"≺","\\prec",!0);ge(_e,et,It,"≻","\\succ",!0);ge(_e,et,It,"∼","\\sim",!0);ge(_e,et,It,"⊥","\\perp");ge(_e,et,It,"⪯","\\preceq",!0);ge(_e,et,It,"⪰","\\succeq",!0);ge(_e,et,It,"≃","\\simeq",!0);ge(_e,et,It,"∣","\\mid",!0);ge(_e,et,It,"≪","\\ll",!0);ge(_e,et,It,"≫","\\gg",!0);ge(_e,et,It,"≍","\\asymp",!0);ge(_e,et,It,"∥","\\parallel");ge(_e,et,It,"⋈","\\bowtie",!0);ge(_e,et,It,"⌣","\\smile",!0);ge(_e,et,It,"⊑","\\sqsubseteq",!0);ge(_e,et,It,"⊒","\\sqsupseteq",!0);ge(_e,et,It,"≐","\\doteq",!0);ge(_e,et,It,"⌢","\\frown",!0);ge(_e,et,It,"∋","\\ni",!0);ge(_e,et,It,"∝","\\propto",!0);ge(_e,et,It,"⊢","\\vdash",!0);ge(_e,et,It,"⊣","\\dashv",!0);ge(_e,et,It,"∋","\\owns");ge(_e,et,ZD,".","\\ldotp");ge(_e,et,ZD,"⋅","\\cdotp");ge(_e,et,Wt,"#","\\#");ge(Hn,et,Wt,"#","\\#");ge(_e,et,Wt,"&","\\&");ge(Hn,et,Wt,"&","\\&");ge(_e,et,Wt,"ℵ","\\aleph",!0);ge(_e,et,Wt,"∀","\\forall",!0);ge(_e,et,Wt,"ℏ","\\hbar",!0);ge(_e,et,Wt,"∃","\\exists",!0);ge(_e,et,Wt,"∇","\\nabla",!0);ge(_e,et,Wt,"♭","\\flat",!0);ge(_e,et,Wt,"ℓ","\\ell",!0);ge(_e,et,Wt,"♮","\\natural",!0);ge(_e,et,Wt,"♣","\\clubsuit",!0);ge(_e,et,Wt,"℘","\\wp",!0);ge(_e,et,Wt,"♯","\\sharp",!0);ge(_e,et,Wt,"♢","\\diamondsuit",!0);ge(_e,et,Wt,"ℜ","\\Re",!0);ge(_e,et,Wt,"♡","\\heartsuit",!0);ge(_e,et,Wt,"ℑ","\\Im",!0);ge(_e,et,Wt,"♠","\\spadesuit",!0);ge(_e,et,Wt,"§","\\S",!0);ge(Hn,et,Wt,"§","\\S");ge(_e,et,Wt,"¶","\\P",!0);ge(Hn,et,Wt,"¶","\\P");ge(_e,et,Wt,"†","\\dag");ge(Hn,et,Wt,"†","\\dag");ge(Hn,et,Wt,"†","\\textdagger");ge(_e,et,Wt,"‡","\\ddag");ge(Hn,et,Wt,"‡","\\ddag");ge(Hn,et,Wt,"‡","\\textdaggerdbl");ge(_e,et,bl,"⎱","\\rmoustache",!0);ge(_e,et,Eu,"⎰","\\lmoustache",!0);ge(_e,et,bl,"⟯","\\rgroup",!0);ge(_e,et,Eu,"⟮","\\lgroup",!0);ge(_e,et,xr,"∓","\\mp",!0);ge(_e,et,xr,"⊖","\\ominus",!0);ge(_e,et,xr,"⊎","\\uplus",!0);ge(_e,et,xr,"⊓","\\sqcap",!0);ge(_e,et,xr,"∗","\\ast");ge(_e,et,xr,"⊔","\\sqcup",!0);ge(_e,et,xr,"◯","\\bigcirc",!0);ge(_e,et,xr,"∙","\\bullet",!0);ge(_e,et,xr,"‡","\\ddagger");ge(_e,et,xr,"≀","\\wr",!0);ge(_e,et,xr,"⨿","\\amalg");ge(_e,et,xr,"&","\\And");ge(_e,et,It,"⟵","\\longleftarrow",!0);ge(_e,et,It,"⇐","\\Leftarrow",!0);ge(_e,et,It,"⟸","\\Longleftarrow",!0);ge(_e,et,It,"⟶","\\longrightarrow",!0);ge(_e,et,It,"⇒","\\Rightarrow",!0);ge(_e,et,It,"⟹","\\Longrightarrow",!0);ge(_e,et,It,"↔","\\leftrightarrow",!0);ge(_e,et,It,"⟷","\\longleftrightarrow",!0);ge(_e,et,It,"⇔","\\Leftrightarrow",!0);ge(_e,et,It,"⟺","\\Longleftrightarrow",!0);ge(_e,et,It,"↦","\\mapsto",!0);ge(_e,et,It,"⟼","\\longmapsto",!0);ge(_e,et,It,"↗","\\nearrow",!0);ge(_e,et,It,"↩","\\hookleftarrow",!0);ge(_e,et,It,"↪","\\hookrightarrow",!0);ge(_e,et,It,"↘","\\searrow",!0);ge(_e,et,It,"↼","\\leftharpoonup",!0);ge(_e,et,It,"⇀","\\rightharpoonup",!0);ge(_e,et,It,"↙","\\swarrow",!0);ge(_e,et,It,"↽","\\leftharpoondown",!0);ge(_e,et,It,"⇁","\\rightharpoondown",!0);ge(_e,et,It,"↖","\\nwarrow",!0);ge(_e,et,It,"⇌","\\rightleftharpoons",!0);ge(_e,Tt,It,"≮","\\nless",!0);ge(_e,Tt,It,"","\\@nleqslant");ge(_e,Tt,It,"","\\@nleqq");ge(_e,Tt,It,"⪇","\\lneq",!0);ge(_e,Tt,It,"≨","\\lneqq",!0);ge(_e,Tt,It,"","\\@lvertneqq");ge(_e,Tt,It,"⋦","\\lnsim",!0);ge(_e,Tt,It,"⪉","\\lnapprox",!0);ge(_e,Tt,It,"⊀","\\nprec",!0);ge(_e,Tt,It,"⋠","\\npreceq",!0);ge(_e,Tt,It,"⋨","\\precnsim",!0);ge(_e,Tt,It,"⪹","\\precnapprox",!0);ge(_e,Tt,It,"≁","\\nsim",!0);ge(_e,Tt,It,"","\\@nshortmid");ge(_e,Tt,It,"∤","\\nmid",!0);ge(_e,Tt,It,"⊬","\\nvdash",!0);ge(_e,Tt,It,"⊭","\\nvDash",!0);ge(_e,Tt,It,"⋪","\\ntriangleleft");ge(_e,Tt,It,"⋬","\\ntrianglelefteq",!0);ge(_e,Tt,It,"⊊","\\subsetneq",!0);ge(_e,Tt,It,"","\\@varsubsetneq");ge(_e,Tt,It,"⫋","\\subsetneqq",!0);ge(_e,Tt,It,"","\\@varsubsetneqq");ge(_e,Tt,It,"≯","\\ngtr",!0);ge(_e,Tt,It,"","\\@ngeqslant");ge(_e,Tt,It,"","\\@ngeqq");ge(_e,Tt,It,"⪈","\\gneq",!0);ge(_e,Tt,It,"≩","\\gneqq",!0);ge(_e,Tt,It,"","\\@gvertneqq");ge(_e,Tt,It,"⋧","\\gnsim",!0);ge(_e,Tt,It,"⪊","\\gnapprox",!0);ge(_e,Tt,It,"⊁","\\nsucc",!0);ge(_e,Tt,It,"⋡","\\nsucceq",!0);ge(_e,Tt,It,"⋩","\\succnsim",!0);ge(_e,Tt,It,"⪺","\\succnapprox",!0);ge(_e,Tt,It,"≆","\\ncong",!0);ge(_e,Tt,It,"","\\@nshortparallel");ge(_e,Tt,It,"∦","\\nparallel",!0);ge(_e,Tt,It,"⊯","\\nVDash",!0);ge(_e,Tt,It,"⋫","\\ntriangleright");ge(_e,Tt,It,"⋭","\\ntrianglerighteq",!0);ge(_e,Tt,It,"","\\@nsupseteqq");ge(_e,Tt,It,"⊋","\\supsetneq",!0);ge(_e,Tt,It,"","\\@varsupsetneq");ge(_e,Tt,It,"⫌","\\supsetneqq",!0);ge(_e,Tt,It,"","\\@varsupsetneqq");ge(_e,Tt,It,"⊮","\\nVdash",!0);ge(_e,Tt,It,"⪵","\\precneqq",!0);ge(_e,Tt,It,"⪶","\\succneqq",!0);ge(_e,Tt,It,"","\\@nsubseteqq");ge(_e,Tt,xr,"⊴","\\unlhd");ge(_e,Tt,xr,"⊵","\\unrhd");ge(_e,Tt,It,"↚","\\nleftarrow",!0);ge(_e,Tt,It,"↛","\\nrightarrow",!0);ge(_e,Tt,It,"⇍","\\nLeftarrow",!0);ge(_e,Tt,It,"⇏","\\nRightarrow",!0);ge(_e,Tt,It,"↮","\\nleftrightarrow",!0);ge(_e,Tt,It,"⇎","\\nLeftrightarrow",!0);ge(_e,Tt,It,"△","\\vartriangle");ge(_e,Tt,Wt,"ℏ","\\hslash");ge(_e,Tt,Wt,"▽","\\triangledown");ge(_e,Tt,Wt,"◊","\\lozenge");ge(_e,Tt,Wt,"Ⓢ","\\circledS");ge(_e,Tt,Wt,"®","\\circledR");ge(Hn,Tt,Wt,"®","\\circledR");ge(_e,Tt,Wt,"∡","\\measuredangle",!0);ge(_e,Tt,Wt,"∄","\\nexists");ge(_e,Tt,Wt,"℧","\\mho");ge(_e,Tt,Wt,"Ⅎ","\\Finv",!0);ge(_e,Tt,Wt,"⅁","\\Game",!0);ge(_e,Tt,Wt,"‵","\\backprime");ge(_e,Tt,Wt,"▲","\\blacktriangle");ge(_e,Tt,Wt,"▼","\\blacktriangledown");ge(_e,Tt,Wt,"■","\\blacksquare");ge(_e,Tt,Wt,"⧫","\\blacklozenge");ge(_e,Tt,Wt,"★","\\bigstar");ge(_e,Tt,Wt,"∢","\\sphericalangle",!0);ge(_e,Tt,Wt,"∁","\\complement",!0);ge(_e,Tt,Wt,"ð","\\eth",!0);ge(Hn,et,Wt,"ð","ð");ge(_e,Tt,Wt,"╱","\\diagup");ge(_e,Tt,Wt,"╲","\\diagdown");ge(_e,Tt,Wt,"□","\\square");ge(_e,Tt,Wt,"□","\\Box");ge(_e,Tt,Wt,"◊","\\Diamond");ge(_e,Tt,Wt,"¥","\\yen",!0);ge(Hn,Tt,Wt,"¥","\\yen",!0);ge(_e,Tt,Wt,"✓","\\checkmark",!0);ge(Hn,Tt,Wt,"✓","\\checkmark");ge(_e,Tt,Wt,"ℶ","\\beth",!0);ge(_e,Tt,Wt,"ℸ","\\daleth",!0);ge(_e,Tt,Wt,"ℷ","\\gimel",!0);ge(_e,Tt,Wt,"ϝ","\\digamma",!0);ge(_e,Tt,Wt,"ϰ","\\varkappa");ge(_e,Tt,Eu,"┌","\\@ulcorner",!0);ge(_e,Tt,bl,"┐","\\@urcorner",!0);ge(_e,Tt,Eu,"└","\\@llcorner",!0);ge(_e,Tt,bl,"┘","\\@lrcorner",!0);ge(_e,Tt,It,"≦","\\leqq",!0);ge(_e,Tt,It,"⩽","\\leqslant",!0);ge(_e,Tt,It,"⪕","\\eqslantless",!0);ge(_e,Tt,It,"≲","\\lesssim",!0);ge(_e,Tt,It,"⪅","\\lessapprox",!0);ge(_e,Tt,It,"≊","\\approxeq",!0);ge(_e,Tt,xr,"⋖","\\lessdot");ge(_e,Tt,It,"⋘","\\lll",!0);ge(_e,Tt,It,"≶","\\lessgtr",!0);ge(_e,Tt,It,"⋚","\\lesseqgtr",!0);ge(_e,Tt,It,"⪋","\\lesseqqgtr",!0);ge(_e,Tt,It,"≑","\\doteqdot");ge(_e,Tt,It,"≓","\\risingdotseq",!0);ge(_e,Tt,It,"≒","\\fallingdotseq",!0);ge(_e,Tt,It,"∽","\\backsim",!0);ge(_e,Tt,It,"⋍","\\backsimeq",!0);ge(_e,Tt,It,"⫅","\\subseteqq",!0);ge(_e,Tt,It,"⋐","\\Subset",!0);ge(_e,Tt,It,"⊏","\\sqsubset",!0);ge(_e,Tt,It,"≼","\\preccurlyeq",!0);ge(_e,Tt,It,"⋞","\\curlyeqprec",!0);ge(_e,Tt,It,"≾","\\precsim",!0);ge(_e,Tt,It,"⪷","\\precapprox",!0);ge(_e,Tt,It,"⊲","\\vartriangleleft");ge(_e,Tt,It,"⊴","\\trianglelefteq");ge(_e,Tt,It,"⊨","\\vDash",!0);ge(_e,Tt,It,"⊪","\\Vvdash",!0);ge(_e,Tt,It,"⌣","\\smallsmile");ge(_e,Tt,It,"⌢","\\smallfrown");ge(_e,Tt,It,"≏","\\bumpeq",!0);ge(_e,Tt,It,"≎","\\Bumpeq",!0);ge(_e,Tt,It,"≧","\\geqq",!0);ge(_e,Tt,It,"⩾","\\geqslant",!0);ge(_e,Tt,It,"⪖","\\eqslantgtr",!0);ge(_e,Tt,It,"≳","\\gtrsim",!0);ge(_e,Tt,It,"⪆","\\gtrapprox",!0);ge(_e,Tt,xr,"⋗","\\gtrdot");ge(_e,Tt,It,"⋙","\\ggg",!0);ge(_e,Tt,It,"≷","\\gtrless",!0);ge(_e,Tt,It,"⋛","\\gtreqless",!0);ge(_e,Tt,It,"⪌","\\gtreqqless",!0);ge(_e,Tt,It,"≖","\\eqcirc",!0);ge(_e,Tt,It,"≗","\\circeq",!0);ge(_e,Tt,It,"≜","\\triangleq",!0);ge(_e,Tt,It,"∼","\\thicksim");ge(_e,Tt,It,"≈","\\thickapprox");ge(_e,Tt,It,"⫆","\\supseteqq",!0);ge(_e,Tt,It,"⋑","\\Supset",!0);ge(_e,Tt,It,"⊐","\\sqsupset",!0);ge(_e,Tt,It,"≽","\\succcurlyeq",!0);ge(_e,Tt,It,"⋟","\\curlyeqsucc",!0);ge(_e,Tt,It,"≿","\\succsim",!0);ge(_e,Tt,It,"⪸","\\succapprox",!0);ge(_e,Tt,It,"⊳","\\vartriangleright");ge(_e,Tt,It,"⊵","\\trianglerighteq");ge(_e,Tt,It,"⊩","\\Vdash",!0);ge(_e,Tt,It,"∣","\\shortmid");ge(_e,Tt,It,"∥","\\shortparallel");ge(_e,Tt,It,"≬","\\between",!0);ge(_e,Tt,It,"⋔","\\pitchfork",!0);ge(_e,Tt,It,"∝","\\varpropto");ge(_e,Tt,It,"◀","\\blacktriangleleft");ge(_e,Tt,It,"∴","\\therefore",!0);ge(_e,Tt,It,"∍","\\backepsilon");ge(_e,Tt,It,"▶","\\blacktriangleright");ge(_e,Tt,It,"∵","\\because",!0);ge(_e,Tt,It,"⋘","\\llless");ge(_e,Tt,It,"⋙","\\gggtr");ge(_e,Tt,xr,"⊲","\\lhd");ge(_e,Tt,xr,"⊳","\\rhd");ge(_e,Tt,It,"≂","\\eqsim",!0);ge(_e,et,It,"⋈","\\Join");ge(_e,Tt,It,"≑","\\Doteq",!0);ge(_e,Tt,xr,"∔","\\dotplus",!0);ge(_e,Tt,xr,"∖","\\smallsetminus");ge(_e,Tt,xr,"⋒","\\Cap",!0);ge(_e,Tt,xr,"⋓","\\Cup",!0);ge(_e,Tt,xr,"⩞","\\doublebarwedge",!0);ge(_e,Tt,xr,"⊟","\\boxminus",!0);ge(_e,Tt,xr,"⊞","\\boxplus",!0);ge(_e,Tt,xr,"⋇","\\divideontimes",!0);ge(_e,Tt,xr,"⋉","\\ltimes",!0);ge(_e,Tt,xr,"⋊","\\rtimes",!0);ge(_e,Tt,xr,"⋋","\\leftthreetimes",!0);ge(_e,Tt,xr,"⋌","\\rightthreetimes",!0);ge(_e,Tt,xr,"⋏","\\curlywedge",!0);ge(_e,Tt,xr,"⋎","\\curlyvee",!0);ge(_e,Tt,xr,"⊝","\\circleddash",!0);ge(_e,Tt,xr,"⊛","\\circledast",!0);ge(_e,Tt,xr,"⋅","\\centerdot");ge(_e,Tt,xr,"⊺","\\intercal",!0);ge(_e,Tt,xr,"⋒","\\doublecap");ge(_e,Tt,xr,"⋓","\\doublecup");ge(_e,Tt,xr,"⊠","\\boxtimes",!0);ge(_e,Tt,It,"⇢","\\dashrightarrow",!0);ge(_e,Tt,It,"⇠","\\dashleftarrow",!0);ge(_e,Tt,It,"⇇","\\leftleftarrows",!0);ge(_e,Tt,It,"⇆","\\leftrightarrows",!0);ge(_e,Tt,It,"⇚","\\Lleftarrow",!0);ge(_e,Tt,It,"↞","\\twoheadleftarrow",!0);ge(_e,Tt,It,"↢","\\leftarrowtail",!0);ge(_e,Tt,It,"↫","\\looparrowleft",!0);ge(_e,Tt,It,"⇋","\\leftrightharpoons",!0);ge(_e,Tt,It,"↶","\\curvearrowleft",!0);ge(_e,Tt,It,"↺","\\circlearrowleft",!0);ge(_e,Tt,It,"↰","\\Lsh",!0);ge(_e,Tt,It,"⇈","\\upuparrows",!0);ge(_e,Tt,It,"↿","\\upharpoonleft",!0);ge(_e,Tt,It,"⇃","\\downharpoonleft",!0);ge(_e,et,It,"⊶","\\origof",!0);ge(_e,et,It,"⊷","\\imageof",!0);ge(_e,Tt,It,"⊸","\\multimap",!0);ge(_e,Tt,It,"↭","\\leftrightsquigarrow",!0);ge(_e,Tt,It,"⇉","\\rightrightarrows",!0);ge(_e,Tt,It,"⇄","\\rightleftarrows",!0);ge(_e,Tt,It,"↠","\\twoheadrightarrow",!0);ge(_e,Tt,It,"↣","\\rightarrowtail",!0);ge(_e,Tt,It,"↬","\\looparrowright",!0);ge(_e,Tt,It,"↷","\\curvearrowright",!0);ge(_e,Tt,It,"↻","\\circlearrowright",!0);ge(_e,Tt,It,"↱","\\Rsh",!0);ge(_e,Tt,It,"⇊","\\downdownarrows",!0);ge(_e,Tt,It,"↾","\\upharpoonright",!0);ge(_e,Tt,It,"⇂","\\downharpoonright",!0);ge(_e,Tt,It,"⇝","\\rightsquigarrow",!0);ge(_e,Tt,It,"⇝","\\leadsto");ge(_e,Tt,It,"⇛","\\Rrightarrow",!0);ge(_e,Tt,It,"↾","\\restriction");ge(_e,et,Wt,"‘","`");ge(_e,et,Wt,"$","\\$");ge(Hn,et,Wt,"$","\\$");ge(Hn,et,Wt,"$","\\textdollar");ge(_e,et,Wt,"%","\\%");ge(Hn,et,Wt,"%","\\%");ge(_e,et,Wt,"_","\\_");ge(Hn,et,Wt,"_","\\_");ge(Hn,et,Wt,"_","\\textunderscore");ge(_e,et,Wt,"∠","\\angle",!0);ge(_e,et,Wt,"∞","\\infty",!0);ge(_e,et,Wt,"′","\\prime");ge(_e,et,Wt,"△","\\triangle");ge(_e,et,Wt,"Γ","\\Gamma",!0);ge(_e,et,Wt,"Δ","\\Delta",!0);ge(_e,et,Wt,"Θ","\\Theta",!0);ge(_e,et,Wt,"Λ","\\Lambda",!0);ge(_e,et,Wt,"Ξ","\\Xi",!0);ge(_e,et,Wt,"Π","\\Pi",!0);ge(_e,et,Wt,"Σ","\\Sigma",!0);ge(_e,et,Wt,"Υ","\\Upsilon",!0);ge(_e,et,Wt,"Φ","\\Phi",!0);ge(_e,et,Wt,"Ψ","\\Psi",!0);ge(_e,et,Wt,"Ω","\\Omega",!0);ge(_e,et,Wt,"A","Α");ge(_e,et,Wt,"B","Β");ge(_e,et,Wt,"E","Ε");ge(_e,et,Wt,"Z","Ζ");ge(_e,et,Wt,"H","Η");ge(_e,et,Wt,"I","Ι");ge(_e,et,Wt,"K","Κ");ge(_e,et,Wt,"M","Μ");ge(_e,et,Wt,"N","Ν");ge(_e,et,Wt,"O","Ο");ge(_e,et,Wt,"P","Ρ");ge(_e,et,Wt,"T","Τ");ge(_e,et,Wt,"X","Χ");ge(_e,et,Wt,"¬","\\neg",!0);ge(_e,et,Wt,"¬","\\lnot");ge(_e,et,Wt,"⊤","\\top");ge(_e,et,Wt,"⊥","\\bot");ge(_e,et,Wt,"∅","\\emptyset");ge(_e,Tt,Wt,"∅","\\varnothing");ge(_e,et,Qr,"α","\\alpha",!0);ge(_e,et,Qr,"β","\\beta",!0);ge(_e,et,Qr,"γ","\\gamma",!0);ge(_e,et,Qr,"δ","\\delta",!0);ge(_e,et,Qr,"ϵ","\\epsilon",!0);ge(_e,et,Qr,"ζ","\\zeta",!0);ge(_e,et,Qr,"η","\\eta",!0);ge(_e,et,Qr,"θ","\\theta",!0);ge(_e,et,Qr,"ι","\\iota",!0);ge(_e,et,Qr,"κ","\\kappa",!0);ge(_e,et,Qr,"λ","\\lambda",!0);ge(_e,et,Qr,"μ","\\mu",!0);ge(_e,et,Qr,"ν","\\nu",!0);ge(_e,et,Qr,"ξ","\\xi",!0);ge(_e,et,Qr,"ο","\\omicron",!0);ge(_e,et,Qr,"π","\\pi",!0);ge(_e,et,Qr,"ρ","\\rho",!0);ge(_e,et,Qr,"σ","\\sigma",!0);ge(_e,et,Qr,"τ","\\tau",!0);ge(_e,et,Qr,"υ","\\upsilon",!0);ge(_e,et,Qr,"ϕ","\\phi",!0);ge(_e,et,Qr,"χ","\\chi",!0);ge(_e,et,Qr,"ψ","\\psi",!0);ge(_e,et,Qr,"ω","\\omega",!0);ge(_e,et,Qr,"ε","\\varepsilon",!0);ge(_e,et,Qr,"ϑ","\\vartheta",!0);ge(_e,et,Qr,"ϖ","\\varpi",!0);ge(_e,et,Qr,"ϱ","\\varrho",!0);ge(_e,et,Qr,"ς","\\varsigma",!0);ge(_e,et,Qr,"φ","\\varphi",!0);ge(_e,et,xr,"∗","*",!0);ge(_e,et,xr,"+","+");ge(_e,et,xr,"−","-",!0);ge(_e,et,xr,"⋅","\\cdot",!0);ge(_e,et,xr,"∘","\\circ",!0);ge(_e,et,xr,"÷","\\div",!0);ge(_e,et,xr,"±","\\pm",!0);ge(_e,et,xr,"×","\\times",!0);ge(_e,et,xr,"∩","\\cap",!0);ge(_e,et,xr,"∪","\\cup",!0);ge(_e,et,xr,"∖","\\setminus",!0);ge(_e,et,xr,"∧","\\land");ge(_e,et,xr,"∨","\\lor");ge(_e,et,xr,"∧","\\wedge",!0);ge(_e,et,xr,"∨","\\vee",!0);ge(_e,et,Wt,"√","\\surd");ge(_e,et,Eu,"⟨","\\langle",!0);ge(_e,et,Eu,"∣","\\lvert");ge(_e,et,Eu,"∥","\\lVert");ge(_e,et,bl,"?","?");ge(_e,et,bl,"!","!");ge(_e,et,bl,"⟩","\\rangle",!0);ge(_e,et,bl,"∣","\\rvert");ge(_e,et,bl,"∥","\\rVert");ge(_e,et,It,"=","=");ge(_e,et,It,":",":");ge(_e,et,It,"≈","\\approx",!0);ge(_e,et,It,"≅","\\cong",!0);ge(_e,et,It,"≥","\\ge");ge(_e,et,It,"≥","\\geq",!0);ge(_e,et,It,"←","\\gets");ge(_e,et,It,">","\\gt",!0);ge(_e,et,It,"∈","\\in",!0);ge(_e,et,It,"","\\@not");ge(_e,et,It,"⊂","\\subset",!0);ge(_e,et,It,"⊃","\\supset",!0);ge(_e,et,It,"⊆","\\subseteq",!0);ge(_e,et,It,"⊇","\\supseteq",!0);ge(_e,Tt,It,"⊈","\\nsubseteq",!0);ge(_e,Tt,It,"⊉","\\nsupseteq",!0);ge(_e,et,It,"⊨","\\models");ge(_e,et,It,"←","\\leftarrow",!0);ge(_e,et,It,"≤","\\le");ge(_e,et,It,"≤","\\leq",!0);ge(_e,et,It,"<","\\lt",!0);ge(_e,et,It,"→","\\rightarrow",!0);ge(_e,et,It,"→","\\to");ge(_e,Tt,It,"≱","\\ngeq",!0);ge(_e,Tt,It,"≰","\\nleq",!0);ge(_e,et,xp," ","\\ ");ge(_e,et,xp," ","\\space");ge(_e,et,xp," ","\\nobreakspace");ge(Hn,et,xp," ","\\ ");ge(Hn,et,xp," "," ");ge(Hn,et,xp," ","\\space");ge(Hn,et,xp," ","\\nobreakspace");ge(_e,et,xp,null,"\\nobreak");ge(_e,et,xp,null,"\\allowbreak");ge(_e,et,ZD,",",",");ge(_e,et,ZD,";",";");ge(_e,Tt,xr,"⊼","\\barwedge",!0);ge(_e,Tt,xr,"⊻","\\veebar",!0);ge(_e,et,xr,"⊙","\\odot",!0);ge(_e,et,xr,"⊕","\\oplus",!0);ge(_e,et,xr,"⊗","\\otimes",!0);ge(_e,et,Wt,"∂","\\partial",!0);ge(_e,et,xr,"⊘","\\oslash",!0);ge(_e,Tt,xr,"⊚","\\circledcirc",!0);ge(_e,Tt,xr,"⊡","\\boxdot",!0);ge(_e,et,xr,"△","\\bigtriangleup");ge(_e,et,xr,"▽","\\bigtriangledown");ge(_e,et,xr,"†","\\dagger");ge(_e,et,xr,"⋄","\\diamond");ge(_e,et,xr,"⋆","\\star");ge(_e,et,xr,"◃","\\triangleleft");ge(_e,et,xr,"▹","\\triangleright");ge(_e,et,Eu,"{","\\{");ge(Hn,et,Wt,"{","\\{");ge(Hn,et,Wt,"{","\\textbraceleft");ge(_e,et,bl,"}","\\}");ge(Hn,et,Wt,"}","\\}");ge(Hn,et,Wt,"}","\\textbraceright");ge(_e,et,Eu,"{","\\lbrace");ge(_e,et,bl,"}","\\rbrace");ge(_e,et,Eu,"[","\\lbrack",!0);ge(Hn,et,Wt,"[","\\lbrack",!0);ge(_e,et,bl,"]","\\rbrack",!0);ge(Hn,et,Wt,"]","\\rbrack",!0);ge(_e,et,Eu,"(","\\lparen",!0);ge(_e,et,bl,")","\\rparen",!0);ge(Hn,et,Wt,"<","\\textless",!0);ge(Hn,et,Wt,">","\\textgreater",!0);ge(_e,et,Eu,"⌊","\\lfloor",!0);ge(_e,et,bl,"⌋","\\rfloor",!0);ge(_e,et,Eu,"⌈","\\lceil",!0);ge(_e,et,bl,"⌉","\\rceil",!0);ge(_e,et,Wt,"\\","\\backslash");ge(_e,et,Wt,"∣","|");ge(_e,et,Wt,"∣","\\vert");ge(Hn,et,Wt,"|","\\textbar",!0);ge(_e,et,Wt,"∥","\\|");ge(_e,et,Wt,"∥","\\Vert");ge(Hn,et,Wt,"∥","\\textbardbl");ge(Hn,et,Wt,"~","\\textasciitilde");ge(Hn,et,Wt,"\\","\\textbackslash");ge(Hn,et,Wt,"^","\\textasciicircum");ge(_e,et,It,"↑","\\uparrow",!0);ge(_e,et,It,"⇑","\\Uparrow",!0);ge(_e,et,It,"↓","\\downarrow",!0);ge(_e,et,It,"⇓","\\Downarrow",!0);ge(_e,et,It,"↕","\\updownarrow",!0);ge(_e,et,It,"⇕","\\Updownarrow",!0);ge(_e,et,qa,"∐","\\coprod");ge(_e,et,qa,"⋁","\\bigvee");ge(_e,et,qa,"⋀","\\bigwedge");ge(_e,et,qa,"⨄","\\biguplus");ge(_e,et,qa,"⋂","\\bigcap");ge(_e,et,qa,"⋃","\\bigcup");ge(_e,et,qa,"∫","\\int");ge(_e,et,qa,"∫","\\intop");ge(_e,et,qa,"∬","\\iint");ge(_e,et,qa,"∭","\\iiint");ge(_e,et,qa,"∏","\\prod");ge(_e,et,qa,"∑","\\sum");ge(_e,et,qa,"⨂","\\bigotimes");ge(_e,et,qa,"⨁","\\bigoplus");ge(_e,et,qa,"⨀","\\bigodot");ge(_e,et,qa,"∮","\\oint");ge(_e,et,qa,"∯","\\oiint");ge(_e,et,qa,"∰","\\oiiint");ge(_e,et,qa,"⨆","\\bigsqcup");ge(_e,et,qa,"∫","\\smallint");ge(Hn,et,Yb,"…","\\textellipsis");ge(_e,et,Yb,"…","\\mathellipsis");ge(Hn,et,Yb,"…","\\ldots",!0);ge(_e,et,Yb,"…","\\ldots",!0);ge(_e,et,Yb,"⋯","\\@cdots",!0);ge(_e,et,Yb,"⋱","\\ddots",!0);ge(_e,et,Wt,"⋮","\\varvdots");ge(Hn,et,Wt,"⋮","\\varvdots");ge(_e,et,oa,"ˊ","\\acute");ge(_e,et,oa,"ˋ","\\grave");ge(_e,et,oa,"¨","\\ddot");ge(_e,et,oa,"~","\\tilde");ge(_e,et,oa,"ˉ","\\bar");ge(_e,et,oa,"˘","\\breve");ge(_e,et,oa,"ˇ","\\check");ge(_e,et,oa,"^","\\hat");ge(_e,et,oa,"⃗","\\vec");ge(_e,et,oa,"˙","\\dot");ge(_e,et,oa,"˚","\\mathring");ge(_e,et,Qr,"","\\@imath");ge(_e,et,Qr,"","\\@jmath");ge(_e,et,Wt,"ı","ı");ge(_e,et,Wt,"ȷ","ȷ");ge(Hn,et,Wt,"ı","\\i",!0);ge(Hn,et,Wt,"ȷ","\\j",!0);ge(Hn,et,Wt,"ß","\\ss",!0);ge(Hn,et,Wt,"æ","\\ae",!0);ge(Hn,et,Wt,"œ","\\oe",!0);ge(Hn,et,Wt,"ø","\\o",!0);ge(Hn,et,Wt,"Æ","\\AE",!0);ge(Hn,et,Wt,"Œ","\\OE",!0);ge(Hn,et,Wt,"Ø","\\O",!0);ge(Hn,et,oa,"ˊ","\\'");ge(Hn,et,oa,"ˋ","\\`");ge(Hn,et,oa,"ˆ","\\^");ge(Hn,et,oa,"˜","\\~");ge(Hn,et,oa,"ˉ","\\=");ge(Hn,et,oa,"˘","\\u");ge(Hn,et,oa,"˙","\\.");ge(Hn,et,oa,"¸","\\c");ge(Hn,et,oa,"˚","\\r");ge(Hn,et,oa,"ˇ","\\v");ge(Hn,et,oa,"¨",'\\"');ge(Hn,et,oa,"˝","\\H");ge(Hn,et,oa,"◯","\\textcircled");var m3e={"--":!0,"---":!0,"``":!0,"''":!0};ge(Hn,et,Wt,"–","--",!0);ge(Hn,et,Wt,"–","\\textendash");ge(Hn,et,Wt,"—","---",!0);ge(Hn,et,Wt,"—","\\textemdash");ge(Hn,et,Wt,"‘","`",!0);ge(Hn,et,Wt,"‘","\\textquoteleft");ge(Hn,et,Wt,"’","'",!0);ge(Hn,et,Wt,"’","\\textquoteright");ge(Hn,et,Wt,"“","``",!0);ge(Hn,et,Wt,"“","\\textquotedblleft");ge(Hn,et,Wt,"”","''",!0);ge(Hn,et,Wt,"”","\\textquotedblright");ge(_e,et,Wt,"°","\\degree",!0);ge(Hn,et,Wt,"°","\\degree");ge(Hn,et,Wt,"°","\\textdegree",!0);ge(_e,et,Wt,"£","\\pounds");ge(_e,et,Wt,"£","\\mathsterling",!0);ge(Hn,et,Wt,"£","\\pounds");ge(Hn,et,Wt,"£","\\textsterling",!0);ge(_e,Tt,Wt,"✠","\\maltese");ge(Hn,Tt,Wt,"✠","\\maltese");var $re='0123456789/@."';for(var XO=0;XO<$re.length;XO++){var jre=$re.charAt(XO);ge(_e,et,Wt,jre,jre)}var Hre='0123456789!@*()-=+";:?/.,';for(var JO=0;JO<Hre.length;JO++){var Wre=Hre.charAt(JO);ge(Hn,et,Wt,Wre,Wre)}var JE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var eM=0;eM<JE.length;eM++){var Yx=JE.charAt(eM);ge(_e,et,Qr,Yx,Yx),ge(Hn,et,Wt,Yx,Yx)}ge(_e,Tt,Wt,"C","ℂ");ge(Hn,Tt,Wt,"C","ℂ");ge(_e,Tt,Wt,"H","ℍ");ge(Hn,Tt,Wt,"H","ℍ");ge(_e,Tt,Wt,"N","ℕ");ge(Hn,Tt,Wt,"N","ℕ");ge(_e,Tt,Wt,"P","ℙ");ge(Hn,Tt,Wt,"P","ℙ");ge(_e,Tt,Wt,"Q","ℚ");ge(Hn,Tt,Wt,"Q","ℚ");ge(_e,Tt,Wt,"R","ℝ");ge(Hn,Tt,Wt,"R","ℝ");ge(_e,Tt,Wt,"Z","ℤ");ge(Hn,Tt,Wt,"Z","ℤ");ge(_e,et,Qr,"h","ℎ");ge(Hn,et,Qr,"h","ℎ");var io="";for(var tl=0;tl<JE.length;tl++){var ma=JE.charAt(tl);io=String.fromCharCode(55349,56320+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),io=String.fromCharCode(55349,56372+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),io=String.fromCharCode(55349,56424+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),io=String.fromCharCode(55349,56580+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),io=String.fromCharCode(55349,56684+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),io=String.fromCharCode(55349,56736+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),io=String.fromCharCode(55349,56788+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),io=String.fromCharCode(55349,56840+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),io=String.fromCharCode(55349,56944+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),tl<26&&(io=String.fromCharCode(55349,56632+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io),io=String.fromCharCode(55349,56476+tl),ge(_e,et,Qr,ma,io),ge(Hn,et,Wt,ma,io))}io="𝕜";ge(_e,et,Qr,"k",io);ge(Hn,et,Wt,"k",io);for(var eg=0;eg<10;eg++){var Up=eg.toString();io=String.fromCharCode(55349,57294+eg),ge(_e,et,Qr,Up,io),ge(Hn,et,Wt,Up,io),io=String.fromCharCode(55349,57314+eg),ge(_e,et,Qr,Up,io),ge(Hn,et,Wt,Up,io),io=String.fromCharCode(55349,57324+eg),ge(_e,et,Qr,Up,io),ge(Hn,et,Wt,Up,io),io=String.fromCharCode(55349,57334+eg),ge(_e,et,Qr,Up,io),ge(Hn,et,Wt,Up,io)}var BF="ÐÞþ";for(var tM=0;tM<BF.length;tM++){var Qx=BF.charAt(tM);ge(_e,et,Qr,Qx,Qx),ge(Hn,et,Wt,Qx,Qx)}var Zx=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Vre=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Qft=function(t,n){var r=t.charCodeAt(0),o=t.charCodeAt(1),i=(r-55296)*1024+(o-56320)+65536,a=n==="math"?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[Zx[s][2],Zx[s][a]]}else if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[Vre[l][2],Vre[l][a]]}else{if(i===120485||i===120486)return[Zx[0][2],Zx[0][a]];if(120486<i&&i<120782)return["",""];throw new Gn("Unsupported character: "+t)}},XD=function(t,n,r){return zi[r][t]&&zi[r][t].replace&&(t=zi[r][t].replace),{value:t,metrics:eq(t,n,r)}},bc=function(t,n,r,o,i){var a=XD(t,n,r),s=a.metrics;t=a.value;var l;if(s){var u=s.italic;(r==="text"||o&&o.font==="mathit")&&(u=0),l=new rc(t,s.height,s.depth,u,s.skew,s.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),l=new rc(t,0,0,0,0,0,i);if(o){l.maxFontSize=o.sizeMultiplier,o.style.isTight()&&l.classes.push("mtight");var d=o.getColor();d&&(l.style.color=d)}return l},Zft=function(t,n,r,o){return o===void 0&&(o=[]),r.font==="boldsymbol"&&XD(t,"Main-Bold",n).metrics?bc(t,"Main-Bold",n,r,o.concat(["mathbf"])):t==="\\"||zi[n][t].font==="main"?bc(t,"Main-Regular",n,r,o):bc(t,"AMS-Regular",n,r,o.concat(["amsrm"]))},Xft=function(t,n,r,o,i){return i!=="textord"&&XD(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Jft=function(t,n,r){var o=t.mode,i=t.text,a=["mord"],s=o==="math"||o==="text"&&n.font,l=s?n.font:n.fontFamily,u="",d="";if(i.charCodeAt(0)===55349&&([u,d]=Qft(i,o)),u.length>0)return bc(i,u,o,n,a.concat(d));if(l){var c,f;if(l==="boldsymbol"){var p=Xft(i,o,n,a,r);c=p.fontName,f=[p.fontClass]}else s?(c=w3e[l].fontName,f=[l]):(c=Xx(l,n.fontWeight,n.fontShape),f=[l,n.fontWeight,n.fontShape]);if(XD(i,c,o).metrics)return bc(i,c,o,n,a.concat(f));if(m3e.hasOwnProperty(i)&&c.slice(0,10)==="Typewriter"){for(var v=[],h=0;h<i.length;h++)v.push(bc(i[h],c,o,n,a.concat(f)));return b3e(v)}}if(r==="mathord")return bc(i,"Math-Italic",o,n,a.concat(["mathnormal"]));if(r==="textord"){var g=zi[o][i]&&zi[o][i].font;if(g==="ams"){var y=Xx("amsrm",n.fontWeight,n.fontShape);return bc(i,y,o,n,a.concat("amsrm",n.fontWeight,n.fontShape))}else if(g==="main"||!g){var m=Xx("textrm",n.fontWeight,n.fontShape);return bc(i,m,o,n,a.concat(n.fontWeight,n.fontShape))}else{var b=Xx(g,n.fontWeight,n.fontShape);return bc(i,b,o,n,a.concat(b,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},ept=(e,t)=>{if(g0(e.classes)!==g0(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},tpt=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof rc&&r instanceof rc&&ept(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},nq=function(t){for(var n=0,r=0,o=0,i=0;i<t.children.length;i++){var a=t.children[i];a.height>n&&(n=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>o&&(o=a.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=o},kl=function(t,n,r,o){var i=new nC(t,n,r,o);return nq(i),i},y3e=(e,t,n,r)=>new nC(e,t,n,r),npt=function(t,n,r){var o=kl([t],[],n);return o.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),o.style.borderBottomWidth=tr(o.height),o.maxFontSize=1,o},rpt=function(t,n,r,o){var i=new tq(t,n,r,o);return nq(i),i},b3e=function(t){var n=new tC(t);return nq(n),n},opt=function(t,n){return t instanceof tC?kl([],[t],n):t},ipt=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],o=-n[0].shift-n[0].elem.depth,i=o,a=1;a<n.length;a++){var s=-n[a].shift-i-n[a].elem.depth,l=s-(n[a-1].elem.height+n[a-1].elem.depth);i=i+s,r.push({type:"kern",size:l}),r.push(n[a])}return{children:r,depth:o}}var u;if(t.positionType==="top"){for(var d=t.positionData,c=0;c<t.children.length;c++){var f=t.children[c];d-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}u=d}else if(t.positionType==="bottom")u=-t.positionData;else{var p=t.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-p.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-p.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},apt=function(t,n){for(var{children:r,depth:o}=ipt(t),i=0,a=0;a<r.length;a++){var s=r[a];if(s.type==="elem"){var l=s.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var u=kl(["pstrut"],[]);u.style.height=tr(i);for(var d=[],c=o,f=o,p=o,v=0;v<r.length;v++){var h=r[v];if(h.type==="kern")p+=h.size;else{var g=h.elem,y=h.wrapperClasses||[],m=h.wrapperStyle||{},b=kl(y,[u,g],void 0,m);b.style.top=tr(-i-p-g.depth),h.marginLeft&&(b.style.marginLeft=h.marginLeft),h.marginRight&&(b.style.marginRight=h.marginRight),d.push(b),p+=g.height+g.depth}c=Math.min(c,p),f=Math.max(f,p)}var w=kl(["vlist"],d);w.style.height=tr(f);var A;if(c<0){var S=kl([],[]),E=kl(["vlist"],[S]);E.style.height=tr(-c);var D=kl(["vlist-s"],[new rc("")]);A=[kl(["vlist-r"],[w,D]),kl(["vlist-r"],[E])]}else A=[kl(["vlist-r"],[w])];var _=kl(["vlist-t"],A);return A.length===2&&_.classes.push("vlist-t2"),_.height=f,_.depth=-c,_},spt=(e,t)=>{var n=kl(["mspace"],[],t),r=ca(e,t);return n.style.marginRight=tr(r),n},Xx=function(t,n,r){var o="";switch(t){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=t}var i;return n==="textbf"&&r==="textit"?i="BoldItalic":n==="textbf"?i="Bold":n==="textit"?i="Italic":i="Regular",o+"-"+i},w3e={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},A3e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},lpt=function(t,n){var[r,o,i]=A3e[t],a=new v0(r),s=new lp([a],{width:tr(o),height:tr(i),style:"width:"+tr(o),viewBox:"0 0 "+1e3*o+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=y3e(["overlay"],[s],n);return l.height=i,l.style.height=tr(i),l.style.width=tr(o),l},sn={fontMap:w3e,makeSymbol:bc,mathsym:Zft,makeSpan:kl,makeSvgSpan:y3e,makeLineSpan:npt,makeAnchor:rpt,makeFragment:b3e,wrapFragment:opt,makeVList:apt,makeOrd:Jft,makeGlue:spt,staticSvg:lpt,svgData:A3e,tryCombineChars:tpt},la={number:3,unit:"mu"},tg={number:4,unit:"mu"},vf={number:5,unit:"mu"},upt={mord:{mop:la,mbin:tg,mrel:vf,minner:la},mop:{mord:la,mop:la,mrel:vf,minner:la},mbin:{mord:tg,mop:tg,mopen:tg,minner:tg},mrel:{mord:vf,mop:vf,mopen:vf,minner:vf},mopen:{},mclose:{mop:la,mbin:tg,mrel:vf,minner:la},mpunct:{mord:la,mop:la,mrel:vf,mopen:la,mclose:la,mpunct:la,minner:la},minner:{mord:la,mop:la,mbin:tg,mrel:vf,mopen:la,mpunct:la,minner:la}},cpt={mord:{mop:la},mop:{mord:la,mop:la},mbin:{},mrel:{},mopen:{},mclose:{mop:la},mpunct:{},minner:{mop:la}},C3e={},ek={},tk={};function gr(e){for(var{type:t,names:n,props:r,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:o},l=0;l<n.length;++l)C3e[n[l]]=s;t&&(i&&(ek[t]=i),a&&(tk[t]=a))}function gm(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;gr({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var nk=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},_a=function(t){return t.type==="ordgroup"?t.body:[t]},up=sn.makeSpan,dpt=["leftmost","mbin","mopen","mrel","mop","mpunct"],fpt=["rightmost","mrel","mclose","mpunct"],ppt={display:Zr.DISPLAY,text:Zr.TEXT,script:Zr.SCRIPT,scriptscript:Zr.SCRIPTSCRIPT},hpt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},rs=function(t,n,r,o){o===void 0&&(o=[null,null]);for(var i=[],a=0;a<t.length;a++){var s=Jo(t[a],n);if(s instanceof tC){var l=s.children;i.push(...l)}else i.push(s)}if(sn.tryCombineChars(i),!r)return i;var u=n;if(t.length===1){var d=t[0];d.type==="sizing"?u=n.havingSize(d.size):d.type==="styling"&&(u=n.havingStyle(ppt[d.style]))}var c=up([o[0]||"leftmost"],[],n),f=up([o[1]||"rightmost"],[],n),p=r==="root";return qre(i,(v,h)=>{var g=h.classes[0],y=v.classes[0];g==="mbin"&&fpt.includes(y)?h.classes[0]="mord":y==="mbin"&&dpt.includes(g)&&(v.classes[0]="mord")},{node:c},f,p),qre(i,(v,h)=>{var g=LF(h),y=LF(v),m=g&&y?v.hasClass("mtight")?cpt[g][y]:upt[g][y]:null;if(m)return sn.makeGlue(m,u)},{node:c},f,p),i},qre=function e(t,n,r,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var s=t[a],l=x3e(s);if(l){e(l.children,n,r,null,i);continue}var u=!s.hasClass("mspace");if(u){var d=n(s,r.node);d&&(r.insertAfter?r.insertAfter(d):(t.unshift(d),a++))}u?r.node=s:i&&s.hasClass("newline")&&(r.node=up(["leftmost"])),r.insertAfter=(c=>f=>{t.splice(c+1,0,f),a++})(a)}o&&t.pop()},x3e=function(t){return t instanceof tC||t instanceof tq||t instanceof nC&&t.hasClass("enclosing")?t:null},gpt=function e(t,n){var r=x3e(t);if(r){var o=r.children;if(o.length){if(n==="right")return e(o[o.length-1],"right");if(n==="left")return e(o[0],"left")}}return t},LF=function(t,n){return t?(n&&(t=gpt(t,n)),hpt[t.classes[0]]||null):null},CA=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return up(n.concat(r))},Jo=function(t,n,r){if(!t)return up();if(ek[t.type]){var o=ek[t.type](t,n);if(r&&n.size!==r.size){o=up(n.sizingClasses(r),[o],n);var i=n.sizeMultiplier/r.sizeMultiplier;o.height*=i,o.depth*=i}return o}else throw new Gn("Got group of unknown type: '"+t.type+"'")};function Jx(e,t){var n=up(["base"],e,t),r=up(["strut"]);return r.style.height=tr(n.height+n.depth),n.depth&&(r.style.verticalAlign=tr(-n.depth)),n.children.unshift(r),n}function FF(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=rs(e,t,"root"),o;r.length===2&&r[1].hasClass("tag")&&(o=r.pop());for(var i=[],a=[],s=0;s<r.length;s++)if(a.push(r[s]),r[s].hasClass("mbin")||r[s].hasClass("mrel")||r[s].hasClass("allowbreak")){for(var l=!1;s<r.length-1&&r[s+1].hasClass("mspace")&&!r[s+1].hasClass("newline");)s++,a.push(r[s]),r[s].hasClass("nobreak")&&(l=!0);l||(i.push(Jx(a,t)),a=[])}else r[s].hasClass("newline")&&(a.pop(),a.length>0&&(i.push(Jx(a,t)),a=[]),i.push(r[s]));a.length>0&&i.push(Jx(a,t));var u;n?(u=Jx(rs(n,t,!0)),u.classes=["tag"],i.push(u)):o&&i.push(o);var d=up(["katex-html"],i);if(d.setAttribute("aria-hidden","true"),u){var c=u.children[0];c.style.height=tr(d.height+d.depth),d.depth&&(c.style.verticalAlign=tr(-d.depth))}return d}function S3e(e){return new tC(e)}class au{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=g0(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Td&&this.children[r+1]instanceof Td){for(var o=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Td;)o+=this.children[++r].toText();t.appendChild(new Td(o).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=ei.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+ei.escape(g0(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Td{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ei.escape(this.toText())}toText(){return this.text}}class vpt{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",tr(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+tr(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Vn={MathNode:au,TextNode:Td,SpaceNode:vpt,newDocumentFragment:S3e},oc=function(t,n,r){return zi[n][t]&&zi[n][t].replace&&t.charCodeAt(0)!==55349&&!(m3e.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=zi[n][t].replace),new Vn.TextNode(t)},rq=function(t){return t.length===1?t[0]:new Vn.MathNode("mrow",t)},oq=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var o=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var i=t.text;if(["\\imath","\\jmath"].includes(i))return null;zi[o][i]&&zi[o][i].replace&&(i=zi[o][i].replace);var a=sn.fontMap[r].fontName;return eq(i,a,o)?sn.fontMap[r].variant:null};function nM(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Td&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Td&&n.text===","}else return!1}var Xl=function(t,n,r){if(t.length===1){var o=Di(t[0],n);return r&&o instanceof au&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var i=[],a,s=0;s<t.length;s++){var l=Di(t[s],n);if(l instanceof au&&a instanceof au){if(l.type==="mtext"&&a.type==="mtext"&&l.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...l.children);continue}else if(l.type==="mn"&&a.type==="mn"){a.children.push(...l.children);continue}else if(nM(l)&&a.type==="mn"){a.children.push(...l.children);continue}else if(l.type==="mn"&&nM(a))l.children=[...a.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(a.type==="mn"||nM(a))){var u=l.children[0];u instanceof au&&u.type==="mn"&&(u.children=[...a.children,...u.children],i.pop())}else if(a.type==="mi"&&a.children.length===1){var d=a.children[0];if(d instanceof Td&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var c=l.children[0];c instanceof Td&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),i.pop())}}}i.push(l),a=l}return i},m0=function(t,n,r){return rq(Xl(t,n,r))},Di=function(t,n){if(!t)return new Vn.MathNode("mrow");if(tk[t.type]){var r=tk[t.type](t,n);return r}else throw new Gn("Got group of unknown type: '"+t.type+"'")};function Gre(e,t,n,r,o){var i=Xl(e,n),a;i.length===1&&i[0]instanceof au&&["mrow","mtable"].includes(i[0].type)?a=i[0]:a=new Vn.MathNode("mrow",i);var s=new Vn.MathNode("annotation",[new Vn.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new Vn.MathNode("semantics",[a,s]),u=new Vn.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var d=o?"katex":"katex-mathml";return sn.makeSpan([d],[u])}var E3e=function(t){return new kf({style:t.displayMode?Zr.DISPLAY:Zr.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},k3e=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=sn.makeSpan(r,[t])}return t},mpt=function(t,n,r){var o=E3e(r),i;if(r.output==="mathml")return Gre(t,n,o,r.displayMode,!0);if(r.output==="html"){var a=FF(t,o);i=sn.makeSpan(["katex"],[a])}else{var s=Gre(t,n,o,r.displayMode,!1),l=FF(t,o);i=sn.makeSpan(["katex"],[s,l])}return k3e(i,r)},ypt=function(t,n,r){var o=E3e(r),i=FF(t,o),a=sn.makeSpan(["katex"],[i]);return k3e(a,r)},bpt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},wpt=function(t){var n=new Vn.MathNode("mo",[new Vn.TextNode(bpt[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Apt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Cpt=function(t){return t.type==="ordgroup"?t.body.length:1},xpt=function(t,n){function r(){var s=4e5,l=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var u=t,d=Cpt(u.base),c,f,p;if(d>5)l==="widehat"||l==="widecheck"?(c=420,s=2364,p=.42,f=l+"4"):(c=312,s=2340,p=.34,f="tilde4");else{var v=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][v],c=[0,239,300,360,420][v],p=[0,.24,.3,.3,.36,.42][v],f=l+v):(s=[0,600,1033,2339,2340][v],c=[0,260,286,306,312][v],p=[0,.26,.286,.3,.306,.34][v],f="tilde"+v)}var h=new v0(f),g=new lp([h],{width:"100%",height:tr(p),viewBox:"0 0 "+s+" "+c,preserveAspectRatio:"none"});return{span:sn.makeSvgSpan([],[g],n),minWidth:0,height:p}}else{var y=[],m=Apt[l],[b,w,A]=m,S=A/1e3,E=b.length,D,_;if(E===1){var M=m[3];D=["hide-tail"],_=[M]}else if(E===2)D=["halfarrow-left","halfarrow-right"],_=["xMinYMin","xMaxYMin"];else if(E===3)D=["brace-left","brace-center","brace-right"],_=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
- `+E+" children.");for(var O=0;O<E;O++){var k=new v0(b[O]),R=new lp([k],{width:"400em",height:tr(S),viewBox:"0 0 "+s+" "+A,preserveAspectRatio:_[O]+" slice"}),N=sn.makeSvgSpan([D[O]],[R],n);if(E===1)return{span:N,minWidth:w,height:S};N.style.height=tr(S),y.push(N)}return{span:sn.makeSpan(["stretchy"],y,n),minWidth:w,height:S}}}var{span:o,minWidth:i,height:a}=r();return o.height=a,o.style.height=tr(a),i>0&&(o.style.minWidth=tr(i)),o},Spt=function(t,n,r,o,i){var a,s=t.height+t.depth+r+o;if(/fbox|color|angl/.test(n)){if(a=sn.makeSpan(["stretchy",n],[],i),n==="fbox"){var l=i.color&&i.getColor();l&&(a.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new RF({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new RF({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new lp(u,{width:"100%",height:tr(s)});a=sn.makeSvgSpan([],[d],i)}return a.height=s,a.style.height=tr(s),a},cp={encloseSpan:Spt,mathMLnode:wpt,svgSpan:xpt};function _o(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function iq(e){var t=JD(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function JD(e){return e&&(e.type==="atom"||Yft.hasOwnProperty(e.type))?e:null}var aq=(e,t)=>{var n,r,o;e&&e.type==="supsub"?(r=_o(e.base,"accent"),n=r.base,e.base=n,o=Gft(Jo(e,t)),e.base=r):(r=_o(e,"accent"),n=r.base);var i=Jo(n,t.havingCrampedStyle()),a=r.isShifty&&ei.isCharacterBox(n),s=0;if(a){var l=ei.getBaseElem(n),u=Jo(l,t.havingCrampedStyle());s=zre(u).skew}var d=r.label==="\\c",c=d?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),f;if(r.isStretchy)f=cp.svgSpan(r,t),f=sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+tr(2*s)+")",marginLeft:tr(2*s)}:void 0}]},t);else{var p,v;r.label==="\\vec"?(p=sn.staticSvg("vec",t),v=sn.svgData.vec[1]):(p=sn.makeOrd({mode:r.mode,text:r.label},t,"textord"),p=zre(p),p.italic=0,v=p.width,d&&(c+=p.depth)),f=sn.makeSpan(["accent-body"],[p]);var h=r.label==="\\textcircled";h&&(f.classes.push("accent-full"),c=i.height);var g=s;h||(g-=v/2),f.style.left=tr(g),r.label==="\\textcircled"&&(f.style.top=".2em"),f=sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:f}]},t)}var y=sn.makeSpan(["mord","accent"],[f],t);return o?(o.children[0]=y,o.height=Math.max(y.height,o.height),o.classes[0]="mord",o):y},T3e=(e,t)=>{var n=e.isStretchy?cp.mathMLnode(e.label):new Vn.MathNode("mo",[oc(e.label,e.mode)]),r=new Vn.MathNode("mover",[Di(e.base,t),n]);return r.setAttribute("accent","true"),r},Ept=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));gr({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=nk(t[0]),r=!Ept.test(e.funcName),o=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:aq,mathmlBuilder:T3e});gr({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:aq,mathmlBuilder:T3e});gr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:(e,t)=>{var n=Jo(e.base,t),r=cp.svgSpan(e,t),o=e.label==="\\utilde"?.12:0,i=sn.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return sn.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=cp.mathMLnode(e.label),r=new Vn.MathNode("munder",[Di(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var e6=e=>{var t=new Vn.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};gr({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:o}=e;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),o=sn.wrapFragment(Jo(e.body,r,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(i+"-arrow-pad");var a;e.below&&(r=t.havingStyle(n.sub()),a=sn.wrapFragment(Jo(e.below,r,t),t),a.classes.push(i+"-arrow-pad"));var s=cp.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(o.depth>.25||e.label==="\\xleftequilibrium")&&(u-=o.depth);var d;if(a){var c=-t.fontMetrics().axisHeight+a.height+.5*s.height+.111;d=sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:l},{type:"elem",elem:a,shift:c}]},t)}else d=sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),sn.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=cp.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var o=e6(Di(e.body,t));if(e.below){var i=e6(Di(e.below,t));r=new Vn.MathNode("munderover",[n,i,o])}else r=new Vn.MathNode("mover",[n,o])}else if(e.below){var a=e6(Di(e.below,t));r=new Vn.MathNode("munder",[n,a])}else r=e6(),r=new Vn.MathNode("mover",[n,r]);return r}});var kpt=sn.makeSpan;function _3e(e,t){var n=rs(e.body,t,!0);return kpt([e.mclass],n,t)}function D3e(e,t){var n,r=Xl(e.body,t);return e.mclass==="minner"?n=new Vn.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Vn.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Vn.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}gr({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:_a(o),isCharacterBox:ei.isCharacterBox(o)}},htmlBuilder:_3e,mathmlBuilder:D3e});var e7=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};gr({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:e7(t[0]),body:_a(t[1]),isCharacterBox:ei.isCharacterBox(t[1])}}});gr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,o=t[1],i=t[0],a;r!=="\\stackrel"?a=e7(o):a="mrel";var s={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:_a(o)},l={type:"supsub",mode:i.mode,base:s,sup:r==="\\underset"?null:i,sub:r==="\\underset"?i:null};return{type:"mclass",mode:n.mode,mclass:a,body:[l],isCharacterBox:ei.isCharacterBox(l)}},htmlBuilder:_3e,mathmlBuilder:D3e});gr({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:e7(t[0]),body:_a(t[0])}},htmlBuilder(e,t){var n=rs(e.body,t,!0),r=sn.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Xl(e.body,t),r=new Vn.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Tpt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Kre=()=>({type:"styling",body:[],mode:"math",style:"display"}),Yre=e=>e.type==="textord"&&e.text==="@",_pt=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Dpt(e,t,n){var r=Tpt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var o=n.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:r,mode:"math",family:"rel"},a=n.callFunction("\\Big",[i],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[o,a,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Ipt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Gn("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],o=[r],i=0;i<t.length;i++){for(var a=t[i],s=Kre(),l=0;l<a.length;l++)if(!Yre(a[l]))s.body.push(a[l]);else{r.push(s),l+=1;var u=iq(a[l]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(u)>-1))if("<>AV".indexOf(u)>-1)for(var c=0;c<2;c++){for(var f=!0,p=l+1;p<a.length;p++){if(_pt(a[p],u)){f=!1,l=p;break}if(Yre(a[p]))throw new Gn("Missing a "+u+" character to complete a CD arrow.",a[p]);d[c].body.push(a[p])}if(f)throw new Gn("Missing a "+u+" character to complete a CD arrow.",a[l])}else throw new Gn('Expected one of "<>AV=|." after @',a[l]);var v=Dpt(u,d,e),h={type:"styling",body:[v],mode:"math",style:"display"};r.push(h),s=Kre()}i%2===0?r.push(s):r.shift(),r=[],o.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var g=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:g,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}gr({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=sn.wrapFragment(Jo(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=tr(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Vn.MathNode("mrow",[Di(e.label,t)]);return n=new Vn.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Vn.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});gr({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=sn.wrapFragment(Jo(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Vn.MathNode("mrow",[Di(e.fragment,t)])}});gr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=_o(t[0],"ordgroup"),o=r.body,i="",a=0;a<o.length;a++){var s=_o(o[a],"textord");i+=s.text}var l=parseInt(i),u;if(isNaN(l))throw new Gn("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new Gn("\\@char with invalid code point "+i);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var I3e=(e,t)=>{var n=rs(e.body,t.withColor(e.color),!1);return sn.makeFragment(n)},O3e=(e,t)=>{var n=Xl(e.body,t.withColor(e.color)),r=new Vn.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};gr({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=_o(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:r,body:_a(o)}},htmlBuilder:I3e,mathmlBuilder:O3e});gr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,o=_o(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:i}},htmlBuilder:I3e,mathmlBuilder:O3e});gr({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,o=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:o&&_o(o,"size").value}},htmlBuilder(e,t){var n=sn.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=tr(ca(e.size,t)))),n},mathmlBuilder(e,t){var n=new Vn.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",tr(ca(e.size,t)))),n}});var UF={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},M3e=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Gn("Expected a control sequence",e);return t},Opt=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},P3e=(e,t,n,r)=>{var o=e.gullet.macros.get(n.text);o==null&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,r)};gr({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(UF[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=UF[r.text]),_o(t.parseFunction(),"internal");throw new Gn("Invalid token after macro prefix",r)}});gr({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),o=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new Gn("Expected a control sequence",r);for(var i=0,a,s=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){a=t.gullet.future(),s[i].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Gn('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==i+1)throw new Gn('Argument number "'+r.text+'" out of order');i++,s.push([])}else{if(r.text==="EOF")throw new Gn("Expected a macro definition");s[i].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return a&&l.unshift(a),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(o,{tokens:l,numArgs:i,delimiters:s},n===UF[n]),{type:"internal",mode:t.mode}}});gr({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=M3e(t.gullet.popToken());t.gullet.consumeSpaces();var o=Opt(t);return P3e(t,r,o,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});gr({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=M3e(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return P3e(t,r,i,n==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var _4=function(t,n,r){var o=zi.math[t]&&zi.math[t].replace,i=eq(o||t,n,r);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return i},sq=function(t,n,r,o){var i=r.havingBaseStyle(n),a=sn.makeSpan(o.concat(i.sizingClasses(r)),[t],r),s=i.sizeMultiplier/r.sizeMultiplier;return a.height*=s,a.depth*=s,a.maxFontSize=i.sizeMultiplier,a},N3e=function(t,n,r){var o=n.havingBaseStyle(r),i=(1-n.sizeMultiplier/o.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=tr(i),t.height-=i,t.depth+=i},Mpt=function(t,n,r,o,i,a){var s=sn.makeSymbol(t,"Main-Regular",i,o),l=sq(s,n,o,a);return r&&N3e(l,o,n),l},Ppt=function(t,n,r,o){return sn.makeSymbol(t,"Size"+n+"-Regular",r,o)},R3e=function(t,n,r,o,i,a){var s=Ppt(t,n,i,o),l=sq(sn.makeSpan(["delimsizing","size"+n],[s],o),Zr.TEXT,o,a);return r&&N3e(l,o,Zr.TEXT),l},rM=function(t,n,r){var o;n==="Size1-Regular"?o="delim-size1":o="delim-size4";var i=sn.makeSpan(["delimsizinginner",o],[sn.makeSpan([],[sn.makeSymbol(t,n,r)])]);return{type:"elem",elem:i}},oM=function(t,n,r){var o=kd["Size4-Regular"][t.charCodeAt(0)]?kd["Size4-Regular"][t.charCodeAt(0)][4]:kd["Size1-Regular"][t.charCodeAt(0)][4],i=new v0("inner",Fft(t,Math.round(1e3*n))),a=new lp([i],{width:tr(o),height:tr(n),style:"width:"+tr(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=sn.makeSvgSpan([],[a],r);return s.height=n,s.style.height=tr(n),s.style.width=tr(o),{type:"elem",elem:s}},zF=.008,t6={type:"kern",size:-1*zF},Npt=["|","\\lvert","\\rvert","\\vert"],Rpt=["\\|","\\lVert","\\rVert","\\Vert"],B3e=function(t,n,r,o,i,a){var s,l,u,d,c="",f=0;s=u=d=t,l=null;var p="Size1-Regular";t==="\\uparrow"?u=d="⏐":t==="\\Uparrow"?u=d="‖":t==="\\downarrow"?s=u="⏐":t==="\\Downarrow"?s=u="‖":t==="\\updownarrow"?(s="\\uparrow",u="⏐",d="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="‖",d="\\Downarrow"):Npt.includes(t)?(u="∣",c="vert",f=333):Rpt.includes(t)?(u="∥",c="doublevert",f=556):t==="["||t==="\\lbrack"?(s="⎡",u="⎢",d="⎣",p="Size4-Regular",c="lbrack",f=667):t==="]"||t==="\\rbrack"?(s="⎤",u="⎥",d="⎦",p="Size4-Regular",c="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(u=s="⎢",d="⎣",p="Size4-Regular",c="lfloor",f=667):t==="\\lceil"||t==="⌈"?(s="⎡",u=d="⎢",p="Size4-Regular",c="lceil",f=667):t==="\\rfloor"||t==="⌋"?(u=s="⎥",d="⎦",p="Size4-Regular",c="rfloor",f=667):t==="\\rceil"||t==="⌉"?(s="⎤",u=d="⎥",p="Size4-Regular",c="rceil",f=667):t==="("||t==="\\lparen"?(s="⎛",u="⎜",d="⎝",p="Size4-Regular",c="lparen",f=875):t===")"||t==="\\rparen"?(s="⎞",u="⎟",d="⎠",p="Size4-Regular",c="rparen",f=875):t==="\\{"||t==="\\lbrace"?(s="⎧",l="⎨",d="⎩",u="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",l="⎬",d="⎭",u="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",d="⎩",u="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",d="⎭",u="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",d="⎭",u="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",d="⎩",u="⎪",p="Size4-Regular");var v=_4(s,p,i),h=v.height+v.depth,g=_4(u,p,i),y=g.height+g.depth,m=_4(d,p,i),b=m.height+m.depth,w=0,A=1;if(l!==null){var S=_4(l,p,i);w=S.height+S.depth,A=2}var E=h+b+w,D=Math.max(0,Math.ceil((n-E)/(A*y))),_=E+D*A*y,M=o.fontMetrics().axisHeight;r&&(M*=o.sizeMultiplier);var O=_/2-M,k=[];if(c.length>0){var R=_-h-b,N=Math.round(_*1e3),W=Uft(c,Math.round(R*1e3)),B=new v0(c,W),z=(f/1e3).toFixed(3)+"em",j=(N/1e3).toFixed(3)+"em",q=new lp([B],{width:z,height:j,viewBox:"0 0 "+f+" "+N}),Y=sn.makeSvgSpan([],[q],o);Y.height=N/1e3,Y.style.width=z,Y.style.height=j,k.push({type:"elem",elem:Y})}else{if(k.push(rM(d,p,i)),k.push(t6),l===null){var U=_-h-b+2*zF;k.push(oM(u,U,o))}else{var F=(_-h-b-w)/2+2*zF;k.push(oM(u,F,o)),k.push(t6),k.push(rM(l,p,i)),k.push(t6),k.push(oM(u,F,o))}k.push(t6),k.push(rM(s,p,i))}var H=o.havingBaseStyle(Zr.TEXT),re=sn.makeVList({positionType:"bottom",positionData:O,children:k},H);return sq(sn.makeSpan(["delimsizing","mult"],[re],H),Zr.TEXT,o,a)},iM=80,aM=.08,sM=function(t,n,r,o,i){var a=Lft(t,o,r),s=new v0(t,a),l=new lp([s],{width:"400em",height:tr(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return sn.makeSvgSpan(["hide-tail"],[l],i)},Bpt=function(t,n){var r=n.havingBaseSizing(),o=z3e("\\surd",t*r.sizeMultiplier,U3e,r),i=r.sizeMultiplier,a=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,u=0,d=0,c;return o.type==="small"?(d=1e3+1e3*a+iM,t<1?i=1:t<1.4&&(i=.7),l=(1+a+aM)/i,u=(1+a)/i,s=sM("sqrtMain",l,d,a,n),s.style.minWidth="0.853em",c=.833/i):o.type==="large"?(d=(1e3+iM)*s3[o.size],u=(s3[o.size]+a)/i,l=(s3[o.size]+a+aM)/i,s=sM("sqrtSize"+o.size,l,d,a,n),s.style.minWidth="1.02em",c=1/i):(l=t+a+aM,u=t+a,d=Math.floor(1e3*t+a)+iM,s=sM("sqrtTall",l,d,a,n),s.style.minWidth="0.742em",c=1.056),s.height=u,s.style.height=tr(l),{span:s,advanceWidth:c,ruleWidth:(n.fontMetrics().sqrtRuleThickness+a)*i}},L3e=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Lpt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],F3e=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],s3=[0,1.2,1.8,2.4,3],Fpt=function(t,n,r,o,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),L3e.includes(t)||F3e.includes(t))return R3e(t,n,!1,r,o,i);if(Lpt.includes(t))return B3e(t,s3[n],!1,r,o,i);throw new Gn("Illegal delimiter: '"+t+"'")},Upt=[{type:"small",style:Zr.SCRIPTSCRIPT},{type:"small",style:Zr.SCRIPT},{type:"small",style:Zr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],zpt=[{type:"small",style:Zr.SCRIPTSCRIPT},{type:"small",style:Zr.SCRIPT},{type:"small",style:Zr.TEXT},{type:"stack"}],U3e=[{type:"small",style:Zr.SCRIPTSCRIPT},{type:"small",style:Zr.SCRIPT},{type:"small",style:Zr.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],$pt=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},z3e=function(t,n,r,o){for(var i=Math.min(2,3-o.style.size),a=i;a<r.length&&r[a].type!=="stack";a++){var s=_4(t,$pt(r[a]),"math"),l=s.height+s.depth;if(r[a].type==="small"){var u=o.havingBaseStyle(r[a].style);l*=u.sizeMultiplier}if(l>n)return r[a]}return r[r.length-1]},$3e=function(t,n,r,o,i,a){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;F3e.includes(t)?s=Upt:L3e.includes(t)?s=U3e:s=zpt;var l=z3e(t,n,s,o);return l.type==="small"?Mpt(t,l.style,r,o,i,a):l.type==="large"?R3e(t,l.size,r,o,i,a):B3e(t,n,r,o,i,a)},jpt=function(t,n,r,o,i,a){var s=o.fontMetrics().axisHeight*o.sizeMultiplier,l=901,u=5/o.fontMetrics().ptPerEm,d=Math.max(n-s,r+s),c=Math.max(d/500*l,2*d-u);return $3e(t,c,!0,o,i,a)},Wf={sqrtImage:Bpt,sizedDelim:Fpt,sizeToMaxHeight:s3,customSizedDelim:$3e,leftRightDelim:jpt},Qre={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Hpt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function t7(e,t){var n=JD(e);if(n&&Hpt.includes(n.text))return n;throw n?new Gn("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Gn("Invalid delimiter type '"+e.type+"'",e)}gr({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=t7(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Qre[e.funcName].size,mclass:Qre[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?sn.makeSpan([e.mclass]):Wf.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(oc(e.delim,e.mode));var n=new Vn.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=tr(Wf.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Zre(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}gr({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Gn("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:t7(t[0],e).text,color:n}}});gr({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=t7(t[0],e),r=e.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=_o(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{Zre(e);for(var n=rs(e.body,t,!0,["mopen","mclose"]),r=0,o=0,i=!1,a=0;a<n.length;a++)n[a].isMiddle?i=!0:(r=Math.max(n[a].height,r),o=Math.max(n[a].depth,o));r*=t.sizeMultiplier,o*=t.sizeMultiplier;var s;if(e.left==="."?s=CA(t,["mopen"]):s=Wf.leftRightDelim(e.left,r,o,t,e.mode,["mopen"]),n.unshift(s),i)for(var l=1;l<n.length;l++){var u=n[l],d=u.isMiddle;d&&(n[l]=Wf.leftRightDelim(d.delim,r,o,d.options,e.mode,[]))}var c;if(e.right===".")c=CA(t,["mclose"]);else{var f=e.rightColor?t.withColor(e.rightColor):t;c=Wf.leftRightDelim(e.right,r,o,f,e.mode,["mclose"])}return n.push(c),sn.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{Zre(e);var n=Xl(e.body,t);if(e.left!=="."){var r=new Vn.MathNode("mo",[oc(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var o=new Vn.MathNode("mo",[oc(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return rq(n)}});gr({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=t7(t[0],e);if(!e.parser.leftrightDepth)throw new Gn("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=CA(t,[]);else{n=Wf.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?oc("|","text"):oc(e.delim,e.mode),r=new Vn.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var lq=(e,t)=>{var n=sn.wrapFragment(Jo(e.body,t),t),r=e.label.slice(1),o=t.sizeMultiplier,i,a=0,s=ei.isCharacterBox(e.body);if(r==="sout")i=sn.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/o,a=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=ca({number:.6,unit:"pt"},t),u=ca({number:.35,unit:"ex"},t),d=t.havingBaseSizing();o=o/d.sizeMultiplier;var c=n.height+n.depth+l+u;n.style.paddingLeft=tr(c/2+l);var f=Math.floor(1e3*c*o),p=Rft(f),v=new lp([new v0("phase",p)],{width:"400em",height:tr(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=sn.makeSvgSpan(["hide-tail"],[v],t),i.style.height=tr(c),a=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var h=0,g=0,y=0;/box/.test(r)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r==="colorbox"?0:y),g=h):r==="angl"?(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*y,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),i=cp.encloseSpan(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(i.style.borderStyle="solid",i.style.borderWidth=tr(y)):r==="angl"&&y!==.049&&(i.style.borderTopWidth=tr(y),i.style.borderRightWidth=tr(y)),a=n.depth+g,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var m;if(e.backgroundColor)m=sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:a},{type:"elem",elem:n,shift:0}]},t);else{var b=/cancel|phase/.test(r)?["svg-align"]:[];m=sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:i,shift:a,wrapperClasses:b}]},t)}return/cancel/.test(r)&&(m.height=n.height,m.depth=n.depth),/cancel/.test(r)&&!s?sn.makeSpan(["mord","cancel-lap"],[m],t):sn.makeSpan(["mord"],[m],t)},uq=(e,t)=>{var n=0,r=new Vn.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Di(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};gr({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:o}=e,i=_o(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:lq,mathmlBuilder:uq});gr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:o}=e,i=_o(t[0],"color-token").color,a=_o(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:lq,mathmlBuilder:uq});gr({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});gr({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"enclose",mode:n.mode,label:r,body:o}},htmlBuilder:lq,mathmlBuilder:uq});gr({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var j3e={};function rf(e){for(var{type:t,names:n,props:r,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l<n.length;++l)j3e[n[l]]=s;i&&(ek[t]=i),a&&(tk[t]=a)}var H3e={};function ut(e,t){H3e[e]=t}function Xre(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var n7=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Gn("{"+e.envName+"} can be used only in display mode.")};function cq(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function L0(e,t,n){var{hskipBeforeAndAfter:r,addJot:o,cols:i,arraystretch:a,colSeparationType:s,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:c,leqno:f}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)a=1;else if(a=parseFloat(p),!a||a<0)throw new Gn("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var v=[],h=[v],g=[],y=[],m=l!=null?[]:void 0;function b(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){m&&(e.gullet.macros.get("\\df@tag")?(m.push(e.subparse([new fu("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):m.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(b(),y.push(Xre(e));;){var A=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),A={type:"ordgroup",mode:e.mode,body:A},n&&(A={type:"styling",mode:e.mode,style:n,body:[A]}),v.push(A);var S=e.fetch().text;if(S==="&"){if(c&&v.length===c){if(u||s)throw new Gn("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(S==="\\end"){w(),v.length===1&&A.type==="styling"&&A.body[0].body.length===0&&(h.length>1||!d)&&h.pop(),y.length<h.length+1&&y.push([]);break}else if(S==="\\\\"){e.consume();var E=void 0;e.gullet.future().text!==" "&&(E=e.parseSizeGroup(!0)),g.push(E?E.value:null),w(),y.push(Xre(e)),v=[],h.push(v),b()}else throw new Gn("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:a,body:h,cols:i,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:y,colSeparationType:s,tags:m,leqno:f}}function dq(e){return e.slice(0,1)==="d"?"display":"text"}var of=function(t,n){var r,o,i=t.body.length,a=t.hLinesBeforeRow,s=0,l=new Array(i),u=[],d=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),c=1/n.fontMetrics().ptPerEm,f=5*c;if(t.colSeparationType&&t.colSeparationType==="small"){var p=n.havingStyle(Zr.SCRIPT).sizeMultiplier;f=.2778*(p/n.sizeMultiplier)}var v=t.colSeparationType==="CD"?ca({number:3,unit:"ex"},n):12*c,h=3*c,g=t.arraystretch*v,y=.7*g,m=.3*g,b=0;function w(ie){for(var ue=0;ue<ie.length;++ue)ue>0&&(b+=.25),u.push({pos:b,isDashed:ie[ue]})}for(w(a[0]),r=0;r<t.body.length;++r){var A=t.body[r],S=y,E=m;s<A.length&&(s=A.length);var D=new Array(A.length);for(o=0;o<A.length;++o){var _=Jo(A[o],n);E<_.depth&&(E=_.depth),S<_.height&&(S=_.height),D[o]=_}var M=t.rowGaps[r],O=0;M&&(O=ca(M,n),O>0&&(O+=m,E<O&&(E=O),O=0)),t.addJot&&(E+=h),D.height=S,D.depth=E,b+=S,D.pos=b,b+=E+O,l[r]=D,w(a[r+1])}var k=b/2+n.fontMetrics().axisHeight,R=t.cols||[],N=[],W,B,z=[];if(t.tags&&t.tags.some(ie=>ie))for(r=0;r<i;++r){var j=l[r],q=j.pos-k,Y=t.tags[r],U=void 0;Y===!0?U=sn.makeSpan(["eqn-num"],[],n):Y===!1?U=sn.makeSpan([],[],n):U=sn.makeSpan([],rs(Y,n,!0),n),U.depth=j.depth,U.height=j.height,z.push({type:"elem",elem:U,shift:q})}for(o=0,B=0;o<s||B<R.length;++o,++B){for(var F=R[B]||{},H=!0;F.type==="separator";){if(H||(W=sn.makeSpan(["arraycolsep"],[]),W.style.width=tr(n.fontMetrics().doubleRuleSep),N.push(W)),F.separator==="|"||F.separator===":"){var re=F.separator==="|"?"solid":"dashed",X=sn.makeSpan(["vertical-separator"],[],n);X.style.height=tr(b),X.style.borderRightWidth=tr(d),X.style.borderRightStyle=re,X.style.margin="0 "+tr(-d/2);var te=b-k;te&&(X.style.verticalAlign=tr(-te)),N.push(X)}else throw new Gn("Invalid separator type: "+F.separator);B++,F=R[B]||{},H=!1}if(!(o>=s)){var Z=void 0;(o>0||t.hskipBeforeAndAfter)&&(Z=ei.deflt(F.pregap,f),Z!==0&&(W=sn.makeSpan(["arraycolsep"],[]),W.style.width=tr(Z),N.push(W)));var le=[];for(r=0;r<i;++r){var ve=l[r],Pe=ve[o];if(Pe){var Ae=ve.pos-k;Pe.depth=ve.depth,Pe.height=ve.height,le.push({type:"elem",elem:Pe,shift:Ae})}}le=sn.makeVList({positionType:"individualShift",children:le},n),le=sn.makeSpan(["col-align-"+(F.align||"c")],[le]),N.push(le),(o<s-1||t.hskipBeforeAndAfter)&&(Z=ei.deflt(F.postgap,f),Z!==0&&(W=sn.makeSpan(["arraycolsep"],[]),W.style.width=tr(Z),N.push(W)))}}if(l=sn.makeSpan(["mtable"],N),u.length>0){for(var he=sn.makeLineSpan("hline",n,d),Ee=sn.makeLineSpan("hdashline",n,d),Q=[{type:"elem",elem:l,shift:0}];u.length>0;){var me=u.pop(),De=me.pos-k;me.isDashed?Q.push({type:"elem",elem:Ee,shift:De}):Q.push({type:"elem",elem:he,shift:De})}l=sn.makeVList({positionType:"individualShift",children:Q},n)}if(z.length===0)return sn.makeSpan(["mord"],[l],n);var pe=sn.makeVList({positionType:"individualShift",children:z},n);return pe=sn.makeSpan(["tag"],[pe],n),sn.makeFragment([l,pe])},Wpt={c:"center ",l:"left ",r:"right "},af=function(t,n){for(var r=[],o=new Vn.MathNode("mtd",[],["mtr-glue"]),i=new Vn.MathNode("mtd",[],["mml-eqn-num"]),a=0;a<t.body.length;a++){for(var s=t.body[a],l=[],u=0;u<s.length;u++)l.push(new Vn.MathNode("mtd",[Di(s[u],n)]));t.tags&&t.tags[a]&&(l.unshift(o),l.push(o),t.leqno?l.unshift(i):l.push(i)),r.push(new Vn.MathNode("mtr",l))}var d=new Vn.MathNode("mtable",r),c=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);d.setAttribute("rowspacing",tr(c));var f="",p="";if(t.cols&&t.cols.length>0){var v=t.cols,h="",g=!1,y=0,m=v.length;v[0].type==="separator"&&(f+="top ",y=1),v[v.length-1].type==="separator"&&(f+="bottom ",m-=1);for(var b=y;b<m;b++)v[b].type==="align"?(p+=Wpt[v[b].align],g&&(h+="none "),g=!0):v[b].type==="separator"&&g&&(h+=v[b].separator==="|"?"solid ":"dashed ",g=!1);d.setAttribute("columnalign",p.trim()),/[sd]/.test(h)&&d.setAttribute("columnlines",h.trim())}if(t.colSeparationType==="align"){for(var w=t.cols||[],A="",S=1;S<w.length;S++)A+=S%2?"0em ":"1em ";d.setAttribute("columnspacing",A.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var E="",D=t.hLinesBeforeRow;f+=D[0].length>0?"left ":"",f+=D[D.length-1].length>0?"right ":"";for(var _=1;_<D.length-1;_++)E+=D[_].length===0?"none ":D[_][0]?"dashed ":"solid ";return/[sd]/.test(E)&&d.setAttribute("rowlines",E.trim()),f!==""&&(d=new Vn.MathNode("menclose",[d]),d.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(d=new Vn.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},W3e=function(t,n){t.envName.indexOf("ed")===-1&&n7(t);var r=[],o=t.envName.indexOf("at")>-1?"alignat":"align",i=t.envName==="split",a=L0(t.parser,{cols:r,addJot:!0,autoTag:i?void 0:cq(t.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),s,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",c=0;c<n[0].body.length;c++){var f=_o(n[0].body[c],"textord");d+=f.text}s=Number(d),l=s*2}var p=!l;a.body.forEach(function(y){for(var m=1;m<y.length;m+=2){var b=_o(y[m],"styling"),w=_o(b.body[0],"ordgroup");w.body.unshift(u)}if(p)l<y.length&&(l=y.length);else{var A=y.length/2;if(s<A)throw new Gn("Too many math in a row: "+("expected "+s+", but got "+A),y[0])}});for(var v=0;v<l;++v){var h="r",g=0;v%2===1?h="l":v>0&&p&&(g=1),r[v]={type:"align",align:h,pregap:g,postgap:0}}return a.colSeparationType=p?"align":"alignat",a};rf({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=JD(t[0]),r=n?[t[0]]:_o(t[0],"ordgroup").body,o=r.map(function(a){var s=iq(a),l=s.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Gn("Unknown column alignment: "+l,a)}),i={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return L0(e.parser,i,dq(e.envName))},htmlBuilder:of,mathmlBuilder:af});rf({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,"lcr".indexOf(n)===-1)throw new Gn("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),r.cols=[{type:"align",align:n}]}}var i=L0(e.parser,r,dq(e.envName)),a=Math.max(0,...i.body.map(s=>s.length));return i.cols=new Array(a).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:of,mathmlBuilder:af});rf({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=L0(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:of,mathmlBuilder:af});rf({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=JD(t[0]),r=n?[t[0]]:_o(t[0],"ordgroup").body,o=r.map(function(a){var s=iq(a),l=s.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Gn("Unknown column alignment: "+l,a)});if(o.length>1)throw new Gn("{subarray} can contain only one column");var i={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=L0(e.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new Gn("{subarray} can contain only one column");return i},htmlBuilder:of,mathmlBuilder:af});rf({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=L0(e.parser,t,dq(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:of,mathmlBuilder:af});rf({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:W3e,htmlBuilder:of,mathmlBuilder:af});rf({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&n7(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:cq(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return L0(e.parser,t,"display")},htmlBuilder:of,mathmlBuilder:af});rf({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:W3e,htmlBuilder:of,mathmlBuilder:af});rf({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){n7(e);var t={autoTag:cq(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return L0(e.parser,t,"display")},htmlBuilder:of,mathmlBuilder:af});rf({type:"array",names:["CD"],props:{numArgs:0},handler(e){return n7(e),Ipt(e.parser)},htmlBuilder:of,mathmlBuilder:af});ut("\\nonumber","\\gdef\\@eqnsw{0}");ut("\\notag","\\nonumber");gr({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Gn(e.funcName+" valid only within array environment")}});var Jre=j3e;gr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];if(o.type!=="ordgroup")throw new Gn("Invalid environment name",o);for(var i="",a=0;a<o.body.length;++a)i+=_o(o.body[a],"textord").text;if(r==="\\begin"){if(!Jre.hasOwnProperty(i))throw new Gn("No such environment: "+i,o);var s=Jre[i],{args:l,optArgs:u}=n.parseArguments("\\begin{"+i+"}",s),d={mode:n.mode,envName:i,parser:n},c=s.handler(d,l,u);n.expect("\\end",!1);var f=n.nextToken,p=_o(n.parseFunction(),"environment");if(p.name!==i)throw new Gn("Mismatch: \\begin{"+i+"} matched by \\end{"+p.name+"}",f);return c}return{type:"environment",mode:n.mode,name:i,nameGroup:o}}});var V3e=(e,t)=>{var n=e.font,r=t.withFont(n);return Jo(e.body,r)},q3e=(e,t)=>{var n=e.font,r=t.withFont(n);return Di(e.body,r)},eoe={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};gr({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=nk(t[0]),i=r;return i in eoe&&(i=eoe[i]),{type:"font",mode:n.mode,font:i.slice(1),body:o}},htmlBuilder:V3e,mathmlBuilder:q3e});gr({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],o=ei.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:e7(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}});gr({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:o}=e,{mode:i}=n,a=n.parseExpression(!0,o),s="math"+r.slice(1);return{type:"font",mode:i,font:s,body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:V3e,mathmlBuilder:q3e});var G3e=(e,t)=>{var n=t;return e==="display"?n=n.id>=Zr.SCRIPT.id?n.text():Zr.DISPLAY:e==="text"&&n.size===Zr.DISPLAY.size?n=Zr.TEXT:e==="script"?n=Zr.SCRIPT:e==="scriptscript"&&(n=Zr.SCRIPTSCRIPT),n},fq=(e,t)=>{var n=G3e(e.size,t.style),r=n.fracNum(),o=n.fracDen(),i;i=t.havingStyle(r);var a=Jo(e.numer,i,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}i=t.havingStyle(o);var u=Jo(e.denom,i,t),d,c,f;e.hasBarLine?(e.barSize?(c=ca(e.barSize,t),d=sn.makeLineSpan("frac-line",t,c)):d=sn.makeLineSpan("frac-line",t),c=d.height,f=d.height):(d=null,c=0,f=t.fontMetrics().defaultRuleThickness);var p,v,h;n.size===Zr.DISPLAY.size||e.size==="display"?(p=t.fontMetrics().num1,c>0?v=3*f:v=7*f,h=t.fontMetrics().denom1):(c>0?(p=t.fontMetrics().num2,v=f):(p=t.fontMetrics().num3,v=3*f),h=t.fontMetrics().denom2);var g;if(d){var m=t.fontMetrics().axisHeight;p-a.depth-(m+.5*c)<v&&(p+=v-(p-a.depth-(m+.5*c))),m-.5*c-(u.height-h)<v&&(h+=v-(m-.5*c-(u.height-h)));var b=-(m-.5*c);g=sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:h},{type:"elem",elem:d,shift:b},{type:"elem",elem:a,shift:-p}]},t)}else{var y=p-a.depth-(u.height-h);y<v&&(p+=.5*(v-y),h+=.5*(v-y)),g=sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:h},{type:"elem",elem:a,shift:-p}]},t)}i=t.havingStyle(n),g.height*=i.sizeMultiplier/t.sizeMultiplier,g.depth*=i.sizeMultiplier/t.sizeMultiplier;var w;n.size===Zr.DISPLAY.size?w=t.fontMetrics().delim1:n.size===Zr.SCRIPTSCRIPT.size?w=t.havingStyle(Zr.SCRIPT).fontMetrics().delim2:w=t.fontMetrics().delim2;var A,S;return e.leftDelim==null?A=CA(t,["mopen"]):A=Wf.customSizedDelim(e.leftDelim,w,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?S=sn.makeSpan([]):e.rightDelim==null?S=CA(t,["mclose"]):S=Wf.customSizedDelim(e.rightDelim,w,!0,t.havingStyle(n),e.mode,["mclose"]),sn.makeSpan(["mord"].concat(i.sizingClasses(t)),[A,sn.makeSpan(["mfrac"],[g]),S],t)},pq=(e,t)=>{var n=new Vn.MathNode("mfrac",[Di(e.numer,t),Di(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=ca(e.barSize,t);n.setAttribute("linethickness",tr(r))}var o=G3e(e.size,t.style);if(o.size!==t.style.size){n=new Vn.MathNode("mstyle",[n]);var i=o.size===Zr.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var s=new Vn.MathNode("mo",[new Vn.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),e.rightDelim!=null){var l=new Vn.MathNode("mo",[new Vn.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return rq(a)}return n};gr({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=t[1],a,s=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,s="(",l=")";break;case"\\\\bracefrac":a=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":a=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:o,denom:i,hasBarLine:a,leftDelim:s,rightDelim:l,size:u,barSize:null}},htmlBuilder:fq,mathmlBuilder:pq});gr({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:o,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});gr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,o;switch(n){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:o,token:r}}});var toe=["display","text","script","scriptscript"],noe=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};gr({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],o=t[5],i=nk(t[0]),a=i.type==="atom"&&i.family==="open"?noe(i.text):null,s=nk(t[1]),l=s.type==="atom"&&s.family==="close"?noe(s.text):null,u=_o(t[2],"size"),d,c=null;u.isBlank?d=!0:(c=u.value,d=c.number>0);var f="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var v=_o(p.body[0],"textord");f=toe[Number(v.text)]}}else p=_o(p,"textord"),f=toe[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:d,barSize:c,leftDelim:a,rightDelim:l,size:f}},htmlBuilder:fq,mathmlBuilder:pq});gr({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:o}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:_o(t[0],"size").value,token:o}}});gr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0],i=wft(_o(t[1],"infix").size),a=t[2],s=i.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:a,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:fq,mathmlBuilder:pq});var K3e=(e,t)=>{var n=t.style,r,o;e.type==="supsub"?(r=e.sup?Jo(e.sup,t.havingStyle(n.sup()),t):Jo(e.sub,t.havingStyle(n.sub()),t),o=_o(e.base,"horizBrace")):o=_o(e,"horizBrace");var i=Jo(o.base,t.havingBaseStyle(Zr.DISPLAY)),a=cp.svgSpan(o,t),s;if(o.isOver?(s=sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:a}]},t),s.children[0].children[0].children[1].classes.push("svg-align")):(s=sn.makeVList({positionType:"bottom",positionData:i.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:i}]},t),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=sn.makeSpan(["mord",o.isOver?"mover":"munder"],[s],t);o.isOver?s=sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):s=sn.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return sn.makeSpan(["mord",o.isOver?"mover":"munder"],[s],t)},Vpt=(e,t)=>{var n=cp.mathMLnode(e.label);return new Vn.MathNode(e.isOver?"mover":"munder",[Di(e.base,t),n])};gr({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:K3e,mathmlBuilder:Vpt});gr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],o=_o(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:_a(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=rs(e.body,t,!1);return sn.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=m0(e.body,t);return n instanceof au||(n=new au("mrow",[n])),n.setAttribute("href",e.href),n}});gr({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=_o(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<r.length;i++){var a=r[i];a==="~"&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:r,body:_a(s)}}});gr({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:_a(t[0])}},htmlBuilder(e,t){var n=rs(e.body,t,!1);return sn.makeFragment(n)},mathmlBuilder(e,t){return new Vn.MathNode("mrow",Xl(e.body,t))}});gr({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:o}=e,i=_o(t[0],"raw").string,a=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=i,s={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,s={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,s={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d<u.length;d++){var c=u[d].split("=");if(c.length!==2)throw new Gn("Error parsing key-value for \\htmlData");l["data-"+c[0].trim()]=c[1].trim()}s={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(s)?{type:"html",mode:n.mode,attributes:l,body:_a(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=rs(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var o=sn.makeSpan(r,n,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&o.setAttribute(i,e.attributes[i]);return o},mathmlBuilder:(e,t)=>m0(e.body,t)});gr({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:_a(t[0]),mathml:_a(t[1])}},htmlBuilder:(e,t)=>{var n=rs(e.html,t,!1);return sn.makeFragment(n)},mathmlBuilder:(e,t)=>m0(e.mathml,t)});var lM=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Gn("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!p3e(r))throw new Gn("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};gr({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,o={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(n[0])for(var l=_o(n[0],"raw").string,u=l.split(","),d=0;d<u.length;d++){var c=u[d].split("=");if(c.length===2){var f=c[1].trim();switch(c[0].trim()){case"alt":s=f;break;case"width":o=lM(f);break;case"height":i=lM(f);break;case"totalheight":a=lM(f);break;default:throw new Gn("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var p=_o(t[0],"url").url;return s===""&&(s=p,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:r.mode,alt:s,width:o,height:i,totalheight:a,src:p}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=ca(e.height,t),r=0;e.totalheight.number>0&&(r=ca(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=ca(e.width,t));var i={height:tr(n+r)};o>0&&(i.width=tr(o)),r>0&&(i.verticalAlign=tr(-r));var a=new Vft(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:(e,t)=>{var n=new Vn.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=ca(e.height,t),o=0;if(e.totalheight.number>0&&(o=ca(e.totalheight,t)-r,n.setAttribute("valign",tr(-o))),n.setAttribute("height",tr(r+o)),e.width.number>0){var i=ca(e.width,t);n.setAttribute("width",tr(i))}return n.setAttribute("src",e.src),n}});gr({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,o=_o(t[0],"size");if(n.settings.strict){var i=r[1]==="m",a=o.value.unit==="mu";i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+o.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder(e,t){return sn.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=ca(e.dimension,t);return new Vn.SpaceNode(n)}});gr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=sn.makeSpan([],[Jo(e.body,t)]),n=sn.makeSpan(["inner"],[n],t)):n=sn.makeSpan(["inner"],[Jo(e.body,t)]);var r=sn.makeSpan(["fix"],[]),o=sn.makeSpan([e.alignment],[n,r],t),i=sn.makeSpan(["strut"]);return i.style.height=tr(o.height+o.depth),o.depth&&(i.style.verticalAlign=tr(-o.depth)),o.children.unshift(i),o=sn.makeSpan(["thinbox"],[o],t),sn.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new Vn.MathNode("mpadded",[Di(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});gr({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,o=r.mode;r.switchMode("math");var i=n==="\\("?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}});gr({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Gn("Mismatched "+e.funcName)}});var roe=(e,t)=>{switch(t.style.size){case Zr.DISPLAY.size:return e.display;case Zr.TEXT.size:return e.text;case Zr.SCRIPT.size:return e.script;case Zr.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};gr({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:_a(t[0]),text:_a(t[1]),script:_a(t[2]),scriptscript:_a(t[3])}},htmlBuilder:(e,t)=>{var n=roe(e,t),r=rs(n,t,!1);return sn.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=roe(e,t);return m0(n,t)}});var Y3e=(e,t,n,r,o,i,a)=>{e=sn.makeSpan([],[e]);var s=n&&ei.isCharacterBox(n),l,u;if(t){var d=Jo(t,r.havingStyle(o.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var c=Jo(n,r.havingStyle(o.sub()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-c.height)}}var f;if(u&&l){var p=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+a;f=sn.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var v=e.height-a;f=sn.makeVList({positionType:"top",positionData:v,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:tr(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var h=e.depth+a;f=sn.makeVList({positionType:"bottom",positionData:h,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:tr(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var g=[f];if(l&&i!==0&&!s){var y=sn.makeSpan(["mspace"],[],r);y.style.marginRight=tr(i),g.unshift(y)}return sn.makeSpan(["mop","op-limits"],g,r)},Q3e=["\\smallint"],Qb=(e,t)=>{var n,r,o=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=_o(e.base,"op"),o=!0):i=_o(e,"op");var a=t.style,s=!1;a.size===Zr.DISPLAY.size&&i.symbol&&!Q3e.includes(i.name)&&(s=!0);var l;if(i.symbol){var u=s?"Size2-Regular":"Size1-Regular",d="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(d=i.name.slice(1),i.name=d==="oiint"?"\\iint":"\\iiint"),l=sn.makeSymbol(i.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),d.length>0){var c=l.italic,f=sn.staticSvg(d+"Size"+(s?"2":"1"),t);l=sn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:s?.08:0}]},t),i.name="\\"+d,l.classes.unshift("mop"),l.italic=c}}else if(i.body){var p=rs(i.body,t,!0);p.length===1&&p[0]instanceof rc?(l=p[0],l.classes[0]="mop"):l=sn.makeSpan(["mop"],p,t)}else{for(var v=[],h=1;h<i.name.length;h++)v.push(sn.mathsym(i.name[h],i.mode,t));l=sn.makeSpan(["mop"],v,t)}var g=0,y=0;return(l instanceof rc||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(g=(l.height-l.depth)/2-t.fontMetrics().axisHeight,y=l.italic),o?Y3e(l,n,r,t,a,y,g):(g&&(l.style.position="relative",l.style.top=tr(g)),l)},rC=(e,t)=>{var n;if(e.symbol)n=new au("mo",[oc(e.name,e.mode)]),Q3e.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new au("mo",Xl(e.body,t));else{n=new au("mi",[new Td(e.name.slice(1))]);var r=new au("mo",[oc("","text")]);e.parentIsSupSub?n=new au("mrow",[n,r]):n=S3e([n,r])}return n},qpt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};gr({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=r;return o.length===1&&(o=qpt[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Qb,mathmlBuilder:rC});gr({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:_a(r)}},htmlBuilder:Qb,mathmlBuilder:rC});var Gpt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};gr({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Qb,mathmlBuilder:rC});gr({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Qb,mathmlBuilder:rC});gr({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Gpt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Qb,mathmlBuilder:rC});var Z3e=(e,t)=>{var n,r,o=!1,i;e.type==="supsub"?(n=e.sup,r=e.sub,i=_o(e.base,"operatorname"),o=!0):i=_o(e,"operatorname");var a;if(i.body.length>0){for(var s=i.body.map(c=>{var f=c.text;return typeof f=="string"?{type:"textord",mode:c.mode,text:f}:c}),l=rs(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var d=l[u];d instanceof rc&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=sn.makeSpan(["mop"],l,t)}else a=sn.makeSpan(["mop"],[],t);return o?Y3e(a,n,r,t,t.style,0,0):a},Kpt=(e,t)=>{for(var n=Xl(e.body,t.withFont("mathrm")),r=!0,o=0;o<n.length;o++){var i=n[o];if(!(i instanceof Vn.SpaceNode))if(i instanceof Vn.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var a=i.children[0];i.children.length===1&&a instanceof Vn.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var s=n.map(d=>d.toText()).join("");n=[new Vn.TextNode(s)]}var l=new Vn.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Vn.MathNode("mo",[oc("","text")]);return e.parentIsSupSub?new Vn.MathNode("mrow",[l,u]):Vn.newDocumentFragment([l,u])};gr({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,o=t[0];return{type:"operatorname",mode:n.mode,body:_a(o),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Z3e,mathmlBuilder:Kpt});ut("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");gm({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?sn.makeFragment(rs(e.body,t,!1)):sn.makeSpan(["mord"],rs(e.body,t,!0),t)},mathmlBuilder(e,t){return m0(e.body,t,!0)}});gr({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Jo(e.body,t.havingCrampedStyle()),r=sn.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return sn.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new Vn.MathNode("mo",[new Vn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Vn.MathNode("mover",[Di(e.body,t),n]);return r.setAttribute("accent","true"),r}});gr({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:_a(r)}},htmlBuilder:(e,t)=>{var n=rs(e.body,t.withPhantom(),!1);return sn.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Xl(e.body,t);return new Vn.MathNode("mphantom",n)}});gr({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=sn.makeSpan([],[Jo(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),sn.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=Xl(_a(e.body),t),r=new Vn.MathNode("mphantom",n),o=new Vn.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}});gr({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=sn.makeSpan(["inner"],[Jo(e.body,t.withPhantom())]),r=sn.makeSpan(["fix"],[]);return sn.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Xl(_a(e.body),t),r=new Vn.MathNode("mphantom",n),o=new Vn.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}});gr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=_o(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder(e,t){var n=Jo(e.body,t),r=ca(e.dy,t);return sn.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Vn.MathNode("mpadded",[Di(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});gr({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});gr({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,o=n[0],i=_o(t[0],"size"),a=_o(t[1],"size");return{type:"rule",mode:r.mode,shift:o&&_o(o,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var n=sn.makeSpan(["mord","rule"],[],t),r=ca(e.width,t),o=ca(e.height,t),i=e.shift?ca(e.shift,t):0;return n.style.borderRightWidth=tr(r),n.style.borderTopWidth=tr(o),n.style.bottom=tr(i),n.width=r,n.height=o+i,n.depth=-i,n.maxFontSize=o*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ca(e.width,t),r=ca(e.height,t),o=e.shift?ca(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new Vn.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",tr(n)),a.setAttribute("height",tr(r));var s=new Vn.MathNode("mpadded",[a]);return o>=0?s.setAttribute("height",tr(o)):(s.setAttribute("height",tr(o)),s.setAttribute("depth",tr(-o))),s.setAttribute("voffset",tr(o)),s}});function X3e(e,t,n){for(var r=rs(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var a=r[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[a+1]==="reset-size"+t.size&&(r[i].classes[a+1]="reset-size"+n.size),r[i].height*=o,r[i].depth*=o}return sn.makeFragment(r)}var ooe=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ypt=(e,t)=>{var n=t.havingSize(e.size);return X3e(e.body,n,t)};gr({type:"sizing",names:ooe,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:o}=e,i=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:ooe.indexOf(r)+1,body:i}},htmlBuilder:Ypt,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Xl(e.body,n),o=new Vn.MathNode("mstyle",r);return o.setAttribute("mathsize",tr(n.sizeMultiplier)),o}});gr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,o=!1,i=!1,a=n[0]&&_o(n[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l){var u=a.body[l];if(s=u.text,s==="t")o=!0;else if(s==="b")i=!0;else{o=!1,i=!1;break}}else o=!0,i=!0;var d=t[0];return{type:"smash",mode:r.mode,body:d,smashHeight:o,smashDepth:i}},htmlBuilder:(e,t)=>{var n=sn.makeSpan([],[Jo(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var i=sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return sn.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Vn.MathNode("mpadded",[Di(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});gr({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,o=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:o}},htmlBuilder(e,t){var n=Jo(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=sn.wrapFragment(n,t);var r=t.fontMetrics(),o=r.defaultRuleThickness,i=o;t.style.id<Zr.TEXT.id&&(i=t.fontMetrics().xHeight);var a=o+i/4,s=n.height+n.depth+a+o,{span:l,ruleWidth:u,advanceWidth:d}=Wf.sqrtImage(s,t),c=l.height-u;c>n.height+n.depth+a&&(a=(a+c-n.height-n.depth)/2);var f=l.height-n.height-a-u;n.style.paddingLeft=tr(d);var p=sn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var v=t.havingStyle(Zr.SCRIPTSCRIPT),h=Jo(e.index,v,t),g=.6*(p.height-p.depth),y=sn.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:h}]},t),m=sn.makeSpan(["root"],[y]);return sn.makeSpan(["mord","sqrt"],[m,p],t)}else return sn.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Vn.MathNode("mroot",[Di(n,t),Di(r,t)]):new Vn.MathNode("msqrt",[Di(n,t)])}});var ioe={display:Zr.DISPLAY,text:Zr.TEXT,script:Zr.SCRIPT,scriptscript:Zr.SCRIPTSCRIPT};gr({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:o}=e,i=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder(e,t){var n=ioe[e.style],r=t.havingStyle(n).withFont("");return X3e(e.body,r,t)},mathmlBuilder(e,t){var n=ioe[e.style],r=t.havingStyle(n),o=Xl(e.body,r),i=new Vn.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=a[e.style];return i.setAttribute("scriptlevel",s[0]),i.setAttribute("displaystyle",s[1]),i}});var Qpt=function(t,n){var r=t.base;if(r)if(r.type==="op"){var o=r.limits&&(n.style.size===Zr.DISPLAY.size||r.alwaysHandleSupSub);return o?Qb:null}else if(r.type==="operatorname"){var i=r.alwaysHandleSupSub&&(n.style.size===Zr.DISPLAY.size||r.limits);return i?Z3e:null}else{if(r.type==="accent")return ei.isCharacterBox(r.base)?aq:null;if(r.type==="horizBrace"){var a=!t.sub;return a===r.isOver?K3e:null}else return null}else return null};gm({type:"supsub",htmlBuilder(e,t){var n=Qpt(e,t);if(n)return n(e,t);var{base:r,sup:o,sub:i}=e,a=Jo(r,t),s,l,u=t.fontMetrics(),d=0,c=0,f=r&&ei.isCharacterBox(r);if(o){var p=t.havingStyle(t.style.sup());s=Jo(o,p,t),f||(d=a.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(i){var v=t.havingStyle(t.style.sub());l=Jo(i,v,t),f||(c=a.depth+v.fontMetrics().subDrop*v.sizeMultiplier/t.sizeMultiplier)}var h;t.style===Zr.DISPLAY?h=u.sup1:t.style.cramped?h=u.sup3:h=u.sup2;var g=t.sizeMultiplier,y=tr(.5/u.ptPerEm/g),m=null;if(l){var b=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(a instanceof rc||b)&&(m=tr(-a.italic))}var w;if(s&&l){d=Math.max(d,h,s.depth+.25*u.xHeight),c=Math.max(c,u.sub2);var A=u.defaultRuleThickness,S=4*A;if(d-s.depth-(l.height-c)<S){c=S-(d-s.depth)+l.height;var E=.8*u.xHeight-(d-s.depth);E>0&&(d+=E,c-=E)}var D=[{type:"elem",elem:l,shift:c,marginRight:y,marginLeft:m},{type:"elem",elem:s,shift:-d,marginRight:y}];w=sn.makeVList({positionType:"individualShift",children:D},t)}else if(l){c=Math.max(c,u.sub1,l.height-.8*u.xHeight);var _=[{type:"elem",elem:l,marginLeft:m,marginRight:y}];w=sn.makeVList({positionType:"shift",positionData:c,children:_},t)}else if(s)d=Math.max(d,h,s.depth+.25*u.xHeight),w=sn.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:s,marginRight:y}]},t);else throw new Error("supsub must have either sup or sub.");var M=LF(a,"right")||"mord";return sn.makeSpan([M],[a,sn.makeSpan(["msupsub"],[w])],t)},mathmlBuilder(e,t){var n=!1,r,o;e.base&&e.base.type==="horizBrace"&&(o=!!e.sup,o===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[Di(e.base,t)];e.sub&&i.push(Di(e.sub,t)),e.sup&&i.push(Di(e.sup,t));var a;if(n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Zr.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Zr.DISPLAY||u.limits)?a="munderover":a="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Zr.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Zr.DISPLAY)?a="munder":a="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Zr.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Zr.DISPLAY)?a="mover":a="msup"}return new Vn.MathNode(a,i)}});gm({type:"atom",htmlBuilder(e,t){return sn.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Vn.MathNode("mo",[oc(e.text,e.mode)]);if(e.family==="bin"){var r=oq(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var J3e={mi:"italic",mn:"normal",mtext:"normal"};gm({type:"mathord",htmlBuilder(e,t){return sn.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Vn.MathNode("mi",[oc(e.text,e.mode,t)]),r=oq(e,t)||"italic";return r!==J3e[n.type]&&n.setAttribute("mathvariant",r),n}});gm({type:"textord",htmlBuilder(e,t){return sn.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=oc(e.text,e.mode,t),r=oq(e,t)||"normal",o;return e.mode==="text"?o=new Vn.MathNode("mtext",[n]):/[0-9]/.test(e.text)?o=new Vn.MathNode("mn",[n]):e.text==="\\prime"?o=new Vn.MathNode("mo",[n]):o=new Vn.MathNode("mi",[n]),r!==J3e[o.type]&&o.setAttribute("mathvariant",r),o}});var uM={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},cM={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};gm({type:"spacing",htmlBuilder(e,t){if(cM.hasOwnProperty(e.text)){var n=cM[e.text].className||"";if(e.mode==="text"){var r=sn.makeOrd(e,t,"textord");return r.classes.push(n),r}else return sn.makeSpan(["mspace",n],[sn.mathsym(e.text,e.mode,t)],t)}else{if(uM.hasOwnProperty(e.text))return sn.makeSpan(["mspace",uM[e.text]],[],t);throw new Gn('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(cM.hasOwnProperty(e.text))n=new Vn.MathNode("mtext",[new Vn.TextNode(" ")]);else{if(uM.hasOwnProperty(e.text))return new Vn.MathNode("mspace");throw new Gn('Unknown type of space "'+e.text+'"')}return n}});var aoe=()=>{var e=new Vn.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};gm({type:"tag",mathmlBuilder(e,t){var n=new Vn.MathNode("mtable",[new Vn.MathNode("mtr",[aoe(),new Vn.MathNode("mtd",[m0(e.body,t)]),aoe(),new Vn.MathNode("mtd",[m0(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var soe={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},loe={"\\textbf":"textbf","\\textmd":"textmd"},Zpt={"\\textit":"textit","\\textup":"textup"},uoe=(e,t)=>{var n=e.font;if(n){if(soe[n])return t.withTextFontFamily(soe[n]);if(loe[n])return t.withTextFontWeight(loe[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Zpt[n])};gr({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,o=t[0];return{type:"text",mode:n.mode,body:_a(o),font:r}},htmlBuilder(e,t){var n=uoe(e,t),r=rs(e.body,n,!0);return sn.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=uoe(e,t);return m0(e.body,n)}});gr({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Jo(e.body,t),r=sn.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=sn.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return sn.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new Vn.MathNode("mo",[new Vn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Vn.MathNode("munder",[Di(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});gr({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Jo(e.body,t),r=t.fontMetrics().axisHeight,o=.5*(n.height-r-(n.depth+r));return sn.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Vn.MathNode("mpadded",[Di(e.body,t)],["vcenter"])}});gr({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Gn("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=coe(e),r=[],o=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var a=n[i];a==="~"&&(a="\\textasciitilde"),r.push(sn.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return sn.makeSpan(["mord","text"].concat(o.sizingClasses(t)),sn.tryCombineChars(r),o)},mathmlBuilder(e,t){var n=new Vn.TextNode(coe(e)),r=new Vn.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var coe=e=>e.body.replace(/ /g,e.star?"␣":" "),Ch=C3e,eAe=`[ \r
- ]`,Xpt="\\\\[a-zA-Z@]+",Jpt="\\\\[^\uD800-\uDFFF]",eht="("+Xpt+")"+eAe+"*",tht=`\\\\(
- |[ \r ]+
- ?)[ \r ]*`,$F="[̀-ͯ]",nht=new RegExp($F+"+$"),rht="("+eAe+"+)|"+(tht+"|")+"([!-\\[\\]-‧-豈-]"+($F+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+($F+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+eht)+("|"+Jpt+")");class doe{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(rht,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new fu("EOF",new Tl(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Gn("Unexpected character: '"+t[n]+"'",new fu(t[n],new Tl(this,n,n+1)));var o=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[o]===14){var i=t.indexOf(`
- `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new fu(o,new Tl(this,n,this.tokenRegex.lastIndex))}}class oht{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Gn("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var iht=H3e;ut("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ut("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ut("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ut("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ut("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ut("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ut("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var foe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ut("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Gn("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=foe[t.text],r==null||r>=n)throw new Gn("Invalid base-"+n+" digit "+t.text);for(var o;(o=foe[e.future().text])!=null&&o<n;)r*=n,r+=o,e.popToken()}return"\\@char{"+r+"}"});var hq=(e,t,n,r)=>{var o=e.consumeArg().tokens;if(o.length!==1)throw new Gn("\\newcommand's first argument must be a macro name");var i=o[0].text,a=e.isDefined(i);if(a&&!t)throw new Gn("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Gn("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(o=e.consumeArg().tokens,o.length===1&&o[0].text==="["){for(var l="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Gn("Invalid number of arguments: "+l);s=parseInt(l),o=e.consumeArg().tokens}return a&&r||e.macros.set(i,{tokens:o,numArgs:s}),""};ut("\\newcommand",e=>hq(e,!1,!0,!1));ut("\\renewcommand",e=>hq(e,!0,!1,!1));ut("\\providecommand",e=>hq(e,!0,!0,!0));ut("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});ut("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});ut("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Ch[n],zi.math[n],zi.text[n]),""});ut("\\bgroup","{");ut("\\egroup","}");ut("~","\\nobreakspace");ut("\\lq","`");ut("\\rq","'");ut("\\aa","\\r a");ut("\\AA","\\r A");ut("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ut("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ut("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ut("ℬ","\\mathscr{B}");ut("ℰ","\\mathscr{E}");ut("ℱ","\\mathscr{F}");ut("ℋ","\\mathscr{H}");ut("ℐ","\\mathscr{I}");ut("ℒ","\\mathscr{L}");ut("ℳ","\\mathscr{M}");ut("ℛ","\\mathscr{R}");ut("ℭ","\\mathfrak{C}");ut("ℌ","\\mathfrak{H}");ut("ℨ","\\mathfrak{Z}");ut("\\Bbbk","\\Bbb{k}");ut("·","\\cdotp");ut("\\llap","\\mathllap{\\textrm{#1}}");ut("\\rlap","\\mathrlap{\\textrm{#1}}");ut("\\clap","\\mathclap{\\textrm{#1}}");ut("\\mathstrut","\\vphantom{(}");ut("\\underbar","\\underline{\\text{#1}}");ut("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ut("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ut("\\ne","\\neq");ut("≠","\\neq");ut("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ut("∉","\\notin");ut("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ut("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ut("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ut("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ut("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ut("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ut("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ut("⟂","\\perp");ut("‼","\\mathclose{!\\mkern-0.8mu!}");ut("∌","\\notni");ut("⌜","\\ulcorner");ut("⌝","\\urcorner");ut("⌞","\\llcorner");ut("⌟","\\lrcorner");ut("©","\\copyright");ut("®","\\textregistered");ut("️","\\textregistered");ut("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ut("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ut("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ut("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ut("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");ut("⋮","\\vdots");ut("\\varGamma","\\mathit{\\Gamma}");ut("\\varDelta","\\mathit{\\Delta}");ut("\\varTheta","\\mathit{\\Theta}");ut("\\varLambda","\\mathit{\\Lambda}");ut("\\varXi","\\mathit{\\Xi}");ut("\\varPi","\\mathit{\\Pi}");ut("\\varSigma","\\mathit{\\Sigma}");ut("\\varUpsilon","\\mathit{\\Upsilon}");ut("\\varPhi","\\mathit{\\Phi}");ut("\\varPsi","\\mathit{\\Psi}");ut("\\varOmega","\\mathit{\\Omega}");ut("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ut("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ut("\\boxed","\\fbox{$\\displaystyle{#1}$}");ut("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ut("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ut("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");ut("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");ut("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var poe={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ut("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in poe?t=poe[n]:(n.slice(0,4)==="\\not"||n in zi.math&&["bin","rel"].includes(zi.math[n].group))&&(t="\\dotsb"),t});var gq={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ut("\\dotso",function(e){var t=e.future().text;return t in gq?"\\ldots\\,":"\\ldots"});ut("\\dotsc",function(e){var t=e.future().text;return t in gq&&t!==","?"\\ldots\\,":"\\ldots"});ut("\\cdots",function(e){var t=e.future().text;return t in gq?"\\@cdots\\,":"\\@cdots"});ut("\\dotsb","\\cdots");ut("\\dotsm","\\cdots");ut("\\dotsi","\\!\\cdots");ut("\\dotsx","\\ldots\\,");ut("\\DOTSI","\\relax");ut("\\DOTSB","\\relax");ut("\\DOTSX","\\relax");ut("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ut("\\,","\\tmspace+{3mu}{.1667em}");ut("\\thinspace","\\,");ut("\\>","\\mskip{4mu}");ut("\\:","\\tmspace+{4mu}{.2222em}");ut("\\medspace","\\:");ut("\\;","\\tmspace+{5mu}{.2777em}");ut("\\thickspace","\\;");ut("\\!","\\tmspace-{3mu}{.1667em}");ut("\\negthinspace","\\!");ut("\\negmedspace","\\tmspace-{4mu}{.2222em}");ut("\\negthickspace","\\tmspace-{5mu}{.277em}");ut("\\enspace","\\kern.5em ");ut("\\enskip","\\hskip.5em\\relax");ut("\\quad","\\hskip1em\\relax");ut("\\qquad","\\hskip2em\\relax");ut("\\tag","\\@ifstar\\tag@literal\\tag@paren");ut("\\tag@paren","\\tag@literal{({#1})}");ut("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Gn("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ut("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ut("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ut("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ut("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ut("\\newline","\\\\\\relax");ut("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var tAe=tr(kd["Main-Regular"][84][1]-.7*kd["Main-Regular"][65][1]);ut("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+tAe+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ut("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+tAe+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ut("\\hspace","\\@ifstar\\@hspacer\\@hspace");ut("\\@hspace","\\hskip #1\\relax");ut("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ut("\\ordinarycolon",":");ut("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ut("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ut("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ut("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ut("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ut("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ut("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ut("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ut("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ut("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ut("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ut("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ut("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ut("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ut("∷","\\dblcolon");ut("∹","\\eqcolon");ut("≔","\\coloneqq");ut("≕","\\eqqcolon");ut("⩴","\\Coloneqq");ut("\\ratio","\\vcentcolon");ut("\\coloncolon","\\dblcolon");ut("\\colonequals","\\coloneqq");ut("\\coloncolonequals","\\Coloneqq");ut("\\equalscolon","\\eqqcolon");ut("\\equalscoloncolon","\\Eqqcolon");ut("\\colonminus","\\coloneq");ut("\\coloncolonminus","\\Coloneq");ut("\\minuscolon","\\eqcolon");ut("\\minuscoloncolon","\\Eqcolon");ut("\\coloncolonapprox","\\Colonapprox");ut("\\coloncolonsim","\\Colonsim");ut("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ut("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ut("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ut("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ut("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ut("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ut("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ut("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ut("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ut("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ut("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ut("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ut("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ut("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ut("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ut("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ut("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ut("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ut("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ut("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ut("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ut("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ut("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ut("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ut("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ut("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ut("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ut("\\imath","\\html@mathml{\\@imath}{ı}");ut("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ut("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ut("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ut("⟦","\\llbracket");ut("⟧","\\rrbracket");ut("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ut("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ut("⦃","\\lBrace");ut("⦄","\\rBrace");ut("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ut("⦵","\\minuso");ut("\\darr","\\downarrow");ut("\\dArr","\\Downarrow");ut("\\Darr","\\Downarrow");ut("\\lang","\\langle");ut("\\rang","\\rangle");ut("\\uarr","\\uparrow");ut("\\uArr","\\Uparrow");ut("\\Uarr","\\Uparrow");ut("\\N","\\mathbb{N}");ut("\\R","\\mathbb{R}");ut("\\Z","\\mathbb{Z}");ut("\\alef","\\aleph");ut("\\alefsym","\\aleph");ut("\\Alpha","\\mathrm{A}");ut("\\Beta","\\mathrm{B}");ut("\\bull","\\bullet");ut("\\Chi","\\mathrm{X}");ut("\\clubs","\\clubsuit");ut("\\cnums","\\mathbb{C}");ut("\\Complex","\\mathbb{C}");ut("\\Dagger","\\ddagger");ut("\\diamonds","\\diamondsuit");ut("\\empty","\\emptyset");ut("\\Epsilon","\\mathrm{E}");ut("\\Eta","\\mathrm{H}");ut("\\exist","\\exists");ut("\\harr","\\leftrightarrow");ut("\\hArr","\\Leftrightarrow");ut("\\Harr","\\Leftrightarrow");ut("\\hearts","\\heartsuit");ut("\\image","\\Im");ut("\\infin","\\infty");ut("\\Iota","\\mathrm{I}");ut("\\isin","\\in");ut("\\Kappa","\\mathrm{K}");ut("\\larr","\\leftarrow");ut("\\lArr","\\Leftarrow");ut("\\Larr","\\Leftarrow");ut("\\lrarr","\\leftrightarrow");ut("\\lrArr","\\Leftrightarrow");ut("\\Lrarr","\\Leftrightarrow");ut("\\Mu","\\mathrm{M}");ut("\\natnums","\\mathbb{N}");ut("\\Nu","\\mathrm{N}");ut("\\Omicron","\\mathrm{O}");ut("\\plusmn","\\pm");ut("\\rarr","\\rightarrow");ut("\\rArr","\\Rightarrow");ut("\\Rarr","\\Rightarrow");ut("\\real","\\Re");ut("\\reals","\\mathbb{R}");ut("\\Reals","\\mathbb{R}");ut("\\Rho","\\mathrm{P}");ut("\\sdot","\\cdot");ut("\\sect","\\S");ut("\\spades","\\spadesuit");ut("\\sub","\\subset");ut("\\sube","\\subseteq");ut("\\supe","\\supseteq");ut("\\Tau","\\mathrm{T}");ut("\\thetasym","\\vartheta");ut("\\weierp","\\wp");ut("\\Zeta","\\mathrm{Z}");ut("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ut("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ut("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ut("\\bra","\\mathinner{\\langle{#1}|}");ut("\\ket","\\mathinner{|{#1}\\rangle}");ut("\\braket","\\mathinner{\\langle{#1}\\rangle}");ut("\\Bra","\\left\\langle#1\\right|");ut("\\Ket","\\left|#1\\right\\rangle");var nAe=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=c=>f=>{e&&(f.macros.set("|",a),o.length&&f.macros.set("\\|",s));var p=c;if(!c&&o.length){var v=f.future();v.text==="|"&&(f.popToken(),p=!0)}return{tokens:p?o:r,numArgs:0}};t.macros.set("|",l(!1)),o.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...i,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};ut("\\bra@ket",nAe(!1));ut("\\bra@set",nAe(!0));ut("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ut("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ut("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ut("\\angln","{\\angl n}");ut("\\blue","\\textcolor{##6495ed}{#1}");ut("\\orange","\\textcolor{##ffa500}{#1}");ut("\\pink","\\textcolor{##ff00af}{#1}");ut("\\red","\\textcolor{##df0030}{#1}");ut("\\green","\\textcolor{##28ae7b}{#1}");ut("\\gray","\\textcolor{gray}{#1}");ut("\\purple","\\textcolor{##9d38bd}{#1}");ut("\\blueA","\\textcolor{##ccfaff}{#1}");ut("\\blueB","\\textcolor{##80f6ff}{#1}");ut("\\blueC","\\textcolor{##63d9ea}{#1}");ut("\\blueD","\\textcolor{##11accd}{#1}");ut("\\blueE","\\textcolor{##0c7f99}{#1}");ut("\\tealA","\\textcolor{##94fff5}{#1}");ut("\\tealB","\\textcolor{##26edd5}{#1}");ut("\\tealC","\\textcolor{##01d1c1}{#1}");ut("\\tealD","\\textcolor{##01a995}{#1}");ut("\\tealE","\\textcolor{##208170}{#1}");ut("\\greenA","\\textcolor{##b6ffb0}{#1}");ut("\\greenB","\\textcolor{##8af281}{#1}");ut("\\greenC","\\textcolor{##74cf70}{#1}");ut("\\greenD","\\textcolor{##1fab54}{#1}");ut("\\greenE","\\textcolor{##0d923f}{#1}");ut("\\goldA","\\textcolor{##ffd0a9}{#1}");ut("\\goldB","\\textcolor{##ffbb71}{#1}");ut("\\goldC","\\textcolor{##ff9c39}{#1}");ut("\\goldD","\\textcolor{##e07d10}{#1}");ut("\\goldE","\\textcolor{##a75a05}{#1}");ut("\\redA","\\textcolor{##fca9a9}{#1}");ut("\\redB","\\textcolor{##ff8482}{#1}");ut("\\redC","\\textcolor{##f9685d}{#1}");ut("\\redD","\\textcolor{##e84d39}{#1}");ut("\\redE","\\textcolor{##bc2612}{#1}");ut("\\maroonA","\\textcolor{##ffbde0}{#1}");ut("\\maroonB","\\textcolor{##ff92c6}{#1}");ut("\\maroonC","\\textcolor{##ed5fa6}{#1}");ut("\\maroonD","\\textcolor{##ca337c}{#1}");ut("\\maroonE","\\textcolor{##9e034e}{#1}");ut("\\purpleA","\\textcolor{##ddd7ff}{#1}");ut("\\purpleB","\\textcolor{##c6b9fc}{#1}");ut("\\purpleC","\\textcolor{##aa87ff}{#1}");ut("\\purpleD","\\textcolor{##7854ab}{#1}");ut("\\purpleE","\\textcolor{##543b78}{#1}");ut("\\mintA","\\textcolor{##f5f9e8}{#1}");ut("\\mintB","\\textcolor{##edf2df}{#1}");ut("\\mintC","\\textcolor{##e0e5cc}{#1}");ut("\\grayA","\\textcolor{##f6f7f7}{#1}");ut("\\grayB","\\textcolor{##f0f1f2}{#1}");ut("\\grayC","\\textcolor{##e3e5e6}{#1}");ut("\\grayD","\\textcolor{##d6d8da}{#1}");ut("\\grayE","\\textcolor{##babec2}{#1}");ut("\\grayF","\\textcolor{##888d93}{#1}");ut("\\grayG","\\textcolor{##626569}{#1}");ut("\\grayH","\\textcolor{##3b3e40}{#1}");ut("\\grayI","\\textcolor{##21242c}{#1}");ut("\\kaBlue","\\textcolor{##314453}{#1}");ut("\\kaGreen","\\textcolor{##71B307}{#1}");var rAe={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class aht{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new oht(iht,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new doe(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,o;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:o,end:r}=this.consumeArg(["]"])}else({tokens:o,start:n,end:r}=this.consumeArg());return this.pushToken(new fu("EOF",r.loc)),this.pushTokens(o),new fu("",Tl.range(n,r))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var o=this.future(),i,a=0,s=0;do{if(i=this.popToken(),n.push(i),i.text==="{")++a;else if(i.text==="}"){if(--a,a===-1)throw new Gn("Extra }",i)}else if(i.text==="EOF")throw new Gn("Unexpected end of input in a macro argument, expected '"+(t&&r?t[s]:"}")+"'",i);if(t&&r)if((a===0||a===1&&t[s]==="{")&&i.text===t[s]){if(++s,s===t.length){n.splice(-s,s);break}}else s=0}while(a!==0||r);return o.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:o,end:i}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Gn("The length of delimiters doesn't match the number of args!");for(var r=n[0],o=0;o<r.length;o++){var i=this.popToken();if(r[o]!==i.text)throw new Gn("Use of the macro doesn't match its definition",i)}}for(var a=[],s=0;s<t;s++)a.push(this.consumeArg(n&&n[s+1]).tokens);return a}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Gn("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,o=n.noexpand?null:this._getExpansion(r);if(o==null||t&&o.unexpandable){if(t&&o==null&&r[0]==="\\"&&!this.isDefined(r))throw new Gn("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var i=o.tokens,a=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){i=i.slice();for(var s=i.length-1;s>=0;--s){var l=i[s];if(l.text==="#"){if(s===0)throw new Gn("Incomplete placeholder at end of macro body",l);if(l=i[--s],l.text==="#")i.splice(s+1,1);else if(/^[1-9]$/.test(l.text))i.splice(s,2,...a[+l.text-1]);else throw new Gn("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new fu(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var o=this.stack.pop();o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),n.push(o)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var o=typeof n=="function"?n(this):n;if(typeof o=="string"){var i=0;if(o.indexOf("#")!==-1)for(var a=o.replace(/##/g,"");a.indexOf("#"+(i+1))!==-1;)++i;for(var s=new doe(o,this.settings),l=[],u=s.lex();u.text!=="EOF";)l.push(u),u=s.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return o}isDefined(t){return this.macros.has(t)||Ch.hasOwnProperty(t)||zi.math.hasOwnProperty(t)||zi.text.hasOwnProperty(t)||rAe.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Ch.hasOwnProperty(t)&&!Ch[t].primitive}}var hoe=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,n6=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),dM={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},goe={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class r7{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new aht(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Gn("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new fu("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var o=this.fetch();if(r7.endOfExpression.indexOf(o.text)!==-1||n&&o.text===n||t&&Ch[o.text]&&Ch[o.text].infix)break;var i=this.parseAtom(n);if(i){if(i.type==="internal")continue}else break;r.push(i)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,o=0;o<t.length;o++)if(t[o].type==="infix"){if(n!==-1)throw new Gn("only one infix operator per group",t[o].token);n=o,r=t[o].replaceWith}if(n!==-1&&r){var i,a,s=t.slice(0,n),l=t.slice(n+1);s.length===1&&s[0].type==="ordgroup"?i=s[0]:i={type:"ordgroup",mode:this.mode,body:s},l.length===1&&l[0].type==="ordgroup"?a=l[0]:a={type:"ordgroup",mode:this.mode,body:l};var u;return r==="\\\\abovefrac"?u=this.callFunction(r,[i,t[n],a],[]):u=this.callFunction(r,[i,a],[]),[u]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var o;do{var i;o=this.parseGroup(t)}while(((i=o)==null?void 0:i.type)==="internal");if(!o)throw new Gn("Expected group after '"+r+"'",n);return o}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var o={type:"text",mode:this.mode,body:n},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]};return i}parseAtom(t){var n=this.parseGroup("atom",t);if(n?.type==="internal"||this.mode==="text")return n;for(var r,o;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(n&&n.type==="op"){var a=i.text==="\\limits";n.limits=a,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=i.text==="\\limits");else throw new Gn("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(r)throw new Gn("Double superscript",i);r=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(o)throw new Gn("Double subscript",i);o=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(r)throw new Gn("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();this.fetch().text==="'";)l.push(s),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:l}}else if(n6[i.text]){var u=hoe.test(i.text),d=[];for(d.push(new fu(n6[i.text])),this.consume();;){var c=this.fetch().text;if(!n6[c]||hoe.test(c)!==u)break;d.unshift(new fu(n6[c])),this.consume()}var f=this.subparse(d);u?o={type:"ordgroup",mode:"math",body:f}:r={type:"ordgroup",mode:"math",body:f}}else break}return r||o?{type:"supsub",mode:this.mode,base:n,sup:r,sub:o}:n}parseFunction(t,n){var r=this.fetch(),o=r.text,i=Ch[o];if(!i)return null;if(this.consume(),n&&n!=="atom"&&!i.allowedInArgument)throw new Gn("Got function '"+o+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!i.allowedInText)throw new Gn("Can't use function '"+o+"' in text mode",r);if(this.mode==="math"&&i.allowedInMath===!1)throw new Gn("Can't use function '"+o+"' in math mode",r);var{args:a,optArgs:s}=this.parseArguments(o,i);return this.callFunction(o,a,s,r,t)}callFunction(t,n,r,o,i){var a={funcName:t,parser:this,token:o,breakOnTokenText:i},s=Ch[t];if(s&&s.handler)return s.handler(a,n,r);throw new Gn("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var o=[],i=[],a=0;a<r;a++){var s=n.argTypes&&n.argTypes[a],l=a<n.numOptionalArgs;(n.primitive&&s==null||n.type==="sqrt"&&a===1&&i[0]==null)&&(s="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",s,l);if(l)i.push(u);else if(u!=null)o.push(u);else throw new Gn("Null argument, please report this as a bug")}return{args:o,optArgs:i}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var o=this.parseArgumentGroup(r,"text");return o!=null?{type:"styling",mode:o.mode,body:[o],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",r);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(r)throw new Gn("A primitive argument cannot be optional");var a=this.parseGroup(t);if(a==null)throw new Gn("Expected group as "+t,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Gn("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var o="",i;(i=this.fetch()).text!=="EOF";)o+=i.text,this.consume();return this.consume(),r.text=o,r}parseRegexGroup(t,n){for(var r=this.fetch(),o=r,i="",a;(a=this.fetch()).text!=="EOF"&&t.test(i+a.text);)o=a,i+=o.text,this.consume();if(i==="")throw new Gn("Invalid "+n+": '"+r.text+"'",r);return r.range(o,i)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new Gn("Invalid color: '"+n.text+"'",n);var o=r[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}}parseSizeGroup(t){var n,r=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",r=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!o)throw new Gn("Invalid size: '"+n.text+"'",n);var i={number:+(o[1]+o[2]),unit:o[3]};if(!p3e(i))throw new Gn("Invalid unit: '"+i.unit+"'",n);return{type:"size",mode:this.mode,value:i,isBlank:r}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var o=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:r.loc,body:i};return n&&this.switchMode(o),a}parseGroup(t,n){var r=this.fetch(),o=r.text,i;if(o==="{"||o==="\\begingroup"){this.consume();var a=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,a),l=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:Tl.range(r,l),body:s,semisimple:o==="\\begingroup"||void 0}}else if(i=this.parseFunction(n,t)||this.parseSymbol(),i==null&&o[0]==="\\"&&!rAe.hasOwnProperty(o)){if(this.settings.throwOnError)throw new Gn("Undefined control sequence: "+o,r);i=this.formatUnsupportedCmd(o),this.consume()}return i}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var o=t[r],i=o.text;i==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:Tl.range(o,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:Tl.range(o,t[r+1]),text:"--"}),n-=1)),(i==="'"||i==="`")&&t[r+1].text===i&&(t.splice(r,2,{type:"textord",mode:"text",loc:Tl.range(o,t[r+1]),text:i+i}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),o=r.charAt(0)==="*";if(o&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Gn(`\\verb assertion failed --
- please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:o}}goe.hasOwnProperty(n[0])&&!zi[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=goe[n[0]]+n.slice(1));var i=nht.exec(n);i&&(n=n.substring(0,i.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var a;if(zi[this.mode][n]){this.settings.strict&&this.mode==="math"&&BF.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var s=zi[this.mode][n].group,l=Tl.range(t),u;if(Kft.hasOwnProperty(s)){var d=s;u={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else u={type:s,mode:this.mode,loc:l,text:n};a=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(f3e(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),a={type:"textord",mode:"text",loc:Tl.range(t),text:n};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var f=i[0][c];if(!dM[f])throw new Gn("Unknown accent ' "+f+"'",t);var p=dM[f][this.mode]||dM[f].text;if(!p)throw new Gn("Accent "+f+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:Tl.range(t),label:p,isStretchy:!1,isShifty:!0,base:a}}return a}}r7.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var vq=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new r7(t,n);delete r.gullet.macros.current["\\df@tag"];var o=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Gn("\\tag works only in display equations");o=[{type:"tag",mode:"text",body:o,tag:r.subparse([new fu("\\df@tag")])}]}return o},oAe=function(t,n,r){n.textContent="";var o=mq(t,r).toNode();n.appendChild(o)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),oAe=function(){throw new Gn("KaTeX doesn't work in quirks mode.")});var sht=function(t,n){var r=mq(t,n).toMarkup();return r},lht=function(t,n){var r=new XV(n);return vq(t,r)},iAe=function(t,n,r){if(r.throwOnError||!(t instanceof Gn))throw t;var o=sn.makeSpan(["katex-error"],[new rc(n)]);return o.setAttribute("title",t.toString()),o.setAttribute("style","color:"+r.errorColor),o},mq=function(t,n){var r=new XV(n);try{var o=vq(t,r);return mpt(o,t,r)}catch(i){return iAe(i,t,r)}},uht=function(t,n){var r=new XV(n);try{var o=vq(t,r);return ypt(o,t,r)}catch(i){return iAe(i,t,r)}},cht="0.16.25",dht={Span:nC,Anchor:tq,SymbolNode:rc,SvgNode:lp,PathNode:v0,LineNode:RF},fht={version:cht,render:oAe,renderToString:sht,ParseError:Gn,SETTINGS_SCHEMA:v8,__parse:lht,__renderToDomTree:mq,__renderToHTMLTree:uht,__setFontMetrics:zft,__defineSymbol:ge,__defineFunction:gr,__defineMacro:ut,__domTree:dht};const r6=(e,t=!1)=>{try{return fht.renderToString(e,{displayMode:t,throwOnError:!1,output:"html",strict:!1,trust:!1,macros:{"\\RR":"\\mathbb{R}","\\NN":"\\mathbb{N}","\\ZZ":"\\mathbb{Z}","\\QQ":"\\mathbb{Q}","\\CC":"\\mathbb{C}"}})}catch(n){return console.error("KaTeX 渲染错误:",n),`<span class="katex-error" style="color: red;">${e}</span>`}},pht=e=>{if(!e)return e;let t=e;return t=t.replace(/\$\$([\s\S]+?)\$\$/g,(n,r)=>{const o=r.trim();return`<div class="katex-block-wrapper">${r6(o,!0)}</div>`}),t=t.replace(new RegExp('(?<!<div class="katex-block-wrapper">.*)\\$([^\\$\\n]+?)\\$(?!.*<\\/div>)',"g"),(n,r)=>{const o=r.trim();return`<span class="katex-inline-wrapper">${r6(o,!1)}</span>`}),t=t.replace(/\\\((.+?)\\\)/g,(n,r)=>{const o=r.trim();return`<span class="katex-inline-wrapper">${r6(o,!1)}</span>`}),t=t.replace(/\\\[([\s\S]+?)\\\]/g,(n,r)=>{const o=r.trim();return`<div class="katex-block-wrapper">${r6(o,!0)}</div>`}),t},hht={link(e){let t,n,r;typeof e=="object"&&e!==null?(t=e.href||e.url||"#",n=e.text||e.title||t,r=e.title||t):(t=arguments[0]||"#",n=arguments[2]||arguments[1]||t,r=arguments[1]||t),t=String(t),n=String(n),r=String(r);const o=c=>c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),i=o(t),a=o(n),s=o(r),l=`
- display: inline-flex;
- align-items: center;
- gap: 4px;
- background-color: #E8EAED;
- color: #5F6368;
- font-size: 13px;
- padding: 4px 10px;
- border-radius: 12px;
- cursor: pointer;
- margin: 0 4px;
- border: 1px solid #DADCE0;
- font-weight: 500;
- transition: all 0.2s ease;
- line-height: 1.4;
- max-width: 300px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- vertical-align: middle;
- text-decoration: none;
- `.replace(/\s+/g," ").trim();return`<a
- href="${i}"
- class="link-capsule"
- data-link="${i}"
- style="${l}"
- onmouseover="
- this.style.backgroundColor='#D2D4D8';
- this.style.borderColor='#BABDBF';
- this.style.boxShadow='0 1px 3px rgba(0, 0, 0, 0.1)';
- "
- onmouseout="
- this.style.backgroundColor='#E8EAED';
- this.style.borderColor='#DADCE0';
- this.style.boxShadow='none';
- "
- title="${s}"
- ><span style="font-size: 12px;">🔗</span><span>${a}</span></a>`}};ui.use({renderer:hht,breaks:!0,gfm:!0,headerIds:!1,mangle:!1});const Mg=e=>{if(!e)return"";try{let t=String(e);t=pht(t);const n=ui.parse(t);return fft.sanitize(n,{ALLOWED_TAGS:["h1","h2","h3","h4","h5","h6","p","br","hr","strong","em","u","s","code","pre","ul","ol","li","blockquote","a","table","thead","tbody","tr","th","td","div","span","math","semantics","mrow","mi","mn","mo","mfrac","msup","msub","msubsup","mtext","mspace","annotation","menclose","mover","munder","munderover","mtable","mtr","mtd","msqrt","mroot","mpadded","mphantom","mglyph","svg","path","line","rect","circle","use","g","defs","symbol","foreignObject"],ALLOWED_ATTR:["href","target","rel","class","style","xmlns","aria-hidden","focusable","viewBox","width","height","preserveAspectRatio","encoding","x","y","dx","dy","d","fill","stroke","stroke-width","transform","mathvariant","stretchy","symmetric","largeop","movablelimits","form","id","data-*","xmlns:xlink","xlink:href"],ALLOW_DATA_ATTR:!0})}catch(t){return console.error("Markdown 渲染失败:",t),String(e).replace(/\n/g,"<br>")}},ght={class:"category-section"},vht={class:"category-info"},mht={class:"category-name"},yht={__name:"CategoryTitle",props:{category:{type:String,required:!0},number:{type:String,required:!0},count:{type:Number,required:!0}},emits:["toggle"],setup(e,{emit:t}){const n=e,r=t,o=K(!0),i=()=>{o.value=!o.value,r("toggle",{category:n.category,expanded:o.value})};return qn(()=>{r("toggle",{category:n.category,expanded:!0})}),(a,s)=>{const l=hr("el-icon"),u=hr("el-tag");return L(),G("div",ght,[x("div",{class:"category-header",onClick:i},[x("div",vht,[He(l,{class:oe(["expand-icon",{expanded:o.value}])},{default:rt(()=>[He(C(Da))]),_:1},8,["class"]),x("span",mht,je(e.category),1)]),He(u,{type:"info",size:"small",class:"count-tag"},{default:rt(()=>[bn(je(e.count)+"个文件",1)]),_:1})])])}}},aAe=Zo(yht,[["__scopeId","data-v-f9d29125"]]),bht=["innerHTML"],wht={__name:"StreamMarkdown",props:{content:{type:String,default:""},streaming:{type:Boolean,default:!1},typewriterSpeed:{type:Number,default:10}},setup(e){const t=e,n=K(""),r=K(""),o=K(0);let i=null;const a=()=>{if(o.value<r.value.length){const l=Math.max(1,Math.floor(t.typewriterSpeed/30));o.value=Math.min(o.value+l,r.value.length);const u=r.value.substring(0,o.value);n.value=Mg(u),i=setTimeout(a,1e3/30)}else n.value=Mg(r.value)},s=()=>{i&&(clearTimeout(i),i=null)};return St(()=>t.content,l=>{r.value=l,t.streaming&&l.length>o.value?i||a():t.streaming||(s(),o.value=l.length,n.value=Mg(l))},{immediate:!0}),St(()=>t.streaming,l=>{l||(s(),o.value=r.value.length,n.value=Mg(r.value))}),qn(()=>{t.content&&(r.value=t.content,t.streaming?a():n.value=Mg(t.content))}),yl(()=>{s()}),(l,u)=>(L(),G("div",{class:"stream-markdown",innerHTML:n.value},null,8,bht))}},py=Zo(wht,[["__scopeId","data-v-b4cf4942"]]),Aht={class:"card-header"},Cht={class:"file-info"},xht={class:"file-details"},Sht={class:"file-name"},Eht={class:"file-meta"},kht={class:"link-text"},Tht={class:"actions"},_ht={class:"report-content"},Dht={key:0,class:"error-message"},Iht={key:1},Oht={class:"report-section"},Mht={class:"section-content"},Pht={class:"report-section"},Nht={class:"section-content"},Rht={key:0,class:"report-section"},Bht={class:"section-content"},Lht={class:"iframe-container"},Fht=["src"],Uht={key:1,class:"iframe-error"},zht={__name:"FileReportCard",props:{report:{type:Object,required:!0}},emits:["preview-file"],setup(e,{emit:t}){const n=e,r=t,o=K(!1),i=K(""),a=K(""),s=K(!0),l=K(!0),u=K(!0),d=ee(()=>({"status-processing":n.report.status==="processing","status-completed":n.report.status==="completed","status-error":n.report.status==="error"})),c=ee(()=>{console.log("🔗 [DEBUG] FileReportCard report对象:",{file_index:n.report.file_index,source_file:n.report.source_file,file_path:n.report.file_path,metadata:n.report.metadata,完整report:n.report});const y=n.report.metadata?.source_url||n.report.metadata?.url||n.report.metadata?.link||n.report.metadata?.file_url||n.report.source_url||n.report.url||n.report.link||null;return console.log("🔗 [DEBUG] 找到的URL:",y),y}),f=y=>{if(!y)return"";try{return new URL(y).hostname}catch{return"查看来源"}},p=()=>{c.value&&(i.value=K4e(c.value),a.value=n.report.report?.display_name||n.report.source_file||"文件预览",o.value=!0,console.log("📄 [来源链接预览] 原始URL:",c.value),console.log("📄 [来源链接预览] 转换后URL:",i.value))},v=()=>{if(n.report.file_path){const y=n.report.report?.display_name||n.report.source_file||"未命名文件";r("preview-file",{filePath:n.report.file_path,fileName:y})}},h=async()=>{const y=`
- 文件名: ${n.report.source_file}
- 主要分类: ${n.report.metadata?.primary_category||"未分类"}
- 场景分类: ${n.report.metadata?.secondary_category||"未分类"}
- 相似度: ${(n.report.similarity*100).toFixed(1)}%
- 🔹文件分析总述
- ${n.report.report?.summary||""}
- 🔹文件内容解读
- ${n.report.report?.analysis||""}
- ${n.report.report?.clauses?`🔹相关条款提取
- `+n.report.report.clauses:""}
- `.trim();try{await navigator.clipboard.writeText(y),Et.success("报告已复制到剪贴板")}catch{Et.error("复制失败")}},g=()=>{i.value&&window.open(i.value,"_blank")};return(y,m)=>{const b=hr("el-icon"),w=hr("el-tag"),A=hr("el-button"),S=hr("el-tooltip"),E=hr("el-alert"),D=hr("el-card");return L(),yt(D,{class:oe(["file-report-card",d.value]),shadow:"hover"},{header:rt(()=>[x("div",Aht,[x("div",Cht,[He(b,{class:"file-icon"},{default:rt(()=>[He(C(Py))]),_:1}),x("div",xht,[x("div",Sht,je(e.report.report.display_name||e.report.source_file),1),x("div",Eht,[He(w,{size:"small",type:"info"},{default:rt(()=>[bn(" 文件 "+je(e.report.file_index)+"/"+je(e.report.total_files),1)]),_:1}),e.report.metadata?.primary_category?(L(),yt(w,{key:0,size:"small",type:"success"},{default:rt(()=>[bn(je(e.report.metadata.primary_category),1)]),_:1})):xe("",!0),e.report.metadata?.secondary_category?(L(),yt(w,{key:1,size:"small"},{default:rt(()=>[bn(je(e.report.metadata.secondary_category),1)]),_:1})):xe("",!0)]),c.value?(L(),G("div",{key:0,class:"file-source-link",onClick:p},[He(b,{class:"link-icon"},{default:rt(()=>[He(C(r1e))]),_:1}),x("span",kht,je(f(c.value)),1)])):xe("",!0)])]),x("div",Tht,[e.report.file_path?(L(),yt(S,{key:0,content:"查看文件",placement:"top"},{default:rt(()=>[He(A,{link:"",type:"primary",onClick:v},{default:rt(()=>[He(b,null,{default:rt(()=>[He(C(a1e))]),_:1})]),_:1})]),_:1})):xe("",!0),He(S,{content:"复制报告",placement:"top"},{default:rt(()=>[He(A,{link:"",type:"primary",onClick:h},{default:rt(()=>[He(b,null,{default:rt(()=>[He(C(JBe))]),_:1})]),_:1})]),_:1})])])]),default:rt(()=>[x("div",_ht,[e.report.status==="error"?(L(),G("div",Dht,[He(E,{title:"生成报告时出错",type:"error",description:e.report.report.summary,closable:!1},null,8,["description"])])):(L(),G("div",Iht,[x("div",Oht,[x("h3",{class:"section-title collapsible",onClick:m[0]||(m[0]=_=>s.value=!s.value)},[He(b,{class:oe(["collapse-icon",{collapsed:!s.value}])},{default:rt(()=>[He(C(Da))]),_:1},8,["class"]),m[4]||(m[4]=x("span",null,"🔹文件分析总述",-1))]),He(Ki,{name:"collapse"},{default:rt(()=>[cn(x("div",Mht,[He(py,{content:e.report.report?.summary||"",streaming:e.report.status==="streaming"},null,8,["content","streaming"])],512),[[kr,s.value]])]),_:1})]),x("div",Pht,[x("h3",{class:"section-title collapsible",onClick:m[1]||(m[1]=_=>l.value=!l.value)},[He(b,{class:oe(["collapse-icon",{collapsed:!l.value}])},{default:rt(()=>[He(C(Da))]),_:1},8,["class"]),m[5]||(m[5]=x("span",null,"🔹文件内容解读",-1))]),He(Ki,{name:"collapse"},{default:rt(()=>[cn(x("div",Nht,[He(py,{content:e.report.report?.analysis||"",streaming:e.report.status==="streaming"},null,8,["content","streaming"])],512),[[kr,l.value]])]),_:1})]),e.report.report?.clauses?(L(),G("div",Rht,[x("h3",{class:"section-title collapsible",onClick:m[2]||(m[2]=_=>u.value=!u.value)},[He(b,{class:oe(["collapse-icon",{collapsed:!u.value}])},{default:rt(()=>[He(C(Da))]),_:1},8,["class"]),m[6]||(m[6]=x("span",null,"🔹相关条款提取",-1))]),He(Ki,{name:"collapse"},{default:rt(()=>[cn(x("div",Bht,[He(py,{content:e.report.report.clauses,streaming:e.report.status==="streaming"},null,8,["content","streaming"])],512),[[kr,u.value]])]),_:1})])):xe("",!0)]))]),He(C(Hye),{modelValue:o.value,"onUpdate:modelValue":m[3]||(m[3]=_=>o.value=_),title:a.value,width:"90%",top:"5vh","close-on-click-modal":!1,"append-to-body":""},{default:rt(()=>[x("div",Lht,[i.value?(L(),G("iframe",{key:0,src:i.value,frameborder:"0",class:"preview-iframe"},null,8,Fht)):(L(),G("div",Uht,[He(b,{class:"error-icon"},{default:rt(()=>[He(C(zb))]),_:1}),m[8]||(m[8]=x("p",null,"无法加载网页预览",-1)),He(A,{type:"primary",onClick:g},{default:rt(()=>m[7]||(m[7]=[bn("在新标签页中打开",-1)])),_:1,__:[7]})]))])]),_:1},8,["modelValue","title"])]),_:1},8,["class"])}}},sAe=Zo(zht,[["__scopeId","data-v-26729d39"]]),$ht={class:"export-button-container"},jht={__name:"ExportButton",props:{reports:{type:Array,required:!0},title:{type:String,default:"AI问题分析报告"},disabled:{type:Boolean,default:!1}},setup(e){const t=e,n=K(!1),r=async o=>{if(!t.reports||t.reports.length===0){Et.warning("没有可导出的报告");return}n.value=!0;try{const i=await fetch(jV("/report/export"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({report_content:t.reports,format:o,title:t.title})});if(!i.ok)throw new Error("导出失败");const a=await i.json();let s=a.download_url;s.startsWith("/api/v1")&&(s=`/chatwithai${s}`);const l=await fetch(s);if(!l.ok)throw new Error("下载失败");const u=await l.blob(),d=window.URL.createObjectURL(u),c=document.createElement("a");c.href=d,c.download=a.filename,document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(d),Et.success(`报告已导出为${o.toUpperCase()}格式`)}catch(i){console.error("导出失败:",i),Et.error(`导出失败: ${i.message}`)}finally{n.value=!1}};return(o,i)=>{const a=hr("el-icon"),s=hr("el-button"),l=hr("el-dropdown-item"),u=hr("el-dropdown-menu"),d=hr("el-dropdown");return L(),G("div",$ht,[He(d,{onCommand:r,disabled:e.disabled||n.value},{dropdown:rt(()=>[He(u,null,{default:rt(()=>[He(l,{command:"pdf"},{default:rt(()=>[He(a,null,{default:rt(()=>[He(C(Py))]),_:1}),i[0]||(i[0]=bn(" 导出为PDF ",-1))]),_:1,__:[0]}),He(l,{command:"docx"},{default:rt(()=>[He(a,null,{default:rt(()=>[He(C(Py))]),_:1}),i[1]||(i[1]=bn(" 导出为Word ",-1))]),_:1,__:[1]})]),_:1})]),default:rt(()=>[He(s,{type:"success",loading:n.value,disabled:e.disabled},{default:rt(()=>[n.value?xe("",!0):(L(),yt(a,{key:0},{default:rt(()=>[He(C(aLe))]),_:1})),bn(" "+je(n.value?"导出中...":"导出报告")+" ",1),He(a,{class:"el-icon--right"},{default:rt(()=>[He(C(ed))]),_:1})]),_:1},8,["loading","disabled"])]),_:1},8,["disabled"])])}}},lAe=Zo(jht,[["__scopeId","data-v-2d9af3d9"]]),Hht={class:"drawer-header"},Wht={class:"header-title"},Vht={key:0,class:"file-name-card"},qht={class:"preview-container"},Ght={key:0,class:"iframe-container"},Kht=["src"],Yht={key:1,class:"loading-container"},Qht={key:2,class:"error-container"},Zht={key:3,class:"empty-container"},Xht={class:"drawer-footer"},Jht={__name:"FilePreviewDrawer",props:{modelValue:{type:Boolean,default:!1},filePath:{type:String,default:""},fileName:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=K(n.modelValue),i=K(""),a=K(!1),s=K(""),l=K(!1),u=K(null);let d=null;St(()=>n.modelValue,g=>{o.value=g,g&&n.filePath&&(console.log("📄 [Drawer] 打开预览,filePath:",n.filePath),f())}),St(()=>n.filePath,g=>{o.value&&g&&(console.log("📄 [Drawer] filePath 变化:",g),f())}),St(o,g=>{r("update:modelValue",g),g||(c(),i.value="",s.value="",l.value=!1)});const c=()=>{d&&(clearTimeout(d),d=null)},f=async()=>{if(!n.filePath){s.value="文件路径为空",l.value=!1;return}a.value=!0,s.value="",l.value=!0,c();try{const g=n.filePath,y=K4e(g);console.log("📄 [文档预览] 原始URL:",g),console.log("📄 [文档预览] 转换后URL:",y),console.log("📄 [文档预览] 当前环境:","生产环境"),i.value=y,d=setTimeout(()=>{l.value&&(l.value=!1,s.value="😔 抱歉,未找到文件链接,正在快马加鞭修复中!",console.warn("⏱️ 文件加载超时 (5秒):",n.filePath))},5e3)}catch(g){console.error("❌ 加载文件失败:",g),s.value="加载文件失败,请稍后重试",l.value=!1}finally{a.value=!1}},p=()=>{console.log("✅ 文件加载成功"),c(),l.value=!1,s.value=""},v=()=>{console.error("❌ 文件加载失败"),c(),l.value=!1,s.value="😔 抱歉,未找到文件链接,正在快马加鞭修复中!"},h=()=>{o.value=!1};return Jr(()=>{c()}),(g,y)=>{const m=hr("el-icon"),b=hr("el-tag"),w=hr("el-button"),A=hr("el-drawer");return L(),yt(A,{modelValue:o.value,"onUpdate:modelValue":y[1]||(y[1]=S=>o.value=S),title:"文件预览",size:"50%","show-close":!0,"close-on-click-modal":!0,"destroy-on-close":""},{header:rt(()=>[x("div",Hht,[x("div",Wht,[He(m,{class:"file-icon"},{default:rt(()=>[He(C(Py))]),_:1}),y[2]||(y[2]=x("span",{class:"title-text"},"文件预览",-1)),e.fileName?(L(),G("div",Vht,[He(b,{type:"info",size:"large",effect:"plain"},{default:rt(()=>[bn(je(e.fileName),1)]),_:1})])):xe("",!0)])])]),footer:rt(()=>[x("div",Xht,[He(w,{onClick:h},{default:rt(()=>y[5]||(y[5]=[bn("关闭",-1)])),_:1,__:[5]})])]),default:rt(()=>[x("div",qht,[i.value?(L(),G("div",Ght,[x("div",{class:"iframe-overlay",onContextmenu:y[0]||(y[0]=en(()=>{},["prevent"]))},null,32),x("iframe",{ref_key:"iframeRef",ref:u,src:i.value,frameborder:"0",class:"file-iframe",onLoad:p,onError:v},null,40,Kht)])):xe("",!0),l.value&&!s.value?(L(),G("div",Yht,[He(m,{class:"is-loading",size:40,color:"#5b8def"},{default:rt(()=>[He(C(jc))]),_:1}),y[3]||(y[3]=x("p",null,"文件加载中,请稍候...",-1))])):xe("",!0),s.value?(L(),G("div",Qht,[He(m,{size:40,color:"#f56c6c"},{default:rt(()=>[He(C(tf))]),_:1}),x("p",null,je(s.value),1)])):xe("",!0),!i.value&&!l.value&&!s.value?(L(),G("div",Zht,[He(m,{size:40,color:"#909399"},{default:rt(()=>[He(C(Py))]),_:1}),y[4]||(y[4]=x("p",null,"暂无预览内容",-1))])):xe("",!0)])]),_:1},8,["modelValue"])}}},e0t=Zo(Jht,[["__scopeId","data-v-119eaee2"]]),t0t={class:"search-previews"},n0t={class:"stacked-icons"},r0t={key:0},o0t={key:0,class:"more-count"},i0t={__name:"WebSearchCapsule",props:{total:{type:Number,default:0},results:{type:Array,default:()=>[]},isExpanded:{type:Boolean,default:!1}},emits:["toggle"],setup(e,{emit:t}){const n=e,r=t,o=K(!1),i=K(new Set),a=()=>{r("toggle")},s=ee(()=>n.results.slice(0,8).map(u=>{try{const d=new URL(u.url),c=`https://www.google.com/s2/favicons?domain=${d.hostname}&sz=32`;return{initial:d.hostname.charAt(0).toUpperCase(),favicon:c,faviconLoaded:i.value.has(c)}}catch{return{initial:"🌐",favicon:"",faviconLoaded:!0}}})),l=async()=>{const u=s.value.map(d=>d.favicon?new Promise(c=>{const f=new Image;f.onload=()=>{i.value.add(d.favicon),c()},f.onerror=()=>{c()},setTimeout(()=>c(),2e3),f.src=d.favicon}):Promise.resolve());await Promise.all(u),o.value=!0};return St(()=>n.results,()=>{n.results.length>0&&(o.value=!1,i.value.clear(),l())},{immediate:!0}),qn(()=>{n.results.length>0&&l()}),(u,d)=>o.value?(L(),G("div",{key:0,class:"web-search-capsule",onClick:a},[x("div",t0t,[x("div",n0t,[(L(!0),G(Rt,null,un(s.value,(c,f)=>(L(),G("div",{key:f,class:oe(["preview-icon",`icon-position-${f}`]),style:rn({backgroundImage:c.faviconLoaded?`url(${c.favicon})`:"none",zIndex:s.value.length-f})},[c.faviconLoaded?xe("",!0):(L(),G("span",r0t,je(c.initial),1))],6))),128))]),d[0]||(d[0]=x("span",{class:"search-text"},"蜀安AI搜索引擎",-1)),e.total>8?(L(),G("span",o0t,"+"+je(e.total-8),1)):xe("",!0)])])):xe("",!0)}},uAe=Zo(i0t,[["__scopeId","data-v-8e7d2f1e"]]),a0t={key:0,class:"web-search-sidebar"},s0t={class:"sidebar-header"},l0t={class:"sidebar-content"},u0t={class:"results-section"},c0t={class:"results-list"},d0t=["onClick"],f0t={class:"result-header"},p0t={class:"result-index"},h0t={class:"result-title"},g0t={class:"result-content"},v0t={class:"result-footer"},m0t={class:"result-url"},y0t={class:"result-score"},b0t={class:"iframe-container"},w0t=["src"],A0t={key:1,class:"iframe-error"},C0t={__name:"WebSearchSidebar",props:{visible:{type:Boolean,default:!1},results:{type:Array,default:()=>[]},keywords:{type:Array,default:()=>[]},total:{type:Number,default:0}},emits:["update:visible"],setup(e,{emit:t}){const n=e,r=t,o=K(!1),i=K(""),a=K(""),s=()=>{r("update:visible",!1)},l=c=>{a.value=c.title,i.value=c.url,o.value=!0},u=c=>{try{const f=new URL(c);return f.hostname+f.pathname}catch{return c}},d=()=>{i.value&&window.open(i.value,"_blank")};return St(()=>n.visible,c=>{c||(o.value=!1)}),(c,f)=>{const p=hr("el-icon"),v=hr("el-button"),h=hr("el-dialog");return L(),yt(Ki,{name:"sidebar-slide"},{default:rt(()=>[e.visible?(L(),G("div",a0t,[x("div",s0t,[He(p,{class:"close-icon",onClick:s},{default:rt(()=>[He(C(vu))]),_:1})]),x("div",l0t,[x("div",u0t,[x("div",c0t,[(L(!0),G(Rt,null,un(e.results,(g,y)=>(L(),G("div",{key:y,class:"result-item",onClick:m=>l(g)},[x("div",f0t,[x("div",p0t,je(y+1),1),x("div",h0t,je(g.title),1)]),x("div",g0t,je(g.content),1),x("div",v0t,[He(p,{class:"link-icon"},{default:rt(()=>[He(C(r1e))]),_:1}),x("span",m0t,je(u(g.url)),1),x("span",y0t,je((g.score*100).toFixed(1))+"%",1)])],8,d0t))),128))])])]),He(h,{modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),title:a.value,width:"90%",top:"5vh","close-on-click-modal":!1,"append-to-body":""},{default:rt(()=>[x("div",b0t,[i.value?(L(),G("iframe",{key:0,src:i.value,frameborder:"0",class:"preview-iframe"},null,8,w0t)):(L(),G("div",A0t,[He(p,{class:"error-icon"},{default:rt(()=>[He(C(zb))]),_:1}),f[2]||(f[2]=x("p",null,"无法加载网页预览",-1)),He(v,{type:"primary",onClick:d},{default:rt(()=>f[1]||(f[1]=[bn("在新标签页中打开",-1)])),_:1,__:[1]})]))])]),_:1},8,["modelValue","title"])])):xe("",!0)]),_:1})}}},x0t=Zo(C0t,[["__scopeId","data-v-77ec5b89"]]),S0t={class:"web-search-summary"},E0t={class:"header-left"},k0t={class:"summary-content"},T0t={__name:"WebSearchSummary",props:{summary:{type:String,required:!0}},setup(e){const t=K(!0),n=()=>{t.value=!t.value};return(r,o)=>{const i=hr("el-icon"),a=hr("el-tag");return L(),G("div",S0t,[x("div",{class:"summary-header",onClick:n},[x("div",E0t,[He(i,{class:oe(["expand-icon",{expanded:t.value}])},{default:rt(()=>[He(C(Da))]),_:1},8,["class"]),o[0]||(o[0]=x("span",{class:"header-title"},"外部数据",-1))]),He(a,{type:"info",size:"small",class:"source-tag"},{default:rt(()=>o[1]||(o[1]=[bn("数据来源于蜀安AI网络搜索引擎,内容仅供参考",-1)])),_:1,__:[1]})]),cn(x("div",k0t,[He(py,{content:e.summary,streaming:!1},null,8,["content"])],512),[[kr,t.value]])])}}},cAe=Zo(T0t,[["__scopeId","data-v-070e5d69"]]),_0t="/assets/27-Dd_EQ7v1.png",D0t=["src","width","height"],I0t={__name:"StatusAvatar",props:{status:{type:String,default:"idle",validator:e=>["idle","searching","thinking","analyzing","completed","error"].includes(e)},size:{type:Number,default:40}},setup(e){const t=e,n=_0t,r=ee(()=>{switch(t.status){case"searching":return"float-animation";case"thinking":return"bounce-animation";case"analyzing":return"swing-animation";case"completed":return"success-animation";case"error":return"shake-animation";default:return"idle-float"}});return(o,i)=>(L(),G("div",{class:oe(["status-avatar",r.value])},[x("img",{src:C(n),width:e.size,height:e.size,alt:"AI Robot",class:"robot-img"},null,8,D0t)],2))}},dAe=Zo(I0t,[["__scopeId","data-v-08478745"]]),fAe=(e,t={})=>{const n=Xf(),r=Iv();if(n&&r){const i=new URL(e,window.location.origin);i.searchParams.set("token",n),e=i.toString(),console.log("🔐 SSE 连接已添加认证 Token(通过 URL 参数)")}else console.warn("⚠️ SSE 连接未找到 Token,可能会导致认证失败");const o=new EventSource(e);return o.onmessage=i=>{try{const a=JSON.parse(i.data);a.type==="completed"?(t.onComplete&&t.onComplete(a),o.close()):a.type==="interrupted"?(t.onInterrupted&&t.onInterrupted(a),o.close()):a.type==="error"?(t.onError&&t.onError(new Error(a.message)),o.close()):t.onMessage&&t.onMessage(a)}catch(a){console.error("解析SSE消息失败:",a),t.onError&&t.onError(a)}},o.onerror=i=>{console.error("SSE连接错误:",i),console.error("EventSource readyState:",o.readyState),console.error("EventSource url:",o.url);const a=new Error(`SSE连接失败 (状态: ${o.readyState===0?"连接中":o.readyState===1?"已连接":"已关闭"})`);t.onError&&t.onError(a),o.close()},o},xh=e=>{e&&e.readyState!==EventSource.CLOSED&&e.close()},oC="/assets/2-G3awVIMi.png",iC="/assets/22-PHJtTrlQ.png",rk="/assets/29-B03QHNcz.png",ok="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQISURBVHic7Z0xixtHFMf/b25lGZbDu8X5uObYqx2DAnbnwkdag3NNAm4M+QJxmSr2+RPYkD64SWEwZ4PdGS6FmzgpBE6auLjFjeFU7BqhcLLW+1KcJE7SSlrt3M5o0fs1Yldvdx7/fTPz9DTMEnISRewlDhog3AajwYyACB4AL+89lpQYQAggJkLIjCcb6/R73otpnkEUsfdZ4Z5S+BHVFysvMRGe93rY3/IpnGU4VcAVFS6L/Y11ejDty0wBP0YcOA4OADTK8qpiNJMEe1nROCHgx4iDWg2HzAhMeFYViBD2etgdF3FEQBFvNlkiqrMGjoMDEW86zAgcBwdRxMM5YShgq80PIGNeHhqfFe4NDggYThpH9nyqHLGTYMf3KVYAUKvhvm2PKoY3iEICgFabI6x2rleE2Emwo1ptvgkRrwhe4qChiHDXtieVhXBbSdqiAaOhIN23MMwIFCARWBQieBKBenhqvo0wCxFQExFQE8dEIy//TPH0zRd0uiZaA9w68N2NNdy6Xn58GIlAk+IBQKd72qYJjAhoUjzTbRrpwmdx60CwOffPwLl0ToD/ujxy7viT9m0XxriAwSbh4Z1ymv35twT/fOD5hueIzMKaiICaGO/C43ROgMN3KTpnxrNb19bgXixmZxrrAr786wuevklHzrl1msjh8tqZZim7cKebbyLIa1cmSylglbAuoFvPlxPmtTON9TFw96oa6YpunbB7dfK55rUzjXUB3YvA9zfWzs3ONPYfYcWxHoFv/03xy6vRas3DOw6ubFMhO9NYj8CjY56onPz9IS1sZxrrAlYdEVAT6wJ+tT3qglsHdi5Pjmt57UxjfRK5sk149lPt3OxMYz0Cq471CJRyliZSzioBKWetENYFlHKWJlLO0kTKWSuO9QjMYllLV1ksZQQua+kqi6UUsEqIgJqIgJqIgJpQq82l/KA8/sT49fXpTDq+Zu/ypdnXdk4mV5i6dcytvIxfN5i1f/hm7VwWdWZRWhpz+C7F2/fZz6bIStJOd/Flu4MH98f7FMFmOUm4dGFNREBNShsDVwWJQE1EQE1EQE0UTvfPE4oRK2YRUINQESG07UWFiRUITdteVBUihAqMF7YdqSrMeEL9zWWPIJtPLEq8sU6+8n2K0xSPbXtTNYjwHOhvPiZRuDhJgp0tn0IFABKFCzPcHnlYZexH4SFkF8t5NDfW6evBwfCnnO9TnCTYk7xwOkQIkwR7I+fGjWQn32ymbYM8UUzY8ins9bALSIJ9hmaWeMCUasyWT2G/n++X7dmSE6cp9p0kWzwgx8sI+l36PjO+xeqkOXGa4vGFFI98n2YWWxb6r6/V5ptEuNsfHz1g+FllYubTV2GA0ATjhZOgOU+4Af8D/9iepAO8B/8AAAAASUVORK5CYII=",ik="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAZRSURBVHic7Z2/bxNXHMA/73IpUa0o9uCgLJEztEsaKZWAKQMRbIlE6ZBKGYoyIoGKRIdOQPgLQCCx1aIDUlgAKdmC3CETMEQKWcoQKwvCHmwrMkrw+V4H58zF8fl+Pv8Q91kiO+/OL5/7vl/fdzkLPFIqyaShM4vgCpJZKckIQRJIej1Hn1IG8kBZCPJS8jQ9Kv71erBwK1AqyeQXjVuaxh8MviyvlIXgZa3G6kRK5DsVdBT4jYprx2p6VNxz+mVbgR9LMqPrvABmVdVqwNg2DK62i8ZTAj+WZGZ4mJyUZLpRs0FBCPK1GvOtEk8IjOV1pp1EzV5A13kRy3NGSjK6zotSSTbHhKbA4oG8R9zneWH2i8Yt64WA5qCx17s6DRxl3WAqlRJlDWB4mLu9rtGAkbSiUAAUD2SJb3uuF4SybjClFQ/kRWJ5QUgaOrOaEFzrdU0GFsEVLZ62hEAyqxE338BISUaDOAKDIgTJOALDkdTcy8R0IhYYklhgSHTVH7C2VefzISzNDZEYCX++6iFsvKuz90mSL0iqh5AYgfSYYHxMcGNhKPyH+EAUD6RUdfK1rTrPt0wA0mNwf1lnfMx1G6YthYoku1lnd19SPXIu98+t4UgulFeUCbTLs0icaUTi4nl/PcfuvuTRhkGx0rncjYUh5me62yspEdhOnp3Fc5rnJr3+1iT7uu5arhfyQIFAN3kWXpp0oSK5/sRwPVev5IGCUfjzobdyxQr8+bfB+ltn2Xee9bc8UCBwaW6I9Ji3stUjyL6uk92sU20Rn9sx+7LPayXyT0+MNJpm4oz3Y9bfmdzO1k68l9vp3A2sXPInr/UCRYWSyzc+Jlia8zcfs0dboSLZ3e/cNU9Pep8O5XZMfn9QI7vpPhj5RVn8L57XWDwX7PSFivu4li94G/tyOyaPNxri3rtclCAo7UD89Id23Po+gPwndxl2eQCfjwZMYJD+EPC0WnGL0lZ5jWP81cMLyocwP/2hFVXTk+5r2k5NuJ08gMx4sGVkJ5Suhe1kN+usv+s8sibONCI2c7bxhzqJsMiMCxIjMDUumJ4UfD/SaP5Ox0xPCu4vR5s/6ZrA6iHcztZc+ze/Ev2wcsn/OtyNrgl0Iv9JcueZcSLDokrik+vBs0FO9DyhmjkrTg001aPGMs7qE+dntNB5vvkZLXJ50AcRaOE1EnM7ZlOElwk3hM9FdqJvBII3ia1UD+HNB5O1rbpj/3p/Wfe1cvFDz5swwN5xU/XSnFtJjDSa5/1lve00ZeXSkDJ50AcRaOUP7ZkVp0hcmhvizQeTYsWaL2pc+EFw4cevcfB4o05uxyQ9Bn/96hy5UdFTga3JVzeJTiye01i5/HWQefOfeUKqSnom0ClzHVRiFCN1EHrSB3ZK+1tNEBp9otdlYJQTbj90XaCXPRN7MnV3331/xX5ctyV2VaDXDSc7XvN+Ft2W2DWBfuSFnfB2U2JXBPqNPHuznZ4MVsVuSVQuMEizLVS+bgKF2XXrhkSlAoPIA1ia05p3LUxPisB7K6BeojKBYeT91jJ1Wbkcbv9XpUQlAqOUZxF2Ez23Y/J8awC2NQsVGbk8iygkRk3kN1jam0p6DG4u6Egkjzec001e5FlYy7UgMlSsWSOPQHva6cZCI5X006TGzYX218qPPPt5g0SiivtolI7CwvYP8bLN9Q8iz8KvxPmZ4J/VicgF2pOXjzYM3u+b7O7LU6NgGHkWXiWqzNREns7a3Zeu9/VFIc+OPYPTiuo0l5IIXJpzPm3U8sA5EruRI1SWUC1UGs3WfrvG4nm1+xNrW3U23prNfRK/t9gFoed7IoNOX+zKDTKxwJDEAkOi0Xh+XkwwypqUscAQ5DUhyPe6FgNMWUOw3etaDCpCkNeQvOp1RQYVKXkqjh8uu0f88Am/lNOjIqWlUqJsmjzsdW0GDSF4CccPH4uj0D+GwdRESuQ1gDgKfdN8PHIzNXIchTnip1i6sZ0eFT9bL5pLuVRKlA2Dq/G80BkhyBsGV0+811oofpJve5weg3wqmTCREvlajXmIJ9g2ttvJA4dszERK5I/b+arqmvU5ZdNkVTfaywMPX0Zw3KTvSskvfDvTnLJp8vA7kweplOiYbPG1QVE8kBeF4Npx/5iE5s9Bpixl46swEGwjeaUbbLuJs/gfaZgc6y4uxCoAAAAASUVORK5CYII=",ak="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAPHSURBVHic7Z2/axRBFMe/b9yoIMHdIpE0YdPYaHFCtLIwYGdA0yjYiKWV/gca/wIFwVIstYlC7AQtUmmKK0xjkyWNeFfshkNRb2+fRe6OJN7mfkze7Y55n+a43GTm8cm83XmTZY4wIHHMfuqhAsJ1MCrMCIngA/AH7aOkJAAiAAkRIma8nJqkj4P+MvVrEMfs/zF4YAzuw31Zg5IQ4U2zieWZgKKDGuYKPKLierE8NUmP8j7sKfBbzKHnYQVARSoqx6imKZZ6zcZ/BH6LOZyYwAdmhOOIzBWIEDWbWNgvcY9AlXcwvSSa3Q08DysqLx9mhJ6HlTjm7j2hK7De4EfQa94gVP4YPOi8IaB709gsLibnSLwUc0FAiQGAiQk8LDoix/A7s5AAoN7gGEd7rTcKiZdiztQbfAUqbxT81EPFEOFO0ZE4C+G60WWLBYyKgabvyDAjNIDOwFEhgq8z0A7f9G+jHIQKtEQFWuJJD7D6OcO79RZq29Ij7SWcJlw6S7h1+ZjoOKICX7xvYXU9kxwil6jGiGqMn7+Au1flJIql8JetrDB5u1ldz7CxxWL9iwmMvkv1PDyb3x0U+OO3XNDDIhmL+E1kN+E04fFtD6dOyvRf22Y8e9cSTdn9jHUZc+ksickDgOnThHOzfZ8VOFR0HWiJCrREBVqiAi1RgZaoQEtUoCVjFbixxahtyy1yf/wCPn0dbwU01kpkY4tx73k6ziHF0RS2RAVaogItUYGWFLqdlbf9dNjtJCl0Oytv++mw20miKWyJCrSk0Eokr3IYtF0ZKGUl4lLFoilsiQq0RAVaogItcboSKQNOVyJlQFPYEhVoidOVSBkqFqo3WGTEV2stvF4r/gFLALh52Yg96is2A0+dKM9FXzIWMYFzZ8ojMDwj17eYwHOzhMX54u9Ri/MG52fl4hC7BnZ4tdbCp687T8yPk+nTwLX5Y1i8KPtHFBf4v1N8jjmOCrREBVpisHN+njIaiWFWgRZEhghR0VE4TGJAqBYdhasQITJgvC06EFdhxktqHy67CT18YliSqUkKTBBQkmV4WnQ0rkGEN0D78DGdhcOTppibCSgyAKCzcGi6xyN3N+3as/AD9BTLflSnJulC5023lAsCStIUS7ouzIcIUZpiac/P9jfSk3x7k3cM8j+bCTMBRc0mFgBdYO+i2ksekLMbMxNQ1M7zZenISk6SZVj20t7ygAG+jKCd0g+ZcQNHZ5mTZBmeHs/wJAjowM2Wof51Vm/wFSLcaV8ffaD76jIJ885XYYBQBeOtl6LaT1yHv8d8mBgIHOUGAAAAAElFTkSuQmCC",sk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAPySURBVHic7Z2/b9NAFMe/7+oAoqqwh1TqUiUDU5cgARMDCLZWKmWADcQGEgg2NqD/AUzMLEhlaZFgLkMmWCJBFxhqdUE0g11FQS1x/RiaplCcn9fzxc37LFXS6/nlo3e+Hz1fCD0SBOxGDkogzINRYkaBCC4At9c6hpQQgA8gJILPjNf5CfrY6x9TtwJBwO5vhcdK4RGyL6tXQiKsNBpYnPLI71SwrcARFZfEYn6Cnrf7ZaLAHwEXHAfLAEqmosoYlSjCQlI2/ifwR8CFXA6rzCikEVlWIILfaODKYYn/CBR5nUmSqP4u4DhYFnntYUbBcbAcBNzqE1oCqzV+Drnn9ULpt8Lj/RcEtDqNdXsxZY7QiVD0PAoVAORyeGY7oozh7mchAUC1xgFGe6w3CKEToaiqNb4MkTcIbuSgpIhwx3YkmYUwr2TYogGjpCDNd2CYUVCAZOCgEMGVDNTDVd3LCJ0QgZqIQE2ctC60ucX48DnGp+8x6ttAfSed6148S3gw62D8lJn6qVpjNlP1Ae8/x3hb3k1N2mHuXh3D3AUzjc14Bi6Vd/G2HJu+TEfqO+ZyxOg9cPVLbF2eaYwKXCrvmqx+KDAmcP0no7plqvbhwZhAf9N43zQUGBO4uSUChR4QgZqkNhNpx9x5hbvXxrTqqG8Dt180jiii/rCegaePYIplaprWC9Yz8NM3BqA3Xvy1fTSxDIJ1gf4mZ3rIY70JZx3rGSidiCbSiWginYgm0omMOCJQExGoiQjURARqIgI1EYGaiEBNRKAmIyFw8kzXp3oH5tgLzJ8BLp419zFTnwvPnVeYvaCMZcXTNxHWNg7m1sVJMrpak6rAmWnSXvvrl/FT5povkHITLk6a/TBJjJ80W78xgUlNdN3CspXpPYmpClzbYCyVd4/Vtg+jO1TvvWpY36E1fhJ4dT9nrCMxeg98OGt9wRv1nb2NnqYwKnBmmnDzkv2hZma3+ALArUtj1iWanImksksfOHjM4esGo7rFqe3Yn5kmPLmR8cccjjP2b1AZRwRqIgI1Udg7P08YjFAxi0ANfEUE33YUGSZUIFRsR5FViOArMN7ZDiSrMOM1NQ+XXYccPtEvYX6CPOV5FMYxXtqOJmsQYQVoHj4mWdg/UYTilEe+AgDJwr5pHY/cWudpZuEq5BTLblTyE3Ru/0VrKud5FEYRFmRc2B4i+FGEhX/eO1xITvJNpt0xyP8tJkx55DcauALIAPsvKknygDarMVMe+c12vmg6siEnjGMsOlGyPKCHLyNoNulnzLiO0RnmhHGMlydivPA86rjY0td/W6o1vkyEO837owu0fmaZkHnvqzBAqIDxzolQ6SZunz9nVVxxNV1mcwAAAABJRU5ErkJggg==",jv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEWSURBVFiF7ZZNbsJADIWfUVnDDchNOhyBE5BuO5HazgUwFwA2EUvoDXqEcJP2CF12U3dRgVASgT2EH4m8pTX2+2RbGgP3LtI+zF7ZCdEg1uhX5Hu54I8ogOfAKQGrWPOdBEU+5+F+qKPJI+DxZPP/Qq4cejAXEUrtzpLWmUcB5PPJuzXHB641B5QjOKcqHcgCswAvAPp1CT6wKGuv8xk/mQEEmCgNGtGhHfgEUETUTJsCKDQtLMsHNgFcfQlbgBagBWgB7PeAXs4H3l5R7hoACRT/wkVHQMC0HDtnB1T3wA0voSDxb9OxvaT2YDoGQHCAODuATdURSNQVVFMGG827Sge6gtGPwHWIerHmJPKVL7iIzb8v/QE/Jz7sdjN4KAAAAABJRU5ErkJggg==",aC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIVSURBVFiF7ZWxctNAEIa/k/AMVJgnQCUdSROPK5Q3wG+QdJ7IxVkVnTcVnW1m7Ew6+w0IFWXUZSYVb0DeAFOb3FFIyihCsiQ7Q+P83Umr/f7b21vBs/Zd7lMkCULRR13/e6frv7q9iaL/amAQigCfgZeA3+n6qomJnQwMQhELIwAFV8C7piacp4ADw9lYegrOASyMkspUaqsKZOEWTi/GcglwexNFna6vAJ+alWhsIAhlAnzKwJfZ901NNDqCIJQFoIGVNRzm4almYxEsUWJyVBST6kVD+EkCP76Yyo+KWD9ZDncyoLW01y7XWA6AO2volcG1lvZa8TWBr5ShN5tKtCm/agK/NxxfTuWuKLavxXMdrgGvymhWpT3Q1+LVhZ9pOcjC7yuOqNLAw25qwAdafJXCLVHLcFgWW6TCHsjvpixhEIq2MEmWy/lETuuCU5UdgQewcefxpJsAKDifj5vDoeIWbNj5wsZXEuIxPN0GXmkgr22u2U4G+lq8tAp9Ld46d83mmU4PQtHA+1yKlYXf6cIYlvmqbjTgOvwMQsk/LmxMBR8sfMwHZweN6/AWeNQrZQaW1sajVKm4IQGwRC1Lbz6VVf6DP4ahq9TVI7hD21j7Jl0bw7KEt8cq/RechXICmfIXf/waaNeFWcOX/IgubUIFi7qJ60o5rIB6Bmzcrd6mhI5Sv6zhn4YsU8vab3Vjn7U/+gupnAZW9/N3fgAAAABJRU5ErkJggg==",yq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAKlSURBVFiF7ZfBdRoxEIY/LYbzpoLgDpwKgiuw0wG++Rnes6ABhgZg857x882kgjgV2OmADowrCMc8O2h8QIhdwCxeyCn5T9LuaObXaDQzgn8dpsgiayV+hqpCtQQTB5MKjJNEJn+NgLUSP0dYo5xgOForpIzU8MM5hjeJjPdCwFqJXyL6QH1bsh7DqaObR2QjgaaVmkbcAtXU5wlwp/Bk1DwCqNFDAx+BUyBOyY7V8eU6kVEhAhdtqRu4Dcqge92T4RZrOmnSCmdvrcs9gkZL7jGMyo7ue4Ks0ZY+YP10oo7jdZ5YIXBupRpBPBe2VuIi0Q3QbIvozBsA47Lj07KuaHlRKaJjDP35vKhxgKueCJD4afU5Ch5ZT+DcShWoY6g1rdSKGk6j7OgCYwADl97GegKlKLgLNYvxLkgSmSh0/TSOoux1zh6BphKMoXbRloxwUVQcd8yuL0b5nP4XgtAnnF9Laydlx+EucTBHoy23+GRWdnyY6wwe+MPa9BqvC5wiUHiaj3+nktXKLViGgUtrJc6Ty9Xjs6bXGTZ7MB9MIQ5s1NQH/c63XQz6I30k7FbDv5KPB0h5wPirMrOvh7sYhxD9X/PkAgGXYuULy86oOBJSeuc4gJCSA4GbRMYoD356ug8CPtK7mY/KKH2rMkGohp9+GO8rBwx6kqQ2BoZMQcoQcI7hQo7OPqIfwOjCC1OX9UiGgO9eQvF4ifaTjq8SefBeWGnVVvJAungAttkWKWo47UFVWsu7hzcakgsrRybinkXGSgY9ab3HeKMtfZSjQV+ON8m92REttWNQsCXb1I5tJADBE9/ZoSk1jrOrRB4KEYBZk+L7hHqe7BKGZUcrr5Ju/TA5t1I9KJkTdVrPe5hUHMm2JXynp1kE8RRiA+OiT7P/eAV7sh6rte/pwgAAAABJRU5ErkJggg==",o7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAMwSURBVFiF7ZhRktpGEIa/Gew84xNYuYFzgsAJbN+AfdsAVauVD+DmANEqVQveN/AJsj7B4hPENzA5QcirNzudByQYhIQkoOwX/ioVM6OZ1letnu4RcNZZZ30/DSORrN2PpDeI5GYYSucYm8+Ohco0jEQU3gOSDgVAqJZwEMlCYeQc87tEFk3s2hPD+fJBAgPTluWhH0mvie2jAUvgmMQye+54oXDBBjYwMPVDoUrm1HDjWApt9iPpmdXcIB2ajWO5qHrGwR4s81yZJrHMnhxdNt7sDSK5qVp3EGAObgHM6qy7S2SRgwyrdnljwDzck6Or8Hd+3mUowWUowR7IJYBa/gxDaZ8EsAiuLG1YS69l+Tq4loc8aLpmlHbb3yzh0YBN4LZk6LQsX/PpZRxLgjJfTeGqzIuFiXoQiebHvIFacM4xa1leAr0UYjoMZXGbyHzNbs29qnaA9n/wCpjn7TSNwdqeu0tkMY7lwhnesom3qT/n2ZN+zNpqeV1kZz+gMlcYZVft1+rpw+9yr/BH2g38XZskssxeM0pnZzEVtVgNnydx/axfpp8cyaNdxW/qqfn6plmlHIXCGDxJLa5SkshSdQViNpUk0xLAmB8ICGCyONRtEIV/0+aPBcTwKv39sj3MS4DMw3ntjUGj/Nr3Th7OMWu6SWCdQzMbn7duKgEGDMWA+z1o6Bh4n10ty05VqFI/kp7CVdpdfEjkPrsXhtLGpLs359l6gLsK6kJehhIMIrkxMCWNL3W89ed8s7zJ2sbxqchO4SsuOtN5pS6D3JsTraUH6xq7VLieJJKPv3Xp9CvMlp2yB+R1G4uYTYGv7UmUuTq6k1hm/nBam4PVlLXdwwEbQzrunxw/j2+km/fcZSiB7z3ndmtwpoOO/AUH1jnpoaDsyO/DtSwPbLx3kfeur4PyYN6TGVyV8nBAsg/uYEDYgazUb+/kTcvylwc3G8dyXbXuqK862P148l9xGEr70ZjXoL11vls9dHRb8xBydKkr8+Tw3ejq0fIPRmce3MI4unXhTgJYBulUX3jdpcLoueOXsnxXppP9N3MbiwwjWffV8MUoiXF8agp11llnNdD/8SCG32KlI34AAAAASUVORK5CYII=",Qy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIPSURBVFiF5ZfBcdNQEIa/lQLkKCrAHeAOUCqIqQC4JdiHZ6eArBuwnRns4WYoIRXgEpIKUAk6MiT2ctCTLRs7RAqWZ+A/rmbnfft29+0K/ndJVcdzpy2AFzAbjTStDeDMaSMM+AY0vCk16E4G+qUKQFDWIRSm/vAEYwZEAtMzp42H/P4aAEITYL7gZDzUE4F+AWy/AM5pBERA+nmkCcCngaoHi/cO8CM7HDM2iy4tAO4PYJsKt0KVbigFIGT5F1Y3cO9tGDdlDwc4KgUQ8M6TzHKbBZwCiJB0nMYP+d9DktdOaYB2Tx3QApgvuFp+MJoIGLQIsu+7FALtrs6eGW/zdP0RoOM0tizy997UXYtCuMYeGYXQRIjvhCHwITN5nV9oKzCGrF64Lf70l21XQf4V/Q6k44G+hMINBMYUX80bSoDZfEF/M39ldQzp3YatmIIIYDxQAfjYUxW4NPg6eULURRU6JsltT34HSimU18BaF9UKYGb+BmT5ZtQMkM0LM7utHcA5jUSyDnvOAWrgZ97exk1xZtQGILIswLWZUV8NSFaAInIgAF+AzFcFWC+AL8AjDpACv7BGZiSbS0stAKHIG4BAfl9airMgBaJ2T7PtVmhiIMJpu6evqh4uEBkWAyzgeieAwJXBJfncz2e80SQfIhVUWBVG235e1v6MOk5jE6kc7U4Is9vJSCvtjP++fgHeI64ZO7QpwQAAAABJRU5ErkJggg==",Zy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIcSURBVFiF5ZfNkdpAEIW/BuzyUSEoA5OB1xHYIcBtC7aKQQnQTmDRAa/3Zm8GSwY4AxyBcQY6+g+1DxrYwfxYCKw97LvNaNB703S/bsFTh+x70HPaFpGXZyc0+zZJdXZQQD/RMeDOTR6QvptcqwK0/n7YS7TjyTOBmUF2AlMbo40wx5j73Y7BANgtoAFvDMDETcaju8rkQC9RFWibMb3xN+4XF4wCvk3kRhtgafb5FPKy2BDgnEYixEB2m+qidgG/KW6PUQv5lgCavuyE2aMIMDMfAZnvPP2/BeAT0My+1C7AOY2QQsBzHiEHfkIMYMYiTbW6+VQVsPJ9qTEBNwQgRQKK1JeAmwKMCwCW9SUghL2gcEBacHIELp3GzQYjKC4lMOonOgqOrHNsqxl9LxpF5SS8SlQNRgeOLHJhuFqs54F+oh+BDpAFrfMwhOn7a02Ddzhg7JefJOcuHD52YR2BZznDX0KMcIH4fPgXDIAUirAH5MNQWCkBvvZfXzqNW94T9qLBwOAt8hCpZoOB13R/U5J8Q8AKvg0vDv2oP9QxApIzXW8aFwhYzlFDzNZAUgressOKMT/l2JFVdLQA53Q1TmXnsOyjBQSkUbgvUqxfHFnC1f4CK/rFVVIMmr4CIipEZSsJy2BpdJvCV4NRf6ivVi5a2j8CVIrAbaoLgy6Qec+IgcXS6B77rr2fZmXgnEY/vN9/SPX+lHc9XfwBiam2korBkUcAAAAASUVORK5CYII=",lk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAwCAYAAABnjuimAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA4SSURBVFiF7VhbkJVnlV1r//+5NZeGphHoXLhD0mBMcwwIEXLAGOSmThTGmEmZaFlT5VhOjVo1NS8znZp5mSq1LKfGpzEVMymtCYFMwMAk0nIMTBDwACHSSkuAMhBIuHbTnMt/zrfXPHTTNKGJ1pSP2a/nfPtb/9p77b2/DXxgH9gH9mcx/tF/dMryU85k0+NHZRlbHKpklO1XmZmkP3O+cmzVrASk3teHxFnbj6Vvz8W5JOlLh2ZjFFxi3EjSlWopn6+C9P8f0E7ZtKkn0xNHTRxnjntAfJjmE0GlwFA16qSYvJ7EOo4pU3pLeTRuAiwxX0I85kpPcy3CDAveYRHuBD1LUx3QuTgKb7glh3Pjx1/aPmtW/VaAbwk0/59Xp1jEpaR/hsRcIEygIS0GoymQXpaFiwaVyPB81WxvaV1bebiPdb9+u+lif98iOj4Pep7GFkFNxhAhcgc9oekC6EfNbLOF1O6uj334nT8Z6MIfV+dYqrFW5MOgzwM1lnQDBZgPfDQF0J2RvwP6fsFfzDBsK+6f9i7+CVrY9buWVGRrTXoYxH0yTRrw4QPED/oR5YzUS4YjIjaHCC/tvndRz/sD7ZTlZ5YnpSI94uBfkd5BqirDm2A4Rvp5UImZ52C6DeZzwTCZlINeYqSf1EN9i/Wfu2ATJ+QJ/ybBVTA3UGdJP0rqtFMVMqRJTYRpNixMJz0r6qBRzzY8/PQT+aXvdA5Lg3g4zmlTT6YtmrRUxMOEd4DeD8NhSS+aN3ZkTT1FFCuLR61sRr3SQdNqUg+CPhOmRYI3p1Osq6W1i+BkQTnRewm9DWqn5NvqUXxwz6kjvYV583KhrzInivwhEutEv4dUhwzlOGWnisXiFgDVmxkdZDOK9R1Kq2nKwnTA4d9BHL3aNH5Mb7GAAFKQ2L6xOzVhdEuzWFsv8y+C6AAU0/yY0PgBzQ/RuITkNNEPor/20oX+TG/3+vb6NR+FYjGKmpqaG5mwzKBvg2EBqCpM20R9q9j+y3fBTgcAGxJPHtnIGveQugumsTK86dKLiKNX9x0ec6m4nNdVTap7w7xk177JFxD4Uxp/RPN9sACYZpjhGzQugIWuEPFfy7XKC7v2bbnQvWFeMtxHcfnyRtf27ZfiTPQq0dhK+gmaxhI+N2KYny/lszeFPl3py3o6mg8PLaRM1DHzxo7s+NZedN6ixnXSdwOXlm77/c9CGvXInAIWK9Isg74mU4Sm8ubSxz/aO+J5AOjs9PDAA73WEr0CC4tB3C3zFsI/0ppLHQBQvoFRxhYTPpFEGhRIP5819RQLCLe8ZNB2rZ59rpaud4H4D5peI70B87tIPWZVbbj/wIE2SHar88VCIXgcekScAx1GZRRhojIcInLocKiSg8XcYA5QSRHFyh/tOoNWWtZ+BlH5ZUX+DKBfg6qC6CDtEauHhwt797YVdu6MRzxMqnjkXIUMCcwhupGeChYNaWgIaJTtFxiqg8UcZp5bPHZlM6Sba22nbPFrb+UW/89bLe3PHUkPMbtswbm4kbxA82dg4TDpNTIsMOKvEfNTSTrdAnXezKzElYvHNiNSjhRIBBDVyMMQSUOHyqwkoE6KXh4o7LoN9UpH+8bu1HCfhZ074yWL32yNrlYXpdLlteNbMXvxa2/lrv1eLNzbm87Wnwf0FMwPwJSAPkfwr6WbrH3xqYcy78XZ3r0x5WXrIP020AELZXj4QxKVk5uAJnOmlZX2AzC/ALrDfC7hqzNIN6NzkIVOWaVy+2TG4dM0/55T/2i0x1HvnzU8jDvy+T6r9W6CwtOg9tE80DQWCFPH9iE3HCQkm+KZ8UJYA2IuTU7qYhz7wVwjU7kJaHc76srWTkZEiZHeAcNkmC/Pjcmsyd//2BgAuH/J0cnpjH+W1N+KPo/0NtHHpuA35t5A6bns6fhnRP3fJX9WphfRYOktNPcP/+fSY9snIJP5kgwrCZ8M+FlQ+2t1HN8+a9UQo/Fw5+HX6ktdPbsJDHeQekj0NjN0ZJV65f5XfjcKETaAeITEXTAlku+jhZ9bqL/V/txz6cm3z5mI2Ge6J0nNvWfXli0XCmvXFh3147E3QnVy9Gb3HfOuXc4VR7vazOrr5fpLUNNBOQz7AW26MmdK73Ah38BEKY9G/oz2ZojnRSQ0jRJ00kytIJeBeASmDkBVAAcQ8Rko/PLdc8f7PtQ29Z5gyWoC7YhZzRh/tWTtJ39e/OhH3wRw/j1pyRXHu+5kaKyR4zEQ7TQB1B5Im3NZ7NuBfOOGAxjB8j+/2BzXe++OybZgyemU+QJF+BqpuwbLzmEHnkp5bVNxecflFa8dui1Y8hUZv0X6GNIdphME/lm9teeKy5dXh9+54mhXG63xGZq+Ktc8Rl4HwhsAf5iJuPWlqWsvvRfTiEW49OD4vlwOh5hKDkVRuBcRvw5gzoCCccCBp6qjMs8XC/cOdJysz6ShnfQxNBGmCPTpMs2ujc9MGHIs2dLfb2u1uL4e0FcGQSak/wbA91Khsv2lO9dcHgnTyN3iSbBSabSS+oTRvgFqBiMHiH0yPZ3y2qZSfkbftRxyJQlMVdJ9oLxINAVYoxaPaiTXQBZ6ii0ZRY/L9Rio9gEmvduB73mK/wuM7hsRz62AXlO3qG+ImgWTAdgD6EdU7WfF5R2Xhyd6reY9MP8VTCdAD6TXAe0icKDc23QZg+qOmTwh+qOg7qY5gPAGhO8bGkcNtY/Vx1Q6Hry0cexImG7MUYnrSmdyFy/3PWKGL4NaOBjufYB+VAa7Ssvaz9zkpbPTlqz95PSM+f0yzIZ5jcABVfsPFBeueWfF0a42i+vrB5m8mxRh2gPp6QDfm8qG1ZKvJL1fwItZ5DZtnbK2ckvV50uIL/b3LTLDp0EsAFUDdEjEM1Tt5dKyBeeufVC+VMqNtTAbSuLG2FF/2DV7wfHCzp2na+N9QpxLJeXepsulhQ/Ul/5+20RT/QGJj4IaUrcRz6aMWxOWc1JqJqgOwcfClEqi8qk8SrtLQP1moBLHFHuaG8LnQd0Hk4HoMddPAvy/dy1bMKTEWdu3p5smtcyC9CVZPCaulHeuOPTaL39x75K3AZwe/vFxw+9UzOVAmEeDD4SbT6dsQN0PXnzOreIHYbqf0DiZ3wf658ZdOXIY0sVrrNr1y4+laxFmgJ6XaRKos6DvcEs27u7afMM8OXXChNGRqUPUOiA8KujvPG6sX3rg1dabxjlTg/ArpE6Tfoiw7w5X944fdF+plLGF1C8Q+VnSJwmej1zT1mPj0Jwx5PT2XJyz4B00tpAy0o9CYduFs5ledHbeMDiX20LZougETe/SIMLnU/5YnPXHCz3FluFgq00Tehp1PSXhX0Jk/+Dp5BeLZq2/MJR/nZ1+YRZ6GWkb6EdhMkbeQrDj0qXrc8H1oSTpS1vK7pSpafBJe7oRxwe717fX8R7bc/srNVZ0hObfB8IbNIGR3001Ho3VeGLpse0TMCjUPXcsqbyrck+cibdWeHV/122HL3W+Z8nQjfV1paKDoE6DAuGjYI3pllwYmrSuD87NRqiRNYWIFJyq7Dl1pHfEwZmdvnThwkv1xpUiEH4Iag/gRKQ5gn8hA3t0xdGtbdfAds/bkLx8x6cu7rljQ+XaY+1Gf9TLL6MX9AoH6nBEQzaMjkcYnIOLpjoi94HlQEgX5s3LjTg4A+gkfVfHqvN1prYKehamPTAnIrWL/hjNPlv47QtT8afstyQWCsiRSsMEmJxQPVLj5sFZjBuAzoGecCD0E0NfZU6hWIxueQGp3fcsvVQfXX5BDE8Dep3mDurDFvlXo0y8ZsVb15m9lRXwZJRJ989BpFZSMHoNCOfoqaHB5HqOpivVOApv0HRBlMM0O0r5Q1FT0/XB+SZaO61w4oVxuUo6B2mvEH4g6AgjT9y8nZF/2dhYv+rMc60jPkEAQJ0WXZneTNNDpGaDwR266ODr6athhAWEZIX9+z8k2XdBrQY9a4YDHoXvxJno1XC23FssFK4vILo3piakRzenYJ8h1OGGYwq+M0r5XDN9E/T5YDCZugn9l9fqPz4zPb7UjfXXFxB4MoquTG9OhcYyRPg2LSwgVRF9O92/tW3UuaEFxPWwPvmkpn3xiw3LpQD6DFIzYGG8ETM9JKNDk/XPuHDiysnCmrCy+dS4MSG3yIQnAH3BTItI5WLWj3va9rARTjHymTBMJtUK86mWxuRxNdVmNn57+c0F65PCh7qbMo1ce0TfAMMTRLgHVBMilQA+jabG68f490Ohv6GFFgqFpKu0a1dsqdtdaiLVAfoCGsalLXzMofMr5o9P6mXlBh5imGvQZFBu9KtyO5OpRueByk5Px1nRHxfCYqNmIfLRgs9Ho3565YNeGRAOWknMBsMMQFmYH5Swueq+u4CL9e3D5TBS2nz80N45EeprSD1M0zzSmzG4MhyoCALooMlBvQNqv4PPm9Jbdsx4sA8A1vzhpXGNdGWds/E5mt9H+qSBtiwMlqBBP8Fp6pXpiKTNZuGlbdmv/5G143B29+2cjEz0cUb+F4TPVeQtRmUGlgMIsFAmdIGGkps2NaW1d2vbuhsXuW9vbUpS5UVS/fM0z8M0gVQO5hFMbvSaQxdp4SjAFyoedhdH/83ZkfDcumyo01YdezRVSU6Njxjmg/4RRZhIegr0qqQTog5aNnvy8m3j+krIj7waRyluO9PTnIyqz6DQAYSpiJUhVAfCOQdfj1D/jUaFS4twsd45UkN4X6DDAOdL+WxrLpVVhnGwiJH3KbnC5N176+UhFb+vD3HVsX9LV1rH5NJxNR0YM1JD9FQjfTVUt045Ux2xY31gH9gH9ue3/wOv9ZjwWjLxzwAAAABJRU5ErkJggg==",uk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAdSSURBVFiF7ZhtbJbVGcd/13Xu52lLX3SUVkpbgQKKTCvSKRqVNMwayURF0w8zjs2XsM25ZUu2T0u2ftu+Lcs+sDSLmuiMoQ7MNGBApW5C57Q4dHOCyIsKpIXxVvpCn+c+/31o5yg+pTWjZon+k+fLc1/n5Heuc871cuALfU5lk7JqkwPOoVH740Q6iGCaQrYxmgBURivF1RexIBhXmzNLKWdk7Mqn7Dz6KIc/K9jzgs5ao4XAvTKWm7hEUAJEoA/YjXimKMcf9j9uQ1MNmoz3oe4hNabiETNuR1QDqcGAIAD1GHOBuuEM01mhdjbZmakELejRqodVlsnzM8E3gQqJ7YiNFtgHTENcC9xuUBfFDk/5+aGErbRbbqpAC3hUFnI0yVgGVGFsdvhtf8IrJ9facdYoUw1dIdIj54cYVyjhnksG2dYDUwbqn/inDXNjKVADnCCyaaifl0+uteMAtFuut529KTwPbDNRBlztWWaMRofPCBSQMQsoBXoM9h37vZ0aa2GKzhGJNzEMUREDM8ebb8pAEREQ4Fhhm2LHDTIAGF9KIrfWfMQC2jTuBZ0K0ANAH8ZMjMvLV6tyzPdWBeWpN+M6hLmY4XB/Vnx/zgG+dsV9qqFV4UKCFrj1stqHWBqdXwI3An8R/M5hay7hWNEZsmlCg4lWxHdNZEwcCWKGgbt41yPr3dg6DG/vf5xTYHEKQIFvqXhmlp8YPIiow3jbYLPgfaDUjOuJtJgoMdhhsDGJLPbINSYuDSIHdIWUZ9LI9ul53jsJaQK1Gag1o8IghDyDMnozRXz46lOjl/VTgQI1D2q2JTxC5C4ZdUDxWYOiiz4iOwzay0+xPl9CVSruCcZdHlnkohLR77ApRNZZyrA7LSaWu5jnosgjvQavB/F8EFs6F/MBbYW9f94UOuMBzcpkuIPISowlBjNNDCI+cHjVU546MJvO/0y+qFXZXDHzgrgvEbeZmOeRUoejFsk4lJvIuThtIueRUhflDkcc1sWUX//pOdv3qUFBxhqS+jxVaeCnBg87vAP8ZniIJ3qGGKLD0jFD2uSL/sE0D3wlGKtd3GaRKgf3SK+J1xDdHjnlxsIgbrJIg8Mxjzw2UMIvujps8FySCUKJiXZyH0qH69Zw1CIYDBI52vOE9Rcc0mbxHTjd1KRt+Qbec5hu0OIiZ0a7G08AB4uOoaSKovwwLQ4/8shSxPKKQZ4HvX5uVTa5mGcmf0Aadb9G4+x51d1N2tRAcJhlosjFS1E81+XsO2sXhpau0OaywKUmGj1Sa+JG4A1G4vjHmnQmccAFQRDSCc1pbsZDpNrFNBdm8EYqDp57VF7bRJ/DviAOOpQFUVtovklnEY+jBzqes9RJjjPBtHFuRCaOZELT+J6bvEfjfz2anYR9Zycx4/SaGAgRJeIahqmBsYXLHTdS5ilzPFLrot/FwULzTdKjMveR/GLCpIkX2NyMnxkkTRIOmfiyQXPWeHP5Ck4OntChoiKUJBSlCV81cY9Fprl4K4ouCmzaBKCy5mbCgRoqSZnugEGJw4zGb6j08iGGOgqEp8btlKiEJQmsNnGti2yAYofvmNF48cXsCJF+GZe5uAkx30WPR17JDrCzUB923jhau1qVpbDKI3cZLDFR42LQxQce2R7gafawtbt7pLJf1KpsRZ55ibjXxW0G8y1S5nDURSaIciLDLk475F2UeqQMOGaiw8Wv1r9kewuxjOvReferPkn5nkXuNqh3UewCEyUuFjjUmFjgDdTPr9aTVYEZIeVOE6tMXGkjFVW/wQYT6yzPMEZLELeYmOuQMdEL/JnIRsSLjS+zf/04PIU92qxkYT0/Br5t4lIXu0xsCZF/ShQlcK2JWz1SEcRbJp4LotHEYkbsZaLLI+sssO2E2FOdJ3WnVjnqgAoTHozBTEqPD/BRRxfHz9d6F+yZFszhSstzi4k64HWJRx1eHBrgSLaMRCmdQbzv4gcmrjJRg6g0ERx2ydhg4uWYYWfns2PKvL2jv0+tQltvmTzXmZhtImdiow3x7FsbrPesxZy8/m6Cw2ITK13MNHHIxAsyXsiK1y4upucTF+1/0CdB28B3M9ugnJGq5t2dGzhyzlpiDh2eJroRt5s46uIxEx06xa4tnZa/UIDjgwIm3MBcRIukhc5Okie6k5PAxQkiL546zO7u7gsPCYXbZdw46OK0i0qHuU2tumiskSxrVHrkqkTIxWAU/2pomLhYuXCgI1nhr0EcdFEaIiuSlJYbWjUdZE1NyixbyZxkZMuXWWTAxd+zZzh0Ic/kuSqw9ab+49p5URlbXTS4uNkgeJ65N9/JviCKTDSZWGlQbfC2iWeOHWdgqiDhPJnpulW6zAOPWGRVEDUmUhcDJoKLchdDJnYZPEmOtZs3j1NITzUowA2tmu85vm7QEkSNQXGIiEifwx7EhtwAT3d2Tv2z44Q906JFZKrnchmBxRapMZELKbvJ8rctf/w/ecj9WG3y5k68r2/EvqGB2PEZP41/oc+t/g2T7Sl0ZJVIiQAAAABJRU5ErkJggg==",ck="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAYZSURBVFiF7ZhfqBxXHcc/3zN79+5mE5O0am2ioqXF1oqlQR+MVaw+ig8+GKrQ0lRQVCpYFQu+DNiCLSGFPgiKehX1xTwp+OBTU4VYxRQKplEsTWsT+s/EJtfd3Ls7c74+zMzuzO7sjVR86v3CMDPnd87vfM/vnN/vnN+BbWxjG28sqK3Qd6c93pxcOyYMGoJxd7HyGKAqn5evFK9JvaxWZ9ys3aU3JBm+qJ8c3tiSqNM0MMpuyNS5CyfvF1qFAA5F1ajad/m2sEMhoyafa+NKTgDX3nFGwWIz2k/J/unq2ueekeRK1pkj3slCuENwl/E+m4AjmFK5phoBXHVIBNW+XX8DRBxCqSeWJEu5GvaKQboFtPH0oWMP120+TzRIfBh4m/GzwJPB4Xyhx7PRu+JrsAuS1djLQVDJUNmsJDaVV9RU/V6NOAC8y+Ij7x0MjzQs2KB58aLo7xrg2BHhdB69lifxr2wArJYM8+bQ1CtITChlvZowlk9lBmDcm9NR1feNgj7S9YKdZ4eDxrKctygoAkJ4uBriOX33O88t1Pk/YPPun++KCsOwRL5IdDqHcVH0X8D3Pro6gRulZNCJ8QK93S9w5M6RmDnG60E70anRW6PX1tgc71K/+1nsmyfSS4zW/8yXv/dHrx79mx657/JWTZdZs52oKJ3AQHJFXk7T8Oor7HhL0t8zMhF1A8QbbH0cq0/gDqPfbE76a77nRyf048+vtyrqAlll9EUDtQwiFh6LoTteFFcEQa/e89CuyaXVW/b0+5/OOsmXVjqdQ5shFpuEDLLAO2UOhci3sx3jg/7a0f5SpYqUMWxBtHyNhuXTbtD619Or3+T4CQV9AXNQikD4Q8jzx0lCGbamLQTc5shhNne+bPupejBvkvUshNWwaNHg0qLLneni/ffv2aHkU0niB4U/Cu55tuXMOqTxCOmTE+Uf4lsP71zUOqn1nS9I26e+xfQVnKadQex/wAlfNPHdljvlNBcdrQAYYabl1YMH4A+Oh4N3tmsv+w4AZxuSdmdi+aJmxFuDfFs0B5BD4XjMpizmtpINwahQI2aRJCKFa0W4aqkl5FY7tRCd7o+teiZJeEewb4W4glWrb6RITDobivmfrASh3vQcEBPARPsZRdo9vyLZ0vXyOBpiqXxeV9wreT/F5NacxrLpy5O+w8pvleePO6+6XCGGfLQaw5DNyxusdtuJTskuMm216Mz6i+FJykIkdISQjKkquwPcTND3RT4iCaWiAM4czK9I/Ev94Bv/bGc4htApDiladOQWi5bHsCUOZbQu/Mp05NMoE4XDQHBrcYaLoOK4ZytaOt5OsKm9WtJvn5O071py6zoB6HhyTtIpiEaFd2u6XCxEB9ydPbGrQJ4kPo382tZEIyp1zqOFaBX34jSTaKDXO2t8QuKFahdzI2aWIWYalsjAj+VZPM0j9y2kGA1UEaeFVUvAZ5oxtOpK03GSbZ4AryGvg4vDveJ8zAScg/8ena91u5zRsvU0xfKT2/Kp30Ln8R07XgqBXxiOSn6OMiNqWBJPkJ+Q4oNdXT7OkW+OtiZZEpy2b6LFmeqYtJbenqbZY2l65mOj0Q9Jun+J9kFL75PY65wJ+EUUTmKeSDo6yUPppStas0s5Ce2B9ApEl+P2NM2As07TX4csO5lZ+7EGhJg7dl7b9PgfO58/dV7Hji1u3EtRrfHFiX7dRCsoTcfAmfL5HzAGVIQ0x4X4tBXRAUmyzw985VLx22tKL/cWW0xRO3JO/Xyr+j2yTe+LMFi2QppEd+920IWhTSZ8E9bhmIcLxVRUM1heSKyMi0uIWJbFKlQE7GyWWodQlo/LthRbc9WOQPQEkuQqcm4CMkn/5l97G4znLHoq2tf8HsJ7kK6L9vXFAbrM0V0ciD1L4mc5fRUDqzRG5QVFqNpSvgXEYgCe5f44ohCizVnZv3t6+HwjRjWvdGzxwFevi+hOmQNR7jequrJgUvzn9SualmuclrJp3dqVEBRXPiJchvBkx/4Zj977bD0LaL8kSz/TJblmPyGrXZJ1a9Fq/qKr5fKsUbbScr7pLpbF3pCXz5/TsXR5sraNbWzjDYL/ANPP2oDpD/R+AAAAAElFTkSuQmCC",bq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAkCAYAAACNBsqdAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFdSURBVEiJ7ZbdcYMwEIS/0EDoICqBEtSB6SDuIC6BDiiBEphUgDuIO7A7cFKB8yDJHPrFQ97inWFk68Rq7w7QQog9MAJn4GbHCfgA6sj6IpQgS11noNlCerUqO2Cw/2VsNfkkbhzsRj46T3lszQJa3DAW1h48AVmMzCmuac4Xs+okKuZ6HYHvFcSfdlRkylGJ4GUFqRPgoLzfWhI7/KwkjqHGlGhy5FVu9YPErj9vJWK9ZacUcY9Jq/hIPUrsnhT118Sb8SR+Ej+J/z2xPBeTR1klgq9i/mTHhvALtxOkl5wCd+pOYq5h6SFazId/IG4V3sX83cz0YlKq68hbLVkSaSHu0KRNyIGlvYo5JZXIAlharNYP2vQ0oaGpWXo+5cVRQtkVY2VLUMz9uWFKF0VLmHLMVdZ2Y6m05PnQhDV1xttdfiP7EqmDYu5yyYTvUyQvhQ12hC/JCWMMjzl1v0cfjAryhqYGAAAAAElFTkSuQmCC",pAe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAZvSURBVFiFzVk9bxtHGn7eGYoyARcsrnCXNeAixQGmgSuuOFGb7rrYQHpLPyCw3OnIAKKAnMJO9C+Q1AeQAlzvlZwiRQAzfYCsgRTuskUASrucea7Yr9nliqJ4ByRvxdl555lnPt6voWBN8fdnvtHSU5RtijwB8ATAg6z7d5CRQP1oxVxq4TT4uhOsM4/ck5RHrQ9I+hDx7jlXBMpEtVtvgpFE/1eCBTFg556kbpOJ2tg4XIWoukthazDbsUq9XUqODAFMiyYQZN9ukz2bJL9sDeLbMVch2B/GxyL6ZOlxkqOro83H4hAUSqDa7WcAJkvguyI46Q/j42UcWk0f/RG7JknOAfi1rh8A/L1G7rAJIzu+1/3BTQSRUQ3jUwDdrL23NYx7emPjRdORN+6gSZJzccmRoSKeZcDpJyC4jZwrV0ebhwQCB+uRMuaZewUE8LMNWZAFgv1hfFwhJ/yorP3MQj5HuepIG7N7F7lcKroinlHwsyvws0uy6bgrBLeG13sA9ioalAdowYNwz/k2CcadcFWCwbgTCnBaklEH5ib2Afylprq3NZjtNBL0R+wK1EEDftdSv0W5e1Dt1ptVyRWkjMmuAwERT5Scu5gueX9/5uXtwkhskhw4AyJa7oqSkwaQa5vMD7YGs5809BTtjfA2f+aP2EWceAamR9HbACJAqnhkqKzdtVq/TRmKR60PAOymhDMgmyS/lYNkdHW0cejvzzyj9YksWnNdomyxD502GhZXEaFciJ2/DsadsD+4OXCtXRnzOBh3QgUANp6/cifLjzAYd0It5k5LzYg8rLWXkCMAQuz8TX6XlbVnrmVnu5jdwboBOEdmKL1ixcD3pNkFZILUMa8aU6cCnKZjOU0PTmB0iR2MOyGFxd0m6QNAy/9q5ltWDODMRRboT9IVA4T8+O6oc+r25/eMIt8Q/Ge2kFMx5gwPHkzr97M/TJ4C7JXYpWjDC6uRuhoRz9+f+crdIZBhMJLQHcQMLP1tPtS3JhhJFBy1pwA/ljASBuNO0GQ8LoaLDaS7CCdkGi09pai3Cw1RF3VAIb2iYavk1xFt6MRsB7ucMch/KeptRdhyhzj/aVG/dAt6sz1d6L+vKF3uakMS4nKg0JP+MP4NmcUJ8D2c8AMAbpolIt+C/L1pXgL/QJpVA6lRNC9G5CHJL4qmE2GyL4/yuwwgkv4wZiPQn0TuTFj/aGkh9WX5EZ+SNUMQjpzGBLzF9wmfA+gBaSomLC97VQ9doOJ3R243gZ6kWAAQtQCEObCluaz7uf4wLgAUeZa6lEXZHsYeMxyhBFdHG40RyB/Rs0mSE4zqemk2o1OCZKTE2TGR1tMFRLe2sGZpbF1FzE3s+t2F03A5CNRUWTGXDht/gZ+UC3BD09qiSt/nYpcT2vx4YcVcKtdxAui5uRgACKR0rLXQtI64GC42kB6/6xu1cNoKxp2gP7gJ8w6rWi8BFPeCMB8kM3Y3NPkjdnF93TMKnqD1SSUkCv3+IAEx/wCqSG+2p3kIJdgTB9slaOP5S6dSj4KvO0ELAEQkKB2y3fH3Z2d5GqQNp1bnK4a/PUjOCduzSeJB6wyv6koF8CH0BRoQwCYJ+sM4EkpA5xppqsBdsGM8AGUCZH6wTMcBiHhWazc/DN3JKXy+xrMHAHRZuo9UrCmMJMtJi4w+z0mLDd0exiduWFPGPLZKvazVtHWJCEwVJaLwr3BDHSWk0APgYUnyStjXaZql3xd6WUYPODWJGHNIpYpHocqARdQ9Zc13bmWXLfBJNsHFpePf/BE9E1/7IvqkDiVQx1ajUg+5RVkR6oJxJySs6zRLcmRYKbQFvXuVnSMJBa3SA9Tw3LlouevmkZVY/O6ocwq6oS1XkhcueQI7dXe0TPz9WbWuhjpVkBcNqpN332xWctKFZOHqaPOQZEXJgufaVl+srNaNTxVNYrR2y9dIgd9ZsDKelIurf7df18c2ZjO63d4lpSSZWvZ7iHx01Hr9wU1ToV+R/uDmoFa2/moF711PQMh/9Dz5smn80gfM7K1kb5kOssdIJslx4QUoI9VuvbFx/OoOLwAAk6adW4kgAGz96+b5LS8MpZAhRCJU0q1q2GoaQ9jDevZ0b4JA5uXj+avsov/PGU1Wlh6u4gnu94i+FlGm05ChiASrEluLoCv+VzPfUHoK6imBvwF4hPI5LQLwq5A/W+GlNpwG4/X+hvgvHbA21g5r0sgAAAAASUVORK5CYII=",hAe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAY/SURBVFiFzZi/bxzHFcc/b3ZPcKGCRQp1PgEqXATQCUiRIoAuXbpw4aikzIVNAiwMU38BySolqYoAecSSd+ocYmkgvY6ACxcGdO4NeAW4UOcrXAS+3Xkpbvd29gePRyZA8oArdubdd77zZua974xwTzuNvu7jmZ6IeQ48AX0C8lHe/SswBb5XtdeImWxtBOP7jCN3cT6O4m6nwx6WPkL3jmNNBY5MyuswDKb/VYILYsrmHUm1D6ocmYyDVYia2xxOhpebHY+3S8kpCTBxWsZ5W7u7sJv5/HQyjG/GXIXg2TA+NGKiZcspsP/Fy+AxUhIUGHsZz0Q5WgK/ZoTobBgfLuPgtzVGUbyW+cQK/WqPfgfyR5fc5xvBQRtGvnyvzkbxVGHfmdJ3oJ8AazCP5mAU97yUoG3JWyOY+cS45JTEpjwD+cRxG99EzrXcZ1xi6aNZyrPaFujnYzasQTAPeUkO/TDL+LPn81fyWQPTWUp4G7nCKr5C1/Ns38t4Bvzokmxb7grB0+Hlrgq7VRf5yPfpKmW7wNFOGCSrEtwJgwThvBzU7GU+feB3rp8KuyfDy81WglEUr4mYvRb8NYG3lNHDpLxelVxhsxnldpgfutjFdMkfR3G3+F4cEuux5/xhClkIXtQE0X/ZjuydDC9/IDOTDiQ35bMoitdm0MWzPWN4jjJt4CmJZmkovv+2IN/psAfzbSEFUObzSznB+ek8juJuxyeicZobNs0n+9D5pjm5hl3NUl7thEFyNor33NM+S3m8EwaJAbA+X7mDFUu4EwaJwq0nNSfysPZ9Gzk0TV8Xe/m3lAv3ZOdRnO/B+gGoLJnanoP5rVUbinDEvHKsWlMnCOdWbYhbcTyzwJ4Hw5Z7285XzT8dxX2c2f6WcuEiG2M+Vs3JC99vb3x67vYX+8z48nfQv+SzPNdZeuHjT+r78+xN/FSVXoHt9qWZuer4HOYY3dPo676pREhJ6umjAAOw1r6vhyYMg+l2GEwQ/VC0iZJshS/GbYfHxXCxIU9HtQibXM/NgQ1XdUC0rMMimjT672qZLQlos8aLlFVHxDw3OLPIrP2hASjl8s9Sb9Lov6MpfhnVFhFS49CVwSj+hXIPfotUyg+uzBKRfyj66w0j/wl4kn9NXHXjmiAPVfVvTsN5FUceLfYyTGUwirV1wP8Tu1Ww/q/NB6f8COdSU8JudhfhKC9XDVNYh8V+HosrsVwT1lQreXff7dY5xnr+OfWBpAC21l5vv6zmucEoXgBkMy62w6B1bw3exN3iwMkSrZiXz4LgtO53MrzcNGLWc7ZTkxMEwDPmaQPRiaiQ3lq+brOOn7l5t7EaFQ7CxKja64W/togCcZbcKU33NVXptmIX/XaxvKjaa1NJnNBztRiAOOmiXpruYy6G1FLRcRR3K7lRzMTfCl+MB8M4KToe+HyGo2Cste9FTD6jMqlHUbyWkvbUM11PzMdun0L/bBSTqX1vRKez1JsUJXRZ6Xzg85mT86ZbG8F4LlgN4yIhq7J5HMUXi5qc2Qn+Ihv1B6M4RullQlfwkTmhuvUV+iafWMeHwSieMj/Z/cVEMjN2J5zVVNWcGk05/sAr9WGKn9QGX7/HswfMU9m625A5ci3XpAtFX2jSxdPH4E0cuWVtlvI4D/n+kkGnlLrw97ilbp4duvnvxtOval/lMutd4efetxd3ktmMg45XPgp1fN7pzcC7s5RvXGmWT/BJPsCVm9+Oo7jrebZvxER1IBFz2PGr9yH3UrbYXDthkFismzRLckpSuWgLvbteOz1xMkAdrxqI0NWRlVq8/fLT83rpAbAZQYX8/CB1VyV4HMXVe7VwbjOCup8oR19sBBVN2hAL+dJUnTziLDOVF6vODU8VbZbfDBdLmKV8Y7zG/68+fxm8qv+3Vc1486eKkqTQ7fi8Q+SD49Y7G8VtF/2K5T59p+ln4/POzQSi/FPFftn2/6UPmGfD+LD5FFIDyB8jsw6HRRYQ2Dcpr63PV7dkAUQ5aovcSgQBBqN4HSpL1DQlQZjiyC2U7tJ8qSQWe1BXT3cmCPMsn0djdynRVU04n804WCUT3OkR/T8iqiQYxqsSuxdB105HcR+1PTHmKcofgEcUz2nKFOFn4EdVe01mJ1vhi/F9xvk3IzLAsBWE17kAAAAASUVORK5CYII=",wq="/assets/26-BsA4Ghua.png",O0t={class:"history-sidebar"},M0t={class:"history-header"},P0t=["src"],N0t={class:"history-list"},R0t={key:0,class:"history-loading"},B0t=["onClick"],L0t={class:"history-content"},F0t={class:"history-title"},U0t={class:"history-time"},z0t=["onClick"],$0t={key:2,class:"empty-history"},j0t=["src"],H0t={class:"chat-header"},W0t={key:0,class:"question-title-card"},V0t={key:1,class:"default-title"},q0t={class:"chat-content"},G0t={key:0,class:"initial-content"},K0t={class:"ai-intro"},Y0t={class:"ai-avatar"},Q0t=["src"],Z0t={class:"function-cards"},X0t=["onClick"],J0t={class:"card-header"},egt={class:"card-icon"},tgt=["src","alt"],ngt={class:"card-description"},rgt={class:"card-header"},ogt={class:"card-icon"},igt=["src"],agt={class:"card-header"},sgt={class:"card-icon"},lgt=["src"],ugt={class:"card-header"},cgt={class:"card-icon"},dgt=["src"],fgt={class:"card-header"},pgt={class:"card-icon"},hgt=["src"],ggt={key:1,class:"chat-messages"},vgt={key:0,class:"user-message"},mgt={class:"message-content"},ygt={key:0,class:"message-file"},bgt={class:"file-display"},wgt={class:"file-icon"},Agt=["src"],Cgt={key:1},xgt={class:"file-details"},Sgt={class:"file-name"},Egt={class:"file-size"},kgt={key:1,class:"message-text"},Tgt={class:"message-actions"},_gt=["onClick"],Dgt=["src"],Igt=["onClick"],Ogt=["src"],Mgt={key:1,class:"ai-message"},Pgt={key:0,class:"web-search-capsule-outer"},Ngt={class:"ai-message-main"},Rgt={class:"ai-avatar-small"},Bgt=["src"],Lgt=["data-message-index"],Fgt={class:"ai-response-content"},Ugt=["data-message-index"],zgt={class:"stats-left"},$gt=["innerHTML"],jgt={key:0,class:"progress-capsule-inline"},Hgt={class:"progress-bar-mini"},Wgt={class:"progress-percentage"},Vgt={key:1,class:"stats-right"},qgt={key:1,class:"question-summary"},Ggt={key:2,class:"report-loading"},Kgt={key:3,class:"reports-list"},Ygt={key:0,class:"report-loading"},Qgt={key:4},Zgt={key:5,class:"ai-text"},Xgt={key:0,class:"ai-markdown-content"},Jgt=["innerHTML"],evt={class:"divider"},tvt={class:"message-actions"},nvt={class:"left-actions"},rvt=["onClick"],ovt=["src"],ivt=["onClick","disabled"],avt=["src"],svt=["onClick"],lvt=["onClick"],uvt=["src"],cvt={class:"right-actions"},dvt=["onClick","title"],fvt=["src"],pvt=["onClick","title"],hvt=["src"],gvt={class:"search-sources"},vvt=["onClick"],mvt={class:"search-sources-content"},yvt={class:"sources-section"},bvt={class:"sources-grid"},wvt=["onClick"],Avt={class:"source-title"},Cvt={class:"source-description"},xvt={class:"source-badge"},Svt={class:"related-questions-loading"},Evt={class:"related-questions"},kvt=["onClick"],Tvt={key:0,class:"recommended-questions"},_vt=["onClick"],Dvt=["src"],Ivt=["src"],Ovt=["src"],Mvt=["src"],Pvt={class:"recommend-list"},Nvt=["onClick"],Rvt={class:"chat-input-section"},Bvt={class:"input-container"},Lvt={key:0,class:"file-preview-section"},Fvt={class:"file-preview"},Uvt={class:"file-icon"},zvt=["src"],$vt={key:1},jvt={class:"file-info"},Hvt={class:"file-name"},Wvt={class:"file-size"},Vvt={class:"input-box"},qvt=["title","disabled"],Gvt={class:"icon-container"},Kvt=["src"],Yvt=["disabled"],Qvt={class:"icon-container"},Zvt=["src"],Xvt=["disabled"],Jvt=["disabled"],emt={class:"icon-container"},tmt=["src"],nmt={key:0,class:"recording-indicator"},rmt=["disabled"],omt={key:0,class:"stop-text"},imt=["src"],amt={__name:"Chat",setup(e){const t=j_(),n=Yl(),r=K(""),o=K(null),i=K(!1),a=K(!1),s=K({}),l=K("");let u=null;const d=K(new Map),c=K(!1),f=K(null),p=K(""),v=K([]),h=K([]),g=K([]),y=K({}),m=K({}),b=K(null),w=K(""),A=K("success"),S=K(2e3),{isListening:E,transcript:D,error:_,startListening:M,stopListening:O}=O0(),k=K(null),R=()=>{k.value&&(zo(),k.value=null)},N=()=>{document.hidden&&k.value&&(zo(),k.value=null)},W=K(null),B=K(null),z=K(!1);K("");const j=K([]),q=K(!1),Y=K(null),U=K([]),F=K(!1),H=K(null),re=K(!0),X=K(!0),te=K({});K(!1),K(new Set);const Z=K({}),le=K({}),ve=K(!1),Pe=K({results:[],keywords:[],total:0}),Ae=Wr({maxSize:20*1024*1024,allowedTypes:[".docx"]}),he=K(!1),Ee=K(""),Q=K(""),me=ee(()=>g.value.some(ae=>ae.type==="ai"&&ae.isTyping)||!re.value),De=ee(()=>l.value?l.value.substring(0,20)+(l.value.length>20?"...":""):"AI问题分析报告");ee(()=>g.value.some(ae=>ae.type==="ai"&&ae.isTyping&&(!ae.content||ae.content.trim()===""))),ee(()=>g.value.some(ae=>ae.type==="ai"&&ae.isTyping&&ae.content&&ae.content.trim()!==""));const pe=ee(()=>p.value==="history"?`确定要删除历史记录"${f.value?.item?.title||""}"吗?删除后将无法恢复。`:p.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),ie=ee(()=>p.value==="history"?"删除历史记录":p.value==="message"?"删除消息":"删除确认"),ue=ae=>{if(!ae)return ae;try{if(ae.includes("%")&&(ae=decodeURIComponent(ae)),ae.includes("\\u")&&(ae=ae.replace(/\\u[\dA-F]{4}/gi,ce=>String.fromCharCode(parseInt(ce.replace(/\\u/g,""),16)))),ae.includes("&")){const ce=document.createElement("textarea");ce.innerHTML=ae,ae=ce.value}return Bt(ae)}catch(ce){return console.warn("文本处理失败:",ce),ae}},Be=new Map,Me=new Map,Fe=(ae,ce,Ce,zt=50)=>new Promise(_t=>{const mn=`${ae.file_index}_${ce}`;Me.has(mn)&&(clearInterval(Me.get(mn)),Me.delete(mn)),ae._typewriterStates||(ae._typewriterStates={});let wn=0;ae._typewriterStates[ce]={currentIndex:0,isTyping:!0};const Pn=setInterval(()=>{if(wn<Ce.length){const Cr=Math.max(1,Math.floor(zt/10));wn=Math.min(wn+Cr,Ce.length),ae.report[ce]=Ce.substring(0,wn),ae._typewriterStates[ce].currentIndex=wn}else clearInterval(Pn),Me.delete(mn),ae._typewriterStates[ce].isTyping=!1,ae.report[ce]=Ce,_t()},1e3/60);Me.set(mn,Pn)}),ze=()=>{Be.forEach((ae,ce)=>{clearInterval(ae)}),Be.clear(),Me.forEach((ae,ce)=>{clearInterval(ae)}),Me.clear()},Ne=(ae,ce)=>{if(!ce)return Re(ae);const Ce=`
- 📄 文件信息:
- 文件名:${ce.name}
- 文件大小:${xa(ce.size)}
- 文件类型:${ce.type}
- 📝 文件内容:
- ${ce.content}
- ---
- `;return ae.replace(/<word>.*?<\/word>/gs,Ce).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},Re=ae=>{const ce=ae.match(/<filename>(.*?)<\/filename>/),Ce=ce?ce[1]:"未知文件",zt=ae.match(/<filesize>(.*?)<\/filesize>/),_t=zt?parseInt(zt[1]):0,mn=ae.match(/<word>(.*?)<\/word>/s),wn=mn?mn[1].trim():"无内容",Pn=`
- 📄 文件信息:
- 文件名:${Ce}
- 文件大小:${xa(_t)}
- 文件类型:${Ce.endsWith(".docx")?".docx":Ce.endsWith(".doc")?".doc":"未知"}
- 📝 文件内容:
- ${wn}
- ---
- `;return ae.replace(/<word>.*?<\/word>/gs,Pn).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},gt=ae=>{try{let ce=Mg(ae);return ce=Lt(ce),Yt(()=>{ur()}),ce}catch(ce){return console.error("Markdown渲染失败:",ce),ae.replace(/\n/g,"<br>")}},Bt=ae=>{if(!ae)return ae;let ce=ae;const Ce={"\\alpha":"α","\\beta":"β","\\gamma":"γ","\\delta":"δ","\\epsilon":"ε","\\varepsilon":"ε","\\zeta":"ζ","\\eta":"η","\\theta":"θ","\\iota":"ι","\\kappa":"κ","\\lambda":"λ","\\mu":"μ","\\nu":"ν","\\xi":"ξ","\\pi":"π","\\rho":"ρ","\\sigma":"σ","\\tau":"τ","\\upsilon":"υ","\\phi":"φ","\\chi":"χ","\\psi":"ψ","\\omega":"ω","\\Gamma":"Γ","\\Delta":"Δ","\\Theta":"Θ","\\Lambda":"Λ","\\Xi":"Ξ","\\Pi":"Π","\\Sigma":"Σ","\\Upsilon":"Υ","\\Phi":"Φ","\\Psi":"Ψ","\\Omega":"Ω"};for(const[zt,_t]of Object.entries(Ce)){const mn=new RegExp(zt.replace(/\\/g,"\\\\"),"g");ce=ce.replace(mn,_t)}return ce=ce.replace(/\\frac\{([^}]+)\}\{([^}]+)\}/g,"$1/$2"),ce=ce.replace(/\\sqrt\{([^}]+)\}/g,"√$1"),ce=ce.replace(/\\int/g,"∫"),ce=ce.replace(/\\sum/g,"∑"),ce=ce.replace(/\\prod/g,"∏"),ce=ce.replace(/\\partial/g,"∂"),ce=ce.replace(/\\nabla/g,"∇"),ce=ce.replace(/\\infty/g,"∞"),ce=ce.replace(/\\pm/g,"±"),ce=ce.replace(/\\times/g,"×"),ce=ce.replace(/\\div/g,"÷"),ce=ce.replace(/\\leq/g,"≤"),ce=ce.replace(/\\geq/g,"≥"),ce=ce.replace(/\\neq/g,"≠"),ce=ce.replace(/\\approx/g,"≈"),ce=ce.replace(/\\equiv/g,"≡"),ce=ce.replace(/\\propto/g,"∝"),ce=ce.replace(/\\in/g,"∈"),ce=ce.replace(/\\notin/g,"∉"),ce=ce.replace(/\\subset/g,"⊂"),ce=ce.replace(/\\supset/g,"⊃"),ce=ce.replace(/\\cup/g,"∪"),ce=ce.replace(/\\cap/g,"∩"),ce=ce.replace(/\\emptyset/g,"∅"),ce=ce.replace(/\\land/g,"∧"),ce=ce.replace(/\\lor/g,"∨"),ce=ce.replace(/\\neg/g,"¬"),ce=ce.replace(/\\rightarrow/g,"→"),ce=ce.replace(/\\leftarrow/g,"←"),ce=ce.replace(/\\leftrightarrow/g,"↔"),ce=ce.replace(/\\forall/g,"∀"),ce=ce.replace(/\\exists/g,"∃"),ce},Lt=ae=>{if(!ae)return ae;const ce="background-color: #EAEAEE; color: #616161; font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; cursor: pointer; display: inline-block; margin: 4px 2px; border: 1px solid #EAEAEE; font-weight: 500; transition: all 0.2s ease; line-height: 1.4; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;";return ae.replace(/<file>(.*?)<\/file>/g,(Ce,zt)=>/^<span\s+class="standard-reference"/i.test(zt)?Ce:zt.match(/^([《「『【]?[\s\S]*?[》」』】]?)[\s]*\(([^)]+)\)$/)?`<span class="standard-reference" data-standard="${zt}" title="点击查看标准详情" style="${ce}">${zt}</span>`:`<span class="standard-reference" data-reference="${zt}" title="点击查看详情" style="${ce}">${zt}</span>`)},an=K([]),Kt=K(0),Ht=K(!1),pt=async()=>{try{Ht.value=!0;const ae=await zn.getHistoryRecord({ai_conversation_id:0,business_type:0});ae.statusCode===200?(Kt.value=ae.total||0,an.value=ae.data.map(ce=>({id:ce.id,title:ce.title||dt(ce.content),time:it(ce.updated_at),businessType:ce.business_type,isActive:!1,rawData:ce}))):console.error("获取历史记录失败:",ae.statusCode)}catch(ae){console.error("获取历史记录失败:",ae)}finally{Ht.value=!1}},Dt=async ae=>{try{const ce=await zn.getHistoryRecord({ai_conversation_id:ae,business_type:0});if(ce.statusCode===200){if(!ce.data||!Array.isArray(ce.data))return console.error("响应数据格式错误"),!1;const Ce=await Promise.all(ce.data.map(async(_t,mn)=>{const wn=de(_t.user_feedback);let Pn=null,Cr=_t.content,Ir=null;if(_t.type==="ai"&&mn>0){const uo=ce.data[mn-1];if(uo&&uo.type==="user")if(uo.content.includes("</filesize>")){const Bo=uo.content.split("</filesize>")[1];Ir=Bo?Bo.trim():uo.content}else Ir=uo.content}if(_t.type==="user"&&_t.content.includes("</filesize>")){const uo=_t.content.match(/<filename>(.*?)<\/filename>/),Bo=_t.content.match(/<filesize>(.*?)<\/filesize>/),Al=_t.content.match(/<word>(.*?)<\/word>/s);if(uo&&Bo){const Xs=uo[1],_m=parseInt(Bo[1]),b2=Al?Al[1].trim():"";Pn={name:Xs,size:_m,type:Xs.endsWith(".docx")?".docx":Xs.endsWith(".doc")?".doc":".docx",icon:Dr(Xs.endsWith(".docx")?".docx":Xs.endsWith(".doc")?".doc":".docx"),content:b2};const q0=_t.content.split("</filesize>")[1];Cr=q0?q0.trim():""}}let qo=Cr||"",Or=[],po=_t.summary||"";if(_t.type==="ai")try{const uo=_t.content||"";if(uo.trim().startsWith("[")||uo.trim().startsWith("{"))try{const Bo=JSON.parse(uo);if(Bo.reports&&Array.isArray(Bo.reports))Or=Bo.reports,Bo.webSearchRaw&&(_t.webSearchRaw=Bo.webSearchRaw),Bo.webSearchSummary&&(_t.webSearchSummary=Bo.webSearchSummary,_t.hasWebSearchResults=Bo.hasWebSearchResults||!1),Bo.summary&&(po=Bo.summary);else if(Array.isArray(Bo))Or=Bo;else throw new Error("Not an array or valid format")}catch{let Al=uo.replace(/\\n/g,`
- `).replace(/\\t/g," ").replace(/\\r/g,"\r");qo=gt(Al)}else{let Bo=uo.replace(/\\n/g,`
- `).replace(/\\t/g," ").replace(/\\r/g,"\r");qo=gt(Bo)}}catch(uo){console.error("历史记录处理失败:",uo),qo=_t.content||""}let lo=0,Go=0,Pi=100;if(Or.length>0){const uo=Or.filter(Bo=>Bo.type!=="category_title");lo=uo.length,Go=uo.filter(Bo=>Bo.status==="completed").length,Pi=lo>0?Math.round(Go/lo*100):100}return{type:_t.type,content:Cr,displayContent:qo,reports:Or,summary:po,totalFiles:lo,completedCount:Go,progress:Pi,file:Pn,isTyping:!1,id:_t.id,userFeedback:wn,userQuestion:Ir,searchSources:_t.type==="ai"&&_t.search_source?ft(_t.search_source):null,rawData:_t,webSearchRaw:_t.webSearchRaw||null,webSearchSummary:_t.webSearchSummary||null,hasWebSearchResults:_t.hasWebSearchResults||!1,webSearchTotal:_t.webSearchRaw?.total||0,showStats:lo>0,currentStatus:"completed",statusMessage:lo>0?_t.webSearchRaw?.total>0?` <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${lo}</span> 个知识库文件,以及 <span class="file-count">${_t.webSearchRaw.total}</span> 个相关网络资源`:` <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${lo}</span> 个知识库文件`:""}}));g.value=Ce,Mt.value=ae;const zt=Ce.filter(_t=>_t.type==="ai").pop();return Ce.forEach((_t,mn)=>{if(_t.type==="ai"&&_t.rawData){if(_t.rawData.search_source)try{const wn=JSON.parse(_t.rawData.search_source);Array.isArray(wn)&&wn.length>0&&(te.value[_t.id]=wn)}catch(wn){console.error("解析搜索结果失败:",wn)}if(_t.reports&&_t.reports.length>0&&(s.value[mn]||(s.value[mn]={}),_t.reports.filter(Pn=>Pn.type==="category_title").map(Pn=>Pn.category).forEach(Pn=>{s.value[mn][Pn]=!0})),_t===zt&&_t.rawData.guess_you_want)try{const wn=_t.rawData.guess_you_want.trim().split(`
- `).map(Pn=>Pn.trim()).filter(Pn=>Pn.length>0).filter((Pn,Cr,Ir)=>Ir.indexOf(Pn)===Cr).slice(0,3);wn.length>0&&(U.value=wn,H.value=_t.id)}catch(wn){console.error("解析推荐问题失败:",wn)}}}),await Yt(),setTimeout(()=>ur(),100),!0}else return console.error("获取对话消息失败:",ce.statusCode),!1}catch(ce){return console.error("获取对话消息失败:",ce),!1}},dt=ae=>{if(!ae)return"未知对话";if(ae.includes("</filesize>")){const zt=ae.split("</filesize>")[1];if(zt&&zt.trim()){let mn=zt.replace(/\s+/g," ").trim().split(/[。!?\n]/)[0];if(mn.includes("基于您好")||mn.includes("蜀道安全管理AI智能助手")){const wn=mn.match(/问题描述[::](.+?)(?=分析结果|$)/);wn?mn=wn[1].trim():mn=mn.substring(0,20)}return mn.length>30?mn.substring(0,30)+"...":mn||"新对话"}}let ce=ae.replace(/<[^>]*>/g,"");ce=ce.replace(/\s+/g," ").trim();let Ce=ce.split(/[。!?\n]/)[0];if(Ce.includes("基于您好")||Ce.includes("蜀道安全管理AI智能助手")){const zt=Ce.match(/问题描述[::](.+?)(?=查询结果|$)/);zt?Ce=zt[1].trim():Ce=Ce.substring(0,20)}return Ce.length>30?Ce.substring(0,30)+"...":Ce||"新对话"},it=ae=>{if(!ae)return"未知时间";let ce;if(typeof ae=="string")ce=new Date(ae);else{let Cr=ae;(ae.toString().length===10||ae.toString().length===11)&&(Cr=ae*1e3),ce=new Date(Cr)}const Ce=new Date,zt=new Date(Ce.getFullYear(),Ce.getMonth(),Ce.getDate()),_t=new Date(zt.getTime()-1440*60*1e3);if(ce>=zt)return ce.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(ce>=_t&&ce<zt)return"昨天 "+ce.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const mn=ce.getMonth()+1,wn=ce.getDate(),Pn=ce.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${mn}月${wn}日 ${Pn}`},de=ae=>{switch(parseInt(ae)){case 2:return"like";case 3:return"dislike";default:return null}},tt=ae=>{switch(ae){case"like":return 2;case"dislike":return 3;default:return 0}},ft=ae=>{try{if(!ae||typeof ae!="string"||!ae.trim())return null;const ce=JSON.parse(ae);if(!Array.isArray(ce))return null;const Ce=ce.filter(zt=>zt&&typeof zt=="object"&&zt.title&&zt.content);return Ce.length>0?Ce:null}catch(ce){return console.error("解析搜索来源失败:",ce),null}},Mt=K(0);K(0);const Tn=()=>{g.value.length===0&&(an.value.forEach(ae=>ae.isActive=!1),Z.value={},le.value={},te.value={})},Nn=async()=>{!r.value.trim()||a.value||(va(),U.value=[],H.value=null,a.value=!0,i.value=!0,Tn(),await Un({question:r.value,windowSize:3,nResults:10}),r.value="",va(),B.value&&Po(),Mi())};let We=0,ke=0;const be=ae=>{const ce=[ok,ik,ak,sk],Ce=ce[We%ce.length];return We++,Ce},fe=ae=>{const ce=[lk,uk,ck],Ce=ce[ke%ce.length];return ke++,Ce},Se=(ae,ce)=>{s.value[ae]||(s.value[ae]={}),s.value[ae][ce.category]=ce.expanded},qe=(ae,ce)=>ce?s.value[ae]?s.value[ae][ce]!==!1:(s.value[ae]={},!0):!0,$e=ae=>!ae||ae.length===0?!1:ae.every(ce=>ce.type==="category_title"),Le=(ae,ce)=>{if(ce===100)return"completed";switch(ae){case"querying_kb":case"web_searching":return"searching";case"analyzing_files":case"analyzing_web":return"analyzing";case"deep_thinking":return"thinking";case"outputting":return"analyzing";case"completed":return"completed";case"error":return"error";default:return"idle"}},ot=(ae,ce,Ce=null)=>{const _t={querying_kb:{message:'🔍 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析知识库……',progress:10},web_searching:{message:'🌐 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您联网分析……',progress:15},data_retrieved:{message:null,progress:30},analyzing_files:{message:'😊 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析文件内容……',progress:45},analyzing_web:{message:'😉 <span class="ai-name">蜀道安全管理AI智能助手</span>正在分析联网数据……',progress:70},deep_thinking:{message:'🤔 <span class="ai-name">蜀道安全管理AI智能助手</span>正在深度思考中,请您稍等片刻……',progress:75},outputting:{message:'😄 <span class="ai-name">蜀道安全管理AI智能助手</span>正在整理分析中!',progress:90},completed:{message:null,progress:100}}[ce];if(_t){if(ae.currentStatus=ce,ce==="data_retrieved"){const mn=ae.totalFiles||0,wn=ae.webSearchTotal||0;wn>0?ae.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${mn}</span> 个知识库文件,以及 <span class="file-count">${wn}</span> 个相关网络资源`:ae.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${mn}</span> 个知识库文件`}else if(ce==="completed"){const mn=ae.totalFiles||0,wn=ae.webSearchTotal||0;wn>0?ae.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${mn}</span> 个知识库文件,以及 <span class="file-count">${wn}</span> 个相关网络资源`:ae.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${mn}</span> 个知识库文件`}else ae.statusMessage=Ce||_t.message;ae.progress=_t.progress}},vt=(ae,ce)=>{const Ce=g.value[ce];if(!Ce)return;console.log("🔍 SSE事件完整数据:",{type:ae.type,conversation_id:ae.conversation_id,message_id:ae.message_id,ai_conversation_id:ae.ai_conversation_id,ai_message_id:ae.ai_message_id,allKeys:Object.keys(ae)});const zt=ae.conversation_id||ae.ai_conversation_id;zt&&Mt.value===0&&(Mt.value=zt,console.log("✅ SSE收到conversation_id并赋值:",zt));const _t=ae.message_id||ae.ai_message_id;switch(_t&&(Ce.ai_message_id||(Ce.ai_message_id=_t,console.log("✅ SSE收到message_id并赋值:",_t),console.log(" - aiMessage.id (前端临时ID):",Ce.id),console.log(" - aiMessage.ai_message_id (后端ID):",Ce.ai_message_id),Ce.rawData||(Ce.rawData={}),Ce.rawData.id=_t,console.log(" - aiMessage.rawData.id:",Ce.rawData.id))),ae.type){case"intent":if(ot(Ce,"querying_kb"),ae.is_professional_question===!1){const Or=ae.summary||"抱歉,我暂时无法回答您的问题。";if(Ce.summary=Or,Ce.isTyping=!1,Ce.ai_message_id&&wd(Ce.ai_message_id,Or).catch(lo=>console.error("回写AI消息失败:",lo)),u&&(xh(u),u=null),a.value=!1,d.value.clear(),re.value=!0,Mt.value&&Mt.value!==0){an.value.forEach(uo=>{uo.isActive=!1});const lo=g.value.find(uo=>uo.type==="user"),Go=lo?lo.content.substring(0,20)+"...":"新对话",Pi=an.value.findIndex(uo=>uo.id===Mt.value);if(Pi===-1){const uo={id:Mt.value,title:Go,time:it(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:Mt.value,content:lo?.content||"",updated_at:new Date().toISOString()}};an.value.unshift(uo),console.log("✅ 非专业问题:已在列表最前面插入新历史记录")}else{const uo=an.value.splice(Pi,1)[0];uo.isActive=!0,uo.time=it(new Date().toISOString()),an.value.unshift(uo),console.log("✅ 非专业问题:已将历史记录移到最前面")}Kt.value=an.value.length}const po=g.value.filter(lo=>lo.type==="user").pop();po&&Ce.ai_message_id&&Or&&yi(po.content,Or,Ce.ai_message_id);return}if(ae.summary){const Or=ae.summary;Ce._fullSummary=Or,Ce.summary="",Fe({file_index:"summary",report:Ce,_typewriterStates:{}},"summary",Or,50).catch(po=>{console.error("问题总结打字机效果失败:",po),Ce.summary=Or})}break;case"documents":Ce.totalFiles=ae.total,Ce.completedCount=0,X.value?ot(Ce,"web_searching"):ot(Ce,"data_retrieved"),Yt(()=>{Ar()});break;case"category_title":Ce.reports.length===0&&Ce.progress>=30&&ot(Ce,"analyzing_files");const mn={type:"category_title",category:ae.category,number:ae.number,count:ae.count,source_file:`【${ae.number}、${ae.category}】(共${ae.count}个文件)`,file_index:-1,status:"category"};Ce.reports.push(mn),s.value[ce]||(s.value[ce]={}),s.value[ce][ae.category]=!0,Ce.currentCategory=ae.category;break;case"report_start":console.log("🔍 [DEBUG] report_start 数据:",{file_index:ae.file_index,source_file:ae.source_file,file_path:ae.file_path,metadata:ae.metadata,完整data:ae});const wn={file_index:ae.file_index,total_files:Ce.totalFiles,source_file:ae.source_file,file_path:ae.file_path,similarity:ae.similarity,metadata:{...ae.metadata,_displayCategory:Ce.currentCategory},report:{display_name:"",summary:"",analysis:"",clauses:""},status:"streaming"};Ce.reports.push(wn),d.value.set(ae.file_index,Ce.reports.length-1);break;case"report_chunk":break;case"report":Ce.reports.filter(Or=>Or.status==="completed").length===0&&ot(Ce,"deep_thinking");const Pn=ae.data||ae;console.log("🔍 [DEBUG] report 数据:",{file_index:Pn.file_index,source_file:Pn.source_file,file_path:Pn.file_path,metadata:Pn.metadata,完整reportData:Pn});const Cr=d.value.get(Pn.file_index);let Ir;if(Cr!==void 0){const Or=Ce.reports[Cr].metadata?._displayCategory,po=Pn.report?.summary||"",lo=Pn.report?.analysis||"",Go=Pn.report?.clauses||"",Pi=Pn.report?.display_name||"";Ce.reports[Cr]={...Pn,report:{display_name:Pi,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...Pn.metadata,_displayCategory:Or||Ce.currentCategory},_fullContent:{display_name:Pi,summary:po,analysis:lo,clauses:Go}},Ir=Ce.reports[Cr],d.value.delete(Pn.file_index)}else{const Or=Pn.report?.summary||"",po=Pn.report?.analysis||"",lo=Pn.report?.clauses||"",Go=Pn.report?.display_name||"",Pi={...Pn,report:{display_name:Go,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...Pn.metadata,_displayCategory:Ce.currentCategory},_fullContent:{display_name:Go,summary:Or,analysis:po,clauses:lo}};Ce.reports.push(Pi),Ir=Pi}Ir._fullContent&&!Ir._typewriterCompleted&&(Ir._typewriterStarted=!0,Fe(Ir,"summary",Ir._fullContent.summary||"",200).then(()=>Fe(Ir,"analysis",Ir._fullContent.analysis||"",200)).then(()=>{if(Ir._fullContent.clauses)return Fe(Ir,"clauses",Ir._fullContent.clauses||"",200)}).then(()=>{Ir._typewriterCompleted=!0}).catch(Or=>{console.error("报告打字机效果失败:",Or),Ir.report.summary=Ir._fullContent.summary||"",Ir.report.analysis=Ir._fullContent.analysis||"",Ir.report.clauses=Ir._fullContent.clauses||"",Ir._typewriterCompleted=!0}),console.log("📝 [DEBUG] 报告打字机已启动:",{file_index:Ir.file_index,summary_length:Ir._fullContent.summary?.length||0,analysis_length:Ir._fullContent.analysis?.length||0,clauses_length:Ir._fullContent.clauses?.length||0})),Ce.completedCount=Ce.reports.filter(Or=>Or.status==="completed"&&Or.type!=="category_title").length;const qo=Ce.totalFiles>0?Ce.completedCount/Ce.totalFiles:0;if(qo>=1)ot(Ce,"outputting");else if(qo>=.5)ot(Ce,"deep_thinking");else{const Or=30+Math.round(qo*30);Ce.progress=Or}break;case"web_search_raw":if(ae.results&&ae.results.length>0){Ce.webSearchRaw={results:ae.results||[],keywords:ae.keywords||[],total:ae.total||0},Ce.webSearchTotal=ae.total||0;const Or=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ce.totalFiles||0}</span> 个知识库文件,以及 <span class="file-count">${Ce.webSearchTotal}</span> 个相关网络资源`;ot(Ce,"data_retrieved",Or),console.log(`[网络搜索] 收到原始数据: ${ae.total} 条结果`)}else{const Or=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${Ce.totalFiles||0}</span> 个知识库文件`;ot(Ce,"data_retrieved",Or),console.log("[网络搜索] 无搜索结果,仅使用知识库")}break;case"web_search_summary":if(ae.has_results&&ae.summary){if(Ce._webSearchSummaryCompleted){console.log("[网络搜索] 总结已完成,跳过重复打字机");break}if(Ce._fullWebSearchSummary=ae.summary,Ce.webSearchSummary="",Ce.hasWebSearchResults=!0,Fe({file_index:"web_search_summary",report:Ce,_typewriterStates:{}},"webSearchSummary",ae.summary,200).then(()=>{Ce._webSearchSummaryCompleted=!0}).catch(po=>{console.error("网络搜索总结打字机效果失败:",po),Ce.webSearchSummary=ae.summary,Ce._webSearchSummaryCompleted=!0}),console.log("[网络搜索] 收到AI总结,长度:",ae.summary.length),ot(Ce,"outputting"),Ce.ai_message_id){const po={reports:Ce.reports||[],webSearchRaw:Ce.webSearchRaw||null,webSearchSummary:Ce._fullWebSearchSummary||ae.summary,hasWebSearchResults:!0,summary:Ce.summary||Ce._fullSummary||""},lo=JSON.stringify(po);Ce.summary||Ce._fullSummary,wd(Ce.ai_message_id,lo).then(Go=>{console.log("[网络搜索] AI消息保存成功,更新为完成状态"),ot(Ce,"completed"),Ce.isTyping=!1,a.value=!1,d.value.clear(),re.value=!0}).catch(Go=>{console.error("[网络搜索] AI消息保存失败:",Go),ot(Ce,"completed"),Ce.isTyping=!1,a.value=!1})}else ot(Ce,"completed"),Ce.isTyping=!1,a.value=!1}break;case"error":Et.error(ae.message),a.value=!1;break;case"completed":console.log("[SSE] 收到completed事件"),a.value=!1,d.value.clear(),Ce.isTyping=!1,Ce.progress<100&&ot(Ce,"completed"),Et.success("报告生成完成");break;case"interrupted":a.value=!1,d.value.clear(),Ce.isTyping=!1,Et.warning(ae.message||"报告生成已中断");break}},Ut=ae=>{console.error("❌ SSE连接异常断开:",ae),u&&(xh(u),u=null),a.value=!1,d.value.clear(),g.value.forEach(ce=>{ce.type==="ai"&&ce.isTyping&&(ce.isTyping=!1)}),re.value=!0,Et.error("连接已断开")},Qt=()=>{if(a.value=!1,g.value.forEach(Ce=>{if(Ce.type==="ai"&&Ce.isTyping&&(Ce.isTyping=!1,Ce.ai_message_id)){const zt={reports:Ce.reports||[],webSearchRaw:Ce.webSearchRaw||null,webSearchSummary:Ce._fullWebSearchSummary||Ce.webSearchSummary||null,hasWebSearchResults:Ce.hasWebSearchResults||!1,summary:Ce.summary||Ce._fullSummary||""},_t=Ce.reports&&Ce.reports.length>0?JSON.stringify(zt):Ce.content;_t&&(Ce.summary||Ce._fullSummary,wd(Ce.ai_message_id,_t).catch(mn=>console.error("回写AI消息失败:",mn)))}}),re.value=!0,console.log("📝 AI回复完成,准备更新历史记录"),console.log(" - ai_conversation_id:",Mt.value),Mt.value&&Mt.value!==0){console.log("✅ 开始更新历史记录列表"),an.value.forEach(mn=>{mn.isActive=!1});const Ce=g.value.find(mn=>mn.type==="user"),zt=Ce?Ce.content.substring(0,20)+"...":"新对话";console.log("📝 生成的标题:",zt);const _t=an.value.findIndex(mn=>mn.id===Mt.value);if(console.log("🔍 检查是否已存在,索引:",_t),_t===-1){const mn={id:Mt.value,title:zt,time:it(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:Mt.value,content:Ce?.content||"",updated_at:new Date().toISOString()}};console.log("📦 准备插入的新项:",mn),an.value.unshift(mn),console.log("✅ 已在列表最前面插入新历史记录并设为高亮"),console.log("📊 更新后的历史记录数量:",an.value.length)}else{console.log("🔄 历史记录已存在,将其移到最前面");const mn=an.value.splice(_t,1)[0];mn.isActive=!0,mn.time=it(new Date().toISOString()),an.value.unshift(mn),console.log("✅ 已将现有历史记录移到最前面并设为高亮")}Kt.value=an.value.length,console.log("📊 最终历史记录总数:",Kt.value)}else console.warn("⚠️ ai_conversation_id 为 0 或未设置,跳过历史记录更新");console.log("🎯 准备获取AI相关推荐问题");const ae=g.value.filter(Ce=>Ce.type==="user").pop(),ce=g.value.filter(Ce=>Ce.type==="ai").pop();if(ae&&ce&&ce.ai_message_id){console.log("📝 找到最后一条用户消息和AI消息"),console.log(" - 用户消息:",ae.content),console.log(" - AI消息ID:",ce.ai_message_id);let Ce="";ce.summary?Ce=ce.summary:ce.content?Ce=ce.content:ce.reports&&ce.reports.length>0&&(Ce=ce.reports.filter(_t=>_t.report&&_t.report.summary).map(_t=>_t.report.summary).slice(0,3).join(`
- `)),Ce&&Ce.trim()?(console.log("📝 AI回复内容长度:",Ce.length),yi(ae.content,Ce,ce.ai_message_id)):console.warn("⚠️ AI回复内容为空,跳过推荐问题获取")}else console.warn("⚠️ 未找到有效的用户消息或AI消息,跳过推荐问题获取")},Gt=ae=>{u&&(xh(u),u=null),a.value=!1,d.value.clear(),g.value.forEach(ce=>{if(ce.type==="ai"&&ce.isTyping&&(ce.isTyping=!1,ot(ce,"completed"),(ce.webSearchRaw||ce.webSearchSummary)&&console.log("✅ 保留已接收的网络搜索数据"),ce.ai_message_id)){const Ce={reports:ce.reports||[],webSearchRaw:ce.webSearchRaw||null,webSearchSummary:ce._fullWebSearchSummary||ce.webSearchSummary||null,hasWebSearchResults:ce.hasWebSearchResults||!1,summary:ce.summary||ce._fullSummary||""},zt=ce.reports&&ce.reports.length>0?JSON.stringify(Ce):ce.content;zt&&(ce.summary||ce._fullSummary,wd(ce.ai_message_id,zt).catch(_t=>console.error("回写AI消息失败:",_t)))}}),re.value=!0,Et.warning(ae.message||"报告生成已中断")},vn=async()=>{!u||Mt.value===void 0||Mt.value===null||(u&&(xh(u),u=null),a.value=!1,d.value.clear(),g.value.forEach(ae=>{if(ae.type==="ai"&&ae.isTyping&&(ae.isTyping=!1,ot(ae,"completed"),(ae.webSearchRaw||ae.webSearchSummary)&&console.log("✅ 停止时保留已接收的网络搜索数据"),ae.ai_message_id)){const ce={reports:ae.reports||[],webSearchRaw:ae.webSearchRaw||null,webSearchSummary:ae._fullWebSearchSummary||ae.webSearchSummary||null,hasWebSearchResults:ae.hasWebSearchResults||!1,summary:ae.summary||ae._fullSummary||""},Ce=ae.reports&&ae.reports.length>0?JSON.stringify(ce):ae.content;Ce&&(ae.summary||ae._fullSummary,wd(ae.ai_message_id,Ce).catch(zt=>console.error("回写AI消息失败:",zt)))}}),re.value=!0,Et.success("已停止生成"),Y4e(null,Mt.value).catch(ae=>console.warn("停止请求失败:",ae)))},Un=async ae=>{a.value=!0,l.value=ae.question,g.value.push({id:Date.now(),type:"user",content:ae.question,timestamp:new Date().toISOString()});const ce=g.value.length;g.value.push({id:Date.now()+1,type:"ai",userQuestion:ae.question,summary:"",totalFiles:0,webSearchTotal:0,progress:0,completedCount:0,reports:[],isTyping:!0,content:"",displayContent:"",timestamp:new Date().toISOString(),currentStatus:"querying_kb",statusMessage:'🔍 <span class="ai-name">蜀道安全管理AI智能助手</span>正在从知识库中学习相关信息……',showStats:!0,ai_message_id:null,rawData:null,userFeedback:null}),Yt(()=>{setTimeout(()=>{Ar()},100)});try{const Ce=new URLSearchParams({user_question:ae.question,window_size:ae.windowSize,n_results:10,ai_conversation_id:Mt.value,is_network_search_enabled:X.value}),_t=`${$V()}/report/complete-flow?${Ce.toString()}`;u=fAe(_t,{onMessage:mn=>vt(mn,ce),onError:Ut,onComplete:Qt,onInterrupted:Gt})}catch(Ce){console.error("启动失败:",Ce),Et.error(`启动失败: ${Ce.message}`),a.value=!1}},wr=ae=>{ze(),g.value=[],Mt.value=0,i.value=!0,Un({question:`请详细介绍${ae}的相关内容`,windowSize:3,nResults:10})},fr=ae=>{ze(),g.value=[],Mt.value=0,i.value=!0,Un({question:ae,windowSize:3,nResults:10})},Nt=ae=>{va(),Un({question:ae,windowSize:3,nResults:10})},_n=async ae=>{if(a.value)return;k.value&&(zo(),k.value=null),ze(),Z.value={},le.value={},te.value={},re.value=!0,o.value=ae,l.value=ae.title,an.value.forEach(Ce=>{Ce.isActive=Ce.id===ae.id}),i.value=!0;const ce={type:"ai",content:"正在加载历史对话...",displayContent:"正在加载历史对话...",isTyping:!0,id:Date.now()+1,userFeedback:null};g.value=[ce];try{await Dt(ae.id)?(g.value=g.value.filter(zt=>zt.id!==ce.id),await Yt(),Mi(),U.value.length>0&&setTimeout(()=>Mi(),200)):(g.value=[{type:"ai",content:"抱歉,加载历史对话失败,请稍后重试。",displayContent:"抱歉,加载历史对话失败,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],await Yt(),Mi())}catch(Ce){console.error("加载历史对话失败:",Ce),g.value=[{type:"ai",content:"抱歉,加载历史对话时发生错误,请稍后重试。",displayContent:"抱歉,加载历史对话时发生错误,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],await Yt(),Mi()}},xt=(ae,ce)=>{f.value={item:ae,index:ce},p.value="history",c.value=!0},Ft=async()=>{f.value&&(p.value==="history"?await Sn():p.value==="message"&&await Bn())},Sn=async()=>{const{item:ae,index:ce}=f.value;try{const Ce=await zn.deleteHistoryRecord({ai_conversation_id:ae.id});Ce.statusCode===200?(an.value.splice(ce,1),Kt.value=an.value.length,ae.isActive&&await kn(),Et.success("删除成功")):Et.error(Ce.msg||"删除失败")}catch(Ce){console.error("删除失败:",Ce),Et.error("删除失败,请稍后重试")}finally{c.value=!1,f.value=null,p.value=""}},Bn=async()=>{const{messageIndex:ae}=f.value;try{const ce=g.value[ae],Ce=ce.ai_message_id||ce.rawData&&ce.rawData.id;ce&&Ce?(await zn.deleteConversation({ai_message_id:Ce})).statusCode===200?(g.value.splice(ae,1),ae>0&&g.value.splice(ae-1,1),Et.success("删除成功")):Et.error("删除失败,请稍后重试"):(g.value.splice(ae,1),Et.success("删除成功"))}catch(ce){console.error("删除失败:",ce),Et.error("删除失败,请稍后重试")}finally{c.value=!1,f.value=null,p.value=""}},Fr=()=>{c.value=!1,f.value=null,p.value=""},kn=async()=>{a.value||(k.value&&(zo(),k.value=null),ze(),Mt.value=0,g.value=[],r.value="",l.value="",B.value=null,i.value=!1,U.value=[],H.value=null,te.value={},le.value={},Z.value={},an.value.forEach(ae=>ae.isActive=!1),await pt())},Ye=()=>{E.value?tn():At()},At=()=>{M()||Et.error("语音识别启动失败,请检查麦克风权限")},tn=()=>{O(),D.value.trim()&&(r.value=D.value)},Ct=K(null),Xt=K([]),yn=K(!1),Ln=()=>window.location.origin+"/tts/voice",Zn=async()=>{const ae=Ln();try{const ce=new AbortController,Ce=setTimeout(()=>ce.abort(),8e3),zt={"Content-Type":"application/json"},_t=Xf(),mn=Iv();if(_t&&mn){const Pn=mn.charAt(0).toUpperCase()+mn.slice(1).toLowerCase();zt.Authorization=`${Pn} ${_t}`}const wn=await fetch(ae,{method:"POST",headers:zt,body:JSON.stringify({text:"测试"}),signal:ce.signal});return clearTimeout(Ce),wn.ok?(await wn.blob(),{success:!0,message:"TTS服务连接正常"}):{success:!1,message:`TTS服务响应错误: ${wn.status}`}}catch(ce){let Ce="TTS服务连接失败";return ce.name==="AbortError"?Ce="TTS服务连接超时":ce.message.includes("Failed to fetch")&&(Ce="无法连接到TTS服务"),{success:!1,message:Ce}}},jr=async(ae,ce=0)=>{const Ce=Ln(),zt=2;try{const _t=new AbortController,mn=setTimeout(()=>_t.abort(),15e3),wn={"Content-Type":"application/json"},Pn=Xf(),Cr=Iv();if(Pn&&Cr){const Or=Cr.charAt(0).toUpperCase()+Cr.slice(1).toLowerCase();wn.Authorization=`${Or} ${Pn}`}const Ir=await fetch(Ce,{method:"POST",headers:wn,body:JSON.stringify({text:ae}),signal:_t.signal});if(clearTimeout(mn),!Ir.ok)throw new Error(`TTS接口调用失败: ${Ir.status}`);const qo=await Ir.blob();if(qo.size===0)throw new Error("TTS接口返回的音频数据为空");return URL.createObjectURL(qo)}catch(_t){if(ce<zt&&(_t.name==="AbortError"||_t.message.includes("Failed to fetch")||_t.message.includes("NetworkError")))return await new Promise(Pn=>setTimeout(Pn,(ce+1)*1e3)),jr(ae,ce+1);let mn="语音合成失败";_t.name==="AbortError"?mn="语音合成请求超时":_t.message.includes("Failed to fetch")?mn="无法连接到语音合成服务":_t.message.includes("TTS接口调用失败")&&(mn=_t.message);const wn=new Error(mn);throw wn.originalError=_t,wn}},yo=ae=>{if(!ae)return"";let ce=ae.replace(/<[^>]*>/g,"");return ce=ce.replace(/\s+/g," ").trim(),ce=ce.replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s,。!?、;:""''()【】《》]/g,""),ce},Kr=ae=>{if(ae.length<=60)return[ae];const ce=[];let Ce="",zt=!0;const _t=ae.split(/[。!?]/);for(const mn of _t){if(mn.trim().length===0)continue;const wn=mn+(mn.match(/[。!?]$/)?"":"。"),Pn=zt?60:200;if(Ce.length+wn.length<=Pn)Ce+=wn;else if(Ce.length>0)ce.push(Ce.trim()),Ce=wn,zt=!1;else{const Cr=zt?60:200;ce.push(wn.substring(0,Cr)),Ce=wn.substring(Cr),zt=!1}}return Ce.trim().length>0&&ce.push(Ce.trim()),ce},xo=ae=>new Promise((ce,Ce)=>{const zt=new Audio(ae);Ct.value=zt,zt.onended=()=>{Ct.value=null,ce()},zt.onerror=_t=>{Ct.value=null,Ce(_t)},zt.play().catch(_t=>{Ct.value=null,Ce(_t)})}),zo=()=>{try{Ct.value&&(Ct.value.pause(),Ct.value.currentTime=0,Ct.value=null),Xt.value=[],yn.value=!1,window.speechSynthesis&&window.speechSynthesis.cancel()}catch(ae){console.warn("停止音频播放失败:",ae)}},Sr=async(ae,ce)=>{if(k.value===ce)try{const Ce=await jr(ae[0]);if(k.value!==ce){URL.revokeObjectURL(Ce);return}const _t=ae.slice(1).map(async(wn,Pn)=>{try{const Cr=await jr(wn);return{index:Pn+1,audioUrl:Cr}}catch{return{index:Pn+1,audioUrl:null}}});if(await xo(Ce),URL.revokeObjectURL(Ce),k.value!==ce){(await Promise.allSettled(_t)).forEach(Pn=>{Pn.status==="fulfilled"&&Pn.value.audioUrl&&URL.revokeObjectURL(Pn.value.audioUrl)});return}const mn=await Promise.allSettled(_t);if(k.value!==ce){mn.forEach(wn=>{wn.status==="fulfilled"&&wn.value.audioUrl&&URL.revokeObjectURL(wn.value.audioUrl)});return}yn.value=!0;for(const wn of mn){if(k.value!==ce)break;if(wn.status==="fulfilled"&&wn.value.audioUrl)try{await xo(wn.value.audioUrl),URL.revokeObjectURL(wn.value.audioUrl)}catch(Pn){console.error("音频播放失败:",Pn)}}yn.value=!1}catch(Ce){console.error("音频队列播放失败:",Ce),yn.value=!1}},Yr=async ae=>{if(k.value===ae.id)zo(),k.value=null;else{k.value&&(zo(),k.value=null);const ce=ae.displayContent||ae.content;if(ce&&ce.trim())try{const Ce=yo(ce);if(Ce.length===0){Et.warning("文本内容为空,无法进行语音合成");return}if(k.value=ae.id,Ce.length<=60){const zt=await jr(Ce);await xo(zt),URL.revokeObjectURL(zt)}else{const zt=Kr(Ce);await Sr(zt,ae.id)}}catch(Ce){console.error("语音合成失败:",Ce),Et.error("语音合成失败,请稍后重试")}finally{k.value=null,yn.value=!1}}},vo=ae=>k.value===ae,Rr=ae=>{if(console.log("点击删除按钮,消息索引:",ae),g.value.length===2){Et.warning("第一句话无法删除");return}p.value="message",f.value={messageIndex:ae},c.value=!0},Ur=()=>{if(r.value.length>2e3&&(r.value=r.value.substring(0,2e3),Et.warning("消息长度不能超过2000字")),Y.value&&clearTimeout(Y.value),!r.value.trim()){j.value=[];return}Y.value=setTimeout(()=>{Si(r.value)},100)},Hr=()=>{if(B.value){Et.warning("只能上传一个文件,请先删除当前文件");return}W.value?.click()},to=async ae=>{try{if(ae.size===0)throw new Error("Word文件为空");if(!KE)throw new Error("Word文档解析库未正确加载");const ce=ae.name.toLowerCase().split(".").pop(),Ce=await ae.arrayBuffer();if(ce==="docx"){const _t=new Uint8Array(Ce.slice(0,2));if(_t[0]!==80||_t[1]!==75)throw new Error("文件不是有效的.docx格式,可能已损坏")}else if(ce==="doc")throw new Error("检测到.doc格式文件。请将文件另存为.docx格式后重新上传。");return(await zV.extractRawText({arrayBuffer:Ce})).value}catch(ce){throw console.error("Word文件读取失败:",ce),ce.message.includes("Can't find end of central directory")?new Error("文件格式错误:这不是一个有效的Word文档,或者文件已损坏。"):ce.message.includes("Invalid file format")?new Error("Word文件格式无效或已损坏"):ce}},pr=async ae=>{const ce=ae.target.files[0];if(ce)try{const Ce=sa(ce);if(!KE)throw new Error("Word文档解析库未正确加载,请刷新页面重试");z.value=!0;const zt=await to(ce);B.value={file:ce,name:ce.name,size:ce.size,type:Ce,icon:Dr(Ce),content:zt},Et.success(`文件读取成功,共提取 ${zt.length} 个字符`)}catch(Ce){console.error("文件读取失败:",Ce),Et.error(Ce.message||"文件读取失败,请重试")}finally{z.value=!1,ae.target.value=""}},Po=()=>{B.value&&(B.value=null)},ni=async()=>{try{console.log("开始获取功能卡片...");const ae=await zn.getFunctionCard({function_type:0});console.log("功能卡片响应:",ae),ae.statusCode===200?(v.value=ae.data,console.log("功能卡片数据已设置:",v.value)):console.error("获取功能卡片失败:",ae.statusCode)}catch(ae){console.error("获取功能卡片失败:",ae)}},Wi=async()=>{try{console.log("开始获取热点问题...");const ae=await zn.getHotQuestion({question_type:0});console.log("热点问题响应:",ae),ae.statusCode===200?(h.value=ae.data,console.log("热点问题数据已设置:",h.value)):console.error("获取热点问题失败:",ae.statusCode)}catch(ae){console.error("获取热点问题失败:",ae)}},va=()=>{j.value=[],Y.value&&(clearTimeout(Y.value),Y.value=null)},aa=ae=>{ae.target.closest(".user-recommend-questions")||va(),ve.value&&!ae.target.closest(".web-search-capsule-outer")&&!ae.target.closest(".web-search-sidebar")&&(ve.value=!1)},Ci=()=>{X.value=!X.value,Et[X.value?"success":"info"](X.value?"联网搜索已启用":"联网搜索已关闭")},xi=ae=>{Z.value[ae]=!Z.value[ae]},Oi=ae=>{if(!ae||typeof ae!="string"||!ae.trim()){Et.warning("链接地址无效");return}try{let ce=ae.trim();!ce.startsWith("http://")&&!ce.startsWith("https://")&&(ce="https://"+ce),window.open(ce,"_blank","noopener,noreferrer")}catch(ce){console.error("打开链接失败:",ce),Et.error("无法打开链接")}},mi=ae=>{U.value=[],H.value=null,r.value=ae,Nn()},Si=async ae=>{if(!ae||!ae.trim()||a.value||me.value){j.value=[];return}try{q.value=!0;const ce=await zn.getUserRecommendQuestion({user_message:ae.trim()});if(a.value||me.value){j.value=[];return}ce.statusCode===200&&ce.data&&ce.data.questions?j.value=ce.data.questions:j.value=[]}catch(ce){console.error("获取推荐问题失败:",ce),j.value=[]}finally{q.value=!1}},yi=async(ae,ce,Ce)=>{if(!ae||!ce||!Ce){console.log("参数不完整,跳过相关推荐问题获取");return}try{console.log("开始获取AI回复相关推荐问题"),console.log("用户问题:",ae),console.log("AI回复:",ce.substring(0,100)+"..."),console.log("消息ID:",Ce),F.value=!0;const zt=`基于以下对话内容,直接生成3条相关的推荐问题。
- 【对话内容】
- 用户问题:${ae}
- AI回复:${ce}
- 【生成要求】
- - 直接输出3个问题,每个问题一行
- - 问题要与原问题相关但有所延伸
- - 问题要具体、实用,符合中文表达习惯
- - 不要包含任何编号、标题、说明文字
- - 不要重复上述指令内容`,_t=await zn.guessYouWant({message:zt,ai_message_id:Ce});if(console.log("AI相关推荐问题响应:",_t),_t.statusCode===200&&_t.data&&_t.data.reply){const wn=_t.data.reply.trim().split(`
- `).map(Pn=>Pn.trim()).filter(Pn=>Pn.length>0).filter(Pn=>!["请生成","推荐问题","相关问题","生成要求","对话内容","【","】","指令"].some(Ir=>Pn.includes(Ir))).filter(Pn=>!Pn.startsWith("-")&&!Pn.startsWith("•")&&!Pn.startsWith("*")).map(Pn=>Pn.replace(/^[0-9]+[\.\、]\s*/,"")).filter(Pn=>Pn.length>0).filter(Pn=>!Pn.includes(":")&&!Pn.includes(":")).filter((Pn,Cr,Ir)=>Ir.indexOf(Pn)===Cr).slice(0,3);wn.length>0?(U.value=wn,H.value=Ce,console.log("✅ AI相关推荐问题数据已设置:"),console.log(" - 推荐问题数量:",wn.length),console.log(" - 推荐问题内容:",wn),console.log(" - 关联消息ID:",Ce),await Yt(),console.log("✅ DOM已更新,推荐问题已显示")):(console.log("解析推荐问题失败,使用默认问题"),U.value=[],H.value=null)}else console.error("获取AI相关推荐问题失败:",_t.statusCode),U.value=[],H.value=null}catch(zt){console.error("获取AI相关推荐问题失败:",zt),U.value=[],H.value=null}finally{F.value=!1}},sa=ae=>{if(ae.size>Ae.maxSize)throw new Error("文件大小不能超过20MB");const ce="."+ae.name.split(".").pop().toLowerCase();if(!Ae.allowedTypes.includes(ce))throw new Error("只支持.docx格式的Word文档。如果是.doc格式,请先另存为.docx格式。");return ce},Dr=ae=>{switch(ae){case".doc":case".docx":return wq;default:return"📎"}},Mi=()=>{Yt(()=>{const ae=document.querySelector(".chat-content");ae&&(ae.scrollTop=ae.scrollHeight)})},xa=ae=>{if(ae===0)return"0 B";const ce=1024,Ce=["B","KB","MB","GB"],zt=Math.floor(Math.log(ae)/Math.log(ce));return parseFloat((ae/Math.pow(ce,zt)).toFixed(2))+" "+Ce[zt]},Qe=ae=>{console.log("编辑用户消息:",ae.content),r.value=ae.content,ae.file&&(B.value=ae.file,console.log("恢复文件信息:",ae.file.name));const ce=document.querySelector(".message-input");ce&&(ce.focus(),ce.setSelectionRange(ce.value.length,ce.value.length))},Ve=async ae=>{if(console.log("重新生成回复,消息索引:",ae),ae>0){const ce=g.value[ae-1];ce&&ce.type==="user"&&(console.log("重新发送用户消息:",ce.content),r.value=ce.content,ce.file&&(B.value=ce.file),await Nn())}},ne=async ae=>{try{await navigator.clipboard.writeText(ae),Et.success("复制成功")}catch{const Ce=document.createElement("textarea");Ce.value=ae,document.body.appendChild(Ce),Ce.select(),document.execCommand("copy"),document.body.removeChild(Ce),Et.success("复制成功")}},Oe=ae=>{ne(ae.content)},Ge=ae=>{let ce=ae.summary||ae.displayContent||ae.content;if(ce&&ce.includes("<")){const Ce=document.createElement("div");Ce.innerHTML=ce,ce=Ce.textContent||Ce.innerText||ce}!ce&&ae.reports&&ae.reports.length>0&&(ce=ae.reports.filter(Ce=>Ce.type!=="category_title").map(Ce=>Ce.report||"").join(`
- `)),ae.webSearchSummary&&(ce=ce?`${ce}
- 【网络搜索总结】
- ${ae.webSearchSummary}`:ae.webSearchSummary),ce&&ce.trim()?ne(ce):Et.warning("暂无可复制的内容")},$t=async ae=>{console.log("点赞消息:",ae.id),ae.userFeedback==="like"?ae.userFeedback=null:ae.userFeedback="like",g.value=[...g.value],await ln(ae)},Ot=async ae=>{console.log("点踩消息:",ae.id),ae.userFeedback==="dislike"?ae.userFeedback=null:ae.userFeedback="dislike",g.value=[...g.value],await ln(ae)},ln=async ae=>{try{console.log("🔍 syncFeedbackToBackend 收到的message对象:",{id:ae.id,ai_message_id:ae.ai_message_id,rawData:ae.rawData,rawData_id:ae.rawData?.id});const ce=ae.ai_message_id||ae.rawData&&ae.rawData.id;if(!ce){console.warn("❌ 消息缺少ID,无法同步反馈"),console.warn(" - message.ai_message_id:",ae.ai_message_id),console.warn(" - message.rawData:",ae.rawData);return}const Ce=tt(ae.userFeedback);console.log("✅ 同步反馈到后端:",{messageId:ce,feedback:Ce});const zt=await zn.likeAndDislike({id:ce,user_feedback:Ce});zt.statusCode===200?(console.log("反馈同步成功"),Ce===2?Et.success("点赞成功"):Ce===3?Et.success("点踩成功"):Et.success("已取消反馈")):(console.error("反馈同步失败:",zt.msg),Et.error("反馈提交失败,请稍后重试"))}catch(ce){console.error("同步反馈失败:",ce),Et.error("反馈同步失败,请稍后重试")}},fn=async ae=>{!ae||!ae.trim()||(console.log("自动发送消息:",ae),i.value=!0,g.value.length===0&&(an.value.forEach(ce=>{ce.isActive=!1}),console.log("自动发送新对话,清除所有历史记录的选中状态"),Z.value={},le.value={},te.value={}),U.value=[],H.value=null,await Un({question:ae,windowSize:3,nResults:10}))},Cn=()=>{try{const ae=window.devicePixelRatio||1;if(document.documentElement.style.setProperty("--system-zoom",ae),ae!==1){const Ce=1/ae,zt=document.createElement("style");zt.id="bracket-zoom-compensation";const _t=document.getElementById("bracket-zoom-compensation");_t&&_t.remove(),document.head.appendChild(zt)}const ce=()=>{setTimeout(()=>{Cn()},100)};return window.addEventListener("resize",ce),()=>{window.removeEventListener("resize",ce);const Ce=document.getElementById("bracket-zoom-compensation");Ce&&Ce.remove()}}catch(ae){console.error("❌ 中括号缩放补偿初始化失败:",ae)}},sr=async ae=>{const ce=ae.target,Ce=ce.closest(".link-capsule");if(Ce){ae.preventDefault(),ae.stopPropagation();const _t=Ce.getAttribute("data-link")||Ce.getAttribute("href");_t&&_t!=="#"&&Kn(_t);return}if(!ce.classList.contains("standard-reference"))return;ae.preventDefault(),ae.stopPropagation();const zt=ce.getAttribute("data-standard")||ce.getAttribute("data-reference");if(zt)try{const _t=await zn.getFileLink({fileName:zt});_t.statusCode===200&&_t.data&&_t.data?window.open(_t.data,"_blank"):Et.warning("暂无文件")}catch(_t){console.error("获取文件失败:",_t),Et.error("获取文件失败,请稍后重试")}},Kn=ae=>{try{new URL(ae)}catch{Et.error("无效的链接地址");return}const ce=document.createElement("div");ce.style.cssText=`
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.5);
- z-index: 10000;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 20px;
- `;const Ce=document.createElement("div");Ce.style.cssText=`
- width: 90%;
- height: 90%;
- background: white;
- border-radius: 12px;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
- `;const zt=document.createElement("div");zt.style.cssText=`
- padding: 16px 20px;
- background: #f5f5f5;
- border-bottom: 1px solid #e0e0e0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- `;const _t=document.createElement("div");_t.style.cssText=`
- font-size: 14px;
- color: #666;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- flex: 1;
- margin-right: 16px;
- `,_t.textContent=ae;const mn=document.createElement("button");mn.textContent="✕",mn.style.cssText=`
- background: none;
- border: none;
- font-size: 24px;
- color: #666;
- cursor: pointer;
- padding: 0;
- width: 32px;
- height: 32px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 4px;
- transition: all 0.2s;
- `,mn.onmouseover=()=>{mn.style.background="#e0e0e0"},mn.onmouseout=()=>{mn.style.background="none"},mn.onclick=()=>{document.body.removeChild(ce)};const wn=document.createElement("iframe");wn.src=ae,wn.style.cssText=`
- width: 100%;
- height: 100%;
- border: none;
- `,zt.appendChild(_t),zt.appendChild(mn),Ce.appendChild(zt),Ce.appendChild(wn),ce.appendChild(Ce),ce.onclick=Pn=>{Pn.target===ce&&document.body.removeChild(ce)},document.body.appendChild(ce)},Tr=ae=>{typeof ae=="string"?(Ee.value=ae,Q.value=""):(Ee.value=ae.filePath,Q.value=ae.fileName||""),he.value=!0},ar=ae=>{const ce=g.value[ae];ce&&ce.webSearchRaw&&(Pe.value=ce.webSearchRaw,ve.value=!ve.value)};St(D,ae=>{!ae||E.value||(r.value=ae)}),St(_,ae=>{ae&&(console.error("语音识别错误:",ae),Et.error(ae))}),St(ve,ae=>{console.log("🔍 网络搜索侧边栏状态变化:",ae),requestAnimationFrame(()=>{setTimeout(()=>{we()},350)})});const ur=()=>{document.querySelectorAll(".standard-reference").forEach(ce=>{ce.removeEventListener("click",sr),ce.addEventListener("click",sr)})};let Lr=null,yr=null;const Ar=()=>{console.log("📜 handleProgressCardScroll 被触发");const ae=document.querySelector(".chat-header"),ce=ae?ae.getBoundingClientRect().bottom:0;console.log("📐 headerBottom:",ce),console.log("📊 messageContentRefs 数量:",Object.keys(y.value).length),Object.keys(y.value).forEach(Ce=>{const zt=g.value[Ce];if(!zt||zt.type!=="ai"||!zt.showStats){console.log(`⏭️ 跳过消息 ${Ce}:`,{exists:!!zt,type:zt?.type,showStats:zt?.showStats});return}console.log(`✅ 处理消息 ${Ce}`);const _t=y.value[Ce];if(!_t){console.log(`❌ 消息 ${Ce} 没有找到 contentEl`);return}const mn=_t.querySelector(".files-stats-white");if(!mn){console.log(`❌ 消息 ${Ce} 没有找到 .files-stats-white`);return}console.log(`✅ 消息 ${Ce} 找到进度卡片`);const wn=mn.getBoundingClientRect(),Pn=_t.getBoundingClientRect();if(!m.value[Ce]){m.value[Ce]={initialLeft:wn.left,initialWidth:wn.width,isSticky:!1,offsetTop:wn.top-Pn.top,initialized:!1,isInitializing:!0,initStartTime:Date.now()},console.log(`[进度卡片] 开始初始化 - 消息${Ce}, left=${wn.left}, width=${wn.width}, offsetTop=${m.value[Ce].offsetTop}`),Yt(()=>{requestAnimationFrame(()=>{if(m.value[Ce]){const Or=_t.querySelector(".files-stats-white");if(Or){const Go=Or.getBoundingClientRect();m.value[Ce].initialLeft=Go.left,m.value[Ce].initialWidth=Go.width,console.log(`[进度卡片] 位置更新 - 消息${Ce}, left=${Go.left}, width=${Go.width}`)}const po=Date.now()-m.value[Ce].initStartTime,lo=Math.max(0,100-po);setTimeout(()=>{m.value[Ce]&&(m.value[Ce].initialized=!0,m.value[Ce].isInitializing=!1,console.log(`[进度卡片] 初始化完成 - 消息${Ce}`))},lo)}})});return}if(!m.value[Ce].initialized||m.value[Ce].isInitializing)return;const Cr=Date.now()-m.value[Ce].initStartTime;if(Cr<100){console.log(`⏱️ 消息 ${Ce} 初始化中,已过${Cr}ms,跳过吸附判断`);return}const Ir=Pn.top+m.value[Ce].offsetTop,qo=Ir<=ce&&Pn.bottom>ce+60;console.log(`📍 消息 ${Ce} 吸附判断:`,{naturalTop:Ir,headerBottom:ce,"naturalTop <= headerBottom":Ir<=ce,"contentRect.bottom":Pn.bottom,"headerBottom + 60":ce+60,shouldStick:qo,currentlySticky:m.value[Ce].isSticky}),m.value[Ce].isSticky!==qo&&(m.value[Ce].initialLeft=wn.left,m.value[Ce].initialWidth=wn.width),m.value[Ce].isSticky=qo,m.value[Ce].stickyTop=ce})},we=()=>{const ae=window.getComputedStyle(document.documentElement).fontSize;yr&&ae!==yr&&console.log("🔍 检测到flexible fontSize变化:",yr,"->",ae),yr=ae,Lr&&clearTimeout(Lr),Lr=setTimeout(()=>{console.log("🔍 检测到窗口大小变化,重新计算所有吸附卡片位置"),document.body.offsetHeight;const Ce={};Object.keys(m.value).forEach(zt=>{const _t=m.value[zt];_t&&_t.isSticky&&(Ce[zt]=!0,_t.isSticky=!1)}),Yt(()=>{document.body.offsetHeight,Object.keys(m.value).forEach(zt=>{const _t=m.value[zt];if(!_t)return;const mn=y.value[zt];if(!mn)return;const wn=mn.querySelector(".files-stats-white");if(!wn)return;const Pn=wn.getBoundingClientRect(),Cr=mn.getBoundingClientRect();_t.initialLeft=Pn.left,_t.initialWidth=Pn.width,_t.offsetTop=Pn.top-Cr.top,console.log(` - 更新消息${zt}的位置: left=${Pn.left}, width=${Pn.width}`)}),Object.keys(Ce).forEach(zt=>{m.value[zt]&&(m.value[zt].isSticky=!0)}),Yt(()=>{Ar()})})},100)};return qn(async()=>{try{console.log("🚀 AI问答页面初始化开始,优先加载历史记录..."),Ht.value=!0,window.addEventListener("error",zt=>{console.error("全局错误:",zt.error)}),window.addEventListener("unhandledrejection",zt=>{console.error("未处理的Promise拒绝:",zt.reason)}),document.removeEventListener("click",sr),document.addEventListener("click",sr);const ae=document.querySelector(".chat-content");ae?(console.log("✅ 找到 .chat-content 元素,添加滚动监听"),console.log("📦 .chat-content 样式:",{overflow:window.getComputedStyle(ae).overflow,overflowY:window.getComputedStyle(ae).overflowY,height:ae.offsetHeight,scrollHeight:ae.scrollHeight}),ae.addEventListener("scroll",()=>{console.log("🔄 滚动事件触发!scrollTop:",ae.scrollTop)},{once:!0}),ae.addEventListener("scroll",Ar)):console.error("❌ 未找到 .chat-content 元素"),yr=window.getComputedStyle(document.documentElement).fontSize,console.log("📐 初始fontSize:",yr),window.addEventListener("resize",we),window.addEventListener("beforeunload",R),window.addEventListener("unload",R),document.addEventListener("visibilitychange",N),Cn(),await pt(),console.log("✅ AI问答历史记录加载完成");try{const zt=await Zn();zt.success?console.log("✅ TTS服务连接正常"):console.warn("⚠️ TTS服务连接异常:",zt.message)}catch(zt){console.warn("⚠️ TTS服务连接测试失败:",zt)}const ce=Promise.all([ni(),Wi()]);try{await ce,console.log("✅ AI问答其他数据加载完成")}catch(zt){console.warn("⚠️ AI问答其他数据加载失败,但不影响主要功能:",zt)}console.log("🎉 AI问答页面初始化完成");const Ce=t.query.autoMessage;Ce&&(console.log("检测到自动发送消息:",Ce),n.replace({path:t.path,query:{...t.query,autoMessage:void 0}}),fn(Ce))}catch(ae){console.error("组件初始化失败:",ae)}}),Jr(()=>{k.value&&(zo(),k.value=null),ze(),document.removeEventListener("click",sr);const ae=document.querySelector(".chat-content");ae&&ae.removeEventListener("scroll",Ar),window.removeEventListener("resize",we),Lr&&(clearTimeout(Lr),Lr=null),window.removeEventListener("beforeunload",R),window.removeEventListener("unload",R),document.removeEventListener("visibilitychange",N)}),Db(async()=>{console.log("页面重新激活,检查并重新渲染markdown内容"),await Yt();for(const ae of g.value)if(ae.type==="ai"&&ae.content&&!ae.isTyping)try{console.log("重新渲染AI消息markdown:",ae.id);const ce=ue(ae.content),Ce=Ne(ce,ae.file),zt=gt(Ce);ae.displayContent=zt,setTimeout(()=>{ur()},100)}catch(ce){console.error("重新渲染markdown失败:",ce)}g.value=[...g.value],console.log("页面重新激活完成,markdown内容已重新渲染")}),(ae,ce)=>(L(),G("div",{class:"chat-container",onClick:aa},[He(Q5),x("div",O0t,[x("div",M0t,[ce[12]||(ce[12]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:C(oC),alt:"新建任务",class:oe(["new-chat-btn",{disabled:a.value}]),onClick:kn,style:rn({cursor:a.value?"not-allowed":"pointer"})},null,14,P0t)]),x("div",N0t,[Ht.value?(L(),G("div",R0t,ce[13]||(ce[13]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):Kt.value>0?(L(!0),G(Rt,{key:1},un(an.value,(Ce,zt)=>(L(),G("div",{key:zt,class:oe(["history-item",{active:Ce.isActive}]),onClick:_t=>Ce.isActive||a.value?null:_n(Ce),style:rn({cursor:Ce.isActive?"default":a.value?"not-allowed":"pointer"})},[x("div",L0t,[x("div",F0t,je(Ce.title),1),x("div",U0t,je(Ce.time),1)]),x("div",{class:oe(["delete-btn",{"always-visible":Ce.isActive}]),onClick:en(_t=>xt(Ce,zt),["stop"])},ce[14]||(ce[14]=[x("img",{src:kc,alt:"删除",class:"delete-icon"},null,-1)]),10,z0t)],14,B0t))),128)):(L(),G("div",$0t,[x("img",{src:C(iC),alt:"暂无数据",class:"empty-icon"},null,8,j0t),ce[15]||(ce[15]=x("div",{class:"empty-text"},"暂无数据",-1))]))])]),x("div",{class:oe(["main-chat",{"sidebar-open":ve.value}])},[x("div",H0t,[l.value?(L(),G("div",W0t,[x("h2",null,je(l.value),1)])):(L(),G("h2",V0t,"AI问答"))]),x("div",q0t,[i.value?(L(),G("div",ggt,[(L(!0),G(Rt,null,un(g.value,(Ce,zt)=>(L(),G("div",{key:zt,class:oe(["message-item",Ce.type])},[Ce.type==="user"?(L(),G("div",vgt,[x("div",mgt,[Ce.file?(L(),G("div",ygt,[x("div",bgt,[x("div",wgt,[Ce.file.type===".doc"||Ce.file.type===".docx"?(L(),G("img",{key:0,src:Ce.file.icon,alt:"文档图标",class:"file-icon-img"},null,8,Agt)):(L(),G("span",Cgt,je(Ce.file.icon),1))]),x("div",xgt,[x("div",Sgt,je(Ce.file.name),1),x("div",Egt,je(xa(Ce.file.size)),1)])])])):xe("",!0),Ce.content?(L(),G("div",kgt,je(Ce.content),1)):xe("",!0)]),x("div",Tgt,[x("button",{class:"action-btn copy-btn",onClick:_t=>Oe(Ce)},[x("img",{src:C(jv),alt:"复制",class:"action-icon"},null,8,Dgt),ce[25]||(ce[25]=bn(" 复制 ",-1))],8,_gt),x("button",{class:"action-btn edit-btn",onClick:_t=>Qe(Ce)},[x("img",{src:C(aC),alt:"编辑",class:"action-icon"},null,8,Ogt),ce[26]||(ce[26]=bn(" 编辑 ",-1))],8,Igt)])])):Ce.type==="ai"?(L(),G("div",Mgt,[Ce.webSearchRaw&&Ce.webSearchRaw.total>0?(L(),G("div",Pgt,[He(uAe,{total:Ce.webSearchRaw.total,results:Ce.webSearchRaw.results,isExpanded:ve.value,onToggle:_t=>ar(zt)},null,8,["total","results","isExpanded","onToggle"])])):xe("",!0),x("div",Ngt,[x("div",Rgt,[x("img",{src:C(rk),alt:"AI",class:"ai-icon"},null,8,Bgt)]),x("div",{class:"message-content","data-message-index":zt,ref_for:!0,ref:_t=>y.value[zt]=_t},[x("div",Fgt,[Ce.showStats?(L(),G("div",{key:0,class:oe(["files-stats-white",{sticky:m.value[zt]?.isSticky&&m.value[zt]?.initialized&&!m.value[zt]?.isInitializing}]),style:rn(m.value[zt]?.isSticky&&m.value[zt]?.initialized&&!m.value[zt]?.isInitializing&&m.value[zt]?.initialLeft>0&&m.value[zt]?.initialWidth>0?{position:"fixed",top:"56px",left:m.value[zt].initialLeft+"px",width:m.value[zt].initialWidth+"px",zIndex:999}:{}),"data-message-index":zt},[x("div",zgt,[He(dAe,{status:Le(Ce.currentStatus,Ce.progress),size:36,class:"stats-avatar"},null,8,["status"]),x("span",{innerHTML:Ce.statusMessage},null,8,$gt)]),Ce.progress<100?(L(),G("div",jgt,[x("div",Hgt,[x("div",{class:"progress-fill",style:rn({width:Ce.progress+"%"})},null,4),x("div",{class:"progress-dot",style:rn({left:Ce.progress+"%"})},null,4)]),x("span",Wgt,je(Ce.progress)+"%",1)])):xe("",!0),Ce.progress===100&&Ce.reports&&Ce.reports.length>0?(L(),G("div",Vgt,[He(lAe,{reports:Ce.reports.filter(_t=>_t.status==="completed"&&_t.type!=="category_title"),disabled:!1,title:De.value},null,8,["reports","title"])])):xe("",!0)],14,Ugt)):xe("",!0),Ce.summary?(L(),G("div",qgt,[He(py,{content:Ce.summary,streaming:!1},null,8,["content"])])):xe("",!0),Ce.isTyping&&(!Ce.reports||Ce.reports.length===0)&&Ce.progress<100?(L(),G("div",Ggt,ce[27]||(ce[27]=[ki('<span class="loading-text" data-v-53f29151>AI正在思考中...</span><div class="thinking-animation" data-v-53f29151><span class="dot" data-v-53f29151></span><span class="dot" data-v-53f29151></span><span class="dot" data-v-53f29151></span></div>',2)]))):xe("",!0),Ce.reports&&Ce.reports.length>0?(L(),G("div",Kgt,[(L(!0),G(Rt,null,un(Ce.reports,(_t,mn)=>(L(),G(Rt,{key:`${_t.source_file}-${_t.file_index}-${mn}`},[_t.type==="category_title"?(L(),yt(aAe,{key:0,category:_t.category,number:_t.number,count:_t.count,onToggle:wn=>Se(zt,wn)},null,8,["category","number","count","onToggle"])):!_t.type||_t.type!=="category_title"?cn((L(),yt(sAe,{key:1,report:_t,onPreviewFile:Tr},null,8,["report"])),[[kr,qe(zt,_t.metadata?._displayCategory||_t.metadata?.primary_category)]]):xe("",!0)],64))),128)),Ce.isTyping&&Ce.progress<100&&$e(Ce.reports)?(L(),G("div",Ygt,ce[28]||(ce[28]=[ki('<span class="loading-text" data-v-53f29151>AI正在思考中...</span><div class="thinking-animation" data-v-53f29151><span class="dot" data-v-53f29151></span><span class="dot" data-v-53f29151></span><span class="dot" data-v-53f29151></span></div>',2)]))):xe("",!0)])):xe("",!0),Ce.hasWebSearchResults&&Ce.webSearchSummary?(L(),G("div",Qgt,[He(cAe,{summary:Ce.webSearchSummary},null,8,["summary"])])):xe("",!0),!Ce.reports||Ce.reports.length===0?(L(),G("div",Zgt,[Ce.displayContent&&Ce.displayContent.length>0?(L(),G("div",Xgt,[x("div",{innerHTML:Ce.displayContent},null,8,Jgt)])):xe("",!0)])):xe("",!0)]),cn(x("div",evt,null,512),[[kr,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)]]),cn(x("div",tvt,[x("div",nvt,[x("button",{class:"action-btn copy-btn",onClick:_t=>Ge(Ce)},[x("img",{src:C(jv),alt:"复制",class:"action-icon"},null,8,ovt),ce[29]||(ce[29]=bn(" 复制 ",-1))],8,rvt),x("button",{class:"action-btn regenerate-btn",onClick:_t=>Ve(zt),disabled:me.value},[x("img",{src:C(yq),alt:"重新生成",class:"action-icon"},null,8,avt),ce[30]||(ce[30]=bn(" 重新生成 ",-1))],8,ivt),x("button",{class:"action-btn delete-btn",onClick:_t=>Rr(zt)},ce[31]||(ce[31]=[x("img",{src:kc,alt:"删除",class:"action-icon"},null,-1),bn(" 删除 ",-1)]),8,svt),x("button",{class:oe(["action-btn voice-btn",{speaking:vo(Ce.id)}]),onClick:_t=>Yr(Ce)},[x("img",{src:C(o7),alt:"语音朗读",class:"action-icon"},null,8,uvt),bn(" "+je(vo(Ce.id)?"停止朗读":"语音朗读"),1)],10,lvt)]),x("div",cvt,[x("button",{class:oe(["action-btn thumbs-up-btn",{active:Ce.userFeedback==="like"}]),onClick:_t=>$t(Ce),title:Ce.userFeedback==="like"?"取消点赞":"点赞"},[x("img",{src:C(Qy),alt:"点赞",class:"action-icon"},null,8,fvt)],10,dvt),x("button",{class:oe(["action-btn thumbs-down-btn",{active:Ce.userFeedback==="dislike"}]),onClick:_t=>Ot(Ce),title:Ce.userFeedback==="dislike"?"取消点踩":"点踩"},[x("img",{src:C(Zy),alt:"踩",class:"action-icon"},null,8,hvt)],10,pvt)])],512),[[kr,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)]])],8,Lgt)]),cn(x("div",gvt,[x("div",{class:"search-sources-header",onClick:_t=>xi(Ce.id)},[x("span",null,"基于"+je(Ce.searchSources?.length||0)+"个搜索来源",1),x("div",{class:oe(["expand-icon",{expanded:Z.value[Ce.id]}])},ce[32]||(ce[32]=[x("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[x("path",{d:"M3 4.5L6 7.5L9 4.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)],8,vvt),cn(x("div",mvt,[x("div",yvt,[x("div",bvt,[(L(!0),G(Rt,null,un(Ce.searchSources||[],(_t,mn)=>(L(),G("div",{class:"source-card",key:mn,onClick:wn=>C(Oi)(_t.url)},[x("div",Avt,je(_t.title),1),x("div",Cvt,je(_t.content),1),x("div",xvt,je(mn+1),1)],8,wvt))),128))])])],512),[[kr,Z.value[Ce.id]]])],512),[[kr,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)&&Ce.searchSources&&Ce.searchSources.length>0&&!te.value[Ce.id]]]),cn(x("div",Svt,ce[33]||(ce[33]=[x("div",{class:"thinking-animation"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1)]),512),[[kr,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)&&F.value&&(H.value===Ce.id||H.value===Ce.ai_message_id)&&U.value.length===0]]),cn(x("div",Evt,[(L(!0),G(Rt,null,un(U.value,(_t,mn)=>(L(),G("div",{key:mn,class:"related-question-item",onClick:wn=>mi(_t)},[x("span",null,je(_t),1),ce[34]||(ce[34]=x("svg",{class:"arrow-icon",viewBox:"0 0 16 16",fill:"none"},[x("path",{d:"M6 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,kvt))),128))],512),[[kr,!Ce.isTyping&&(Ce.displayContent&&Ce.displayContent.length>0||Ce.summary)&&(H.value===Ce.id||H.value===Ce.ai_message_id)&&U.value.length>0]])])):xe("",!0)],2))),128))])):(L(),G("div",G0t,[x("div",K0t,[x("div",Y0t,[x("img",{src:C(rk),alt:"AI头像",class:"ai-avatar-img"},null,8,Q0t)]),ce[16]||(ce[16]=x("div",{class:"ai-greeting"},[x("h3",null,"我是蜀道安全管理AI智能助手,您的得力帮手"),x("p",null,"我可以帮您处理这些事情")],-1))]),x("div",Z0t,[(L(!0),G(Rt,null,un(v.value,(Ce,zt)=>(L(),G("div",{key:Ce.id||zt,class:"function-card",onClick:_t=>wr(Ce.function_title)},[x("div",J0t,[x("div",egt,[x("img",{src:be(Ce.function_title),alt:Ce.function_title,class:"card-icon-img"},null,8,tgt)]),x("h4",null,je(Ce.function_title),1)]),x("div",ngt,[x("p",null,je(Ce.function_content),1)])],8,X0t))),128)),v.value.length===0?(L(),G("div",{key:0,class:"function-card",onClick:ce[0]||(ce[0]=Ce=>wr("桥梁结构设计问题"))},[x("div",rgt,[x("div",ogt,[x("img",{src:C(ok),alt:"桥梁结构设计问题",class:"card-icon-img"},null,8,igt)]),ce[17]||(ce[17]=x("h4",null,"桥梁结构设计问题",-1))]),ce[18]||(ce[18]=x("div",{class:"card-description"},[x("p",null,"各类桥梁结构设计,计算与分析")],-1))])):xe("",!0),v.value.length===0?(L(),G("div",{key:1,class:"function-card",onClick:ce[1]||(ce[1]=Ce=>wr("桥梁施工技术咨询"))},[x("div",agt,[x("div",sgt,[x("img",{src:C(ik),alt:"施工技术咨询",class:"card-icon-img"},null,8,lgt)]),ce[19]||(ce[19]=x("h4",null,"施工技术咨询",-1))]),ce[20]||(ce[20]=x("div",{class:"card-description"},[x("p",null,"桥梁施工方法,工艺与技术要点")],-1))])):xe("",!0),v.value.length===0?(L(),G("div",{key:2,class:"function-card",onClick:ce[2]||(ce[2]=Ce=>wr("材料与力学问题"))},[x("div",ugt,[x("div",cgt,[x("img",{src:C(ak),alt:"材料与力学问题",class:"card-icon-img"},null,8,dgt)]),ce[21]||(ce[21]=x("h4",null,"材料与力学问题",-1))]),ce[22]||(ce[22]=x("div",{class:"card-description"},[x("p",null,"建筑材料性能与结构力学分析")],-1))])):xe("",!0),v.value.length===0?(L(),G("div",{key:3,class:"function-card",onClick:ce[3]||(ce[3]=Ce=>wr("规范标准查询"))},[x("div",fgt,[x("div",pgt,[x("img",{src:C(sk),alt:"规范标准查询",class:"card-icon-img"},null,8,hgt)]),ce[23]||(ce[23]=x("h4",null,"规范标准查询",-1))]),ce[24]||(ce[24]=x("div",{class:"card-description"},[x("p",null,"行业规范,标准解读与应用")],-1))])):xe("",!0)])]))]),!i.value&&!B.value?(L(),G("div",Tvt,[(L(!0),G(Rt,null,un(h.value,(Ce,zt)=>(L(),G("div",{key:Ce.id||zt,class:"question-tag",onClick:_t=>fr(Ce.question)},[x("img",{src:fe(Ce.question),alt:"问题",class:"question-icon"},null,8,Dvt),bn(" "+je(Ce.question),1)],8,_vt))),128)),h.value.length===0?(L(),G("div",{key:0,class:"question-tag",onClick:ce[4]||(ce[4]=Ce=>fr("施工安全生产责任的规定"))},[x("img",{src:C(lk),alt:"问题",class:"question-icon"},null,8,Ivt),ce[35]||(ce[35]=bn(" 施工安全生产责任的规定 ",-1))])):xe("",!0),h.value.length===0?(L(),G("div",{key:1,class:"question-tag",onClick:ce[5]||(ce[5]=Ce=>fr("工程建设质量的要求"))},[x("img",{src:C(uk),alt:"问题",class:"question-icon"},null,8,Ovt),ce[36]||(ce[36]=bn(" 工程建设质量的要求 ",-1))])):xe("",!0),h.value.length===0?(L(),G("div",{key:2,class:"question-tag",onClick:ce[6]||(ce[6]=Ce=>fr("公路桥梁加固设计规范"))},[x("img",{src:C(ck),alt:"文档",class:"question-icon"},null,8,Mvt),ce[37]||(ce[37]=bn(" 公路桥梁加固设计规范 ",-1))])):xe("",!0)])):xe("",!0),j.value.length>0?(L(),G("div",{key:1,class:"user-recommend-questions",onClick:ce[7]||(ce[7]=en(()=>{},["stop"]))},[x("div",Pvt,[(L(!0),G(Rt,null,un(j.value,(Ce,zt)=>(L(),G("div",{key:zt,class:"recommend-item",onClick:_t=>Nt(Ce)},je(Ce),9,Nvt))),128))])])):xe("",!0),x("div",Rvt,[x("div",Bvt,[B.value?(L(),G("div",Lvt,[x("div",Fvt,[x("div",Uvt,[B.value.type===".doc"||B.value.type===".docx"?(L(),G("img",{key:0,src:B.value.icon,alt:"文档图标",class:"file-icon-img"},null,8,zvt)):(L(),G("span",$vt,je(B.value.icon),1))]),x("div",jvt,[x("div",Hvt,je(B.value.name),1),x("div",Wvt,je(xa(B.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:Po},ce[38]||(ce[38]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0),x("div",Vvt,[x("button",{class:oe(["network-search-btn",{active:X.value}]),onClick:Ci,title:X.value?"关闭联网搜索":"启用联网搜索",disabled:me.value},[x("div",Gvt,[x("img",{src:X.value?C(pAe):C(hAe),alt:"联网搜索",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,8,Kvt)])],10,qvt),x("button",{class:"attach-btn",onClick:Hr,disabled:me.value},[x("div",Qvt,[x("img",{src:C(bq),alt:"附件",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,8,Zvt)])],8,Yvt),cn(x("input",{type:"text",placeholder:"请在此处发送消息 (Enter键可立即发送)",class:"message-input","onUpdate:modelValue":ce[8]||(ce[8]=Ce=>r.value=Ce),onKeyup:$r(Nn,["enter"]),onInput:Ur,disabled:me.value,maxlength:"2000"},null,40,Xvt),[[qr,r.value]]),x("button",{class:oe(["voice-btn",{recording:C(E)}]),onClick:Ye,disabled:me.value},[x("div",emt,[x("img",{src:C(rp),alt:"语音",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,8,tmt),C(E)?(L(),G("div",nmt)):xe("",!0)])],10,Jvt),ce[39]||(ce[39]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:ce[9]||(ce[9]=Ce=>a.value?vn():Nn()),disabled:!a.value&&(me.value||!r.value.trim())},[a.value?(L(),G("span",omt,"停止")):(L(),G("img",{key:1,src:r.value.trim()&&!me.value?C(ip):C(op),alt:"发送",class:"send-icon"},null,8,imt))],8,rmt)])])])],2),x("input",{ref_key:"fileInput",ref:W,type:"file",accept:".docx",style:{display:"none"},onChange:pr},null,544),He(ldt,{ref_key:"toastRef",ref:b,message:w.value,type:A.value,duration:S.value},null,8,["message","type","duration"]),He(h0,{visible:c.value,title:ie.value,message:pe.value,onConfirm:Ft,onCancel:Fr,onClose:Fr},null,8,["visible","title","message"]),He(e0t,{modelValue:he.value,"onUpdate:modelValue":ce[10]||(ce[10]=Ce=>he.value=Ce),"file-path":Ee.value,"file-name":Q.value},null,8,["modelValue","file-path","file-name"]),He(x0t,{visible:ve.value,results:Pe.value.results,keywords:Pe.value.keywords,total:Pe.value.total,"onUpdate:visible":ce[11]||(ce[11]=Ce=>ve.value=Ce)},null,8,["visible","results","keywords","total"])]))}},smt=Zo(amt,[["__scopeId","data-v-53f29151"]]),lmt="modulepreload",umt=function(e){return"/"+e},voe={},Lf=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=a?.nonce||a?.getAttribute("nonce");o=l(n.map(u=>{if(u=umt(u),u in voe)return;voe[u]=!0;const d=u.endsWith(".css"),c=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":lmt,d||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),d)return new Promise((p,v)=>{f.addEventListener("load",p),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},gAe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABKCAYAAAAc0MJxAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAT6SURBVHic7ZxRUqNIGIC/hiW+8mxMLZxgMycYPIHxBKsnGOcEiSfQPYGzJzA5QZgTmD1BU6XkdfI6UKT3gUaIJoatTYBM+KooUJr456sfaLrxF2xBSulYljUQQnwG+oCtl0NmAQRKqQUwieN47Lpu8NEBYtOO5+dnzzTNoVLK222MzUQp5cdxfL1J2FpR8/n8Til1o39cAOMkSSZJksyAheu6i/2EWw1SStuyLGe5XDqmaV4AHuDo3aNut3v79pgVUVJK++Tk5FFn0QK4j6Lor0MXsw0ppdPpdP4ERvpXsyiKzovfe0VUGIZPpNehQCl1eXZ2Nqss2gaghU0BRwjhn56enmf7jGwjDMMhWlIURefHJgnAdd0giqJz0kTx5vP5XbZPwKtJCRBFkbvtDvCr8/Ly0hdCTAF7uVye93o93wCwLOtBtxkduyQAfTbdA5imOQQQhWwK9AUsqDHGxiCltLUXO4oi17Asa6D3+a2kHH3HGwNYljUwgAuAJEkmdQbWRDInQojPhhDCBjAMI6g1qgaiO9gAfQPdI43jOKgroAaTdThtEYahAuh2uxuf+46ZzI+xrWFLSiuqJK2okrSiStKKKslvNf/9AWmH19HLAvCBiV43hrpEOcCUfFSxSB+4IRV1Sd6XqZU6Tj2H95J84BtQHAPzgCfWy6yeMAxV1qmqABuQgNLLA+9FOKQiszaPFcW2lsxP1Rn1hVzMPXANBG/aBMA5aYZBeh272ndg26ha1JVez4CvW9rekku82FM8palSlEOeTX6J9gG5KG/HsfxnqhRVnF3+p+Qx/ppjIRVe6Wx1XaKC//k5kvSOWJmsQ+yZ9/XaKWzvnaaIcuoOYBtNEDUlPZUG2xrWSRNEeXr9R51BbKMJog6CVlRJWlElaUWVpBVVklZUSVpRJWlFlaQVVZJWVElaUSVpRZXkEEUVB+sqm/OrUlRQ2HYK275erxtm8fS6ON/3y4sqfqnfC9vZu6N94I585PKBXNR4w7HVzSJXPAH6RDqpOX3z++Kk6NtFsppF0w2fsRfqmgD9W689Vic1P7GaNRnfSCdDs8zxyLPM321oW6g4oxzy7JGsn06/Ir1evZ04KB77g4pmYF79VCwKYEh+WpV9CcNh9fS8+bD1DqlTFKQX7exL/yD94psy5IpVSXcb2u2FzE9d70d9Jb3ujEgF3ZFm2oy8G+GQ/w9zxoj0nYTqqSmjMgZ8fMcr3vmu6giw7ozKGOvFI31jxSPPoEAvE9bfESulblEZPg17Z/Mth/isVwutqJK0okrSiipJK6okBvqBU0p56IVpdk7ByeJVFIdfwWfnWJbl6M3AQI8emqZZ2Wt+h8JyuXQAlFILQyn1HUBXvWkpUHAyMeI4zh4PBu11KkdK6aAHCeM4Hhuu6wZCCB+wO53OlxpjaxS6TJKjlPJd1w0MgCRJsqGLm5eXl6O/VulsGgHEcXwNuh/V6/V8IcQ9YAshHnXDo6RQQwoKRX1Wah3M5/OprkZ2lAVtdDmkR9JBw1m32/2U7Vvpmf/8+fOStLvgdDodGYbh8BiyS0pph2E41DWjHCGErwtuvbK2eoauTjbSPwaAnyTJxDCMII7j4NBr3um7u22aZl93AQboDrcQ4v709PTdv8htLDOi628+CCG8fQXcJIQQfpIkt71ez1+7f9sHZAVLgQtdGcjh8B93FnqZKaW+lylY+i+/oRHLPcYUkgAAAABJRU5ErkJggg==",i7="/assets/13-Bv7KwdLX.png",moe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARcSURBVHic7Z2/b9tGFMe/7yi7MuCB2eSNArwkk9ytgGwomeIuadDsQf6AIhlT2EBowEPG5A/okCFbgSRTu0Voja7m1A4NIG7JFg4qrAgiXwf9gFrdkZRO4pHwfTaLFPXw0bvju0fhTMhJx2d3NBq0BNfuMbhFzB6IXABu3muUlAhAyEAkgDCm+NXF+U4375sp64SOz24yHD4B0WNUX1ZeIgLeUhyfdZ/vhGknKgVeU3GLEJ/9dv6Vrzwse7Hz9MpLHOcNgNam4qoYgYjj+7JsXBA4kfcegFdAYFUiFHF8+/8S/yPQystkQaKYPzoZtl7BQVUJL3GcNx2fZ/eEmcCj0y8+7JyXh1YyHD6Z/kHAbOj2zMVUOSKxtdXs+hQJAGDHeWY6oorhTrOQAODoZPgZ17nWW41IbG01Rfv0qgMrbxXGS1uHnYemI6kqgmv3RGLLlpVhcEuQHb4rQ8yegM3A1SFyBWwG6uCK7HMsaViBmliBmliBmliBmliBmliBmtRMffBuHWjflH9/Hz4xPnzkzGvs7xF264uv9wfI9f51YEzg/h7hx+8d6bGLvxKcvI4zr/HgG4Hjrxe/hKDHePzTSDvGPBgbwqrsmx6TZVYZMSZQljnztJrVmJ6NRNlqyueueQ5vZv7qpBQYE7iOc8qAEYGHKfPflMYNqoTEwgU23PEdOA/HB+WfBwuPsH1LUftJ6jabgRJk5Ut/APxymSy83rhBubPVFIUK3K0DB5Ks+v3PRLlyuFvyYVxodGlLt6AnFygTXiYKFXh4Sy5jKk+Whft7hIZbXomFCdyty1cX8wv/S0UWthXiy0BhAlWdk7/nsk41D+apG01RWGSq+S/oJWi44/qwP5C/t9Us7zAurJ2lah48uuPg0R15W2ueVpPw62UxPb5lKCQD8zQPssjq3piiMIHruEYZe4SFCFzXTSCtCWuKjUe0TPMgizIW1RsXqGoemL7Wutj4XVg17PoD4OS1/MHPD9860qwdF+OkXPaZYKMCVc0DYFz/qURc9lg57I8PBIJe9hO7otjomEib9FXLNmD8WFNF2XqEGxV4N6V2SxuGaQ/Fy9bq3+gQ/megFpUmqT8Afv4jUQ7j/b3xPKhqgxX1qwQAoKOTYXlm5ApSvrqgYliBmliBmliBmliBmliBmliBmliBmliBmliBmliBmliBmgiM98+zrEYkwGwFrk4omCg0HUVVYSASBApMB1JVBBCKhEbvTAdSVWKKX4larR7A3khWIbo43+mKrk8RmF+ajqZqEPAWmNSBYnv7BWwWLgXF8RkwEWizcEmIZ9sjz1Yikyy0d+RsgvltkWcCuz5FIo7vAwgNBFUVwomjGXYb5PxIt0FeaCZ0n++EIo5vww7neQKZPCBjL/2j0y8+mK7z/qoRmF+K7e0XXZ+kVUr2PyN4euWx4zxj4Dtcn53eMsVNWepnTu3Tq47DzsME8CYbN3qovtQIzBEThQQKEhq9q9XqQZa4Kf8CWPFo73QXhUoAAAAASUVORK5CYII=",cmt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAH4SURBVFiF7ZdNbtpQFIXPtS3ijOoleAdlXJXIXUGyg8AO0hkNSBgpPwxZAllBsgPcInVMVoCXQEcYB/tmgBsRYfK4r+C4EUdiYN4973743GcAOOig9xVtWqj9mJ+RQZ920YRT/jO6PXrQ8W4GbMVDAjxtqrVO3P11deRLbcbOAFRi6py0577UZin3BQIzSRpiIMtyU+bh682oc9KeQ3InlYAAEPSOQxEcAK85A0wzA+MuiM4BuFLIYiImmhhJ8g1ACEAUd2EzGPSOQx3I4g4J9CC3msFVeT47iCInd9G2p4FP07X3CY7XnLl/Lw2iRsp8D8ABU6fWiqaja7uft6X4DqZxfJGa5iT3FccXuSZG/1Xd8nSvfEjjdFO/QiPWkTjiBejBAiYb1h5fLmx7iqenumI7H4D7VoEY8PdNZQxgrKrLZvHurZpaK66TArD0EZceUBzxl8u4ahE+6zRbMB6zEdlaYkALfAZQR+rLvF1sMb+r+ngRG5VKH1E00Opm2+vfMgqJAbPHh7iRrkofcekBxRHXLuM6COda3Rh3o5vKQGIRAxLYBciT+pbin1KHGJBBIYBA6luKQqlDDJhFNJD6dFX6Q3IA/FcpZ5AA52t75u2jOTHy/3ytaJtDUjXYHKrL9qP/N2KT8X1hJMoIdgKRmoX9+DiodHoGUxWxeEnnJfMAAAAASUVORK5CYII=",l3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE4SURBVFiF7ZY/bsIwFMZ/RjlQGSoWhvYEPUKZWFg4wuMGMLAw0SP0BM3AgjrAEXoEDhDJHezAExAbBYdUar4lf5z3fT/ZVvzgv8tcvBE7Bd6Bpzt898AnMEfM4XYAsV/Ayx3B10BeQxA9FS6Jw8HN4jT0Qabu366M58ACyGNTWVca4HzNZ4iRJkKrALTyY7jYDBhjGWHoB2pCKrDsMKyBFWKKcqBXUTBT4RtgieG5ZjhA5uuXwMb7BgH2/joGBjVDqzTwvgGAcsNZRonDOfetmgEnt+bppXzDAPXXPKboHniYOoAOoAP4UwA/bQN8tA0w53QKtgAg5oCYPmUv8HCAE4iop+JiPI2iHZGTZddIvPKN9QPrRgCUb+w/sAK2ieO33vcGANe9DoEJlm/q74nC10+Aoe6KO/0C8TJFqP1ldx8AAAAASUVORK5CYII=",Aq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGSSURBVFiF7ZexbcJAFIa/F4NAggKKRKJzNmAEswFUuIQJyAaIDbIBlKSCDWAERqBDggIXRALh06VABmLOxNiRoOAv7969/9PzvbszPJVCq2ZxtHQL/TQ5XtIs1kIdpHU3gP/QE+AJcHeATNTE0i200NJBqAZjohm/fm0a1xKumsXRoT2PmiroVYabqSneWIGFW3RA+ufmKeRYMFm6hZZp0lgBC7oAaD6zu0yvPPa8uG7nFVrXS6V9zu8ifKClAwzC8VF7wAG41Tys8tjzsrtMDyCqmlc3YRrzuDketwvCOtx6Yiv8dmW4nZtiFm7etsj0ReP91S2B4ldASxVwLKzJws3bZnNrAjhaKMVNGxtAid8APQexwxAnc7FBzxV++98BKsPtXKFq5xDB3G9zVYv6RKkATBCnmWTmNwNcQgRKZp4I4BIiuTnc0IYmCOA96fpAdz+IHhtgXS/FPlCS5jADaGYA+5zfTQNxvI4PmppixDR4eDxIqj+esBTUTK8iYwXeht8DBTUiqG+SZga6HfUke+oHeMmu4S99q1IAAAAASUVORK5CYII=",dmt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGrSURBVFiFtZe9TsMwFEbPTZaOGRkZ2VGpwuSRjfIGdEMCiaovUDMBS1GlFkZ4BB4hTEXtxMYIb9AdCTO0Qf1LYzvuN0a2z5Ed35tIu62Tn4gucI7hywj9x55+YQe57Oi2MVyLkAj0Bz2t48Nj9QRcADWEPYFmI1UyHmVZSPhVR2vgVoQEqAGqniqJgObqYAPd+YRgcAPd1ediOI2MYbppUiiJIvg80/joWAlwUjBAVTmOEjhiaMWTUfbeSJUAKqREGdxAa/igX2OA8SjLQkrYwPObFucPQ0m4wJcEQki4wtcEqkj4wDcK+Ej4wgGkaJLNwgI3c4AXvFTARmJbyuBQcASLsTgOb7iVgI+ELdxawEXCBQ4Q2Q50WHDfZbz1Dji8jE5l20rA4yZYS5QKVLiGVhJbBWwqXAQfVGhghQK25bVqA9so4Frbq0isCfg2Fl+JJYEqXc1X4l+gKtxXIg4J95GQ0PDFlK39K5zF9VQ9A0loOJTvhBgOol3B8wx6WudfThsyjQz0dwUvkxDhLZ7k22RIgE8xsz+WUPA841GW1VP1LTPOFOF+2NN3f3iMagxNfNeRAAAAAElFTkSuQmCC";var wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fmt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vm(e){var t={exports:{}};return e(t,t.exports),t.exports}var zp,y8,o6=function(e){return e&&e.Math==Math&&e},mo=o6(typeof globalThis=="object"&&globalThis)||o6(typeof window=="object"&&window)||o6(typeof self=="object"&&self)||o6(typeof wi=="object"&&wi)||(function(){return this})()||Function("return this")(),Cq=Function.prototype,yoe=Cq.apply,pmt=Cq.bind,boe=Cq.call,vAe=typeof Reflect=="object"&&Reflect.apply||(pmt?boe.bind(yoe):function(){return boe.apply(yoe,arguments)}),mAe=Function.prototype,jF=mAe.bind,HF=mAe.call,hmt=jF&&jF.bind(HF),$i=jF?function(e){return e&&hmt(HF,e)}:function(e){return e&&function(){return HF.apply(e,arguments)}},Ts=function(e){return typeof e=="function"},ql=function(e){try{return!!e()}catch{return!0}},Ul=!ql((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),J2=Function.prototype.call,pu=J2.bind?J2.bind(J2):function(){return J2.apply(J2,arguments)},woe={}.propertyIsEnumerable,Aoe=Object.getOwnPropertyDescriptor,gmt=Aoe&&!woe.call({1:2},1)?function(e){var t=Aoe(this,e);return!!t&&t.enumerable}:woe,xq={f:gmt},Pc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vmt=$i({}.toString),mmt=$i("".slice),nv=function(e){return mmt(vmt(e),8,-1)},fM=mo.Object,ymt=$i("".split),yAe=ql((function(){return!fM("z").propertyIsEnumerable(0)}))?function(e){return nv(e)=="String"?ymt(e,""):fM(e)}:fM,bmt=mo.TypeError,Sq=function(e){if(e==null)throw bmt("Can't call method on "+e);return e},sf=function(e){return yAe(Sq(e))},Hu=function(e){return typeof e=="object"?e!==null:Ts(e)},ou={},Coe=function(e){return Ts(e)?e:void 0},Zb=function(e,t){return arguments.length<2?Coe(ou[e])||Coe(mo[e]):ou[e]&&ou[e][t]||mo[e]&&mo[e][t]},xA=$i({}.isPrototypeOf),pM=Zb("navigator","userAgent")||"",xoe=mo.process,Soe=mo.Deno,Eoe=xoe&&xoe.versions||Soe&&Soe.version,koe=Eoe&&Eoe.v8;koe&&(y8=(zp=koe.split("."))[0]>0&&zp[0]<4?1:+(zp[0]+zp[1])),!y8&&pM&&(!(zp=pM.match(/Edge\/(\d+)/))||zp[1]>=74)&&(zp=pM.match(/Chrome\/(\d+)/))&&(y8=+zp[1]);var i6,dk=y8,hd=!!Object.getOwnPropertySymbols&&!ql((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dk&&dk<41})),Eq=hd&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wmt=mo.Object,hy=Eq?function(e){return typeof e=="symbol"}:function(e){var t=Zb("Symbol");return Ts(t)&&xA(t.prototype,wmt(e))},Amt=mo.String,WF=function(e){try{return Amt(e)}catch{return"Object"}},Cmt=mo.TypeError,kq=function(e){if(Ts(e))return e;throw Cmt(WF(e)+" is not a function")},fk=function(e,t){var n=e[t];return n==null?void 0:kq(n)},xmt=mo.TypeError,Smt=Object.defineProperty,Rh=mo["__core-js_shared__"]||(function(e,t){try{Smt(mo,e,{value:t,configurable:!0,writable:!0})}catch{mo[e]=t}return t})("__core-js_shared__",{}),mm=vm((function(e){(e.exports=function(t,n){return Rh[t]||(Rh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Emt=mo.Object,sC=function(e){return Emt(Sq(e))},kmt=$i({}.hasOwnProperty),Wo=Object.hasOwn||function(e,t){return kmt(sC(e),t)},Tmt=0,_mt=Math.random(),Dmt=$i(1 .toString),pk=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Dmt(++Tmt+_mt,36)},ew=mm("wks"),rv=mo.Symbol,Toe=rv&&rv.for,Imt=Eq?rv:rv&&rv.withoutSetter||pk,Zs=function(e){if(!Wo(ew,e)||!hd&&typeof ew[e]!="string"){var t="Symbol."+e;hd&&Wo(rv,e)?ew[e]=rv[e]:ew[e]=Eq&&Toe?Toe(t):Imt(t)}return ew[e]},Omt=mo.TypeError,Mmt=Zs("toPrimitive"),Pmt=function(e,t){if(!Hu(e)||hy(e))return e;var n,r=fk(e,Mmt);if(r){if(n=pu(r,e,t),!Hu(n)||hy(n))return n;throw Omt("Can't convert object to primitive value")}return(function(o,i){var a,s;if(Ts(a=o.toString)&&!Hu(s=pu(a,o))||Ts(a=o.valueOf)&&!Hu(s=pu(a,o)))return s;throw xmt("Can't convert object to primitive value")})(e)},Xb=function(e){var t=Pmt(e,"string");return hy(t)?t:t+""},VF=mo.document,Nmt=Hu(VF)&&Hu(VF.createElement),bAe=function(e){return Nmt?VF.createElement(e):{}},wAe=!Ul&&!ql((function(){return Object.defineProperty(bAe("div"),"a",{get:function(){return 7}}).a!=7})),_oe=Object.getOwnPropertyDescriptor,Rmt=Ul?_oe:function(e,t){if(e=sf(e),t=Xb(t),wAe)try{return _oe(e,t)}catch{}if(Wo(e,t))return Pc(!pu(xq.f,e,t),e[t])},a7={f:Rmt},Bmt=/#|\.prototype\./,lC=function(e,t){var n=Fmt[Lmt(e)];return n==zmt||n!=Umt&&(Ts(t)?ql(t):!!t)},Lmt=lC.normalize=function(e){return String(e).replace(Bmt,".").toLowerCase()},Fmt=lC.data={},Umt=lC.NATIVE="N",zmt=lC.POLYFILL="P",$mt=lC,Doe=$i($i.bind),Tq=function(e,t){return kq(e),t===void 0?e:Doe?Doe(e,t):function(){return e.apply(t,arguments)}},jmt=mo.String,Hmt=mo.TypeError,mu=function(e){if(Hu(e))return e;throw Hmt(jmt(e)+" is not an object")},Wmt=mo.TypeError,Ioe=Object.defineProperty,Vmt=Ul?Ioe:function(e,t,n){if(mu(e),t=Xb(t),mu(n),wAe)try{return Ioe(e,t,n)}catch{}if("get"in n||"set"in n)throw Wmt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},F0={f:Vmt},il=Ul?function(e,t,n){return F0.f(e,t,Pc(1,n))}:function(e,t,n){return e[t]=n,e},qmt=a7.f,Gmt=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return vAe(e,this,arguments)};return t.prototype=e.prototype,t},Tf=function(e,t){var n,r,o,i,a,s,l,u,d=e.target,c=e.global,f=e.stat,p=e.proto,v=c?mo:f?mo[d]:(mo[d]||{}).prototype,h=c?ou:ou[d]||il(ou,d,{})[d],g=h.prototype;for(o in t)n=!$mt(c?o:d+(f?".":"#")+o,e.forced)&&v&&Wo(v,o),a=h[o],n&&(s=e.noTargetGet?(u=qmt(v,o))&&u.value:v[o]),i=n&&s?s:t[o],n&&typeof a==typeof i||(l=e.bind&&n?Tq(i,mo):e.wrap&&n?Gmt(i):p&&Ts(i)?$i(i):i,(e.sham||i&&i.sham||a&&a.sham)&&il(l,"sham",!0),il(h,o,l),p&&(Wo(ou,r=d+"Prototype")||il(ou,r,{}),il(ou[r],o,i),e.real&&g&&!g[o]&&il(g,o,i)))},Ooe=mm("keys"),s7=function(e){return Ooe[e]||(Ooe[e]=pk(e))},Kmt=!ql((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Moe=s7("IE_PROTO"),qF=mo.Object,Ymt=qF.prototype,hk=Kmt?qF.getPrototypeOf:function(e){var t=sC(e);if(Wo(t,Moe))return t[Moe];var n=t.constructor;return Ts(n)&&t instanceof n?n.prototype:t instanceof qF?Ymt:null},Qmt=mo.String,Zmt=mo.TypeError,gk=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=$i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return mu(r),(function(i){if(typeof i=="object"||Ts(i))return i;throw Zmt("Can't set "+Qmt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),Xmt=Math.ceil,Jmt=Math.floor,_q=function(e){var t=+e;return t!=t||t===0?0:(t>0?Jmt:Xmt)(t)},e1t=Math.max,t1t=Math.min,GF=function(e,t){var n=_q(e);return n<0?e1t(n+t,0):t1t(n,t)},n1t=Math.min,uC=function(e){return(t=e.length)>0?n1t(_q(t),9007199254740991):0;var t},r1t=function(e){return function(t,n,r){var o,i=sf(t),a=uC(i),s=GF(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},o1t={indexOf:r1t(!1)},cC={},i1t=o1t.indexOf,Poe=$i([].push),AAe=function(e,t){var n,r=sf(e),o=0,i=[];for(n in r)!Wo(cC,n)&&Wo(r,n)&&Poe(i,n);for(;t.length>o;)Wo(r,n=t[o++])&&(~i1t(i,n)||Poe(i,n));return i},vk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],a1t=vk.concat("length","prototype"),s1t=Object.getOwnPropertyNames||function(e){return AAe(e,a1t)},Dq={f:s1t},b8={f:Object.getOwnPropertySymbols},l1t=$i([].concat),u1t=Zb("Reflect","ownKeys")||function(e){var t=Dq.f(mu(e)),n=b8.f;return n?l1t(t,n(e)):t},Iq=Object.keys||function(e){return AAe(e,vk)},c1t=Ul?Object.defineProperties:function(e,t){mu(e);for(var n,r=sf(t),o=Iq(t),i=o.length,a=0;i>a;)F0.f(e,n=o[a++],r[n]);return e},d1t=Zb("document","documentElement"),CAe=s7("IE_PROTO"),hM=function(){},xAe=function(e){return"<script>"+e+"<\/script>"},Noe=function(e){e.write(xAe("")),e.close();var t=e.parentWindow.Object;return e=null,t},w8=function(){try{i6=new ActiveXObject("htmlfile")}catch{}var e,t;w8=typeof document<"u"?document.domain&&i6?Noe(i6):((t=bAe("iframe")).style.display="none",d1t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(xAe("document.F=Object")),e.close(),e.F):Noe(i6);for(var n=vk.length;n--;)delete w8.prototype[vk[n]];return w8()};cC[CAe]=!0;var dp=Object.create||function(e,t){var n;return e!==null?(hM.prototype=mu(e),n=new hM,hM.prototype=null,n[CAe]=e):n=w8(),t===void 0?n:c1t(n,t)},KF=function(e,t,n){var r=Xb(t);r in e?F0.f(e,r,Pc(0,n)):e[r]=n},f1t=mo.Array,p1t=Math.max,SAe=function(e,t,n){for(var r=uC(e),o=GF(t,r),i=GF(r,r),a=f1t(p1t(i-o,0)),s=0;o<i;o++,s++)KF(a,s,e[o]);return a.length=s,a},h1t=$i("".replace),g1t=$i("".split),v1t=$i([].join),YF=String(Error("zxcasd").stack),EAe=/\n\s*at [^:]*:[^\n]*/,m1t=EAe.test(YF),y1t=/@[^\n]*\n/.test(YF)&&!/zxcasd/.test(YF),b1t=function(e,t){if(typeof e!="string")return e;if(m1t)for(;t--;)e=h1t(e,EAe,"");else if(y1t)return v1t(SAe(g1t(e,`
- `),t),`
- `);return e},w1t=function(e,t){Hu(t)&&"cause"in t&&il(e,"cause",t.cause)},Vf={},A1t=Zs("iterator"),C1t=Array.prototype,kAe={};kAe[Zs("toStringTag")]="z";var Oq=String(kAe)==="[object z]",x1t=Zs("toStringTag"),S1t=mo.Object,E1t=nv((function(){return arguments})())=="Arguments",dC=Oq?nv:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=S1t(e),x1t))=="string"?n:E1t?nv(t):(r=nv(t))=="Object"&&Ts(t.callee)?"Arguments":r},k1t=Zs("iterator"),Roe=function(e){if(e!=null)return fk(e,k1t)||fk(e,"@@iterator")||Vf[dC(e)]},T1t=mo.TypeError,Boe=function(e,t,n){var r,o;mu(e);try{if(!(r=fk(e,"return"))){if(t==="throw")throw n;return n}r=pu(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return mu(r),n},_1t=mo.TypeError,A8=function(e,t){this.stopped=e,this.result=t},Loe=A8.prototype,D1t=function(e,t,n){var r,o,i,a,s,l,u,d=n&&n.that,c=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Tq(t,d),h=function(y){return r&&Boe(r,"normal",y),new A8(!0,y)},g=function(y){return c?(mu(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(f)r=e;else{if(!(o=Roe(e)))throw _1t(WF(e)+" is not iterable");if((function(y){return y!==void 0&&(Vf.Array===y||C1t[A1t]===y)})(o)){for(i=0,a=uC(e);a>i;i++)if((s=g(e[i]))&&xA(Loe,s))return s;return new A8(!1)}r=(function(y,m){var b=arguments.length<2?Roe(y):m;if(kq(b))return mu(pu(b,y));throw T1t(WF(y)+" is not iterable")})(e,o)}for(l=r.next;!(u=pu(l,r)).done;){try{s=g(u.value)}catch(y){Boe(r,"throw",y)}if(typeof s=="object"&&s&&xA(Loe,s))return s}return new A8(!1)},I1t=mo.String,SA=function(e){if(dC(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return I1t(e)},O1t=function(e,t){return e===void 0?arguments.length<2?"":t:SA(e)},M1t=!ql((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Pc(1,7)),e.stack!==7)})),P1t=Zs("toStringTag"),mk=mo.Error,N1t=[].push,EA=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=xA(gM,this);gk?n=gk(new mk(void 0),o?hk(this):gM):(n=o?this:dp(gM),il(n,P1t,"Error")),il(n,"message",O1t(t,"")),M1t&&il(n,"stack",b1t(n.stack,1)),w1t(n,r);var i=[];return D1t(e,N1t,{that:i}),il(n,"errors",i),n};gk?gk(EA,mk):(function(e,t){for(var n=u1t(t),r=F0.f,o=a7.f,i=0;i<n.length;i++){var a=n[i];Wo(e,a)||r(e,a,o(t,a))}})(EA,mk);var gM=EA.prototype=dp(mk.prototype,{constructor:Pc(1,EA),message:Pc(1,""),name:Pc(1,"AggregateError")});Tf({global:!0},{AggregateError:EA});var R1t=$i(Function.toString);Ts(Rh.inspectSource)||(Rh.inspectSource=function(e){return R1t(e)});var yk,u3,bk,TAe=Rh.inspectSource,Foe=mo.WeakMap,B1t=Ts(Foe)&&/native code/.test(TAe(Foe)),QF=mo.TypeError,L1t=mo.WeakMap;if(B1t||Rh.state){var ng=Rh.state||(Rh.state=new L1t),F1t=$i(ng.get),Uoe=$i(ng.has),U1t=$i(ng.set);yk=function(e,t){if(Uoe(ng,e))throw new QF("Object already initialized");return t.facade=e,U1t(ng,e,t),t},u3=function(e){return F1t(ng,e)||{}},bk=function(e){return Uoe(ng,e)}}else{var qm=s7("state");cC[qm]=!0,yk=function(e,t){if(Wo(e,qm))throw new QF("Object already initialized");return t.facade=e,il(e,qm,t),t},u3=function(e){return Wo(e,qm)?e[qm]:{}},bk=function(e){return Wo(e,qm)}}var Sh,zoe,$oe,Jb={set:yk,get:u3,has:bk,enforce:function(e){return bk(e)?u3(e):yk(e,{})},getterFor:function(e){return function(t){var n;if(!Hu(t)||(n=u3(t)).type!==e)throw QF("Incompatible receiver, "+e+" required");return n}}},_Ae=Function.prototype,z1t=Ul&&Object.getOwnPropertyDescriptor,joe=Wo(_Ae,"name"),$1t={PROPER:joe&&(function(){}).name==="something",CONFIGURABLE:joe&&(!Ul||Ul&&z1t(_Ae,"name").configurable)},wk=function(e,t,n,r){il(e,t,n)},ZF=Zs("iterator"),DAe=!1;[].keys&&("next"in($oe=[].keys())?(zoe=hk(hk($oe)))!==Object.prototype&&(Sh=zoe):DAe=!0);var j1t=Sh==null||ql((function(){var e={};return Sh[ZF].call(e)!==e}));Sh=j1t?{}:dp(Sh),Ts(Sh[ZF])||wk(Sh,ZF,(function(){return this}));var IAe={IteratorPrototype:Sh,BUGGY_SAFARI_ITERATORS:DAe},H1t=Oq?{}.toString:function(){return"[object "+dC(this)+"]"},W1t=F0.f,Hoe=Zs("toStringTag"),Ak=function(e,t,n,r){if(e){var o=n?e:e.prototype;Wo(o,Hoe)||W1t(o,Hoe,{configurable:!0,value:t}),r&&!Oq&&il(o,"toString",H1t)}},V1t=IAe.IteratorPrototype,q1t=function(){return this},G1t=$1t.PROPER,vM=IAe.BUGGY_SAFARI_ITERATORS,K1t=Zs("iterator"),Y1t=function(){return this},OAe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=dp(V1t,{next:Pc(1,m)}),Ak(g,w,!1,!0),Vf[w]=q1t})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!vM&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[K1t]||f["@@iterator"]||o&&f[o],v=!vM&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=hk(h.call(new e)))!==Object.prototype&&s.next&&(Ak(s,d,!0,!0),Vf[d]=Y1t),G1t&&o=="values"&&p&&p.name!=="values"&&(c=!0,v=function(){return pu(p,this)}),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||Tf({target:t,proto:!0,forced:vM||c},l)),Vf[t]=v,l},Q1t=Jb.set,Z1t=Jb.getterFor("Array Iterator");OAe(Array,"Array",(function(e,t){Q1t(this,{type:"Array Iterator",target:sf(e),index:0,kind:t})}),(function(){var e=Z1t(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Vf.Arguments=Vf.Array;var X1t=$i("".charAt),Woe=$i("".charCodeAt),J1t=$i("".slice),eyt=function(e){return function(t,n){var r,o,i=SA(Sq(t)),a=_q(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Woe(i,a))<55296||r>56319||a+1===s||(o=Woe(i,a+1))<56320||o>57343?e?X1t(i,a):r:e?J1t(i,a,a+2):o-56320+(r-55296<<10)+65536}},tyt={charAt:eyt(!0)}.charAt,nyt=Jb.set,ryt=Jb.getterFor("String Iterator");OAe(String,"String",(function(e){nyt(this,{type:"String Iterator",string:SA(e),index:0})}),(function(){var e,t=ryt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=tyt(n,r),t.index+=e.length,{value:e,done:!1})}));var oyt=ou.AggregateError,Voe=Zs("toStringTag");for(var mM in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var qoe=mo[mM],yM=qoe&&qoe.prototype;yM&&dC(yM)!==Voe&&il(yM,Voe,mM),Vf[mM]=Vf.Array}var $p,C8,iyt=oyt,a6=function(e){return e&&e.Math==Math&&e},so=a6(typeof globalThis=="object"&&globalThis)||a6(typeof window=="object"&&window)||a6(typeof self=="object"&&self)||a6(typeof wi=="object"&&wi)||(function(){return this})()||Function("return this")(),gs=function(e){try{return!!e()}catch{return!0}},qd=!gs((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),tw=Function.prototype.call,Ss=tw.bind?tw.bind(tw):function(){return tw.apply(tw,arguments)},Goe={}.propertyIsEnumerable,Koe=Object.getOwnPropertyDescriptor,ayt=Koe&&!Goe.call({1:2},1)?function(e){var t=Koe(this,e);return!!t&&t.enumerable}:Goe,syt={f:ayt},Bh=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},MAe=Function.prototype,XF=MAe.bind,JF=MAe.call,lyt=XF&&XF.bind(JF),pi=XF?function(e){return e&&lyt(JF,e)}:function(e){return e&&function(){return JF.apply(e,arguments)}},uyt=pi({}.toString),cyt=pi("".slice),ov=function(e){return cyt(uyt(e),8,-1)},bM=so.Object,dyt=pi("".split),PAe=gs((function(){return!bM("z").propertyIsEnumerable(0)}))?function(e){return ov(e)=="String"?dyt(e,""):bM(e)}:bM,fyt=so.TypeError,l7=function(e){if(e==null)throw fyt("Can't call method on "+e);return e},e2=function(e){return PAe(l7(e))},os=function(e){return typeof e=="function"},_d=function(e){return typeof e=="object"?e!==null:os(e)},pyt=function(e){return os(e)?e:void 0},fC=function(e,t){return arguments.length<2?pyt(so[e]):so[e]&&so[e][t]},Ck=pi({}.isPrototypeOf),wM=fC("navigator","userAgent")||"",Yoe=so.process,Qoe=so.Deno,Zoe=Yoe&&Yoe.versions||Qoe&&Qoe.version,Xoe=Zoe&&Zoe.v8;Xoe&&(C8=($p=Xoe.split("."))[0]>0&&$p[0]<4?1:+($p[0]+$p[1])),!C8&&wM&&(!($p=wM.match(/Edge\/(\d+)/))||$p[1]>=74)&&($p=wM.match(/Chrome\/(\d+)/))&&(C8=+$p[1]);var Joe=C8,eU=!!Object.getOwnPropertySymbols&&!gs((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Joe&&Joe<41})),Mq=eU&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hyt=so.Object,tU=Mq?function(e){return typeof e=="symbol"}:function(e){var t=fC("Symbol");return os(t)&&Ck(t.prototype,hyt(e))},gyt=so.String,nU=function(e){try{return gyt(e)}catch{return"Object"}},vyt=so.TypeError,Pq=function(e){if(os(e))return e;throw vyt(nU(e)+" is not a function")},kA=function(e,t){var n=e[t];return n==null?void 0:Pq(n)},myt=so.TypeError,yyt=Object.defineProperty,Nq=function(e,t){try{yyt(so,e,{value:t,configurable:!0,writable:!0})}catch{so[e]=t}return t},Lh=so["__core-js_shared__"]||Nq("__core-js_shared__",{}),Rq=vm((function(e){(e.exports=function(t,n){return Lh[t]||(Lh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),byt=so.Object,Bq=function(e){return byt(l7(e))},wyt=pi({}.hasOwnProperty),zl=Object.hasOwn||function(e,t){return wyt(Bq(e),t)},Ayt=0,Cyt=Math.random(),xyt=pi(1 .toString),NAe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+xyt(++Ayt+Cyt,36)},nw=Rq("wks"),iv=so.Symbol,eie=iv&&iv.for,Syt=Mq?iv:iv&&iv.withoutSetter||NAe,wl=function(e){if(!zl(nw,e)||!eU&&typeof nw[e]!="string"){var t="Symbol."+e;eU&&zl(iv,e)?nw[e]=iv[e]:nw[e]=Mq&&eie?eie(t):Syt(t)}return nw[e]},Eyt=so.TypeError,kyt=wl("toPrimitive"),Tyt=function(e,t){if(!_d(e)||tU(e))return e;var n,r=kA(e,kyt);if(r){if(n=Ss(r,e,t),!_d(n)||tU(n))return n;throw Eyt("Can't convert object to primitive value")}return(function(o,i){var a,s;if(os(a=o.toString)&&!_d(s=Ss(a,o))||os(a=o.valueOf)&&!_d(s=Ss(a,o)))return s;throw myt("Can't convert object to primitive value")})(e)},Lq=function(e){var t=Tyt(e,"string");return tU(t)?t:t+""},rU=so.document,_yt=_d(rU)&&_d(rU.createElement),Fq=function(e){return _yt?rU.createElement(e):{}},RAe=!qd&&!gs((function(){return Object.defineProperty(Fq("div"),"a",{get:function(){return 7}}).a!=7})),tie=Object.getOwnPropertyDescriptor,Dyt=qd?tie:function(e,t){if(e=e2(e),t=Lq(t),RAe)try{return tie(e,t)}catch{}if(zl(e,t))return Bh(!Ss(syt.f,e,t),e[t])},Uq={f:Dyt},Iyt=so.String,Oyt=so.TypeError,yu=function(e){if(_d(e))return e;throw Oyt(Iyt(e)+" is not an object")},Myt=so.TypeError,nie=Object.defineProperty,Pyt=qd?nie:function(e,t,n){if(yu(e),t=Lq(t),yu(n),RAe)try{return nie(e,t,n)}catch{}if("get"in n||"set"in n)throw Myt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},t2={f:Pyt},Ml=qd?function(e,t,n){return t2.f(e,t,Bh(1,n))}:function(e,t,n){return e[t]=n,e},Nyt=pi(Function.toString);os(Lh.inspectSource)||(Lh.inspectSource=function(e){return Nyt(e)});var xk,c3,Sk,zq=Lh.inspectSource,rie=so.WeakMap,Ryt=os(rie)&&/native code/.test(zq(rie)),oie=Rq("keys"),$q=function(e){return oie[e]||(oie[e]=NAe(e))},jq={},oU=so.TypeError,Byt=so.WeakMap;if(Ryt||Lh.state){var rg=Lh.state||(Lh.state=new Byt),Lyt=pi(rg.get),iie=pi(rg.has),Fyt=pi(rg.set);xk=function(e,t){if(iie(rg,e))throw new oU("Object already initialized");return t.facade=e,Fyt(rg,e,t),t},c3=function(e){return Lyt(rg,e)||{}},Sk=function(e){return iie(rg,e)}}else{var Gm=$q("state");jq[Gm]=!0,xk=function(e,t){if(zl(e,Gm))throw new oU("Object already initialized");return t.facade=e,Ml(e,Gm,t),t},c3=function(e){return zl(e,Gm)?e[Gm]:{}},Sk=function(e){return zl(e,Gm)}}var Hv={set:xk,get:c3,has:Sk,enforce:function(e){return Sk(e)?c3(e):xk(e,{})},getterFor:function(e){return function(t){var n;if(!_d(t)||(n=c3(t)).type!==e)throw oU("Incompatible receiver, "+e+" required");return n}}},BAe=Function.prototype,Uyt=qd&&Object.getOwnPropertyDescriptor,aie=zl(BAe,"name"),Hq={PROPER:aie&&(function(){}).name==="something",CONFIGURABLE:aie&&(!qd||qd&&Uyt(BAe,"name").configurable)},Wv=vm((function(e){var t=Hq.CONFIGURABLE,n=Hv.get,r=Hv.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;os(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!zl(s,"name")||t&&s.name!==p)&&Ml(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==so?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:Ml(i,a,s)):c?i[a]=s:Nq(a,s)})(Function.prototype,"toString",(function(){return os(this)&&n(this).source||zq(this)}))})),zyt=Math.ceil,$yt=Math.floor,Wq=function(e){var t=+e;return t!=t||t===0?0:(t>0?$yt:zyt)(t)},jyt=Math.max,Hyt=Math.min,iU=function(e,t){var n=Wq(e);return n<0?jyt(n+t,0):Hyt(n,t)},Wyt=Math.min,LAe=function(e){return e>0?Wyt(Wq(e),9007199254740991):0},u7=function(e){return LAe(e.length)},Vyt=function(e){return function(t,n,r){var o,i=e2(t),a=u7(i),s=iU(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},qyt={indexOf:Vyt(!1)}.indexOf,sie=pi([].push),FAe=function(e,t){var n,r=e2(e),o=0,i=[];for(n in r)!zl(jq,n)&&zl(r,n)&&sie(i,n);for(;t.length>o;)zl(r,n=t[o++])&&(~qyt(i,n)||sie(i,n));return i},Ek=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gyt=Ek.concat("length","prototype"),Kyt=Object.getOwnPropertyNames||function(e){return FAe(e,Gyt)},Yyt={f:Kyt},Qyt={f:Object.getOwnPropertySymbols},Zyt=pi([].concat),Xyt=fC("Reflect","ownKeys")||function(e){var t=Yyt.f(yu(e)),n=Qyt.f;return n?Zyt(t,n(e)):t},UAe=function(e,t){for(var n=Xyt(t),r=t2.f,o=Uq.f,i=0;i<n.length;i++){var a=n[i];zl(e,a)||r(e,a,o(t,a))}},Jyt=/#|\.prototype\./,pC=function(e,t){var n=tbt[ebt(e)];return n==rbt||n!=nbt&&(os(t)?gs(t):!!t)},ebt=pC.normalize=function(e){return String(e).replace(Jyt,".").toLowerCase()},tbt=pC.data={},nbt=pC.NATIVE="N",rbt=pC.POLYFILL="P",obt=pC,ibt=Uq.f,hC=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?so:u?so[s]||Nq(s,{}):(so[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ibt(n,r))&&a.value:n[r],!obt(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;UAe(i,o)}(e.sham||o&&o.sham)&&Ml(i,"sham",!0),Wv(n,r,i,e)}},zAe={};zAe[wl("toStringTag")]="z";var s6,Vq=String(zAe)==="[object z]",abt=wl("toStringTag"),sbt=so.Object,lbt=ov((function(){return arguments})())=="Arguments",c7=Vq?ov:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=sbt(e),abt))=="string"?n:lbt?ov(t):(r=ov(t))=="Object"&&os(t.callee)?"Arguments":r},ubt=so.String,av=function(e){if(c7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ubt(e)},cbt=function(){var e=yu(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},qq=so.RegExp,$Ae=gs((function(){var e=qq("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));$Ae||gs((function(){return!qq("a","y").sticky}));var dbt=$Ae||gs((function(){var e=qq("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),fbt={BROKEN_CARET:dbt},pbt=Object.keys||function(e){return FAe(e,Ek)},hbt=qd?Object.defineProperties:function(e,t){yu(e);for(var n,r=e2(t),o=pbt(t),i=o.length,a=0;i>a;)t2.f(e,n=o[a++],r[n]);return e},gbt=fC("document","documentElement"),jAe=$q("IE_PROTO"),AM=function(){},HAe=function(e){return"<script>"+e+"<\/script>"},lie=function(e){e.write(HAe("")),e.close();var t=e.parentWindow.Object;return e=null,t},x8=function(){try{s6=new ActiveXObject("htmlfile")}catch{}var e,t;x8=typeof document<"u"?document.domain&&s6?lie(s6):((t=Fq("iframe")).style.display="none",gbt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(HAe("document.F=Object")),e.close(),e.F):lie(s6);for(var n=Ek.length;n--;)delete x8.prototype[Ek[n]];return x8()};jq[jAe]=!0;var uie,CM,gC=Object.create||function(e,t){var n;return e!==null?(AM.prototype=yu(e),n=new AM,AM.prototype=null,n[jAe]=e):n=x8(),t===void 0?n:hbt(n,t)},vbt=so.RegExp,mbt=gs((function(){var e=vbt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),ybt=so.RegExp,bbt=gs((function(){var e=ybt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),wbt=Hv.get,Abt=Rq("native-string-replace",String.prototype.replace),kk=RegExp.prototype.exec,aU=kk,Cbt=pi("".charAt),xbt=pi("".indexOf),Sbt=pi("".replace),xM=pi("".slice),SM=(CM=/b*/g,Ss(kk,uie=/a/,"a"),Ss(kk,CM,"a"),uie.lastIndex!==0||CM.lastIndex!==0),cie=fbt.BROKEN_CARET,EM=/()??/.exec("")[1]!==void 0;(SM||EM||cie||mbt||bbt)&&(aU=function(e){var t,n,r,o,i,a,s,l=this,u=wbt(l),d=av(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=Ss(aU,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=cie&&l.sticky,v=Ss(cbt,l),h=l.source,g=0,y=d;if(p&&(v=Sbt(v,"y",""),xbt(v,"g")===-1&&(v+="g"),y=xM(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&Cbt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),EM&&(n=new RegExp("^"+h+"$(?!\\s)",v)),SM&&(r=l.lastIndex),o=Ss(kk,p?n:l,y),p?o?(o.input=xM(o.input,g),o[0]=xM(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:SM&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),EM&&o&&o.length>1&&Ss(Abt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=gC(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var Tk=aU;hC({target:"RegExp",proto:!0,forced:/./.exec!==Tk},{exec:Tk});var Ebt=wl("species"),die=RegExp.prototype,kbt=pi("".charAt),fie=pi("".charCodeAt),Tbt=pi("".slice),_bt=function(e){return function(t,n){var r,o,i=av(l7(t)),a=Wq(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=fie(i,a))<55296||r>56319||a+1===s||(o=fie(i,a+1))<56320||o>57343?e?kbt(i,a):r:e?Tbt(i,a,a+2):o-56320+(r-55296<<10)+65536}},WAe={charAt:_bt(!0)},Dbt=WAe.charAt,Ibt=function(e,t,n){return t+(n?Dbt(e,t).length:1)},Obt=so.TypeError,pie=function(e,t){var n=e.exec;if(os(n)){var r=Ss(n,e,t);return r!==null&&yu(r),r}if(ov(e)==="RegExp")return Ss(Tk,e,t);throw Obt("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=wl(e),i=!gs((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!gs((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[Ebt]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=pi(/./[o]),l=t(o,""[e],(function(u,d,c,f,p){var v=pi(u),h=d.exec;return h===Tk||h===die.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));Wv(String.prototype,e,l[0]),Wv(die,o,l[1])}})("match",(function(e,t,n){return[function(r){var o=l7(this),i=r==null?void 0:kA(r,e);return i?Ss(i,r,o):new RegExp(r)[e](av(o))},function(r){var o=yu(this),i=av(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return pie(o,i);var s=o.unicode;o.lastIndex=0;for(var l,u=[],d=0;(l=pie(o,i))!==null;){var c=av(l[0]);u[d]=c,c===""&&(o.lastIndex=Ibt(i,LAe(o.lastIndex),s)),d++}return d===0?null:u}]})),hC({global:!0},{globalThis:so});var Mbt=!gs((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hie=$q("IE_PROTO"),sU=so.Object,Pbt=sU.prototype,TA=Mbt?sU.getPrototypeOf:function(e){var t=Bq(e);if(zl(t,hie))return t[hie];var n=t.constructor;return os(n)&&t instanceof n?n.prototype:t instanceof sU?Pbt:null},Nbt=so.String,Rbt=so.TypeError,Xy=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=pi(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return yu(r),(function(i){if(typeof i=="object"||os(i))return i;throw Rbt("Can't set "+Nbt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),Bbt=so.Array,Lbt=Math.max,Fbt=pi("".replace),Ubt=pi("".split),zbt=pi([].join),lU=String(Error("zxcasd").stack),VAe=/\n\s*at [^:]*:[^\n]*/,$bt=VAe.test(lU),jbt=/@[^\n]*\n/.test(lU)&&!/zxcasd/.test(lU),Hbt=function(e,t){if(typeof e!="string")return e;if($bt)for(;t--;)e=Fbt(e,VAe,"");else if(jbt)return zbt((function(n,r,o){for(var i,a,s,l,u=u7(n),d=iU(r,u),c=iU(u,u),f=Bbt(Lbt(c-d,0)),p=0;d<c;d++,p++)i=f,a=p,s=n[d],l=void 0,(l=Lq(a))in i?t2.f(i,l,Bh(0,s)):i[l]=s;return f.length=p,f})(Ubt(e,`
- `),t),`
- `);return e},Wbt=function(e,t){_d(t)&&"cause"in t&&Ml(e,"cause",t.cause)},gie=pi(pi.bind),qAe=function(e,t){return Pq(e),t===void 0?e:gie?gie(e,t):function(){return e.apply(t,arguments)}},Jy={},Vbt=wl("iterator"),qbt=Array.prototype,Gbt=wl("iterator"),vie=function(e){if(e!=null)return kA(e,Gbt)||kA(e,"@@iterator")||Jy[c7(e)]},Kbt=so.TypeError,mie=function(e,t,n){var r,o;yu(e);try{if(!(r=kA(e,"return"))){if(t==="throw")throw n;return n}r=Ss(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return yu(r),n},Ybt=so.TypeError,S8=function(e,t){this.stopped=e,this.result=t},yie=S8.prototype,Qbt=function(e,t,n){var r,o,i,a,s,l,u,d=n&&n.that,c=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=qAe(t,d),h=function(y){return r&&mie(r,"normal",y),new S8(!0,y)},g=function(y){return c?(yu(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(f)r=e;else{if(!(o=vie(e)))throw Ybt(nU(e)+" is not iterable");if((function(y){return y!==void 0&&(Jy.Array===y||qbt[Vbt]===y)})(o)){for(i=0,a=u7(e);a>i;i++)if((s=g(e[i]))&&Ck(yie,s))return s;return new S8(!1)}r=(function(y,m){var b=arguments.length<2?vie(y):m;if(Pq(b))return yu(Ss(b,y));throw Kbt(nU(y)+" is not iterable")})(e,o)}for(l=r.next;!(u=Ss(l,r)).done;){try{s=g(u.value)}catch(y){mie(r,"throw",y)}if(typeof s=="object"&&s&&Ck(yie,s))return s}return new S8(!1)},Zbt=function(e,t){return e===void 0?arguments.length<2?"":t:av(e)},Xbt=!gs((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Bh(1,7)),e.stack!==7)})),Jbt=wl("toStringTag"),_k=so.Error,e2t=[].push,_A=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Ck(kM,this);Xy?n=Xy(new _k(void 0),o?TA(this):kM):(n=o?this:gC(kM),Ml(n,Jbt,"Error")),Ml(n,"message",Zbt(t,"")),Xbt&&Ml(n,"stack",Hbt(n.stack,1)),Wbt(n,r);var i=[];return Qbt(e,e2t,{that:i}),Ml(n,"errors",i),n};Xy?Xy(_A,_k):UAe(_A,_k);var kM=_A.prototype=gC(_k.prototype,{constructor:Bh(1,_A),message:Bh(1,""),name:Bh(1,"AggregateError")});hC({global:!0},{AggregateError:_A});var uU=wl("unscopables"),cU=Array.prototype;cU[uU]==null&&t2.f(cU,uU,{configurable:!0,value:gC(null)});var sv,bie,wie,TM=function(e){cU[uU][e]=!0},dU=wl("iterator"),GAe=!1;[].keys&&("next"in(wie=[].keys())?(bie=TA(TA(wie)))!==Object.prototype&&(sv=bie):GAe=!0);var t2t=sv==null||gs((function(){var e={};return sv[dU].call(e)!==e}));t2t&&(sv={}),os(sv[dU])||Wv(sv,dU,(function(){return this}));var Gq={IteratorPrototype:sv,BUGGY_SAFARI_ITERATORS:GAe},n2t=t2.f,Aie=wl("toStringTag"),Cie=function(e,t,n){e&&!zl(e=n?e:e.prototype,Aie)&&n2t(e,Aie,{configurable:!0,value:t})},r2t=Gq.IteratorPrototype,o2t=function(){return this},i2t=Hq.PROPER,a2t=Hq.CONFIGURABLE,xie=Gq.IteratorPrototype,_M=Gq.BUGGY_SAFARI_ITERATORS,rw=wl("iterator"),s2t=function(){return this},KAe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=gC(r2t,{next:Bh(1,m)}),Cie(g,w,!1),Jy[w]=o2t})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!_M&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[rw]||f["@@iterator"]||o&&f[o],v=!_M&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=TA(h.call(new e)))!==Object.prototype&&s.next&&(TA(s)!==xie&&(Xy?Xy(s,xie):os(s[rw])||Wv(s,rw,s2t)),Cie(s,d,!0)),i2t&&o=="values"&&p&&p.name!=="values"&&(a2t?Ml(f,"name","values"):(c=!0,v=function(){return Ss(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||hC({target:t,proto:!0,forced:_M||c},l)),f[rw]!==v&&Wv(f,rw,v,{name:o}),Jy[t]=v,l},l2t=Hv.set,u2t=Hv.getterFor("Array Iterator"),D4=KAe(Array,"Array",(function(e,t){l2t(this,{type:"Array Iterator",target:e2(e),index:0,kind:t})}),(function(){var e=u2t(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Jy.Arguments=Jy.Array,TM("keys"),TM("values"),TM("entries");var c2t=WAe.charAt,d2t=Hv.set,f2t=Hv.getterFor("String Iterator");KAe(String,"String",(function(e){d2t(this,{type:"String Iterator",string:av(e),index:0})}),(function(){var e,t=f2t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=c2t(n,r),t.index+=e.length,{value:e,done:!1})}));var DM,Dk={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},IM=Fq("span").classList,Sie=IM&&IM.constructor&&IM.constructor.prototype,YAe=Sie===Object.prototype?void 0:Sie,OM=wl("iterator"),Eie=wl("toStringTag"),MM=D4.values,QAe=function(e,t){if(e){if(e[OM]!==MM)try{Ml(e,OM,MM)}catch{e[OM]=MM}if(e[Eie]||Ml(e,Eie,t),Dk[t]){for(var n in D4)if(e[n]!==D4[n])try{Ml(e,n,D4[n])}catch{e[n]=D4[n]}}}};for(var PM in Dk)QAe(so[PM]&&so[PM].prototype,PM);QAe(YAe,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
- Sorry, wangEditor V5+ versions do not support IE browser.`),kie(),Tie()):global&&(!((DM=global.navigator)===null||DM===void 0)&&DM.userAgent.match("QQBrowser"))&&(kie(),Tie());function kie(){typeof globalThis>"u"&&(window.globalThis=window)}function Tie(){iyt===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var _ie,Ik=Array.isArray||function(e){return nv(e)=="Array"},ZAe=function(){},p2t=[],XAe=Zb("Reflect","construct"),Kq=/^\s*(?:class|function)\b/,h2t=$i(Kq.exec),g2t=!Kq.exec(ZAe),ow=function(e){if(!Ts(e))return!1;try{return XAe(ZAe,p2t,e),!0}catch{return!1}},v2t=!XAe||ql((function(){var e;return ow(ow.call)||!ow(Object)||!ow((function(){e=!0}))||e}))?function(e){if(!Ts(e))return!1;switch(dC(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return g2t||!!h2t(Kq,TAe(e))}:ow,m2t=Zs("species"),Die=mo.Array,JAe=function(e,t){return new((function(n){var r;return Ik(n)&&(r=n.constructor,(v2t(r)&&(r===Die||Ik(r.prototype))||Hu(r)&&(r=r[m2t])===null)&&(r=void 0)),r===void 0?Die:r})(e))(t===0?0:t)},y2t=Zs("species"),e5e=Zs("isConcatSpreadable"),Iie=mo.TypeError,b2t=dk>=51||!ql((function(){var e=[];return e[e5e]=!1,e.concat()[0]!==e})),w2t=(_ie="concat",dk>=51||!ql((function(){var e=[];return(e.constructor={})[y2t]=function(){return{foo:1}},e[_ie](Boolean).foo!==1}))),A2t=function(e){if(!Hu(e))return!1;var t=e[e5e];return t!==void 0?!!t:Ik(e)};Tf({target:"Array",proto:!0,forced:!b2t||!w2t},{concat:function(e){var t,n,r,o,i,a=sC(this),s=JAe(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(A2t(i=t===-1?a:arguments[t])){if(l+(o=uC(i))>9007199254740991)throw Iie("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&KF(s,l,i[n])}else{if(l>=9007199254740991)throw Iie("Maximum allowed index exceeded");KF(s,l++,i)}return s.length=l,s}});var Oie=Dq.f,Mie=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],t5e={f:function(e){return Mie&&nv(e)=="Window"?(function(t){try{return Oie(t)}catch{return SAe(Mie)}})(e):Oie(sf(e))}},C2t=$i([].slice),Yq={f:Zs},x2t=F0.f,Sa=function(e){var t=ou.Symbol||(ou.Symbol={});Wo(t,e)||x2t(t,e,{value:Yq.f(e)})},Pie=$i([].push),S2t=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=sC(l),h=yAe(v),g=Tq(u,d),y=uC(h),m=0,b=c||JAe,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Pie(w,f)}else switch(e){case 4:return!1;case 7:Pie(w,f)}return i?-1:r||o?o:w}},d7={forEach:S2t(0)}.forEach,_l=s7("hidden"),Nie=Zs("toPrimitive"),E2t=Jb.set,Rie=Jb.getterFor("Symbol"),Tc=Object.prototype,gh=mo.Symbol,Eh=gh&&gh.prototype,Bie=mo.TypeError,NM=mo.QObject,iw=Zb("JSON","stringify"),n5e=a7.f,vh=F0.f,r5e=t5e.f,k2t=xq.f,o5e=$i([].push),fp=mm("symbols"),vC=mm("op-symbols"),RM=mm("string-to-symbol-registry"),BM=mm("symbol-to-string-registry"),T2t=mm("wks"),LM=!NM||!NM.prototype||!NM.prototype.findChild,fU=Ul&&ql((function(){return dp(vh({},"a",{get:function(){return vh(this,"a",{value:7}).a}})).a!=7}))?function(e,t,n){var r=n5e(Tc,t);r&&delete Tc[t],vh(e,t,n),r&&e!==Tc&&vh(Tc,t,r)}:vh,FM=function(e,t){var n=fp[e]=dp(Eh);return E2t(n,{type:"Symbol",tag:e,description:t}),Ul||(n.description=t),n},Ok=function(e,t,n){e===Tc&&Ok(vC,t,n),mu(e);var r=Xb(t);return mu(n),Wo(fp,r)?(n.enumerable?(Wo(e,_l)&&e[_l][r]&&(e[_l][r]=!1),n=dp(n,{enumerable:Pc(0,!1)})):(Wo(e,_l)||vh(e,_l,Pc(1,{})),e[_l][r]=!0),fU(e,r,n)):vh(e,r,n)},Lie=function(e,t){mu(e);var n=sf(t),r=Iq(n).concat(pU(n));return d7(r,(function(o){Ul&&!pu(i5e,n,o)||Ok(e,o,n[o])})),e},i5e=function(e){var t=Xb(e),n=pu(k2t,this,t);return!(this===Tc&&Wo(fp,t)&&!Wo(vC,t))&&(!(n||!Wo(this,t)||!Wo(fp,t)||Wo(this,_l)&&this[_l][t])||n)},Fie=function(e,t){var n=sf(e),r=Xb(t);if(n!==Tc||!Wo(fp,r)||Wo(vC,r)){var o=n5e(n,r);return!o||!Wo(fp,r)||Wo(n,_l)&&n[_l][r]||(o.enumerable=!0),o}},Uie=function(e){var t=r5e(sf(e)),n=[];return d7(t,(function(r){Wo(fp,r)||Wo(cC,r)||o5e(n,r)})),n},pU=function(e){var t=e===Tc,n=r5e(t?vC:sf(e)),r=[];return d7(n,(function(o){!Wo(fp,o)||t&&!Wo(Tc,o)||o5e(r,fp[o])})),r};if(hd||(Eh=(gh=function(){if(xA(Eh,this))throw Bie("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?SA(arguments[0]):void 0,t=pk(e),n=function(r){this===Tc&&pu(n,vC,r),Wo(this,_l)&&Wo(this[_l],t)&&(this[_l][t]=!1),fU(this,t,Pc(1,r))};return Ul&&LM&&fU(Tc,t,{configurable:!0,set:n}),FM(t,e)}).prototype,wk(Eh,"toString",(function(){return Rie(this).tag})),wk(gh,"withoutSetter",(function(e){return FM(pk(e),e)})),xq.f=i5e,F0.f=Ok,a7.f=Fie,Dq.f=t5e.f=Uie,b8.f=pU,Yq.f=function(e){return FM(Zs(e),e)},Ul&&vh(Eh,"description",{configurable:!0,get:function(){return Rie(this).description}})),Tf({global:!0,wrap:!0,forced:!hd,sham:!hd},{Symbol:gh}),d7(Iq(T2t),(function(e){Sa(e)})),Tf({target:"Symbol",stat:!0,forced:!hd},{for:function(e){var t=SA(e);if(Wo(RM,t))return RM[t];var n=gh(t);return RM[t]=n,BM[n]=t,n},keyFor:function(e){if(!hy(e))throw Bie(e+" is not a symbol");if(Wo(BM,e))return BM[e]},useSetter:function(){LM=!0},useSimple:function(){LM=!1}}),Tf({target:"Object",stat:!0,forced:!hd,sham:!Ul},{create:function(e,t){return t===void 0?dp(e):Lie(dp(e),t)},defineProperty:Ok,defineProperties:Lie,getOwnPropertyDescriptor:Fie}),Tf({target:"Object",stat:!0,forced:!hd},{getOwnPropertyNames:Uie,getOwnPropertySymbols:pU}),Tf({target:"Object",stat:!0,forced:ql((function(){b8.f(1)}))},{getOwnPropertySymbols:function(e){return b8.f(sC(e))}}),iw){var _2t=!hd||ql((function(){var e=gh();return iw([e])!="[null]"||iw({a:e})!="{}"||iw(Object(e))!="{}"}));Tf({target:"JSON",stat:!0,forced:_2t},{stringify:function(e,t,n){var r=C2t(arguments),o=t;if((Hu(t)||e!==void 0)&&!hy(e))return Ik(t)||(t=function(i,a){if(Ts(o)&&(a=pu(o,this,i,a)),!hy(a))return a}),r[1]=t,vAe(iw,null,r)}})}if(!Eh[Nie]){var D2t=Eh.valueOf;wk(Eh,Nie,(function(e){return pu(D2t,this)}))}Ak(gh,"Symbol"),cC[_l]=!0,Sa("asyncIterator"),Sa("hasInstance"),Sa("isConcatSpreadable"),Sa("iterator"),Sa("match"),Sa("matchAll"),Sa("replace"),Sa("search"),Sa("species"),Sa("split"),Sa("toPrimitive"),Sa("toStringTag"),Sa("unscopables"),Ak(mo.JSON,"JSON",!0);var I2t=ou.Symbol;Sa("asyncDispose"),Sa("dispose"),Sa("matcher"),Sa("metadata"),Sa("observable"),Sa("patternMatch"),Sa("replaceAll");var l6=I2t,O2t=Yq.f("iterator"),M2t=vm((function(e){function t(n){return typeof l6=="function"&&typeof O2t=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof l6=="function"&&r.constructor===l6&&r!==l6.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),P2t=fmt(M2t),a5e=Uq.f,N2t=gs((function(){a5e(1)}));if(hC({target:"Object",stat:!0,forced:!qd||N2t,sham:!qd},{getOwnPropertyDescriptor:function(e,t){return a5e(e2(e),t)}}),(typeof global>"u"?"undefined":P2t(global))==="object"){var R2t=Object.getOwnPropertyDescriptor(global,"window");global.window&&!R2t.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function zie(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ls(e){var t,n;return zie(e)!==!1&&((t=e.constructor)===void 0||zie(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Ec(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vv(e){return!!e&&!!e[bu]}function qv(e){return!!e&&((function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===$2t})(e)||Array.isArray(e)||!!e[Kie]||!!e.constructor[Kie]||Qq(e)||Zq(e))}function DA(e,t,n){n===void 0&&(n=!1),eb(e)===0?(n?Object.keys:nG)(e).forEach((function(r){n&&typeof r=="symbol"||t(r,e[r],e)})):e.forEach((function(r,o){return t(o,r,e)}))}function eb(e){var t=e[bu];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Qq(e)?2:Zq(e)?3:0}function hU(e,t){return eb(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function s5e(e,t,n){var r=eb(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Qq(e){return U2t&&e instanceof Map}function Zq(e){return z2t&&e instanceof Set}function Cg(e){return e.o||e.t}function Xq(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=j2t(e);delete t[bu];for(var n=nG(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Jq(e,t){return t===void 0&&(t=!1),eG(e)||Vv(e)||!qv(e)||(eb(e)>1&&(e.set=e.add=e.clear=e.delete=B2t),Object.freeze(e),t&&DA(e,(function(n,r){return Jq(r,!0)}),!0)),e}function B2t(){Ec(2)}function eG(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function qf(e){var t=H2t[e];return t||Ec(18,e),t}function $ie(){return IA}function UM(e,t){t&&(qf("Patches"),e.u=[],e.s=[],e.v=t)}function Mk(e){gU(e),e.p.forEach(L2t),e.p=null}function gU(e){e===IA&&(IA=e.l)}function jie(e){return IA={p:[],l:IA,h:e,m:!0,_:0}}function L2t(e){var t=e[bu];t.i===0||t.i===1?t.j():t.O=!0}function zM(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||qf("ES5").S(t,e,r),r?(n[bu].P&&(Mk(t),Ec(4)),qv(e)&&(e=Pk(t,e),t.l||Nk(t,e)),t.u&&qf("Patches").M(n[bu],e,t.u,t.s)):e=Pk(t,n,[]),Mk(t),t.u&&t.v(t.u,t.s),e!==l5e?e:void 0}function Pk(e,t,n){if(eG(t))return t;var r=t[bu];if(!r)return DA(t,(function(i,a){return Hie(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Nk(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Xq(r.k):r.o;DA(r.i===3?new Set(o):o,(function(i,a){return Hie(e,r,o,i,a,n)})),Nk(e,o,!1),n&&e.u&&qf("Patches").R(r,n,e.u,e.s)}return r.o}function Hie(e,t,n,r,o,i){if(Vv(o)){var a=Pk(e,o,i&&t&&t.i!==3&&!hU(t.D,r)?i.concat(r):void 0);if(s5e(n,r,a),!Vv(a))return;e.m=!1}if(qv(o)&&!eG(o)){if(!e.h.F&&e._<1)return;Pk(e,o),t&&t.A.l||Nk(e,o)}}function Nk(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Jq(t,n)}function $M(e,t){var n=e[bu];return(n?Cg(n):e)[t]}function Wie(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function vU(e){e.P||(e.P=!0,e.l&&vU(e.l))}function jM(e){e.o||(e.o=Xq(e.t))}function mU(e,t,n){var r=Qq(t)?qf("MapSet").N(t,n):Zq(t)?qf("MapSet").T(t,n):e.g?(function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:$ie(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=s,u=E8;a&&(l=[s],u=k8);var d=Proxy.revocable(l,u),c=d.revoke,f=d.proxy;return s.k=f,s.j=c,f})(t,n):qf("ES5").J(t,n);return(n?n.A:$ie()).p.push(r),r}function F2t(e){return Vv(e)||Ec(22,e),(function t(n){if(!qv(n))return n;var r,o=n[bu],i=eb(n);if(o){if(!o.P&&(o.i<4||!qf("ES5").K(o)))return o.t;o.I=!0,r=Vie(n,i),o.I=!1}else r=Vie(n,i);return DA(r,(function(a,s){o&&(function(l,u){return eb(l)===2?l.get(u):l[u]})(o.t,a)===s||s5e(r,a,t(s))})),i===3?new Set(r):r})(e)}function Vie(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Xq(e)}var qie,IA,tG=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",U2t=typeof Map<"u",z2t=typeof Set<"u",Gie=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",l5e=tG?Symbol.for("immer-nothing"):((qie={})["immer-nothing"]=!0,qie),Kie=tG?Symbol.for("immer-draftable"):"__$immer_draftable",bu=tG?Symbol.for("immer-state"):"__$immer_state",$2t=""+Object.prototype.constructor,nG=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,j2t=Object.getOwnPropertyDescriptors||function(e){var t={};return nG(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},H2t={},E8={get:function(e,t){if(t===bu)return e;var n=Cg(e);if(!hU(n,t))return(function(o,i,a){var s,l=Wie(i,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(o.k):void 0})(e,n,t);var r=n[t];return e.I||!qv(r)?r:r===$M(e.t,t)?(jM(e),e.o[t]=mU(e.A.h,r,e)):r},has:function(e,t){return t in Cg(e)},ownKeys:function(e){return Reflect.ownKeys(Cg(e))},set:function(e,t,n){var r=Wie(Cg(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var o=$M(Cg(e),t),i=o?.[bu];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if((function(a,s){return a===s?a!==0||1/a==1/s:a!=a&&s!=s})(n,o)&&(n!==void 0||hU(e.t,t)))return!0;jM(e),vU(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return $M(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,jM(e),vU(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Cg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Ec(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ec(12)}},k8={};DA(E8,(function(e,t){k8[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),k8.deleteProperty=function(e,t){return E8.deleteProperty.call(this,e[0],t)},k8.set=function(e,t,n){return E8.set.call(this,e[0],t,n,e[0])};var W2t=(function(){function e(n){var r=this;this.g=Gie,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var l=r;return function(p){var v=this;p===void 0&&(p=s);for(var h=arguments.length,g=Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return l.produce(p,(function(m){var b;return(b=i).call.apply(b,[v,m].concat(g))}))}}var u;if(typeof i!="function"&&Ec(6),a!==void 0&&typeof a!="function"&&Ec(7),qv(o)){var d=jie(r),c=mU(r,o,void 0),f=!0;try{u=i(c),f=!1}finally{f?Mk(d):gU(d)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return UM(d,a),zM(p,d)}),(function(p){throw Mk(d),p})):(UM(d,a),zM(u,d))}if(!o||typeof o!="object")return(u=i(o))===l5e?void 0:(u===void 0&&(u=o),r.F&&Jq(u,!0),u);Ec(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(l){for(var u=arguments.length,d=Array(u>1?u-1:0),c=1;c<u;c++)d[c-1]=arguments[c];return r.produceWithPatches(l,(function(f){return o.apply(void 0,[f].concat(d))}))}:[r.produce(o,i,(function(l,u){a=l,s=u})),a,s];var a,s},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){qv(n)||Ec(8),Vv(n)&&(n=F2t(n));var r=jie(this),o=mU(this,n,void 0);return o[bu].C=!0,gU(r),o},t.finishDraft=function(n,r){var o=(n&&n[bu]).A;return UM(o,r),zM(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!Gie&&Ec(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=qf("Patches").$;return Vv(n)?a(n,r):this.produce(n,(function(s){return a(s,r)}))},e})(),nu=new W2t,f7=nu.produce;nu.produceWithPatches.bind(nu),nu.setAutoFreeze.bind(nu),nu.setUseProxies.bind(nu),nu.applyPatches.bind(nu);var Yie=nu.createDraft.bind(nu),Qie=nu.finishDraft.bind(nu);function lf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rk=new WeakMap,aw=new WeakMap,Zie=new WeakMap,Xie=new WeakMap,Jie=new WeakMap,eae=new WeakMap;function tae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function u6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tae(Object(n),!0).forEach((function(r){lf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var V2t=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Je.pathRefs(e))Awt.transform(n,t);for(var r of Je.pointRefs(e))Cwt.transform(r,t);for(var o of Je.rangeRefs(e))Swt.transform(o,t);var i=new Set,a=[],s=f=>{if(f){var p=f.join(",");i.has(p)||(i.add(p),a.push(f))}},l=Rk.get(e)||[],u=q2t(t);for(var d of l)s(qt.transform(d,t));for(var c of u)s(c);Rk.set(e,a),nn.transform(e,t),e.operations.push(t),Je.normalize(e),t.type==="set_selection"&&(e.marks=null),aw.get(e)||(aw.set(e,!0),Promise.resolve().then((()=>{aw.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(pn.isExpanded(r))nn.setNodes(e,{[t]:n},{match:cr.isText,split:!0});else{var o=u6(u6({},Je.marks(e)||{}),{},{[t]:n});e.marks=o,aw.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&pn.isCollapsed(n)&&nn.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&pn.isCollapsed(n)&&nn.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&pn.isExpanded(n)&&nn.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?Xn.fragment(e,t):[]},insertBreak:()=>{nn.splitNodes(e,{always:!0})},insertFragment:t=>{nn.insertFragment(e,t)},insertNode:t=>{nn.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=u6({text:t},r);nn.insertNodes(e,o)}else nn.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!cr.isText(n))if(Mr.isElement(n)&&n.children.length===0)nn.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Je.isEditor(n)&&Mr.isElement(n)&&(e.isInline(n)||n.children.length===0||cr.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var s=Xn.get(e,r);if(!cr.isText(s)){var l=n.children[a],u=s.children[i-1],d=a===n.children.length-1;(cr.isText(l)||Mr.isElement(l)&&e.isInline(l))!==o?(nn.removeNodes(e,{at:r.concat(i),voids:!0}),i--):Mr.isElement(l)?e.isInline(l)&&(u!=null&&cr.isText(u)?d&&(nn.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(nn.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):u!=null&&cr.isText(u)&&(cr.equals(l,u,{loose:!0})?(nn.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):u.text===""?(nn.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):l.text===""&&(nn.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(pn.isExpanded(n))nn.unsetNodes(e,t,{match:cr.isText,split:!0});else{var r=u6({},Je.marks(e)||{});delete r[t],e.marks=r,aw.get(e)||e.onChange()}}};return e},q2t=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return qt.levels(t);case"insert_node":var{node:n,path:r}=e,o=qt.levels(r),i=cr.isText(n)?[]:Array.from(Xn.nodes(n),(w=>{var[,A]=w;return r.concat(A)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...qt.ancestors(a),qt.previous(a)];case"move_node":var{path:s,newPath:l}=e;if(qt.equals(s,l))return[];var u=[],d=[];for(var c of qt.ancestors(s)){var f=qt.transform(c,e);u.push(f)}for(var p of qt.ancestors(l)){var v=qt.transform(p,e);d.push(v)}var h=d[d.length-1],g=l[l.length-1],y=h.concat(g);return[...u,...d,y];case"remove_node":var{path:m}=e;return[...qt.ancestors(m)];case"split_node":var{path:b}=e;return[...qt.levels(b),qt.next(b)];default:return[]}};function pp(e,t){if(e==null)return{};var n,r,o=(function(a,s){if(a==null)return{};var l,u,d={},c=Object.keys(a);for(u=0;u<c.length;u++)l=c[u],s.indexOf(l)>=0||(d[l]=a[l]);return d})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ho,yU=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Z2t(e):e,o=ho.None,i=ho.None,a=0,s=null;for(var l of r){var u=l.codePointAt(0);if(!u)break;var d=uwt(l,u);if([o,i]=n?[i,d]:[d,o],W1(o,ho.ZWJ)&&W1(i,ho.ExtPict)&&!pwt(n?e.substring(0,a):e.substring(0,e.length-a))||W1(o,ho.RI)&&W1(i,ho.RI)&&!(s=s!==null?!s:!!n||gwt(e.substring(0,e.length-a)))||o!==ho.None&&i!==ho.None&&dwt(o,i))break;a+=l.length}return a||1},G2t=/\s/,K2t=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Y2t=/['\u2018\u2019]/,bU=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Q2t=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(G2t.test(t))return!1;if(Y2t.test(t)){var o=yU(n,r),[i,a]=bU(n,o,r);if(e(i,a,r))return!0}return!K2t.test(t)},Z2t=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(J2t(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(X2t(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},X2t=e=>e>=55296&&e<=56319,J2t=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(ho||(ho={}));var ewt=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,twt=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,nwt=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,rwt=/^[\u1100-\u115F\uA960-\uA97C]$/,owt=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,iwt=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,awt=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,swt=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,lwt=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,uwt=(e,t)=>{var n=ho.Any;return e.search(ewt)!==-1&&(n|=ho.Extend),t===8205&&(n|=ho.ZWJ),t>=127462&&t<=127487&&(n|=ho.RI),e.search(twt)!==-1&&(n|=ho.Prepend),e.search(nwt)!==-1&&(n|=ho.SpacingMark),e.search(rwt)!==-1&&(n|=ho.L),e.search(owt)!==-1&&(n|=ho.V),e.search(iwt)!==-1&&(n|=ho.T),e.search(awt)!==-1&&(n|=ho.LV),e.search(swt)!==-1&&(n|=ho.LVT),e.search(lwt)!==-1&&(n|=ho.ExtPict),n};function W1(e,t){return(e&t)!=0}var cwt=[[ho.L,ho.L|ho.V|ho.LV|ho.LVT],[ho.LV|ho.V,ho.V|ho.T],[ho.LVT|ho.T,ho.T],[ho.Any,ho.Extend|ho.ZWJ],[ho.Any,ho.SpacingMark],[ho.Prepend,ho.Any],[ho.ZWJ,ho.ExtPict],[ho.RI,ho.RI]];function dwt(e,t){return cwt.findIndex((n=>W1(e,n[0])&&W1(t,n[1])))===-1}var fwt=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,pwt=e=>e.search(fwt)!==-1,hwt=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,gwt=e=>{var t=e.match(hwt);return t!==null&&t[0].length/2%2==1},nae=e=>Ls(e)&&Xn.isNodeList(e.children)&&!Je.isEditor(e),Mr={isAncestor:e=>Ls(e)&&Xn.isNodeList(e.children),isElement:nae,isElementList:e=>Array.isArray(e)&&e.every((t=>Mr.isElement(t))),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return nae(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},vwt=["text"],mwt=["text"];function rae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function Km(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rae(Object(n),!0).forEach((function(r){lf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var oae=new WeakMap,Je={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Je.path(e,o),s=r==="lowest";for(var[l,u]of Je.levels(e,{at:a,voids:n,match:i,reverse:s}))if(!cr.isText(l)&&!qt.equals(a,u))return[l,u]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:Je.point(e,t,{edge:"end"}),focus:Je.end(e,[])},{distance:i=1}=r,a=0;for(var s of Je.positions(e,Km(Km({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:Je.start(e,[]),focus:Je.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var s of Je.positions(e,Km(Km({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Je.start(e,t),Je.end(e,t)],end:(e,t)=>Je.point(e,t,{edge:"end"}),first(e,t){var n=Je.path(e,t,{edge:"start"});return Je.node(e,n)},fragment(e,t){var n=Je.range(e,t);return Xn.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((n=>Je.isBlock(e,n))),hasInlines:(e,t)=>t.children.some((n=>cr.isText(n)||Je.isInline(e,n))),hasTexts:(e,t)=>t.children.every((n=>cr.isText(n))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Mr.isElement(t)&&!e.isInline(t),isEditor(e){if(!Ls(e))return!1;var t=oae.get(e);if(t!==void 0)return t;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||Ls(e.marks))&&(e.selection===null||pn.isRange(e.selection))&&Xn.isNodeList(e.children)&&kh.isOperationList(e.operations);return oae.set(e,n),n},isEnd(e,t,n){var r=Je.end(e,n);return Ao.equals(t,r)},isEdge:(e,t,n)=>Je.isStart(e,t,n)||Je.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&cr.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>Mr.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Zie.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=Je.start(e,n);return Ao.equals(t,r)},isVoid:(e,t)=>Mr.isElement(t)&&e.isVoid(t),last(e,t){var n=Je.path(e,t,{edge:"end"});return Je.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Je.path(e,t,n);return[Xn.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),n){var a=[],s=Je.path(e,n);for(var[l,u]of Xn.levels(e,s))if(i(l,u)&&(a.push([l,u]),!o&&Je.isVoid(e,l)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(pn.isExpanded(n)){var[r]=Je.nodes(e,{match:cr.isText});if(r){var[o]=r;return pp(o,vwt)}return{}}var{anchor:i}=n,{path:a}=i,[s]=Je.leaf(e,a);if(i.offset===0){var l=Je.previous(e,{at:a,match:cr.isText}),u=Je.above(e,{match:p=>Je.isBlock(e,p)});if(l&&u){var[d,c]=l,[,f]=u;qt.isAncestor(f,c)&&(s=d)}}return pp(s,mwt)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Je.after(e,i,{voids:r});if(a){var[,s]=Je.last(e,[]),l=[a.path,s];if(qt.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(qt.isPath(i)){var[u]=Je.parent(e,i);o=c=>u.children.includes(c)}else o=()=>!0;var[d]=Je.nodes(e,{at:l,match:o,mode:n,voids:r});return d}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Je.path(e,t,n);return[Xn.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,u;if(ywt.isSpan(n))l=n[0],u=n[1];else{var d=Je.path(e,n,{edge:"start"}),c=Je.path(e,n,{edge:"end"});l=i?c:d,u=i?d:c}var f,p=Xn.nodes(e,{reverse:i,from:l,to:u,pass:b=>{var[w]=b;return!a&&Je.isVoid(e,w)}}),v=[];for(var[h,g]of p){var y=f&&qt.compare(g,f[1])===0;if(r!=="highest"||!y){if(s(h,g))if(r==="lowest"&&y)f=[h,g];else{var m=r==="lowest"?f:[h,g];m&&(o?v.push(m):yield m),f=[h,g]}else if(o&&!y&&cr.isText(h))return}}r==="lowest"&&f&&(o?v.push(f):yield f),o&&(yield*v)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=i=>Rk.get(i)||[];if(Je.isNormalizing(e)){if(n){var o=Array.from(Xn.nodes(e),(i=>{var[,a]=i;return a}));Rk.set(e,o)}r(e).length!==0&&Je.withoutNormalizing(e,(()=>{for(var i of r(e))if(Xn.has(e,i)){var a=Je.node(e,i),[s,l]=a;Mr.isElement(s)&&s.children.length===0&&e.normalizeNode(a)}for(var u=42*r(e).length,d=0;r(e).length!==0;){if(d>u)throw new Error(`
- Could not completely normalize the editor after `.concat(u,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
- `));var c=r(e).pop();if(Xn.has(e,c)){var f=Je.node(e,c);e.normalizeNode(f)}d++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Je.path(e,t,n),o=qt.parent(r);return Je.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(qt.isPath(t)){if(o==="start"){var[,i]=Xn.first(e,t);t=i}else if(o==="end"){var[,a]=Xn.last(e,t);t=a}}return pn.isRange(t)&&(t=o==="start"?pn.start(t):o==="end"?pn.end(t):qt.common(t.anchor.path,t.focus.path)),Ao.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Xn.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return Je.pathRefs(e).delete(o),o.current=null,i}};return Je.pathRefs(e).add(o),o},pathRefs(e){var t=Xie.get(e);return t||(t=new Set,Xie.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(qt.isPath(t)){var o;if(r==="end"){var[,i]=Xn.last(e,t);o=i}else{var[,a]=Xn.first(e,t);o=a}var s=Xn.get(e,o);if(!cr.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?s.text.length:0}}if(pn.isRange(t)){var[l,u]=pn.edges(t);return r==="start"?l:u}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return Je.pointRefs(e).delete(o),o.current=null,i}};return Je.pointRefs(e).add(o),o},pointRefs(e){var t=Jie.get(e);return t||(t=new Set,Jie.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Je.range(e,n),[s,l]=pn.edges(a),u=o?l:s,d=!1,c="",f=0,p=0,v=0;for(var[h,g]of Je.nodes(e,{at:n,reverse:o,voids:i})){if(Mr.isElement(h)){if(!i&&e.isVoid(h)){yield Je.start(e,g);continue}if(e.isInline(h))continue;if(Je.hasInlines(e,h)){var y=qt.isAncestor(g,l.path)?l:Je.end(e,g),m=qt.isAncestor(g,s.path)?s:Je.start(e,g);c=Je.string(e,{anchor:m,focus:y},{voids:i}),d=!0}}if(cr.isText(h)){var b=qt.equals(g,u.path);for(b?(p=o?u.offset:h.text.length-u.offset,v=u.offset):(p=h.text.length,v=o?p:0),(b||d||r==="offset")&&(yield{path:g,offset:v},d=!1);;){if(f===0){if(c==="")break;f=w(c,r,o),c=bU(c,f,o)[1]}if(v=o?v-f:v+f,(p-=f)<0){f=-p;break}f=0,yield{path:g,offset:v}}}}}function w(A,S,E){return S==="character"?yU(A,E):S==="word"?(function(D){for(var _=arguments.length>1&&arguments[1]!==void 0&&arguments[1],M=0,O=!1;D.length>0;){var k=yU(D,_),[R,N]=bU(D,k,_);if(Q2t(R,N,_))O=!0,M+=k;else{if(O)break;M+=k}D=N}return M})(A,E):S==="line"||S==="block"?A.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Je.before(e,i,{voids:r});if(a){var[,s]=Je.first(e,[]),l=[a.path,s];if(qt.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(qt.isPath(i)){var[u]=Je.parent(e,i);o=c=>u.children.includes(c)}else o=()=>!0;var[d]=Je.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return d}}},range:(e,t,n)=>pn.isRange(t)&&!n?t:{anchor:Je.start(e,t),focus:Je.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return Je.rangeRefs(e).delete(o),o.current=null,i}};return Je.rangeRefs(e).add(o),o},rangeRefs(e){var t=eae.get(e);return t||(t=new Set,eae.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Zie.set(e,t)},start:(e,t)=>Je.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=Je.range(e,t),[i,a]=pn.edges(o),s="";for(var[l,u]of Je.nodes(e,{at:o,match:cr.isText,voids:r})){var d=l.text;qt.equals(u,a.path)&&(d=d.slice(0,a.offset)),qt.equals(u,i.path)&&(d=d.slice(i.offset)),s+=d}return s},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=pn.edges(t);if(o.offset!==0||i.offset!==0||pn.isCollapsed(t))return t;var a=Je.above(e,{at:i,match:f=>Je.isBlock(e,f)}),s=a?a[1]:[],l={anchor:Je.start(e,[]),focus:i},u=!0;for(var[d,c]of Je.nodes(e,{at:l,match:cr.isText,reverse:!0,voids:r}))if(u)u=!1;else if(d.text!==""||qt.isBefore(c,s)){i={path:c,offset:d.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Je.above(e,Km(Km({},t),{},{match:n=>Je.isVoid(e,n)}))},withoutNormalizing(e,t){var n=Je.isNormalizing(e);Je.setNormalizing(e,!1);try{t()}finally{Je.setNormalizing(e,n)}Je.normalize(e)}},ywt={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(qt.isPath)},bwt=["children"],wwt=["text"],iae=new WeakMap,Xn={ancestor(e,t){var n=Xn.get(e,t);if(cr.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of qt.ancestors(t,n)){var o=[Xn.ancestor(e,r),r];yield o}},child(e,t){if(cr.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Xn.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=Xn.child(o,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}},common(e,t,n){var r=qt.common(t,n);return[Xn.get(e,r),r]},descendant(e,t){var n=Xn.get(e,t);if(Je.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Xn.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Xn.nodes(e,t))Mr.isElement(n)&&(yield[n,r])},extractProps:e=>Mr.isAncestor(e)?pp(e,bwt):pp(e,wwt),first(e,t){for(var n=t.slice(),r=Xn.get(e,n);r&&!cr.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(cr.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=f7({children:e.children},(r=>{var[o,i]=pn.edges(t),a=Xn.nodes(r,{reverse:!0,pass:f=>{var[,p]=f;return!pn.includes(t,p)}});for(var[,s]of a){if(!pn.includes(t,s)){var l=Xn.parent(r,s),u=s[s.length-1];l.children.splice(u,1)}if(qt.equals(s,i.path)){var d=Xn.leaf(r,s);d.text=d.text.slice(0,i.offset)}if(qt.equals(s,o.path)){var c=Xn.leaf(r,s);c.text=c.text.slice(o.offset)}}Je.isEditor(r)&&(r.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(cr.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(cr.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>cr.isText(e)||Mr.isElement(e)||Je.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=iae.get(e);if(t!==void 0)return t;var n=e.every((r=>Xn.isNode(r)));return iae.set(e,n),n},last(e,t){for(var n=t.slice(),r=Xn.get(e,n);r&&!cr.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Xn.get(e,t);if(!cr.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of qt.levels(t,n)){var o=Xn.get(e,r);yield[o,r]}},matches:(e,t)=>Mr.isElement(e)&&Mr.isElementProps(t)&&Mr.matches(e,t)||cr.isText(e)&&cr.isTextProps(t)&&cr.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],l=e;!i||!(r?qt.isBefore(s,i):qt.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||cr.isText(l)||l.children.length===0||n!=null&&n([l,s])!==!1){if(s.length===0)break;if(!r){var u=qt.next(s);if(Xn.has(e,u)){s=u,l=Xn.get(e,s);continue}}r&&s[s.length-1]!==0?(s=qt.previous(s),l=Xn.get(e,s)):(s=qt.parent(s),l=Xn.get(e,s),a.add(l))}else{a.add(l);var d=r?l.children.length-1:0;qt.isAncestor(s,o)&&(d=o[s.length]),s=s.concat(d),l=Xn.get(e,s)}},parent(e,t){var n=qt.parent(t),r=Xn.get(e,n);if(cr.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>cr.isText(e)?e.text:e.children.map(Xn.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Xn.nodes(e,t))cr.isText(n)&&(yield[n,r])}};function aae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aae(Object(n),!0).forEach((function(r){lf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var kh={isNodeOperation:e=>kh.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ls(e))return!1;switch(e.type){case"insert_node":case"remove_node":return qt.isPath(e.path)&&Xn.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&qt.isPath(e.path);case"merge_node":return typeof e.position=="number"&&qt.isPath(e.path)&&Ls(e.properties);case"move_node":return qt.isPath(e.path)&&qt.isPath(e.newPath);case"set_node":return qt.isPath(e.path)&&Ls(e.properties)&&Ls(e.newProperties);case"set_selection":return e.properties===null&&pn.isRange(e.newProperties)||e.newProperties===null&&pn.isRange(e.properties)||Ls(e.properties)&&Ls(e.newProperties);case"split_node":return qt.isPath(e.path)&&typeof e.position=="number"&&Ls(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((t=>kh.isOperation(t))),isSelectionOperation:e=>kh.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>kh.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return La(La({},e),{},{type:"remove_node"});case"insert_text":return La(La({},e),{},{type:"remove_text"});case"merge_node":return La(La({},e),{},{type:"split_node",path:qt.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(qt.equals(t,n))return e;if(qt.isSibling(n,t))return La(La({},e),{},{path:t,newPath:n});var r=qt.transform(n,e),o=qt.transform(qt.next(n),e);return La(La({},e),{},{path:r,newPath:o});case"remove_node":return La(La({},e),{},{type:"insert_node"});case"remove_text":return La(La({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return La(La({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return La(La({},e),{},s==null?{properties:l,newProperties:null}:l==null?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return La(La({},e),{},{type:"merge_node",path:qt.next(e.path)})}}},qt={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=qt.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return qt.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return qt.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return qt.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((n,r)=>n===t[r])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>qt.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&qt.compare(e,t)===0,isBefore:(e,t)=>qt.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&qt.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&qt.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&qt.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&qt.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&qt.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!qt.isAncestor(t,e)&&!qt.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return f7(e,(r=>{var{affinity:o="forward"}=n;if(e&&e?.length!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(qt.equals(i,r)||qt.endsBefore(i,r)||qt.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(qt.equals(a,r)||qt.isAncestor(a,r))return null;qt.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;qt.equals(s,r)||qt.endsBefore(s,r)?r[s.length-1]-=1:qt.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:d}=t;if(qt.equals(u,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else qt.endsBefore(u,r)?r[u.length-1]+=1:qt.isAncestor(u,r)&&e[u.length]>=d&&(r[u.length-1]+=1,r[u.length]-=d);break;case"move_node":var{path:c,newPath:f}=t;if(qt.equals(c,f))return;if(qt.isAncestor(c,r)||qt.equals(c,r)){var p=f.slice();return qt.endsBefore(c,f)&&c.length<f.length&&(p[c.length-1]-=1),p.concat(r.slice(c.length))}qt.isSibling(c,f)&&(qt.isAncestor(f,r)||qt.equals(f,r))?qt.endsBefore(c,r)?r[c.length-1]-=1:r[c.length-1]+=1:qt.endsBefore(f,r)||qt.equals(f,r)||qt.isAncestor(f,r)?(qt.endsBefore(c,r)&&(r[c.length-1]-=1),r[f.length-1]+=1):qt.endsBefore(c,r)&&(qt.equals(f,r)&&(r[f.length-1]+=1),r[c.length-1]-=1)}}}))}},Awt={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=qt.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}};function sae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function lae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sae(Object(n),!0).forEach((function(r){lf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Ao={compare(e,t){var n=qt.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>Ao.compare(e,t)===1,isBefore:(e,t)=>Ao.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&qt.equals(e.path,t.path),isPoint:e=>Ls(e)&&typeof e.offset=="number"&&qt.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return f7(e,(r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(t.type){case"insert_node":case"move_node":r.path=qt.transform(i,t,n);break;case"insert_text":qt.equals(t.path,i)&&t.offset<=a&&(r.offset+=t.text.length);break;case"merge_node":qt.equals(t.path,i)&&(r.offset+=t.position),r.path=qt.transform(i,t,n);break;case"remove_text":qt.equals(t.path,i)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(qt.equals(t.path,i)||qt.isAncestor(t.path,i))return null;r.path=qt.transform(i,t,n);break;case"split_node":if(qt.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=qt.transform(i,t,lae(lae({},n),{},{affinity:"forward"})))}else r.path=qt.transform(i,t,n)}}))}},Cwt={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Ao.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},xwt=["anchor","focus"];function uae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}var pn={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return pn.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=pn.edges(e);return t},equals:(e,t)=>Ao.equals(e.anchor,t.anchor)&&Ao.equals(e.focus,t.focus),includes(e,t){if(pn.isRange(t)){if(pn.includes(e,t.anchor)||pn.includes(e,t.focus))return!0;var[n,r]=pn.edges(e),[o,i]=pn.edges(t);return Ao.isBefore(n,o)&&Ao.isAfter(r,i)}var[a,s]=pn.edges(e),l=!1,u=!1;return Ao.isPoint(t)?(l=Ao.compare(t,a)>=0,u=Ao.compare(t,s)<=0):(l=qt.compare(t,a.path)>=0,u=qt.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=pp(e,xwt),[r,o]=pn.edges(e),[i,a]=pn.edges(t),s=Ao.isBefore(r,i)?i:r,l=Ao.isBefore(o,a)?o:a;return Ao.isBefore(l,s)?null:(function(u){for(var d=1;d<arguments.length;d++){var c=arguments[d]!=null?arguments[d]:{};d%2?uae(Object(c),!0).forEach((function(f){lf(u,f,c[f])})):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(c)):uae(Object(c)).forEach((function(f){Object.defineProperty(u,f,Object.getOwnPropertyDescriptor(c,f))}))}return u})({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Ao.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Ao.equals(t,n)},isExpanded:e=>!pn.isCollapsed(e),isForward:e=>!pn.isBackward(e),isRange:e=>Ls(e)&&Ao.isPoint(e.anchor)&&Ao.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=pn.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return f7(e,(r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var s=pn.isCollapsed(r);pn.isForward(r)?(o="forward",i=s?o:"backward"):(o="backward",i=s?o:"forward")}else a==="outward"?pn.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var l=Ao.transform(r.anchor,t,{affinity:o}),u=Ao.transform(r.focus,t,{affinity:i});if(!l||!u)return null;r.anchor=l,r.focus=u}))}},Swt={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=pn.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},u5e=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ls(r)&&Ls(o)){if(!u5e(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},Ewt=["text"],kwt=["anchor","focus"];function cae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function mf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cae(Object(n),!0).forEach((function(r){lf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var cr={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return pp(i,Ewt)}return u5e(r?o(e):e,r?o(t):t)},isText:e=>Ls(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every((t=>cr.isText(t))),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[mf({},e)];for(var r of t){var o=pp(r,kwt),[i,a]=pn.edges(r),s=[],l=0;for(var u of n){var{length:d}=u.text,c=l;if(l+=d,i.offset<=c&&a.offset>=l)Object.assign(u,o),s.push(u);else if(i.offset!==a.offset&&(i.offset===l||a.offset===c)||i.offset>l||a.offset<c||a.offset===c&&c!==0)s.push(u);else{var f=u,p=void 0,v=void 0;if(a.offset<l){var h=a.offset-c;v=mf(mf({},f),{},{text:f.text.slice(h)}),f=mf(mf({},f),{},{text:f.text.slice(0,h)})}if(i.offset>c){var g=i.offset-c;p=mf(mf({},f),{},{text:f.text.slice(0,g)}),f=mf(mf({},f),{},{text:f.text.slice(g)})}Object.assign(f,o),p&&s.push(p),s.push(f),v&&s.push(v)}}n=s}return n}};function dae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dae(Object(n),!0).forEach((function(r){lf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Twt={transform(e,t){e.children=Yie(e.children);var n=e.selection&&Yie(e.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:s}=i,l=Xn.parent(r,a),u=a[a.length-1];if(u>l.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(l.children.splice(u,0,s),o)for(var[d,c]of pn.points(o))o[c]=Ao.transform(d,i);break;case"insert_text":var{path:f,offset:p,text:v}=i;if(v.length===0)break;var h=Xn.leaf(r,f),g=h.text.slice(0,p),y=h.text.slice(p);if(h.text=g+v+y,o)for(var[m,b]of pn.points(o))o[b]=Ao.transform(m,i);break;case"merge_node":var{path:w}=i,A=Xn.get(r,w),S=qt.previous(w),E=Xn.get(r,S),D=Xn.parent(r,w),_=w[w.length-1];if(cr.isText(A)&&cr.isText(E))E.text+=A.text;else{if(cr.isText(A)||cr.isText(E))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(A," ").concat(E));E.children.push(...A.children)}if(D.children.splice(_,1),o)for(var[M,O]of pn.points(o))o[O]=Ao.transform(M,i);break;case"move_node":var{path:k,newPath:R}=i;if(qt.isAncestor(k,R))throw new Error("Cannot move a path [".concat(k,"] to new path [").concat(R,"] because the destination is inside itself."));var N=Xn.get(r,k),W=Xn.parent(r,k),B=k[k.length-1];W.children.splice(B,1);var z=qt.transform(k,i),j=Xn.get(r,qt.parent(z)),q=z[z.length-1];if(j.children.splice(q,0,N),o)for(var[Y,U]of pn.points(o))o[U]=Ao.transform(Y,i);break;case"remove_node":var{path:F}=i,H=F[F.length-1];if(Xn.parent(r,F).children.splice(H,1),o)for(var[re,X]of pn.points(o)){var te=Ao.transform(re,i);if(o!=null&&te!=null)o[X]=te;else{var Z=void 0,le=void 0;for(var[ve,Pe]of Xn.texts(r)){if(qt.compare(Pe,F)!==-1){le=[ve,Pe];break}Z=[ve,Pe]}var Ae=!1;Z&&le&&(Ae=qt.equals(le[1],F)?!qt.hasPrevious(le[1]):qt.common(Z[1],F).length<qt.common(le[1],F).length),Z&&!Ae?(re.path=Z[1],re.offset=Z[0].text.length):le?(re.path=le[1],re.offset=0):o=null}}break;case"remove_text":var{path:he,offset:Ee,text:Q}=i;if(Q.length===0)break;var me=Xn.leaf(r,he),De=me.text.slice(0,Ee),pe=me.text.slice(Ee+Q.length);if(me.text=De+pe,o)for(var[ie,ue]of pn.points(o))o[ue]=Ao.transform(ie,i);break;case"set_node":var{path:Be,properties:Me,newProperties:Fe}=i;if(Be.length===0)throw new Error("Cannot set properties on the root node!");var ze=Xn.get(r,Be);for(var Ne in Fe){if(Ne==="children"||Ne==="text")throw new Error('Cannot set the "'.concat(Ne,'" property of nodes!'));var Re=Fe[Ne];Re==null?delete ze[Ne]:ze[Ne]=Re}for(var gt in Me)Fe.hasOwnProperty(gt)||delete ze[gt];break;case"set_selection":var{newProperties:Bt}=i;if(Bt==null)o=Bt;else{if(o==null){if(!pn.isRange(Bt))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Bt)," when there is no current selection."));o=sw({},Bt)}for(var Lt in Bt){var an=Bt[Lt];if(an==null){if(Lt==="anchor"||Lt==="focus")throw new Error('Cannot remove the "'.concat(Lt,'" selection property'));delete o[Lt]}else o[Lt]=an}}break;case"split_node":var{path:Kt,position:Ht,properties:pt}=i;if(Kt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Kt,"] because the root node cannot be split."));var Dt,dt=Xn.get(r,Kt),it=Xn.parent(r,Kt),de=Kt[Kt.length-1];if(cr.isText(dt)){var tt=dt.text.slice(0,Ht),ft=dt.text.slice(Ht);dt.text=tt,Dt=sw(sw({},pt),{},{text:ft})}else{var Mt=dt.children.slice(0,Ht),Tn=dt.children.slice(Ht);dt.children=Mt,Dt=sw(sw({},pt),{},{children:Tn})}if(it.children.splice(de+1,0,Dt),o)for(var[Nn,We]of pn.points(o))o[We]=Ao.transform(Nn,i)}return o})(e,n,t)}finally{e.children=Qie(e.children),e.selection=n?Vv(n)?Qie(n):n:null}}},_wt=["text"],Dwt=["children"];function fae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function pae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fae(Object(n),!0).forEach((function(r){lf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Iwt={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Je.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:s,select:l}=n;if(Xn.isNode(t)&&(t=[t]),t.length!==0){var[u]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Je.end(e,[]):[0],l=!0),l==null&&(l=!1),pn.isRange(a))if(r||(a=Je.unhangRange(e,a)),pn.isCollapsed(a))a=a.anchor;else{var[,d]=pn.edges(a),c=Je.pointRef(e,d);nn.delete(e,{at:a}),a=c.unref()}if(Ao.isPoint(a)){s==null&&(s=cr.isText(u)?S=>cr.isText(S):e.isInline(u)?S=>cr.isText(S)||Je.isInline(e,S):S=>Je.isBlock(e,S));var[f]=Je.nodes(e,{at:a.path,match:s,mode:i,voids:o});if(!f)return;var[,p]=f,v=Je.pathRef(e,p),h=Je.isEnd(e,a,p);nn.splitNodes(e,{at:a,match:s,mode:i,voids:o});var g=v.unref();a=h?qt.next(g):g}var y=qt.parent(a),m=a[a.length-1];if(o||!Je.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=qt.next(a)}if(a=qt.previous(a),l){var A=Je.end(e,a);A&&nn.select(e,A)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Je.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=qt.isPath(n)?Ym(e,n):b=>Je.isBlock(e,b)),n){var a=Je.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,(b=>{var[,w]=b;return Je.pathRef(e,w)}));for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var d=Je.node(e,qt.parent(u)),[c,f]=d,p=u[u.length-1],{length:v}=c.children;if(v===1){var h=qt.next(f);nn.moveNodes(e,{at:u,to:h,voids:o}),nn.removeNodes(e,{at:f,voids:o})}else if(p===0)nn.moveNodes(e,{at:u,to:f,voids:o});else if(p===v-1){var g=qt.next(f);nn.moveNodes(e,{at:u,to:g,voids:o})}else{var y=qt.next(u),m=qt.next(f);nn.splitNodes(e,{at:y,voids:o}),nn.moveNodes(e,{at:u,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Je.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(n==null)if(qt.isPath(r)){var[s]=Je.parent(e,r);n=_=>s.children.includes(_)}else n=_=>Je.isBlock(e,_);if(!o&&pn.isRange(r)&&(r=Je.unhangRange(e,r)),pn.isRange(r))if(pn.isCollapsed(r))r=r.anchor;else{var[,l]=pn.edges(r),u=Je.pointRef(e,l);nn.delete(e,{at:r}),r=u.unref(),t.at==null&&nn.select(e,r)}var[d]=Je.nodes(e,{at:r,match:n,voids:i,mode:a}),c=Je.previous(e,{at:r,match:n,voids:i,mode:a});if(d&&c){var[f,p]=d,[v,h]=c;if(p.length!==0&&h.length!==0){var g,y,m=qt.next(h),b=qt.common(p,h),w=qt.isSibling(p,h),A=Array.from(Je.levels(e,{at:p}),(_=>{var[M]=_;return M})).slice(b.length).slice(0,-1),S=Je.above(e,{at:p,mode:"highest",match:_=>A.includes(_)&&c5e(e,_)}),E=S&&Je.pathRef(e,S[1]);if(cr.isText(f)&&cr.isText(v)){var D=pp(f,_wt);y=v.text.length,g=D}else{if(!Mr.isElement(f)||!Mr.isElement(v))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(f)," ").concat(JSON.stringify(v)));D=pp(f,Dwt),y=v.children.length,g=D}w||nn.moveNodes(e,{at:p,to:m,voids:i}),E&&nn.removeNodes(e,{at:E.current,voids:i}),Mr.isElement(v)&&Je.isEmpty(e,v)||cr.isText(v)&&v.text===""&&h[h.length-1]!==0?nn.removeNodes(e,{at:h,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),E&&E.unref()}}}}))},moveNodes(e,t){Je.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){a==null&&(a=qt.isPath(r)?Ym(e,r):p=>Je.isBlock(e,p));var s=Je.pathRef(e,n),l=Je.nodes(e,{at:r,match:a,mode:o,voids:i}),u=Array.from(l,(p=>{var[,v]=p;return Je.pathRef(e,v)}));for(var d of u){var c=d.unref(),f=s.current;c.length!==0&&e.apply({type:"move_node",path:c,newPath:f}),s.current&&qt.isSibling(f,c)&&qt.isAfter(f,c)&&(s.current=qt.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Je.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=qt.isPath(i)?Ym(e,i):f=>Je.isBlock(e,f)),!n&&pn.isRange(i)&&(i=Je.unhangRange(e,i));var s=Je.nodes(e,{at:i,match:a,mode:o,voids:r}),l=Array.from(s,(f=>{var[,p]=f;return Je.pathRef(e,p)}));for(var u of l){var d=u.unref();if(d){var[c]=Je.node(e,d);e.apply({type:"remove_node",path:d,node:c})}}}}))},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Je.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:s=!1,voids:l=!1}=n;if(o){if(r==null&&(r=qt.isPath(o)?Ym(e,o):A=>Je.isBlock(e,A)),!i&&pn.isRange(o)&&(o=Je.unhangRange(e,o)),s&&pn.isRange(o)){if(pn.isCollapsed(o)&&Je.leaf(e,o.anchor)[0].text.length>0)return;var u=Je.rangeRef(e,o,{affinity:"inward"}),[d,c]=pn.edges(o),f=a==="lowest"?"lowest":"highest",p=Je.isEnd(e,c,c.path);nn.splitNodes(e,{at:c,match:r,mode:f,voids:l,always:!p});var v=Je.isStart(e,d,d.path);nn.splitNodes(e,{at:d,match:r,mode:f,voids:l,always:!v}),o=u.unref(),n.at==null&&nn.select(e,o)}for(var[h,g]of Je.nodes(e,{at:o,match:r,mode:a,voids:l})){var y={},m={};if(g.length!==0){var b=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==h[w]&&(b=!0,h.hasOwnProperty(w)&&(y[w]=h[w]),t[w]!=null&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Je.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(o==null&&(o=N=>Je.isBlock(e,N)),pn.isRange(i)&&(i=Owt(e,i)),qt.isPath(i)){var l=i,u=Je.point(e,l),[d]=Je.parent(e,l);o=N=>N===d,a=u.path.length-l.length+1,i=u,s=!0}if(i){var c=Je.pointRef(e,i,{affinity:"backward"}),[f]=Je.nodes(e,{at:i,match:o,mode:n,voids:r});if(f){var p=Je.void(e,{at:i,mode:"highest"});if(!r&&p){var[v,h]=p;if(Mr.isElement(v)&&e.isInline(v)){var g=Je.after(e,h);if(!g){var y=qt.next(h);nn.insertNodes(e,{text:""},{at:y,voids:r}),g=Je.point(e,y)}i=g,s=!0}a=i.path.length-h.length+1,s=!0}var m=Je.pointRef(e,i),b=i.path.length-a,[,w]=f,A=i.path.slice(0,b),S=a===0?i.offset:i.path[b]+0;for(var[E,D]of Je.levels(e,{at:A,reverse:!0,voids:r})){var _=!1;if(D.length<w.length||D.length===0||!r&&Je.isVoid(e,E))break;var M=c.current,O=Je.isEnd(e,M,D);if(s||!c||!Je.isEdge(e,M,D)){_=!0;var k=Xn.extractProps(E);e.apply({type:"split_node",path:D,position:S,properties:k})}S=D[D.length-1]+(_||O?1:0)}if(t.at==null){var R=m.current||Je.end(e,[]);nn.select(e,R)}c.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;nn.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Je.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=qt.isPath(i)?Ym(e,i):f=>Je.isBlock(e,f)),qt.isPath(i)&&(i=Je.range(e,i));var s=pn.isRange(i)?Je.rangeRef(e,i):null,l=Je.nodes(e,{at:i,match:a,mode:n,voids:o}),u=Array.from(l,(f=>{var[,p]=f;return Je.pathRef(e,p)})).reverse(),d=function(f){var p=f.unref(),[v]=Je.node(e,p),h=Je.range(e,p);r&&s&&(h=pn.intersection(s.current,h)),nn.liftNodes(e,{at:h,match:g=>Mr.isAncestor(v)&&v.children.includes(g),voids:o})};for(var c of u)d(c);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Je.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(a==null&&(a=qt.isPath(s)?Ym(e,s):e.isInline(t)?g=>Je.isInline(e,g)||cr.isText(g):g=>Je.isBlock(e,g)),o&&pn.isRange(s)){var[l,u]=pn.edges(s),d=Je.rangeRef(e,s,{affinity:"inward"});nn.splitNodes(e,{at:u,match:a,voids:i}),nn.splitNodes(e,{at:l,match:a,voids:i}),s=d.unref(),n.at==null&&nn.select(e,s)}var c=Array.from(Je.nodes(e,{at:s,match:e.isInline(t)?g=>Je.isBlock(e,g):g=>Je.isEditor(g),mode:"lowest",voids:i}));for(var[,f]of c){var p=pn.isRange(s)?pn.intersection(s,Je.range(e,f)):s;if(p){var v=Array.from(Je.nodes(e,{at:p,match:a,mode:r,voids:i}));if(v.length>0){var h=(function(){var[g]=v,y=v[v.length-1],[,m]=g,[,b]=y;if(m.length===0&&b.length===0)return"continue";var w=qt.equals(m,b)?qt.parent(m):qt.common(m,b),A=Je.range(e,m,b),S=Je.node(e,w),[E]=S,D=w.length+1,_=qt.next(b.slice(0,D)),M=pae(pae({},t),{},{children:[]});nn.insertNodes(e,M,{at:_,voids:i}),nn.moveNodes(e,{at:A,match:O=>Mr.isAncestor(E)&&E.children.includes(O),to:_.concat(0),voids:i})})();if(h==="continue")continue}}}}}))}},c5e=(e,t)=>{if(Mr.isElement(t)){var n=t;return!!Je.isVoid(e,t)||n.children.length===1&&c5e(e,n.children[0])}return!Je.isEditor(t)},Owt=(e,t)=>{if(pn.isCollapsed(t))return t.anchor;var[,n]=pn.edges(t),r=Je.pointRef(e,n);return nn.delete(e,{at:t}),r.unref()},Ym=(e,t)=>{var[n]=Je.node(e,t);return r=>r===n};function hae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function gae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hae(Object(n),!0).forEach((function(r){lf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Mwt={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")nn.select(e,r.anchor);else if(n==="focus")nn.select(e,r.focus);else if(n==="start"){var[o]=pn.edges(r);nn.select(e,o)}else if(n==="end"){var[,i]=pn.edges(r);nn.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){a==="start"&&(a=pn.isBackward(n)?"focus":"anchor"),a==="end"&&(a=pn.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:o},d={};if(a==null||a==="anchor"){var c=i?Je.before(e,s,u):Je.after(e,s,u);c&&(d.anchor=c)}if(a==null||a==="focus"){var f=i?Je.before(e,l,u):Je.after(e,l,u);f&&(d.focus=f)}nn.setSelection(e,d)}},select(e,t){var{selection:n}=e;if(t=Je.range(e,t),n)nn.setSelection(e,t);else{if(!pn.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){o==="start"&&(o=pn.isBackward(r)?"focus":"anchor"),o==="end"&&(o=pn.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,s=o==="anchor"?i:a;nn.setSelection(e,{[o==="anchor"?"anchor":"focus"]:gae(gae({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)(i==="anchor"&&t.anchor!=null&&!Ao.equals(t.anchor,n.anchor)||i==="focus"&&t.focus!=null&&!Ao.equals(t.focus,n.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Pwt={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Je.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(pn.isRange(a)&&pn.isCollapsed(a)&&(a=a.anchor),Ao.isPoint(a)){var l=Je.void(e,{at:a,mode:"highest"});if(!i&&l){var[,u]=l;a=u}else{var d={unit:r,distance:o};a={anchor:a,focus:n?Je.before(e,a,d)||Je.start(e,[]):Je.after(e,a,d)||Je.end(e,[])},s=!0}}if(qt.isPath(a))nn.removeNodes(e,{at:a,voids:i});else if(!pn.isCollapsed(a)){if(!s){var[,c]=pn.edges(a),f=Je.end(e,[]);Ao.equals(c,f)||(a=Je.unhangRange(e,a,{voids:i}))}var[p,v]=pn.edges(a),h=Je.above(e,{match:le=>Je.isBlock(e,le),at:p,voids:i}),g=Je.above(e,{match:le=>Je.isBlock(e,le),at:v,voids:i}),y=h&&g&&!qt.equals(h[1],g[1]),m=qt.equals(p.path,v.path),b=i?null:Je.void(e,{at:p,mode:"highest"}),w=i?null:Je.void(e,{at:v,mode:"highest"});if(b){var A=Je.before(e,p);A&&h&&qt.isAncestor(h[1],A.path)&&(p=A)}if(w){var S=Je.after(e,v);S&&g&&qt.isAncestor(g[1],S.path)&&(v=S)}var E,D=[];for(var _ of Je.nodes(e,{at:a,voids:i})){var[M,O]=_;E&&qt.compare(O,E)===0||(!i&&Je.isVoid(e,M)||!qt.isCommon(O,p.path)&&!qt.isCommon(O,v.path))&&(D.push(_),E=O)}var k=Array.from(D,(le=>{var[,ve]=le;return Je.pathRef(e,ve)})),R=Je.pointRef(e,p),N=Je.pointRef(e,v);if(!m&&!b){var W=R.current,[B]=Je.leaf(e,W),{path:z}=W,{offset:j}=p,q=B.text.slice(j);q.length>0&&e.apply({type:"remove_text",path:z,offset:j,text:q})}for(var Y of k){var U=Y.unref();nn.removeNodes(e,{at:U,voids:i})}if(!w){var F=N.current,[H]=Je.leaf(e,F),{path:re}=F,X=m?p.offset:0,te=H.text.slice(X,v.offset);te.length>0&&e.apply({type:"remove_text",path:re,offset:X,text:te})}!m&&y&&N.current&&R.current&&nn.mergeNodes(e,{at:N.current,hanging:!0,voids:i});var Z=n?R.unref()||N.unref():N.unref()||R.unref();t.at==null&&Z&&nn.select(e,Z)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Je.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(pn.isRange(i))if(r||(i=Je.unhangRange(e,i)),pn.isCollapsed(i))i=i.anchor;else{var[,a]=pn.edges(i);if(!o&&Je.void(e,{at:a}))return;var s=Je.pointRef(e,a);nn.delete(e,{at:i}),i=s.unref()}else qt.isPath(i)&&(i=Je.start(e,i));if(o||!Je.void(e,{at:i})){var l=Je.above(e,{at:i,match:F=>Je.isInline(e,F),mode:"highest",voids:o});if(l){var[,u]=l;Je.isEnd(e,i,u)?i=Je.after(e,u):Je.isStart(e,i,u)&&(i=Je.before(e,u))}var d=Je.above(e,{match:F=>Je.isBlock(e,F),at:i,voids:o}),[,c]=d,f=Je.isStart(e,i,c),p=Je.isEnd(e,i,c),v=f&&p,h=!f||f&&p,g=!p,[,y]=Xn.first({children:t},[]),[,m]=Xn.last({children:t},[]),b=[],w=F=>{var[H,re]=F;return re.length!==0&&(!!v||!(h&&qt.isAncestor(re,y)&&Mr.isElement(H)&&!e.isVoid(H)&&!e.isInline(H))&&!(g&&qt.isAncestor(re,m)&&Mr.isElement(H)&&!e.isVoid(H)&&!e.isInline(H)))};for(var A of Xn.nodes({children:t},{pass:w}))w(A)&&b.push(A);var S=[],E=[],D=[],_=!0,M=!1;for(var[O]of b)Mr.isElement(O)&&!e.isInline(O)?(_=!1,M=!0,E.push(O)):_?S.push(O):D.push(O);var[k]=Je.nodes(e,{at:i,match:F=>cr.isText(F)||Je.isInline(e,F),mode:"highest",voids:o}),[,R]=k,N=Je.isStart(e,i,R),W=Je.isEnd(e,i,R),B=Je.pathRef(e,p?qt.next(c):c),z=Je.pathRef(e,W?qt.next(R):R),j=Je.pathRef(e,c);nn.splitNodes(e,{at:i,match:F=>M?Je.isBlock(e,F):cr.isText(F)||Je.isInline(e,F),mode:M?"lowest":"highest",voids:o});var q=Je.pathRef(e,!N||N&&W?qt.next(R):R);if(nn.insertNodes(e,S,{at:q.current,match:F=>cr.isText(F)||Je.isInline(e,F),mode:"highest",voids:o}),v&&E.length&&nn.delete(e,{at:j.unref(),voids:o}),nn.insertNodes(e,E,{at:B.current,match:F=>Je.isBlock(e,F),mode:"lowest",voids:o}),nn.insertNodes(e,D,{at:z.current,match:F=>cr.isText(F)||Je.isInline(e,F),mode:"highest",voids:o}),!n.at){var Y;Y=D.length>0?qt.previous(z.current):E.length>0?qt.previous(B.current):qt.previous(q.current);var U=Je.end(e,Y);nn.select(e,U)}q.unref(),B.unref(),z.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Je.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(qt.isPath(o)&&(o=Je.range(e,o)),pn.isRange(o))if(pn.isCollapsed(o))o=o.anchor;else{var i=pn.end(o);if(!r&&Je.void(e,{at:i}))return;var a=Je.pointRef(e,i);nn.delete(e,{at:o,voids:r}),o=a.unref(),nn.setSelection(e,{anchor:o,focus:o})}if(r||!Je.void(e,{at:o})){var{path:s,offset:l}=o;t.length>0&&e.apply({type:"insert_text",path:s,offset:l,text:t})}}}))}};function vae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,r)}return n}function c6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vae(Object(n),!0).forEach((function(r){lf(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vae(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var nn=c6(c6(c6(c6({},Twt),Iwt),Mwt),Pwt),wU="[object Map]",AU="[object Set]",Nwt=/^\[object .+?Constructor\]$/,Rwt=/^(?:0|[1-9]\d*)$/,Bwt="[\\ud800-\\udfff]",CU="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",xU="\\ud83c[\\udffb-\\udfff]",d5e="[^\\ud800-\\udfff]",f5e="(?:\\ud83c[\\udde6-\\uddff]){2}",p5e="[\\ud800-\\udbff][\\udc00-\\udfff]",mae="(?:"+CU+"|"+xU+")?",Lwt="[\\ufe0e\\ufe0f]?"+mae+("(?:\\u200d(?:"+[d5e,f5e,p5e].join("|")+")[\\ufe0e\\ufe0f]?"+mae+")*"),Fwt="(?:"+[d5e+CU+"?",CU,f5e,p5e,Bwt].join("|")+")",Uwt=RegExp(xU+"(?="+xU+")|"+Fwt+Lwt,"g"),zwt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),$wt=typeof wi=="object"&&wi&&wi.Object===Object&&wi,jwt=typeof self=="object"&&self&&self.Object===Object&&self,ym=$wt||jwt||Function("return this")();function Hwt(e,t){return(function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a})(t,(function(n){return e[n]}))}function Wwt(e){var t=-1,n=Array(e.size);return e.forEach((function(r,o){n[++t]=[o,r]})),n}function Vwt(e){var t=-1,n=Array(e.size);return e.forEach((function(r){n[++t]=r})),n}function qwt(e){return(function(t){return zwt.test(t)})(e)?(function(t){return t.match(Uwt)||[]})(e):(function(t){return t.split("")})(e)}var yae,bae,Gwt=Function.prototype,p7=Object.prototype,HM=ym["__core-js_shared__"],wae=(function(){var e=/[^.]+$/.exec(HM&&HM.keys&&HM.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),h5e=Gwt.toString,Bk=p7.hasOwnProperty,mC=p7.toString,Kwt=RegExp("^"+h5e.call(Bk).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Aae=ym.Symbol,WM=Aae?Aae.iterator:void 0,Ywt=p7.propertyIsEnumerable,Qwt=(yae=Object.keys,bae=Object,function(e){return yae(bae(e))}),SU=yC(ym,"DataView"),EU=yC(ym,"Map"),kU=yC(ym,"Promise"),TU=yC(ym,"Set"),_U=yC(ym,"WeakMap"),Zwt=bm(SU),Xwt=bm(EU),Jwt=bm(kU),e4t=bm(TU),t4t=bm(_U);function n4t(e,t){var n=g5e(e)||(function(a){return(function(s){return y5e(s)&&rG(s)})(a)&&Bk.call(a,"callee")&&(!Ywt.call(a,"callee")||mC.call(a)=="[object Arguments]")})(e)?(function(a,s){for(var l=-1,u=Array(a);++l<a;)u[l]=s(l);return u})(e.length,String):[],r=n.length,o=!!r;for(var i in e)!Bk.call(e,i)||o&&(i=="length"||i4t(i,r))||n.push(i);return n}function r4t(e){if(!m5e(e)||(function(n){return!!wae&&wae in n})(e))return!1;var t=v5e(e)||(function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r})(e)?Kwt:Nwt;return t.test(bm(e))}function o4t(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||p7,t!==r)return Qwt(e);var t,n,r,o=[];for(var i in Object(e))Bk.call(e,i)&&i!="constructor"&&o.push(i);return o}function yC(e,t){var n=(function(r,o){return r?.[o]})(e,t);return r4t(n)?n:void 0}var xg=function(e){return mC.call(e)};function i4t(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||Rwt.test(e))&&e>-1&&e%1==0&&e<t}function bm(e){if(e!=null){try{return h5e.call(e)}catch{}try{return e+""}catch{}}return""}(SU&&xg(new SU(new ArrayBuffer(1)))!="[object DataView]"||EU&&xg(new EU)!=wU||kU&&xg(kU.resolve())!="[object Promise]"||TU&&xg(new TU)!=AU||_U&&xg(new _U)!="[object WeakMap]")&&(xg=function(e){var t=mC.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?bm(n):void 0;if(r)switch(r){case Zwt:return"[object DataView]";case Xwt:return wU;case Jwt:return"[object Promise]";case e4t:return AU;case t4t:return"[object WeakMap]"}return t});var g5e=Array.isArray;function rG(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!v5e(e)}function v5e(e){var t=m5e(e)?mC.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function m5e(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function y5e(e){return!!e&&typeof e=="object"}function a4t(e){return e?Hwt(e,(function(t){return rG(t)?n4t(t):o4t(t)})(e)):[]}var Cae=function(e){if(!e)return[];if(rG(e))return(function(n){return typeof n=="string"||!g5e(n)&&y5e(n)&&mC.call(n)=="[object String]"})(e)?qwt(e):(function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r})(e);if(WM&&e[WM])return(function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o})(e[WM]());var t=xg(e);return(t==wU?Wwt:t==AU?Vwt:a4t)(e)};function xae(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function oG(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:xae(t[n])&&xae(e[n])&&Object.keys(t[n]).length>0&&oG(e[n],t[n])}))}var b5e={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function bC(){var e=typeof document<"u"?document:{};return oG(e,b5e),e}var s4t={document:b5e,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function wm(){var e=typeof window<"u"?window:{};return oG(e,s4t),e}function DU(e){return DU=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},DU(e)}function Lk(e,t){return Lk=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Lk(e,t)}function l4t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function IU(e,t,n){return IU=l4t()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var s=new(Function.bind.apply(r,a));return i&&Lk(s,i.prototype),s},IU.apply(null,arguments)}function OU(e){var t=typeof Map=="function"?new Map:void 0;return OU=function(n){if(n===null||!(function(o){return Function.toString.call(o).indexOf("[native code]")!==-1})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return IU(n,arguments,DU(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Lk(r,n)},OU(e)}var Th=(function(e){var t,n;function r(o){var i,a,s;return i=e.call.apply(e,[this].concat(o))||this,a=(function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l})(i),s=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return s},set:function(l){s.__proto__=l}}),i}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r})(OU(Array));function h7(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(n){Array.isArray(n)?t.push.apply(t,h7(n)):t.push(n)})),t}function w5e(e,t){return Array.prototype.filter.call(e,t)}function Pt(e,t){var n=wm(),r=bC(),o=[];if(!t&&e instanceof Th)return e;if(!e)return new Th(o);if(typeof e=="string"){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var s=r.createElement(a);s.innerHTML=i;for(var l=0;l<s.childNodes.length;l+=1)o.push(s.childNodes[l])}else o=(function(u,d){if(typeof u!="string")return[u];for(var c=[],f=d.querySelectorAll(u),p=0;p<f.length;p+=1)c.push(f[p]);return c})(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Th)return e;o=e}return new Th((function(u){for(var d=[],c=0;c<u.length;c+=1)d.indexOf(u[c])===-1&&d.push(u[c]);return d})(o))}function tb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=h7(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).add.apply(i,r)})),this}function nb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=h7(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).remove.apply(i,r)})),this}function rb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=h7(t.map((function(o){return o.split(" ")})));return w5e(this,(function(o){return r.filter((function(i){return o.classList.contains(i)})).length>0})).length>0}function ic(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Fk(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function ob(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(s,l){return l.toUpperCase()}))]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Gd(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Kd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function s(h){var g=h.target;if(g){var y=h.target.dom7EventData||[];if(y.indexOf(h)<0&&y.unshift(h),Pt(g).is(o))i.apply(g,y);else for(var m=Pt(g).parents(),b=0;b<m.length;b+=1)Pt(m[b]).is(o)&&i.apply(m[b],y)}}function l(h){var g=h&&h.target&&h.target.dom7EventData||[];g.indexOf(h)<0&&g.unshift(h),i.apply(this,g)}typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u,d=r.split(" "),c=0;c<this.length;c+=1){var f=this[c];if(o)for(u=0;u<d.length;u+=1){var p=d[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:i,proxyListener:s}),f.addEventListener(p,s,a)}else for(u=0;u<d.length;u+=1){var v=d[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[v]||(f.dom7Listeners[v]=[]),f.dom7Listeners[v].push({listener:i,proxyListener:l}),f.addEventListener(v,l,a)}}return this}function Sae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],d=0;d<this.length;d+=1){var c=this[d],f=void 0;if(!o&&c.dom7Listeners?f=c.dom7Listeners[u]:o&&c.dom7LiveListeners&&(f=c.dom7LiveListeners[u]),f&&f.length)for(var p=f.length-1;p>=0;p-=1){var v=f[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(c.removeEventListener(u,v.proxyListener,a),f.splice(p,1)):i||(c.removeEventListener(u,v.proxyListener,a),f.splice(p,1))}}return this}function Uk(){var e=wm();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function zk(){var e=wm();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Eae(){if(this.length>0){var e=wm(),t=bC(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-i,left:r.left+l-a}}return null}function ib(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function $k(){for(var e=wm(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function jk(e,t){var n,r=wm();if(arguments.length===1){if(typeof e!="string"){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Hk(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function kae(e){return Pt(w5e(this,e))}function y0(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Wk(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Tae(e){var t,n,r=wm(),o=bC(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Pt(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Th){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function ac(){for(var e,t=bC(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Th)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function _ae(e){var t,n,r=bC();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Th)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function ab(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?Pt(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Pt(t)}function Vk(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Pt(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Pt(t)}function sb(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Pt(t)}function lb(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Pt(r[o]).is(e)||t.push(r[o]);return Pt(t)}function ub(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function cb(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Pt.fn=Th.prototype;var u4t="resize scroll".split(" ");function A5e(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)u4t.indexOf(e)<0&&(e in this[o]?this[o][e]():Pt(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Dae=A5e("click"),b0=A5e("focus"),c4t="[object GeneratorFunction]",d4t=/^(?:0|[1-9]\d*)$/;function f4t(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var g7=Object.prototype,MU=g7.hasOwnProperty,C5e=g7.toString,p4t=g7.propertyIsEnumerable,h4t=(function(e,t){return function(n){return e(t(n))}})(Object.keys,Object);function g4t(e,t){var n=x5e(e)||(function(a){return(function(s){return(function(l){return!!l&&typeof l=="object"})(s)&&iG(s)})(a)&&MU.call(a,"callee")&&(!p4t.call(a,"callee")||C5e.call(a)=="[object Arguments]")})(e)?(function(a,s){for(var l=-1,u=Array(a);++l<a;)u[l]=s(l);return u})(e.length,String):[],r=n.length,o=!!r;for(var i in e)!MU.call(e,i)||o&&(i=="length"||b4t(i,r))||n.push(i);return n}var Iae,v4t=(Iae=function(e,t){return e&&m4t(e,t,w4t)},function(e,t){if(e==null)return e;if(!iG(e))return Iae(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&t(o[r],r,o)!==!1;);return e}),m4t=(function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[++o];if(n(i[l],l,i)===!1)break}return t}})();function y4t(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||g7,t!==r)return h4t(e);var t,n,r,o=[];for(var i in Object(e))MU.call(e,i)&&i!="constructor"&&o.push(i);return o}function b4t(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||d4t.test(e))&&e>-1&&e%1==0&&e<t}var x5e=Array.isArray;function iG(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!(function(t){var n=(function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")})(t)?C5e.call(t):"";return n=="[object Function]"||n==c4t})(e)}function w4t(e){return iG(e)?g4t(e):y4t(e)}function A4t(e){return e}var aG=function(e,t){return(x5e(e)?f4t:v4t)(e,typeof t=="function"?t:A4t)};let S5e=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var C4t=/^\s+|\s+$/g,x4t=/^[-+]0x[0-9a-f]+$/i,S4t=/^0b[01]+$/i,E4t=/^0o[0-7]+$/i,k4t=parseInt,T4t=typeof wi=="object"&&wi&&wi.Object===Object&&wi,_4t=typeof self=="object"&&self&&self.Object===Object&&self,D4t=T4t||_4t||Function("return this")(),I4t=Object.prototype.toString,O4t=Math.max,M4t=Math.min,VM=function(){return D4t.Date.now()};function P4t(e,t,n){var r,o,i,a,s,l,u=0,d=!1,c=!1,f=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=r,A=o;return r=o=void 0,u=b,a=e.apply(A,w)}function v(b){return u=b,s=setTimeout(g,t),d?p(b):a}function h(b){var w=b-l;return l===void 0||w>=t||w<0||c&&b-u>=i}function g(){var b=VM();if(h(b))return y(b);s=setTimeout(g,(function(w){var A=t-(w-l);return c?M4t(A,i-(w-u)):A})(b))}function y(b){return s=void 0,f&&r?p(b):(r=o=void 0,a)}function m(){var b=VM(),w=h(b);if(r=arguments,o=this,l=b,w){if(s===void 0)return v(l);if(c)return s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return t=Oae(t)||0,qk(n)&&(d=!!n.leading,i=(c="maxWait"in n)?O4t(Oae(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),m.cancel=function(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return s===void 0?a:y(VM())},m}function qk(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Oae(e){if(typeof e=="number")return e;if((function(r){return typeof r=="symbol"||(function(o){return!!o&&typeof o=="object"})(r)&&I4t.call(r)=="[object Symbol]"})(e))return NaN;if(qk(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qk(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(C4t,"");var n=S4t.test(e);return n||E4t.test(e)?k4t(e.slice(2),n?2:8):x4t.test(e)?NaN:+e}var Gv=function(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return qk(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),P4t(e,t,{leading:r,maxWait:t,trailing:o})};const N4t={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function OA(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:t===void 0?void 0:t.key}}const PU=Array.isArray;function T8(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function qM(e){return e===void 0}function eu(e){return e!==void 0}const Mae=OA("",{},[],void 0,void 0);function lw(e,t){var n,r;const o=e.key===t.key,i=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&o&&i}function R4t(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const a=(r=e[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const B4t=["create","update","remove","destroy","pre","post"];function L4t(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=N4t;for(const c of B4t)for(const f of e){const p=f[c];p!==void 0&&n[c].push(p)}function o(c){const f=c.id?"#"+c.id:"",p=c.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return OA(r.tagName(c).toLowerCase()+f+v,{},[],void 0,c)}function i(c,f){return function(){if(--f==0){const p=r.parentNode(c);r.removeChild(p,c)}}}function a(c,f){var p,v;let h,g=c.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;eu(b)&&(b(c),g=c.data)}const y=c.children,m=c.sel;if(m==="!")qM(c.text)&&(c.text=""),c.elm=r.createComment(c.text);else if(m!==void 0){const b=m.indexOf("#"),w=m.indexOf(".",b),A=b>0?b:m.length,S=w>0?w:m.length,E=b!==-1||w!==-1?m.slice(0,Math.min(A,S)):m,D=c.elm=eu(g)&&eu(h=g.ns)?r.createElementNS(h,E,g):r.createElement(E,g);for(A<S&&D.setAttribute("id",m.slice(A+1,S)),w>0&&D.setAttribute("class",m.slice(S+1).replace(/\./g," ")),h=0;h<n.create.length;++h)n.create[h](Mae,c);if(PU(y))for(h=0;h<y.length;++h){const M=y[h];M!=null&&r.appendChild(D,a(M,f))}else T8(c.text)&&r.appendChild(D,r.createTextNode(c.text));const _=c.data.hook;eu(_)&&((v=_.create)===null||v===void 0||v.call(_,Mae,c),_.insert&&f.push(c))}else c.elm=r.createTextNode(c.text);return c.elm}function s(c,f,p,v,h,g){for(;v<=h;++v){const y=p[v];y!=null&&r.insertBefore(c,a(y,g),f)}}function l(c){var f,p;const v=c.data;if(v!==void 0){(p=(f=v?.hook)===null||f===void 0?void 0:f.destroy)===null||p===void 0||p.call(f,c);for(let h=0;h<n.destroy.length;++h)n.destroy[h](c);if(c.children!==void 0)for(let h=0;h<c.children.length;++h){const g=c.children[h];g!=null&&typeof g!="string"&&l(g)}}}function u(c,f,p,v){for(var h,g;p<=v;++p){let y,m;const b=f[p];if(b!=null)if(eu(b.sel)){l(b),y=n.remove.length+1,m=i(b.elm,y);for(let A=0;A<n.remove.length;++A)n.remove[A](b,m);const w=(g=(h=b?.data)===null||h===void 0?void 0:h.hook)===null||g===void 0?void 0:g.remove;eu(w)?w(b,m):m()}else r.removeChild(c,b.elm)}}function d(c,f,p){var v,h,g,y,m;const b=(v=f.data)===null||v===void 0?void 0:v.hook;(h=b?.prepatch)===null||h===void 0||h.call(b,c,f);const w=f.elm=c.elm,A=c.children,S=f.children;if(c!==f){if(f.data!==void 0){for(let E=0;E<n.update.length;++E)n.update[E](c,f);(y=(g=f.data.hook)===null||g===void 0?void 0:g.update)===null||y===void 0||y.call(g,c,f)}qM(f.text)?eu(A)&&eu(S)?A!==S&&(function(E,D,_,M){let O,k,R,N,W=0,B=0,z=D.length-1,j=D[0],q=D[z],Y=_.length-1,U=_[0],F=_[Y];for(;W<=z&&B<=Y;)j==null?j=D[++W]:q==null?q=D[--z]:U==null?U=_[++B]:F==null?F=_[--Y]:lw(j,U)?(d(j,U,M),j=D[++W],U=_[++B]):lw(q,F)?(d(q,F,M),q=D[--z],F=_[--Y]):lw(j,F)?(d(j,F,M),r.insertBefore(E,j.elm,r.nextSibling(q.elm)),j=D[++W],F=_[--Y]):lw(q,U)?(d(q,U,M),r.insertBefore(E,q.elm,j.elm),q=D[--z],U=_[++B]):(O===void 0&&(O=R4t(D,W,z)),k=O[U.key],qM(k)?r.insertBefore(E,a(U,M),j.elm):(R=D[k],R.sel!==U.sel?r.insertBefore(E,a(U,M),j.elm):(d(R,U,M),D[k]=void 0,r.insertBefore(E,R.elm,j.elm))),U=_[++B]);(W<=z||B<=Y)&&(W>z?(N=_[Y+1]==null?null:_[Y+1].elm,s(E,N,_,B,Y,M)):u(E,D,W,z))})(w,A,S,p):eu(S)?(eu(c.text)&&r.setTextContent(w,""),s(w,null,S,0,S.length-1,p)):eu(A)?u(w,A,0,A.length-1):eu(c.text)&&r.setTextContent(w,""):c.text!==f.text&&(eu(A)&&u(w,A,0,A.length-1),r.setTextContent(w,f.text)),(m=b?.postpatch)===null||m===void 0||m.call(b,c,f)}}return function(c,f){let p,v,h;const g=[];for(p=0;p<n.pre.length;++p)n.pre[p]();for((function(y){return y.sel!==void 0})(c)||(c=o(c)),lw(c,f)?d(c,f,g):(v=c.elm,h=r.parentNode(v),a(f,g),h!==null&&(r.insertBefore(h,f.elm,r.nextSibling(v)),u(h,[c],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<n.post.length;++p)n.post[p]();return f}}function E5e(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const o=t[r].data;o!==void 0&&E5e(o,t[r].children,t[r].sel)}}function db(e,t,n){let r,o,i,a={};if(n!==void 0?(t!==null&&(a=t),PU(n)?r=n:T8(n)?o=n.toString():n&&n.sel&&(r=[n])):t!=null&&(PU(t)?r=t:T8(t)?o=t.toString():t&&t.sel?r=[t]:a=t),r!==void 0)for(i=0;i<r.length;++i)T8(r[i])&&(r[i]=OA(void 0,void 0,void 0,r[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||E5e(a,r,e),OA(e,a,r,o,void 0)}function Pae(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const F4t={create:Pae,update:Pae};function Nae(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const U4t={create:Nae,update:Nae},Rae=/[A-Z]/g;function Bae(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Rae,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Rae,"-$&").toLowerCase(),i[r]))}const z4t={create:Bae,update:Bae};function k5e(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)k5e(e[r],t,n)}function $4t(e,t){const n=e.type,r=t.data.on;r&&r[n]&&k5e(r[n],t,e)}function GM(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let s;if(n!==i){if(n&&r)if(i)for(s in n)i[s]||o.removeEventListener(s,r,!1);else for(s in n)o.removeEventListener(s,r,!1);if(i){const l=t.listener=e.listener||function u(d){$4t(d,u.vnode)};if(l.vnode=t,n)for(s in i)n[s]||a.addEventListener(s,l,!1);else for(s in i)a.addEventListener(s,l,!1)}}}const j4t={create:GM,update:GM,destroy:GM};function Lae(e,t){let n,r,o;const i=t.elm;let a=e.data.props,s=t.data.props;if((a||s)&&a!==s)for(n in a=a||{},s=s||{},s)r=s[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const H4t={create:Lae,update:Lae},Fae=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let KM=!1;function W4t(e,t,n){(function(r){Fae((function(){Fae(r)}))})((function(){e[t]=n}))}function Uae(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const s="delayed"in i;for(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const l in a.delayed)n=a.delayed[l],s&&n===i.delayed[l]||W4t(o.style,l,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const V4t={pre:function(){KM=!1},create:Uae,update:Uae,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;KM||(e.elm.offsetLeft,KM=!0);const o=e.elm;let i=0;const a=n.remove;let s=0;const l=[];for(r in a)l.push(r),o.style[r]=a[r];const u=getComputedStyle(o)["transition-property"].split(", ");for(;i<u.length;++i)l.indexOf(u[i])!==-1&&s++;o.addEventListener("transitionend",(function(d){d.target===o&&--s,s===0&&t()}))}};function T5e(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?T5e(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(OA(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function ro(e,t,...n){const r=T5e(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?db(e,t,r[0].text):db(e,t,r)}ro||(ro={});var q4t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,G4t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_5e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",K4t="[\\ud800-\\udfff]",zae="["+_5e+"]",Gk="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",D5e="\\d+",Y4t="[\\u2700-\\u27bf]",I5e="[a-z\\xdf-\\xf6\\xf8-\\xff]",O5e="[^\\ud800-\\udfff"+_5e+D5e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",NU="\\ud83c[\\udffb-\\udfff]",M5e="[^\\ud800-\\udfff]",sG="(?:\\ud83c[\\udde6-\\uddff]){2}",lG="[\\ud800-\\udbff][\\udc00-\\udfff]",N1="[A-Z\\xc0-\\xd6\\xd8-\\xde]",$ae="(?:"+I5e+"|"+O5e+")",Q4t="(?:"+N1+"|"+O5e+")",jae="(?:"+Gk+"|"+NU+")?",P5e="[\\ufe0e\\ufe0f]?"+jae+("(?:\\u200d(?:"+[M5e,sG,lG].join("|")+")[\\ufe0e\\ufe0f]?"+jae+")*"),Z4t="(?:"+[Y4t,sG,lG].join("|")+")"+P5e,X4t="(?:"+[M5e+Gk+"?",Gk,sG,lG,K4t].join("|")+")",J4t=RegExp("['’]","g"),e3t=RegExp(Gk,"g"),t3t=RegExp(NU+"(?="+NU+")|"+X4t+P5e,"g"),n3t=RegExp([N1+"?"+I5e+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[zae,N1,"$"].join("|")+")",Q4t+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[zae,N1+$ae,"$"].join("|")+")",N1+"?"+$ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?",N1+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",D5e,Z4t].join("|"),"g"),r3t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),o3t=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,i3t=typeof wi=="object"&&wi&&wi.Object===Object&&wi,a3t=typeof self=="object"&&self&&self.Object===Object&&self,s3t=i3t||a3t||Function("return this")(),YM,l3t=(YM={À:"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",ſ:"ss"},function(e){return YM?.[e]});function N5e(e){return r3t.test(e)}function u3t(e){return N5e(e)?(function(t){return t.match(t3t)||[]})(e):(function(t){return t.split("")})(e)}var c3t=Object.prototype.toString,Hae=s3t.Symbol,Wae=Hae?Hae.prototype:void 0,Vae=Wae?Wae.toString:void 0;function d3t(e){if(typeof e=="string")return e;if((function(n){return typeof n=="symbol"||(function(r){return!!r&&typeof r=="object"})(n)&&c3t.call(n)=="[object Symbol]"})(e))return Vae?Vae.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function f3t(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:(function(o,i,a){var s=-1,l=o.length;i<0&&(i=-i>l?0:l+i),(a=a>l?l:a)<0&&(a+=l),l=i>a?0:a-i>>>0,i>>>=0;for(var u=Array(l);++s<l;)u[s]=o[s+i];return u})(e,t,n)}function _8(e){return e==null?"":d3t(e)}var qae,p3t=(qae=function(e,t,n){return t=t.toLowerCase(),e+(n?h3t(_8(t).toLowerCase()):t)},function(e){return(function(t,n,r,o){var i=-1,a=t?t.length:0;for(o;++i<a;)r=n(r,t[i],i,t);return r})((function(t,n,r){return t=_8(t),(n=n)===void 0?(function(o){return o3t.test(o)})(t)?(function(o){return o.match(n3t)||[]})(t):(function(o){return o.match(q4t)||[]})(t):t.match(n)||[]})((function(t){return(t=_8(t))&&t.replace(G4t,l3t).replace(e3t,"")})(e).replace(J4t,"")),qae,"")}),Gae,h3t=(Gae="toUpperCase",function(e){var t=N5e(e=_8(e))?u3t(e):void 0,n=t?t[0]:e.charAt(0),r=t?f3t(t,1).join(""):e.slice(1);return n[Gae]()+r});for(var g3t=p3t,v3t=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),QM={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},R5e={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:v3t?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},uG={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},d6=1;d6<20;d6++)uG["f"+d6]=111+d6;function B5e(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(i){return(function(a,s){var l=s&&s.byKey,u={},d=(a=a.replace("++","+add")).split("+"),c=d.length;for(var f in QM)u[QM[f]]=!1;var p=!0,v=!1,h=void 0;try{for(var g,y=d[Symbol.iterator]();!(p=(g=y.next()).done);p=!0){var m=g.value,b=m.endsWith("?")&&m.length>1;b&&(m=m.slice(0,-1));var w=L5e(m),A=QM[w];if(m.length>1&&!A&&!R5e[m]&&!uG[w])throw new TypeError('Unknown modifier: "'+m+'"');c!==1&&A||(l?u.key=w:u.which=m3t(m)),A&&(u[A]=!b||null)}}catch(S){v=!0,h=S}finally{try{!p&&y.return&&y.return()}finally{if(v)throw h}}return u})(i,t)})),o=function(i){return r.some((function(a){return(function(s,l){for(var u in s){var d=s[u],c=void 0;if(d!=null&&((c=u==="key"&&l.key!=null?l.key.toLowerCase():u==="which"?d===91&&l.which===93?91:l.which:l[u])!=null||d!==!1)&&c!==d)return!1}return!0})(a,i)}))};return n==null?o:o(n)}function m3t(e){return e=L5e(e),uG[e]||e.toUpperCase().charCodeAt(0)}function L5e(e){return e=e.toLowerCase(),e=R5e[e]||e}var y3t=B5e,ZM=function(e,t){return B5e(e,{byKey:!0},t)},b3t=/^\s+|\s+$/g,w3t=/^[-+]0x[0-9a-f]+$/i,A3t=/^0b[01]+$/i,C3t=/^0o[0-7]+$/i,x3t=parseInt,S3t=typeof wi=="object"&&wi&&wi.Object===Object&&wi,E3t=typeof self=="object"&&self&&self.Object===Object&&self,k3t=S3t||E3t||Function("return this")(),T3t=Object.prototype.toString,_3t=Math.max,D3t=Math.min,XM=function(){return k3t.Date.now()};function RU(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Kae(e){if(typeof e=="number")return e;if((function(r){return typeof r=="symbol"||(function(o){return!!o&&typeof o=="object"})(r)&&T3t.call(r)=="[object Symbol]"})(e))return NaN;if(RU(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=RU(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(b3t,"");var n=A3t.test(e);return n||C3t.test(e)?x3t(e.slice(2),n?2:8):w3t.test(e)?NaN:+e}var Qm,F5e=function(e,t,n){var r,o,i,a,s,l,u=0,d=!1,c=!1,f=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=r,A=o;return r=o=void 0,u=b,a=e.apply(A,w)}function v(b){return u=b,s=setTimeout(g,t),d?p(b):a}function h(b){var w=b-l;return l===void 0||w>=t||w<0||c&&b-u>=i}function g(){var b=XM();if(h(b))return y(b);s=setTimeout(g,(function(w){var A=t-(w-l);return c?D3t(A,i-(w-u)):A})(b))}function y(b){return s=void 0,f&&r?p(b):(r=o=void 0,a)}function m(){var b=XM(),w=h(b);if(r=arguments,o=this,l=b,w){if(s===void 0)return v(l);if(c)return s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return t=Kae(t)||0,RU(n)&&(d=!!n.leading,i=(c="maxWait"in n)?_3t(Kae(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),m.cancel=function(){s!==void 0&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return s===void 0?a:y(XM())},m},U5e=vm((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",s="[object Function]",l="[object GeneratorFunction]",u="[object Map]",d="[object Number]",c="[object Object]",f="[object Promise]",p="[object RegExp]",v="[object Set]",h="[object String]",g="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",A="[object Float64Array]",S="[object Int8Array]",E="[object Int16Array]",D="[object Int32Array]",_="[object Uint8Array]",M="[object Uint8ClampedArray]",O="[object Uint16Array]",k="[object Uint32Array]",R=/\w*$/,N=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,B={};B[o]=B["[object Array]"]=B[m]=B[b]=B[i]=B[a]=B[w]=B[A]=B[S]=B[E]=B[D]=B[u]=B[d]=B[c]=B[p]=B[v]=B[h]=B[g]=B[_]=B[M]=B[O]=B[k]=!0,B["[object Error]"]=B[s]=B[y]=!1;var z=typeof wi=="object"&&wi&&wi.Object===Object&&wi,j=typeof self=="object"&&self&&self.Object===Object&&self,q=z||j||Function("return this")(),Y=t&&!t.nodeType&&t,U=Y&&e&&!e.nodeType&&e,F=U&&U.exports===Y;function H(Ye,At){return Ye.set(At[0],At[1]),Ye}function re(Ye,At){return Ye.add(At),Ye}function X(Ye,At,tn,Ct){var Xt=-1,yn=Ye?Ye.length:0;for(Ct;++Xt<yn;)tn=At(tn,Ye[Xt],Xt,Ye);return tn}function te(Ye){var At=!1;if(Ye!=null&&typeof Ye.toString!="function")try{At=!!(Ye+"")}catch{}return At}function Z(Ye){var At=-1,tn=Array(Ye.size);return Ye.forEach((function(Ct,Xt){tn[++At]=[Xt,Ct]})),tn}function le(Ye,At){return function(tn){return Ye(At(tn))}}function ve(Ye){var At=-1,tn=Array(Ye.size);return Ye.forEach((function(Ct){tn[++At]=Ct})),tn}var Pe=Array.prototype,Ae=Function.prototype,he=Object.prototype,Ee=q["__core-js_shared__"],Q=(function(){var Ye=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||"");return Ye?"Symbol(src)_1."+Ye:""})(),me=Ae.toString,De=he.hasOwnProperty,pe=he.toString,ie=RegExp("^"+me.call(De).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ue=F?q.Buffer:void 0,Be=q.Symbol,Me=q.Uint8Array,Fe=le(Object.getPrototypeOf,Object),ze=Object.create,Ne=he.propertyIsEnumerable,Re=Pe.splice,gt=Object.getOwnPropertySymbols,Bt=ue?ue.isBuffer:void 0,Lt=le(Object.keys,Object),an=Gt(q,"DataView"),Kt=Gt(q,"Map"),Ht=Gt(q,"Promise"),pt=Gt(q,"Set"),Dt=Gt(q,"WeakMap"),dt=Gt(Object,"create"),it=Nt(an),de=Nt(Kt),tt=Nt(Ht),ft=Nt(pt),Mt=Nt(Dt),Tn=Be?Be.prototype:void 0,Nn=Tn?Tn.valueOf:void 0;function We(Ye){var At=-1,tn=Ye?Ye.length:0;for(this.clear();++At<tn;){var Ct=Ye[At];this.set(Ct[0],Ct[1])}}function ke(Ye){var At=-1,tn=Ye?Ye.length:0;for(this.clear();++At<tn;){var Ct=Ye[At];this.set(Ct[0],Ct[1])}}function be(Ye){var At=-1,tn=Ye?Ye.length:0;for(this.clear();++At<tn;){var Ct=Ye[At];this.set(Ct[0],Ct[1])}}function fe(Ye){this.__data__=new ke(Ye)}function Se(Ye,At){var tn=xt(Ye)||(function(Ln){return(function(Zn){return(function(jr){return!!jr&&typeof jr=="object"})(Zn)&&Ft(Zn)})(Ln)&&De.call(Ln,"callee")&&(!Ne.call(Ln,"callee")||pe.call(Ln)==o)})(Ye)?(function(Ln,Zn){for(var jr=-1,yo=Array(Ln);++jr<Ln;)yo[jr]=Zn(jr);return yo})(Ye.length,String):[],Ct=tn.length,Xt=!!Ct;for(var yn in Ye)!De.call(Ye,yn)||Xt&&(yn=="length"||wr(yn,Ct))||tn.push(yn);return tn}function qe(Ye,At,tn){var Ct=Ye[At];De.call(Ye,At)&&_n(Ct,tn)&&(tn!==void 0||At in Ye)||(Ye[At]=tn)}function $e(Ye,At){for(var tn=Ye.length;tn--;)if(_n(Ye[tn][0],At))return tn;return-1}function Le(Ye,At,tn,Ct,Xt,yn,Ln){var Zn;if(Ct&&(Zn=yn?Ct(Ye,Xt,yn,Ln):Ct(Ye)),Zn!==void 0)return Zn;if(!Fr(Ye))return Ye;var jr=xt(Ye);if(jr){if(Zn=(function(Sr){var Yr=Sr.length,vo=Sr.constructor(Yr);return Yr&&typeof Sr[0]=="string"&&De.call(Sr,"index")&&(vo.index=Sr.index,vo.input=Sr.input),vo})(Ye),!At)return(function(Sr,Yr){var vo=-1,Rr=Sr.length;for(Yr||(Yr=Array(Rr));++vo<Rr;)Yr[vo]=Sr[vo];return Yr})(Ye,Zn)}else{var yo=Un(Ye),Kr=yo==s||yo==l;if(Sn(Ye))return(function(Sr,Yr){if(Yr)return Sr.slice();var vo=new Sr.constructor(Sr.length);return Sr.copy(vo),vo})(Ye,At);if(yo==c||yo==o||Kr&&!yn){if(te(Ye))return yn?Ye:{};if(Zn=(function(Sr){return typeof Sr.constructor!="function"||fr(Sr)?{}:(Yr=Fe(Sr),Fr(Yr)?ze(Yr):{});var Yr})(Kr?{}:Ye),!At)return(function(Sr,Yr){return Ut(Sr,vn(Sr),Yr)})(Ye,(function(Sr,Yr){return Sr&&Ut(Yr,kn(Yr),Sr)})(Zn,Ye))}else{if(!B[yo])return yn?Ye:{};Zn=(function(Sr,Yr,vo,Rr){var Ur=Sr.constructor;switch(Yr){case m:return vt(Sr);case i:case a:return new Ur(+Sr);case b:return(function(Hr,to){var pr=to?vt(Hr.buffer):Hr.buffer;return new Hr.constructor(pr,Hr.byteOffset,Hr.byteLength)})(Sr,Rr);case w:case A:case S:case E:case D:case _:case M:case O:case k:return(function(Hr,to){var pr=to?vt(Hr.buffer):Hr.buffer;return new Hr.constructor(pr,Hr.byteOffset,Hr.length)})(Sr,Rr);case u:return(function(Hr,to,pr){return X(to?pr(Z(Hr),!0):Z(Hr),H,new Hr.constructor)})(Sr,Rr,vo);case d:case h:return new Ur(Sr);case p:return(function(Hr){var to=new Hr.constructor(Hr.source,R.exec(Hr));return to.lastIndex=Hr.lastIndex,to})(Sr);case v:return(function(Hr,to,pr){return X(to?pr(ve(Hr),!0):ve(Hr),re,new Hr.constructor)})(Sr,Rr,vo);case g:return(function(Hr){return Nn?Object(Nn.call(Hr)):{}})(Sr)}})(Ye,yo,Le,At)}}Ln||(Ln=new fe);var xo=Ln.get(Ye);if(xo)return xo;if(Ln.set(Ye,Zn),!jr)var zo=tn?(function(Sr){return(function(Yr,vo,Rr){var Ur=vo(Yr);return xt(Yr)?Ur:(function(Hr,to){for(var pr=-1,Po=to.length,ni=Hr.length;++pr<Po;)Hr[ni+pr]=to[pr];return Hr})(Ur,Rr(Yr))})(Sr,kn,vn)})(Ye):kn(Ye);return(function(Sr,Yr){for(var vo=-1,Rr=Sr?Sr.length:0;++vo<Rr&&Yr(Sr[vo],vo,Sr)!==!1;);})(zo||Ye,(function(Sr,Yr){zo&&(Sr=Ye[Yr=Sr]),qe(Zn,Yr,Le(Sr,At,tn,Ct,Yr,Ye,Ln))})),Zn}function ot(Ye){return!(!Fr(Ye)||(function(At){return!!Q&&Q in At})(Ye))&&(Bn(Ye)||te(Ye)?ie:N).test(Nt(Ye))}function vt(Ye){var At=new Ye.constructor(Ye.byteLength);return new Me(At).set(new Me(Ye)),At}function Ut(Ye,At,tn,Ct){tn||(tn={});for(var Xt=-1,yn=At.length;++Xt<yn;){var Ln=At[Xt],Zn=void 0;qe(tn,Ln,Zn===void 0?Ye[Ln]:Zn)}return tn}function Qt(Ye,At){var tn,Ct,Xt=Ye.__data__;return((Ct=typeof(tn=At))=="string"||Ct=="number"||Ct=="symbol"||Ct=="boolean"?tn!=="__proto__":tn===null)?Xt[typeof At=="string"?"string":"hash"]:Xt.map}function Gt(Ye,At){var tn=(function(Ct,Xt){return Ct?.[Xt]})(Ye,At);return ot(tn)?tn:void 0}We.prototype.clear=function(){this.__data__=dt?dt(null):{}},We.prototype.delete=function(Ye){return this.has(Ye)&&delete this.__data__[Ye]},We.prototype.get=function(Ye){var At=this.__data__;if(dt){var tn=At[Ye];return tn===n?void 0:tn}return De.call(At,Ye)?At[Ye]:void 0},We.prototype.has=function(Ye){var At=this.__data__;return dt?At[Ye]!==void 0:De.call(At,Ye)},We.prototype.set=function(Ye,At){return this.__data__[Ye]=dt&&At===void 0?n:At,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(Ye){var At=this.__data__,tn=$e(At,Ye);return!(tn<0)&&(tn==At.length-1?At.pop():Re.call(At,tn,1),!0)},ke.prototype.get=function(Ye){var At=this.__data__,tn=$e(At,Ye);return tn<0?void 0:At[tn][1]},ke.prototype.has=function(Ye){return $e(this.__data__,Ye)>-1},ke.prototype.set=function(Ye,At){var tn=this.__data__,Ct=$e(tn,Ye);return Ct<0?tn.push([Ye,At]):tn[Ct][1]=At,this},be.prototype.clear=function(){this.__data__={hash:new We,map:new(Kt||ke),string:new We}},be.prototype.delete=function(Ye){return Qt(this,Ye).delete(Ye)},be.prototype.get=function(Ye){return Qt(this,Ye).get(Ye)},be.prototype.has=function(Ye){return Qt(this,Ye).has(Ye)},be.prototype.set=function(Ye,At){return Qt(this,Ye).set(Ye,At),this},fe.prototype.clear=function(){this.__data__=new ke},fe.prototype.delete=function(Ye){return this.__data__.delete(Ye)},fe.prototype.get=function(Ye){return this.__data__.get(Ye)},fe.prototype.has=function(Ye){return this.__data__.has(Ye)},fe.prototype.set=function(Ye,At){var tn=this.__data__;if(tn instanceof ke){var Ct=tn.__data__;if(!Kt||Ct.length<199)return Ct.push([Ye,At]),this;tn=this.__data__=new be(Ct)}return tn.set(Ye,At),this};var vn=gt?le(gt,Object):function(){return[]},Un=function(Ye){return pe.call(Ye)};function wr(Ye,At){return!!(At=At??r)&&(typeof Ye=="number"||W.test(Ye))&&Ye>-1&&Ye%1==0&&Ye<At}function fr(Ye){var At=Ye&&Ye.constructor;return Ye===(typeof At=="function"&&At.prototype||he)}function Nt(Ye){if(Ye!=null){try{return me.call(Ye)}catch{}try{return Ye+""}catch{}}return""}function _n(Ye,At){return Ye===At||Ye!=Ye&&At!=At}(an&&Un(new an(new ArrayBuffer(1)))!=b||Kt&&Un(new Kt)!=u||Ht&&Un(Ht.resolve())!=f||pt&&Un(new pt)!=v||Dt&&Un(new Dt)!=y)&&(Un=function(Ye){var At=pe.call(Ye),tn=At==c?Ye.constructor:void 0,Ct=tn?Nt(tn):void 0;if(Ct)switch(Ct){case it:return b;case de:return u;case tt:return f;case ft:return v;case Mt:return y}return At});var xt=Array.isArray;function Ft(Ye){return Ye!=null&&(function(At){return typeof At=="number"&&At>-1&&At%1==0&&At<=r})(Ye.length)&&!Bn(Ye)}var Sn=Bt||function(){return!1};function Bn(Ye){var At=Fr(Ye)?pe.call(Ye):"";return At==s||At==l}function Fr(Ye){var At=typeof Ye;return!!Ye&&(At=="object"||At=="function")}function kn(Ye){return Ft(Ye)?Se(Ye):(function(At){if(!fr(At))return Lt(At);var tn=[];for(var Ct in Object(At))De.call(At,Ct)&&Ct!="constructor"&&tn.push(Ct);return tn})(Ye)}e.exports=function(Ye){return Le(Ye,!0,!0)}}));function Yae(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var I3t=0;function O3t(e){return"__private_"+I3t+++"_"+e}function M3t(e,t,n){const r=[];return e.forEach((o=>typeof o!="string"?r.push(o):t[Symbol.split](o).forEach(((i,a,s)=>{i!==""&&r.push(i),a<s.length-1&&r.push(n)})))),r}/**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */function Qae(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=M3t(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var z5e=(Qm=O3t("apply"),class{constructor(e){Object.defineProperty(this,Qm,{value:P3t}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(Yae(this,Qm)[Qm],this):Yae(this,Qm)[Qm](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!(function(r,o){return Object.prototype.hasOwnProperty.call(r,o)})(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return Qae(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return Qae(n,t)}});function P3t(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var $5e=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,i,a,s,l){var u=(function(d){for(var c=t[d]?t[d]:[],f=d.indexOf(":"),p=f===-1?[d]:[d.substring(0,f),d.substring(f+1)],v=Object.keys(t),h=0,g=v.length;h<g;h++){var y=v[h];if(y==="*"&&(c=c.concat(t[y])),p.length===2&&p[0]===y){c=c.concat(t[y]);break}}return c})(n);u.length&&(function(d,c,f){for(var p=0,v=c.length;p<v&&c[p];p++)c[p].event=d,c[p].apply(c[p],f)})(n,u,[r,o,i,a,s,l])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,(function o(){r.apply(this,arguments),e.off(n,o)}))},e.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,s=i?i.length:0;a<s;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},e},N3t={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},JM=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function j5e(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}j5e.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var R3t=/[\/\+\.]/,B3t=function(e,t){function n(r){var o=(function(i,a,s){var l=new j5e(i,s||/[\/\.]/);return a!==void 0?l.match(a):l})(r,e,R3t);return o&&o.length>=2}return t?n(t.split(";")[0]):n},L3t=0;function F3t(e){return"__private_"+L3t+++"_"+e}var eP=F3t("publish");class H5e{constructor(){Object.defineProperty(this,eP,{value:U3t}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,(function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o})(this,eP)[eP](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function U3t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((r=>{r(...t)}))}H5e.VERSION="2.0.3";var Zae=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Xae={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Jae(e){let t="";return e.replace(/[^A-Z0-9]/gi,(n=>(t+=`-${(function(r){return r.charCodeAt(0).toString(32)})(n)}`,"/")))+t}var z3t=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function tP(e){return e<10?`0${e}`:e.toString()}var f6=function(){const e=new Date;return`${tP(e.getHours())}:${tP(e.getMinutes())}:${tP(e.getSeconds())}`},W5e={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${f6()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${f6()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${f6()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${f6()}]`,...t)}}},$3t={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},V5e=N3t;let q5e,G5e;function Nr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var j3t=0;function Ga(e){return"__private_"+j3t+++"_"+e}const{nanoid:H3t}=V5e,{justErrorsLogger:W3t,debugLogger:V3t}=W5e;class Ad extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class q3t extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var ws=Ga("plugins"),uw=Ga("storeUnsubscribe"),yf=Ga("emitter"),Pg=Ga("preProcessors"),Ng=Ga("uploaders"),Nf=Ga("postProcessors"),d3=Ga("checkRestrictions"),nP=Ga("checkMinNumberOfFiles"),MA=Ga("checkRequiredMetaFieldsOnFile"),rP=Ga("checkRequiredMetaFields"),Ka=Ga("showOrLogErrorAndThrow"),cw=Ga("assertNewUploadAllowed"),dw=Ga("checkAndCreateFileStateObject"),fw=Ga("startIfAutoProceed"),oP=Ga("addListeners"),Sc=Ga("updateOnlineStatus"),bf=Ga("createUpload"),iP=Ga("getUpload"),Wg=Ga("removeUpload"),wf=Ga("runUpload");q5e=Symbol.for("uppy test: getPlugins"),G5e=Symbol.for("uppy test: createUpload");class K5e{constructor(t){Object.defineProperty(this,wf,{value:iAt}),Object.defineProperty(this,Wg,{value:oAt}),Object.defineProperty(this,iP,{value:rAt}),Object.defineProperty(this,bf,{value:nAt}),Object.defineProperty(this,oP,{value:tAt}),Object.defineProperty(this,fw,{value:eAt}),Object.defineProperty(this,dw,{value:J3t}),Object.defineProperty(this,cw,{value:X3t}),Object.defineProperty(this,Ka,{value:Z3t}),Object.defineProperty(this,rP,{value:Q3t}),Object.defineProperty(this,MA,{value:Y3t}),Object.defineProperty(this,nP,{value:K3t}),Object.defineProperty(this,d3,{value:G3t}),Object.defineProperty(this,ws,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,uw,{writable:!0,value:void 0}),Object.defineProperty(this,yf,{writable:!0,value:$5e()}),Object.defineProperty(this,Pg,{writable:!0,value:new Set}),Object.defineProperty(this,Ng,{writable:!0,value:new Set}),Object.defineProperty(this,Nf,{writable:!0,value:new Set}),Object.defineProperty(this,Sc,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=$3t;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:new H5e,logger:W3t,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=V3t),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Gv(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:z3t(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Nr(this,uw)[uw]=this.store.subscribe(((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)})),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),Nr(this,oP)[oP]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Nr(this,yf)[yf].emit(t,...r)}on(t,n){return Nr(this,yf)[yf].on(t,n),this}once(t,n){return Nr(this,yf)[yf].once(t,n),this}off(t,n){return Nr(this,yf)[yf].off(t,n),this}updateAll(t){this.iteratePlugins((n=>{n.update(t)}))}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new z5e([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins((n=>{n.setOptions()})),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach((o=>{const i={...n[o]};i.progress={...i.progress,...t},r[o]=i})),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){Nr(this,Pg)[Pg].add(t)}removePreProcessor(t){return Nr(this,Pg)[Pg].delete(t)}addPostProcessor(t){Nr(this,Nf)[Nf].add(t)}removePostProcessor(t){return Nr(this,Nf)[Nf].delete(t)}addUploader(t){Nr(this,Ng)[Ng].add(t)}removeUploader(t){return Nr(this,Ng)[Ng].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach((o=>{r[o]={...r[o],meta:{...r[o].meta,...t}}})),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...r[t].meta,...n};r[t]={...r[t],meta:o},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),o=Object.values(t),i=o.filter((v=>{let{progress:h}=v;return!h.uploadComplete&&h.uploadStarted})),a=o.filter((v=>!v.progress.uploadStarted)),s=o.filter((v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess)),l=o.filter((v=>v.progress.uploadStarted)),u=o.filter((v=>v.isPaused)),d=o.filter((v=>v.progress.uploadComplete)),c=o.filter((v=>v.error)),f=i.filter((v=>!v.isPaused)),p=o.filter((v=>v.progress.preprocess||v.progress.postprocess));return{newFiles:a,startedFiles:s,uploadStartedFiles:l,pausedFiles:u,completeFiles:d,erroredFiles:c,inProgressFiles:i,inProgressNotPausedFiles:f,processingFiles:p,isUploadStarted:l.length>0,isAllComplete:n===100&&d.length===o.length&&p.length===0,isAllErrored:!!r&&c.length===o.length,isAllPaused:i.length!==0&&u.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some((v=>v.isGhost))}}validateRestrictions(t,n){try{return Nr(this,d3)[d3](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!(!n[t]||n[t].isGhost)}addFile(t){Nr(this,cw)[cw](t);const{files:n}=this.getState();let r=Nr(this,dw)[dw](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),Nr(this,fw)[fw](),r.id}addFiles(t){Nr(this,cw)[cw]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<t.length;i++)try{let a=Nr(this,dw)[dw](n,t[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:t[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach((i=>{this.emit("file-added",i)})),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach((i=>{this.log(`Added file: ${r[i].name}
- id: ${r[i].id}
- type: ${r[i].type}`)})),r.length>0&&Nr(this,fw)[fw](),o.length>0){let i=`Multiple errors occurred while adding files:
- `;if(o.forEach((a=>{i+=`
- * ${a.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(t,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},s=Object.create(null);function l(c){return s[c]===void 0}t.forEach((c=>{r[c]&&(s[c]=r[c],delete i[c])})),Object.keys(a).forEach((c=>{const f=o[c].fileIDs.filter(l);f.length!==0?a[c]={...o[c],fileIDs:f}:delete a[c]}));const u={currentUploads:a,files:i};Object.keys(i).length===0&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const d=Object.keys(s);d.forEach((c=>{this.emit("file-removed",s[c],n)})),d.length>5?this.log(`Removed ${d.length} files`):this.log(`Removed files: ${d.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter((n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted)).forEach((n=>{const r={...t[n],isPaused:!0};t[n]=r})),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter((n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted)).forEach((n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r})),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter((o=>t[o].error));if(n.forEach((o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i})),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=Nr(this,bf)[bf](n,{forceAllowNewUpload:!0});return Nr(this,wf)[wf](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=Nr(this,bf)[bf]([t],{forceAllowNewUpload:!0});return Nr(this,wf)[wf](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins((t=>{t.provider&&t.provider.logout&&t.provider.logout()}))}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter((l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess));if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter((l=>l.progress.bytesTotal!=null)),r=t.filter((l=>l.progress.bytesTotal==null));if(n.length===0){const l=100*t.length,u=r.reduce(((c,f)=>c+f.progress.percentage),0),d=Math.round(u/l*100);return void this.setState({totalProgress:d})}let o=n.reduce(((l,u)=>l+u.progress.bytesTotal),0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach((l=>{a+=l.progress.bytesUploaded})),r.forEach((l=>{a+=i*(l.progress.percentage||0)/100}));let s=o===0?0:Math.round(a/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const r=new t(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in Nr(this,ws)[ws]?Nr(this,ws)[ws][r.type].push(r):Nr(this,ws)[ws][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(Nr(this,ws)[ws])){const r=n.find((o=>o.id===t));if(r!=null)return r}}[q5e](t){return Nr(this,ws)[ws][t]}iteratePlugins(t){Object.values(Nr(this,ws)[ws]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=Nr(this,ws)[ws][t.type],r=n.findIndex((i=>i.id===t.id));r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Nr(this,uw)[uw](),this.iteratePlugins((t=>{this.removePlugin(t)})),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",Nr(this,Sc)[Sc]),window.removeEventListener("offline",Nr(this,Sc)[Sc]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout((()=>this.hideInfo()),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Nr(this,wf)[wf](t):(Nr(this,Wg)[Wg](t),Promise.reject(new Error("Nonexistent upload")))}[G5e](){return Nr(this,bf)[bf](...arguments)}addResultData(t,n){if(!Nr(this,iP)[iP](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=Nr(this,ws)[ws].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then((()=>{Nr(this,nP)[nP](n),Nr(this,rP)[rP](n)})).catch((o=>{Nr(this,Ka)[Ka](o)})).then((()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap((l=>l.fileIDs)),a=[];Object.keys(n).forEach((l=>{const u=this.getFile(l);u.progress.uploadStarted||i.indexOf(l)!==-1||a.push(u.id)}));const s=Nr(this,bf)[bf](a);return Nr(this,wf)[wf](s)})).catch((o=>{Nr(this,Ka)[Ka](o,{showInformer:!1})})))}}function G3t(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Ad(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((s=>s.indexOf("/")>-1?!!e.type&&B3t(e.type.replace(/;.*?$/,""),s):!(s[0]!=="."||!e.extension)&&e.extension.toLowerCase()===s.substr(1).toLowerCase()))){const s=a.join(", ");throw new Ad(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(o&&e.size!=null){let s=0;if(s+=e.size,t.forEach((l=>{s+=l.size})),s>o)throw new Ad(this.i18n("exceedsSize",{size:JM(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new Ad(this.i18n("exceedsSize",{size:JM(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new Ad(this.i18n("inferiorSize",{size:JM(r)}))}function K3t(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Ad(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Y3t(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new Ad(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),o.push(t[i]),Nr(this,Ka)[Ka](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Q3t(e){const t=Object.keys(e).flatMap((n=>{const r=this.getFile(n);return Nr(this,MA)[MA](r)}));if(t.length)throw new q3t(t,`${this.i18n("missingRequiredMetaField")}`)}function Z3t(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let s=i;if(a&&(s+=` ${a}`),e.isRestriction?(this.log(s),this.emit("restriction-failed",r,e)):this.log(s,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function X3t(e){const{allowNewUpload:t}=this.getState();t===!1&&Nr(this,Ka)[Ka](new Ad(this.i18n("noMoreFilesAllowed")),{file:e})}function J3t(e,t){const n=(function(c){var f;if(c.type)return c.type;const p=c.name?(f=Zae(c.name).extension)==null?void 0:f.toLowerCase():null;return p&&p in Xae?Xae[p]:"application/octet-stream"})(t),r=(function(c,f){return f.name?f.name:c.split("/")[0]==="image"?`${c.split("/")[0]}.${c.split("/")[1]}`:"noname"})(n,t),o=Zae(r).extension,i=!!t.isRemote,a=(function(c){let f="uppy";return typeof c.name=="string"&&(f+=`-${Jae(c.name.toLowerCase())}`),c.type!==void 0&&(f+=`-${c.type}`),c.meta&&typeof c.meta.relativePath=="string"&&(f+=`-${Jae(c.meta.relativePath.toLowerCase())}`),c.data.size!==void 0&&(f+=`-${c.data.size}`),c.data.lastModified!==void 0&&(f+=`-${c.data.lastModified}`),f})({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const c=new Ad(this.i18n("noDuplicates",{fileName:r}));Nr(this,Ka)[Ka](c,{file:t})}const s=t.meta||{};s.name=r,s.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let u={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:i,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(u,e);d===!1?Nr(this,Ka)[Ka](new Ad("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof d=="object"&&d!==null&&(u=d);try{const c=Object.keys(e).map((f=>e[f]));Nr(this,d3)[d3](u,c)}catch(c){Nr(this,Ka)[Ka](c,{file:u})}return u}function eAt(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function tAt(){const e=(t,n,r)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),Nr(this,Ka)[Ka](o,{throwErr:!1})}else Nr(this,Ka)[Ka](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((t,n)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:Nr(this,Nf)[Nf].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("preprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})})),this.on("postprocess-progress",((t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("postprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(t=>{t&&Nr(this,MA)[MA](t)})),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",Nr(this,Sc)[Sc]),window.addEventListener("offline",Nr(this,Sc)[Sc]),setTimeout(Nr(this,Sc)[Sc],3e3))}function nAt(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=H3t();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function rAt(e){const{currentUploads:t}=this.getState();return t[e]}function oAt(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function iAt(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Nr(this,Pg)[Pg],...Nr(this,Ng)[Ng],...Nr(this,Nf)[Nf]];try{for(let a=r;a<o.length&&n;a++){const s=o[a],l={...n,step:a};this.setState({currentUploads:{...t,[e]:l}}),await s(l.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),Nr(this,Wg)[Wg](e),a}if(n){n.fileIDs.forEach((u=>{const d=this.getFile(u);d&&d.progress.postprocess&&this.emit("postprocess-complete",d)}));const a=n.fileIDs.map((u=>this.getFile(u))),s=a.filter((u=>!u.error)),l=a.filter((u=>u.error));await this.addResultData(e,{successful:s,failed:l,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Nr(this,Wg)[Wg](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}K5e.VERSION="2.1.3";var Y5e=K5e,aAt=vm((function(e,t){var n,r,o,i,a,s,l,u,d={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(U,F){for(var H in F)U[H]=F[H];return U}function v(U){var F=U.parentNode;F&&F.removeChild(U)}function h(U,F,H){var re,X,te,Z={};for(te in F)te=="key"?re=F[te]:te=="ref"?X=F[te]:Z[te]=F[te];if(arguments.length>2&&(Z.children=arguments.length>3?n.call(arguments,2):H),typeof U=="function"&&U.defaultProps!=null)for(te in U.defaultProps)Z[te]===void 0&&(Z[te]=U.defaultProps[te]);return g(U,Z,re,X,null)}function g(U,F,H,re,X){var te={type:U,props:F,key:H,ref:re,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:X??++o};return X==null&&r.vnode!=null&&r.vnode(te),te}function y(U){return U.children}function m(U,F){this.props=U,this.context=F}function b(U,F){if(F==null)return U.__?b(U.__,U.__.__k.indexOf(U)+1):null;for(var H;F<U.__k.length;F++)if((H=U.__k[F])!=null&&H.__e!=null)return H.__e;return typeof U.type=="function"?b(U):null}function w(U){var F,H;if((U=U.__)!=null&&U.__c!=null){for(U.__e=U.__c.base=null,F=0;F<U.__k.length;F++)if((H=U.__k[F])!=null&&H.__e!=null){U.__e=U.__c.base=H.__e;break}return w(U)}}function A(U){(!U.__d&&(U.__d=!0)&&a.push(U)&&!S.__r++||l!==r.debounceRendering)&&((l=r.debounceRendering)||s)(S)}function S(){for(var U;S.__r=a.length;)U=a.sort((function(F,H){return F.__v.__b-H.__v.__b})),a=[],U.some((function(F){var H,re,X,te,Z,le;F.__d&&(Z=(te=(H=F).__v).__e,(le=H.__P)&&(re=[],(X=p({},te)).__v=te.__v+1,N(le,te,X,H.__n,le.ownerSVGElement!==void 0,te.__h!=null?[Z]:null,re,Z??b(te),te.__h),W(re,te),te.__e!=Z&&w(te)))}))}function E(U,F,H,re,X,te,Z,le,ve,Pe){var Ae,he,Ee,Q,me,De,pe,ie=re&&re.__k||c,ue=ie.length;for(H.__k=[],Ae=0;Ae<F.length;Ae++)if((Q=H.__k[Ae]=(Q=F[Ae])==null||typeof Q=="boolean"?null:typeof Q=="string"||typeof Q=="number"||typeof Q=="bigint"?g(null,Q,null,null,Q):Array.isArray(Q)?g(y,{children:Q},null,null,null):Q.__b>0?g(Q.type,Q.props,Q.key,null,Q.__v):Q)!=null){if(Q.__=H,Q.__b=H.__b+1,(Ee=ie[Ae])===null||Ee&&Q.key==Ee.key&&Q.type===Ee.type)ie[Ae]=void 0;else for(he=0;he<ue;he++){if((Ee=ie[he])&&Q.key==Ee.key&&Q.type===Ee.type){ie[he]=void 0;break}Ee=null}N(U,Q,Ee=Ee||d,X,te,Z,le,ve,Pe),me=Q.__e,(he=Q.ref)&&Ee.ref!=he&&(pe||(pe=[]),Ee.ref&&pe.push(Ee.ref,null,Q),pe.push(he,Q.__c||me,Q)),me!=null?(De==null&&(De=me),typeof Q.type=="function"&&Q.__k===Ee.__k?Q.__d=ve=D(Q,ve,U):ve=_(U,Q,Ee,ie,me,ve),typeof H.type=="function"&&(H.__d=ve)):ve&&Ee.__e==ve&&ve.parentNode!=U&&(ve=b(Ee))}for(H.__e=De,Ae=ue;Ae--;)ie[Ae]!=null&&(typeof H.type=="function"&&ie[Ae].__e!=null&&ie[Ae].__e==H.__d&&(H.__d=b(re,Ae+1)),j(ie[Ae],ie[Ae]));if(pe)for(Ae=0;Ae<pe.length;Ae++)z(pe[Ae],pe[++Ae],pe[++Ae])}function D(U,F,H){for(var re,X=U.__k,te=0;X&&te<X.length;te++)(re=X[te])&&(re.__=U,F=typeof re.type=="function"?D(re,F,H):_(H,re,re,X,re.__e,F));return F}function _(U,F,H,re,X,te){var Z,le,ve;if(F.__d!==void 0)Z=F.__d,F.__d=void 0;else if(H==null||X!=te||X.parentNode==null)e:if(te==null||te.parentNode!==U)U.appendChild(X),Z=null;else{for(le=te,ve=0;(le=le.nextSibling)&&ve<re.length;ve+=2)if(le==X)break e;U.insertBefore(X,te),Z=te}return Z!==void 0?Z:X.nextSibling}function M(U,F,H){F[0]==="-"?U.setProperty(F,H):U[F]=H==null?"":typeof H!="number"||f.test(F)?H:H+"px"}function O(U,F,H,re,X){var te;e:if(F==="style")if(typeof H=="string")U.style.cssText=H;else{if(typeof re=="string"&&(U.style.cssText=re=""),re)for(F in re)H&&F in H||M(U.style,F,"");if(H)for(F in H)re&&H[F]===re[F]||M(U.style,F,H[F])}else if(F[0]==="o"&&F[1]==="n")te=F!==(F=F.replace(/Capture$/,"")),F=F.toLowerCase()in U?F.toLowerCase().slice(2):F.slice(2),U.l||(U.l={}),U.l[F+te]=H,H?re||U.addEventListener(F,te?R:k,te):U.removeEventListener(F,te?R:k,te);else if(F!=="dangerouslySetInnerHTML"){if(X)F=F.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(F!=="href"&&F!=="list"&&F!=="form"&&F!=="tabIndex"&&F!=="download"&&F in U)try{U[F]=H??"";break e}catch{}typeof H=="function"||(H!=null&&(H!==!1||F[0]==="a"&&F[1]==="r")?U.setAttribute(F,H):U.removeAttribute(F))}}function k(U){this.l[U.type+!1](r.event?r.event(U):U)}function R(U){this.l[U.type+!0](r.event?r.event(U):U)}function N(U,F,H,re,X,te,Z,le,ve){var Pe,Ae,he,Ee,Q,me,De,pe,ie,ue,Be,Me=F.type;if(F.constructor!==void 0)return null;H.__h!=null&&(ve=H.__h,le=F.__e=H.__e,F.__h=null,te=[le]),(Pe=r.__b)&&Pe(F);try{e:if(typeof Me=="function"){if(pe=F.props,ie=(Pe=Me.contextType)&&re[Pe.__c],ue=Pe?ie?ie.props.value:Pe.__:re,H.__c?De=(Ae=F.__c=H.__c).__=Ae.__E:("prototype"in Me&&Me.prototype.render?F.__c=Ae=new Me(pe,ue):(F.__c=Ae=new m(pe,ue),Ae.constructor=Me,Ae.render=q),ie&&ie.sub(Ae),Ae.props=pe,Ae.state||(Ae.state={}),Ae.context=ue,Ae.__n=re,he=Ae.__d=!0,Ae.__h=[]),Ae.__s==null&&(Ae.__s=Ae.state),Me.getDerivedStateFromProps!=null&&(Ae.__s==Ae.state&&(Ae.__s=p({},Ae.__s)),p(Ae.__s,Me.getDerivedStateFromProps(pe,Ae.__s))),Ee=Ae.props,Q=Ae.state,he)Me.getDerivedStateFromProps==null&&Ae.componentWillMount!=null&&Ae.componentWillMount(),Ae.componentDidMount!=null&&Ae.__h.push(Ae.componentDidMount);else{if(Me.getDerivedStateFromProps==null&&pe!==Ee&&Ae.componentWillReceiveProps!=null&&Ae.componentWillReceiveProps(pe,ue),!Ae.__e&&Ae.shouldComponentUpdate!=null&&Ae.shouldComponentUpdate(pe,Ae.__s,ue)===!1||F.__v===H.__v){Ae.props=pe,Ae.state=Ae.__s,F.__v!==H.__v&&(Ae.__d=!1),Ae.__v=F,F.__e=H.__e,F.__k=H.__k,F.__k.forEach((function(Fe){Fe&&(Fe.__=F)})),Ae.__h.length&&Z.push(Ae);break e}Ae.componentWillUpdate!=null&&Ae.componentWillUpdate(pe,Ae.__s,ue),Ae.componentDidUpdate!=null&&Ae.__h.push((function(){Ae.componentDidUpdate(Ee,Q,me)}))}Ae.context=ue,Ae.props=pe,Ae.state=Ae.__s,(Pe=r.__r)&&Pe(F),Ae.__d=!1,Ae.__v=F,Ae.__P=U,Pe=Ae.render(Ae.props,Ae.state,Ae.context),Ae.state=Ae.__s,Ae.getChildContext!=null&&(re=p(p({},re),Ae.getChildContext())),he||Ae.getSnapshotBeforeUpdate==null||(me=Ae.getSnapshotBeforeUpdate(Ee,Q)),Be=Pe!=null&&Pe.type===y&&Pe.key==null?Pe.props.children:Pe,E(U,Array.isArray(Be)?Be:[Be],F,H,re,X,te,Z,le,ve),Ae.base=F.__e,F.__h=null,Ae.__h.length&&Z.push(Ae),De&&(Ae.__E=Ae.__=null),Ae.__e=!1}else te==null&&F.__v===H.__v?(F.__k=H.__k,F.__e=H.__e):F.__e=B(H.__e,F,H,re,X,te,Z,ve);(Pe=r.diffed)&&Pe(F)}catch(Fe){F.__v=null,(ve||te!=null)&&(F.__e=le,F.__h=!!ve,te[te.indexOf(le)]=null),r.__e(Fe,F,H)}}function W(U,F){r.__c&&r.__c(F,U),U.some((function(H){try{U=H.__h,H.__h=[],U.some((function(re){re.call(H)}))}catch(re){r.__e(re,H.__v)}}))}function B(U,F,H,re,X,te,Z,le){var ve,Pe,Ae,he=H.props,Ee=F.props,Q=F.type,me=0;if(Q==="svg"&&(X=!0),te!=null){for(;me<te.length;me++)if((ve=te[me])&&"setAttribute"in ve==!!Q&&(Q?ve.localName===Q:ve.nodeType===3)){U=ve,te[me]=null;break}}if(U==null){if(Q===null)return document.createTextNode(Ee);U=X?document.createElementNS("http://www.w3.org/2000/svg",Q):document.createElement(Q,Ee.is&&Ee),te=null,le=!1}if(Q===null)he===Ee||le&&U.data===Ee||(U.data=Ee);else{if(te=te&&n.call(U.childNodes),Pe=(he=H.props||d).dangerouslySetInnerHTML,Ae=Ee.dangerouslySetInnerHTML,!le){if(te!=null)for(he={},me=0;me<U.attributes.length;me++)he[U.attributes[me].name]=U.attributes[me].value;(Ae||Pe)&&(Ae&&(Pe&&Ae.__html==Pe.__html||Ae.__html===U.innerHTML)||(U.innerHTML=Ae&&Ae.__html||""))}if((function(De,pe,ie,ue,Be){var Me;for(Me in ie)Me==="children"||Me==="key"||Me in pe||O(De,Me,null,ie[Me],ue);for(Me in pe)Be&&typeof pe[Me]!="function"||Me==="children"||Me==="key"||Me==="value"||Me==="checked"||ie[Me]===pe[Me]||O(De,Me,pe[Me],ie[Me],ue)})(U,Ee,he,X,le),Ae)F.__k=[];else if(me=F.props.children,E(U,Array.isArray(me)?me:[me],F,H,re,X&&Q!=="foreignObject",te,Z,te?te[0]:H.__k&&b(H,0),le),te!=null)for(me=te.length;me--;)te[me]!=null&&v(te[me]);le||("value"in Ee&&(me=Ee.value)!==void 0&&(me!==he.value||me!==U.value||Q==="progress"&&!me)&&O(U,"value",me,he.value,!1),"checked"in Ee&&(me=Ee.checked)!==void 0&&me!==U.checked&&O(U,"checked",me,he.checked,!1))}return U}function z(U,F,H){try{typeof U=="function"?U(F):U.current=F}catch(re){r.__e(re,H)}}function j(U,F,H){var re,X;if(r.unmount&&r.unmount(U),(re=U.ref)&&(re.current&&re.current!==U.__e||z(re,null,F)),(re=U.__c)!=null){if(re.componentWillUnmount)try{re.componentWillUnmount()}catch(te){r.__e(te,F)}re.base=re.__P=null}if(re=U.__k)for(X=0;X<re.length;X++)re[X]&&j(re[X],F,typeof U.type!="function");H||U.__e==null||v(U.__e),U.__e=U.__d=void 0}function q(U,F,H){return this.constructor(U,H)}function Y(U,F,H){var re,X,te;r.__&&r.__(U,F),X=(re=typeof H=="function")?null:H&&H.__k||F.__k,te=[],N(F,U=(!re&&H||F).__k=h(y,null,[U]),X||d,d,F.ownerSVGElement!==void 0,!re&&H?[H]:X?null:F.firstChild?n.call(F.childNodes):null,te,!re&&H?H:X?X.__e:F.firstChild,re),W(te,U)}n=c.slice,r={__e:function(U,F){for(var H,re,X;F=F.__;)if((H=F.__c)&&!H.__)try{if((re=H.constructor)&&re.getDerivedStateFromError!=null&&(H.setState(re.getDerivedStateFromError(U)),X=H.__d),H.componentDidCatch!=null&&(H.componentDidCatch(U),X=H.__d),X)return H.__E=H}catch(te){U=te}throw U}},o=0,i=function(U){return U!=null&&U.constructor===void 0},m.prototype.setState=function(U,F){var H;H=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof U=="function"&&(U=U(p({},H),this.props)),U&&p(H,U),U!=null&&this.__v&&(F&&this.__h.push(F),A(this))},m.prototype.forceUpdate=function(U){this.__v&&(this.__e=!0,U&&this.__h.push(U),A(this))},m.prototype.render=y,a=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,u=0,t.Component=m,t.Fragment=y,t.cloneElement=function(U,F,H){var re,X,te,Z=p({},U.props);for(te in F)te=="key"?re=F[te]:te=="ref"?X=F[te]:Z[te]=F[te];return arguments.length>2&&(Z.children=arguments.length>3?n.call(arguments,2):H),g(U.type,Z,re||U.key,X||U.ref,null)},t.createContext=function(U,F){var H={__c:F="__cC"+u++,__:U,Consumer:function(re,X){return re.children(X)},Provider:function(re){var X,te;return this.getChildContext||(X=[],(te={})[F]=this,this.getChildContext=function(){return te},this.shouldComponentUpdate=function(Z){this.props.value!==Z.value&&X.some(A)},this.sub=function(Z){X.push(Z);var le=Z.componentWillUnmount;Z.componentWillUnmount=function(){X.splice(X.indexOf(Z),1),le&&le.call(Z)}}),re.children}};return H.Provider.__=H.Consumer.contextType=H},t.createElement=h,t.createRef=function(){return{current:null}},t.h=h,t.hydrate=function U(F,H){Y(F,H,U)},t.isValidElement=i,t.options=r,t.render=Y,t.toChildArray=function U(F,H){return H=H||[],F==null||typeof F=="boolean"||(Array.isArray(F)?F.some((function(re){U(re,H)})):H.push(F)),H}})),sAt=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},cG=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new z5e([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function ese(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lAt=0;function uAt(e){return"__private_"+lAt+++"_"+e}const{render:tse}=aAt;var pw=uAt("updateUI");class dG extends cG{constructor(){super(...arguments),Object.defineProperty(this,pw,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=sAt(t);if(o){this.isTargetDOMEl=!0;const s=document.createDocumentFragment();return ese(this,pw)[pw]=(function(l){let u=null,d=null;return function(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];return d=f,u||(u=Promise.resolve().then((()=>(u=null,l(...d))))),u}})((l=>{this.uppy.getPlugin(this.id)&&(tse(this.render(l),s),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),tse(this.render(this.uppy.getState()),s),this.el=s.firstElementChild,o.appendChild(s),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof dG)i=t;else if(typeof t=="function"){const s=t;this.uppy.iteratePlugins((l=>{if(l instanceof s)return i=l,!1}))}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof t=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(t){var n,r;this.el!=null&&((n=(r=ese(this,pw))[pw])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var cAt=dG;const{debugLogger:dAt}=W5e;var I4=Y5e,fAt=Y5e,pAt=cAt,hAt=cG,gAt=dAt;I4.Uppy=fAt,I4.UIPlugin=pAt,I4.BasePlugin=hAt,I4.debugLogger=gAt;class vAt extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var fG=vAt,aP=function(){return fetch(...arguments).catch((e=>{throw e.name==="AbortError"?e:new fG(e)}))};class mAt extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var p6,jp,pd,Hp,nse,yAt=mAt;function dd(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bAt=0;function sP(e){return"__private_"+bAt+++"_"+e}async function lP(e){if(e.status===401)throw new yAt;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var rse=(jp=sP("getPostResponseFunc"),pd=sP("getUrl"),Hp=sP("errorHandler"),nse=p6=class Q5e{constructor(t,n){Object.defineProperty(this,Hp,{value:AAt}),Object.defineProperty(this,pd,{value:wAt}),Object.defineProperty(this,jp,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...Q5e.defaultHeaders,...t})}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(dd(this,pd)[pd](t),{method:"OPTIONS"}).then((n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map((r=>r.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then((n=>{let[r,o]=n;return Object.keys(o).forEach((i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])})),o}))}get(t,n){return this.preflightAndHeaders(t).then((r=>aP(dd(this,pd)[pd](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(dd(this,jp)[jp](n)).then(lP).catch(dd(this,Hp)[Hp]("get",t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then((i=>aP(dd(this,pd)[pd](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)}))).then(dd(this,jp)[jp](r)).then(lP).catch(dd(this,Hp)[Hp](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then((i=>aP(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null}))).then(dd(this,jp)[jp](r)).then(lP).catch(dd(this,Hp)[Hp](o,t))}},p6.VERSION="2.0.4",p6.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${p6.VERSION}`},nse);function wAt(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function AAt(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${e} ${dd(this,pd)[pd](t)}`);o.cause=n,n=o}return Promise.reject(n)}}var CAt={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))},ld,Wp,Ou,Os,h6;let ose,ise;function Fa(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xAt=0;function hw(e){return"__private_"+xAt+++"_"+e}var SAt=(ld=hw("queued"),Wp=hw("emitter"),Ou=hw("isOpen"),Os=hw("socket"),h6=hw("handleMessage"),ose=Symbol.for("uppy test: getSocket"),ise=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,ld,{writable:!0,value:[]}),Object.defineProperty(this,Wp,{writable:!0,value:$5e()}),Object.defineProperty(this,Ou,{writable:!0,value:!1}),Object.defineProperty(this,Os,{writable:!0,value:void 0}),Object.defineProperty(this,h6,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return Fa(this,Ou)[Ou]}[ose](){return Fa(this,Os)[Os]}[ise](){return Fa(this,ld)[ld]}open(){Fa(this,Os)[Os]=new WebSocket(this.opts.target),Fa(this,Os)[Os].onopen=()=>{for(Fa(this,Ou)[Ou]=!0;Fa(this,ld)[ld].length>0&&Fa(this,Ou)[Ou];){const e=Fa(this,ld)[ld].shift();this.send(e.action,e.payload)}},Fa(this,Os)[Os].onclose=()=>{Fa(this,Ou)[Ou]=!1},Fa(this,Os)[Os].onmessage=Fa(this,h6)[h6]}close(){var e;(e=Fa(this,Os)[Os])==null||e.close()}send(e,t){Fa(this,Ou)[Ou]?Fa(this,Os)[Os].send(JSON.stringify({action:e,payload:t})):Fa(this,ld)[ld].push({action:e,payload:t})}on(e,t){Fa(this,Wp)[Wp].on(e,t)}emit(e,t){Fa(this,Wp)[Wp].emit(e,t)}once(e,t){Fa(this,Wp)[Wp].once(e,t)}}),EAt={RequestClient:rse,Provider:class extends rse{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map((r=>r.charAt(0).toUpperCase()+r.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||CAt}},Socket:SAt},Vp,Zm,kAt=Gv((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function gw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var TAt=0;function ase(e){return"__private_"+TAt+++"_"+e}var sse=(Vp=ase("emitter"),Zm=ase("events"),class{constructor(e){Object.defineProperty(this,Vp,{writable:!0,value:void 0}),Object.defineProperty(this,Zm,{writable:!0,value:[]}),gw(this,Vp)[Vp]=e}on(e,t){return gw(this,Zm)[Zm].push([e,t]),gw(this,Vp)[Vp].on(e,t)}remove(){for(const[e,t]of gw(this,Zm)[Zm].splice(0))gw(this,Vp)[Vp].off(e,t)}});function Mu(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _At=0;function v7(e){return"__private_"+_At+++"_"+e}var Af=v7("aliveTimer"),og=v7("isDone"),vw=v7("onTimedOut"),ig=v7("timeout"),lse=class{constructor(e,t){Object.defineProperty(this,Af,{writable:!0,value:void 0}),Object.defineProperty(this,og,{writable:!0,value:!1}),Object.defineProperty(this,vw,{writable:!0,value:void 0}),Object.defineProperty(this,ig,{writable:!0,value:void 0}),Mu(this,ig)[ig]=e,Mu(this,vw)[vw]=t}progress(){Mu(this,og)[og]||Mu(this,ig)[ig]>0&&(clearTimeout(Mu(this,Af)[Af]),Mu(this,Af)[Af]=setTimeout(Mu(this,vw)[vw],Mu(this,ig)[ig]))}done(){Mu(this,og)[og]||(clearTimeout(Mu(this,Af)[Af]),Mu(this,Af)[Af]=null,Mu(this,og)[og]=!0)}};function $a(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var DAt=0;function Am(e){return"__private_"+DAt+++"_"+e}function IAt(){return new Error("Cancelled")}var ru=Am("activeRequests"),al=Am("queuedHandlers"),f3=Am("call"),O4=Am("queueNext"),BU=Am("next"),uP=Am("queue"),LU=Am("dequeue");function OAt(e){$a(this,ru)[ru]+=1;let t,n=!1;try{t=e()}catch(r){throw $a(this,ru)[ru]-=1,r}return{abort:()=>{n||(n=!0,$a(this,ru)[ru]-=1,t(),$a(this,O4)[O4]())},done:()=>{n||(n=!0,$a(this,ru)[ru]-=1,$a(this,O4)[O4]())}}}function MAt(){queueMicrotask((()=>$a(this,BU)[BU]()))}function PAt(){if($a(this,ru)[ru]>=this.limit||$a(this,al)[al].length===0)return;const e=$a(this,al)[al].shift(),t=$a(this,f3)[f3](e.fn);e.abort=t.abort,e.done=t.done}function NAt(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{$a(this,LU)[LU](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=$a(this,al)[al].findIndex((o=>n.priority>o.priority));return r===-1?$a(this,al)[al].push(n):$a(this,al)[al].splice(r,0,n),n}function RAt(e){const t=$a(this,al)[al].indexOf(e);t!==-1&&$a(this,al)[al].splice(t,1)}var BAt={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,LU,{value:RAt}),Object.defineProperty(this,uP,{value:NAt}),Object.defineProperty(this,BU,{value:PAt}),Object.defineProperty(this,O4,{value:MAt}),Object.defineProperty(this,f3,{value:OAt}),Object.defineProperty(this,ru,{writable:!0,value:0}),Object.defineProperty(this,al,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return $a(this,ru)[ru]<this.limit?$a(this,f3)[f3](e):$a(this,uP)[uP](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const s=new Promise(((l,u)=>{a=n.run((()=>{let d,c;try{c=Promise.resolve(e(...o))}catch(f){c=Promise.reject(f)}return c.then((f=>{d?u(d):(a.done(),l(f))}),(f=>{d?u(d):(a.done(),u(f))})),()=>{d=IAt()}}),t)}));return s.abort=()=>{a.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},use,cse,Z5e=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},LAt={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:FAt}=V5e,{Provider:UAt,RequestClient:zAt,Socket:$At}=EAt,{RateLimitedQueue:jAt,internalRateLimitedQueue:cP}=BAt;function dse(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Z5e(e)?(n=new fG(n,e),n):(n.request=e,n)}function fse(e){return e.data.slice(0,e.data.size,e.meta.type)}var HAt=(cse=use=class extends cG{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=LAt;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){e.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return Z5e(o)&&(i=new fG(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),cP in this.opts?this.requests=this.opts[cP]:this.requests=new jAt(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((r=>{e.append(r,t[r])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=fse(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((o=>{const i=this.getOptions(o),a=fse(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((o,i)=>{this.uppy.emit("upload-started",e);const a=r.formData?this.createFormDataUpload(e,r):e.data,s=new XMLHttpRequest;this.uploaderEvents[e.id]=new sse(this.uppy);const l=new lse(r.timeout,(()=>{s.abort(),d.done();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,c),i(c)})),u=FAt();s.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),s.upload.addEventListener("progress",(c=>{this.uppy.log(`[XHRUpload] ${u} progress: ${c.loaded} / ${c.total}`),l.progress(),c.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:c.loaded,bytesTotal:c.total})})),s.addEventListener("load",(c=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),l.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(c.target.status,s.responseText,s)){const h=r.getResponseData(s.responseText,s),g=h[r.responseUrlFieldName],y={status:c.target.status,body:h,uploadURL:g};return this.uppy.emit("upload-success",e,y),g&&this.uppy.log(`Download ${e.name} from ${g}`),o(e)}const f=r.getResponseData(s.responseText,s),p=dse(s,r.getResponseError(s.responseText,s)),v={status:c.target.status,body:f};return this.uppy.emit("upload-error",e,p,v),i(p)})),s.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),l.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const c=dse(s,r.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,c),i(c)})),s.open(r.method.toUpperCase(),r.endpoint,!0),s.withCredentials=r.withCredentials,r.responseType!==""&&(s.responseType=r.responseType);const d=this.requests.run((()=>{this.uppy.emit("upload-started",e);const c=this.getOptions(e);return Object.keys(c.headers).forEach((f=>{s.setRequestHeader(f,c.headers[f])})),s.send(a),()=>{l.done(),s.abort()}}));this.onFileRemove(e.id,(()=>{d.abort(),i(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{d.abort(),i(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((i=>{o[i]=e.meta[i]})),new(e.remote.providerOptions.provider?UAt:zAt)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((i=>{const{token:a}=i,s=(function(d){const c=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(d)[1];return`${/^http:\/\//i.test(d)?"ws":"wss"}://${c}`})(e.remote.companionUrl),l=new $At({target:`${s}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new sse(this.uppy),this.onFileRemove(e.id,(()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{l.send("pause",{}),l.send("resume",{})})),this.onRetryAll(e.id,(()=>{l.send("pause",{}),l.send("resume",{})})),l.on("progress",(d=>kAt(this,d,e))),l.on("success",(d=>{const c=t.getResponseData(d.response.responseText,d.response),f=c[t.responseUrlFieldName],p={status:d.response.status,body:c,uploadURL:f};return this.uppy.emit("upload-success",e,p),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),l.on("error",(d=>{const c=d.response,f=c?t.getResponseError(c.responseText,c):Object.assign(new Error(d.error.message),{cause:d.error});this.uppy.emit("upload-error",e,f),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(f)}));const u=this.requests.run((()=>(l.open(),e.isPaused&&l.send("pause",{}),()=>l.close())))})).catch((i=>{this.uppy.emit("upload-error",e,i),r(i)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),s=new XMLHttpRequest,l=new lse(this.opts.timeout,(()=>{s.abort();const d=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));u(d),n(d)})),u=d=>{e.forEach((c=>{this.uppy.emit("upload-error",c,d)}))};s.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()})),s.upload.addEventListener("progress",(d=>{l.progress(),d.lengthComputable&&e.forEach((c=>{this.uppy.emit("upload-progress",c,{uploader:this,bytesUploaded:d.loaded/d.total*c.size,bytesTotal:c.size})}))})),s.addEventListener("load",(d=>{if(l.done(),this.opts.validateStatus(d.target.status,s.responseText,s)){const f=this.opts.getResponseData(s.responseText,s),p={status:d.target.status,body:f};return e.forEach((v=>{this.uppy.emit("upload-success",v,p)})),t()}const c=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return c.request=s,u(c),n(c)})),s.addEventListener("error",(()=>{l.done();const d=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return u(d),n(d)})),this.uppy.on("cancel-all",(()=>{l.done(),s.abort()})),s.open(o.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((d=>{s.setRequestHeader(d,this.opts.headers[d])})),s.send(a),e.forEach((d=>{this.uppy.emit("upload-started",d)}))}))}uploadFiles(e){const t=e.map(((n,r)=>{const o=parseInt(r,10)+1,i=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)}));return(function(n){const r=[],o=[];function i(s){r.push(s)}function a(s){o.push(s)}return Promise.all(n.map((s=>s.then(i,a)))).then((()=>({successful:r,failed:o})))})(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[cP]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((n=>this.uppy.getFile(n)));if(this.opts.bundle){if(t.some((n=>n.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},use.VERSION="2.0.6",cse),pse=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wC(e){var t={exports:{}};return e(t,t.exports),t.exports}var qp,D8,g6=function(e){return e&&e.Math==Math&&e},Yn=g6(typeof globalThis=="object"&&globalThis)||g6(typeof window=="object"&&window)||g6(typeof self=="object"&&self)||g6(typeof pse=="object"&&pse)||(function(){return this})()||Function("return this")(),WAt=Object.defineProperty,pG=function(e,t){try{WAt(Yn,e,{value:t,configurable:!0,writable:!0})}catch{Yn[e]=t}return t},Fh=Yn["__core-js_shared__"]||pG("__core-js_shared__",{}),hG=wC((function(e){(e.exports=function(t,n){return Fh[t]||(Fh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X5e=Function.prototype,FU=X5e.bind,UU=X5e.call,VAt=FU&&FU.bind(UU),Br=FU?function(e){return e&&VAt(UU,e)}:function(e){return e&&function(){return UU.apply(e,arguments)}},qAt=Yn.TypeError,sc=function(e){if(e==null)throw qAt("Can't call method on "+e);return e},GAt=Yn.Object,U0=function(e){return GAt(sc(e))},KAt=Br({}.hasOwnProperty),Ia=Object.hasOwn||function(e,t){return KAt(U0(e),t)},YAt=0,QAt=Math.random(),ZAt=Br(1 .toString),gG=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ZAt(++YAt+QAt,36)},hi=function(e){return typeof e=="function"},XAt=function(e){return hi(e)?e:void 0},Cm=function(e,t){return arguments.length<2?XAt(Yn[e]):Yn[e]&&Yn[e][t]},gy=Cm("navigator","userAgent")||"",hse=Yn.process,gse=Yn.Deno,vse=hse&&hse.versions||gse&&gse.version,mse=vse&&vse.v8;mse&&(D8=(qp=mse.split("."))[0]>0&&qp[0]<4?1:+(qp[0]+qp[1])),!D8&&gy&&(!(qp=gy.match(/Edge\/(\d+)/))||qp[1]>=74)&&(qp=gy.match(/Chrome\/(\d+)/))&&(D8=+qp[1]);var PA=D8,ti=function(e){try{return!!e()}catch{return!0}},zU=!!Object.getOwnPropertySymbols&&!ti((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&PA&&PA<41})),vG=zU&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mw=hG("wks"),lv=Yn.Symbol,yse=lv&&lv.for,JAt=vG?lv:lv&&lv.withoutSetter||gG,ia=function(e){if(!Ia(mw,e)||!zU&&typeof mw[e]!="string"){var t="Symbol."+e;zU&&Ia(lv,e)?mw[e]=lv[e]:mw[e]=vG&&yse?yse(t):JAt(t)}return mw[e]},J5e={};J5e[ia("toStringTag")]="z";var mG=String(J5e)==="[object z]",us=!ti((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Fi=function(e){return typeof e=="object"?e!==null:hi(e)},$U=Yn.document,e5t=Fi($U)&&Fi($U.createElement),NA=function(e){return e5t?$U.createElement(e):{}},eCe=!us&&!ti((function(){return Object.defineProperty(NA("div"),"a",{get:function(){return 7}}).a!=7})),t5t=Yn.String,n5t=Yn.TypeError,Ma=function(e){if(Fi(e))return e;throw n5t(t5t(e)+" is not an object")},yw=Function.prototype.call,Ko=yw.bind?yw.bind(yw):function(){return yw.apply(yw,arguments)},Kv=Br({}.isPrototypeOf),r5t=Yn.Object,dP=vG?function(e){return typeof e=="symbol"}:function(e){var t=Cm("Symbol");return hi(t)&&Kv(t.prototype,r5t(e))},o5t=Yn.String,m7=function(e){try{return o5t(e)}catch{return"Object"}},i5t=Yn.TypeError,w0=function(e){if(hi(e))return e;throw i5t(m7(e)+" is not a function")},Yv=function(e,t){var n=e[t];return n==null?void 0:w0(n)},a5t=Yn.TypeError,s5t=Yn.TypeError,l5t=ia("toPrimitive"),yG=function(e){var t=(function(n,r){if(!Fi(n)||dP(n))return n;var o,i=Yv(n,l5t);if(i){if(o=Ko(i,n,r),!Fi(o)||dP(o))return o;throw s5t("Can't convert object to primitive value")}return(function(a,s){var l,u;if(hi(l=a.toString)&&!Fi(u=Ko(l,a))||hi(l=a.valueOf)&&!Fi(u=Ko(l,a)))return u;throw a5t("Can't convert object to primitive value")})(n)})(e,"string");return dP(t)?t:t+""},u5t=Yn.TypeError,bse=Object.defineProperty,rd={f:us?bse:function(e,t,n){if(Ma(e),t=yG(t),Ma(n),eCe)try{return bse(e,t,n)}catch{}if("get"in n||"set"in n)throw u5t("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},y7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nc=us?function(e,t,n){return rd.f(e,t,y7(1,n))}:function(e,t,n){return e[t]=n,e},c5t=Br(Function.toString);hi(Fh.inspectSource)||(Fh.inspectSource=function(e){return c5t(e)});var Kk,p3,Yk,b7=Fh.inspectSource,wse=Yn.WeakMap,tCe=hi(wse)&&/native code/.test(b7(wse)),Ase=hG("keys"),bG=function(e){return Ase[e]||(Ase[e]=gG(e))},w7={},jU=Yn.TypeError,d5t=Yn.WeakMap;if(tCe||Fh.state){var ag=Fh.state||(Fh.state=new d5t),f5t=Br(ag.get),Cse=Br(ag.has),p5t=Br(ag.set);Kk=function(e,t){if(Cse(ag,e))throw new jU("Object already initialized");return t.facade=e,p5t(ag,e,t),t},p3=function(e){return f5t(ag,e)||{}},Yk=function(e){return Cse(ag,e)}}else{var Xm=bG("state");w7[Xm]=!0,Kk=function(e,t){if(Ia(e,Xm))throw new jU("Object already initialized");return t.facade=e,Nc(e,Xm,t),t},p3=function(e){return Ia(e,Xm)?e[Xm]:{}},Yk=function(e){return Ia(e,Xm)}}var qs={set:Kk,get:p3,has:Yk,enforce:function(e){return Yk(e)?p3(e):Kk(e,{})},getterFor:function(e){return function(t){var n;if(!Fi(t)||(n=p3(t)).type!==e)throw jU("Incompatible receiver, "+e+" required");return n}}},nCe=Function.prototype,h5t=us&&Object.getOwnPropertyDescriptor,fP=Ia(nCe,"name"),n2={EXISTS:fP,PROPER:fP&&(function(){}).name==="something",CONFIGURABLE:fP&&(!us||us&&h5t(nCe,"name").configurable)},$l=wC((function(e){var t=n2.CONFIGURABLE,n=qs.get,r=qs.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;hi(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ia(s,"name")||t&&s.name!==p)&&Nc(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==Yn?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:Nc(i,a,s)):c?i[a]=s:pG(a,s)})(Function.prototype,"toString",(function(){return hi(this)&&n(this).source||b7(this)}))})),g5t=Br({}.toString),v5t=Br("".slice),Rc=function(e){return v5t(g5t(e),8,-1)},m5t=ia("toStringTag"),y5t=Yn.Object,b5t=Rc((function(){return arguments})())=="Arguments",A7=mG?Rc:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=y5t(e),m5t))=="string"?n:b5t?Rc(t):(r=Rc(t))=="Object"&&hi(t.callee)?"Arguments":r},w5t=mG?{}.toString:function(){return"[object "+A7(this)+"]"};mG||$l(Object.prototype,"toString",w5t,{unsafe:!0});var Qk={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},pP=NA("span").classList,xse=pP&&pP.constructor&&pP.constructor.prototype,rCe=xse===Object.prototype?void 0:xse,Sse=Br(Br.bind),Qv=function(e,t){return w0(e),t===void 0?e:Sse?Sse(e,t):function(){return e.apply(t,arguments)}},hP=Yn.Object,A5t=Br("".split),C7=ti((function(){return!hP("z").propertyIsEnumerable(0)}))?function(e){return Rc(e)=="String"?A5t(e,""):hP(e)}:hP,C5t=Math.ceil,x5t=Math.floor,AC=function(e){var t=+e;return t!=t||t===0?0:(t>0?x5t:C5t)(t)},S5t=Math.min,r2=function(e){return e>0?S5t(AC(e),9007199254740991):0},xm=function(e){return r2(e.length)},Zk=Array.isArray||function(e){return Rc(e)=="Array"},oCe=function(){},E5t=[],iCe=Cm("Reflect","construct"),wG=/^\s*(?:class|function)\b/,k5t=Br(wG.exec),T5t=!wG.exec(oCe),bw=function(e){if(!hi(e))return!1;try{return iCe(oCe,E5t,e),!0}catch{return!1}},x7=!iCe||ti((function(){var e;return bw(bw.call)||!bw(Object)||!bw((function(){e=!0}))||e}))?function(e){if(!hi(e))return!1;switch(A7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return T5t||!!k5t(wG,b7(e))}:bw,_5t=ia("species"),Ese=Yn.Array,aCe=function(e,t){return new((function(n){var r;return Zk(n)&&(r=n.constructor,(x7(r)&&(r===Ese||Zk(r.prototype))||Fi(r)&&(r=r[_5t])===null)&&(r=void 0)),r===void 0?Ese:r})(e))(t===0?0:t)},kse=Br([].push),ww=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=U0(l),h=C7(v),g=Qv(u,d),y=xm(h),m=0,b=c||aCe,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:kse(w,f)}else switch(e){case 4:return!1;case 7:kse(w,f)}return i?-1:r||o?o:w}},o2={forEach:ww(0),map:ww(1),filter:ww(2),find:ww(5),findIndex:ww(6)},sCe=function(e,t){var n=[][e];return!!n&&ti((function(){n.call(null,t||function(){throw 1},1)}))},D5t=o2.forEach,gP=sCe("forEach")?[].forEach:function(e){return D5t(this,e,arguments.length>1?arguments[1]:void 0)},lCe=function(e){if(e&&e.forEach!==gP)try{Nc(e,"forEach",gP)}catch{e.forEach=gP}};for(var vP in Qk)Qk[vP]&&lCe(Yn[vP]&&Yn[vP].prototype);lCe(rCe);var Tse={}.propertyIsEnumerable,_se=Object.getOwnPropertyDescriptor,I5t=_se&&!Tse.call({1:2},1)?function(e){var t=_se(this,e);return!!t&&t.enumerable}:Tse,uCe={f:I5t},z0=function(e){return C7(sc(e))},Dse=Object.getOwnPropertyDescriptor,CC={f:us?Dse:function(e,t){if(e=z0(e),t=yG(t),eCe)try{return Dse(e,t)}catch{}if(Ia(e,t))return y7(!Ko(uCe.f,e,t),e[t])}},O5t=Math.max,M5t=Math.min,fb=function(e,t){var n=AC(e);return n<0?O5t(n+t,0):M5t(n,t)},Ise=function(e){return function(t,n,r){var o,i=z0(t),a=xm(i),s=fb(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},cCe={includes:Ise(!0),indexOf:Ise(!1)},P5t=cCe.indexOf,Ose=Br([].push),dCe=function(e,t){var n,r=z0(e),o=0,i=[];for(n in r)!Ia(w7,n)&&Ia(r,n)&&Ose(i,n);for(;t.length>o;)Ia(r,n=t[o++])&&(~P5t(i,n)||Ose(i,n));return i},Xk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],N5t=Xk.concat("length","prototype"),RA={f:Object.getOwnPropertyNames||function(e){return dCe(e,N5t)}},fCe={f:Object.getOwnPropertySymbols},R5t=Br([].concat),B5t=Cm("Reflect","ownKeys")||function(e){var t=RA.f(Ma(e)),n=fCe.f;return n?R5t(t,n(e)):t},L5t=function(e,t){for(var n=B5t(t),r=rd.f,o=CC.f,i=0;i<n.length;i++){var a=n[i];Ia(e,a)||r(e,a,o(t,a))}},F5t=/#|\.prototype\./,xC=function(e,t){var n=z5t[U5t(e)];return n==j5t||n!=$5t&&(hi(t)?ti(t):!!t)},U5t=xC.normalize=function(e){return String(e).replace(F5t,".").toLowerCase()},z5t=xC.data={},$5t=xC.NATIVE="N",j5t=xC.POLYFILL="P",BA=xC,H5t=CC.f,Ji=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?Yn:u?Yn[s]||pG(s,{}):(Yn[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=H5t(n,r))&&a.value:n[r],!BA(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;L5t(i,o)}(e.sham||o&&o.sham)&&Nc(i,"sham",!0),$l(n,r,i,e)}},vy=Object.keys||function(e){return dCe(e,Xk)},W5t=ti((function(){vy(1)}));/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function Mse(e){return Object.prototype.toString.call(e)==="[object Object]"}Ji({target:"Object",stat:!0,forced:W5t},{keys:function(e){return vy(U0(e))}});var V5t={isHistory(e){return Mse(t=e)!==!1&&((n=t.constructor)===void 0||Mse(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||kh.isOperationList(e.redos[0]))&&(e.undos.length===0||kh.isOperationList(e.undos[0]));var t,n,r}},mP=new WeakMap,yP=new WeakMap,V1={isHistoryEditor:e=>V5t.isHistory(e.history)&&Je.isEditor(e),isMerging:e=>yP.get(e),isSaving:e=>mP.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=V1.isMerging(e);yP.set(e,!1),t(),yP.set(e,n)},withoutSaving(e,t){var n=V1.isSaving(e);mP.set(e,!1),t(),mP.set(e,n)}},q5t=Yn.String,bi=function(e){if(A7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return q5t(e)},AG=function(){var e=Ma(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},G5t=n2.PROPER,HU=RegExp.prototype,pCe=HU.toString,K5t=Br(AG),Y5t=ti((function(){return pCe.call({source:"a",flags:"b"})!="/a/b"})),Q5t=G5t&&pCe.name!="toString";(Y5t||Q5t)&&$l(RegExp.prototype,"toString",(function(){var e=Ma(this),t=bi(e.source),n=e.flags;return"/"+t+"/"+bi(n===void 0&&Kv(HU,e)&&!("flags"in HU)?K5t(e):n)}),{unsafe:!0});var v6,Z5t=us?Object.defineProperties:function(e,t){Ma(e);for(var n,r=z0(t),o=vy(t),i=o.length,a=0;i>a;)rd.f(e,n=o[a++],r[n]);return e},WU=Cm("document","documentElement"),hCe=bG("IE_PROTO"),bP=function(){},gCe=function(e){return"<script>"+e+"<\/script>"},Pse=function(e){e.write(gCe("")),e.close();var t=e.parentWindow.Object;return e=null,t},I8=function(){try{v6=new ActiveXObject("htmlfile")}catch{}var e,t;I8=typeof document<"u"?document.domain&&v6?Pse(v6):((t=NA("iframe")).style.display="none",WU.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(gCe("document.F=Object")),e.close(),e.F):Pse(v6);for(var n=Xk.length;n--;)delete I8.prototype[Xk[n]];return I8()};w7[hCe]=!0;var S7=Object.create||function(e,t){var n;return e!==null?(bP.prototype=Ma(e),n=new bP,bP.prototype=null,n[hCe]=e):n=I8(),t===void 0?n:Z5t(n,t)},VU=ia("unscopables"),qU=Array.prototype;qU[VU]==null&&rd.f(qU,VU,{configurable:!0,value:S7(null)});var h3=function(e){qU[VU][e]=!0},X5t=cCe.includes;Ji({target:"Array",proto:!0},{includes:function(e){return X5t(this,e,arguments.length>1?arguments[1]:void 0)}}),h3("includes");var J5t=ia("match"),CG=function(e){var t;return Fi(e)&&((t=e[J5t])!==void 0?!!t:Rc(e)=="RegExp")},eCt=Yn.TypeError,xG=function(e){if(CG(e))throw eCt("The method doesn't accept regular expressions");return e},tCt=ia("match"),SG=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[tCt]=!1,"/./"[e](t)}catch{}}return!1},nCt=Br("".indexOf);Ji({target:"String",proto:!0,forced:!SG("includes")},{includes:function(e){return!!~nCt(bi(sc(this)),bi(xG(e)),arguments.length>1?arguments[1]:void 0)}});var rCt=/"/g,oCt=Br("".replace);Ji({target:"String",proto:!0,forced:ti((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=bi(sc(this)),r="<a",(r+=' name="'+oCt(bi(t),rCt,""")+'"')+">"+n+"</a>";var t,n,r}});var GU=function(e,t,n){var r,o;Ma(e);try{if(!(r=Yv(e,"return"))){if(t==="throw")throw n;return n}r=Ko(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Ma(r),n},iCt=function(e,t,n,r){try{return r?t(Ma(n)[0],n[1]):t(n)}catch(o){GU(e,"throw",o)}},pb={},aCt=ia("iterator"),sCt=Array.prototype,vCe=function(e){return e!==void 0&&(pb.Array===e||sCt[aCt]===e)},LA=function(e,t,n){var r=yG(t);r in e?rd.f(e,r,y7(0,n)):e[r]=n},lCt=ia("iterator"),EG=function(e){if(e!=null)return Yv(e,lCt)||Yv(e,"@@iterator")||pb[A7(e)]},uCt=Yn.TypeError,mCe=function(e,t){var n=arguments.length<2?EG(e):t;if(w0(n))return Ma(Ko(n,e));throw uCt(m7(e)+" is not iterable")},Nse=Yn.Array,yCe=ia("iterator"),bCe=!1;try{var cCt=0,Rse={next:function(){return{done:!!cCt++}},return:function(){bCe=!0}};Rse[yCe]=function(){return this},Array.from(Rse,(function(){throw 2}))}catch{}var kG=function(e,t){if(!bCe)return!1;var n=!1;try{var r={};r[yCe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},dCt=!kG((function(e){Array.from(e)}));Ji({target:"Array",stat:!0,forced:dCt},{from:function(e){var t=U0(e),n=x7(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Qv(o,r>2?arguments[2]:void 0));var a,s,l,u,d,c,f=EG(t),p=0;if(!f||this==Nse&&vCe(f))for(a=xm(t),s=n?new this(a):Nse(a);a>p;p++)c=i?o(t[p],p):t[p],LA(s,p,c);else for(d=(u=mCe(t,f)).next,s=n?new this:[];!(l=Ko(d,u)).done;p++)c=i?iCt(u,o,[l.value,p],!0):l.value,LA(s,p,c);return s.length=p,s}});var uv,Bse,Lse,fCt=Br("".charAt),Fse=Br("".charCodeAt),pCt=Br("".slice),hCt=function(e){return function(t,n){var r,o,i=bi(sc(t)),a=AC(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Fse(i,a))<55296||r>56319||a+1===s||(o=Fse(i,a+1))<56320||o>57343?e?fCt(i,a):r:e?pCt(i,a,a+2):o-56320+(r-55296<<10)+65536}},wCe={charAt:hCt(!0)},gCt=!ti((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Use=bG("IE_PROTO"),KU=Yn.Object,vCt=KU.prototype,Jk=gCt?KU.getPrototypeOf:function(e){var t=U0(e);if(Ia(t,Use))return t[Use];var n=t.constructor;return hi(n)&&t instanceof n?n.prototype:t instanceof KU?vCt:null},YU=ia("iterator"),ACe=!1;[].keys&&("next"in(Lse=[].keys())?(Bse=Jk(Jk(Lse)))!==Object.prototype&&(uv=Bse):ACe=!0);var mCt=uv==null||ti((function(){var e={};return uv[YU].call(e)!==e}));mCt&&(uv={}),hi(uv[YU])||$l(uv,YU,(function(){return this}));var TG={IteratorPrototype:uv,BUGGY_SAFARI_ITERATORS:ACe},yCt=rd.f,zse=ia("toStringTag"),eT=function(e,t,n){e&&!Ia(e=n?e:e.prototype,zse)&&yCt(e,zse,{configurable:!0,value:t})},bCt=TG.IteratorPrototype,wCt=function(){return this},ACt=Yn.String,CCt=Yn.TypeError,hb=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Br(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Ma(r),(function(i){if(typeof i=="object"||hi(i))return i;throw CCt("Can't set "+ACt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),xCt=n2.PROPER,SCt=n2.CONFIGURABLE,$se=TG.IteratorPrototype,m6=TG.BUGGY_SAFARI_ITERATORS,Aw=ia("iterator"),ECt=function(){return this},_G=function(e,t,n,r,o,i,a){(function(y,m,b,w){var A=m+" Iterator";y.prototype=S7(bCt,{next:y7(1,b)}),eT(y,A,!1),pb[A]=wCt})(n,t,r);var s,l,u,d=function(y){if(y===o&&h)return h;if(!m6&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,p=e.prototype,v=p[Aw]||p["@@iterator"]||o&&p[o],h=!m6&&v||d(o),g=t=="Array"&&p.entries||v;if(g&&(s=Jk(g.call(new e)))!==Object.prototype&&s.next&&(Jk(s)!==$se&&(hb?hb(s,$se):hi(s[Aw])||$l(s,Aw,ECt)),eT(s,c,!0)),xCt&&o=="values"&&v&&v.name!=="values"&&(SCt?Nc(p,"name","values"):(f=!0,h=function(){return Ko(v,this)})),o)if(l={values:d("values"),keys:i?h:d("keys"),entries:d("entries")},a)for(u in l)(m6||f||!(u in p))&&$l(p,u,l[u]);else Ji({target:t,proto:!0,forced:m6||f},l);return p[Aw]!==h&&$l(p,Aw,h,{name:o}),pb[t]=h,l},kCt=wCe.charAt,TCt=qs.set,_Ct=qs.getterFor("String Iterator");_G(String,"String",(function(e){TCt(this,{type:"String Iterator",string:bi(e),index:0})}),(function(){var e,t=_Ct(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=kCt(n,r),t.index+=e.length,{value:e,done:!1})}));var wP,DCt=CC.f,jse=Br("".endsWith),ICt=Br("".slice),OCt=Math.min,CCe=SG("endsWith"),MCt=!(CCe||(wP=DCt(String.prototype,"endsWith"),!wP||wP.writable));Ji({target:"String",proto:!0,forced:!MCt&&!CCe},{endsWith:function(e){var t=bi(sc(this));xG(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:OCt(r2(n),r),i=bi(e);return jse?jse(t,i,o):ICt(t,o-i.length,o)===i}});var PCt=Br([].join),NCt=C7!=Object,RCt=sCe("join",",");Ji({target:"Array",proto:!0,forced:NCt||!RCt},{join:function(e){return PCt(z0(this),e===void 0?",":e)}});var BCt=ia("species"),E7=function(e){return PA>=51||!ti((function(){var t=[];return(t.constructor={})[BCt]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},LCt=o2.map,FCt=E7("map");Ji({target:"Array",proto:!0,forced:!FCt},{map:function(e){return LCt(this,e,arguments.length>1?arguments[1]:void 0)}});var DG=Yn.RegExp,QU=ti((function(){var e=DG("a","y");return e.lastIndex=2,e.exec("abcd")!=null})),UCt=QU||ti((function(){return!DG("a","y").sticky})),k7={BROKEN_CARET:QU||ti((function(){var e=DG("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),MISSED_STICKY:UCt,UNSUPPORTED_Y:QU},zCt=Yn.RegExp,IG=ti((function(){var e=zCt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),$Ct=Yn.RegExp,OG=ti((function(){var e=$Ct("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),jCt=qs.get,HCt=hG("native-string-replace",String.prototype.replace),tT=RegExp.prototype.exec,ZU=tT,WCt=Br("".charAt),VCt=Br("".indexOf),qCt=Br("".replace),AP=Br("".slice),CP=(function(){var e=/a/,t=/b*/g;return Ko(tT,e,"a"),Ko(tT,t,"a"),e.lastIndex!==0||t.lastIndex!==0})(),Hse=k7.BROKEN_CARET,xP=/()??/.exec("")[1]!==void 0;(CP||xP||Hse||IG||OG)&&(ZU=function(e){var t,n,r,o,i,a,s,l=this,u=jCt(l),d=bi(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=Ko(ZU,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Hse&&l.sticky,v=Ko(AG,l),h=l.source,g=0,y=d;if(p&&(v=qCt(v,"y",""),VCt(v,"g")===-1&&(v+="g"),y=AP(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&WCt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),xP&&(n=new RegExp("^"+h+"$(?!\\s)",v)),CP&&(r=l.lastIndex),o=Ko(tT,p?n:l,y),p?o?(o.input=AP(o.input,g),o[0]=AP(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:CP&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),xP&&o&&o.length>1&&Ko(HCt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=S7(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var FA=ZU;Ji({target:"RegExp",proto:!0,forced:/./.exec!==FA},{exec:FA});var MG=Function.prototype,Wse=MG.apply,GCt=MG.bind,Vse=MG.call,PG=typeof Reflect=="object"&&Reflect.apply||(GCt?Vse.bind(Wse):function(){return Vse.apply(Wse,arguments)}),KCt=ia("species"),SP=RegExp.prototype,NG=function(e,t,n,r){var o=ia(e),i=!ti((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!ti((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[KCt]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=Br(/./[o]),l=t(o,""[e],(function(u,d,c,f,p){var v=Br(u),h=d.exec;return h===FA||h===SP.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));$l(String.prototype,e,l[0]),$l(SP,o,l[1])}r&&Nc(SP[o],"sham",!0)},YCt=wCe.charAt,RG=function(e,t,n){return t+(n?YCt(e,t).length:1)},QCt=Math.floor,EP=Br("".charAt),ZCt=Br("".replace),kP=Br("".slice),XCt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JCt=/\$([$&'`]|\d{1,2})/g,ext=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=JCt;return o!==void 0&&(o=U0(o),l=XCt),ZCt(i,l,(function(u,d){var c;switch(EP(d,0)){case"$":return"$";case"&":return e;case"`":return kP(t,0,n);case"'":return kP(t,a);case"<":c=o[kP(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=QCt(f/10);return p===0?u:p<=s?r[p-1]===void 0?EP(d,1):r[p-1]+EP(d,1):u}c=r[f-1]}return c===void 0?"":c}))},txt=Yn.TypeError,UA=function(e,t){var n=e.exec;if(hi(n)){var r=Ko(n,e,t);return r!==null&&Ma(r),r}if(Rc(e)==="RegExp")return Ko(FA,e,t);throw txt("RegExp#exec called on incompatible receiver")},XU=ia("replace"),nxt=Math.max,rxt=Math.min,oxt=Br([].concat),TP=Br([].push),qse=Br("".indexOf),Gse=Br("".slice),ixt="a".replace(/./,"$0")==="$0",Kse=!!/./[XU]&&/./[XU]("a","$0")==="";NG("replace",(function(e,t,n){var r=Kse?"$":"$0";return[function(o,i){var a=sc(this),s=o==null?void 0:Yv(o,XU);return s?Ko(s,o,a,i):Ko(t,bi(a),o,i)},function(o,i){var a=Ma(this),s=bi(o);if(typeof i=="string"&&qse(i,r)===-1&&qse(i,"$<")===-1){var l=n(t,a,s,i);if(l.done)return l.value}var u=hi(i);u||(i=bi(i));var d=a.global;if(d){var c=a.unicode;a.lastIndex=0}for(var f=[];;){var p=UA(a,s);if(p===null||(TP(f,p),!d))break;bi(p[0])===""&&(a.lastIndex=RG(s,r2(a.lastIndex),c))}for(var v,h="",g=0,y=0;y<f.length;y++){for(var m=bi((p=f[y])[0]),b=nxt(rxt(AC(p.index),s.length),0),w=[],A=1;A<p.length;A++)TP(w,(v=p[A])===void 0?v:String(v));var S=p.groups;if(u){var E=oxt([m],w,b,s);S!==void 0&&TP(E,S);var D=bi(PG(i,void 0,E))}else D=ext(m,s,b,w,S,i);b>=g&&(h+=Gse(s,g,b)+D,g=b+m.length)}return h+Gse(s,g)}]}),!!ti((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!ixt||Kse);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var JU=function(e,t){return JU=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},JU(e,t)};function i2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}JU(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Fu=function(){return Fu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fu.apply(this,arguments)};function Uu(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $o(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ez(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var axt=0,Yse=function(){this.id=""+axt++},sxt=qs.set,lxt=qs.getterFor("Array Iterator"),M4=_G(Array,"Array",(function(e,t){sxt(this,{type:"Array Iterator",target:z0(e),index:0,kind:t})}),(function(){var e=lxt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");pb.Arguments=pb.Array,h3("keys"),h3("values"),h3("entries");var gb=function(e,t,n){for(var r in t)$l(e,r,t[r],n);return e},uxt=Yn.Array,cxt=Math.max,tz=function(e,t,n){for(var r=xm(e),o=fb(t,r),i=fb(n===void 0?r:n,r),a=uxt(cxt(i-o,0)),s=0;o<i;o++,s++)LA(a,s,e[o]);return a.length=s,a},Qse=RA.f,Zse=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dxt={f:function(e){return Zse&&Rc(e)=="Window"?(function(t){try{return Qse(t)}catch{return tz(Zse)}})(e):Qse(z0(e))}},Xse=ti((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),y6=Object.isExtensible,Vg=ti((function(){y6(1)}))||Xse?function(e){return!!Fi(e)&&(!Xse||Rc(e)!="ArrayBuffer")&&(!y6||y6(e))}:y6,fxt=!ti((function(){return Object.isExtensible(Object.preventExtensions({}))})),T7=wC((function(e){var t=rd.f,n=!1,r=gG("meta"),o=0,i=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=RA.f,l=Br([].splice),u={};u[r]=1,s(u).length&&(RA.f=function(d){for(var c=s(d),f=0,p=c.length;f<p;f++)if(c[f]===r){l(c,f,1);break}return c},Ji({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dxt.f}))},fastKey:function(s,l){if(!Fi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ia(s,r)){if(!Vg(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!Ia(s,r)){if(!Vg(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return fxt&&n&&Vg(s)&&!Ia(s,r)&&i(s),s}};w7[r]=!0})),pxt=Yn.TypeError,O8=function(e,t){this.stopped=e,this.result=t},Jse=O8.prototype,zA=function(e,t,n){var r,o,i,a,s,l,u,d=n&&n.that,c=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Qv(t,d),h=function(y){return r&&GU(r,"normal",y),new O8(!0,y)},g=function(y){return c?(Ma(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(f)r=e;else{if(!(o=EG(e)))throw pxt(m7(e)+" is not iterable");if(vCe(o)){for(i=0,a=xm(e);a>i;i++)if((s=g(e[i]))&&Kv(Jse,s))return s;return new O8(!1)}r=mCe(e,o)}for(l=r.next;!(u=Ko(l,r)).done;){try{s=g(u.value)}catch(y){GU(r,"throw",y)}if(typeof s=="object"&&s&&Kv(Jse,s))return s}return new O8(!1)},hxt=Yn.TypeError,_7=function(e,t){if(Kv(t,e))return e;throw hxt("Incorrect invocation")},xCe=function(e,t,n){var r,o;return hb&&hi(r=t.constructor)&&r!==n&&Fi(o=r.prototype)&&o!==n.prototype&&hb(e,o),e},SCe=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=Yn[e],s=a&&a.prototype,l=a,u={},d=function(g){var y=Br(s[g]);$l(s,g,g=="add"?function(m){return y(this,m===0?0:m),this}:g=="delete"?function(m){return!(o&&!Fi(m))&&y(this,m===0?0:m)}:g=="get"?function(m){return o&&!Fi(m)?void 0:y(this,m===0?0:m)}:g=="has"?function(m){return!(o&&!Fi(m))&&y(this,m===0?0:m)}:function(m,b){return y(this,m===0?0:m,b),this})};if(BA(e,!hi(a)||!(o||s.forEach&&!ti((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),T7.enable();else if(BA(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=ti((function(){c.has(1)})),v=kG((function(g){new a(g)})),h=!o&&ti((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((l=t((function(g,y){_7(g,s);var m=xCe(new a,g,l);return y!=null&&zA(y,m[i],{that:m,AS_ENTRIES:r}),m}))).prototype=s,s.constructor=l),(p||h)&&(d("delete"),d("has"),r&&d("get")),(h||f)&&d(i),o&&s.clear&&delete s.clear}return u[e]=l,Ji({global:!0,forced:l!=a},u),eT(l,e),o||n.setStrong(l,e,r),l},b6=T7.getWeakData,gxt=qs.set,vxt=qs.getterFor,mxt=o2.find,yxt=o2.findIndex,bxt=Br([].splice),wxt=0,w6=function(e){return e.frozen||(e.frozen=new ECe)},ECe=function(){this.entries=[]},_P=function(e,t){return mxt(e.entries,(function(n){return n[0]===t}))};ECe.prototype={get:function(e){var t=_P(this,e);if(t)return t[1]},has:function(e){return!!_P(this,e)},set:function(e,t){var n=_P(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=yxt(this.entries,(function(n){return n[0]===e}));return~t&&bxt(this.entries,t,1),!!~t}};var Cw,kCe={getConstructor:function(e,t,n,r){var o=e((function(l,u){_7(l,i),gxt(l,{type:t,id:wxt++,frozen:void 0}),u!=null&&zA(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=vxt(t),s=function(l,u,d){var c=a(l),f=b6(Ma(u),!0);return f===!0?w6(c).set(u,d):f[c.id]=d,l};return gb(i,{delete:function(l){var u=a(this);if(!Fi(l))return!1;var d=b6(l);return d===!0?w6(u).delete(l):d&&Ia(d,u.id)&&delete d[u.id]},has:function(l){var u=a(this);if(!Fi(l))return!1;var d=b6(l);return d===!0?w6(u).has(l):d&&Ia(d,u.id)}}),gb(i,n?{get:function(l){var u=a(this);if(Fi(l)){var d=b6(l);return d===!0?w6(u).get(l):d?d[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},A6=qs.enforce,Axt=!Yn.ActiveXObject&&"ActiveXObject"in Yn,TCe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Cxt=SCe("WeakMap",TCe,kCe);if(tCe&&Axt){Cw=kCe.getConstructor(TCe,"WeakMap",!0),T7.enable();var xw=Cxt.prototype,ele=Br(xw.delete),C6=Br(xw.has),tle=Br(xw.get),nle=Br(xw.set);gb(xw,{delete:function(e){if(Fi(e)&&!Vg(e)){var t=A6(this);return t.frozen||(t.frozen=new Cw),ele(this,e)||t.frozen.delete(e)}return ele(this,e)},has:function(e){if(Fi(e)&&!Vg(e)){var t=A6(this);return t.frozen||(t.frozen=new Cw),C6(this,e)||t.frozen.has(e)}return C6(this,e)},get:function(e){if(Fi(e)&&!Vg(e)){var t=A6(this);return t.frozen||(t.frozen=new Cw),C6(this,e)?tle(this,e):t.frozen.get(e)}return tle(this,e)},set:function(e,t){if(Fi(e)&&!Vg(e)){var n=A6(this);n.frozen||(n.frozen=new Cw),C6(this,e)?nle(this,e,t):n.frozen.set(e,t)}else nle(this,e,t);return this}})}var DP=ia("iterator"),rle=ia("toStringTag"),IP=M4.values,_Ce=function(e,t){if(e){if(e[DP]!==IP)try{Nc(e,DP,IP)}catch{e[DP]=IP}if(e[rle]||Nc(e,rle,t),Qk[t]){for(var n in M4)if(e[n]!==M4[n])try{Nc(e,n,M4[n])}catch{e[n]=M4[n]}}}};for(var OP in Qk)_Ce(Yn[OP]&&Yn[OP].prototype,OP);_Ce(rCe,"DOMTokenList");var nz=new WeakMap,rz=new WeakMap,BG=new WeakMap,D7=new WeakMap,oz=new WeakMap,nT=new WeakMap,LG=new WeakMap,iz=new WeakMap,M8=new WeakMap,ole=new WeakMap,ile=new WeakMap,ale=new WeakMap,sle=new WeakMap,$A=new WeakMap,vb=new WeakMap,FG=new WeakMap,rT=new WeakMap,az=new WeakMap,oT=new WeakMap,P8=new WeakMap,DCe=new WeakMap,cv=new WeakMap,MP=new WeakMap,lle=new WeakMap,PP=new WeakMap,xxt=o2.find,ule=!0;"find"in[]&&Array(1).find((function(){ule=!1})),Ji({target:"Array",proto:!0,forced:ule},{find:function(e){return xxt(this,e,arguments.length>1?arguments[1]:void 0)}}),h3("find"),Ji({global:!0},{globalThis:Yn});const Sxt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];jk&&(Pt.fn.css=jk),ac&&(Pt.fn.append=ac),tb&&(Pt.fn.addClass=tb),nb&&(Pt.fn.removeClass=nb),rb&&(Pt.fn.hasClass=rb),Kd&&(Pt.fn.on=Kd),b0&&(Pt.fn.focus=b0),ic&&(Pt.fn.attr=ic),Fk&&(Pt.fn.removeAttr=Fk),ib&&(Pt.fn.hide=ib),$k&&(Pt.fn.show=$k),Eae&&(Pt.fn.offset=Eae),Uk&&(Pt.fn.width=Uk),zk&&(Pt.fn.height=zk),ab&&(Pt.fn.parent=ab),Vk&&(Pt.fn.parents=Vk),Tae&&(Pt.fn.is=Tae),ob&&(Pt.fn.dataset=ob),Gd&&(Pt.fn.val=Gd),Wk&&(Pt.fn.text=Wk),y0&&(Pt.fn.html=y0),lb&&(Pt.fn.children=lb),ub&&(Pt.fn.remove=ub),sb&&(Pt.fn.find=sb),Hk&&(Pt.fn.each=Hk),cb&&(Pt.fn.empty=cb);var Cd,Ms,UG=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},wc=function(e){return Zv(e)&&e.nodeType===1},Zv=function(e){var t=UG(e);return!!t&&e instanceof t.Node},cle=function(e){var t=e&&e.anchorNode&&UG(e.anchorNode);return!!t&&e instanceof t.Selection},ICe=function(e){return Zv(e)&&e.nodeType===3},sz=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},OCe=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,s=!1,l=!1;(Zv(r=i)&&r.nodeType===8||wc(i)&&i.childNodes.length===0||wc(i)&&i.getAttribute("contenteditable")==="false")&&(!s||!l);)a>=o.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=o[a],t=a,a+=n==="forward"?1:-1);return[i,t]},Ext=function(e,t,n){return $o(OCe(e,t,n),1)[0]},kxt=function e(t){var n,r,o="";if(ICe(t)&&t.nodeValue)return t.nodeValue;if(wc(t)){try{for(var i=Uu(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue("display");s!=="block"&&s!=="list"&&s!=="table-row"&&t.tagName!=="BR"||(o+=`
- `)}return o};function MCe(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||MCe(o,t)}}function dle(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==Cd.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Ms=Cd||(Cd={}))[Ms.ELEMENT_NODE=1]="ELEMENT_NODE",Ms[Ms.TEXT_NODE=3]="TEXT_NODE",Ms[Ms.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Ms[Ms.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Ms[Ms.COMMENT_NODE=8]="COMMENT_NODE",Ms[Ms.DOCUMENT_NODE=9]="DOCUMENT_NODE",Ms[Ms.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Ms[Ms.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var lz=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),g3=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Sw=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Txt=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),_xt=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),uz=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Ew=!_xt&&!Txt&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",kt={getWindow:function(e){var t=DCe.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=P8.get(t);return n||(n=new Yse,P8.set(t,n)),n},setNewKey:function(e){var t=new Yse;P8.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=vb.get(r);if(o==null){if(Je.isEditor(r))return n;break}var i=$A.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=kt.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return vb.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=kt.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[kt.findPath(e,t)[0]];return Xn.get(e,n)},toDOMNode:function(e,t){var n;if(Je.isEditor(t))n=FG.get(e);else{var r=kt.findKey(e,t);n=az.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=kt.toDOMNode(e,e);try{r=wc(t)?t:t.parentElement}catch(s){if(!s.message.includes('Permission denied to access property "nodeType"'))throw s}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=pn.isBackward(t),i=kt.toDOMPoint(e,n),a=pn.isCollapsed(t)?i:kt.toDOMPoint(e,r),s=kt.getWindow(e).document.createRange(),l=$o(o?a:i,2),u=l[0],d=l[1],c=$o(o?i:a,2),f=c[0],p=c[1],v=!!(wc(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),h=!!(wc(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,v?1:d),s.setEnd(f,h?1:p),s},toDOMPoint:function(e,t){var n,r,o,i=$o(Je.node(e,t.path),1)[0],a=kt.toDOMNode(e,i);Je.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var u=Uu(s),d=u.next();!d.done;d=u.next()){var c=d.value,f=c.childNodes[0];if(f!=null&&f.textContent!=null){var p=f.textContent.length,v=c.getAttribute("data-slate-length"),h=l+(v==null?p:parseInt(v,10));if(t.offset<=h){o=[f,Math.min(p,Math.max(0,t.offset-l))];break}l=h}}}catch(g){n={error:g}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=wc(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?rT.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=kt.toSlateNode(e,t.target),s=kt.findPath(e,a);if(Je.isVoid(e,a)){var l=o.getBoundingClientRect(),u=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,d=Je.point(e,s,{edge:u?"start":"end"}),c=u?Je.before(e,d):Je.after(e,d);if(c)return Je.range(e,c)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)i=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((i=f.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return kt.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,s,l=n.exactMatch,u=n.suppressThrow;if((cle(t)?t.anchorNode:t.startContainer)&&(cle(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=uz&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var d=kt.toSlatePoint(e,[r,o],{exactMatch:l,suppressThrow:u});if(!d)return null;var c=s?d:kt.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:u});if(!c)return null;var f={anchor:d,focus:c};return pn.isExpanded(f)&&pn.isForward(f)&&wc(i)&&Je.void(e,{at:f.focus,mode:"highest"})&&(f=Je.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=$o(o?t:(function(m){var b,w=$o(m,2),A=w[0],S=w[1];if(wc(A)&&A.childNodes.length){var E=S===A.childNodes.length,D=E?S-1:S;for(A=(b=$o(OCe(A,D,E?"backward":"forward"),2))[0],E=(D=b[1])<S;wc(A)&&A.childNodes.length;){var _=E?A.childNodes.length-1:0;A=Ext(A,_,E?"backward":"forward")}S=E&&A.textContent!=null?A.textContent.length:0}return[A,S]})(t),2),s=a[0],l=a[1],u=s.parentNode,d=null,c=0;if(u){var f=u.closest('[data-slate-void="true"]'),p=u.closest("[data-slate-leaf]"),v=null;if(p){d=p.closest('[data-slate-node="text"]');var h=kt.getWindow(e).document.createRange();h.setStart(d,0),h.setEnd(s,l);var g=h.cloneContents();ez(ez([],$o(Cae(g.querySelectorAll("[data-slate-zero-width]")))),$o(Cae(g.querySelectorAll("[contenteditable=false]")))).forEach((function(m){m.parentNode.removeChild(m)})),c=g.textContent.length,v=d}else f&&((p=f.querySelector("[data-slate-leaf]"))?(d=p.closest('[data-slate-node="text"]'),c=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach((function(m){c-=m.textContent.length}))):c=1);v&&c===v.textContent.length&&(u.hasAttribute("data-slate-zero-width")||g3&&(!((r=v.textContent)===null||r===void 0)&&r.endsWith(`
- `)))&&c--}if(!d){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=kt.toSlateNode(e,d);return{path:kt.findPath(e,y),offset:c}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Je.hasPath(e,n.path)&&Je.hasPath(e,r.path)},getNodeType:function(e){return Mr.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(t){return Xn.string(t)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Je.nodes(e,{universal:!0});try{for(var i=Uu(o),a=i.next();!a.done;a=i.next()){var s=$o(a.value,1)[0];Mr.isElement(s)&&r.push(s)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=$o(Je.nodes(e,{match:function(i){return n.checkNodeType(i,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=$o(Je.nodes(e,{match:function(r){return cr.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=$o(Je.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&$o(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Je.isEnd(e,n.anchor,t)||Je.isEnd(e,n.focus,t))},getTextarea:function(e){var t=nz.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return D7.get(e)||null},getHoverbar:function(e){return nT.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=kt.getTextarea(e).$textArea,a=i?.[0].childNodes;if(a)try{for(var s=Uu(Array.from(a)),l=s.next();!l.done;l=s.next()){var u=l.value;if(u.nodeType!==3)break;u.remove()}}catch(h){t={error:h}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var d=Je.nodes(e,{match:function(h){return!(!Mr.isElement(h)||e.isInline(h))},universal:!0});try{for(var c=Uu(d),f=c.next();!f.done;f=c.next()){var p=f.value;if(p!=null){var v=p[0];MCe(kt.toDOMNode(e,v),(function(h,g){var y=Pt(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(h)}))}}}catch(h){r={error:h}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Je.nodes(e,{match:function(s){return e.isVoid(s)}}),o=0;try{for(var i=Uu(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||pn.isExpanded(t))return!1;var n=kt.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=Je.node(e,t);if(n==null)return!1;var r=$o(n,1)[0].children;return r.length===1&&r[0].text===""}},Dxt=1,PCe={},jA={},Ixt=o2.filter,Oxt=E7("filter");Ji({target:"Array",proto:!0,forced:!Oxt},{filter:function(e){return Ixt(this,e,arguments.length>1?arguments[1]:void 0)}});var cz=`
- \v\f\r \u2028\u2029\uFEFF`,fle=Br("".replace),iT="["+cz+"]",Mxt=RegExp("^"+iT+iT+"*"),Pxt=RegExp(iT+iT+"*$"),Nxt=function(e){return function(t){var n=bi(sc(t));return 1&e&&(n=fle(n,Mxt,"")),2&e&&(n=fle(n,Pxt,"")),n}},Rxt={trim:Nxt(3)},Bxt=n2.PROPER,Lxt=Rxt.trim;Ji({target:"String",proto:!0,forced:(function(e){return ti((function(){return!!cz[e]()||"
"[e]()!=="
"||Bxt&&cz[e].name!==e}))})("trim")},{trim:function(){return Lxt(this)}});var dz=[],NCe={};function Fxt(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var HA,Jm,ple,NP,aT=Yn.Promise,hle=ia("species"),zG=function(e){var t=Cm(e),n=rd.f;us&&t&&!t[hle]&&n(t,hle,{configurable:!0,get:function(){return this}})},Uxt=Yn.TypeError,zxt=ia("species"),RCe=function(e,t){var n,r=Ma(e).constructor;return r===void 0||(n=Ma(r)[zxt])==null?t:(function(o){if(x7(o))return o;throw Uxt(m7(o)+" is not a constructor")})(n)},BCe=Br([].slice),LCe=/(?:ipad|iphone|ipod).*applewebkit/i.test(gy),Uh=Rc(Yn.process)=="process",fz=Yn.setImmediate,gle=Yn.clearImmediate,$xt=Yn.process,RP=Yn.Dispatch,jxt=Yn.Function,vle=Yn.MessageChannel,Hxt=Yn.String,BP=0,v3={};try{HA=Yn.location}catch{}var $G=function(e){if(Ia(v3,e)){var t=v3[e];delete v3[e],t()}},LP=function(e){return function(){$G(e)}},mle=function(e){$G(e.data)},yle=function(e){Yn.postMessage(Hxt(e),HA.protocol+"//"+HA.host)};fz&&gle||(fz=function(e){var t=BCe(arguments,1);return v3[++BP]=function(){PG(hi(e)?e:jxt(e),void 0,t)},Jm(BP),BP},gle=function(e){delete v3[e]},Uh?Jm=function(e){$xt.nextTick(LP(e))}:RP&&RP.now?Jm=function(e){RP.now(LP(e))}:vle&&!LCe?(NP=(ple=new vle).port2,ple.port1.onmessage=mle,Jm=Qv(NP.postMessage,NP)):Yn.addEventListener&&hi(Yn.postMessage)&&!Yn.importScripts&&HA&&HA.protocol!=="file:"&&!ti(yle)?(Jm=yle,Yn.addEventListener("message",mle,!1)):Jm="onreadystatechange"in NA("script")?function(e){WU.appendChild(NA("script")).onreadystatechange=function(){WU.removeChild(this),$G(e)}}:function(e){setTimeout(LP(e),0)});var kw,Rg,m3,R1,FP,UP,zP,ble,FCe={set:fz},Wxt=/ipad|iphone|ipod/i.test(gy)&&Yn.Pebble!==void 0,Vxt=/web0s(?!.*chrome)/i.test(gy),qxt=CC.f,$P=FCe.set,wle=Yn.MutationObserver||Yn.WebKitMutationObserver,Ale=Yn.document,Cle=Yn.process,x6=Yn.Promise,xle=qxt(Yn,"queueMicrotask"),UCe=xle&&xle.value;UCe||(kw=function(){var e,t;for(Uh&&(e=Cle.domain)&&e.exit();Rg;){t=Rg.fn,Rg=Rg.next;try{t()}catch(n){throw Rg?R1():m3=void 0,n}}m3=void 0,e&&e.enter()},LCe||Uh||Vxt||!wle||!Ale?!Wxt&&x6&&x6.resolve?((zP=x6.resolve(void 0)).constructor=x6,ble=Qv(zP.then,zP),R1=function(){ble(kw)}):Uh?R1=function(){Cle.nextTick(kw)}:($P=Qv($P,Yn),R1=function(){$P(kw)}):(FP=!0,UP=Ale.createTextNode(""),new wle(kw).observe(UP,{characterData:!0}),R1=function(){UP.data=FP=!FP}));var jP,Sle,zCe,Ele,$Ce=UCe||function(e){var t={fn:e,next:void 0};m3&&(m3.next=t),Rg||(Rg=t,R1()),m3=t},Gxt=function(e){var t,n;this.promise=new e((function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o})),this.resolve=w0(t),this.reject=w0(n)},jG={f:function(e){return new Gxt(e)}},pz=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Kxt=typeof window=="object",jCe=FCe.set,Yxt=ia("species"),yd="Promise",kle=qs.getterFor(yd),Qxt=qs.set,Zxt=qs.getterFor(yd),Sg=aT&&aT.prototype,Dd=aT,Tw=Sg,HCe=Yn.TypeError,hz=Yn.document,HG=Yn.process,my=jG.f,Xxt=my,Jxt=!!(hz&&hz.createEvent&&Yn.dispatchEvent),WCe=hi(Yn.PromiseRejectionEvent),VCe=!1,y3=BA(yd,(function(){var e=b7(Dd),t=e!==String(Dd);if(!t&&PA===66)return!0;if(PA>=51&&/native code/.test(e))return!1;var n=new Dd((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[Yxt]=r,!(VCe=n.then((function(){}))instanceof r)||!t&&Kxt&&!WCe})),e6t=y3||!kG((function(e){Dd.all(e).catch((function(){}))})),qCe=function(e){var t;return!(!Fi(e)||!hi(t=e.then))&&t},WG=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;$Ce((function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,s,l,u=n[i++],d=o?u.ok:u.fail,c=u.resolve,f=u.reject,p=u.domain;try{d?(o||(e.rejection===2&&n6t(e),e.rejection=1),d===!0?a=r:(p&&p.enter(),a=d(r),p&&(p.exit(),l=!0)),a===u.promise?f(HCe("Promise-chain cycle")):(s=qCe(a))?Ko(s,a,c,f):c(a)):f(r)}catch(v){p&&!l&&p.exit(),f(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&t6t(e)}))}},GCe=function(e,t,n){var r,o;Jxt?((r=hz.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Yn.dispatchEvent(r)):r={promise:t,reason:n},!WCe&&(o=Yn["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var s=Yn.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,a))})("Unhandled promise rejection",n)},t6t=function(e){Ko(jCe,Yn,(function(){var t,n=e.facade,r=e.value;if(Tle(e)&&(t=pz((function(){Uh?HG.emit("unhandledRejection",r,n):GCe("unhandledrejection",n,r)})),e.rejection=Uh||Tle(e)?2:1,t.error))throw t.value}))},Tle=function(e){return e.rejection!==1&&!e.parent},n6t=function(e){Ko(jCe,Yn,(function(){var t=e.facade;Uh?HG.emit("rejectionHandled",t):GCe("rejectionhandled",t,e.value)}))},q1=function(e,t,n){return function(r){e(t,r,n)}},yy=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,WG(e,!0))},gz=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw HCe("Promise can't be resolved itself");var r=qCe(t);r?$Ce((function(){var o={done:!1};try{Ko(r,t,q1(gz,o,e),q1(yy,o,e))}catch(i){yy(o,i,e)}})):(e.value=t,e.state=1,WG(e,!1))}catch(o){yy({done:!1},o,e)}}};if(y3&&(Tw=(Dd=function(e){_7(this,Tw),w0(e),Ko(jP,this);var t=kle(this);try{e(q1(gz,t),q1(yy,t))}catch(n){yy(t,n)}}).prototype,(jP=function(e){Qxt(this,{type:yd,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=gb(Tw,{then:function(e,t){var n=Zxt(this),r=n.reactions,o=my(RCe(this,Dd));return o.ok=!hi(e)||e,o.fail=hi(t)&&t,o.domain=Uh?HG.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&WG(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Sle=function(){var e=new jP,t=kle(e);this.promise=e,this.resolve=q1(gz,t),this.reject=q1(yy,t)},jG.f=my=function(e){return e===Dd||e===zCe?new Sle(e):Xxt(e)},hi(aT)&&Sg!==Object.prototype)){Ele=Sg.then,VCe||($l(Sg,"then",(function(e,t){var n=this;return new Dd((function(r,o){Ko(Ele,n,r,o)})).then(e,t)}),{unsafe:!0}),$l(Sg,"catch",Tw.catch,{unsafe:!0}));try{delete Sg.constructor}catch{}hb&&hb(Sg,Tw)}Ji({global:!0,wrap:!0,forced:y3},{Promise:Dd}),eT(Dd,yd,!1),zG(yd),zCe=Cm(yd),Ji({target:yd,stat:!0,forced:y3},{reject:function(e){var t=my(this);return Ko(t.reject,void 0,e),t.promise}}),Ji({target:yd,stat:!0,forced:y3},{resolve:function(e){return(function(t,n){if(Ma(t),Fi(n)&&n.constructor===t)return n;var r=jG.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),Ji({target:yd,stat:!0,forced:e6t},{all:function(e){var t=this,n=my(t),r=n.resolve,o=n.reject,i=pz((function(){var a=w0(t.resolve),s=[],l=0,u=1;zA(e,(function(d){var c=l++,f=!1;u++,Ko(a,t,d).then((function(p){f||(f=!0,s[c]=p,--u||r(s))}),o)})),--u||r(s)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=my(t),r=n.reject,o=pz((function(){var i=w0(t.resolve);zA(e,(function(a){Ko(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var e1=k7.UNSUPPORTED_Y,r6t=Math.min,KCe=[].push,o6t=Br(/./.exec),t1=Br(KCe),_w=Br("".slice);function lc(e){Promise.resolve().then(e)}function YCe(e,t){return Mr.isElement(e)?(function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,s=a===void 0?[]:a,l=Je.isVoid(r,n),u="";l||(u=s.map((function(y){return YCe(y,r)})).join(""));var d=(function(y){return NCe[y]||Fxt})(i),c=d(n,u,r),f="";if(f=typeof c=="string"?c:c.html||"",l||dz.forEach((function(y){return f=y(n,f)})),typeof c=="string")return f;var p=c.prefix,v=p===void 0?"":p,h=c.suffix,g=h===void 0?"":h;return v&&(f=v+f),g&&(f+=g),f})(e,t):(function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=(function(l){return l.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")})(i);var a=kt.getParentsNodes(r,n).some((function(l){return kt.getNodeType(l)==="pre"}));if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var s=kt.getParentNode(null,n);if(!s||s.children.length!==0)return i;i="<br>"}return dz.forEach((function(l){return i=l(n,i)})),i})(e,t)}function QCe(e){return"w-e-element-"+e}NG("split",(function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=bi(sc(this)),s=i===void 0?4294967295:i>>>0;if(s===0)return[];if(o===void 0)return[a];if(!CG(o))return Ko(t,a,o,s);for(var l,u,d,c=[],f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,f+"g");(l=Ko(FA,v,a))&&!((u=v.lastIndex)>p&&(t1(c,_w(a,p,l.index)),l.length>1&&l.index<a.length&&PG(KCe,c,tz(l,1)),d=l[0].length,p=u,c.length>=s));)v.lastIndex===l.index&&v.lastIndex++;return p===a.length?!d&&o6t(v,"")||t1(c,""):t1(c,_w(a,p)),c.length>s?tz(c,0,s):c}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ko(t,this,o,i)}:t,[function(o,i){var a=sc(this),s=o==null?void 0:Yv(o,e);return s?Ko(s,o,a,i):Ko(r,bi(a),o,i)},function(o,i){var a=Ma(this),s=bi(o),l=n(r,a,s,i,r!==t);if(l.done)return l.value;var u=RCe(a,RegExp),d=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(e1?"g":"y"),f=new u(e1?"^(?:"+a.source+")":a,c),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return UA(f,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){f.lastIndex=e1?0:h;var y,m=UA(f,e1?_w(s,h):s);if(m===null||(y=r6t(r2(f.lastIndex+(e1?h:0)),s.length))===v)h=RG(s,h,d);else{if(t1(g,_w(s,v,h)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(t1(g,m[b]),g.length===p)return g;h=v=y}}return t1(g,_w(s,v)),g}]}),!!ti((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),e1);var _le=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Dle=function(e,t,n){var r=kt.toDOMRange(e,t).getBoundingClientRect(),o=kt.toDOMRange(e,n).getBoundingClientRect();return _le(r,o)&&_le(o,r)},ZCe=["span","b","strong","i","em","s","strike","u","font","sub","sup"],XCe=[],VG=[],sT={},i6t=rd.f,a6t=RA.f,s6t=qs.enforce,l6t=ia("match"),Ff=Yn.RegExp,B1=Ff.prototype,u6t=Yn.SyntaxError,c6t=Br(AG),d6t=Br(B1.exec),S6=Br("".charAt),Ile=Br("".replace),Ole=Br("".indexOf),f6t=Br("".slice),p6t=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,dv=/a/g,HP=/a/g,h6t=new Ff(dv)!==dv,JCe=k7.MISSED_STICKY,g6t=k7.UNSUPPORTED_Y,v6t=us&&(!h6t||JCe||IG||OG||ti((function(){return HP[l6t]=!1,Ff(dv)!=dv||Ff(HP)==HP||Ff(dv,"i")!="/a/i"})));if(BA("RegExp",v6t)){for(var Gp=function(e,t){var n,r,o,i,a,s,l=Kv(B1,this),u=CG(e),d=t===void 0,c=[],f=e;if(!l&&u&&d&&e.constructor===Gp)return e;if((u||Kv(B1,e))&&(e=e.source,d&&(t="flags"in f?f.flags:c6t(f))),e=e===void 0?"":bi(e),t=t===void 0?"":bi(t),f=e,IG&&"dotAll"in dv&&(r=!!t&&Ole(t,"s")>-1)&&(t=Ile(t,/s/g,"")),n=t,JCe&&"sticky"in dv&&(o=!!t&&Ole(t,"y")>-1)&&g6t&&(t=Ile(t,/y/g,"")),OG&&(i=(function(p){for(var v,h=p.length,g=0,y="",m=[],b={},w=!1,A=!1,S=0,E="";g<=h;g++){if((v=S6(p,g))==="\\")v+=S6(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":d6t(p6t,f6t(p,g+1))&&(g+=2,A=!0),y+=v,S++;continue;case(v===">"&&A):if(E===""||Ia(b,E))throw new u6t("Invalid capture group name");b[E]=!0,m[m.length]=[E,S],A=!1,E="";continue}A?E+=v:y+=v}return[y,m]})(e),e=i[0],c=i[1]),a=xCe(Ff(e,t),l?this:B1,Gp),(r||o||c.length)&&(s=s6t(a),r&&(s.dotAll=!0,s.raw=Gp((function(p){for(var v,h=p.length,g=0,y="",m=!1;g<=h;g++)(v=S6(p,g))!=="\\"?m||v!=="."?(v==="["?m=!0:v==="]"&&(m=!1),y+=v):y+="[\\s\\S]":y+=v+S6(p,++g);return y})(e),n)),o&&(s.sticky=!0),c.length&&(s.groups=c)),e!==f)try{Nc(a,"source",f===""?"(?:)":f)}catch{}return a},m6t=function(e){e in Gp||i6t(Gp,e,{configurable:!0,get:function(){return Ff[e]},set:function(t){Ff[e]=t}})},Mle=a6t(Ff),Ple=0;Mle.length>Ple;)m6t(Mle[Ple++]);B1.constructor=Gp,Gp.prototype=B1,$l(Yn,"RegExp",Gp)}zG("RegExp");var y6t=new RegExp(" ","g");function exe(e){return e.replace(y6t," ")}function Nle(e,t){var n=e.length;if(n){var r=e[n-1];if(cr.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+t,!0}}return!1}function b6t(e,t,n){return{type:"paragraph",children:[{text:Pt(e).text().replace(/\s+/gm," ")}]}}function WP(e,t){var n=(function(i,a){var s=[];if(i.attr("data-w-e-is-void")!=null)return s;var l=i[0].childNodes;return l.length===1&&l[0].nodeName==="BR"?(s.push({text:""}),s):(l.forEach((function(u){if(u.nodeType!==Cd.ELEMENT_NODE){if(u.nodeType===Cd.TEXT_NODE){var d=u.textContent||"";if(d.trim()===""&&d.indexOf(`
- `)>=0)return;d&&(d=exe(d),Nle(s,d)||s.push({text:d}))}}else{if(u.nodeName==="BR")return void(Nle(s,`
- `)||s.push({text:`
- `}));var c=qG(Pt(u),a);Array.isArray(c)?c.forEach((function(f){return s.push(f)})):s.push(c)}})),s)})(e,t),r=(function(i){for(var a in sT)if(i[0].matches(a))return sT[a];return b6t})(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(i){Je.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),VG.forEach((function(a){i=a(e[0],i,t)})))})),o}function VP(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var n=e[0].textContent||"";n=(function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')})(n);var r={text:n=exe(n)};return VG.forEach((function(o){r=o(e[0],r,t)})),r}function qG(e,t){XCe.forEach((function(r){var o=r.selector,i=r.preParseHtml;e[0].matches(o)&&(e=Pt(i(e[0])))}));var n=dle(e);return n==="span"?e.attr("data-w-e-type")?WP(e,t):VP(e,t):n==="code"?dle(e.parent())==="pre"?WP(e,t):VP(e,t):ZCe.includes(n)?VP(e,t):WP(e,t)}function txe(e,t,n){var r=Pt(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function Rle(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map((function(o){return"<p>"+o+"</p>"})).join(""));var r=Pt("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(o){var i=qG(Pt(o),e);Array.isArray(i)?i.forEach((function(a){return n.push(a)})):n.push(i)})),n}var w6t=rd.f,Ble=T7.fastKey,Lle=qs.set,qP=qs.getterFor,A6t={getConstructor:function(e,t,n,r){var o=e((function(u,d){_7(u,i),Lle(u,{type:t,index:S7(null),first:void 0,last:void 0,size:0}),us||(u.size=0),d!=null&&zA(d,u[r],{that:u,AS_ENTRIES:n})})),i=o.prototype,a=qP(t),s=function(u,d,c){var f,p,v=a(u),h=l(u,d);return h?h.value=c:(v.last=h={index:p=Ble(d,!0),key:d,value:c,previous:f=v.last,next:void 0,removed:!1},v.first||(v.first=h),f&&(f.next=h),us?v.size++:u.size++,p!=="F"&&(v.index[p]=h)),u},l=function(u,d){var c,f=a(u),p=Ble(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return gb(i,{clear:function(){for(var u=a(this),d=u.index,c=u.first;c;)c.removed=!0,c.previous&&(c.previous=c.previous.next=void 0),delete d[c.index],c=c.next;u.first=u.last=void 0,us?u.size=0:this.size=0},delete:function(u){var d=this,c=a(d),f=l(d,u);if(f){var p=f.next,v=f.previous;delete c.index[f.index],f.removed=!0,v&&(v.next=p),p&&(p.previous=v),c.first==f&&(c.first=p),c.last==f&&(c.last=v),us?c.size--:d.size--}return!!f},forEach:function(u){for(var d,c=a(this),f=Qv(u,arguments.length>1?arguments[1]:void 0);d=d?d.next:c.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),gb(i,n?{get:function(u){var d=l(this,u);return d&&d.value},set:function(u,d){return s(this,u===0?0:u,d)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),us&&w6t(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=qP(t),i=qP(r);_G(e,t,(function(a,s){Lle(this,{type:r,target:a,state:o(a),kind:s,last:void 0})}),(function(){for(var a=i(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return a.target&&(a.last=l=l?l.next:a.state.first)?s=="keys"?{value:l.key,done:!1}:s=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),zG(t)}};SCe("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),A6t);var Fle=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Ule(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):nn.insertNodes(e,t,{mode:"highest"})}var C6t=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var i=$o(pn.edges(o),2),a=i[0],s=i[1],l=Je.void(t,{at:a.path}),u=Je.void(t,{at:s.path});if(!pn.isCollapsed(o)||l){var d=kt.toDOMRange(t,o),c=d.cloneContents(),f=c.childNodes[0];if(c.childNodes.forEach((function(A){A.textContent&&A.textContent.trim()!==""&&(f=A)})),u){var p=$o(u,1)[0],v=d.cloneRange(),h=kt.toDOMNode(t,p);v.setEndAfter(h),c=v.cloneContents()}if(l&&(f=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((function(A){var S=A.getAttribute("data-slate-zero-width")==="n";A.textContent=S?`
- `:""})),ICe(f)){var g=f.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(f),c.appendChild(g),f=g}var y=t.getFragment(),m=JSON.stringify(y),b=window.btoa(encodeURIComponent(m));f.setAttribute("data-slate-fragment",b),r.setData("application/x-slate-fragment",b);var w=c.ownerDocument.createElement("div");return w.appendChild(c),w.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",kxt(w)),c.ownerDocument.body.removeChild(w),r}}},t.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var s=decodeURIComponent(window.atob(a)),l=JSON.parse(s);t.insertFragment(l)}else{var u=r.getData("text/plain"),d=r.getData("text/html");if(d)t.dangerouslyInsertHtml(d);else if(u){var c=u.split(/\r\n|\r|\n/),f=!1;try{for(var p=Uu(c),v=p.next();!v.done;v=p.next()){var h=v.value;f&&nn.splitNodes(t,{always:!0}),n(h),f=!0}}catch(g){o={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},t},P4=function(e){return e!=null},x6t={object:!0,function:!0,undefined:!0},S6t=/^\s*class[\s{/}]/,E6t=Function.prototype.toString,zle=function(e){return!!(function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!(function(n){if(!(function(r){return!!P4(r)&&hasOwnProperty.call(x6t,typeof r)})(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}})(t)})(e)&&!S6t.test(E6t.call(e))},GG=function(e){return e!=null},k6t=Object.keys,T6t=(function(){try{return Object.keys("primitive"),!0}catch{return!1}})()?Object.keys:function(e){return k6t(GG(e)?Object(e):e)},_6t=function(e){if(!GG(e))throw new TypeError("Cannot use null or undefined");return e},D6t=Math.max,$le=(function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")})()?Object.assign:function(e,t){var n,r,o,i=D6t(arguments.length,2);for(e=Object(_6t(e)),o=function(a){try{e[a]=t[a]}catch(s){n||(n=s)}},r=1;r<i;++r)T6t(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},I6t=Array.prototype.forEach,O6t=Object.create,M6t=function(e,t){var n;for(n in e)t[n]=e[n]},jle=function(e){var t=O6t(null);return I6t.call(arguments,(function(n){GG(n)&&M6t(Object(n),t)})),t},GP="razdwatrzy",P6t=String.prototype.indexOf,Dw=typeof GP.contains=="function"&&GP.contains("dwa")===!0&&GP.contains("foo")===!1?String.prototype.contains:function(e){return P6t.call(this,e,arguments[1])>-1},E6=wC((function(e){var t=e.exports=function(n,r){var o,i,a,s,l;return arguments.length<2||typeof n!="string"?(s=r,r=n,n=null):s=arguments[2],P4(n)?(o=Dw.call(n,"c"),i=Dw.call(n,"e"),a=Dw.call(n,"w")):(o=a=!0,i=!1),l={value:r,configurable:o,enumerable:i,writable:a},s?$le(jle(s),l):l};t.gs=function(n,r,o){var i,a,s,l;return typeof n!="string"?(s=o,o=r,r=n,n=null):s=arguments[3],P4(r)?zle(r)?P4(o)?zle(o)||(s=o,o=void 0):o=void 0:(s=r,r=o=void 0):r=void 0,P4(n)?(i=Dw.call(n,"c"),a=Dw.call(n,"e")):(i=!0,a=!1),l={get:r,set:o,configurable:i,enumerable:a},s?$le(jle(s),l):l}})),KP=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},N6t=wC((function(e,t){var n,r,o,i,a,s,l,u=Function.prototype.apply,d=Function.prototype.call,c=Object.create,f=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};n=function(g,y){var m;return KP(y),v.call(this,"__ee__")?m=this.__ee__:(m=h.value=c(null),f(this,"__ee__",h),h.value=null),m[g]?typeof m[g]=="object"?m[g].push(y):m[g]=[m[g],y]:m[g]=y,this},r=function(g,y){var m,b;return KP(y),b=this,n.call(this,g,m=function(){o.call(b,g,m),u.call(y,this,arguments)}),m.__eeOnceListener__=y,this},o=function(g,y){var m,b,w,A;if(KP(y),!v.call(this,"__ee__"))return this;if(!(m=this.__ee__)[g])return this;if(typeof(b=m[g])=="object")for(A=0;w=b[A];++A)w!==y&&w.__eeOnceListener__!==y||(b.length===2?m[g]=b[A?0:1]:b.splice(A,1));else b!==y&&b.__eeOnceListener__!==y||delete m[g];return this},i=function(g){var y,m,b,w,A;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(m=arguments.length,A=new Array(m-1),y=1;y<m;++y)A[y-1]=arguments[y];for(w=w.slice(),y=0;b=w[y];++y)u.call(b,this,A)}else switch(arguments.length){case 1:d.call(w,this);break;case 2:d.call(w,this,arguments[1]);break;case 3:d.call(w,this,arguments[1],arguments[2]);break;default:for(m=arguments.length,A=new Array(m-1),y=1;y<m;++y)A[y-1]=arguments[y];u.call(w,this,A)}},a={on:n,once:r,off:o,emit:i},s={on:E6(n),once:E6(r),off:E6(o),emit:E6(i)},l=p({},s),e.exports=t=function(g){return g==null?c(l):p(Object(g),s)},t.methods=a}));function k6(e){var t=lle.get(e);return t==null&&(t=N6t(),lle.set(e,t)),t}var lT=new WeakMap;function Hle(e,t){var n=lT.get(e);n==null&&(n=new Set,lT.set(e,n)),n.add(t)}function R6t(e){return lT.get(e)||new Set}function B6t(e){lT.set(e,new Set)}function KG(e){var t=kt.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function YG(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=KG(e);if(r==null)return t;var o=r.top,i=r.left,a=r.width,s=r.height,l=kt.toDOMRange(e,n).getClientRects()[0];if(l==null)return t;l.width;var u=l.height,d={},c=l.top-o,f=l.left-i;if(f>a/2){var p=a-f;d.right=p+5+"px"}else d.left=f+5+"px";if(c>s/2){var v=s-c;d.bottom=v+5+"px"}else{var h=c+u;h<0&&(h=0),d.top=h+5+"px"}return d}function QG(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var o=Mr.isElement(t)&&e.isVoid(t),i=Mr.isElement(t)&&e.isInline(t),a=oT.get(t);if(a==null)return r;var s=a.getBoundingClientRect(),l=s.top,u=s.left,d=s.height,c=s.width;if(o){var f=(function(E){var D=[];D.push(E);for(var _=0;D.length>0;){var M=D.pop();if(M==null||++_>1e4)break;var O=M.nodeName;if(M.nodeType===1){var k=O.toLowerCase();if(Sxt.includes(k)||k==="iframe"||k==="video")return M;var R=M.children||[],N=R.length;if(N)for(var W=N-1;W>=0;W--)D.push(R[W])}}return null})(a);if(f!=null){var p=f.getBoundingClientRect();l=p.top,d=p.height}}var v=KG(e);if(v==null)return r;var h,g=v.top,y=v.left,m=v.width,b=v.height,w={},A=l-g,S=u-y;if(n==="bar")return w.left=S+"px",A>40?w.bottom=b-A+5+"px":w.top=A+d+5+"px",w;if(n==="modal")return o?i?S>(m-c)/2?w.right=m-S+5+"px":w.left=S+c+5+"px":w.left="20px":w.left=S+"px",o?((h=A)<0&&(h=0),w.top=h+"px"):A>(b-d)/2?w.bottom=b-A+5+"px":((h=A+d)<0&&(h=0),w.top=h+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function vz(e,t){lc((function(){var n=KG(e);if(n!=null){var r,o=n.top,i=n.left,a=n.width,s=n.height,l=t.offset(),u=l.top,d=l.left,c=t.width(),f=t.height(),p=u-o,v=d-i,h=t.attr("style");if(h.indexOf("top")>=0&&(r=p+f-s)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(h.indexOf("bottom")>=0&&u<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(u);t.css("bottom",b+"px")}if(h.indexOf("left")>=0&&(r=v+c-a)>0){var w=t.css("left"),A=parseInt(w.toString())-r;A<0&&(A=0),t.css("left",A+"px")}if(h.indexOf("right")>=0&&d<0){var S=t.css("right"),E=parseInt(S.toString())-Math.abs(d);t.css("right",E+"px")}}}))}var L6t=E7("slice"),F6t=ia("species"),YP=Yn.Array,U6t=Math.max;Ji({target:"Array",proto:!0,forced:!L6t},{slice:function(e,t){var n,r,o,i=z0(this),a=xm(i),s=fb(e,a),l=fb(t===void 0?a:t,a);if(Zk(i)&&(n=i.constructor,(x7(n)&&(n===YP||Zk(n.prototype))||Fi(n)&&(n=n[F6t])===null)&&(n=void 0),n===YP||n===void 0))return BCe(i,s,l);for(r=new(n===void 0?YP:n)(U6t(l-s,0)),o=0;s<l;s++,o++)s in i&&LA(r,o,i[s]);return r.length=o,r}});var z6t=CC.f,Wle=Br("".startsWith),$6t=Br("".slice),j6t=Math.min,nxe=SG("startsWith"),H6t=!nxe&&!!(function(){var e=z6t(String.prototype,"startsWith");return e&&!e.writable})();Ji({target:"String",proto:!0,forced:!H6t&&!nxe},{startsWith:function(e){var t=bi(sc(this));xG(e);var n=r2(j6t(arguments.length>1?arguments[1]:void 0,t.length)),r=bi(e);return Wle?Wle(t,r,n):$6t(t,n,n+r.length)===r}});var n1=Object.assign,Vle=Object.defineProperty,W6t=Br([].concat),qle=!n1||ti((function(){if(us&&n1({b:1},n1(Vle({},"a",{enumerable:!0,get:function(){Vle(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(o){t[o]=o})),n1({},e)[n]!=7||vy(n1({},t)).join("")!=r}))?function(e,t){for(var n=U0(e),r=arguments.length,o=1,i=fCe.f,a=uCe.f;r>o;)for(var s,l=C7(arguments[o++]),u=i?W6t(vy(l),i(l)):vy(l),d=u.length,c=0;d>c;)s=u[c++],us&&!Ko(a,l,s)||(n[s]=l[s]);return n}:n1;Ji({target:"Object",stat:!0,forced:Object.assign!==qle},{assign:qle});var V6t=["props","attrs","style","dataset","on","hook"];function rxe(e){var t=e.data,n=t===void 0?{}:t,r=e.children,o=r===void 0?[]:r;Object.keys(n).forEach((function(i){var a,s,l=n[i];if(i!=="key"){if(!V6t.includes(i)){if(i.startsWith("data-")){var u=i.slice(5);return u=g3t(u),(function(d,c){d.data==null&&(d.data={});var f=d.data;f.dataset==null&&(f.dataset={}),Object.assign(f.dataset,c)})(e,((a={})[u]=l,a)),void delete n[i]}(function(d,c){d.data==null&&(d.data={});var f=d.data;f.props==null&&(f.props={}),Object.assign(f.props,c)})(e,(s={},s[i]=l,s)),delete n[i]}}else e.key=l})),o.length>0&&o.forEach((function(i){typeof i!="string"&&rxe(i)}))}var mz=[],oxe={};function q6t(e,t,n){return ro(n.isInline(e)?"span":"div",null,t)}function Gle(e,t){return t===void 0&&(t=!1),ro("span",{"data-slate-string":!0},t?e+`
- `:e)}function QP(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),ro("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?ro("br",null):null)}function yz(e,t,n,r){return $A.set(e,t),vb.set(e,n),Mr.isElement(e)?(function(o,i){var a,s=kt.findKey(i,o),l=i.isInline(o),u=Je.isVoid(i,o),d=QCe(s.id),c={id:d,key:s.id,"data-slate-node":"element","data-slate-inline":l},f=o.type,p=o.children,v=p===void 0?[]:p,h=(function(A){return oxe[A]||q6t})(f);a=u?null:v.map((function(A,S){return yz(A,S,o,i)}));var g=h(o,a,i);if(u){c["data-slate-void"]=!0;var y=l?"span":"div",m=$o(Xn.texts(o),1),b=$o(m[0],1)[0],w=ro(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},yz(b,0,o,i));g=ro(y,{style:{position:"relative"}},g,w),$A.set(b,0),vb.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,c),u||l||(g=(function(A,S){var E=S;return mz.forEach((function(D){E=D(A,S)})),E})(o,g)),lc((function(){var A=sz(d);A!=null&&(az.set(s,A),oT.set(o,A),rT.set(A,o))})),g})(e,r):(function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var s=kt.findKey(a,o),l=a.getConfig().decorate;if(l==null)throw new Error("Can not get config.decorate");var u=kt.findPath(a,o),d=l([o,u]),c=cr.decorations(o,d),f=c.map((function(h,g){var y=(function(m,b,w,A,S){b===void 0&&(b=!1);var E=m.text,D=kt.findPath(S,w),_=qt.parent(D);if(Je.isEditor(A))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(A)?QP(Xn.string(A).length):E!==""||A.children[A.children.length-1]!==w||S.isInline(A)||Je.string(S,_)!==""?E===""?QP():b&&E.slice(-1)===`
- `?Gle(E,!0):Gle(E):QP(0,!0)})(h,g===c.length-1,o,i,a);return y=(function(m,b){var w=b;return mz.forEach((function(A){w=A(m,w)})),w})(h,y),ro("span",{"data-slate-leaf":!0},y)})),p=(function(h){return"w-e-text-"+h})(s.id),v=ro("span",{"data-slate-node":"text",id:p,key:s.id},f);return lc((function(){var h=sz(p);h!=null&&(az.set(s,h),oT.set(o,h),rT.set(h,o))})),v})(e,n,r)}function G6t(e,t){var n,r=e.$scroll,o=(function(h){return"w-e-textarea-"+h})(e.id),i=t.getConfig(),a=i.readOnly,s=i.autoFocus,l=(function(h,g){return g===void 0&&(g=!1),db("div#"+h,{props:{contentEditable:!g}})})(o,a),u=t.children||[];l.children=u.map((function(h,g){var y=yz(h,g,t,t);return rxe(y),y}));var d=ile.get(e);if(d==null&&(d=!0),d){var c=(function(h,g){return Pt(`<div
- id="`+h+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)})(o);r.append(c),e.$textArea=c,n=c[0],(p=L4t([U4t,H4t,V4t,z4t,j4t,F4t]))(n,l),ile.set(e,!1),ale.set(e,p)}else{var f=sle.get(e),p=ale.get(e);if(f==null||p==null)return;n=f.elm,p(f,l)}if(n!=null||(n=sz(o))!=null){if((d?s:t.isFocused())&&n.focus({preventScroll:!0}),d){var v=UG(n);v&&DCe.set(t,v)}FG.set(t,n),oT.set(t,n),rT.set(n,t),sle.set(e,l)}}function Kle(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Yle(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ZP(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Yle(n.overflowY,t)||Yle(n.overflowX,t)||(function(r){var o=(function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1}function T6(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}function Qle(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l=typeof a=="function"?a:function(Pe){return Pe!==a};if(!Kle(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,d=[],c=e;Kle(c)&&l(c);){if((c=c.parentElement)===u){d.push(c);break}c!=null&&c===document.body&&ZP(c)&&!ZP(document.documentElement)||c!=null&&ZP(c,s)&&d.push(c)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,w=g.right,A=g.bottom,S=g.left,E=o==="start"||o==="nearest"?b:o==="end"?A:b+y/2,D=i==="center"?S+m/2:i==="end"?w:S,_=[],M=0;M<d.length;M++){var O=d[M],k=O.getBoundingClientRect(),R=k.height,N=k.width,W=k.top,B=k.right,z=k.bottom,j=k.left;if(r==="if-needed"&&b>=0&&S>=0&&A<=p&&w<=f&&b>=W&&A<=z&&S>=j&&w<=B)return _;var q=getComputedStyle(O),Y=parseInt(q.borderLeftWidth,10),U=parseInt(q.borderTopWidth,10),F=parseInt(q.borderRightWidth,10),H=parseInt(q.borderBottomWidth,10),re=0,X=0,te="offsetWidth"in O?O.offsetWidth-O.clientWidth-Y-F:0,Z="offsetHeight"in O?O.offsetHeight-O.clientHeight-U-H:0;if(u===O)re=o==="start"?E:o==="end"?E-p:o==="nearest"?T6(h,h+p,p,U,H,h+E,h+E+y,y):E-p/2,X=i==="start"?D:i==="center"?D-f/2:i==="end"?D-f:T6(v,v+f,f,Y,F,v+D,v+D+m,m),re=Math.max(0,re+h),X=Math.max(0,X+v);else{re=o==="start"?E-W-U:o==="end"?E-z+H+Z:o==="nearest"?T6(W,z,R,U,H+Z,E,E+y,y):E-(W+R/2)+Z/2,X=i==="start"?D-j-Y:i==="center"?D-(j+N/2)+te/2:i==="end"?D-B+F+te:T6(j,B,N,Y,F+te,D,D+m,m);var le=O.scrollLeft,ve=O.scrollTop;E+=ve-(re=Math.max(0,Math.min(ve+re,O.scrollHeight-R+Z))),D+=le-(X=Math.max(0,Math.min(le+X,O.scrollWidth-N+te)))}_.push({el:O,top:re,left:X})}return _}function Zle(e){return e===Object(e)&&Object.keys(e).length!==0}function Pu(e,t){return Zv(t)&&kt.hasDOMNode(e,t,{editable:!0})}function Xle(e,t){if(e.getConfig().readOnly)return!1;var n=L1(e,t)&&kt.toSlateNode(e,t);return Je.isVoid(e,n)}function L1(e,t){return Zv(t)&&kt.hasDOMNode(e,t)}function ixe(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),i=kt.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a=i.type!=="None";if(r||a){var s=FG.get(t),l=!1;if(s.contains(i.anchorNode)&&s.contains(i.focusNode)&&(l=!0),a&&l&&r){var u=kt.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(u&&pn.equals(u,r)){var d=!0;if(pn.isCollapsed(r)){var c=i.anchorNode,f=i.anchorOffset;if(c===s){var p=s.childNodes,v=void 0;(v=p[f])&&v.matches("table")&&(d=!1),(v=p[f-1])&&v.matches("table")&&(d=!1)}}if(d)return}}if(!r||kt.hasRange(t,r)){e.isUpdatingSelection=!0;var h=r&&kt.toDOMRange(t,r);if(h){pn.isBackward(r)?i.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):i.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var g=h.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=h.getBoundingClientRect.bind(h);var y=document.body;(function(m,b){var w=!m.ownerDocument.documentElement.contains(m);if(Zle(b)&&typeof b.behavior=="function")return b.behavior(w?[]:Qle(m,b));if(!w){var A=(function(S){return S===!1?{block:"end",inline:"nearest"}:Zle(S)?S:{block:"start",inline:"nearest"}})(b);(function(S,E){E===void 0&&(E="auto");var D="scrollBehavior"in document.body.style;S.forEach((function(_){var M=_.el,O=_.top,k=_.left;M.scroll&&D?M.scroll({top:O,left:k,behavior:E}):(M.scrollTop=O,M.scrollLeft=k)}))})(Qle(m,A),A.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?s.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){h&&g3&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=kt.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var XP=new WeakMap,Jle=new WeakMap,K6t={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},Y6t={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Q6t={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Vi=function(e){var t=K6t[e],n=Y6t[e],r=Q6t[e],o=t&&ZM(t),i=n&&ZM(n),a=r&&ZM(r);return function(s){return!(!o||!o(s))||!!(lz&&i&&i(s))||!(lz||!a||!a(s))}},Qi={isBold:Vi("bold"),isCompose:Vi("compose"),isMoveBackward:Vi("moveBackward"),isMoveForward:Vi("moveForward"),isDeleteBackward:Vi("deleteBackward"),isDeleteForward:Vi("deleteForward"),isDeleteLineBackward:Vi("deleteLineBackward"),isDeleteLineForward:Vi("deleteLineForward"),isDeleteWordBackward:Vi("deleteWordBackward"),isDeleteWordForward:Vi("deleteWordForward"),isExtendBackward:Vi("extendBackward"),isExtendForward:Vi("extendForward"),isExtendLineBackward:Vi("extendLineBackward"),isExtendLineForward:Vi("extendLineForward"),isItalic:Vi("italic"),isMoveLineBackward:Vi("moveLineBackward"),isMoveLineForward:Vi("moveLineForward"),isMoveWordBackward:Vi("moveWordBackward"),isMoveWordForward:Vi("moveWordForward"),isRedo:Vi("redo"),isSplitBlock:Vi("splitBlock"),isTransposeCharacter:Vi("transposeCharacter"),isUndo:Vi("undo"),isTab:Vi("tab"),isSelectAll:Vi("selectAll")};function Ua(e){e.preventDefault()}var Z6t={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Ew&&!o&&Pu(n,r.target)){var i=n.selection,a=r.inputType,s=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var l=$o(r.getTargetRanges(),1)[0];if(l){var u=kt.toSlateRange(n,l,{exactMatch:!1,suppressThrow:!1});i&&pn.equals(i,u)||nn.select(n,u)}}if(i&&pn.isExpanded(i)&&a.startsWith("delete")){var d=a.endsWith("Backward")?"backward":"forward";Je.deleteFragment(n,{direction:d})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Je.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Je.deleteForward(n);break;case"deleteContentBackward":Je.deleteBackward(n);break;case"deleteEntireSoftLine":Je.deleteBackward(n,{unit:"line"}),Je.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Je.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Je.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Je.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Je.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Je.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Je.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Je.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!PP.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s=="string"&&Je.insertText(n,s)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&Pu(n,r.target)){var a=kt.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var s=r.relatedTarget;if(!(s===kt.toDOMNode(n,n)||wc(s)&&s.hasAttribute("data-slate-spacer"))){if(s!=null&&Zv(s)&&kt.hasDOMNode(n,s)){var l=kt.toSlateNode(n,s);if(Mr.isElement(l)&&!n.isVoid(l))return}if(Sw){var u=a.getSelection();u?.removeAllRanges()}cv.delete(n)}}}},focus:function(e,t,n){var r=kt.toDOMNode(n,n),o=kt.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,g3&&e.target!==r?r.focus():cv.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&L1(n,e.target)&&Zv(e.target)){var r=kt.toSlateNode(n,e.target),o=kt.findPath(n,r);if(Je.hasPath(n,o)&&Xn.get(n,o)===r){var i=Je.start(n,o),a=Je.end(n,o),s=Je.void(n,{at:i}),l=Je.void(n,{at:a});if(s&&l&&qt.equals(s[1],l[1])){var u=Je.range(n,i);nn.select(n,u)}}}},compositionstart:function(e,t,n){if(Pu(n,e.target)){var r=n.selection;if(r&&pn.isExpanded(r)&&(Je.deleteFragment(n),Promise.resolve().then((function(){ixe(t,n,!0)}))),r&&pn.isCollapsed(r)){var o=kt.toDOMRange(n,r).startContainer,i=o.textContent||"";XP.set(n,i),Jle.set(n,o)}t.isComposing=!0,(function(a,s){var l;s.getConfig().placeholder&&s.isEmpty()&&a.showPlaceholder&&((l=a.$placeholder)===null||l===void 0||l.hide(),a.showPlaceholder=!1)})(t,n)}},compositionend:function(e,t,n){var r=e;if(Pu(n,r.target)){t.isComposing=!1;var o=n.selection;if(o!=null){(uz||g3)&&kt.cleanExposedTexNodeInSelectionBlock(n);for(var i=pn.isBackward(o)?o.focus:o.anchor,a=$o(Je.node(n,[i.path[0]]),1)[0],s=0;s<i.path.length;s++){var l=$o(Je.node(n,i.path.slice(0,s+1)),1)[0];if(Mr.isElement(l)&&((Sw||g3)&&l.type==="link"||l.type==="code")){kt.setNewKey(a);break}}var u=r.data;if(u){if(n.getConfig().maxLength){var d=kt.getLeftLengthOfMaxLength(n);d<u.length?(kt.toDOMRange(n,o).startContainer.textContent=XP.get(n)||"",d>0&&Je.insertText(n,u.slice(0,d)),t.changeViewState()):Je.insertText(n,u)}else Je.insertText(n,u);Sw||setTimeout((function(){var c=n.selection;if(c!=null){var f=Jle.get(n);f!=null&&kt.toDOMRange(n,c).startContainer!==f&&(f.textContent=XP.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){Pu(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Pu(n,r.target)){if((function(a,s){var l=D7.get(a),u=l&&l.getMenus(),d=nT.get(a),c=d&&d.getMenus(),f=Fu(Fu({},u),c);for(var p in f){var v=f[p],h=v.hotkey;if(h&&y3t(h,s)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}})(n,r),Qi.isTab(r))return Ua(r),void n.handleTab();if(Qi.isRedo(r))return Ua(r),void(typeof n.redo=="function"&&n.redo());if(Qi.isUndo(r))return Ua(r),void(typeof n.undo=="function"&&n.undo());if(Qi.isMoveLineBackward(r))return Ua(r),void nn.move(n,{unit:"line",reverse:!0});if(Qi.isMoveLineForward(r))return Ua(r),void nn.move(n,{unit:"line"});if(Qi.isExtendLineBackward(r))return Ua(r),void nn.move(n,{unit:"line",edge:"focus",reverse:!0});if(Qi.isExtendLineForward(r))return Ua(r),void nn.move(n,{unit:"line",edge:"focus"});if(Qi.isMoveBackward(r))return Ua(r),void(o&&pn.isCollapsed(o)?nn.move(n,{reverse:!0}):nn.collapse(n,{edge:"start"}));if(Qi.isMoveForward(r))return Ua(r),void(o&&pn.isCollapsed(o)?nn.move(n):nn.collapse(n,{edge:"end"}));if(Qi.isMoveWordBackward(r))return Ua(r),o&&pn.isExpanded(o)&&nn.collapse(n,{edge:"focus"}),void nn.move(n,{unit:"word",reverse:!0});if(Qi.isMoveWordForward(r))return Ua(r),o&&pn.isExpanded(o)&&nn.collapse(n,{edge:"focus"}),void nn.move(n,{unit:"word"});if(Qi.isSelectAll(r))return Ua(r),void n.selectAll();if(Ew){if((uz||Sw)&&o&&(Qi.isDeleteBackward(r)||Qi.isDeleteForward(r))&&pn.isCollapsed(o)){var i=Xn.parent(n,o.anchor.path);if(Mr.isElement(i)&&Je.isVoid(n,i)&&Je.isInline(n,i))return r.preventDefault(),void nn.delete(n,{unit:"block"})}}else{if(Qi.isBold(r)||Qi.isItalic(r)||Qi.isTransposeCharacter(r))return void Ua(r);if(Qi.isSplitBlock(r))return Ua(r),void Je.insertBreak(n);if(Qi.isDeleteBackward(r))return Ua(r),void(o&&pn.isExpanded(o)?Je.deleteFragment(n,{direction:"backward"}):Je.deleteBackward(n));if(Qi.isDeleteForward(r))return Ua(r),void(o&&pn.isExpanded(o)?Je.deleteFragment(n,{direction:"forward"}):Je.deleteForward(n));if(Qi.isDeleteLineBackward(r))return Ua(r),void(o&&pn.isExpanded(o)?Je.deleteFragment(n,{direction:"backward"}):Je.deleteBackward(n,{unit:"line"}));if(Qi.isDeleteLineForward(r))return Ua(r),void(o&&pn.isExpanded(o)?Je.deleteFragment(n,{direction:"forward"}):Je.deleteForward(n,{unit:"line"}));if(Qi.isDeleteWordBackward(r))return Ua(r),void(o&&pn.isExpanded(o)?Je.deleteFragment(n,{direction:"backward"}):Je.deleteBackward(n,{unit:"word"}));if(Qi.isDeleteWordForward(r))return Ua(r),void(o&&pn.isExpanded(o)?Je.deleteFragment(n,{direction:"forward"}):Je.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Ew&&!n.getConfig().readOnly&&Pu(n,e.target)){e.preventDefault();var r=e.key;Je.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Pu(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&Pu(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(pn.isExpanded(o))Je.deleteFragment(n);else{var a=Xn.parent(n,o.anchor.path);Je.isVoid(n,a)&&nn.delete(n)}}},paste:function(e,t,n){PP.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Pu(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void PP.set(n,!1);if(!Ew||(function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1})(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(e,t,n){if(L1(n,e.target)){var r=kt.toSlateNode(n,e.target);Je.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(L1(n,r.target)&&!n.getConfig().readOnly){var o=kt.toSlateNode(n,r.target),i=kt.findPath(n,o);if(Je.isVoid(n,o)||Je.void(n,{at:i,voids:!0})){var a=Je.range(n,i);nn.select(n,a)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&L1(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&L1(n,r.target)&&o!=null&&!(Ew&&Sw&&o.files.length>0)){r.preventDefault();var i=n.selection,a=kt.findEventRange(n,r);nn.select(n,a),t.isDraggingInternally&&(i&&nn.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},X6t=1,J6t=(function(){function e(t){var n=this;this.id=X6t++,this.$textArea=null,this.$progressBar=Pt('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Pt('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Gv((function(){var a=n.editorInstance;(function(s,l){var u=s.isComposing,d=s.isUpdatingSelection,c=s.isDraggingInternally;if(!(l.getConfig().readOnly||u||d||c)){var f=kt.findDocumentOrShadowRoot(l),p=f.activeElement,v=kt.toDOMNode(l,l),h=f.getSelection();if(p===v?(s.latestElement=p,cv.set(l,!0)):cv.delete(l),!h)return nn.deselect(l);var g=h.anchorNode,y=h.focusNode,m=Pu(l,g)||Xle(l,g),b=Pu(l,y)||Xle(l,y);if(m&&b){var w=kt.toSlateRange(l,h,{exactMatch:!1,suppressThrow:!1});nn.select(l,w)}else nn.deselect(l)}})(n,a)}),100);var r=Pt(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var o=Pt('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=Pt('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,lc((function(){var a=n.editorInstance,s=kt.getWindow(a);s.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",(function(){s.document.removeEventListener("selectionchange",n.onDOMSelectionChange)})),o.on("click",(function(){return a.hidePanelOrModal()})),a.on("change",n.changeViewState.bind(n));var l=a.getConfig().onChange;l&&a.on("change",(function(){return l(a)})),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=rz.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(aG(Z6t,(function(i,a){n.on(a,(function(s){i(s,t,o)}))})),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Gv((function(){o.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",(function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout((function(){return i&&i(n)})):t.latestEditorSelection!=null&&n.selection==null&&setTimeout((function(){return o&&o(n)})),t.latestEditorSelection=n.selection}))},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-kt.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout((function(){n.hide(),n.css("width","0"),n.show()}),1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;G6t(this,n),(function(r,o){var i,a=o.getConfig().placeholder;if(a){var s=o.isEmpty();if(s&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var l=Pt('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(l),r.$placeholder=l}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!s&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}})(this,n),lc((function(){ixe(t,n)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e})();function ZG(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&ZG(t)}function XG(){return Pt('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function axe(){return Pt('<div class="w-e-bar-divider"></div>')}function sxe(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var i=lz?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+`
- `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}NG("match",(function(e,t,n){return[function(r){var o=sc(this),i=r==null?void 0:Yv(r,e);return i?Ko(i,r,o):new RegExp(r)[e](bi(o))},function(r){var o=Ma(this),i=bi(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return UA(o,i);var s=o.unicode;o.lastIndex=0;for(var l,u=[],d=0;(l=UA(o,i))!==null;){var c=bi(l[0]);u[d]=c,c===""&&(o.lastIndex=RG(i,r2(o.lastIndex),s)),d++}return d===0?null:u}]}));var JG=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=Pt('<div class="w-e-bar-item"></div>'),this.$button=Pt('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var s=n.title,l=n.hotkey,u=l===void 0?"":l,d=n.iconSvg,c=d===void 0?"":d,f=this.$button;if(c){var p=Pt(c);ZG(p),f.append(p)}else f.text(s);sxe(f,c,s,u,r),r&&c&&f.append(Pt('<span class="title">'+s+"</span>")),a&&f.css("width",a+"px"),f.attr("data-menu-key",t),this.$elem.append(f),lc((function(){return o.init()}))}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(n){n.preventDefault(),su(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())}))},e.prototype.exec=function(){var t=su(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=su(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=su(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e})(),eSt=(function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return i2(t,e),t.prototype.onButtonClick=function(){},t})(JG),eK=(function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=iz.get(t);n==null&&(n=new Set,iz.set(t,n)),n.add(this),M8.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=M8.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=M8.get(this);t&&t.emit("modalOrPanelHide")}},e})(),tSt=(function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=Pt('<div class="w-e-drop-panel"></div>'),r}return i2(t,e),t.prototype.genSelfElem=function(){return null},t})(eK),nSt=(function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=XG();i.$button.append(a)}return i}return i2(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=su(this);if(this.dropPanel==null){var o=new tSt(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var s=this.dropPanel;if(s.isShow){var l=this.$elem,u=l.offset().left,d=l.parents(".w-e-bar");u-d.offset().left>=d.width()/2?s.$elem.css({left:"none",right:"0"}):s.$elem.css({left:"0",right:"none"})}}},t})(JG),rSt=(function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=Pt('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",(function(a){return a.stopPropagation()})),i.on("keyup",(function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())})),o}return i2(t,e),t.prototype.genSelfElem=function(){var n=this,r=Pt('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=M8.get(this);return r.on("click",(function(){n.hide(),o?.restoreSelection()})),r},t.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},t})(eK);function hu(e,t,n){var r=Pt('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Pt('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function a2(e,t){var n=Pt('<div class="button-container"></div>'),r=Pt('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var oSt=(function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;return i.$body=Pt("body"),i.modal=null,i.menu=r,i}return i2(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=su(this),r=this.menu.getModalPositionNode(n);return Mr.isElement(r)?QG(n,r,"modal"):YG(n)},t.prototype.handleModal=function(){var n=su(this),r=this.menu;if(this.modal==null){var o=new rSt(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=su(this),i=this.menu;if(i.getModalContentElem!=null){var a=kt.getTextarea(o),s=kt.getToolbar(o),l=(s?.getConfig()||{}).modalAppendToBody,u=i.getModalContentElem(o);if(n.renderContent(u),l)n.setStyle({left:"0",right:"0"});else{var d=this.getPosition();n.setStyle(d)}r&&(l?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),l||vz(o,n.$elem),setTimeout((function(){o.blur()}))}},t})(JG),iSt=(function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="selectList",o.$elem=Pt('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",(function(i){i.stopPropagation()})),o}return i2(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=Pt("<ul></ul>");n.forEach((function(i){var a=i.value,s=i.text,l=i.selected,u=i.styleForRenderMenuList,d=Pt('<li data-value="'+a+'"></li>');if(u&&d.css(u),l){var c=Pt('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');d.append(c),d.addClass("selected")}d.append(Pt('<span data-value="'+a+'">'+s+"</span>")),d.attr("title",s),o.append(d)})),r.append(o)},t.prototype.genSelfElem=function(){return null},t})(eK),aSt=(function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=Pt('<div class="w-e-bar-item"></div>'),this.$button=Pt('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,s=n.width,l=n.iconSvg,u=l===void 0?"":l,d=n.hotkey,c=d===void 0?"":d;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var f=this.$button;s&&f.css("width",s+"px"),f.attr("data-menu-key",t),sxe(f,u,a,c,r),this.$elem.append(f),this.menu=n,lc((function(){return o.init()}))}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",(function(n){n.preventDefault(),su(t).hidePanelOrModal(),t.trigger()}))},e.prototype.trigger=function(){var t=this,n=su(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new iSt(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",(function(a){var s=a.target;if(s!=null){a.preventDefault();var l=Pt(s).attr("data-value");t.onChange(l)}}))}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var n=su(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=su(this),n=this.menu,r=n.getValue(t),o=(function(s,l){for(var u=s.length,d="",c=0;c<u;c++){var f=s[c];if(f.value===l){d=f.text;break}}return d})(n.getOptions(t),r.toString()),i=this.$button,a=XG();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=su(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e})(),eue=(function(){function e(t){this.$elem=Pt('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Pt('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Pt('<button type="button"></button>');var n=t.key,r=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(r){var s=Pt(r);ZG(s),a.append(s)}else a.text(o);a.attr("data-menu-key",n);var l=XG();a.append(l),i.append(a);var u=this.$container;i.append(u);var d=this.createObserver();this.observe(d)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,o=new MutationObserver((function(){var i=n.find("button"),a=i.length;if(a!==0){var s=0;i.each((function(l){Pt(l).hasClass("disabled")&&s++})),o.disconnect(),s===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(o)}}));return o},e})(),tue=new WeakMap;function su(e){var t=LG.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function lxe(e,t,n){n===void 0&&(n=!1);var r=tue.get(t);if(r)return r;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;r=i?new nSt(e,t,n):a?new oSt(e,t,n):new eSt(e,t,n)}if(o==="select"&&(r=new aSt(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return tue.set(t,r),r}function sSt(e,t){var n=e.selection;return n!=null&&!pn.isCollapsed(n)&&!kt.getSelectedElems(e).some((function(r){if(e.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0}))&&!!cr.isText(t)}var lSt=(function(){function e(){var t=this;this.$elem=Pt('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=F5e((function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,s=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&Mr.isElement(i)&&n&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(s),t.setPosition(i),t.show()),t.prevSelectedNode=i)}),200),lc((function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",(function(i){return i.preventDefault()}),{passive:!1}),kt.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;lc((function(){t.hoverbarItems.forEach((function(n){n.changeMenuState()}))}))},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach((function(o){if(o!=="|")n.registerSingleItem(o);else{var i=axe();r.append(i)}}))},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var i=jA[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),r[t]=o}var a=lxe(t,o);this.hoverbarItems.push(a),LG.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),Mr.isElement(t)){var o=QG(n,t,"bar");return r.css(o),void vz(n,r)}if(cr.isText(t))return o=YG(n),r.css(o),void vz(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(s){var l=n[s],u=l.match,d=l.menuKeys,c=d===void 0?[]:d,f=u||function(h,g){return kt.checkNodeType(g,s)},p=$o(Je.nodes(t,{match:function(h){return f(t,h)},universal:!0}),1),v=p[0];if(v!=null)return r=v[0],o=c,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=oz.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=sSt),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=kt.findPath(null,t),o=kt.findPath(null,n);return qt.equals(r,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e})();function uxe(e,t,n,r){if($A.set(e,t),vb.set(e,n),Mr.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach((function(s,l){return uxe(s,l,e,r)})),Je.isVoid(r,e)){var i=$o(Xn.texts(e),1),a=$o(i[0],1)[0];$A.set(a,0),vb.set(a,e)}}}function uSt(e){var t=e.selector,n=t===void 0?"":t,r=e.config,o=r===void 0?{}:r,i=e.content,a=e.html,s=e.plugins,l=s===void 0?[]:s,u=(y=>{var m=y,{apply:b}=m;return m.history={undos:[],redos:[]},m.redo=()=>{var{history:w}=m,{redos:A}=w;if(A.length>0){var S=A[A.length-1];V1.withoutSaving(m,(()=>{Je.withoutNormalizing(m,(()=>{for(var E of S)m.apply(E)}))})),w.redos.pop(),w.undos.push(S)}},m.undo=()=>{var{history:w}=m,{undos:A}=w;if(A.length>0){var S=A[A.length-1];V1.withoutSaving(m,(()=>{Je.withoutNormalizing(m,(()=>{var E=S.map(kh.inverse).reverse();for(var D of E)m.apply(D)}))})),w.redos.push(S),w.undos.pop()}},m.apply=w=>{var{operations:A,history:S}=m,{undos:E}=S,D=E[E.length-1],_=D&&D[D.length-1],M=((N,W)=>!(!W||N.type!=="set_selection"||W.type!=="set_selection"))(w,_),O=V1.isSaving(m),k=V1.isMerging(m);if(O==null&&(O=((N,W)=>N.type!=="set_selection"||N.properties!=null&&N.newProperties!=null)(w)),O){if(k==null&&(k=D!=null&&(A.length!==0||((N,W)=>N.type==="set_selection"||!(!W||N.type!=="insert_text"||W.type!=="insert_text"||N.offset!==W.offset+W.text.length||!qt.equals(N.path,W.path))||!(!W||N.type!=="remove_text"||W.type!=="remove_text"||N.offset+N.text.length!==W.offset||!qt.equals(N.path,W.path)))(w,_)||M)),D&&k)M&&D.pop(),D.push(w);else{var R=[w];E.push(R)}for(;E.length>100;)E.shift();(N=>N.type!=="set_selection")(w)&&(S.redos=[])}b(w)},m})((function(y){var m=y,b=m.insertText,w=m.insertNode,A=m.insertFragment,S=m.dangerouslyInsertHtml;return m.insertText=function(E){if(m.getConfig().maxLength){var D=kt.getLeftLengthOfMaxLength(m);D<=0||(D<E.length?b(E.slice(0,D)):b(E))}else b(E)},m.insertNode=function(E){if(m.getConfig().maxLength){var D=kt.getLeftLengthOfMaxLength(m);D<=0||D<Xn.string(E).length||w(E)}else w(E)},m.insertFragment=function(E){if(m.getConfig().maxLength)if(E.length!==1)E.forEach((function(_){m.insertNode(_)}));else{var D=E[0];if(kt.getLeftLengthOfMaxLength(m)<Xn.string(D).length)return;A(E)}else A(E)},m.dangerouslyInsertHtml=function(E,D){if(E===void 0&&(E=""),D===void 0&&(D=!1),E)if(m.getConfig().maxLength){var _=kt.getLeftLengthOfMaxLength(m);if(!(_<=0)){var M=document.createElement("div");M.innerHTML=E;var O=Array.from(M.childNodes).reduce((function(k,R){var N=R.nodeType,W=R.nodeName;return R?N===Cd.TEXT_NODE?k+(R.textContent||""):N===Cd.ELEMENT_NODE?Fle.has(W.toLowerCase())?k:k+(R.textContent||""):k:k}),"");_<O.length||S(E,D)}}else S(E,D)},m})((function(y){var m=y;return m.on=function(b,w){var A=k6(m);if(A.on(b,w),b==="destroyed"&&Hle(m,w),b!=="destroyed"){var S=function(){return A.off(b,w)};A.on("destroyed",S),Hle(m,S)}},m.once=function(b,w){k6(m).once(b,w)},m.off=function(b,w){k6(m).off(b,w)},m.emit=function(b){for(var w=[],A=1;A<arguments.length;A++)w[A-1]=arguments[A];var S=k6(m);S.emit.apply(S,ez([b],$o(w))),b==="destroyed"&&(R6t(m).forEach((function(E){return S.off("destroyed",E)})),B6t(m))},m})((function(y){var m=y;return m.select=function(b){nn.select(m,b)},m.deselect=function(){var b=m.selection,w=kt.findDocumentOrShadowRoot(m).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&nn.deselect(y)},m.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||nn.move(y,{distance:b,unit:"character",reverse:w}))},m.moveReverse=function(b){m.move(b,!0)},m.restoreSelection=function(){var b=MP.get(m);b!=null&&(m.focus(),nn.select(m,b))},m.getSelectionPosition=function(){return YG(m)},m.getNodePosition=function(b){return QG(m,b)},m.isSelectedAll=function(){var b=m.selection;if(b==null)return!1;var w=$o(pn.edges(b),2),A=w[0],S=w[1],E=$o(Je.edges(m,[]),2),D=E[0],_=E[1];return!(!Ao.equals(A,D)||!Ao.equals(S,_))},m.selectAll=function(){var b=Je.start(m,[]),w=Je.end(m,[]);nn.select(m,{anchor:b,focus:w})},m})((function(y){var m=y,b=m.onChange,w=m.insertText,A=m.apply,S=m.deleteBackward;return m.insertText=function(E){m.getConfig().readOnly||w(E)},m.apply=function(E){var D,_,M,O,k,R,N,W,B=[];switch(E.type){case"insert_text":case"remove_text":case"set_node":try{for(var z=Uu(Je.levels(m,{at:E.path})),j=z.next();!j.done;j=z.next()){var q=$o(j.value,2),Y=q[0],U=q[1],F=kt.findKey(m,Y);B.push([U,F])}}catch(he){D={error:he}}finally{try{j&&!j.done&&(_=z.return)&&_.call(z)}finally{if(D)throw D.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var H=Uu(Je.levels(m,{at:qt.parent(E.path)})),re=H.next();!re.done;re=H.next()){var X=$o(re.value,2);Y=X[0],U=X[1],F=kt.findKey(m,Y),B.push([U,F])}}catch(he){M={error:he}}finally{try{re&&!re.done&&(O=H.return)&&O.call(H)}finally{if(M)throw M.error}}break;case"move_node":try{for(var te=Uu(Je.levels(m,{at:qt.common(qt.parent(E.path),qt.parent(E.newPath))})),Z=te.next();!Z.done;Z=te.next()){var le=$o(Z.value,2);Y=le[0],U=le[1],F=kt.findKey(m,Y),B.push([U,F])}}catch(he){k={error:he}}finally{try{Z&&!Z.done&&(R=te.return)&&R.call(te)}finally{if(k)throw k.error}}}A(E);try{for(var ve=Uu(B),Pe=ve.next();!Pe.done;Pe=ve.next()){var Ae=$o(Pe.value,2);U=Ae[0],F=Ae[1],Y=$o(Je.node(m,U),1)[0],P8.set(Y,F)}}catch(he){N={error:he}}finally{try{Pe&&!Pe.done&&(W=ve.return)&&W.call(ve)}finally{if(N)throw N.error}}},m.deleteBackward=function(E){if(E!=="line")return S(E);if(y.selection&&pn.isCollapsed(y.selection)){var D=Je.above(y,{match:function(k){return Je.isBlock(y,k)},at:y.selection});if(D){var _=$o(D,2)[1],M=Je.range(y,_,y.selection.anchor),O=(function(k,R){var N=Je.range(k,pn.end(R)),W=Array.from(Je.positions(k,{at:R})),B=0,z=W.length,j=Math.floor(z/2);if(Dle(k,Je.range(k,W[B]),N))return Je.range(k,W[B],N);if(W.length<2)return Je.range(k,W[W.length-1],N);for(;j!==W.length&&j!==B;)Dle(k,Je.range(k,W[j]),N)?z=j:B=j,j=Math.floor((B+z)/2);return Je.range(k,W[z],N)})(m,M);pn.isCollapsed(O)||nn.delete(y,{at:O})}}},m.onChange=function(){var E=m.selection;E!=null&&MP.set(m,E),m.emit("change"),b()},m.handleTab=function(){m.insertText(" ")},m.getHtml=function(){var E=m.children;return(E===void 0?[]:E).map((function(D){return YCe(D,m)})).join("")},m.getText=function(){var E=m.children;return(E===void 0?[]:E).map((function(D){return Xn.string(D)})).join(`
- `)},m.getSelectionText=function(){var E=m.selection;return E==null?"":Je.string(y,E)},m.getElemsByType=function(E,D){var _,M;D===void 0&&(D=!1);var O=[],k=Je.nodes(m,{at:[],universal:!0});try{for(var R=Uu(k),N=R.next();!N.done;N=R.next()){var W=$o(N.value,1)[0];if(Mr.isElement(W)&&(D?W.type.indexOf(E)>=0:W.type===E)){var B=QCe(kt.findKey(m,W).id);O.push(Fu(Fu({},W),{id:B}))}}}catch(z){_={error:z}}finally{try{N&&!N.done&&(M=R.return)&&M.call(R)}finally{if(_)throw _.error}}return O},m.getElemsByTypePrefix=function(E){return m.getElemsByType(E,!0)},m.isEmpty=function(){var E=m.children,D=E===void 0?[]:E;if(D.length>1)return!1;var _=D[0];if(_==null)return!0;if(Mr.isElement(_)&&_.type==="paragraph"){var M=_.children,O=M===void 0?[]:M;if(O.length>1)return!1;var k=O[0];if(k==null||cr.isText(k)&&k.text==="")return!0}return!1},m.clear=function(){nn.delete(m,{at:{anchor:Je.start(m,[]),focus:Je.end(m,[])}}),m.children.length===0&&nn.insertNodes(m,[{type:"paragraph",children:[{text:""}]}])},m.getParentNode=function(E){return kt.getParentNode(m,E)},m.dangerouslyInsertHtml=function(E,D){if(E===void 0&&(E=""),D===void 0&&(D=!1),E){var _=document.createElement("div");_.innerHTML=E;var M=Array.from(_.childNodes);if(M=M.filter((function(N){var W=N.nodeType,B=N.nodeName;return W===Cd.TEXT_NODE||W===Cd.ELEMENT_NODE&&!Fle.has(B.toLowerCase())})),M.length!==0){var O=m.selection;if(O!=null){var k=null;kt.isSelectedEmptyParagraph(m)&&!D&&(k=[O.focus.path[0]]),_.setAttribute("hidden","true"),document.body.appendChild(_);var R=0;M.forEach((function(N){var W=N.nodeType,B=N.nodeName,z=N.textContent,j=z===void 0?"":z;if(W!==Cd.TEXT_NODE)if(B!=="BR"){var q=N,Y=!1;if(ZCe.includes(B.toLowerCase()))Y=!0;else for(var U in sT)if(q.matches(U)){Y=!0;break}if(Y){var F=qG(Pt(q),m);return Array.isArray(F)?(F.forEach((function(re){return Ule(m,re)})),R++):(Ule(m,F),R++),void(kt.isSelectedVoidNode(m)&&m.move(1))}var H=window.getComputedStyle(q).display;kt.isSelectedEmptyParagraph(m)||H.indexOf("inline")<0&&m.insertBreak(),m.dangerouslyInsertHtml(q.innerHTML,!0)}else m.insertText(`
- `);else{if(!j||!j.trim())return;m.insertNode({text:j})}})),R&&k&&kt.isEmptyPath(m,k)&&nn.removeNodes(m,{at:k}),_.remove()}}}},m.setHtml=function(E){E===void 0&&(E="");var D=m.isDisabled(),_=m.isFocused(),M=JSON.stringify(m.selection);m.enable(),m.focus(),m.clear();var O=Rle(m,E);if(nn.insertFragment(m,O),_||(m.deselect(),m.blur()),D&&(m.deselect(),m.disable()),m.isFocused())try{m.select(JSON.parse(M))}catch{m.select(Je.start(m,[]))}},m})((function(y){var m=y;return m.getAllMenuKeys=function(){var b=[];for(var w in jA)b.push(w);return b},m.getConfig=function(){var b=ole.get(m);if(b==null)throw new Error("Can not get editor config");return b},m.getMenuConfig=function(b){var w=m.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},m.alert=function(b,w){w===void 0&&(w="info");var A=m.getConfig().customAlert;A&&A(b,w)},m})((function(y){var m=C6t(V2t());return m.id="wangEditor-"+Dxt++,m.isDestroyed=!1,m.isFullScreen=!1,m.focus=function(b){if(kt.toDOMNode(m,m).focus({preventScroll:!0}),cv.set(m,!0),b){var w=Je.end(m,[]);nn.select(m,w)}else{var A=MP.get(m);A?nn.select(m,A):nn.select(m,Je.start(m,[]))}},m.isFocused=function(){return!!cv.get(m)},m.blur=function(){kt.toDOMNode(m,m).blur(),nn.deselect(m),cv.set(m,!1)},m.updateView=function(){kt.getTextarea(m).changeViewState();var b=kt.getToolbar(m);b&&b.changeToolbarState();var w=kt.getHoverbar(m);w&&w.changeHoverbarState()},m.destroy=function(){if(!m.isDestroyed){var b=kt.getTextarea(m);b.destroy(),nz.delete(m),rz.delete(b);var w=kt.getToolbar(m);w&&(w.destroy(),D7.delete(m),BG.delete(w));var A=kt.getHoverbar(m);A&&(A.destroy(),nT.delete(m),oz.delete(A)),m.isDestroyed=!0,m.emit("destroyed")}},m.scrollToElem=function(b){if(!m.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
- You has disabled editor scroll, please do this yourself`,void console.warn(w)}var A=Pt("#"+b);if(A.length!==0){var S=A[0];if(!kt.hasDOMNode(m,S))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
- 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,S);var E=kt.getTextarea(m),D=E.$textAreaContainer,_=E.$scroll,M=A.offset().top,O=D.offset().top;_[0].scrollBy({top:M-O,behavior:"smooth"})}},m.showProgressBar=function(b){b<1||kt.getTextarea(m).changeProgress(b)},m.hidePanelOrModal=function(){var b=iz.get(m);b?.forEach((function(w){return w.hide()}))},m.enable=function(){m.getConfig().readOnly=!1,m.updateView()},m.disable=function(){m.getConfig().readOnly=!0,m.updateView()},m.isDisabled=function(){return m.getConfig().readOnly},m.toDOMNode=function(b){return kt.toDOMNode(m,b)},m.fullScreen=function(){if(!m.isFullScreen){var b=null,w=kt.getToolbar(m);w&&(b=w.$box);var A=kt.getTextarea(m).$box.parent();if(b&&b.parent()[0]!==A[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
- 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);A.addClass("w-e-full-screen-container");var S=A.css("z-index");A.attr("data-z-index",S.toString()),m.isFullScreen=!0,m.emit("fullScreen")}},m.unFullScreen=function(){if(m.isFullScreen){var b=kt.getTextarea(m).$box.parent();setTimeout((function(){b.removeClass("w-e-full-screen-container"),m.isFullScreen=!1,m.emit("unFullScreen")}),200)}},m.getEditableContainer=function(){return kt.getTextarea(m).$textAreaContainer[0]},m})()))))));if(n&&(function(y,m){return txe(y,"data-w-e-textarea",m)})(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var d=(function(y){y===void 0&&(y={});var m=U5e(PCe),b={},w=y.MENU_CONF,A=w===void 0?{}:w;return aG(m,(function(S,E){b[E]=Fu(Fu({},S),A[E]||{})})),delete y.MENU_CONF,Fu({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,E){window.alert(E+`:
- `+S)}},y)})(o);ole.set(u,d);var c=d.hoverbarKeys,f=c===void 0?{}:c;if(l.forEach((function(y){u=y(u)})),a!=null&&(u.children=Rle(u,a)),i&&i.length&&(u.children=i),u.children.length===0&&(u.children=[{type:"paragraph",children:[{text:""}]}]),kt.normalizeContent(u),n){var p=new J6t(n);nz.set(u,p),rz.set(p,u),p.changeViewState(),lc((function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
- Textarea height < 300px . This may be cause modal and hoverbar position error`,y)}));var v=void 0;Object.keys(f).length>0&&(v=new lSt,oz.set(v,u),nT.set(u,v)),u.on("change",(function(){u.hidePanelOrModal()})),u.on("scroll",(function(){u.hidePanelOrModal()}))}else u.children.forEach((function(y,m){return uxe(y,m,u,u)}));var h=d.onCreated,g=d.onDestroyed;return h&&u.on("created",(function(){return h(u)})),g&&u.on("destroyed",(function(){return g(u)})),lc((function(){return u.emit("created")})),u}var cSt=E7("splice"),dSt=Yn.TypeError,fSt=Math.max,pSt=Math.min;Ji({target:"Array",proto:!0,forced:!cSt},{splice:function(e,t){var n,r,o,i,a,s,l=U0(this),u=xm(l),d=fb(e,u),c=arguments.length;if(c===0?n=r=0:c===1?(n=0,r=u-d):(n=c-2,r=pSt(fSt(AC(t),0),u-d)),u+n-r>9007199254740991)throw dSt("Maximum allowed length exceeded");for(o=aCe(l,r),i=0;i<r;i++)(a=d+i)in l&&LA(o,i,l[a]);if(o.length=r,n<r){for(i=d;i<u-r;i++)s=i+n,(a=i+r)in l?l[s]=l[a]:delete l[s];for(i=u;i>u-r+n;i--)delete l[i-1]}else if(n>r)for(i=u-r;i>d;i--)s=i+n-1,(a=i+r-1)in l?l[s]=l[a]:delete l[s];for(i=0;i<n;i++)l[i+d]=arguments[i+2];return l.length=u-r+n,o}});var hSt=(function(){function e(t,n){var r=this;this.$toolbar=Pt('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=F5e((function(){r.toolbarItems.forEach((function(a){a.changeMenuState()}))}),200),this.config=n;var o=Pt(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",(function(a){return a.preventDefault()}),{passive:!1}),o.append(i),lc((function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,s=o.insertKeys,l=s===void 0?{index:0,keys:[]}:s,u=o.excludeKeys,d=u===void 0?[]:u,c=U5e(a);l.keys.length>0&&(typeof l.keys=="string"&&(l.keys=[l.keys]),l.keys.forEach((function(v,h){c.splice(l.index+h,0,v)})));var f=c.filter((function(v){if(typeof v=="string"){if(d.includes(v))return!1}else if(d.includes(v.key))return!1;return!0})),p=f.length;f.forEach((function(v,h){if(v==="|"){if(h===0||h+1===p||n==="|")return;var g=axe();return r.append(g),void(n=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(n=v);t.registerGroup(v),n="group"}))},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=(function(u){return new eue(u)})(t),i=t.menuKeys,a=i===void 0?[]:i,s=this.config.excludeKeys,l=s===void 0?[]:s;a.forEach((function(u){l.includes(u)||n.registerSingleItem(u,o)})),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof eue,i=this.menus,a=i[t];if(a==null){var s=jA[t];if(s==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof s!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=s(),i[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
- 重复注册了菜单栏 menu '`+t+"'");var l=lxe(t,a,o);this.toolbarItems.push(l),LG.set(l,r),o?n.appendBarItem(l):n.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var t=BG.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e})(),gSt=n2.EXISTS,vSt=rd.f,cxe=Function.prototype,mSt=Br(cxe.toString),dxe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ySt=Br(dxe.exec);function fxe(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,i=e.maxFileSize,a=i===void 0?10485760:i,s=e.maxNumberOfFiles,l=s===void 0?100:s,u=e.meta,d=u===void 0?{}:u,c=e.metaWithUrl,f=c!==void 0&&c,p=e.headers,v=p===void 0?{}:p,h=e.withCredentials,g=h!==void 0&&h,y=e.timeout,m=y===void 0?1e4:y,b=e.onBeforeUpload,w=b===void 0?function(R){return R}:b,A=e.onSuccess,S=A===void 0?function(R,N){}:A,E=e.onError,D=E===void 0?function(R,N,W){console.error(R.name+" upload error",N,W)}:E,_=e.onProgress,M=_===void 0?function(R){}:_;if(!n)throw new Error(`Cannot get upload server address
- 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
- 没有配置 fieldName`);var O=n;f&&(O=(function(R,N){var W=$o(R.split("#"),2),B=W[0],z=W[1],j=[];aG(N,(function(Y,U){j.push(U+"="+Y)}));var q=j.join("&");return B=B.indexOf("?")>0?B+"&"+q:B+"?"+q,z?B+"#"+z:B})(O,d));var k=new I4({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:d}).use(HAt,{endpoint:O,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return k.on("upload-success",(function(R,N){var W=N.body,B=W===void 0?{}:W;try{S(R,B)}catch(z){console.error("wangEditor upload file - onSuccess error",z)}k.removeFile(R.id)})),k.on("progress",(function(R){R<1||M(R)})),k.on("upload-error",(function(R,N,W){try{D(R,N,W)}catch(B){console.error("wangEditor upload file - onError error",B)}k.removeFile(R.id)})),k.on("restriction-failed",(function(R,N){try{D(R,N)}catch(W){console.error("wangEditor upload file - onError error",W)}k.removeFile(R.id)})),k}function zh(e){return zh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zh(e)}function bSt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach((function(o){bSt(e,o,n[o])}))}return e}function Sp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ep(e,t,n){return t&&nue(e.prototype,t),n&&nue(e,n),e}function Xv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WA(e,t){if(t&&(zh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xv(e)}function mb(e){return mb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},mb(e)}function bz(e,t){return bz=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},bz(e,t)}function I7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bz(e,t)}us&&!gSt&&vSt(cxe,"name",{configurable:!0,get:function(){try{return ySt(dxe,mSt(this))[1]}catch{return""}}});var wSt={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Uf=new((function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Sp(this,e),this.init(t,n)}return Ep(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||wSt,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,za({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e})()),A0=(function(){function e(){Sp(this,e),this.observers={}}return Ep(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach((function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)})),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter((function(r){return r!==n})):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach((function(s){s.apply(void 0,r)}))}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach((function(s){s.apply(s,[t].concat(r))}))}}}]),e})();function Iw(){var e,t,n=new Promise((function(r,o){e=r,t=o}));return n.resolve=e,n.reject=t,n}function rue(e){return e==null?"":""+e}function ASt(e,t,n){e.forEach((function(r){t[r]&&(n[r]=t[r])}))}function tK(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function oue(e,t,n){var r=tK(e,t,Object);r.obj[r.k]=n}function uT(e,t){var n=tK(e,t),r=n.obj,o=n.k;if(r)return r[o]}function iue(e,t,n){var r=uT(e,n);return r!==void 0?r:uT(t,n)}function pxe(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):pxe(e[r],t[r],n):e[r]=t[r]);return e}function r1(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var CSt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function xSt(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,(function(t){return CSt[t]})):e}var O7=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function hxe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,s=r.slice(i,i+a).join(n),l=o[s];l===void 0&&r.length>i+a;)a++,l=o[s=r.slice(i,i+a).join(n)];if(l===void 0)return;if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s];var u=r.slice(i+a).join(n);return u?hxe(l,u,n):void 0}o=o[r[i]]}return o}}var SSt=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Sp(this,t),r=WA(this,mb(t).call(this)),O7&&A0.call(Xv(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return I7(t,A0),Ep(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[n,r];o&&typeof o!="string"&&(l=l.concat(o)),o&&typeof o=="string"&&(l=l.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(l=n.split("."));var u=uT(this.data,l);return u||!s||typeof o!="string"?u:hxe(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=this.options.keySeparator;s===void 0&&(s=".");var l=[n,r];o&&(l=l.concat(s?o.split(s):o)),n.indexOf(".")>-1&&(i=r,r=(l=n.split("."))[1]),this.addNamespaces(r),oue(this.data,l,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(l=n.split("."))[1]),this.addNamespaces(r);var u=uT(this.data,l)||{};i?pxe(u,o,a):u=za({},u,o),oue(this.data,l,u),s.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?za({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t})(),gxe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(a){i.processors[a]&&(t=i.processors[a].process(t,n,r,o))})),t}},aue={},sue=(function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Sp(this,t),r=WA(this,mb(t).call(this)),O7&&A0.call(Xv(r)),ASt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Xv(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Uf.create("translator"),r}return I7(t,A0),Ep(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var s=n.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:n,namespaces:a};var l=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(l[0])>-1)&&(a=l.shift()),n=l.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(zh(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(n[n.length-1],r),l=s.key,u=s.namespaces,d=u[u.length-1],c=r.lng||this.language,f=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(f){var p=r.nsSeparator||this.options.nsSeparator;return d+p+l}return l}var v=this.resolve(n,r),h=v&&v.res,g=v&&v.usedKey||l,y=v&&v.exactUsedKey||l,m=Object.prototype.toString.apply(h),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(A&&h&&S&&b.indexOf(m)<0&&(typeof w!="string"||m!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,za({},r,{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(a){var E=m==="[object Array]",D=E?[]:{},_=E?y:g;for(var M in h)if(Object.prototype.hasOwnProperty.call(h,M)){var O="".concat(_).concat(a).concat(M);D[M]=this.translate(O,za({},r,{joinArrays:!1,ns:u})),D[M]===O&&(D[M]=h[M])}h=D}}else if(A&&typeof w=="string"&&m==="[object Array]")(h=h.join(w))&&(h=this.extendTranslation(h,n,r,o));else{var k=!1,R=!1,N=r.count!==void 0&&typeof r.count!="string",W=t.hasDefaultValue(r),B=N?this.pluralResolver.getSuffix(c,r.count):"",z=r["defaultValue".concat(B)]||r.defaultValue;!this.isValidLookup(h)&&W&&(k=!0,h=z),this.isValidLookup(h)||(R=!0,h=l);var j=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,q=j&&R?void 0:h,Y=W&&z!==h&&this.options.updateMissing;if(R||k||Y){if(this.logger.log(Y?"updateKey":"missingKey",c,d,l,Y?z:h),a){var U=this.resolve(l,za({},r,{keySeparator:!1}));U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],H=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&H&&H[0])for(var re=0;re<H.length;re++)F.push(H[re]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(r.lng||this.language):F.push(r.lng||this.language);var X=function(te,Z,le){i.options.missingKeyHandler?i.options.missingKeyHandler(te,d,Z,Y?le:q,Y,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(te,d,Z,Y?le:q,Y,r),i.emit("missingKey",te,d,Z,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?F.forEach((function(te){i.pluralResolver.getSuffixes(te).forEach((function(Z){X([te],l+Z,r["defaultValue".concat(Z)]||z)}))})):X(F,l,z))}h=this.extendTranslation(h,n,r,v,o),R&&h===l&&this.options.appendNamespaceToMissingKey&&(h="".concat(d,":").concat(l)),(R||k)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(n,r,o,i,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(za({},o,{interpolation:za({},this.options.interpolation,o.interpolation)}));var l,u=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var d=n.match(this.interpolator.nestingRegexp);l=d&&d.length}var c=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(c=za({},this.options.interpolation.defaultVariables,c)),n=this.interpolator.interpolate(n,c,o.lng||this.language,o),u){var f=n.match(this.interpolator.nestingRegexp);l<(f&&f.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,(function(){for(var h=arguments.length,g=new Array(h),y=0;y<h;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!o.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(r[0])),null):s.translate.apply(s,g.concat([r]))}),o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return n!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(n=gxe.handle(v,n,r,this.options&&this.options.postProcessPassResolved?za({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,s,l=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach((function(d){if(!l.isValidLookup(r)){var c=l.extractFromKey(d,u),f=c.key;o=f;var p=c.namespaces;l.options.fallbackNS&&(p=p.concat(l.options.fallbackNS));var v=u.count!==void 0&&typeof u.count!="string",h=u.context!==void 0&&(typeof u.context=="string"||typeof u.context=="number")&&u.context!=="",g=u.lngs?u.lngs:l.languageUtils.toResolveHierarchy(u.lng||l.language,u.fallbackLng);p.forEach((function(y){l.isValidLookup(r)||(s=y,!aue["".concat(g[0],"-").concat(y)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(s)&&(aue["".concat(g[0],"-").concat(y)]=!0,l.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach((function(m){if(!l.isValidLookup(r)){a=m;var b,w,A=f,S=[A];for(l.i18nFormat&&l.i18nFormat.addLookupKeys?l.i18nFormat.addLookupKeys(S,f,m,y,u):(v&&(b=l.pluralResolver.getSuffix(m,u.count)),v&&h&&S.push(A+b),h&&S.push(A+="".concat(l.options.contextSeparator).concat(u.context)),v&&S.push(A+=b));w=S.pop();)l.isValidLookup(r)||(i=w,r=l.getResource(m,y,w,u))}})))}))}})),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),t})();function JP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ESt=(function(){function e(t){Sp(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Uf.create("languageUtils")}return Ep(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(o){return o.toLowerCase()})):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=JP(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=JP(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=JP(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach((function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}})),!n&&this.options.supportedLngs&&t.forEach((function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find((function(a){if(a.indexOf(i)===0)return a}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=function(s){s&&(r.isSupportedCode(s)?i.push(s):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(s)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach((function(s){i.indexOf(s)<0&&a(r.formatLanguageCode(s))})),i}}]),e})(),kSt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],TSt={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function _St(){var e={};return kSt.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:TSt[t.fc]}}))})),e}var DSt=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Sp(this,e),this.languageUtils=t,this.options=n,this.logger=Uf.create("pluralResolver"),this.rules=_St()}return Ep(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map((function(r){return n+r}))}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map((function(o){return n.getSuffix(t,o)})):[]}},{key:"getSuffix",value:function(t,n){var r=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e})(),ISt=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Sp(this,e),this.logger=Uf.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Ep(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:xSt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?r1(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?r1(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?r1(n.nestingPrefix):n.nestingPrefixEscaped||r1("$t("),this.nestingSuffix=n.nestingSuffix?r1(n.nestingSuffix):n.nestingSuffixEscaped||r1(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,o){var i,a,s,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(h){return h.replace(/\$/g,"$$$$")}var c=function(h){if(h.indexOf(l.formatSeparator)<0){var g=iue(n,u,h);return l.alwaysFormat?l.format(g,void 0,r,za({},o,n,{interpolationkey:h})):g}var y=h.split(l.formatSeparator),m=y.shift().trim(),b=y.join(l.formatSeparator).trim();return l.format(iue(n,u,m),b,r,za({},o,n,{interpolationkey:m}))};this.resetRegExp();var f=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(h){return d(h)}},{regex:this.regexp,safeValue:function(h){return l.escapeValue?d(l.escape(h)):d(h)}}];return v.forEach((function(h){for(s=0;i=h.regex.exec(t);){if((a=c(i[1].trim()))===void 0)if(typeof f=="function"){var g=f(t,i,o);a=typeof g=="string"?g:""}else{if(p){a=i[0];continue}l.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||l.useRawValueToEscape||(a=rue(a));var y=h.safeValue(a);if(t=t.replace(i[0],y),p?(h.regex.lastIndex+=y.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,++s>=l.maxReplaces)break}})),t}},{key:"nest",value:function(t,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=za({},a);function l(f,p){var v=this.nestingOptionsSeparator;if(f.indexOf(v)<0)return f;var h=f.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(h[1]);f=h[0],g=(g=this.interpolate(g,s)).replace(/'/g,'"');try{s=JSON.parse(g),p&&(s=za({},p,s))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(f),y),"".concat(f).concat(v).concat(g)}return delete s.defaultValue,f}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(t);){var u=[],d=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(f){return f.trim()}));r[1]=c.shift(),u=c,d=!0}if((o=n(l.call(this,r[1].trim(),s),s))&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=rue(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),d&&(o=u.reduce((function(f,p){return i.format(f,p,a.lng,za({},a,{interpolationkey:r[1].trim()}))}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),e})(),OSt=(function(e){function t(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Sp(this,t),i=WA(this,mb(t).call(this)),O7&&A0.call(Xv(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Uf.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return I7(t,A0),Ep(t,[{key:"queueLoad",value:function(n,r,o,i){var a=this,s=[],l=[],u=[],d=[];return n.forEach((function(c){var f=!0;r.forEach((function(p){var v="".concat(c,"|").concat(p);!o.reload&&a.store.hasResourceBundle(c,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?l.indexOf(v)<0&&l.push(v):(a.state[v]=1,f=!1,l.indexOf(v)<0&&l.push(v),s.indexOf(v)<0&&s.push(v),d.indexOf(p)<0&&d.push(p)))})),f||u.push(c)})),(s.length||l.length)&&this.queue.push({pending:l,loaded:{},errors:[],callback:i}),{toLoad:s,pending:l,toLoadLanguages:u,toLoadNamespaces:d}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],s=i[1];r&&this.emit("failedLoading",a,s,r),o&&this.store.addResourceBundle(a,s,o),this.state[n]=r?-1:2;var l={};this.queue.forEach((function(u){(function(d,c,f,p){var v=tK(d,c,Object),h=v.obj,g=v.k;h[g]=h[g]||[],h[g].push(f)})(u.loaded,[a],s),(function(d,c){for(var f=d.indexOf(c);f!==-1;)d.splice(f,1),f=d.indexOf(c)})(u.pending,n),r&&u.errors.push(r),u.pending.length!==0||u.done||(Object.keys(u.loaded).forEach((function(d){l[d]||(l[d]=[]),u.loaded[d].length&&u.loaded[d].forEach((function(c){l[d].indexOf(c)<0&&l[d].push(c)}))})),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())})),this.emit("loaded",l),this.queue=this.queue.filter((function(u){return!u.done}))}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,l=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,(function(u,d){u&&d&&a<5?setTimeout((function(){i.read.call(i,n,r,o,a+1,2*s,l)}),s):l(u,d)})):l(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var s=this.queueLoad(n,r,i,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach((function(l){o.loadOne(l)}))}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],s=i[1];this.read(a,s,"read",void 0,void 0,(function(l,u){l&&r.logger.warn("".concat(o,"loading namespace ").concat(s," for language ").concat(a," failed"),l),!l&&u&&r.logger.log("".concat(o,"loaded namespace ").concat(s," for language ").concat(a),u),r.loaded(n,l,u)}))}},{key:"saveMissing",value:function(n,r,o,i,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,za({},s,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),t})();function MSt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(zh(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),zh(e[2])==="object"||zh(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach((function(r){t[r]=n[r]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function lue(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function _6(){}var PSt=(function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Sp(this,t),n=WA(this,mb(t).call(this)),O7&&A0.call(Xv(n)),n.options=lue(r),n.services={},n.logger=Uf,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),WA(n,Xv(n));setTimeout((function(){n.init(r,o)}),0)}return n}return I7(t,A0),Ep(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=za({},MSt(),this.options,lue(r)),this.format=this.options.interpolation.format,o||(o=_6),!this.options.isClone){this.modules.logger?Uf.init(i(this.modules.logger),this.options):Uf.init(null,this.options);var a=new ESt(this.options);this.store=new SSt(this.options.resources,this.options);var s=this.services;s.logger=Uf,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new DSt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new ISt(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new OSt(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),g=1;g<v;g++)h[g-1]=arguments[g];n.emit.apply(n,[p].concat(h))})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new sue(this.services,this.options),this.translator.on("*",(function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),g=1;g<v;g++)h[g-1]=arguments[g];n.emit.apply(n,[p].concat(h))})),this.modules.external.forEach((function(p){p.init&&p.init(n)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments)}}));var d=["addResource","addResources","addResourceBundle","removeResourceBundle"];d.forEach((function(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments),n}}));var c=Iw(),f=function(){var p=function(v,h){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),c.resolve(h),o(v,h)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),c}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_6,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var s=[],l=function(d){d&&r.services.languageUtils.toResolveHierarchy(d).forEach((function(c){s.indexOf(c)<0&&s.push(c)}))};if(a)l(a);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(d){return l(d)}))}this.options.preload&&this.options.preload.forEach((function(d){return l(d)})),this.services.backendConnector.load(s,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=Iw();return n||(n=this.languages),r||(r=this.options.ns),o||(o=_6),this.services.backendConnector.reload(n,r,(function(a){i.resolve(),o(a)})),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&gxe.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=Iw();this.emit("languageChanging",n);var a=function(s){n||s||!o.services.languageDetector||(s=[]);var l=typeof s=="string"?s:o.services.languageUtils.getBestMatchFromCodes(s);l&&(o.language||(o.language=l,o.languages=o.services.languageUtils.toResolveHierarchy(l)),o.translator.language||o.translator.changeLanguage(l),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(l)),o.loadResources(l,(function(u){(function(d,c){c?(o.language=c,o.languages=o.services.languageUtils.toResolveHierarchy(c),o.translator.changeLanguage(c),o.isLanguageChangingTo=void 0,o.emit("languageChanged",c),o.logger.log("languageChanged",c)):o.isLanguageChangingTo=void 0,i.resolve((function(){return o.t.apply(o,arguments)})),r&&r(d,(function(){return o.t.apply(o,arguments)}))})(u,l)}))};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function s(l,u){var d;if(zh(u)!=="object"){for(var c=arguments.length,f=new Array(c>2?c-2:0),p=2;p<c;p++)f[p-2]=arguments[p];d=i.options.overloadTranslationOptionHandler([l,u].concat(f))}else d=za({},u);d.lng=d.lng||s.lng,d.lngs=d.lngs||s.lngs,d.ns=d.ns||s.ns;var v=i.options.keySeparator||".",h=o?"".concat(o).concat(v).concat(l):l;return i.t(h,d)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var l=function(d,c){var f=r.services.backendConnector.state["".concat(d,"|").concat(c)];return f===-1||f===2};if(o.precheck){var u=o.precheck(this,l);if(u!==void 0)return u}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!l(i,n)||a&&!l(s,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=Iw();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach((function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)})),this.loadResources((function(a){i.resolve(),r&&r(a)})),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=Iw();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter((function(s){return i.indexOf(s)<0}));return a.length?(this.options.preload=i.concat(a),this.loadResources((function(s){o.resolve(),r&&r(s)})),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_6,i=za({},this.options,r,{isClone:!0}),a=new t(i),s=["store","services","language"];return s.forEach((function(l){a[l]=n[l]})),a.services=za({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new sue(a.services,a.options),a.translator.on("*",(function(l){for(var u=arguments.length,d=new Array(u>1?u-1:0),c=1;c<u;c++)d[c-1]=arguments[c];a.emit.apply(a,[l].concat(d))})),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t})(),cT=new PSt;function Gl(e,t){cT.addResourceBundle(e,"translation",t,!0,!0)}cT.init({lng:"zh-CN",resources:{}});var Jn=cT.t.bind(cT);Gl("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Gl("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var NSt=Vq?{}.toString:function(){return"[object "+c7(this)+"]"};Vq||Wv(Object.prototype,"toString",NSt,{unsafe:!0});var uue=Array.isArray||function(e){return ov(e)=="Array"},vxe=function(){},RSt=[],mxe=fC("Reflect","construct"),nK=/^\s*(?:class|function)\b/,BSt=pi(nK.exec),LSt=!nK.exec(vxe),Ow=function(e){if(!os(e))return!1;try{return mxe(vxe,RSt,e),!0}catch{return!1}},FSt=!mxe||gs((function(){var e;return Ow(Ow.call)||!Ow(Object)||!Ow((function(){e=!0}))||e}))?function(e){if(!os(e))return!1;switch(c7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return LSt||!!BSt(nK,zq(e))}:Ow,USt=wl("species"),cue=so.Array,zSt=function(e,t){return new((function(n){var r;return uue(n)&&(r=n.constructor,(FSt(r)&&(r===cue||uue(r.prototype))||_d(r)&&(r=r[USt])===null)&&(r=void 0)),r===void 0?cue:r})(e))(t===0?0:t)},due=pi([].push),$St=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=Bq(l),h=PAe(v),g=qAe(u,d),y=u7(h),m=0,b=c||zSt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:due(w,f)}else switch(e){case 4:return!1;case 7:due(w,f)}return i?-1:r||o?o:w}},jSt={forEach:$St(0)}.forEach,HSt=(function(e,t){var n=[][e];return!!n&&gs((function(){n.call(null,t||function(){throw 1},1)}))})("forEach"),eN=HSt?[].forEach:function(e){return jSt(this,e,arguments.length>1?arguments[1]:void 0)},yxe=function(e){if(e&&e.forEach!==eN)try{Ml(e,"forEach",eN)}catch{e.forEach=eN}};for(var tN in Dk)Dk[tN]&&yxe(so[tN]&&so[tN].prototype);yxe(YAe),Gl("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Gl("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var WSt={type:"paragraph",renderElem:function(e,t,n){return ro("p",null,t)}},dT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M7(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kp,N8,D6=function(e){return e&&e.Math==Math&&e},go=D6(typeof globalThis=="object"&&globalThis)||D6(typeof window=="object"&&window)||D6(typeof self=="object"&&self)||D6(typeof dT=="object"&&dT)||(function(){return this})()||Function("return this")(),ra=function(e){try{return!!e()}catch{return!0}},Kc=!ra((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Mw=Function.prototype.call,ka=Mw.bind?Mw.bind(Mw):function(){return Mw.apply(Mw,arguments)},fue={}.propertyIsEnumerable,pue=Object.getOwnPropertyDescriptor,VSt=pue&&!fue.call({1:2},1)?function(e){var t=pue(this,e);return!!t&&t.enumerable}:fue,bxe={f:VSt},rK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wxe=Function.prototype,wz=wxe.bind,Az=wxe.call,qSt=wz&&wz.bind(Az),eo=wz?function(e){return e&&qSt(Az,e)}:function(e){return e&&function(){return Az.apply(e,arguments)}},GSt=eo({}.toString),KSt=eo("".slice),$h=function(e){return KSt(GSt(e),8,-1)},nN=go.Object,YSt=eo("".split),P7=ra((function(){return!nN("z").propertyIsEnumerable(0)}))?function(e){return $h(e)=="String"?YSt(e,""):nN(e)}:nN,QSt=go.TypeError,uc=function(e){if(e==null)throw QSt("Can't call method on "+e);return e},s2=function(e){return P7(uc(e))},Gs=function(e){return typeof e=="function"},Id=function(e){return typeof e=="object"?e!==null:Gs(e)},ZSt=function(e){return Gs(e)?e:void 0},SC=function(e,t){return arguments.length<2?ZSt(go[e]):go[e]&&go[e][t]},Axe=eo({}.isPrototypeOf),rN=SC("navigator","userAgent")||"",hue=go.process,gue=go.Deno,vue=hue&&hue.versions||gue&&gue.version,mue=vue&&vue.v8;mue&&(N8=(Kp=mue.split("."))[0]>0&&Kp[0]<4?1:+(Kp[0]+Kp[1])),!N8&&rN&&(!(Kp=rN.match(/Edge\/(\d+)/))||Kp[1]>=74)&&(Kp=rN.match(/Chrome\/(\d+)/))&&(N8=+Kp[1]);var Cz=N8,xz=!!Object.getOwnPropertySymbols&&!ra((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Cz&&Cz<41})),oK=xz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",XSt=go.Object,oN=oK?function(e){return typeof e=="symbol"}:function(e){var t=SC("Symbol");return Gs(t)&&Axe(t.prototype,XSt(e))},JSt=go.String,Cxe=function(e){try{return JSt(e)}catch{return"Object"}},e8t=go.TypeError,xxe=function(e){if(Gs(e))return e;throw e8t(Cxe(e)+" is not a function")},N7=function(e,t){var n=e[t];return n==null?void 0:xxe(n)},t8t=go.TypeError,n8t=Object.defineProperty,iK=function(e,t){try{n8t(go,e,{value:t,configurable:!0,writable:!0})}catch{go[e]=t}return t},jh=go["__core-js_shared__"]||iK("__core-js_shared__",{}),aK=M7((function(e){(e.exports=function(t,n){return jh[t]||(jh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),r8t=go.Object,EC=function(e){return r8t(uc(e))},o8t=eo({}.hasOwnProperty),Ku=Object.hasOwn||function(e,t){return o8t(EC(e),t)},i8t=0,a8t=Math.random(),s8t=eo(1 .toString),Sxe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+s8t(++i8t+a8t,36)},Pw=aK("wks"),fv=go.Symbol,yue=fv&&fv.for,l8t=oK?fv:fv&&fv.withoutSetter||Sxe,ku=function(e){if(!Ku(Pw,e)||!xz&&typeof Pw[e]!="string"){var t="Symbol."+e;xz&&Ku(fv,e)?Pw[e]=fv[e]:Pw[e]=oK&&yue?yue(t):l8t(t)}return Pw[e]},u8t=go.TypeError,c8t=ku("toPrimitive"),sK=function(e){var t=(function(n,r){if(!Id(n)||oN(n))return n;var o,i=N7(n,c8t);if(i){if(o=ka(i,n,r),!Id(o)||oN(o))return o;throw u8t("Can't convert object to primitive value")}return(function(a,s){var l,u;if(Gs(l=a.toString)&&!Id(u=ka(l,a))||Gs(l=a.valueOf)&&!Id(u=ka(l,a)))return u;throw t8t("Can't convert object to primitive value")})(n)})(e,"string");return oN(t)?t:t+""},Sz=go.document,d8t=Id(Sz)&&Id(Sz.createElement),lK=function(e){return d8t?Sz.createElement(e):{}},Exe=!Kc&&!ra((function(){return Object.defineProperty(lK("div"),"a",{get:function(){return 7}}).a!=7})),bue=Object.getOwnPropertyDescriptor,uK={f:Kc?bue:function(e,t){if(e=s2(e),t=sK(t),Exe)try{return bue(e,t)}catch{}if(Ku(e,t))return rK(!ka(bxe.f,e,t),e[t])}},f8t=go.String,p8t=go.TypeError,gu=function(e){if(Id(e))return e;throw p8t(f8t(e)+" is not an object")},h8t=go.TypeError,wue=Object.defineProperty,l2={f:Kc?wue:function(e,t,n){if(gu(e),t=sK(t),gu(n),Exe)try{return wue(e,t,n)}catch{}if("get"in n||"set"in n)throw h8t("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yb=Kc?function(e,t,n){return l2.f(e,t,rK(1,n))}:function(e,t,n){return e[t]=n,e},g8t=eo(Function.toString);Gs(jh.inspectSource)||(jh.inspectSource=function(e){return g8t(e)});var Ez,fT,kz,cK=jh.inspectSource,Aue=go.WeakMap,v8t=Gs(Aue)&&/native code/.test(cK(Aue)),Cue=aK("keys"),kxe=function(e){return Cue[e]||(Cue[e]=Sxe(e))},dK={},xue=go.TypeError,m8t=go.WeakMap;if(v8t||jh.state){var sg=jh.state||(jh.state=new m8t),y8t=eo(sg.get),Sue=eo(sg.has),b8t=eo(sg.set);Ez=function(e,t){if(Sue(sg,e))throw new xue("Object already initialized");return t.facade=e,b8t(sg,e,t),t},fT=function(e){return y8t(sg,e)||{}},kz=function(e){return Sue(sg,e)}}else{var o1=kxe("state");dK[o1]=!0,Ez=function(e,t){if(Ku(e,o1))throw new xue("Object already initialized");return t.facade=e,yb(e,o1,t),t},fT=function(e){return Ku(e,o1)?e[o1]:{}},kz=function(e){return Ku(e,o1)}}var Tz={get:fT,enforce:function(e){return kz(e)?fT(e):Ez(e,{})}},Txe=Function.prototype,w8t=Kc&&Object.getOwnPropertyDescriptor,iN=Ku(Txe,"name"),R7={EXISTS:iN,PROPER:iN&&(function(){}).name==="something",CONFIGURABLE:iN&&(!Kc||Kc&&w8t(Txe,"name").configurable)},VA=M7((function(e){var t=R7.CONFIGURABLE,n=Tz.get,r=Tz.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;Gs(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ku(s,"name")||t&&s.name!==p)&&yb(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==go?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:yb(i,a,s)):c?i[a]=s:iK(a,s)})(Function.prototype,"toString",(function(){return Gs(this)&&n(this).source||cK(this)}))})),A8t=Math.ceil,C8t=Math.floor,u2=function(e){var t=+e;return t!=t||t===0?0:(t>0?C8t:A8t)(t)},x8t=Math.max,S8t=Math.min,qA=function(e,t){var n=u2(e);return n<0?x8t(n+t,0):S8t(n,t)},E8t=Math.min,kC=function(e){return e>0?E8t(u2(e),9007199254740991):0},B7=function(e){return kC(e.length)},Eue=function(e){return function(t,n,r){var o,i=s2(t),a=B7(i),s=qA(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},_xe={includes:Eue(!0),indexOf:Eue(!1)},k8t=_xe.indexOf,kue=eo([].push),Dxe=function(e,t){var n,r=s2(e),o=0,i=[];for(n in r)!Ku(dK,n)&&Ku(r,n)&&kue(i,n);for(;t.length>o;)Ku(r,n=t[o++])&&(~k8t(i,n)||kue(i,n));return i},pT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],T8t=pT.concat("length","prototype"),_8t={f:Object.getOwnPropertyNames||function(e){return Dxe(e,T8t)}},Ixe={f:Object.getOwnPropertySymbols},D8t=eo([].concat),I8t=SC("Reflect","ownKeys")||function(e){var t=_8t.f(gu(e)),n=Ixe.f;return n?D8t(t,n(e)):t},O8t=function(e,t){for(var n=I8t(t),r=l2.f,o=uK.f,i=0;i<n.length;i++){var a=n[i];Ku(e,a)||r(e,a,o(t,a))}},M8t=/#|\.prototype\./,TC=function(e,t){var n=N8t[P8t(e)];return n==B8t||n!=R8t&&(Gs(t)?ra(t):!!t)},P8t=TC.normalize=function(e){return String(e).replace(M8t,".").toLowerCase()},N8t=TC.data={},R8t=TC.NATIVE="N",B8t=TC.POLYFILL="P",L8t=TC,F8t=uK.f,Za=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?go:u?go[s]||iK(s,{}):(go[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=F8t(n,r))&&a.value:n[r],!L8t(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;O8t(i,o)}(e.sham||o&&o.sham)&&yb(i,"sham",!0),VA(n,r,i,e)}},Tue=eo(eo.bind),hT=Array.isArray||function(e){return $h(e)=="Array"},Oxe={};Oxe[ku("toStringTag")]="z";var fK=String(Oxe)==="[object z]",U8t=ku("toStringTag"),z8t=go.Object,$8t=$h((function(){return arguments})())=="Arguments",pK=fK?$h:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=z8t(e),U8t))=="string"?n:$8t?$h(t):(r=$h(t))=="Object"&&Gs(t.callee)?"Arguments":r},Mxe=function(){},j8t=[],Pxe=SC("Reflect","construct"),hK=/^\s*(?:class|function)\b/,H8t=eo(hK.exec),W8t=!hK.exec(Mxe),Nw=function(e){if(!Gs(e))return!1;try{return Pxe(Mxe,j8t,e),!0}catch{return!1}},gK=!Pxe||ra((function(){var e;return Nw(Nw.call)||!Nw(Object)||!Nw((function(){e=!0}))||e}))?function(e){if(!Gs(e))return!1;switch(pK(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return W8t||!!H8t(hK,cK(e))}:Nw,V8t=ku("species"),_ue=go.Array,q8t=function(e,t){return new((function(n){var r;return hT(n)&&(r=n.constructor,(gK(r)&&(r===_ue||hT(r.prototype))||Id(r)&&(r=r[V8t])===null)&&(r=void 0)),r===void 0?_ue:r})(e))(t===0?0:t)},Due=eo([].push),I6=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=EC(l),h=P7(v),g=(function(A,S){return xxe(A),S===void 0?A:Tue?Tue(A,S):function(){return A.apply(S,arguments)}})(u,d),y=B7(h),m=0,b=c||q8t,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Due(w,f)}else switch(e){case 4:return!1;case 7:Due(w,f)}return i?-1:r||o?o:w}},L7={forEach:I6(0),map:I6(1),filter:I6(2),find:I6(5)},G8t=ku("species"),vK=function(e){return Cz>=51||!ra((function(){var t=[];return(t.constructor={})[G8t]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},K8t=L7.filter;Za({target:"Array",proto:!0,forced:!vK("filter")},{filter:function(e){return K8t(this,e,arguments.length>1?arguments[1]:void 0)}});var Y8t=fK?{}.toString:function(){return"[object "+pK(this)+"]"};fK||VA(Object.prototype,"toString",Y8t,{unsafe:!0});var O6,Q8t=go.String,Zi=function(e){if(pK(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Q8t(e)},Nxe=function(){var e=gu(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},mK=go.RegExp,_z=ra((function(){var e=mK("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));_z||ra((function(){return!mK("a","y").sticky}));var Rxe={BROKEN_CARET:_z||ra((function(){var e=mK("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:_z},by=Object.keys||function(e){return Dxe(e,pT)},Z8t=Kc?Object.defineProperties:function(e,t){gu(e);for(var n,r=s2(t),o=by(t),i=o.length,a=0;i>a;)l2.f(e,n=o[a++],r[n]);return e},X8t=SC("document","documentElement"),Bxe=kxe("IE_PROTO"),aN=function(){},Lxe=function(e){return"<script>"+e+"<\/script>"},Iue=function(e){e.write(Lxe("")),e.close();var t=e.parentWindow.Object;return e=null,t},R8=function(){try{O6=new ActiveXObject("htmlfile")}catch{}var e,t;R8=typeof document<"u"?document.domain&&O6?Iue(O6):((t=lK("iframe")).style.display="none",X8t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Lxe("document.F=Object")),e.close(),e.F):Iue(O6);for(var n=pT.length;n--;)delete R8.prototype[pT[n]];return R8()};dK[Bxe]=!0;var Oue,sN,Fxe=Object.create||function(e,t){var n;return e!==null?(aN.prototype=gu(e),n=new aN,aN.prototype=null,n[Bxe]=e):n=R8(),t===void 0?n:Z8t(n,t)},J8t=go.RegExp,eEt=ra((function(){var e=J8t(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),tEt=go.RegExp,nEt=ra((function(){var e=tEt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),rEt=Tz.get,oEt=aK("native-string-replace",String.prototype.replace),gT=RegExp.prototype.exec,Dz=gT,iEt=eo("".charAt),aEt=eo("".indexOf),sEt=eo("".replace),lN=eo("".slice),uN=(sN=/b*/g,ka(gT,Oue=/a/,"a"),ka(gT,sN,"a"),Oue.lastIndex!==0||sN.lastIndex!==0),Mue=Rxe.BROKEN_CARET,cN=/()??/.exec("")[1]!==void 0;(uN||cN||Mue||eEt||nEt)&&(Dz=function(e){var t,n,r,o,i,a,s,l=this,u=rEt(l),d=Zi(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=ka(Dz,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Mue&&l.sticky,v=ka(Nxe,l),h=l.source,g=0,y=d;if(p&&(v=sEt(v,"y",""),aEt(v,"g")===-1&&(v+="g"),y=lN(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&iEt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),cN&&(n=new RegExp("^"+h+"$(?!\\s)",v)),uN&&(r=l.lastIndex),o=ka(gT,p?n:l,y),p?o?(o.input=lN(o.input,g),o[0]=lN(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:uN&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),cN&&o&&o.length>1&&ka(oEt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=Fxe(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var GA=Dz;Za({target:"RegExp",proto:!0,forced:/./.exec!==GA},{exec:GA});var yK=Function.prototype,Pue=yK.apply,lEt=yK.bind,Nue=yK.call,Uxe=typeof Reflect=="object"&&Reflect.apply||(lEt?Nue.bind(Pue):function(){return Nue.apply(Pue,arguments)}),uEt=ku("species"),dN=RegExp.prototype,bK=function(e,t,n,r){var o=ku(e),i=!ra((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!ra((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[uEt]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=eo(/./[o]),l=t(o,""[e],(function(u,d,c,f,p){var v=eo(u),h=d.exec;return h===GA||h===dN.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));VA(String.prototype,e,l[0]),VA(dN,o,l[1])}r&&yb(dN[o],"sham",!0)},cEt=eo("".charAt),Rue=eo("".charCodeAt),dEt=eo("".slice),fEt=function(e){return function(t,n){var r,o,i=Zi(uc(t)),a=u2(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Rue(i,a))<55296||r>56319||a+1===s||(o=Rue(i,a+1))<56320||o>57343?e?cEt(i,a):r:e?dEt(i,a,a+2):o-56320+(r-55296<<10)+65536}},pEt=fEt(!0),wK=function(e,t,n){return t+(n?pEt(e,t).length:1)},hEt=Math.floor,fN=eo("".charAt),gEt=eo("".replace),pN=eo("".slice),vEt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mEt=/\$([$&'`]|\d{1,2})/g,yEt=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=mEt;return o!==void 0&&(o=EC(o),l=vEt),gEt(i,l,(function(u,d){var c;switch(fN(d,0)){case"$":return"$";case"&":return e;case"`":return pN(t,0,n);case"'":return pN(t,a);case"<":c=o[pN(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=hEt(f/10);return p===0?u:p<=s?r[p-1]===void 0?fN(d,1):r[p-1]+fN(d,1):u}c=r[f-1]}return c===void 0?"":c}))},bEt=go.TypeError,KA=function(e,t){var n=e.exec;if(Gs(n)){var r=ka(n,e,t);return r!==null&&gu(r),r}if($h(e)==="RegExp")return ka(GA,e,t);throw bEt("RegExp#exec called on incompatible receiver")},Iz=ku("replace"),wEt=Math.max,AEt=Math.min,CEt=eo([].concat),hN=eo([].push),Bue=eo("".indexOf),Lue=eo("".slice),xEt="a".replace(/./,"$0")==="$0",Fue=!!/./[Iz]&&/./[Iz]("a","$0")==="";bK("replace",(function(e,t,n){var r=Fue?"$":"$0";return[function(o,i){var a=uc(this),s=o==null?void 0:N7(o,Iz);return s?ka(s,o,a,i):ka(t,Zi(a),o,i)},function(o,i){var a=gu(this),s=Zi(o);if(typeof i=="string"&&Bue(i,r)===-1&&Bue(i,"$<")===-1){var l=n(t,a,s,i);if(l.done)return l.value}var u=Gs(i);u||(i=Zi(i));var d=a.global;if(d){var c=a.unicode;a.lastIndex=0}for(var f=[];;){var p=KA(a,s);if(p===null||(hN(f,p),!d))break;Zi(p[0])===""&&(a.lastIndex=wK(s,kC(a.lastIndex),c))}for(var v,h="",g=0,y=0;y<f.length;y++){for(var m=Zi((p=f[y])[0]),b=wEt(AEt(u2(p.index),s.length),0),w=[],A=1;A<p.length;A++)hN(w,(v=p[A])===void 0?v:String(v));var S=p.groups;if(u){var E=CEt([m],w,b,s);S!==void 0&&hN(E,S);var D=Zi(Uxe(i,void 0,E))}else D=yEt(m,s,b,w,S,i);b>=g&&(h+=Lue(s,g,b)+D,g=b+m.length)}return h+Lue(s,g)}]}),!!ra((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!xEt||Fue);var Oz=ku("unscopables"),Mz=Array.prototype;Mz[Oz]==null&&l2.f(Mz,Oz,{configurable:!0,value:Fxe(null)});var zxe=function(e){Mz[Oz][e]=!0},SEt=L7.find,Uue=!0;"find"in[]&&Array(1).find((function(){Uue=!1})),Za({target:"Array",proto:!0,forced:Uue},{find:function(e){return SEt(this,e,arguments.length>1?arguments[1]:void 0)}}),zxe("find");var EEt=ku("match"),$xe=function(e){var t;return Id(e)&&((t=e[EEt])!==void 0?!!t:$h(e)=="RegExp")},kEt=go.TypeError,TEt=ku("species"),jxe=function(e,t,n){var r=sK(t);r in e?l2.f(e,r,rK(0,n)):e[r]=n},_Et=go.Array,DEt=Math.max,zue=function(e,t,n){for(var r=B7(e),o=qA(t,r),i=qA(n===void 0?r:n,r),a=_Et(DEt(i-o,0)),s=0;o<i;o++,s++)jxe(a,s,e[o]);return a.length=s,a},i1=Rxe.UNSUPPORTED_Y,IEt=Math.min,Hxe=[].push,OEt=eo(/./.exec),a1=eo(Hxe),Rw=eo("".slice);bK("split",(function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Zi(uc(this)),s=i===void 0?4294967295:i>>>0;if(s===0)return[];if(o===void 0)return[a];if(!$xe(o))return ka(t,a,o,s);for(var l,u,d,c=[],f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,f+"g");(l=ka(GA,v,a))&&!((u=v.lastIndex)>p&&(a1(c,Rw(a,p,l.index)),l.length>1&&l.index<a.length&&Uxe(Hxe,c,zue(l,1)),d=l[0].length,p=u,c.length>=s));)v.lastIndex===l.index&&v.lastIndex++;return p===a.length?!d&&OEt(v,"")||a1(c,""):a1(c,Rw(a,p)),c.length>s?zue(c,0,s):c}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:ka(t,this,o,i)}:t,[function(o,i){var a=uc(this),s=o==null?void 0:N7(o,e);return s?ka(s,o,a,i):ka(r,Zi(a),o,i)},function(o,i){var a=gu(this),s=Zi(o),l=n(r,a,s,i,r!==t);if(l.done)return l.value;var u=(function(w,A){var S,E=gu(w).constructor;return E===void 0||(S=gu(E)[TEt])==null?A:(function(D){if(gK(D))return D;throw kEt(Cxe(D)+" is not a constructor")})(S)})(a,RegExp),d=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(i1?"g":"y"),f=new u(i1?"^(?:"+a.source+")":a,c),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return KA(f,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){f.lastIndex=i1?0:h;var y,m=KA(f,i1?Rw(s,h):s);if(m===null||(y=IEt(kC(f.lastIndex+(i1?h:0)),s.length))===v)h=wK(s,h,d);else{if(a1(g,Rw(s,v,h)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(a1(g,m[b]),g.length===p)return g;h=v=y}}return a1(g,Rw(s,v)),g}]}),!!ra((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),i1);var Pz=`
- \v\f\r \u2028\u2029\uFEFF`,$ue=eo("".replace),vT="["+Pz+"]",MEt=RegExp("^"+vT+vT+"*"),PEt=RegExp(vT+vT+"*$"),NEt=function(e){return function(t){var n=Zi(uc(t));return 1&e&&(n=$ue(n,MEt,"")),2&e&&(n=$ue(n,PEt,"")),n}},REt={trim:NEt(3)},BEt=R7.PROPER,LEt=REt.trim;function AK(e){return Pt("<div>"+e+"</div>").children().filter((function(t){return t.tagName!=="BR"})).length===0}function c2(e){return e.length===0?"":e[0].outerHTML}function d2(e){return e.length?e[0].tagName.toLowerCase():""}function Bc(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}Za({target:"String",proto:!0,forced:ra((function(){return!!Pz.trim()||"
".trim()!=="
"||BEt&&Pz.trim.name!=="trim"}))},{trim:function(){return LEt(this)}}),Za({global:!0},{globalThis:go}),jk&&(Pt.fn.css=jk),ac&&(Pt.fn.append=ac),_ae&&(Pt.fn.prepend=_ae),tb&&(Pt.fn.addClass=tb),nb&&(Pt.fn.removeClass=nb),rb&&(Pt.fn.hasClass=rb),Kd&&(Pt.fn.on=Kd),Sae&&(Pt.fn.off=Sae),b0&&(Pt.fn.focus=b0),ic&&(Pt.fn.attr=ic),Fk&&(Pt.fn.removeAttr=Fk),ib&&(Pt.fn.hide=ib),$k&&(Pt.fn.show=$k),Vk&&(Pt.fn.parents=Vk),ob&&(Pt.fn.dataset=ob),Gd&&(Pt.fn.val=Gd),Wk&&(Pt.fn.text=Wk),y0&&(Pt.fn.html=y0),lb&&(Pt.fn.children=lb),ub&&(Pt.fn.remove=ub),sb&&(Pt.fn.find=sb),Uk&&(Pt.fn.width=Uk),zk&&(Pt.fn.height=zk),kae&&(Pt.fn.filter=kae),cb&&(Pt.fn.empty=cb);var FEt={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(e);return(t=t.filter((function(o){return!!cr.isText(o)||!!n.isInline(o)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},Nz=function(e,t){return Nz=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Nz(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function Yi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Nz(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var C0=function(){return C0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C0.apply(this,arguments)};function $0(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(u){try{l(r.next(u))}catch(d){i(d)}}function s(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){var d;u.done?o(u.value):(d=u.value,d instanceof n?d:new n((function(c){c(d)}))).then(a,s)}l((r=r.apply(e,[])).next())}))}function j0(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return(function(d){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(d[0]===6&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(c){d=[6,c],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}})([l,u])}}}function Wxe(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qo(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function jue(e){var t=Qo(Je.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!Mr.isElement(n)||n.type==="paragraph"||Xn.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!cr.isText(o[0])&&(nn.setNodes(e,{type:"paragraph"}),!0)}var UEt={renderElems:[WSt],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[FEt],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){jue(r)||t(o)},r.deleteForward=function(o){jue(r)||n(o)},r}},zEt=/"/g,$Et=eo("".replace),N4=function(e,t,n,r){var o=Zi(uc(e)),i="<"+t;return n!==""&&(i+=" "+n+'="'+$Et(Zi(r),zEt,""")+'"'),i+">"+o+"</"+t+">"},R4=function(e){return ra((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function gN(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function lg(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Za({target:"String",proto:!0,forced:R4("bold")},{bold:function(){return N4(this,"b","","")}}),Za({target:"String",proto:!0,forced:R4("italics")},{italics:function(){return N4(this,"i","","")}}),Za({target:"String",proto:!0,forced:R4("sub")},{sub:function(){return N4(this,"sub","","")}}),Za({target:"String",proto:!0,forced:R4("sup")},{sup:function(){return N4(this,"sup","","")}});var Hue={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},vN=lK("span").classList,Wue=vN&&vN.constructor&&vN.constructor.prototype,jEt=Wue===Object.prototype?void 0:Wue,Vxe=function(e,t){var n=[][e];return!!n&&ra((function(){n.call(null,t||function(){throw 1},1)}))},HEt=L7.forEach,mN=Vxe("forEach")?[].forEach:function(e){return HEt(this,e,arguments.length>1?arguments[1]:void 0)},qxe=function(e){if(e&&e.forEach!==mN)try{yb(e,"forEach",mN)}catch{e.forEach=mN}};for(var yN in Hue)Hue[yN]&&qxe(go[yN]&&go[yN].prototype);function Gxe(e,t){return e.selection==null||!!Qo(Je.nodes(e,{match:function(n){return kt.getNodeType(n)==="pre"||!!Je.isVoid(e,n)},universal:!0}),1)[0]}function WEt(e,t){Object.keys(t).forEach((function(n){n!=="text"&&Je.removeMark(e,n)}))}qxe(jEt),Za({target:"Object",stat:!0,forced:ra((function(){by(1)}))},{keys:function(e){return by(EC(e))}});var Sm=(function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=Je.marks(t);return r?r[n]:!!Qo(Je.nodes(t,{match:function(o){return o[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return Gxe(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,o=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),o&&o.forEach((function(i){return t.removeMark(i)})))},e})(),VEt='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',qEt='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',GEt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',KEt='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',YEt='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',Kxe='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',Yxe='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',QEt='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',ZEt='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',XEt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',JEt='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',ekt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',tkt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',nkt='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',rkt='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',okt='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',ikt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',akt='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',skt='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',lkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=Jn("textStyle.bold"),n.iconSvg=VEt,n.hotkey="mod+b",n}return Yi(t,e),t})(Sm),ukt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=Jn("textStyle.code"),n.iconSvg=YEt,n.hotkey="mod+e",n}return Yi(t,e),t})(Sm),ckt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=Jn("textStyle.italic"),n.iconSvg=GEt,n.hotkey="mod+i",n}return Yi(t,e),t})(Sm),dkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=Jn("textStyle.through"),n.iconSvg=KEt,n.hotkey="mod+shift+x",n}return Yi(t,e),t})(Sm),fkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=Jn("textStyle.underline"),n.iconSvg=qEt,n.hotkey="mod+u",n}return Yi(t,e),t})(Sm),pkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=Jn("textStyle.sub"),n.iconSvg=skt,n.hotkey="",n}return Yi(t,e),t})(Sm),hkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=Jn("textStyle.sup"),n.iconSvg=akt,n.hotkey="",n}return Yi(t,e),t})(Sm),gkt=(function(){function e(){this.title=Jn("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return Gxe(t)},e.prototype.exec=function(t,n){var r,o,i=Je.nodes(t,{match:function(l){return cr.isText(l)},universal:!0});try{for(var a=Wxe(i),s=a.next();!s.done;s=a.next())WEt(t,s.value[0])}catch(l){r={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},e})(),vkt={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,s=n.through,l=n.sub,u=n.sup,d=t;return r&&(d=ro("strong",null,d)),a&&(d=ro("code",null,d)),o&&(d=ro("em",null,d)),i&&(d=ro("u",null,d)),s&&(d=ro("s",null,d)),l&&(d=ro("sub",null,d)),u&&(d=ro("sup",null,d)),d},menus:[{key:"bold",factory:function(){return new lkt}},{key:"underline",factory:function(){return new fkt}},{key:"italic",factory:function(){return new ckt}},{key:"through",factory:function(){return new dkt}},{key:"code",factory:function(){return new ukt}},{key:"sub",factory:function(){return new pkt}},{key:"sup",factory:function(){return new hkt}},{key:"clearStyle",factory:function(){return new gkt}}],styleToHtml:function(e,t){if(!cr.isText(e))return t;if(AK(t))return gN(e,t);var n=Pt(t);if(d2(n)==="br")return gN(e,"<br>");var r=n.html();return r=gN(e,r),n.html(r),c2(n)},parseStyleHtml:function(e,t,n){var r=Pt(e);if(!cr.isText(t))return t;var o=t;return lg(r,"b,strong")&&(o.bold=!0),lg(r,"i,em")&&(o.italic=!0),lg(r,"u")&&(o.underline=!0),lg(r,"s,strike")&&(o.through=!0),lg(r,"sub")&&(o.sub=!0),lg(r,"sup")&&(o.sup=!0),lg(r,"code")&&(o.code=!0),o}};function _C(e){return function(t,n,r){return ro("h"+e,null,n)}}var mkt={type:"header1",renderElem:_C(1)},ykt={type:"header2",renderElem:_C(2)},bkt={type:"header3",renderElem:_C(3)},wkt={type:"header4",renderElem:_C(4)},Akt={type:"header5",renderElem:_C(5)},Ckt=R7.PROPER,Rz=RegExp.prototype,Qxe=Rz.toString,xkt=eo(Nxe),Skt=ra((function(){return Qxe.call({source:"a",flags:"b"})!="/a/b"})),Ekt=Ckt&&Qxe.name!="toString";(Skt||Ekt)&&VA(RegExp.prototype,"toString",(function(){var e=gu(this),t=Zi(e.source),n=e.flags;return"/"+t+"/"+Zi(n===void 0&&Axe(Rz,e)&&!("flags"in Rz)?xkt(e):n)}),{unsafe:!0});var bN,kkt=go.TypeError,Zxe=function(e){if($xe(e))throw kkt("The method doesn't accept regular expressions");return e},Tkt=ku("match"),Xxe=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Tkt]=!1,"/./"[e](t)}catch{}}return!1},_kt=uK.f,Vue=eo("".startsWith),Dkt=eo("".slice),Ikt=Math.min,que=Xxe("startsWith");function Jxe(e){var t=Qo(Je.nodes(e,{match:function(o){return kt.getNodeType(o).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=Qo(n,1)[0];return kt.getNodeType(r)}function e6e(e){return e.selection==null||!Qo(Je.nodes(e,{match:function(t){var n=kt.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function t6e(e,t){t&&nn.setNodes(e,{type:t})}Za({target:"String",proto:!0,forced:!(!que&&(bN=_kt(String.prototype,"startsWith"),bN&&!bN.writable)||que)},{startsWith:function(e){var t=Zi(uc(this));Zxe(e);var n=kC(Ikt(arguments.length>1?arguments[1]:void 0,t.length)),r=Zi(e);return Vue?Vue(t,r,n):Dkt(t,n,n+r.length)===r}});var Okt=(function(){function e(){this.title=Jn("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:Jn("header.text")}],r=this.getValue(t).toString();return n.forEach((function(o){o.value===r?o.selected=!0:delete o.selected})),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return Jxe(t)},e.prototype.isDisabled=function(t){return e6e(t)},e.prototype.exec=function(t,n){t6e(t,n.toString())},e})(),DC=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return Jxe(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return e6e(t)},e.prototype.exec=function(t,n){var r=this.type;t6e(t,n===r?"paragraph":r)},e})(),Mkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Yi(t,e),t})(DC),Pkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Yi(t,e),t})(DC),Nkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Yi(t,e),t})(DC),Rkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Yi(t,e),t})(DC),Bkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Yi(t,e),t})(DC),Lkt={key:"headerSelect",factory:function(){return new Okt}},Fkt={key:"header1",factory:function(){return new Mkt}},Ukt={key:"header2",factory:function(){return new Pkt}},zkt={key:"header3",factory:function(){return new Nkt}},$kt={key:"header4",factory:function(){return new Rkt}},jkt={key:"header5",factory:function(){return new Bkt}};function Bw(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Lw(e){return function(t,n,r){var o=Pt(t);return(n=n.filter((function(i){return!!cr.isText(i)||!!r.isInline(i)}))).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Hkt={renderElems:[mkt,ykt,bkt,wkt,Akt],elemsToHtml:[{type:"header1",elemToHtml:Bw(1)},{type:"header2",elemToHtml:Bw(2)},{type:"header3",elemToHtml:Bw(3)},{type:"header4",elemToHtml:Bw(4)},{type:"header5",elemToHtml:Bw(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Lw(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Lw(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Lw(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Lw(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Lw(5)}],menus:[Lkt,Fkt,Ukt,zkt,$kt,jkt],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Qo(Je.nodes(n,{match:function(o){return kt.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&kt.isSelectionAtLineEnd(e,r[1])?nn.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},s1=Object.assign,Gue=Object.defineProperty,Wkt=eo([].concat),Kue=!s1||ra((function(){if(Kc&&s1({b:1},s1(Gue({},"a",{enumerable:!0,get:function(){Gue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(o){t[o]=o})),s1({},e)[n]!=7||by(s1({},t)).join("")!=r}))?function(e,t){for(var n=EC(e),r=arguments.length,o=1,i=Ixe.f,a=bxe.f;r>o;)for(var s,l=P7(arguments[o++]),u=i?Wkt(by(l),i(l)):by(l),d=u.length,c=0;d>c;)s=u[c++],Kc&&!ka(a,l,s)||(n[s]=l[s]);return n}:s1;function Jv(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}Za({target:"Object",stat:!0,forced:Object.assign!==Kue},{assign:Kue});var Vkt={selector:"font",preParseHtml:function(e){var t=Pt(e);if(d2(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},n6e=(function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=Je.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Qo(Je.nodes(t,{match:function(n){return kt.getNodeType(n)==="pre"||!!Je.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=Pt('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",(function(u){var d=u.target;if(d!=null&&(u.preventDefault(),t.selection!=null)){var c=Pt(d).attr("data-value");c==="0"?Je.removeMark(t,n):Je.addMark(t,n,c)}})),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(n).colors;(a===void 0?[]:a).forEach((function(u){var d=Pt('<div class="color-block" data-value="'+u+'"></div>');d.css("background-color",u);var c=Pt('<li data-value="'+u+'"></li>');i===u&&c.addClass("active"),c.append(d),o.append(c)}));var s="";n==="color"&&(s=Jn("color.default")),n==="bgColor"&&(s=Jn("color.clear"));var l=Pt(`
- <li data-value="0" class="clear">
- <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
- `+s+`
- </li>
- `);return o.prepend(l),o[0]},e})(),qkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("color.color"),n.iconSvg=QEt,n.mark="color",n}return Yi(t,e),t})(n6e),Gkt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("color.bgColor"),n.iconSvg=ZEt,n.mark="bgColor",n}return Yi(t,e),t})(n6e),Yue=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],Kkt={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Jv(i,{color:r}),o&&Jv(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!cr.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((AK(t)||d2(n=Pt(t))!=="span")&&(n=Pt("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),c2(n)):t},preParseHtml:[Vkt],parseStyleHtml:function(e,t,n){var r=Pt(e);if(!cr.isText(t))return t;var o=t,i=Bc(r,"color");i&&(o.color=i);var a=Bc(r,"background-color");return a||(a=Bc(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new qkt},config:{colors:Yue}},{key:"bgColor",factory:function(){return new Gkt},config:{colors:Yue}}]},Ykt=/^(?:\w+:)?\/\/(\S+)$/,Qkt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Zkt=/^[^\s\.]+\.\S{2,}$/,Xkt=_xe.includes;function F7(e){return e===void 0&&(e="r"),e+"-"+S5e()}function CK(e){return e.replace(/</g,"<").replace(/>/g,">")}function r6e(e,t,n,r){return $0(this,void 0,void 0,(function(){var o,i;return j0(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function o6e(e,t,n){return $0(this,void 0,void 0,(function(){var r;return j0(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function xK(e){return e.selection==null||!!kt.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function wN(e,t){return{type:"link",url:CK(e),children:t?[{text:t}]:[]}}function i6e(e,t,n){return $0(this,void 0,void 0,(function(){var r,o,i;return j0(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),xK(e)?[2]:[4,r6e("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,o6e("insertLink",e,n)]:[2];case 2:return r=a.sent(),(o=e.selection)==null||(pn.isCollapsed(o)?(e.insertText(" "),i=wN(r,t),nn.insertNodes(e,i),e.insertFragment([{text:" "}])):Je.string(e,o)!==t?(e.deleteFragment(),i=wN(r,t),nn.insertNodes(e,i)):(i=wN(r),nn.wrapNodes(e,i,{split:!0}),nn.collapse(e,{edge:"end"}))),[2]}}))}))}Za({target:"Array",proto:!0},{includes:function(e){return Xkt(this,e,arguments.length>1?arguments[1]:void 0)}}),zxe("includes");var Jkt={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return ro("a",{href:o,target:i===void 0?"_blank":i},t)}},eTt={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(e);return(t=t.filter((function(o){return!!cr.isText(o)||!!n.isInline(o)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function AN(){return F7("w-e-insert-link")}var tTt=(function(){function e(){this.title=Jn("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=AN(),this.urlInputId=AN(),this.buttonId=AN()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return xK(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,s=Qo(hu(Jn("link.text"),o),2),l=s[0],u=Pt(s[1]),d=Qo(hu(Jn("link.url"),i),2),c=d[0],f=Pt(d[1]),p=Qo(a2(a,Jn("common.ok")),1)[0];if(this.$content==null){var v=Pt("<div></div>");v.on("click","#"+a,(function(y){y.preventDefault();var m=v.find("#"+o).val(),b=v.find("#"+i).val();i6e(t,m,b),t.hidePanelOrModal()})),this.$content=v}var h=this.$content;if(h.empty(),h.append(l),h.append(c),h.append(p),n==null||pn.isCollapsed(n))u.val("");else{var g=Je.string(t,n);u.val(g)}return f.val(""),setTimeout((function(){u.focus()})),h[0]},e})();function Que(){return F7("w-e-update-link")}var nTt=(function(){function e(){this.title=Jn("link.edit"),this.iconSvg=Kxe,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Que(),this.buttonId=Que()}return e.prototype.getSelectedLinkElem=function(t){var n=kt.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return kt.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,o=Qo(hu(Jn("link.url"),n),2),i=o[0],a=Pt(o[1]),s=Qo(a2(r,Jn("common.ok")),1)[0];if(this.$content==null){var l=Pt("<div></div>");l.on("click","button",(function(c){c.preventDefault(),t.restoreSelection();var f=kt.getSelectedNodeByType(t,"link"),p=f?Xn.string(f):"",v=l.find("#"+n).val();(function(h,g,y){$0(this,void 0,void 0,(function(){var m,b;return j0(this,(function(w){switch(w.label){case 0:return y?[4,r6e("editLink",h,g,y)]:[2];case 1:return w.sent()?[4,o6e("editLink",h,y)]:[2];case 2:return m=w.sent(),b={url:CK(m)},nn.setNodes(h,b,{match:function(A){return kt.checkNodeType(A,"link")}}),[2]}}))}))})(t,p,v),t.hidePanelOrModal()})),this.$content=l}var u=this.$content;u.empty(),u.append(i),u.append(s);var d=this.getValue(t);return a.val(d),setTimeout((function(){a.focus()})),u[0]},e})(),rTt=(function(){function e(){this.title=Jn("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||kt.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||nn.unwrapNodes(t,{match:function(r){return kt.checkNodeType(r,"link")}})},e})(),oTt=(function(){function e(){this.title=Jn("link.view"),this.iconSvg=Yxe,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=kt.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e})(),Zue={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},iTt={renderElems:[Jkt],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[eTt],menus:[{key:"insertLink",factory:function(){return new tTt},config:Zue},{key:"editLink",factory:function(){return new nTt},config:Zue},{key:"unLink",factory:function(){return new rTt}},{key:"viewLink",factory:function(){return new oTt}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if((function(u){if(typeof u!="string")return!1;var d=u.match(Ykt);if(!d)return!1;var c=d[1];return!(!c||!Qkt.test(c)&&!Zkt.test(c))})(a)){if(!xK(o)){var s=o.selection;if(s!=null){var l=Je.string(o,s);i6e(o,l,a)}}}else n(i)},o.normalizeNode=function(i){var a=Qo(i,2),s=a[0],l=a[1];return kt.getNodeType(s)!=="link"?r([s,l]):Xn.string(s)===""?nn.removeNodes(o,{at:l}):r([s,l])},o}},aTt=eo(1 .valueOf),sTt=go.RangeError,lTt=go.RangeError,a6e=go.String,s6e=Math.floor,Bz=eo((function(e){var t=Zi(uc(this)),n="",r=u2(e);if(r<0||r==1/0)throw sTt("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Xue=eo("".slice),Fw=eo(1 .toFixed),G1=function(e,t,n){return t===0?n:t%2==1?G1(e,t-1,n*e):G1(e*e,t/2,n)},l1=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=s6e(o/1e7)},CN=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=s6e(r/t),r=r%t*1e7},Jue=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=a6e(e[t]);n=n===""?r:n+Bz("0",7-r.length)+r}return n};function ece(e,t){return"w-e-image-container-"+kt.findKey(e,t).id}Za({target:"Number",proto:!0,forced:ra((function(){return Fw(8e-5,3)!=="0.000"||Fw(.9,0)!=="1"||Fw(1.255,2)!=="1.25"||Fw(0xde0b6b3a7640080,0)!=="1000000000000000128"}))||!ra((function(){Fw({})}))},{toFixed:function(e){var t,n,r,o,i=aTt(this),a=u2(e),s=[0,0,0,0,0,0],l="",u="0";if(a<0||a>20)throw lTt("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return a6e(i);if(i<0&&(l="-",i=-i),i>1e-21)if(n=(t=(function(d){for(var c=0,f=d;f>=4096;)c+=12,f/=4096;for(;f>=2;)c+=1,f/=2;return c})(i*G1(2,69,1))-69)<0?i*G1(2,-t,1):i/G1(2,t,1),n*=4503599627370496,(t=52-t)>0){for(l1(s,0,n),r=a;r>=7;)l1(s,1e7,0),r-=7;for(l1(s,G1(10,r,1),0),r=t-1;r>=23;)CN(s,1<<23),r-=23;CN(s,1<<r),l1(s,1,1),CN(s,2),u=Jue(s)}else l1(s,0,n),l1(s,1<<-t,0),u=Jue(s)+Bz("0",a);return a>0?l+((o=u.length)<=a?"0."+Bz("0",a-o)+u:Xue(u,0,o-a)+"."+Xue(u,o-a)):l+u}});var uTt={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=i===void 0?"":i,s=r.href,l=s===void 0?"":s,u=r.style,d=u===void 0?{}:u,c=d.width,f=c===void 0?"":c,p=d.height,v=p===void 0?"":p,h=kt.isNodeSelected(n,e),g={};f&&(g.width="100%"),v&&(g.height="100%");var y=ro("img",{style:g,src:o,alt:a,"data-href":l}),m=n.isDisabled();return h&&!m?(function(b,w,A,S){var E=Pt("body"),D=ece(b,w),_=S.width,M=S.height,O=0,k=0,R=0,N=!1,W=null;function B(Y){W=(function(){var H=Pt("#"+D);if(H.length===0)throw new Error("Cannot find image container elem");return H})(),O=Y;var U=W.find("img");if(U.length===0)throw new Error("Cannot find image elem");k=U.width(),R=U.height(),E.on("mousemove",z),E.on("mouseup",j);var F=kt.getHoverbar(b);F&&F.hideAndClean()}var z=Gv((function(Y){Y.preventDefault();var U=Y.clientX,F=k+(N?O-U:U-O),H=R*(F/k);W!=null&&(F<=15||H<=15||(W.css("width",F+"px"),W.css("height",H+"px")))}),100);function j(Y){if(E.off("mousemove",z),W!=null){var U=W.width().toFixed(2),F=W.height().toFixed(2),H={style:C0(C0({},w.style),{width:U+"px",height:F+"px"})};nn.setNodes(b,H,{at:kt.findPath(b,w)}),E.off("mouseup",j)}}var q={};return _&&(q.width=_),M&&(q.height=M),ro("div",{id:D,style:q,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(Y){var U=Pt(Y.target);U.hasClass("w-e-image-dragger")&&(Y.preventDefault(),(U.hasClass("left-top")||U.hasClass("left-bottom"))&&(N=!0),B(Y.clientX))}}},A,ro("div",{className:"w-e-image-dragger left-top"}),ro("div",{className:"w-e-image-dragger right-top"}),ro("div",{className:"w-e-image-dragger left-bottom"}),ro("div",{className:"w-e-image-dragger right-bottom"}))})(n,e,y,{width:f,height:v}):(function(b,w,A,S){var E=S.width,D=S.height,_={};return E&&(_.width=E),D&&(_.height=D),ro("div",{id:ece(b,w),style:_,className:"w-e-image-container"},A)})(n,e,y,{width:f,height:v})}},cTt={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Bc(r,"width"),height:Bc(r,"height")},children:[{text:""}]}}};function l6e(e,t,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),$0(this,void 0,void 0,(function(){var i,a;return j0(this,(function(s){switch(s.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=s.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function u6e(e,t,n){return $0(this,void 0,void 0,(function(){var r;return j0(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function pv(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),$0(this,void 0,void 0,(function(){var o,i,a;return j0(this,(function(s){switch(s.label){case 0:return[4,l6e("insertImage",e,t,n,r)];case 1:return s.sent()?[4,u6e("insertImage",e,t)]:[2];case 2:return o=s.sent(),i={type:"image",src:CK(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),kt.getSelectedNodeByType(e,"image")&&e.move(1),U7(e)||(nn.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function U7(e){var t=e.selection;return t==null||!pn.isCollapsed(t)||!!Qo(Je.nodes(e,{match:function(n){var r=kt.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!Je.isVoid(e,n)},universal:!0}),1)[0]}function M6(){return F7("w-e-insert-image")}var dTt=(function(){function e(){this.title=Jn("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=M6(),this.altInputId=M6(),this.hrefInputId=M6(),this.buttonId=M6()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return U7(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,s=r.buttonId,l=Qo(hu(Jn("image.src"),o),2),u=l[0],d=Pt(l[1]),c=Qo(hu(Jn("image.desc"),i),2),f=c[0],p=Pt(c[1]),v=Qo(hu(Jn("image.link"),a),2),h=v[0],g=Pt(v[1]),y=Qo(a2(s,Jn("common.ok")),1)[0];if(this.$content==null){var m=Pt("<div></div>");m.on("click","#"+s,(function(w){w.preventDefault();var A=m.find("#"+o).val().trim(),S=m.find("#"+i).val().trim(),E=m.find("#"+a).val().trim();n.insertImage(t,A,S,E),t.hidePanelOrModal()})),this.$content=m}var b=this.$content;return b.empty(),b.append(u),b.append(f),b.append(h),b.append(y),d.val(""),p.val(""),g.val(""),setTimeout((function(){d.focus()})),b[0]},e.prototype.insertImage=function(t,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(t.restoreSelection(),this.isDisabled(t)||pv(t,n,r,o))},e})(),fTt=(function(){function e(){this.title=Jn("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||kt.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||nn.removeNodes(t,{match:function(r){return kt.checkNodeType(r,"image")}})},e})();function P6(){return F7("w-e-edit-image")}var pTt=(function(){function e(){this.title=Jn("image.edit"),this.iconSvg=Kxe,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=P6(),this.altInputId=P6(),this.hrefInputId=P6(),this.buttonId=P6()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return kt.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||kt.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,s=r.buttonId,l=this.getImageNode(t);if(l==null)throw new Error("Not found selected image node");var u=Qo(hu(Jn("image.src"),o),2),d=u[0],c=Pt(u[1]),f=Qo(hu(Jn("image.desc"),i),2),p=f[0],v=Pt(f[1]),h=Qo(hu(Jn("image.link"),a),2),g=h[0],y=Pt(h[1]),m=Qo(a2(s,Jn("common.ok")),1)[0];if(this.$content==null){var b=Pt("<div></div>");b.on("click","#"+s,(function(O){O.preventDefault();var k=b.find("#"+o).val(),R=b.find("#"+i).val(),N=b.find("#"+a).val();n.updateImage(t,k,R,N),t.hidePanelOrModal()})),this.$content=b}var w=this.$content;w.empty(),w.append(d),w.append(p),w.append(g),w.append(m);var A=l,S=A.src,E=A.alt,D=E===void 0?"":E,_=A.href,M=_===void 0?"":_;return c.val(S),v.val(D),y.val(M),setTimeout((function(){c.focus()})),w[0]},e.prototype.updateImage=function(t,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(t.restoreSelection(),this.isDisabled(t)||(function(a,s,l,u,d){l===void 0&&(l=""),u===void 0&&(u=""),d===void 0&&(d={}),$0(this,void 0,void 0,(function(){var c,f,p,v,h,g;return j0(this,(function(y){switch(y.label){case 0:return[4,l6e("editImage",a,s,l,u)];case 1:return y.sent()?[4,u6e("editImage",a,s)]:[2];case 2:return c=y.sent(),(f=kt.getSelectedNodeByType(a,"image"))==null||(p=f.style,v={src:c,alt:l,href:u,style:C0(C0({},p===void 0?{}:p),d)},nn.setNodes(a,v,{match:function(m){return kt.checkNodeType(m,"image")}}),h=kt.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(h)),[2]}}))}))})(t,n,r,o,i))},e})(),hTt=(function(){function e(){this.title=Jn("image.viewLink"),this.iconSvg=Yxe,this.tag="button"}return e.prototype.getValue=function(t){var n=kt.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e})(),SK=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return kt.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var o=kt.getHoverbar(t);o&&o.hideAndClean();var i=r.style,a={style:C0(C0({},i===void 0?{}:i),{width:this.value,height:""})};nn.setNodes(t,a,{match:function(s){return kt.checkNodeType(s,"image")}})}}},e})(),gTt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Yi(t,e),t})(SK),vTt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Yi(t,e),t})(SK),mTt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Yi(t,e),t})(SK),tce={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},yTt={renderElems:[uTt],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,s=a===void 0?"":a,l=n.style,u=l===void 0?{}:l,d=u.width,c=d===void 0?"":d,f=u.height,p=f===void 0?"":f,v="";return c&&(v+="width: "+c+";"),p&&(v+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+s+'" style="'+v+'"/>'}}],parseElemsHtml:[cTt],menus:[{key:"insertImage",factory:function(){return new dTt},config:tce},{key:"deleteImage",factory:function(){return new fTt}},{key:"editImage",factory:function(){return new pTt},config:tce},{key:"viewImageLink",factory:function(){return new hTt}},{key:"imageWidth30",factory:function(){return new gTt}},{key:"imageWidth50",factory:function(){return new vTt}},{key:"imageWidth100",factory:function(){return new mTt}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(o){return o.type==="image"||t(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},bTt={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=ro("div",{style:{margin:"5px 0"}},ro("span",{contentEditable:!1,style:{marginRight:"0.5em"}},ro("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(i){var a=kt.findPath(n,e),s={checked:i.target.checked};nn.setNodes(n,s,{at:a})}}})),ro("span",null,t));return o}},wTt=(function(){function e(){this.title=Jn("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!kt.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!kt.getSelectedElems(t).some((function(n){if(Je.isVoid(t,n)&&Je.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0}))},e.prototype.exec=function(t,n){var r=this.isActive(t);nn.setNodes(t,{type:r?"paragraph":"todo"})},e})(),ATt={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Pt(e);(t=t.filter((function(i){return!!cr.isText(i)||!!n.isInline(i)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},CTt={renderElems:[bTt],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Pt(e).find("li"),n=Pt('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[ATt],menus:[{key:"todo",factory:function(){return new wTt}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var o=e.selection;if(o&&pn.isCollapsed(o)){var i=kt.getSelectedNodeByType(e,"todo");if(i&&Xn.string(i).length===0)return void nn.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},xTt={type:"blockquote",renderElem:function(e,t,n){return ro("blockquote",null,t)}},STt={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(e);return(t=t.filter((function(o){return!!cr.isText(o)||!!n.isInline(o)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},ETt=(function(){function e(){this.title=Jn("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!kt.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Qo(Je.nodes(t,{match:function(n){var r=kt.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";nn.setNodes(t,{type:r},{mode:"highest"})}},e})(),kTt={key:"blockquote",factory:function(){return new ETt}},TTt=eo([].slice),_Tt=vK("slice"),DTt=ku("species"),xN=go.Array,ITt=Math.max;Za({target:"Array",proto:!0,forced:!_Tt},{slice:function(e,t){var n,r,o,i=s2(this),a=B7(i),s=qA(e,a),l=qA(t===void 0?a:t,a);if(hT(i)&&(n=i.constructor,(gK(n)&&(n===xN||hT(n.prototype))||Id(n)&&(n=n[DTt])===null)&&(n=void 0),n===xN||n===void 0))return TTt(i,s,l);for(r=new(n===void 0?xN:n)(ITt(l-s,0)),o=0;s<l;s++,o++)s in i&&jxe(r,o,i[s]);return r.length=o,r}});var OTt={renderElems:[xTt],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[STt],menus:[kTt],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(o==null)return t();var i=Qo(Je.nodes(e,{match:function(d){return kt.checkNodeType(d,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],s=kt.findPath(e,a),l=Je.end(e,s);if(Ao.equals(l,o.focus)){var u=Xn.string(a);if(u&&u.slice(-1)===`
- `)return e.deleteBackward("character"),void nn.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},MTt=(function(){function e(){this.title=Jn("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Qo(Je.nodes(t,{match:function(n){return kt.getNodeType(n)==="pre"||!!Je.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=Pt('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",(function(i){var a=i.target;if(a!=null){i.preventDefault();var s=Pt(a).text();t.insertText(s)}})),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach((function(i){var a=Pt("<li>"+i+"</li>");r.append(a)})),r[0]},e})(),PTt={menus:[{key:"emotion",factory:function(){return new MTt},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},NTt={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},RTt={selector:"font",preParseHtml:function(e){var t=Pt(e);if(d2(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",NTt[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},BTt=eo("".indexOf);Za({target:"String",proto:!0,forced:!Xxe("includes")},{includes:function(e){return!!~BTt(Zi(uc(this)),Zi(Zxe(e)),arguments.length>1?arguments[1]:void 0)}});var Yp,B8,N6=function(e){return e&&e.Math==Math&&e},ko=N6(typeof globalThis=="object"&&globalThis)||N6(typeof window=="object"&&window)||N6(typeof self=="object"&&self)||N6(typeof dT=="object"&&dT)||(function(){return this})()||Function("return this")(),EK=Function.prototype,nce=EK.apply,LTt=EK.bind,rce=EK.call,c6e=typeof Reflect=="object"&&Reflect.apply||(LTt?rce.bind(nce):function(){return rce.apply(nce,arguments)}),d6e=Function.prototype,Lz=d6e.bind,Fz=d6e.call,FTt=Lz&&Lz.bind(Fz),wa=Lz?function(e){return e&&FTt(Fz,e)}:function(e){return e&&function(){return Fz.apply(e,arguments)}},Ks=function(e){return typeof e=="function"},wu=function(e){try{return!!e()}catch{return!0}},jl=!wu((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Uw=Function.prototype.call,Fd=Uw.bind?Uw.bind(Uw):function(){return Uw.apply(Uw,arguments)},oce={}.propertyIsEnumerable,ice=Object.getOwnPropertyDescriptor,UTt=ice&&!oce.call({1:2},1)?function(e){var t=ice(this,e);return!!t&&t.enumerable}:oce,kK={f:UTt},em=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zTt=wa({}.toString),$Tt=wa("".slice),hv=function(e){return $Tt(zTt(e),8,-1)},SN=ko.Object,jTt=wa("".split),f6e=wu((function(){return!SN("z").propertyIsEnumerable(0)}))?function(e){return hv(e)=="String"?jTt(e,""):SN(e)}:SN,HTt=ko.TypeError,TK=function(e){if(e==null)throw HTt("Can't call method on "+e);return e},uf=function(e){return f6e(TK(e))},_c=function(e){return typeof e=="object"?e!==null:Ks(e)},Bu={},ace=function(e){return Ks(e)?e:void 0},IC=function(e,t){return arguments.length<2?ace(Bu[e])||ace(ko[e]):Bu[e]&&Bu[e][t]||ko[e]&&ko[e][t]},p6e=wa({}.isPrototypeOf),EN=IC("navigator","userAgent")||"",sce=ko.process,lce=ko.Deno,uce=sce&&sce.versions||lce&&lce.version,cce=uce&&uce.v8;cce&&(B8=(Yp=cce.split("."))[0]>0&&Yp[0]<4?1:+(Yp[0]+Yp[1])),!B8&&EN&&(!(Yp=EN.match(/Edge\/(\d+)/))||Yp[1]>=74)&&(Yp=EN.match(/Chrome\/(\d+)/))&&(B8=+Yp[1]);var mT=B8,gd=!!Object.getOwnPropertySymbols&&!wu((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&mT&&mT<41})),_K=gd&&!Symbol.sham&&typeof Symbol.iterator=="symbol",WTt=ko.Object,wy=_K?function(e){return typeof e=="symbol"}:function(e){var t=IC("Symbol");return Ks(t)&&p6e(t.prototype,WTt(e))},VTt=ko.String,qTt=ko.TypeError,h6e=function(e){if(Ks(e))return e;throw qTt((function(t){try{return VTt(t)}catch{return"Object"}})(e)+" is not a function")},GTt=ko.TypeError,KTt=Object.defineProperty,Hh=ko["__core-js_shared__"]||(function(e,t){try{KTt(ko,e,{value:t,configurable:!0,writable:!0})}catch{ko[e]=t}return t})("__core-js_shared__",{}),Em=M7((function(e){(e.exports=function(t,n){return Hh[t]||(Hh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),YTt=ko.Object,OC=function(e){return YTt(TK(e))},QTt=wa({}.hasOwnProperty),Yo=Object.hasOwn||function(e,t){return QTt(OC(e),t)},ZTt=0,XTt=Math.random(),JTt=wa(1 .toString),yT=function(e){return"Symbol("+(e===void 0?"":e)+")_"+JTt(++ZTt+XTt,36)},zw=Em("wks"),gv=ko.Symbol,dce=gv&&gv.for,e_t=_K?gv:gv&&gv.withoutSetter||yT,Tu=function(e){if(!Yo(zw,e)||!gd&&typeof zw[e]!="string"){var t="Symbol."+e;gd&&Yo(gv,e)?zw[e]=gv[e]:zw[e]=_K&&dce?dce(t):e_t(t)}return zw[e]},t_t=ko.TypeError,n_t=Tu("toPrimitive"),f2=function(e){var t=(function(n,r){if(!_c(n)||wy(n))return n;var o,i,a=(o=n[n_t])==null?void 0:h6e(o);if(a){if(i=Fd(a,n,r),!_c(i)||wy(i))return i;throw t_t("Can't convert object to primitive value")}return(function(s,l){var u,d;if(Ks(u=s.toString)&&!_c(d=Fd(u,s))||Ks(u=s.valueOf)&&!_c(d=Fd(u,s)))return d;throw GTt("Can't convert object to primitive value")})(n)})(e,"string");return wy(t)?t:t+""},Uz=ko.document,r_t=_c(Uz)&&_c(Uz.createElement),g6e=function(e){return r_t?Uz.createElement(e):{}},v6e=!jl&&!wu((function(){return Object.defineProperty(g6e("div"),"a",{get:function(){return 7}}).a!=7})),fce=Object.getOwnPropertyDescriptor,DK={f:jl?fce:function(e,t){if(e=uf(e),t=f2(t),v6e)try{return fce(e,t)}catch{}if(Yo(e,t))return em(!Fd(kK.f,e,t),e[t])}},o_t=/#|\.prototype\./,MC=function(e,t){var n=a_t[i_t(e)];return n==l_t||n!=s_t&&(Ks(t)?wu(t):!!t)},i_t=MC.normalize=function(e){return String(e).replace(o_t,".").toLowerCase()},a_t=MC.data={},s_t=MC.NATIVE="N",l_t=MC.POLYFILL="P",u_t=MC,pce=wa(wa.bind),m6e=function(e,t){return h6e(e),t===void 0?e:pce?pce(e,t):function(){return e.apply(t,arguments)}},c_t=ko.String,d_t=ko.TypeError,tm=function(e){if(_c(e))return e;throw d_t(c_t(e)+" is not an object")},f_t=ko.TypeError,hce=Object.defineProperty,km={f:jl?hce:function(e,t,n){if(tm(e),t=f2(t),tm(n),v6e)try{return hce(e,t,n)}catch{}if("get"in n||"set"in n)throw f_t("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bd=jl?function(e,t,n){return km.f(e,t,em(1,n))}:function(e,t,n){return e[t]=n,e},p_t=DK.f,h_t=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return c6e(e,this,arguments)};return t.prototype=e.prototype,t},fh=function(e,t){var n,r,o,i,a,s,l,u,d=e.target,c=e.global,f=e.stat,p=e.proto,v=c?ko:f?ko[d]:(ko[d]||{}).prototype,h=c?Bu:Bu[d]||bd(Bu,d,{})[d],g=h.prototype;for(o in t)n=!u_t(c?o:d+(f?".":"#")+o,e.forced)&&v&&Yo(v,o),a=h[o],n&&(s=e.noTargetGet?(u=p_t(v,o))&&u.value:v[o]),i=n&&s?s:t[o],n&&typeof a==typeof i||(l=e.bind&&n?m6e(i,ko):e.wrap&&n?h_t(i):p&&Ks(i)?wa(i):i,(e.sham||i&&i.sham||a&&a.sham)&&bd(l,"sham",!0),bd(h,o,l),p&&(Yo(Bu,r=d+"Prototype")||bd(Bu,r,{}),bd(Bu[r],o,i),e.real&&g&&!g[o]&&bd(g,o,i)))},bT=Array.isArray||function(e){return hv(e)=="Array"},g_t=Math.ceil,v_t=Math.floor,IK=function(e){var t=+e;return t!=t||t===0?0:(t>0?v_t:g_t)(t)},m_t=Math.min,z7=function(e){return(t=e.length)>0?m_t(IK(t),9007199254740991):0;var t},zz=function(e,t,n){var r=f2(t);r in e?km.f(e,r,em(0,n)):e[r]=n},y6e={};y6e[Tu("toStringTag")]="z";var OK=String(y6e)==="[object z]",y_t=Tu("toStringTag"),b_t=ko.Object,w_t=hv((function(){return arguments})())=="Arguments",$7=OK?hv:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=b_t(e),y_t))=="string"?n:w_t?hv(t):(r=hv(t))=="Object"&&Ks(t.callee)?"Arguments":r},A_t=wa(Function.toString);Ks(Hh.inspectSource)||(Hh.inspectSource=function(e){return A_t(e)});var b6e=Hh.inspectSource,w6e=function(){},C_t=[],A6e=IC("Reflect","construct"),MK=/^\s*(?:class|function)\b/,x_t=wa(MK.exec),S_t=!MK.exec(w6e),$w=function(e){if(!Ks(e))return!1;try{return A6e(w6e,C_t,e),!0}catch{return!1}},E_t=!A6e||wu((function(){var e;return $w($w.call)||!$w(Object)||!$w((function(){e=!0}))||e}))?function(e){if(!Ks(e))return!1;switch($7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return S_t||!!x_t(MK,b6e(e))}:$w,k_t=Tu("species"),gce=ko.Array,C6e=function(e,t){return new((function(n){var r;return bT(n)&&(r=n.constructor,(E_t(r)&&(r===gce||bT(r.prototype))||_c(r)&&(r=r[k_t])===null)&&(r=void 0)),r===void 0?gce:r})(e))(t===0?0:t)},T_t=Tu("species"),x6e=Tu("isConcatSpreadable"),vce=ko.TypeError,__t=mT>=51||!wu((function(){var e=[];return e[x6e]=!1,e.concat()[0]!==e})),D_t=mT>=51||!wu((function(){var e=[];return(e.constructor={})[T_t]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),I_t=function(e){if(!_c(e))return!1;var t=e[x6e];return t!==void 0?!!t:bT(e)};fh({target:"Array",proto:!0,forced:!__t||!D_t},{concat:function(e){var t,n,r,o,i,a=OC(this),s=C6e(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(I_t(i=t===-1?a:arguments[t])){if(l+(o=z7(i))>9007199254740991)throw vce("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&zz(s,l,i[n])}else{if(l>=9007199254740991)throw vce("Maximum allowed index exceeded");zz(s,l++,i)}return s.length=l,s}});var R6,O_t=ko.String,wT=function(e){if($7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return O_t(e)},M_t=Math.max,P_t=Math.min,$z=function(e,t){var n=IK(e);return n<0?M_t(n+t,0):P_t(n,t)},N_t=function(e){return function(t,n,r){var o,i=uf(t),a=z7(i),s=$z(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},R_t={indexOf:N_t(!1)},PC={},B_t=R_t.indexOf,mce=wa([].push),S6e=function(e,t){var n,r=uf(e),o=0,i=[];for(n in r)!Yo(PC,n)&&Yo(r,n)&&mce(i,n);for(;t.length>o;)Yo(r,n=t[o++])&&(~B_t(i,n)||mce(i,n));return i},AT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],PK=Object.keys||function(e){return S6e(e,AT)},L_t=jl?Object.defineProperties:function(e,t){tm(e);for(var n,r=uf(t),o=PK(t),i=o.length,a=0;i>a;)km.f(e,n=o[a++],r[n]);return e},F_t=IC("document","documentElement"),yce=Em("keys"),j7=function(e){return yce[e]||(yce[e]=yT(e))},E6e=j7("IE_PROTO"),kN=function(){},k6e=function(e){return"<script>"+e+"<\/script>"},bce=function(e){e.write(k6e("")),e.close();var t=e.parentWindow.Object;return e=null,t},L8=function(){try{R6=new ActiveXObject("htmlfile")}catch{}var e,t;L8=typeof document<"u"?document.domain&&R6?bce(R6):((t=g6e("iframe")).style.display="none",F_t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(k6e("document.F=Object")),e.close(),e.F):bce(R6);for(var n=AT.length;n--;)delete L8.prototype[AT[n]];return L8()};PC[E6e]=!0;var CT,b3,xT,nm=Object.create||function(e,t){var n;return e!==null?(kN.prototype=tm(e),n=new kN,kN.prototype=null,n[E6e]=e):n=L8(),t===void 0?n:L_t(n,t)},U_t=AT.concat("length","prototype"),T6e={f:Object.getOwnPropertyNames||function(e){return S6e(e,U_t)}},z_t=ko.Array,$_t=Math.max,wce=T6e.f,Ace=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_6e={f:function(e){return Ace&&hv(e)=="Window"?(function(t){try{return wce(t)}catch{return(function(r,o,i){for(var a=z7(r),s=$z(void 0,a),l=$z(a,a),u=z_t($_t(l-s,0)),d=0;s<l;s++,d++)zz(u,d,r[s]);return u.length=d,u})(Ace)}})(e):wce(uf(e))}},TN={f:Object.getOwnPropertySymbols},j_t=wa([].slice),ST=function(e,t,n,r){bd(e,t,n)},NK={f:Tu},H_t=km.f,Ea=function(e){var t=Bu.Symbol||(Bu.Symbol={});Yo(t,e)||H_t(t,e,{value:NK.f(e)})},W_t=OK?{}.toString:function(){return"[object "+$7(this)+"]"},V_t=km.f,Cce=Tu("toStringTag"),ET=function(e,t,n,r){if(e){var o=n?e:e.prototype;Yo(o,Cce)||V_t(o,Cce,{configurable:!0,value:t}),r&&!OK&&bd(o,"toString",W_t)}},xce=ko.WeakMap,q_t=Ks(xce)&&/native code/.test(b6e(xce)),jz=ko.TypeError,G_t=ko.WeakMap;if(q_t||Hh.state){var ug=Hh.state||(Hh.state=new G_t),K_t=wa(ug.get),Sce=wa(ug.has),Y_t=wa(ug.set);CT=function(e,t){if(Sce(ug,e))throw new jz("Object already initialized");return t.facade=e,Y_t(ug,e,t),t},b3=function(e){return K_t(ug,e)||{}},xT=function(e){return Sce(ug,e)}}else{var u1=j7("state");PC[u1]=!0,CT=function(e,t){if(Yo(e,u1))throw new jz("Object already initialized");return t.facade=e,bd(e,u1,t),t},b3=function(e){return Yo(e,u1)?e[u1]:{}},xT=function(e){return Yo(e,u1)}}var p2={set:CT,get:b3,has:xT,enforce:function(e){return xT(e)?b3(e):CT(e,{})},getterFor:function(e){return function(t){var n;if(!_c(t)||(n=b3(t)).type!==e)throw jz("Incompatible receiver, "+e+" required");return n}}},Ece=wa([].push),Qp=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=OC(l),h=f6e(v),g=m6e(u,d),y=z7(h),m=0,b=c||C6e,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Ece(w,f)}else switch(e){case 4:return!1;case 7:Ece(w,f)}return i?-1:r||o?o:w}},H7=[Qp(0),Qp(1),Qp(2),Qp(3),Qp(4),Qp(5),Qp(6),Qp(7)][0],Dl=j7("hidden"),kce=Tu("toPrimitive"),Q_t=p2.set,Tce=p2.getterFor("Symbol"),Dc=Object.prototype,mh=ko.Symbol,_h=mh&&mh.prototype,_ce=ko.TypeError,_N=ko.QObject,jw=IC("JSON","stringify"),D6e=DK.f,yh=km.f,I6e=_6e.f,Z_t=kK.f,O6e=wa([].push),hp=Em("symbols"),NC=Em("op-symbols"),DN=Em("string-to-symbol-registry"),IN=Em("symbol-to-string-registry"),X_t=Em("wks"),ON=!_N||!_N.prototype||!_N.prototype.findChild,Hz=jl&&wu((function(){return nm(yh({},"a",{get:function(){return yh(this,"a",{value:7}).a}})).a!=7}))?function(e,t,n){var r=D6e(Dc,t);r&&delete Dc[t],yh(e,t,n),r&&e!==Dc&&yh(Dc,t,r)}:yh,MN=function(e,t){var n=hp[e]=nm(_h);return Q_t(n,{type:"Symbol",tag:e,description:t}),jl||(n.description=t),n},kT=function(e,t,n){e===Dc&&kT(NC,t,n),tm(e);var r=f2(t);return tm(n),Yo(hp,r)?(n.enumerable?(Yo(e,Dl)&&e[Dl][r]&&(e[Dl][r]=!1),n=nm(n,{enumerable:em(0,!1)})):(Yo(e,Dl)||yh(e,Dl,em(1,{})),e[Dl][r]=!0),Hz(e,r,n)):yh(e,r,n)},Dce=function(e,t){tm(e);var n=uf(t),r=PK(n).concat(Wz(n));return H7(r,(function(o){jl&&!Fd(M6e,n,o)||kT(e,o,n[o])})),e},M6e=function(e){var t=f2(e),n=Fd(Z_t,this,t);return!(this===Dc&&Yo(hp,t)&&!Yo(NC,t))&&(!(n||!Yo(this,t)||!Yo(hp,t)||Yo(this,Dl)&&this[Dl][t])||n)},Ice=function(e,t){var n=uf(e),r=f2(t);if(n!==Dc||!Yo(hp,r)||Yo(NC,r)){var o=D6e(n,r);return!o||!Yo(hp,r)||Yo(n,Dl)&&n[Dl][r]||(o.enumerable=!0),o}},Oce=function(e){var t=I6e(uf(e)),n=[];return H7(t,(function(r){Yo(hp,r)||Yo(PC,r)||O6e(n,r)})),n},Wz=function(e){var t=e===Dc,n=I6e(t?NC:uf(e)),r=[];return H7(n,(function(o){!Yo(hp,o)||t&&!Yo(Dc,o)||O6e(r,hp[o])})),r};if(gd||(_h=(mh=function(){if(p6e(_h,this))throw _ce("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?wT(arguments[0]):void 0,t=yT(e),n=function(r){this===Dc&&Fd(n,NC,r),Yo(this,Dl)&&Yo(this[Dl],t)&&(this[Dl][t]=!1),Hz(this,t,em(1,r))};return jl&&ON&&Hz(Dc,t,{configurable:!0,set:n}),MN(t,e)}).prototype,ST(_h,"toString",(function(){return Tce(this).tag})),ST(mh,"withoutSetter",(function(e){return MN(yT(e),e)})),kK.f=M6e,km.f=kT,DK.f=Ice,T6e.f=_6e.f=Oce,TN.f=Wz,NK.f=function(e){return MN(Tu(e),e)},jl&&yh(_h,"description",{configurable:!0,get:function(){return Tce(this).description}})),fh({global:!0,wrap:!0,forced:!gd,sham:!gd},{Symbol:mh}),H7(PK(X_t),(function(e){Ea(e)})),fh({target:"Symbol",stat:!0,forced:!gd},{for:function(e){var t=wT(e);if(Yo(DN,t))return DN[t];var n=mh(t);return DN[t]=n,IN[n]=t,n},keyFor:function(e){if(!wy(e))throw _ce(e+" is not a symbol");if(Yo(IN,e))return IN[e]},useSetter:function(){ON=!0},useSimple:function(){ON=!1}}),fh({target:"Object",stat:!0,forced:!gd,sham:!jl},{create:function(e,t){return t===void 0?nm(e):Dce(nm(e),t)},defineProperty:kT,defineProperties:Dce,getOwnPropertyDescriptor:Ice}),fh({target:"Object",stat:!0,forced:!gd},{getOwnPropertyNames:Oce,getOwnPropertySymbols:Wz}),fh({target:"Object",stat:!0,forced:wu((function(){TN.f(1)}))},{getOwnPropertySymbols:function(e){return TN.f(OC(e))}}),jw){var J_t=!gd||wu((function(){var e=mh();return jw([e])!="[null]"||jw({a:e})!="{}"||jw(Object(e))!="{}"}));fh({target:"JSON",stat:!0,forced:J_t},{stringify:function(e,t,n){var r=j_t(arguments),o=t;if((_c(t)||e!==void 0)&&!wy(e))return bT(t)||(t=function(i,a){if(Ks(o)&&(a=Fd(o,this,i,a)),!wy(a))return a}),r[1]=t,c6e(jw,null,r)}})}if(!_h[kce]){var eDt=_h.valueOf;ST(_h,kce,(function(e){return Fd(eDt,this)}))}ET(mh,"Symbol"),PC[Dl]=!0,Ea("asyncIterator"),Ea("hasInstance"),Ea("isConcatSpreadable"),Ea("iterator"),Ea("match"),Ea("matchAll"),Ea("replace"),Ea("search"),Ea("species"),Ea("split"),Ea("toPrimitive"),Ea("toStringTag"),Ea("unscopables"),ET(ko.JSON,"JSON",!0);var Dh,Mce,Pce,tDt=Bu.Symbol,vv={},P6e=Function.prototype,nDt=jl&&Object.getOwnPropertyDescriptor,Nce=Yo(P6e,"name"),rDt={PROPER:Nce&&(function(){}).name==="something",CONFIGURABLE:Nce&&(!jl||jl&&nDt(P6e,"name").configurable)},oDt=!wu((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Rce=j7("IE_PROTO"),Vz=ko.Object,iDt=Vz.prototype,qz=oDt?Vz.getPrototypeOf:function(e){var t=OC(e);if(Yo(t,Rce))return t[Rce];var n=t.constructor;return Ks(n)&&t instanceof n?n.prototype:t instanceof Vz?iDt:null},Gz=Tu("iterator"),N6e=!1;[].keys&&("next"in(Pce=[].keys())?(Mce=qz(qz(Pce)))!==Object.prototype&&(Dh=Mce):N6e=!0);var aDt=Dh==null||wu((function(){var e={};return Dh[Gz].call(e)!==e}));Dh=aDt?{}:nm(Dh),Ks(Dh[Gz])||ST(Dh,Gz,(function(){return this}));var R6e={IteratorPrototype:Dh,BUGGY_SAFARI_ITERATORS:N6e},sDt=R6e.IteratorPrototype,lDt=function(){return this};ko.String,ko.TypeError,Object.setPrototypeOf||"__proto__"in{}&&(function(){var e={};try{wa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}})();var uDt=rDt.PROPER,PN=R6e.BUGGY_SAFARI_ITERATORS,cDt=Tu("iterator"),dDt=function(){return this},B6e=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=nm(sDt,{next:em(1,m)}),ET(g,w,!1,!0),vv[w]=lDt})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!PN&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[cDt]||f["@@iterator"]||o&&f[o],v=!PN&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=qz(h.call(new e)))!==Object.prototype&&s.next&&(ET(s,d,!0,!0),vv[d]=dDt),uDt&&o=="values"&&p&&p.name!=="values"&&(c=!0,v=function(){return Fd(p,this)}),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||fh({target:t,proto:!0,forced:PN||c},l)),vv[t]=v,l},fDt=p2.set,pDt=p2.getterFor("Array Iterator");B6e(Array,"Array",(function(e,t){fDt(this,{type:"Array Iterator",target:uf(e),index:0,kind:t})}),(function(){var e=pDt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),vv.Arguments=vv.Array;var Bce=Tu("toStringTag");for(var NN in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Lce=ko[NN],RN=Lce&&Lce.prototype;RN&&$7(RN)!==Bce&&bd(RN,Bce,NN),vv[NN]=vv.Array}var hDt=tDt;Ea("asyncDispose"),Ea("dispose"),Ea("matcher"),Ea("metadata"),Ea("observable"),Ea("patternMatch"),Ea("replaceAll");var B6=hDt,gDt=wa("".charAt),Fce=wa("".charCodeAt),vDt=wa("".slice),mDt=function(e){return function(t,n){var r,o,i=wT(TK(t)),a=IK(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Fce(i,a))<55296||r>56319||a+1===s||(o=Fce(i,a+1))<56320||o>57343?e?gDt(i,a):r:e?vDt(i,a,a+2):o-56320+(r-55296<<10)+65536}},yDt=mDt(!0),bDt=p2.set,wDt=p2.getterFor("String Iterator");B6e(String,"String",(function(e){bDt(this,{type:"String Iterator",string:wT(e),index:0})}),(function(){var e,t=wDt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=yDt(n,r),t.index+=e.length,{value:e,done:!1})}));var ADt=NK.f("iterator"),CDt=M7((function(e){function t(n){return typeof B6=="function"&&typeof ADt=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof B6=="function"&&r.constructor===B6&&r!==B6.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),L6e=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})(CDt),xDt=R7.EXISTS,SDt=l2.f,F6e=Function.prototype,EDt=eo(F6e.toString),U6e=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,kDt=eo(U6e.exec);Kc&&!xDt&&SDt(F6e,"name",{configurable:!0,get:function(){try{return kDt(U6e,EDt(this))[1]}catch{return""}}});var z6e=(function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=Je.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Qo(Je.nodes(t,{match:function(n){return kt.getNodeType(n)==="pre"||!!Je.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e})(),TDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("fontSize.title"),n.iconSvg=XEt,n.mark="fontSize",n}return Yi(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:Jn("fontSize.default"),value:""}),i.forEach((function(s){if(typeof s=="string")r.push({text:s,value:s});else if(L6e(s)==="object"){var l=s.name,u=s.value;r.push({text:l,value:u})}}));var a=this.getValue(n);return r.forEach((function(s){s.value===a?s.selected=!0:delete s.selected})),r},t})(z6e),_Dt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("fontFamily.title"),n.iconSvg=JEt,n.mark="fontFamily",n.selectPanelWidth=150,n}return Yi(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:Jn("fontFamily.default"),value:""}),i.forEach((function(s){if(typeof s=="string")r.push({text:s,value:s,styleForRenderMenuList:{"font-family":s}});else if(L6e(s)==="object"){var l=s.name,u=s.value;r.push({text:l,value:u,styleForRenderMenuList:{"font-family":u}})}}));var a=this.getValue(n);return r.forEach((function(s){s.value===a?s.selected=!0:delete s.selected})),r},t})(z6e),DDt={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Jv(i,{fontSize:r}),o&&Jv(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!cr.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((AK(t)||d2(n=Pt(t))!=="span")&&(n=Pt("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),c2(n)):t},preParseHtml:[RTt],parseStyleHtml:function(e,t,n){var r=Pt(e);if(!cr.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,s=Bc(r,"font-size"),l=a.find((function(p){return p.value&&p.value===s}))||a.includes(s);s&&l&&(o.fontSize=s);var u=n.getMenuConfig("fontFamily").fontFamilyList,d=u===void 0?[]:u,c=Bc(r,"font-family").replace(/"/g,""),f=d.find((function(p){return p.value&&p.value===c}))||d.includes(c);return c&&f&&(o.fontFamily=c),o},menus:[{key:"fontSize",factory:function(){return new TDt},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new _Dt},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},IDt={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Pt(e),n=Bc(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},$6e=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Qo(Je.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Qo(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Qo(Je.nodes(t,{match:function(r){var o=kt.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e})(),ODt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("indent.decrease"),n.iconSvg=ekt,n}return Yi(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){nn.setNodes(n,{indent:null},{match:function(o){return Mr.isElement(o)}})},t})($6e),MDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("indent.increase"),n.iconSvg=tkt,n}return Yi(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){nn.setNodes(n,{indent:"2em"},{match:function(o){return Mr.isElement(o)},mode:"highest"})},t})($6e),PDt={renderStyle:function(e,t){if(!Mr.isElement(e))return t;var n=e.indent,r=t;return n&&Jv(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Mr.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Pt(t);return r.css("text-indent",n),c2(r)},preParseHtml:[IDt],parseStyleHtml:function(e,t,n){var r=Pt(e);if(!Mr.isElement(t))return t;var o=t,i=Bc(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new MDt}},{key:"delIndent",factory:function(){return new ODt}}]},W7=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Qo(Je.nodes(t,{match:function(r){var o=kt.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!kt.getSelectedElems(t).some((function(n){if(Je.isVoid(t,n)&&Je.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0}))},e})(),NDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("justify.left"),n.iconSvg=nkt,n}return Yi(t,e),t.prototype.exec=function(n,r){nn.setNodes(n,{textAlign:"left"},{match:function(o){return Mr.isElement(o)&&!n.isInline(o)}})},t})(W7),RDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("justify.right"),n.iconSvg=rkt,n}return Yi(t,e),t.prototype.exec=function(n,r){nn.setNodes(n,{textAlign:"right"},{match:function(o){return Mr.isElement(o)&&!n.isInline(o)}})},t})(W7),BDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("justify.center"),n.iconSvg=okt,n}return Yi(t,e),t.prototype.exec=function(n,r){nn.setNodes(n,{textAlign:"center"},{match:function(o){return Mr.isElement(o)&&!n.isInline(o)}})},t})(W7),LDt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Jn("justify.justify"),n.iconSvg=ikt,n}return Yi(t,e),t.prototype.exec=function(n,r){nn.setNodes(n,{textAlign:"justify"},{match:function(o){return Mr.isElement(o)&&!n.isInline(o)}})},t})(W7),FDt={renderStyle:function(e,t){if(!Mr.isElement(e))return t;var n=e.textAlign,r=t;return n&&Jv(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Mr.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Pt(t);return r.css("text-align",n),c2(r)},parseStyleHtml:function(e,t,n){var r=Pt(e);if(!Mr.isElement(t))return t;var o=t,i=Bc(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new NDt}},{key:"justifyRight",factory:function(){return new RDt}},{key:"justifyCenter",factory:function(){return new BDt}},{key:"justifyJustify",factory:function(){return new LDt}}]},UDt=(function(){function e(){this.title=Jn("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:Jn("lineHeight.default"),value:""}),o.forEach((function(a){n.push({text:a,value:a})}));var i=this.getValue(t);return n.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),n},e.prototype.getMatchNode=function(t){var n=Qo(Je.nodes(t,{match:function(r){var o=kt.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":Mr.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){nn.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e})(),zDt={renderStyle:function(e,t){if(!Mr.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Jv(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Mr.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Pt(t);return r.css("line-height",n),c2(r)},parseStyleHtml:function(e,t,n){var r=Pt(e);if(!Mr.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,s=Bc(r,"line-height");return s&&a.includes(s)&&(o.lineHeight=s),o},menus:[{key:"lineHeight",factory:function(){return new UDt},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},$Dt=(function(){function e(){this.title=Jn("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e})(),jDt=(function(){function e(){this.title=Jn("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e})(),HDt={menus:[{key:"redo",factory:function(){return new $Dt}},{key:"undo",factory:function(){return new jDt}}]},WDt={type:"divider",renderElem:function(e,t,n){return db("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:kt.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[db("hr")])}},VDt=(function(){function e(){this.title=Jn("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!kt.getSelectedElems(t).some((function(n){if(t.isVoid(n))return!0;var r=kt.getNodeType(n);return r==="table"||r==="pre"||void 0}))},e.prototype.exec=function(t,n){nn.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e})(),qDt={renderElems:[WDt],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new VDt}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="divider"||t(o)},r.normalizeNode=function(o){var i=Qo(o,2),a=i[0],s=i[1];if(kt.getNodeType(a)!=="divider")return n([a,s]);kt.isLastNode(r,a)&&nn.insertNodes(r,kt.genEmptyParagraph(),{at:[s[0]+1]})},r}},GDt=L7.map;Za({target:"Array",proto:!0,forced:!vK("map")},{map:function(e){return GDt(this,e,arguments.length>1?arguments[1]:void 0)}});var KDt=eo([].join),YDt=P7!=Object,QDt=Vxe("join",",");Za({target:"Array",proto:!0,forced:YDt||!QDt},{join:function(e){return KDt(s2(this),e===void 0?",":e)}});var ZDt=(function(){function e(){this.title=Jn("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var n=kt.getSelectedNodeByType(t,"code");if(n==null)return null;var r=kt.getParentNode(t,n);return r==null||kt.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=kt.getSelectedElems(t);return!!n.some((function(r){return t.isVoid(r)}))||!n.some((function(r){var o=kt.getNodeType(r);if(o==="pre"||o==="paragraph")return!0}))},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=Xn.string(n);nn.removeNodes(t,{mode:"highest"});var o=r.split(`
- `).map((function(i){return{type:"paragraph",children:[{text:i}]}}));nn.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,i=[],a=Je.nodes(t,{match:function(c){return t.children.includes(c)},universal:!0});try{for(var s=Wxe(a),l=s.next();!l.done;l=s.next()){var u=Qo(l.value,1)[0];u&&i.push(Xn.string(u))}}catch(c){r={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}nn.removeNodes(t,{mode:"highest"});var d={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
- `)}]}]};nn.insertNodes(t,d,{mode:"highest"})},e})(),XDt={key:"codeBlock",factory:function(){return new ZDt}};Za({target:"String",proto:!0,forced:R4("anchor")},{anchor:function(e){return N4(this,"a","name",e)}}),bK("match",(function(e,t,n){return[function(r){var o=uc(this),i=r==null?void 0:N7(r,e);return i?ka(i,r,o):new RegExp(r)[e](Zi(o))},function(r){var o=gu(this),i=Zi(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return KA(o,i);var s=o.unicode;o.lastIndex=0;for(var l,u=[],d=0;(l=KA(o,i))!==null;){var c=Zi(l[0]);u[d]=c,c===""&&(o.lastIndex=wK(i,kC(o.lastIndex),s)),d++}return d===0?null:u}]}));var JDt={type:"pre",renderElem:function(e,t,n){return ro("pre",null,t)}},e7t={type:"code",renderElem:function(e,t,n){return ro("code",null,t)}},t7t={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(e);return(t=t.filter((function(o){return kt.getNodeType(o)==="code"}))).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(o){return kt.getNodeType(o)==="code"}))}}},n7t={menus:[XDt],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=kt.getSelectedNodeByType(o,"code");if(i!=null){var a=(function(u,d){var c=d.selection;if(c==null)return"";var f=Xn.string(u),p=c.anchor.offset,v=f.slice(0,p).split(`
- `),h=v.length;return h===0?"":v[h-1]})(i,o);if(a){var s=a.match(/^\s+/);if(s!=null&&s[0]!=null){var l=s[0];return void o.insertText(`
- `+l)}}o.insertText(`
- `)}else t()},o.normalizeNode=function(i){var a=Qo(i,2),s=a[0],l=a[1],u=kt.getNodeType(s);return u==="code"&&l.length<=1&&nn.setNodes(o,{type:"paragraph"},{at:l}),u==="pre"&&(kt.isLastNode(o,s)&&nn.insertNodes(o,kt.genEmptyParagraph(),{at:[l[0]+1]}),kt.getNodeType(s.children[0])!=="code"&&(nn.unwrapNodes(o),nn.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([s,l])},o.insertData=function(i){if(kt.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");Je.insertText(o,a)}else r(i)},o},renderElems:[JDt,e7t],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Pt(e);if(d2(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Pt(e)[0].textContent||""}]}}},t7t]},r7t=(function(){function e(){this.title=Jn("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e})(),o7t={menus:[{key:"fullScreen",factory:function(){return new r7t}}]},i7t=(function(){function e(){this.title=Jn("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!pn.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];nn.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(Je.start(t,o))}},e})(),a7t=[vkt,Kkt,DDt,PDt,FDt,zDt,yTt,qDt,PTt,iTt,n7t,OTt,Hkt,UEt,CTt,HDt,o7t,{menus:[{key:"enter",factory:function(){return new i7t}}]}];Gl("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Gl("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Uce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RK(e){var t={exports:{}};return e(t,t.exports),t.exports}var Zp,F8,L6=function(e){return e&&e.Math==Math&&e},oo=L6(typeof globalThis=="object"&&globalThis)||L6(typeof window=="object"&&window)||L6(typeof self=="object"&&self)||L6(typeof Uce=="object"&&Uce)||(function(){return this})()||Function("return this")(),j6e=Function.prototype,Kz=j6e.bind,Yz=j6e.call,s7t=Kz&&Kz.bind(Yz),Io=Kz?function(e){return e&&s7t(Yz,e)}:function(e){return e&&function(){return Yz.apply(e,arguments)}},pa=function(e){try{return!!e()}catch{return!0}},l7t=Io({}.toString),u7t=Io("".slice),Gf=function(e){return u7t(l7t(e),8,-1)},BN=oo.Object,c7t=Io("".split),H6e=pa((function(){return!BN("z").propertyIsEnumerable(0)}))?function(e){return Gf(e)=="String"?c7t(e,""):BN(e)}:BN,d7t=oo.TypeError,V7=function(e){if(e==null)throw d7t("Can't call method on "+e);return e},h2=function(e){return H6e(V7(e))},f7t=Object.defineProperty,BK=function(e,t){try{f7t(oo,e,{value:t,configurable:!0,writable:!0})}catch{oo[e]=t}return t},Wh=oo["__core-js_shared__"]||BK("__core-js_shared__",{}),LK=RK((function(e){(e.exports=function(t,n){return Wh[t]||(Wh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),p7t=oo.Object,RC=function(e){return p7t(V7(e))},h7t=Io({}.hasOwnProperty),Ja=Object.hasOwn||function(e,t){return h7t(RC(e),t)},g7t=0,v7t=Math.random(),m7t=Io(1 .toString),FK=function(e){return"Symbol("+(e===void 0?"":e)+")_"+m7t(++g7t+v7t,36)},Ca=function(e){return typeof e=="function"},y7t=function(e){return Ca(e)?e:void 0},BC=function(e,t){return arguments.length<2?y7t(oo[e]):oo[e]&&oo[e][t]},LN=BC("navigator","userAgent")||"",zce=oo.process,$ce=oo.Deno,jce=zce&&zce.versions||$ce&&$ce.version,Hce=jce&&jce.v8;Hce&&(F8=(Zp=Hce.split("."))[0]>0&&Zp[0]<4?1:+(Zp[0]+Zp[1])),!F8&&LN&&(!(Zp=LN.match(/Edge\/(\d+)/))||Zp[1]>=74)&&(Zp=LN.match(/Chrome\/(\d+)/))&&(F8=+Zp[1]);var F6,Qz=F8,Zz=!!Object.getOwnPropertySymbols&&!pa((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qz&&Qz<41})),UK=Zz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Hw=LK("wks"),mv=oo.Symbol,Wce=mv&&mv.for,b7t=UK?mv:mv&&mv.withoutSetter||FK,Is=function(e){if(!Ja(Hw,e)||!Zz&&typeof Hw[e]!="string"){var t="Symbol."+e;Zz&&Ja(mv,e)?Hw[e]=mv[e]:Hw[e]=UK&&Wce?Wce(t):b7t(t)}return Hw[e]},ya=function(e){return typeof e=="object"?e!==null:Ca(e)},w7t=oo.String,A7t=oo.TypeError,Kl=function(e){if(ya(e))return e;throw A7t(w7t(e)+" is not an object")},x0=!pa((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Xz=oo.document,C7t=ya(Xz)&&ya(Xz.createElement),zK=function(e){return C7t?Xz.createElement(e):{}},W6e=!x0&&!pa((function(){return Object.defineProperty(zK("div"),"a",{get:function(){return 7}}).a!=7})),Ww=Function.prototype.call,ds=Ww.bind?Ww.bind(Ww):function(){return Ww.apply(Ww,arguments)},TT=Io({}.isPrototypeOf),x7t=oo.Object,FN=UK?function(e){return typeof e=="symbol"}:function(e){var t=BC("Symbol");return Ca(t)&&TT(t.prototype,x7t(e))},S7t=oo.String,Jz=function(e){try{return S7t(e)}catch{return"Object"}},E7t=oo.TypeError,$K=function(e){if(Ca(e))return e;throw E7t(Jz(e)+" is not a function")},YA=function(e,t){var n=e[t];return n==null?void 0:$K(n)},k7t=oo.TypeError,T7t=oo.TypeError,_7t=Is("toPrimitive"),jK=function(e){var t=(function(n,r){if(!ya(n)||FN(n))return n;var o,i=YA(n,_7t);if(i){if(o=ds(i,n,r),!ya(o)||FN(o))return o;throw T7t("Can't convert object to primitive value")}return(function(a,s){var l,u;if(Ca(l=a.toString)&&!ya(u=ds(l,a))||Ca(l=a.valueOf)&&!ya(u=ds(l,a)))return u;throw k7t("Can't convert object to primitive value")})(n)})(e,"string");return FN(t)?t:t+""},D7t=oo.TypeError,Vce=Object.defineProperty,Tm={f:x0?Vce:function(e,t,n){if(Kl(e),t=jK(t),Kl(n),W6e)try{return Vce(e,t,n)}catch{}if("get"in n||"set"in n)throw D7t("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},I7t=Math.ceil,O7t=Math.floor,LC=function(e){var t=+e;return t!=t||t===0?0:(t>0?O7t:I7t)(t)},M7t=Math.max,P7t=Math.min,e$=function(e,t){var n=LC(e);return n<0?M7t(n+t,0):P7t(n,t)},N7t=Math.min,V6e=function(e){return e>0?N7t(LC(e),9007199254740991):0},g2=function(e){return V6e(e.length)},qce=function(e){return function(t,n,r){var o,i=h2(t),a=g2(i),s=e$(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},q6e={includes:qce(!0),indexOf:qce(!1)},q7={},R7t=q6e.indexOf,Gce=Io([].push),G6e=function(e,t){var n,r=h2(e),o=0,i=[];for(n in r)!Ja(q7,n)&&Ja(r,n)&&Gce(i,n);for(;t.length>o;)Ja(r,n=t[o++])&&(~R7t(i,n)||Gce(i,n));return i},_T=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],B7t=Object.keys||function(e){return G6e(e,_T)},L7t=x0?Object.defineProperties:function(e,t){Kl(e);for(var n,r=h2(t),o=B7t(t),i=o.length,a=0;i>a;)Tm.f(e,n=o[a++],r[n]);return e},F7t=BC("document","documentElement"),Kce=LK("keys"),HK=function(e){return Kce[e]||(Kce[e]=FK(e))},K6e=HK("IE_PROTO"),UN=function(){},Y6e=function(e){return"<script>"+e+"<\/script>"},Yce=function(e){e.write(Y6e("")),e.close();var t=e.parentWindow.Object;return e=null,t},U8=function(){try{F6=new ActiveXObject("htmlfile")}catch{}var e,t;U8=typeof document<"u"?document.domain&&F6?Yce(F6):((t=zK("iframe")).style.display="none",F7t.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Y6e("document.F=Object")),e.close(),e.F):Yce(F6);for(var n=_T.length;n--;)delete U8.prototype[_T[n]];return U8()};q7[K6e]=!0;var WK=Object.create||function(e,t){var n;return e!==null?(UN.prototype=Kl(e),n=new UN,UN.prototype=null,n[K6e]=e):n=U8(),t===void 0?n:L7t(n,t)},t$=Is("unscopables"),n$=Array.prototype;n$[t$]==null&&Tm.f(n$,t$,{configurable:!0,value:WK(null)});var w3=function(e){n$[t$][e]=!0},bb={},U7t=Io(Function.toString);Ca(Wh.inspectSource)||(Wh.inspectSource=function(e){return U7t(e)});var DT,A3,IT,VK=Wh.inspectSource,Qce=oo.WeakMap,Q6e=Ca(Qce)&&/native code/.test(VK(Qce)),G7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Vh=x0?function(e,t,n){return Tm.f(e,t,G7(1,n))}:function(e,t,n){return e[t]=n,e},r$=oo.TypeError,z7t=oo.WeakMap;if(Q6e||Wh.state){var cg=Wh.state||(Wh.state=new z7t),$7t=Io(cg.get),Zce=Io(cg.has),j7t=Io(cg.set);DT=function(e,t){if(Zce(cg,e))throw new r$("Object already initialized");return t.facade=e,j7t(cg,e,t),t},A3=function(e){return $7t(cg,e)||{}},IT=function(e){return Zce(cg,e)}}else{var c1=HK("state");q7[c1]=!0,DT=function(e,t){if(Ja(e,c1))throw new r$("Object already initialized");return t.facade=e,Vh(e,c1,t),t},A3=function(e){return Ja(e,c1)?e[c1]:{}},IT=function(e){return Ja(e,c1)}}var yv,Xce,Jce,Yd={set:DT,get:A3,has:IT,enforce:function(e){return IT(e)?A3(e):DT(e,{})},getterFor:function(e){return function(t){var n;if(!ya(t)||(n=A3(t)).type!==e)throw r$("Incompatible receiver, "+e+" required");return n}}},ede={}.propertyIsEnumerable,tde=Object.getOwnPropertyDescriptor,H7t={f:tde&&!ede.call({1:2},1)?function(e){var t=tde(this,e);return!!t&&t.enumerable}:ede},nde=Object.getOwnPropertyDescriptor,Z6e={f:x0?nde:function(e,t){if(e=h2(e),t=jK(t),W6e)try{return nde(e,t)}catch{}if(Ja(e,t))return G7(!ds(H7t.f,e,t),e[t])}},X6e=Function.prototype,W7t=x0&&Object.getOwnPropertyDescriptor,rde=Ja(X6e,"name"),qK={PROPER:rde&&(function(){}).name==="something",CONFIGURABLE:rde&&(!x0||x0&&W7t(X6e,"name").configurable)},gp=RK((function(e){var t=qK.CONFIGURABLE,n=Yd.get,r=Yd.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;Ca(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ja(s,"name")||t&&s.name!==p)&&Vh(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==oo?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:Vh(i,a,s)):c?i[a]=s:BK(a,s)})(Function.prototype,"toString",(function(){return Ca(this)&&n(this).source||VK(this)}))})),V7t=_T.concat("length","prototype"),OT={f:Object.getOwnPropertyNames||function(e){return G6e(e,V7t)}},q7t={f:Object.getOwnPropertySymbols},G7t=Io([].concat),K7t=BC("Reflect","ownKeys")||function(e){var t=OT.f(Kl(e)),n=q7t.f;return n?G7t(t,n(e)):t},Y7t=function(e,t){for(var n=K7t(t),r=Tm.f,o=Z6e.f,i=0;i<n.length;i++){var a=n[i];Ja(e,a)||r(e,a,o(t,a))}},Q7t=/#|\.prototype\./,FC=function(e,t){var n=X7t[Z7t(e)];return n==e9t||n!=J7t&&(Ca(t)?pa(t):!!t)},Z7t=FC.normalize=function(e){return String(e).replace(Q7t,".").toLowerCase()},X7t=FC.data={},J7t=FC.NATIVE="N",e9t=FC.POLYFILL="P",o$=FC,t9t=Z6e.f,S0=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?oo:u?oo[s]||BK(s,{}):(oo[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=t9t(n,r))&&a.value:n[r],!o$(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Y7t(i,o)}(e.sham||o&&o.sham)&&Vh(i,"sham",!0),gp(n,r,i,e)}},n9t=!pa((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ode=HK("IE_PROTO"),i$=oo.Object,r9t=i$.prototype,MT=n9t?i$.getPrototypeOf:function(e){var t=RC(e);if(Ja(t,ode))return t[ode];var n=t.constructor;return Ca(n)&&t instanceof n?n.prototype:t instanceof i$?r9t:null},a$=Is("iterator"),J6e=!1;[].keys&&("next"in(Jce=[].keys())?(Xce=MT(MT(Jce)))!==Object.prototype&&(yv=Xce):J6e=!0);var o9t=yv==null||pa((function(){var e={};return yv[a$].call(e)!==e}));o9t&&(yv={}),Ca(yv[a$])||gp(yv,a$,(function(){return this}));var GK={IteratorPrototype:yv,BUGGY_SAFARI_ITERATORS:J6e},i9t=Tm.f,ide=Is("toStringTag"),s$=function(e,t,n){e&&!Ja(e=n?e:e.prototype,ide)&&i9t(e,ide,{configurable:!0,value:t})},a9t=GK.IteratorPrototype,s9t=function(){return this},l9t=oo.String,u9t=oo.TypeError,PT=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=Io(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Kl(r),(function(i){if(typeof i=="object"||Ca(i))return i;throw u9t("Can't set "+l9t(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),c9t=qK.PROPER,d9t=qK.CONFIGURABLE,ade=GK.IteratorPrototype,zN=GK.BUGGY_SAFARI_ITERATORS,Vw=Is("iterator"),f9t=function(){return this},eSe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=WK(a9t,{next:G7(1,m)}),s$(g,w,!1),bb[w]=s9t})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!zN&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[Vw]||f["@@iterator"]||o&&f[o],v=!zN&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=MT(h.call(new e)))!==Object.prototype&&s.next&&(MT(s)!==ade&&(PT?PT(s,ade):Ca(s[Vw])||gp(s,Vw,f9t)),s$(s,d,!0)),c9t&&o=="values"&&p&&p.name!=="values"&&(d9t?Vh(f,"name","values"):(c=!0,v=function(){return ds(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||S0({target:t,proto:!0,forced:zN||c},l)),f[Vw]!==v&&gp(f,Vw,v,{name:o}),bb[t]=v,l},p9t=Yd.set,h9t=Yd.getterFor("Array Iterator"),B4=eSe(Array,"Array",(function(e,t){p9t(this,{type:"Array Iterator",target:h2(e),index:0,kind:t})}),(function(){var e=h9t(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");bb.Arguments=bb.Array,w3("keys"),w3("values"),w3("entries");var tSe={};tSe[Is("toStringTag")]="z";var KK=String(tSe)==="[object z]",g9t=Is("toStringTag"),v9t=oo.Object,m9t=Gf((function(){return arguments})())=="Arguments",K7=KK?Gf:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=v9t(e),g9t))=="string"?n:m9t?Gf(t):(r=Gf(t))=="Object"&&Ca(t.callee)?"Arguments":r},y9t=KK?{}.toString:function(){return"[object "+K7(this)+"]"};KK||gp(Object.prototype,"toString",y9t,{unsafe:!0});var b9t=oo.String,_f=function(e){if(K7(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return b9t(e)},w9t=Io("".charAt),sde=Io("".charCodeAt),A9t=Io("".slice),C9t=function(e){return function(t,n){var r,o,i=_f(V7(t)),a=LC(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=sde(i,a))<55296||r>56319||a+1===s||(o=sde(i,a+1))<56320||o>57343?e?w9t(i,a):r:e?A9t(i,a,a+2):o-56320+(r-55296<<10)+65536}},nSe={charAt:C9t(!0)},x9t=nSe.charAt,S9t=Yd.set,E9t=Yd.getterFor("String Iterator");eSe(String,"String",(function(e){S9t(this,{type:"String Iterator",string:_f(e),index:0})}),(function(){var e,t=E9t(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=x9t(n,r),t.index+=e.length,{value:e,done:!1})}));var l$=function(e,t,n){for(var r in t)gp(e,r,t[r],n);return e},k9t=oo.Array,T9t=Math.max,lde=OT.f,ude=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_9t={f:function(e){return ude&&Gf(e)=="Window"?(function(t){try{return lde(t)}catch{return(function(r,o,i){for(var a,s,l,u,d=g2(r),c=e$(void 0,d),f=e$(d,d),p=k9t(T9t(f-c,0)),v=0;c<f;c++,v++)a=p,s=v,l=r[c],(u=jK(s))in a?Tm.f(a,u,G7(0,l)):a[u]=l;return p.length=v,p})(ude)}})(e):lde(h2(e))}},cde=pa((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),U6=Object.isExtensible,qg=pa((function(){U6(1)}))||cde?function(e){return!!ya(e)&&(!cde||Gf(e)!="ArrayBuffer")&&(!U6||U6(e))}:U6,D9t=!pa((function(){return Object.isExtensible(Object.preventExtensions({}))})),YK=RK((function(e){var t=Tm.f,n=!1,r=FK("meta"),o=0,i=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=OT.f,l=Io([].splice),u={};u[r]=1,s(u).length&&(OT.f=function(d){for(var c=s(d),f=0,p=c.length;f<p;f++)if(c[f]===r){l(c,f,1);break}return c},S0({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_9t.f}))},fastKey:function(s,l){if(!ya(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ja(s,r)){if(!qg(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!Ja(s,r)){if(!qg(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return D9t&&n&&qg(s)&&!Ja(s,r)&&i(s),s}};q7[r]=!0})),dde=Io(Io.bind),QK=function(e,t){return $K(e),t===void 0?e:dde?dde(e,t):function(){return e.apply(t,arguments)}},I9t=Is("iterator"),O9t=Array.prototype,M9t=Is("iterator"),fde=function(e){if(e!=null)return YA(e,M9t)||YA(e,"@@iterator")||bb[K7(e)]},P9t=oo.TypeError,pde=function(e,t,n){var r,o;Kl(e);try{if(!(r=YA(e,"return"))){if(t==="throw")throw n;return n}r=ds(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Kl(r),n},N9t=oo.TypeError,z8=function(e,t){this.stopped=e,this.result=t},hde=z8.prototype,rSe=function(e,t,n){var r,o,i,a,s,l,u,d,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),h=QK(t,c),g=function(m){return r&&pde(r,"normal",m),new z8(!0,m)},y=function(m){return f?(Kl(m),v?h(m[0],m[1],g):h(m[0],m[1])):v?h(m,g):h(m)};if(p)r=e;else{if(!(o=fde(e)))throw N9t(Jz(e)+" is not iterable");if((d=o)!==void 0&&(bb.Array===d||O9t[I9t]===d)){for(i=0,a=g2(e);a>i;i++)if((s=y(e[i]))&&TT(hde,s))return s;return new z8(!1)}r=(function(m,b){var w=arguments.length<2?fde(m):b;if($K(w))return Kl(ds(w,m));throw P9t(Jz(m)+" is not iterable")})(e,o)}for(l=r.next;!(u=ds(l,r)).done;){try{s=y(u.value)}catch(m){pde(r,"throw",m)}if(typeof s=="object"&&s&&TT(hde,s))return s}return new z8(!1)},R9t=oo.TypeError,oSe=function(e,t){if(TT(t,e))return e;throw R9t("Incorrect invocation")},iSe=Is("iterator"),aSe=!1;try{var B9t=0,gde={next:function(){return{done:!!B9t++}},return:function(){aSe=!0}};gde[iSe]=function(){return this},Array.from(gde,(function(){throw 2}))}catch{}var u$=Array.isArray||function(e){return Gf(e)=="Array"},sSe=function(){},L9t=[],lSe=BC("Reflect","construct"),ZK=/^\s*(?:class|function)\b/,F9t=Io(ZK.exec),U9t=!ZK.exec(sSe),qw=function(e){if(!Ca(e))return!1;try{return lSe(sSe,L9t,e),!0}catch{return!1}},z9t=!lSe||pa((function(){var e;return qw(qw.call)||!qw(Object)||!qw((function(){e=!0}))||e}))?function(e){if(!Ca(e))return!1;switch(K7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return U9t||!!F9t(ZK,VK(e))}:qw,$9t=Is("species"),vde=oo.Array,uSe=function(e,t){return new((function(n){var r;return u$(n)&&(r=n.constructor,(z9t(r)&&(r===vde||u$(r.prototype))||ya(r)&&(r=r[$9t])===null)&&(r=void 0)),r===void 0?vde:r})(e))(t===0?0:t)},mde=Io([].push),$N=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=RC(l),h=H6e(v),g=QK(u,d),y=g2(h),m=0,b=c||uSe,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:mde(w,f)}else switch(e){case 4:return!1;case 7:mde(w,f)}return i?-1:r||o?o:w}},XK={filter:$N(2),find:$N(5),findIndex:$N(6)},z6=YK.getWeakData,j9t=Yd.set,H9t=Yd.getterFor,W9t=XK.find,V9t=XK.findIndex,q9t=Io([].splice),G9t=0,$6=function(e){return e.frozen||(e.frozen=new cSe)},cSe=function(){this.entries=[]},jN=function(e,t){return W9t(e.entries,(function(n){return n[0]===t}))};cSe.prototype={get:function(e){var t=jN(this,e);if(t)return t[1]},has:function(e){return!!jN(this,e)},set:function(e,t){var n=jN(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=V9t(this.entries,(function(n){return n[0]===e}));return~t&&q9t(this.entries,t,1),!!~t}};var Gw,dSe={getConstructor:function(e,t,n,r){var o=e((function(l,u){oSe(l,i),j9t(l,{type:t,id:G9t++,frozen:void 0}),u!=null&&rSe(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=H9t(t),s=function(l,u,d){var c=a(l),f=z6(Kl(u),!0);return f===!0?$6(c).set(u,d):f[c.id]=d,l};return l$(i,{delete:function(l){var u=a(this);if(!ya(l))return!1;var d=z6(l);return d===!0?$6(u).delete(l):d&&Ja(d,u.id)&&delete d[u.id]},has:function(l){var u=a(this);if(!ya(l))return!1;var d=z6(l);return d===!0?$6(u).has(l):d&&Ja(d,u.id)}}),l$(i,n?{get:function(l){var u=a(this);if(ya(l)){var d=z6(l);return d===!0?$6(u).get(l):d?d[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},j6=Yd.enforce,K9t=!oo.ActiveXObject&&"ActiveXObject"in oo,fSe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Y9t=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=oo[e],s=a&&a.prototype,l=a,u={},d=function(g){var y=Io(s[g]);gp(s,g,g=="add"?function(m){return y(this,m===0?0:m),this}:g=="delete"?function(m){return!(o&&!ya(m))&&y(this,m===0?0:m)}:g=="get"?function(m){return o&&!ya(m)?void 0:y(this,m===0?0:m)}:g=="has"?function(m){return!(o&&!ya(m))&&y(this,m===0?0:m)}:function(m,b){return y(this,m===0?0:m,b),this})};if(o$(e,!Ca(a)||!(o||s.forEach&&!pa((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),YK.enable();else if(o$(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=pa((function(){c.has(1)})),v=(function(g,y){if(!aSe)return!1;var m=!1;try{var b={};b[iSe]=function(){return{next:function(){return{done:m=!0}}}},(function(w){new a(w)})(b)}catch{}return m})(),h=!o&&pa((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((l=t((function(g,y){oSe(g,s);var m=(function(b,w,A){var S,E;return PT&&Ca(S=w.constructor)&&S!==A&&ya(E=S.prototype)&&E!==A.prototype&&PT(b,E),b})(new a,g,l);return y!=null&&rSe(y,m[i],{that:m,AS_ENTRIES:r}),m}))).prototype=s,s.constructor=l),(p||h)&&(d("delete"),d("has"),r&&d("get")),(h||f)&&d(i),o&&s.clear&&delete s.clear}return u[e]=l,S0({global:!0,forced:l!=a},u),s$(l,e),o||n.setStrong(l,e,r),l})("WeakMap",fSe,dSe);if(Q6e&&K9t){Gw=dSe.getConstructor(fSe,"WeakMap",!0),YK.enable();var Kw=Y9t.prototype,yde=Io(Kw.delete),H6=Io(Kw.has),bde=Io(Kw.get),wde=Io(Kw.set);l$(Kw,{delete:function(e){if(ya(e)&&!qg(e)){var t=j6(this);return t.frozen||(t.frozen=new Gw),yde(this,e)||t.frozen.delete(e)}return yde(this,e)},has:function(e){if(ya(e)&&!qg(e)){var t=j6(this);return t.frozen||(t.frozen=new Gw),H6(this,e)||t.frozen.has(e)}return H6(this,e)},get:function(e){if(ya(e)&&!qg(e)){var t=j6(this);return t.frozen||(t.frozen=new Gw),H6(this,e)?bde(this,e):t.frozen.get(e)}return bde(this,e)},set:function(e,t){if(ya(e)&&!qg(e)){var n=j6(this);n.frozen||(n.frozen=new Gw),H6(this,e)?wde(this,e,t):n.frozen.set(e,t)}else wde(this,e,t);return this}})}var pSe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},HN=zK("span").classList,Ade=HN&&HN.constructor&&HN.constructor.prototype,Q9t=Ade===Object.prototype?void 0:Ade,WN=Is("iterator"),Cde=Is("toStringTag"),VN=B4.values,hSe=function(e,t){if(e){if(e[WN]!==VN)try{Vh(e,WN,VN)}catch{e[WN]=VN}if(e[Cde]||Vh(e,Cde,t),pSe[t]){for(var n in B4)if(e[n]!==B4[n])try{Vh(e,n,B4[n])}catch{e[n]=B4[n]}}}};for(var qN in pSe)hSe(oo[qN]&&oo[qN].prototype,qN);hSe(Q9t,"DOMTokenList");var c$=new WeakMap,Z9t={type:"list-item",renderElem:function(e,t,n){c$.set(e,n);var r=e,o=r.level,i=o===void 0?0:o,a=r.ordered,s={margin:"5px 0 5px "+20*i+"px"},l="";if(a!==void 0&&a){var u=(function(c,f){var p=f,v=p.type,h=p.level,g=h===void 0?0:h,y=p.ordered,m=y!==void 0&&y;if(!m)return-1;var b=1,w=f,A=kt.findPath(c,w);if(A[0]===0)return 1;for(;A[0]>0;){var S=qt.previous(A),E=Je.node(c,S);if(E==null)break;var D=E[0],_=D.level,M=_===void 0?0:_,O=D.type,k=D.ordered;if(O!==v||M<g)break;if(M===g){if(k!==m)break;b++}w=D,A=S}return b})(n,e);l=u+"."}else l=(function(c){c===void 0&&(c=0);var f="";switch(c){case 0:f="•";break;case 1:f="◦";break;default:f="▪"}return f})(i);var d=(function(c){var f,p=c.children||[],v=p.length;if(v===0)return"";for(var h=0;h<v&&!f;h++){var g=p[h];cr.isText(g)&&(f=g)}return f==null?"":f.color||""})(e);return ro("div",{style:s},ro("span",{contentEditable:!1,style:{marginRight:"0.5em",color:d},"data-w-e-reserve":!0},l),ro("span",null,t))}},d$=function(e,t){return d$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},d$(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function gSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}d$(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function xde(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function C3(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Sde(e){return Je.nodes(e,{at:e.selection||void 0,match:function(t){return kt.findPath(e,t).length===1}})}var X9t=q6e.includes;S0({target:"Array",proto:!0},{includes:function(e){return X9t(this,e,arguments.length>1?arguments[1]:void 0)}}),w3("includes");var Ede,GN,J9t=function(){var e=Kl(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},JK=oo.RegExp,vSe=pa((function(){var e=JK("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));vSe||pa((function(){return!JK("a","y").sticky}));var eIt={BROKEN_CARET:vSe||pa((function(){var e=JK("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},tIt=oo.RegExp,nIt=pa((function(){var e=tIt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),rIt=oo.RegExp,oIt=pa((function(){var e=rIt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),iIt=Yd.get,aIt=LK("native-string-replace",String.prototype.replace),NT=RegExp.prototype.exec,f$=NT,sIt=Io("".charAt),lIt=Io("".indexOf),uIt=Io("".replace),KN=Io("".slice),YN=(GN=/b*/g,ds(NT,Ede=/a/,"a"),ds(NT,GN,"a"),Ede.lastIndex!==0||GN.lastIndex!==0),kde=eIt.BROKEN_CARET,QN=/()??/.exec("")[1]!==void 0;(YN||QN||kde||nIt||oIt)&&(f$=function(e){var t,n,r,o,i,a,s,l=this,u=iIt(l),d=_f(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=ds(f$,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=kde&&l.sticky,v=ds(J9t,l),h=l.source,g=0,y=d;if(p&&(v=uIt(v,"y",""),lIt(v,"g")===-1&&(v+="g"),y=KN(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&sIt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),QN&&(n=new RegExp("^"+h+"$(?!\\s)",v)),YN&&(r=l.lastIndex),o=ds(NT,p?n:l,y),p?o?(o.input=KN(o.input,g),o[0]=KN(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:YN&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),QN&&o&&o.length>1&&ds(aIt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=WK(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var RT=f$;S0({target:"RegExp",proto:!0,forced:/./.exec!==RT},{exec:RT});var mSe=(function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return kt.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!kt.getSelectedElems(t).some((function(n){if(Je.isVoid(t,n)&&Je.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0}))},e.prototype.exec=function(t,n){this.isActive(t)?nn.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):nn.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e})(),cIt='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',dIt='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',fIt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=Jn("listModule.unOrderedList"),n.iconSvg=cIt,n}return gSe(t,e),t})(mSe),pIt=(function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=Jn("listModule.orderedList"),n.iconSvg=dIt,n}return gSe(t,e),t})(mSe),hIt={key:"bulletedList",factory:function(){return new fIt}},gIt={key:"numberedList",factory:function(){return new pIt}},Tde=[],vIt={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=(function(u){var d=c$.get(u);if(d==null)return 0;var c=u,f=c.type,p=c.ordered,v=p!==void 0&&p,h=c.level,g=h===void 0?0:h,y=kt.findPath(d,u);if(y[0]===0)return g+1;var m=qt.previous(y),b=Je.node(d,m);if(!b)return 0;var w=C3(b,1)[0];if(kt.getNodeType(w)!==f)return g+1;var A=w,S=A.ordered,E=S!==void 0&&S,D=A.level,_=D===void 0?0:D;return _<g?g-_:_>g?0:_===g?E===v?0:1:0})(e);if(a>0)for(var s=0;s<a;s++)n+="<"+i+">",Tde.push(i);var l=(function(u){var d=c$.get(u);if(d==null)return 0;var c=u,f=c.type,p=c.ordered,v=p!==void 0&&p,h=c.level,g=h===void 0?0:h,y=kt.findPath(d,u);if(y[0]===d.children.length-1)return g+1;var m=qt.next(y),b=Je.node(d,m);if(!b)return 0;var w=C3(b,1)[0];if(kt.getNodeType(w)!==f)return g+1;var A=w,S=A.ordered,E=S!==void 0&&S,D=A.level,_=D===void 0?0:D;return _<g?g-_:_>g?0:_===g?E===v?0:1:0})(e);if(l>0)for(s=0;s<l;s++)r+="</"+Tde.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},mIt=Is("species"),yIt=XK.filter,bIt=Qz>=51||!pa((function(){var e=[];return(e.constructor={})[mIt]=function(){return{foo:1}},e.filter(Boolean).foo!==1}));S0({target:"Array",proto:!0,forced:!bIt},{filter:function(e){return yIt(this,e,arguments.length>1?arguments[1]:void 0)}});var eY=Function.prototype,_de=eY.apply,wIt=eY.bind,Dde=eY.call,AIt=typeof Reflect=="object"&&Reflect.apply||(wIt?Dde.bind(_de):function(){return Dde.apply(_de,arguments)}),Ide=(Is("species"),RegExp.prototype),CIt=nSe.charAt,xIt=function(e,t,n){return t+(n?CIt(e,t).length:1)},SIt=Math.floor,ZN=Io("".charAt),EIt=Io("".replace),XN=Io("".slice),kIt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,TIt=/\$([$&'`]|\d{1,2})/g,_It=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=TIt;return o!==void 0&&(o=RC(o),l=kIt),EIt(i,l,(function(u,d){var c;switch(ZN(d,0)){case"$":return"$";case"&":return e;case"`":return XN(t,0,n);case"'":return XN(t,a);case"<":c=o[XN(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=SIt(f/10);return p===0?u:p<=s?r[p-1]===void 0?ZN(d,1):r[p-1]+ZN(d,1):u}c=r[f-1]}return c===void 0?"":c}))},DIt=oo.TypeError,IIt=function(e,t){var n=e.exec;if(Ca(n)){var r=ds(n,e,t);return r!==null&&Kl(r),r}if(Gf(e)==="RegExp")return ds(RT,e,t);throw DIt("RegExp#exec called on incompatible receiver")},p$=Is("replace"),OIt=Math.max,MIt=Math.min,PIt=Io([].concat),JN=Io([].push),Ode=Io("".indexOf),Mde=Io("".slice),NIt="a".replace(/./,"$0")==="$0",Pde=!!/./[p$]&&/./[p$]("a","$0")==="";(function(e,t,n,r){var o=Is(e),i=!pa((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!pa((function(){var u=!1,d=/a/;return d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=Io(/./[o]),l=(function(u,d,c){var f=Pde?"$":"$0";return[function(p,v){var h=V7(this),g=p==null?void 0:YA(p,p$);return g?ds(g,p,h,v):ds(d,_f(h),p,v)},function(p,v){var h=Kl(this),g=_f(p);if(typeof v=="string"&&Ode(v,f)===-1&&Ode(v,"$<")===-1){var y=c(d,h,g,v);if(y.done)return y.value}var m=Ca(v);m||(v=_f(v));var b=h.global;if(b){var w=h.unicode;h.lastIndex=0}for(var A=[];;){var S=IIt(h,g);if(S===null||(JN(A,S),!b))break;_f(S[0])===""&&(h.lastIndex=xIt(g,V6e(h.lastIndex),w))}for(var E,D="",_=0,M=0;M<A.length;M++){for(var O=_f((S=A[M])[0]),k=OIt(MIt(LC(S.index),g.length),0),R=[],N=1;N<S.length;N++)JN(R,(E=S[N])===void 0?E:String(E));var W=S.groups;if(m){var B=PIt([O],R,k,g);W!==void 0&&JN(B,W);var z=_f(AIt(v,void 0,B))}else z=_It(O,g,k,R,W,v);k>=_&&(D+=Mde(g,_,k)+z,_=k+O.length)}return D+Mde(g,_)}]})(0,""[e],(function(u,d,c,f,p){var v=Io(u),h=d.exec;return h===RT||h===Ide.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));gp(String.prototype,e,l[0]),gp(Ide,o,l[1])}})("replace",0,!!pa((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!NIt||Pde);var RIt=oo.TypeError,ySe=function(e,t,n,r,o,i,a,s){for(var l,u,d=o,c=0,f=!!a&&QK(a,s);c<r;){if(c in n){if(l=f?f(n[c],c,t):n[c],i>0&&u$(l))u=g2(l),d=ySe(e,t,l,u,d,i-1)-1;else{if(d>=9007199254740991)throw RIt("Exceed the acceptable array length");e[d]=l}d++}c++}return d},BIt=ySe;function eR(e){return e.length?e[0].tagName.toLowerCase():""}S0({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=RC(this),n=g2(t),r=uSe(t,0);return r.length=BIt(r,t,t,n,0,e===void 0?1:LC(e)),r}}),w3("flat"),S0({global:!0},{globalThis:oo}),ac&&(Pt.fn.append=ac),ic&&(Pt.fn.attr=ic),ab&&(Pt.fn.parent=ab);var LIt={renderElems:[Z9t],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(pn.isExpanded(a))t(i);else{var s=kt.getSelectedNodeByType(o,"list-item");if(s!=null)if(a.focus.offset!==0)t(i);else{var l=s.level,u=l===void 0?0:l;u>0?nn.setNodes(o,{level:u-1}):nn.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(i)}else t(i)},o.handleTab=function(){var i,a,s,l,u=o.selection;if(u!=null){if(pn.isCollapsed(u)){var d=kt.getSelectedNodeByType(o,"list-item");if(d==null)return void n();if(u.focus.offset===0){var c=d.level,f=c===void 0?0:c;return void nn.setNodes(o,{level:f+1})}}if(pn.isExpanded(u)){var p=0,v=!1;try{for(var h=xde(Sde(o)),g=h.next();!g.done;g=h.next()){var y=C3(g.value,1)[0];kt.getNodeType(y)==="list-item"?p++:v=!0}}catch(E){i={error:E}}finally{try{g&&!g.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}if(v||p<=1)return void n();try{for(var m=xde(Sde(o)),b=m.next();!b.done;b=m.next()){var w=C3(b.value,2),A=(y=w[0],w[1]),S=y.level;f=S===void 0?0:S,nn.setNodes(o,{level:f+1},{at:A})}}catch(E){s={error:E}}finally{try{b&&!b.done&&(l=m.return)&&l.call(m)}finally{if(s)throw s.error}}}else n()}else n()},o.normalizeNode=function(i){var a=C3(i,2),s=a[0],l=a[1],u=kt.getNodeType(s);return u!=="bulleted-list"&&u!=="numbered-list"||nn.unwrapNodes(o,{at:l}),r([s,l])},o},menus:[hIt,gIt],elemsToHtml:[vIt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(e);(t=t.filter((function(a){return!!cr.isText(a)||!!n.isInline(a)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=(function(a){return eR(a.parent())==="ol"})(r),i=(function(a){for(var s=0,l=a.parent(),u=eR(l);u==="ul"||u==="ol";)u=eR(l=l.parent()),s++;return s-1})(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},bSe=vm((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",u="[object Function]",d="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",v="[object RegExp]",h="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",A=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[o]=E[i]=E[b]=E[a]=E[w]=E[s]=E[l]=E[u]=E[d]=E[c]=E[f]=E[v]=E[h]=E[g]=E[m]=!1;var D=typeof wi=="object"&&wi&&wi.Object===Object&&wi,_=typeof self=="object"&&self&&self.Object===Object&&self,M=D||_||Function("return this")(),O=t&&!t.nodeType&&t,k=O&&e&&!e.nodeType&&e,R=k&&k.exports===O,N=R&&D.process,W=(function(){try{return N&&N.binding&&N.binding("util")}catch{}})(),B=W&&W.isTypedArray;function z(xt,Ft){for(var Sn=-1,Bn=xt==null?0:xt.length;++Sn<Bn;)if(Ft(xt[Sn],Sn,xt))return!0;return!1}function j(xt){var Ft=-1,Sn=Array(xt.size);return xt.forEach((function(Bn,Fr){Sn[++Ft]=[Fr,Bn]})),Sn}function q(xt){var Ft=-1,Sn=Array(xt.size);return xt.forEach((function(Bn){Sn[++Ft]=Bn})),Sn}var Y=Array.prototype,U=Function.prototype,F=Object.prototype,H=M["__core-js_shared__"],re=U.toString,X=F.hasOwnProperty,te=(function(){var xt=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||"");return xt?"Symbol(src)_1."+xt:""})(),Z=F.toString,le=RegExp("^"+re.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=R?M.Buffer:void 0,Pe=M.Symbol,Ae=M.Uint8Array,he=F.propertyIsEnumerable,Ee=Y.splice,Q=Pe?Pe.toStringTag:void 0,me=Object.getOwnPropertySymbols,De=ve?ve.isBuffer:void 0,pe=(function(xt,Ft){return function(Sn){return xt(Ft(Sn))}})(Object.keys,Object),ie=Se(M,"DataView"),ue=Se(M,"Map"),Be=Se(M,"Promise"),Me=Se(M,"Set"),Fe=Se(M,"WeakMap"),ze=Se(Object,"create"),Ne=ot(ie),Re=ot(ue),gt=ot(Be),Bt=ot(Me),Lt=ot(Fe),an=Pe?Pe.prototype:void 0,Kt=an?an.valueOf:void 0;function Ht(xt){var Ft=-1,Sn=xt==null?0:xt.length;for(this.clear();++Ft<Sn;){var Bn=xt[Ft];this.set(Bn[0],Bn[1])}}function pt(xt){var Ft=-1,Sn=xt==null?0:xt.length;for(this.clear();++Ft<Sn;){var Bn=xt[Ft];this.set(Bn[0],Bn[1])}}function Dt(xt){var Ft=-1,Sn=xt==null?0:xt.length;for(this.clear();++Ft<Sn;){var Bn=xt[Ft];this.set(Bn[0],Bn[1])}}function dt(xt){var Ft=-1,Sn=xt==null?0:xt.length;for(this.__data__=new Dt;++Ft<Sn;)this.add(xt[Ft])}function it(xt){var Ft=this.__data__=new pt(xt);this.size=Ft.size}function de(xt,Ft){var Sn=Qt(xt),Bn=!Sn&&Ut(xt),Fr=!Sn&&!Bn&&Gt(xt),kn=!Sn&&!Bn&&!Fr&&Nt(xt),Ye=Sn||Bn||Fr||kn,At=Ye?(function(Xt,yn){for(var Ln=-1,Zn=Array(Xt);++Ln<Xt;)Zn[Ln]=yn(Ln);return Zn})(xt.length,String):[],tn=At.length;for(var Ct in xt)!X.call(xt,Ct)||Ye&&(Ct=="length"||Fr&&(Ct=="offset"||Ct=="parent")||kn&&(Ct=="buffer"||Ct=="byteLength"||Ct=="byteOffset")||Le(Ct,tn))||At.push(Ct);return At}function tt(xt,Ft){for(var Sn=xt.length;Sn--;)if(vt(xt[Sn][0],Ft))return Sn;return-1}function ft(xt){return xt==null?xt===void 0?"[object Undefined]":"[object Null]":Q&&Q in Object(xt)?(function(Ft){var Sn=X.call(Ft,Q),Bn=Ft[Q];try{Ft[Q]=void 0;var Fr=!0}catch{}var kn=Z.call(Ft);return Fr&&(Sn?Ft[Q]=Bn:delete Ft[Q]),kn})(xt):(function(Ft){return Z.call(Ft)})(xt)}function Mt(xt){return fr(xt)&&ft(xt)==o}function Tn(xt,Ft,Sn,Bn,Fr){return xt===Ft||(xt==null||Ft==null||!fr(xt)&&!fr(Ft)?xt!=xt&&Ft!=Ft:(function(kn,Ye,At,tn,Ct,Xt){var yn=Qt(kn),Ln=Qt(Ye),Zn=yn?i:$e(kn),jr=Ln?i:$e(Ye),yo=(Zn=Zn==o?f:Zn)==f,Kr=(jr=jr==o?f:jr)==f,xo=Zn==jr;if(xo&&Gt(kn)){if(!Gt(Ye))return!1;yn=!0,yo=!1}if(xo&&!yo)return Xt||(Xt=new it),yn||Nt(kn)?ke(kn,Ye,At,tn,Ct,Xt):(function(Rr,Ur,Hr,to,pr,Po,ni){switch(Hr){case w:if(Rr.byteLength!=Ur.byteLength||Rr.byteOffset!=Ur.byteOffset)return!1;Rr=Rr.buffer,Ur=Ur.buffer;case b:return!(Rr.byteLength!=Ur.byteLength||!Po(new Ae(Rr),new Ae(Ur)));case a:case s:case c:return vt(+Rr,+Ur);case l:return Rr.name==Ur.name&&Rr.message==Ur.message;case v:case g:return Rr==Ur+"";case d:var Wi=j;case h:var va=1&to;if(Wi||(Wi=q),Rr.size!=Ur.size&&!va)return!1;var aa=ni.get(Rr);if(aa)return aa==Ur;to|=2,ni.set(Rr,Ur);var Ci=ke(Wi(Rr),Wi(Ur),to,pr,Po,ni);return ni.delete(Rr),Ci;case y:if(Kt)return Kt.call(Rr)==Kt.call(Ur)}return!1})(kn,Ye,Zn,At,tn,Ct,Xt);if(!(1&At)){var zo=yo&&X.call(kn,"__wrapped__"),Sr=Kr&&X.call(Ye,"__wrapped__");if(zo||Sr){var Yr=zo?kn.value():kn,vo=Sr?Ye.value():Ye;return Xt||(Xt=new it),Ct(Yr,vo,At,tn,Xt)}}return xo?(Xt||(Xt=new it),(function(Rr,Ur,Hr,to,pr,Po){var ni=1&Hr,Wi=be(Rr),va=Wi.length,aa=be(Ur).length;if(va!=aa&&!ni)return!1;for(var Ci=va;Ci--;){var xi=Wi[Ci];if(!(ni?xi in Ur:X.call(Ur,xi)))return!1}var is=Po.get(Rr);if(is&&Po.get(Ur))return is==Ur;var Oi=!0;Po.set(Rr,Ur),Po.set(Ur,Rr);for(var mi=ni;++Ci<va;){var Si=Rr[xi=Wi[Ci]],yi=Ur[xi];if(to)var sa=ni?to(yi,Si,xi,Ur,Rr,Po):to(Si,yi,xi,Rr,Ur,Po);if(!(sa===void 0?Si===yi||pr(Si,yi,Hr,to,Po):sa)){Oi=!1;break}mi||(mi=xi=="constructor")}if(Oi&&!mi){var Dr=Rr.constructor,Mi=Ur.constructor;Dr==Mi||!("constructor"in Rr)||!("constructor"in Ur)||typeof Dr=="function"&&Dr instanceof Dr&&typeof Mi=="function"&&Mi instanceof Mi||(Oi=!1)}return Po.delete(Rr),Po.delete(Ur),Oi})(kn,Ye,At,tn,Ct,Xt)):!1})(xt,Ft,Sn,Bn,Tn,Fr))}function Nn(xt){return!(!wr(xt)||(function(Ft){return!!te&&te in Ft})(xt))&&(vn(xt)?le:A).test(ot(xt))}function We(xt){if(Sn=(Ft=xt)&&Ft.constructor,Bn=typeof Sn=="function"&&Sn.prototype||F,Ft!==Bn)return pe(xt);var Ft,Sn,Bn,Fr=[];for(var kn in Object(xt))X.call(xt,kn)&&kn!="constructor"&&Fr.push(kn);return Fr}function ke(xt,Ft,Sn,Bn,Fr,kn){var Ye=1&Sn,At=xt.length,tn=Ft.length;if(At!=tn&&!(Ye&&tn>At))return!1;var Ct=kn.get(xt);if(Ct&&kn.get(Ft))return Ct==Ft;var Xt=-1,yn=!0,Ln=2&Sn?new dt:void 0;for(kn.set(xt,Ft),kn.set(Ft,xt);++Xt<At;){var Zn=xt[Xt],jr=Ft[Xt];if(Bn)var yo=Ye?Bn(jr,Zn,Xt,Ft,xt,kn):Bn(Zn,jr,Xt,xt,Ft,kn);if(yo!==void 0){if(yo)continue;yn=!1;break}if(Ln){if(!z(Ft,(function(Kr,xo){if(zo=xo,!Ln.has(zo)&&(Zn===Kr||Fr(Zn,Kr,Sn,Bn,kn)))return Ln.push(xo);var zo}))){yn=!1;break}}else if(Zn!==jr&&!Fr(Zn,jr,Sn,Bn,kn)){yn=!1;break}}return kn.delete(xt),kn.delete(Ft),yn}function be(xt){return(function(Ft,Sn,Bn){var Fr=Sn(Ft);return Qt(Ft)?Fr:(function(kn,Ye){for(var At=-1,tn=Ye.length,Ct=kn.length;++At<tn;)kn[Ct+At]=Ye[At];return kn})(Fr,Bn(Ft))})(xt,_n,qe)}function fe(xt,Ft){var Sn,Bn,Fr=xt.__data__;return((Bn=typeof(Sn=Ft))=="string"||Bn=="number"||Bn=="symbol"||Bn=="boolean"?Sn!=="__proto__":Sn===null)?Fr[typeof Ft=="string"?"string":"hash"]:Fr.map}function Se(xt,Ft){var Sn=(function(Bn,Fr){return Bn?.[Fr]})(xt,Ft);return Nn(Sn)?Sn:void 0}Ht.prototype.clear=function(){this.__data__=ze?ze(null):{},this.size=0},Ht.prototype.delete=function(xt){var Ft=this.has(xt)&&delete this.__data__[xt];return this.size-=Ft?1:0,Ft},Ht.prototype.get=function(xt){var Ft=this.__data__;if(ze){var Sn=Ft[xt];return Sn===n?void 0:Sn}return X.call(Ft,xt)?Ft[xt]:void 0},Ht.prototype.has=function(xt){var Ft=this.__data__;return ze?Ft[xt]!==void 0:X.call(Ft,xt)},Ht.prototype.set=function(xt,Ft){var Sn=this.__data__;return this.size+=this.has(xt)?0:1,Sn[xt]=ze&&Ft===void 0?n:Ft,this},pt.prototype.clear=function(){this.__data__=[],this.size=0},pt.prototype.delete=function(xt){var Ft=this.__data__,Sn=tt(Ft,xt);return!(Sn<0)&&(Sn==Ft.length-1?Ft.pop():Ee.call(Ft,Sn,1),--this.size,!0)},pt.prototype.get=function(xt){var Ft=this.__data__,Sn=tt(Ft,xt);return Sn<0?void 0:Ft[Sn][1]},pt.prototype.has=function(xt){return tt(this.__data__,xt)>-1},pt.prototype.set=function(xt,Ft){var Sn=this.__data__,Bn=tt(Sn,xt);return Bn<0?(++this.size,Sn.push([xt,Ft])):Sn[Bn][1]=Ft,this},Dt.prototype.clear=function(){this.size=0,this.__data__={hash:new Ht,map:new(ue||pt),string:new Ht}},Dt.prototype.delete=function(xt){var Ft=fe(this,xt).delete(xt);return this.size-=Ft?1:0,Ft},Dt.prototype.get=function(xt){return fe(this,xt).get(xt)},Dt.prototype.has=function(xt){return fe(this,xt).has(xt)},Dt.prototype.set=function(xt,Ft){var Sn=fe(this,xt),Bn=Sn.size;return Sn.set(xt,Ft),this.size+=Sn.size==Bn?0:1,this},dt.prototype.add=dt.prototype.push=function(xt){return this.__data__.set(xt,n),this},dt.prototype.has=function(xt){return this.__data__.has(xt)},it.prototype.clear=function(){this.__data__=new pt,this.size=0},it.prototype.delete=function(xt){var Ft=this.__data__,Sn=Ft.delete(xt);return this.size=Ft.size,Sn},it.prototype.get=function(xt){return this.__data__.get(xt)},it.prototype.has=function(xt){return this.__data__.has(xt)},it.prototype.set=function(xt,Ft){var Sn=this.__data__;if(Sn instanceof pt){var Bn=Sn.__data__;if(!ue||Bn.length<199)return Bn.push([xt,Ft]),this.size=++Sn.size,this;Sn=this.__data__=new Dt(Bn)}return Sn.set(xt,Ft),this.size=Sn.size,this};var qe=me?function(xt){return xt==null?[]:(xt=Object(xt),(function(Ft,Sn){for(var Bn=-1,Fr=Ft==null?0:Ft.length,kn=0,Ye=[];++Bn<Fr;){var At=Ft[Bn];Sn(At,Bn,Ft)&&(Ye[kn++]=At)}return Ye})(me(xt),(function(Ft){return he.call(xt,Ft)})))}:function(){return[]},$e=ft;function Le(xt,Ft){return!!(Ft=Ft??r)&&(typeof xt=="number"||S.test(xt))&&xt>-1&&xt%1==0&&xt<Ft}function ot(xt){if(xt!=null){try{return re.call(xt)}catch{}try{return xt+""}catch{}}return""}function vt(xt,Ft){return xt===Ft||xt!=xt&&Ft!=Ft}(ie&&$e(new ie(new ArrayBuffer(1)))!=w||ue&&$e(new ue)!=d||Be&&$e(Be.resolve())!=p||Me&&$e(new Me)!=h||Fe&&$e(new Fe)!=m)&&($e=function(xt){var Ft=ft(xt),Sn=Ft==f?xt.constructor:void 0,Bn=Sn?ot(Sn):"";if(Bn)switch(Bn){case Ne:return w;case Re:return d;case gt:return p;case Bt:return h;case Lt:return m}return Ft});var Ut=Mt((function(){return arguments})())?Mt:function(xt){return fr(xt)&&X.call(xt,"callee")&&!he.call(xt,"callee")},Qt=Array.isArray,Gt=De||function(){return!1};function vn(xt){if(!wr(xt))return!1;var Ft=ft(xt);return Ft==u||Ft=="[object GeneratorFunction]"||Ft=="[object AsyncFunction]"||Ft=="[object Proxy]"}function Un(xt){return typeof xt=="number"&&xt>-1&&xt%1==0&&xt<=r}function wr(xt){var Ft=typeof xt;return xt!=null&&(Ft=="object"||Ft=="function")}function fr(xt){return xt!=null&&typeof xt=="object"}var Nt=B?(function(xt){return function(Ft){return xt(Ft)}})(B):function(xt){return fr(xt)&&Un(xt.length)&&!!E[ft(xt)]};function _n(xt){return(Ft=xt)!=null&&Un(Ft.length)&&!vn(Ft)?de(xt):We(xt);var Ft}e.exports=function(xt,Ft){return Tn(xt,Ft)}}));Gl("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Gl("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var Nde=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wSe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Xp,$8,W6=function(e){return e&&e.Math==Math&&e},Do=W6(typeof globalThis=="object"&&globalThis)||W6(typeof window=="object"&&window)||W6(typeof self=="object"&&self)||W6(typeof Nde=="object"&&Nde)||(function(){return this})()||Function("return this")(),Wa=function(e){try{return!!e()}catch{return!0}},E0=!Wa((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Yw=Function.prototype.call,Qa=Yw.bind?Yw.bind(Yw):function(){return Yw.apply(Yw,arguments)},Rde={}.propertyIsEnumerable,Bde=Object.getOwnPropertyDescriptor,FIt={f:Bde&&!Rde.call({1:2},1)?function(e){var t=Bde(this,e);return!!t&&t.enumerable}:Rde},tY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ASe=Function.prototype,h$=ASe.bind,g$=ASe.call,UIt=h$&&h$.bind(g$),Mo=h$?function(e){return e&&UIt(g$,e)}:function(e){return e&&function(){return g$.apply(e,arguments)}},zIt=Mo({}.toString),$It=Mo("".slice),qh=function(e){return $It(zIt(e),8,-1)},tR=Do.Object,jIt=Mo("".split),CSe=Wa((function(){return!tR("z").propertyIsEnumerable(0)}))?function(e){return qh(e)=="String"?jIt(e,""):tR(e)}:tR,HIt=Do.TypeError,k0=function(e){if(e==null)throw HIt("Can't call method on "+e);return e},UC=function(e){return CSe(k0(e))},Ys=function(e){return typeof e=="function"},Od=function(e){return typeof e=="object"?e!==null:Ys(e)},WIt=function(e){return Ys(e)?e:void 0},zC=function(e,t){return arguments.length<2?WIt(Do[e]):Do[e]&&Do[e][t]},xSe=Mo({}.isPrototypeOf),nR=zC("navigator","userAgent")||"",Lde=Do.process,Fde=Do.Deno,Ude=Lde&&Lde.versions||Fde&&Fde.version,zde=Ude&&Ude.v8;zde&&($8=(Xp=zde.split("."))[0]>0&&Xp[0]<4?1:+(Xp[0]+Xp[1])),!$8&&nR&&(!(Xp=nR.match(/Edge\/(\d+)/))||Xp[1]>=74)&&(Xp=nR.match(/Chrome\/(\d+)/))&&($8=+Xp[1]);var v$=$8,m$=!!Object.getOwnPropertySymbols&&!Wa((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&v$&&v$<41})),nY=m$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",VIt=Do.Object,rR=nY?function(e){return typeof e=="symbol"}:function(e){var t=zC("Symbol");return Ys(t)&&xSe(t.prototype,VIt(e))},qIt=Do.String,SSe=function(e){try{return qIt(e)}catch{return"Object"}},GIt=Do.TypeError,ESe=function(e){if(Ys(e))return e;throw GIt(SSe(e)+" is not a function")},rY=function(e,t){var n=e[t];return n==null?void 0:ESe(n)},KIt=Do.TypeError,YIt=Object.defineProperty,oY=function(e,t){try{YIt(Do,e,{value:t,configurable:!0,writable:!0})}catch{Do[e]=t}return t},Gh=Do["__core-js_shared__"]||oY("__core-js_shared__",{}),iY=wSe((function(e){(e.exports=function(t,n){return Gh[t]||(Gh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),QIt=Do.Object,aY=function(e){return QIt(k0(e))},ZIt=Mo({}.hasOwnProperty),Yu=Object.hasOwn||function(e,t){return ZIt(aY(e),t)},XIt=0,JIt=Math.random(),eOt=Mo(1 .toString),kSe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+eOt(++XIt+JIt,36)},Qw=iY("wks"),bv=Do.Symbol,$de=bv&&bv.for,tOt=nY?bv:bv&&bv.withoutSetter||kSe,pc=function(e){if(!Yu(Qw,e)||!m$&&typeof Qw[e]!="string"){var t="Symbol."+e;m$&&Yu(bv,e)?Qw[e]=bv[e]:Qw[e]=nY&&$de?$de(t):tOt(t)}return Qw[e]},nOt=Do.TypeError,rOt=pc("toPrimitive"),sY=function(e){var t=(function(n,r){if(!Od(n)||rR(n))return n;var o,i=rY(n,rOt);if(i){if(o=Qa(i,n,r),!Od(o)||rR(o))return o;throw nOt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(Ys(l=a.toString)&&!Od(u=Qa(l,a))||Ys(l=a.valueOf)&&!Od(u=Qa(l,a)))return u;throw KIt("Can't convert object to primitive value")})(n)})(e,"string");return rR(t)?t:t+""},y$=Do.document,oOt=Od(y$)&&Od(y$.createElement),lY=function(e){return oOt?y$.createElement(e):{}},TSe=!E0&&!Wa((function(){return Object.defineProperty(lY("div"),"a",{get:function(){return 7}}).a!=7})),jde=Object.getOwnPropertyDescriptor,_Se={f:E0?jde:function(e,t){if(e=UC(e),t=sY(t),TSe)try{return jde(e,t)}catch{}if(Yu(e,t))return tY(!Qa(FIt.f,e,t),e[t])}},iOt=Do.String,aOt=Do.TypeError,Qu=function(e){if(Od(e))return e;throw aOt(iOt(e)+" is not an object")},sOt=Do.TypeError,Hde=Object.defineProperty,$C={f:E0?Hde:function(e,t,n){if(Qu(e),t=sY(t),Qu(n),TSe)try{return Hde(e,t,n)}catch{}if("get"in n||"set"in n)throw sOt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},wb=E0?function(e,t,n){return $C.f(e,t,tY(1,n))}:function(e,t,n){return e[t]=n,e},lOt=Mo(Function.toString);Ys(Gh.inspectSource)||(Gh.inspectSource=function(e){return lOt(e)});var b$,BT,w$,uY=Gh.inspectSource,Wde=Do.WeakMap,uOt=Ys(Wde)&&/native code/.test(uY(Wde)),Vde=iY("keys"),DSe=function(e){return Vde[e]||(Vde[e]=kSe(e))},cY={},qde=Do.TypeError,cOt=Do.WeakMap;if(uOt||Gh.state){var dg=Gh.state||(Gh.state=new cOt),dOt=Mo(dg.get),Gde=Mo(dg.has),fOt=Mo(dg.set);b$=function(e,t){if(Gde(dg,e))throw new qde("Object already initialized");return t.facade=e,fOt(dg,e,t),t},BT=function(e){return dOt(dg,e)||{}},w$=function(e){return Gde(dg,e)}}else{var d1=DSe("state");cY[d1]=!0,b$=function(e,t){if(Yu(e,d1))throw new qde("Object already initialized");return t.facade=e,wb(e,d1,t),t},BT=function(e){return Yu(e,d1)?e[d1]:{}},w$=function(e){return Yu(e,d1)}}var A$={get:BT,enforce:function(e){return w$(e)?BT(e):b$(e,{})}},ISe=Function.prototype,pOt=E0&&Object.getOwnPropertyDescriptor,Kde=Yu(ISe,"name"),dY={PROPER:Kde&&(function(){}).name==="something",CONFIGURABLE:Kde&&(!E0||E0&&pOt(ISe,"name").configurable)},QA=wSe((function(e){var t=dY.CONFIGURABLE,n=A$.get,r=A$.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;Ys(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Yu(s,"name")||t&&s.name!==p)&&wb(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==Do?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:wb(i,a,s)):c?i[a]=s:oY(a,s)})(Function.prototype,"toString",(function(){return Ys(this)&&n(this).source||uY(this)}))})),hOt=Math.ceil,gOt=Math.floor,Y7=function(e){var t=+e;return t!=t||t===0?0:(t>0?gOt:hOt)(t)},vOt=Math.max,mOt=Math.min,ZA=function(e,t){var n=Y7(e);return n<0?vOt(n+t,0):mOt(n,t)},yOt=Math.min,fY=function(e){return e>0?yOt(Y7(e),9007199254740991):0},Q7=function(e){return fY(e.length)},bOt=function(e){return function(t,n,r){var o,i=UC(t),a=Q7(i),s=ZA(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},wOt=bOt(!1),Yde=Mo([].push),OSe=function(e,t){var n,r=UC(e),o=0,i=[];for(n in r)!Yu(cY,n)&&Yu(r,n)&&Yde(i,n);for(;t.length>o;)Yu(r,n=t[o++])&&(~wOt(i,n)||Yde(i,n));return i},LT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],AOt=LT.concat("length","prototype"),COt={f:Object.getOwnPropertyNames||function(e){return OSe(e,AOt)}},xOt={f:Object.getOwnPropertySymbols},SOt=Mo([].concat),EOt=zC("Reflect","ownKeys")||function(e){var t=COt.f(Qu(e)),n=xOt.f;return n?SOt(t,n(e)):t},kOt=function(e,t){for(var n=EOt(t),r=$C.f,o=_Se.f,i=0;i<n.length;i++){var a=n[i];Yu(e,a)||r(e,a,o(t,a))}},TOt=/#|\.prototype\./,jC=function(e,t){var n=DOt[_Ot(e)];return n==OOt||n!=IOt&&(Ys(t)?Wa(t):!!t)},_Ot=jC.normalize=function(e){return String(e).replace(TOt,".").toLowerCase()},DOt=jC.data={},IOt=jC.NATIVE="N",OOt=jC.POLYFILL="P",MOt=jC,POt=_Se.f,T0=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?Do:u?Do[s]||oY(s,{}):(Do[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=POt(n,r))&&a.value:n[r],!MOt(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;kOt(i,o)}(e.sham||o&&o.sham)&&wb(i,"sham",!0),QA(n,r,i,e)}},MSe={};MSe[pc("toStringTag")]="z";var pY=String(MSe)==="[object z]",NOt=pc("toStringTag"),ROt=Do.Object,BOt=qh((function(){return arguments})())=="Arguments",hY=pY?qh:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=ROt(e),NOt))=="string"?n:BOt?qh(t):(r=qh(t))=="Object"&&Ys(t.callee)?"Arguments":r},LOt=Do.String,Us=function(e){if(hY(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return LOt(e)},FOt=/"/g,UOt=Mo("".replace);T0({target:"String",proto:!0,forced:Wa((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Us(k0(this)),r="<a",(r+=' name="'+UOt(Us(t),FOt,""")+'"')+">"+n+"</a>";var t,n,r}});var V6,PSe=function(){var e=Qu(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},gY=Do.RegExp,C$=Wa((function(){var e=gY("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));C$||Wa((function(){return!gY("a","y").sticky}));var NSe={BROKEN_CARET:C$||Wa((function(){var e=gY("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:C$},zOt=Object.keys||function(e){return OSe(e,LT)},$Ot=E0?Object.defineProperties:function(e,t){Qu(e);for(var n,r=UC(t),o=zOt(t),i=o.length,a=0;i>a;)$C.f(e,n=o[a++],r[n]);return e},jOt=zC("document","documentElement"),RSe=DSe("IE_PROTO"),oR=function(){},BSe=function(e){return"<script>"+e+"<\/script>"},Qde=function(e){e.write(BSe("")),e.close();var t=e.parentWindow.Object;return e=null,t},j8=function(){try{V6=new ActiveXObject("htmlfile")}catch{}var e,t;j8=typeof document<"u"?document.domain&&V6?Qde(V6):((t=lY("iframe")).style.display="none",jOt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(BSe("document.F=Object")),e.close(),e.F):Qde(V6);for(var n=LT.length;n--;)delete j8.prototype[LT[n]];return j8()};cY[RSe]=!0;var Zde,iR,LSe=Object.create||function(e,t){var n;return e!==null?(oR.prototype=Qu(e),n=new oR,oR.prototype=null,n[RSe]=e):n=j8(),t===void 0?n:$Ot(n,t)},HOt=Do.RegExp,WOt=Wa((function(){var e=HOt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),VOt=Do.RegExp,qOt=Wa((function(){var e=VOt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),GOt=A$.get,KOt=iY("native-string-replace",String.prototype.replace),FT=RegExp.prototype.exec,x$=FT,YOt=Mo("".charAt),QOt=Mo("".indexOf),ZOt=Mo("".replace),aR=Mo("".slice),sR=(iR=/b*/g,Qa(FT,Zde=/a/,"a"),Qa(FT,iR,"a"),Zde.lastIndex!==0||iR.lastIndex!==0),Xde=NSe.BROKEN_CARET,lR=/()??/.exec("")[1]!==void 0;(sR||lR||Xde||WOt||qOt)&&(x$=function(e){var t,n,r,o,i,a,s,l=this,u=GOt(l),d=Us(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=Qa(x$,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Xde&&l.sticky,v=Qa(PSe,l),h=l.source,g=0,y=d;if(p&&(v=ZOt(v,"y",""),QOt(v,"g")===-1&&(v+="g"),y=aR(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&YOt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),lR&&(n=new RegExp("^"+h+"$(?!\\s)",v)),sR&&(r=l.lastIndex),o=Qa(FT,p?n:l,y),p?o?(o.input=aR(o.input,g),o[0]=aR(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:sR&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),lR&&o&&o.length>1&&Qa(KOt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=LSe(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var XA=x$;T0({target:"RegExp",proto:!0,forced:/./.exec!==XA},{exec:XA});var UT=Array.isArray||function(e){return qh(e)=="Array"},FSe=function(){},XOt=[],USe=zC("Reflect","construct"),vY=/^\s*(?:class|function)\b/,JOt=Mo(vY.exec),eMt=!vY.exec(FSe),Zw=function(e){if(!Ys(e))return!1;try{return USe(FSe,XOt,e),!0}catch{return!1}},mY=!USe||Wa((function(){var e;return Zw(Zw.call)||!Zw(Object)||!Zw((function(){e=!0}))||e}))?function(e){if(!Ys(e))return!1;switch(hY(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return eMt||!!JOt(vY,uY(e))}:Zw,zSe=function(e,t,n){var r=sY(t);r in e?$C.f(e,r,tY(0,n)):e[r]=n},tMt=pc("species"),yY=function(e){return v$>=51||!Wa((function(){var t=[];return(t.constructor={})[tMt]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},nMt=Mo([].slice),rMt=yY("slice"),oMt=pc("species"),uR=Do.Array,iMt=Math.max;function Yc(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Jde(e){var t=e.selection;if(t==null)return!1;var n=Yc(Je.nodes(e,{match:function(i){return kt.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Yc(n,2)[1],o=Je.start(e,r);if(Ao.equals(t.anchor,o))return!0}return!1}function efe(e,t){var n,r,o=Je.nodes(e,{at:t,match:function(l){return kt.getNodeType(l)==="table"}}),i=!1;try{for(var a=(function(l){var u=typeof Symbol=="function"&&Symbol.iterator,d=u&&l[u],c=0;if(d)return d.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&c>=l.length&&(l=void 0),{value:l&&l[c++],done:!l}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")})(o),s=a.next();!s.done;s=a.next())s.value,i=!0}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}T0({target:"Array",proto:!0,forced:!rMt},{slice:function(e,t){var n,r,o,i=UC(this),a=Q7(i),s=ZA(e,a),l=ZA(t===void 0?a:t,a);if(UT(i)&&(n=i.constructor,(mY(n)&&(n===uR||UT(n.prototype))||Od(n)&&(n=n[oMt])===null)&&(n=void 0),n===uR||n===void 0))return nMt(i,s,l);for(r=new(n===void 0?uR:n)(iMt(l-s,0)),o=0;s<l;s++,o++)s in i&&zSe(r,o,i[s]);return r.length=o,r}});var tfe=Mo(Mo.bind),aMt=pc("species"),nfe=Do.Array,sMt=function(e,t){return new((function(n){var r;return UT(n)&&(r=n.constructor,(mY(r)&&(r===nfe||UT(r.prototype))||Od(r)&&(r=r[aMt])===null)&&(r=void 0)),r===void 0?nfe:r})(e))(t===0?0:t)},rfe=Mo([].push),q6=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=aY(l),h=CSe(v),g=(function(A,S){return ESe(A),S===void 0?A:tfe?tfe(A,S):function(){return A.apply(S,arguments)}})(u,d),y=Q7(h),m=0,b=c||sMt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:rfe(w,f)}else switch(e){case 4:return!1;case 7:rfe(w,f)}return i?-1:r||o?o:w}},Z7={forEach:q6(0),map:q6(1),filter:q6(2),find:q6(5)},lMt=Z7.map;T0({target:"Array",proto:!0,forced:!yY("map")},{map:function(e){return lMt(this,e,arguments.length>1?arguments[1]:void 0)}});var uMt=pY?{}.toString:function(){return"[object "+hY(this)+"]"};function X7(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function $Se(e){return X7(e).every((function(t){return!!t.isHeader}))}pY||QA(Object.prototype,"toString",uMt,{unsafe:!0});var cMt=dY.PROPER,S$=RegExp.prototype,jSe=S$.toString,dMt=Mo(PSe),fMt=Wa((function(){return jSe.call({source:"a",flags:"b"})!="/a/b"})),pMt=cMt&&jSe.name!="toString";(fMt||pMt)&&QA(RegExp.prototype,"toString",(function(){var e=Qu(this),t=Us(e.source),n=e.flags;return"/"+t+"/"+Us(n===void 0&&xSe(S$,e)&&!("flags"in S$)?dMt(e):n)}),{unsafe:!0});var E$=pc("unscopables"),k$=Array.prototype;k$[E$]==null&&$C.f(k$,E$,{configurable:!0,value:LSe(null)});var hMt=Z7.find,ofe=!0;"find"in[]&&Array(1).find((function(){ofe=!1})),T0({target:"Array",proto:!0,forced:ofe},{find:function(e){return hMt(this,e,arguments.length>1?arguments[1]:void 0)}}),k$[E$].find=!0;var bY=Function.prototype,ife=bY.apply,gMt=bY.bind,afe=bY.call,HSe=typeof Reflect=="object"&&Reflect.apply||(gMt?afe.bind(ife):function(){return afe.apply(ife,arguments)}),vMt=pc("species"),cR=RegExp.prototype,WSe=function(e,t,n,r){var o=pc(e),i=!Wa((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!Wa((function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[vMt]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=Mo(/./[o]),l=t(o,""[e],(function(u,d,c,f,p){var v=Mo(u),h=d.exec;return h===XA||h===cR.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));QA(String.prototype,e,l[0]),QA(cR,o,l[1])}r&&wb(cR[o],"sham",!0)},mMt=pc("match"),yMt=Do.TypeError,bMt=pc("species"),wMt=Mo("".charAt),sfe=Mo("".charCodeAt),AMt=Mo("".slice),CMt=function(e){return function(t,n){var r,o,i=Us(k0(t)),a=Y7(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=sfe(i,a))<55296||r>56319||a+1===s||(o=sfe(i,a+1))<56320||o>57343?e?wMt(i,a):r:e?AMt(i,a,a+2):o-56320+(r-55296<<10)+65536}},xMt=CMt(!0),VSe=function(e,t,n){return t+(n?xMt(e,t).length:1)},SMt=Do.Array,EMt=Math.max,lfe=function(e,t,n){for(var r=Q7(e),o=ZA(t,r),i=ZA(n===void 0?r:n,r),a=SMt(EMt(i-o,0)),s=0;o<i;o++,s++)zSe(a,s,e[o]);return a.length=s,a},kMt=Do.TypeError,T$=function(e,t){var n=e.exec;if(Ys(n)){var r=Qa(n,e,t);return r!==null&&Qu(r),r}if(qh(e)==="RegExp")return Qa(XA,e,t);throw kMt("RegExp#exec called on incompatible receiver")},f1=NSe.UNSUPPORTED_Y,TMt=Math.min,qSe=[].push,_Mt=Mo(/./.exec),p1=Mo(qSe),Xw=Mo("".slice);WSe("split",(function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,s,l=Us(k0(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[l];if(!Od(a=o)||!((s=a[mMt])!==void 0?s:qh(a)=="RegExp"))return Qa(t,l,o,u);for(var d,c,f,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,g=new RegExp(o.source,v+"g");(d=Qa(XA,g,l))&&!((c=g.lastIndex)>h&&(p1(p,Xw(l,h,d.index)),d.length>1&&d.index<l.length&&HSe(qSe,p,lfe(d,1)),f=d[0].length,h=c,p.length>=u));)g.lastIndex===d.index&&g.lastIndex++;return h===l.length?!f&&_Mt(g,"")||p1(p,""):p1(p,Xw(l,h)),p.length>u?lfe(p,0,u):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Qa(t,this,o,i)}:t,[function(o,i){var a=k0(this),s=o==null?void 0:rY(o,e);return s?Qa(s,o,a,i):Qa(r,Us(a),o,i)},function(o,i){var a=Qu(this),s=Us(o),l=n(r,a,s,i,r!==t);if(l.done)return l.value;var u=(function(w,A){var S,E=Qu(w).constructor;return E===void 0||(S=Qu(E)[bMt])==null?A:(function(D){if(mY(D))return D;throw yMt(SSe(D)+" is not a constructor")})(S)})(a,RegExp),d=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(f1?"g":"y"),f=new u(f1?"^(?:"+a.source+")":a,c),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(s.length===0)return T$(f,s)===null?[s]:[];for(var v=0,h=0,g=[];h<s.length;){f.lastIndex=f1?0:h;var y,m=T$(f,f1?Xw(s,h):s);if(m===null||(y=TMt(fY(f.lastIndex+(f1?h:0)),s.length))===v)h=VSe(s,h,d);else{if(p1(g,Xw(s,v,h)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(p1(g,m[b]),g.length===p)return g;h=v=y}}return p1(g,Xw(s,v)),g}]}),!!Wa((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),f1);var _$=`
- \v\f\r \u2028\u2029\uFEFF`,ufe=Mo("".replace),zT="["+_$+"]",DMt=RegExp("^"+zT+zT+"*"),IMt=RegExp(zT+zT+"*$"),OMt=function(e){return function(t){var n=Us(k0(t));return 1&e&&(n=ufe(n,DMt,"")),2&e&&(n=ufe(n,IMt,"")),n}},MMt={trim:OMt(3)},PMt=dY.PROPER,NMt=MMt.trim;function GSe(e){return e.length?e[0].tagName.toLowerCase():""}T0({target:"String",proto:!0,forced:(function(e){return Wa((function(){return!!_$[e]()||"
"[e]()!=="
"||PMt&&_$[e].name!==e}))})("trim")},{trim:function(){return NMt(this)}}),T0({global:!0},{globalThis:Do}),ac&&(Pt.fn.append=ac),Kd&&(Pt.fn.on=Kd),b0&&(Pt.fn.focus=b0),ic&&(Pt.fn.attr=ic),Gd&&(Pt.fn.val=Gd),y0&&(Pt.fn.html=y0),ob&&(Pt.fn.dataset=ob),tb&&(Pt.fn.addClass=tb),nb&&(Pt.fn.removeClass=nb),lb&&(Pt.fn.children=lb),Hk&&(Pt.fn.each=Hk),sb&&(Pt.fn.find=sb);var JA=!1,KSe=0,YSe=0,e5=null,t5=null,x3=Pt("body");function QSe(e){JA=!1,t5=null,e5=null,x3.off("mousemove",ZSe),x3.off("mouseup",QSe)}x3.on("mousedown",(function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),JA=!0;var n=e.clientX;KSe=n;var r=t.getBoundingClientRect().width;YSe=r,x3.on("mousemove",ZSe),x3.on("mouseup",QSe)}}));var ZSe=Gv((function(e){if(JA&&t5!=null&&e5!=null){e.preventDefault();var t=e.clientX,n=YSe+(t-KSe);(n=Math.floor(100*n)/100)<30&&(n=30),nn.setNodes(t5,{width:n.toString()},{at:e5})}}),100),RMt={type:"table",renderElem:function(e,t,n){var r=(function(s,l){if(s.isDisabled())return!1;var u=s.selection;if(u==null||pn.isCollapsed(u))return!0;var d=u.anchor,c=u.focus,f=kt.findPath(s,l),p=Je.start(s,f),v=Je.end(s,f),h=Ao.compare(d,v)<=0&&Ao.compare(d,p)>=0,g=Ao.compare(c,v)<=0&&Ao.compare(c,p)>=0;return!!(h&&g&&qt.equals(d.path.slice(0,3),c.path.slice(0,3)))})(n,e),o=e.width,i=o===void 0?"auto":o,a=ro("div",{className:"table-container","data-selected":kt.isNodeSelected(n,e),on:{mousedown:function(s){if(s.target.tagName==="DIV"&&s.preventDefault(),!n.isDisabled()){var l=kt.findPath(n,e),u=Je.start(n,l),d=n.selection;d!=null?d.anchor.path[0]!==l[0]&&n.select(u):n.select(u)}}}},ro("table",{width:i,contentEditable:r},ro("colgroup",null,X7(e).map((function(s){var l=s.width;return ro("col",{width:l===void 0?"auto":l})}))),ro("tbody",null,t)));return a}},BMt={type:"table-row",renderElem:function(e,t,n){return ro("tr",null,t)}},LMt={type:"table-cell",renderElem:function(e,t,n){var r=(function(f,p){var v=kt.getParentNode(f,p);if(v==null)return!1;var h=kt.getParentNode(f,v);return h!=null&&X7(h).some((function(g){return g===p}))})(n,e),o=e,i=o.colSpan,a=i===void 0?1:i,s=o.rowSpan,l=s===void 0?1:s,u=o.isHeader,d=u!==void 0&&u;if(!r)return ro("td",{colSpan:a,rowSpan:l},t);var c=ro(d?"th":"td",{colSpan:a,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:Gv((function(f){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),h=v.left,g=v.width,y=v.top,m=v.height,b=f.clientX,w=f.clientY;JA||(b>h+g-5&&b<h+g&&w>y&&w<y+m?(p.style.cursor="col-resize",t5=n,e5=kt.findPath(n,e)):JA||(p.style.cursor="auto",t5=null,e5=null))}}),100)}},t);return c}},FMt={selector:"table",preParseHtml:function(e){var t=Pt(e);if(GSe(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},UMt=Z7.filter;T0({target:"Array",proto:!0,forced:!yY("filter")},{filter:function(e){return UMt(this,e,arguments.length>1?arguments[1]:void 0)}});var zMt=Math.floor,dR=Mo("".charAt),$Mt=Mo("".replace),fR=Mo("".slice),jMt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HMt=/\$([$&'`]|\d{1,2})/g,WMt=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=HMt;return o!==void 0&&(o=aY(o),l=jMt),$Mt(i,l,(function(u,d){var c;switch(dR(d,0)){case"$":return"$";case"&":return e;case"`":return fR(t,0,n);case"'":return fR(t,a);case"<":c=o[fR(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=zMt(f/10);return p===0?u:p<=s?r[p-1]===void 0?dR(d,1):r[p-1]+dR(d,1):u}c=r[f-1]}return c===void 0?"":c}))},D$=pc("replace"),VMt=Math.max,qMt=Math.min,GMt=Mo([].concat),pR=Mo([].push),cfe=Mo("".indexOf),dfe=Mo("".slice),KMt="a".replace(/./,"$0")==="$0",ffe=!!/./[D$]&&/./[D$]("a","$0")==="";WSe("replace",(function(e,t,n){var r=ffe?"$":"$0";return[function(o,i){var a=k0(this),s=o==null?void 0:rY(o,D$);return s?Qa(s,o,a,i):Qa(t,Us(a),o,i)},function(o,i){var a=Qu(this),s=Us(o);if(typeof i=="string"&&cfe(i,r)===-1&&cfe(i,"$<")===-1){var l=n(t,a,s,i);if(l.done)return l.value}var u=Ys(i);u||(i=Us(i));var d=a.global;if(d){var c=a.unicode;a.lastIndex=0}for(var f=[];;){var p=T$(a,s);if(p===null||(pR(f,p),!d))break;Us(p[0])===""&&(a.lastIndex=VSe(s,fY(a.lastIndex),c))}for(var v,h="",g=0,y=0;y<f.length;y++){for(var m=Us((p=f[y])[0]),b=VMt(qMt(Y7(p.index),s.length),0),w=[],A=1;A<p.length;A++)pR(w,(v=p[A])===void 0?v:String(v));var S=p.groups;if(u){var E=GMt([m],w,b,s);S!==void 0&&pR(E,S);var D=Us(HSe(i,void 0,E))}else D=WMt(m,s,b,w,S,i);b>=g&&(h+=dfe(s,g,b)+D,g=b+m.length)}return h+dfe(s,g)}]}),!!Wa((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!KMt||ffe);var YMt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(e);(t=t.filter((function(s){return!!cr.isText(s)||!!n.isInline(s)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:GSe(r)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},QMt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(r){return kt.getNodeType(r)==="table-cell"}))}}},ZMt={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Pt(e),o="auto";return(function(i,a){for(var s="",l=(i.attr("style")||"").split(";"),u=l.length,d=0;d<u;d++){var c=l[d];if(c){var f=c.split(":");f[0].trim()==="width"&&(s=f[1].trim())}}return s})(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter((function(i){return kt.getNodeType(i)==="table-row"}))}}},XMt=(function(){function e(){this.title=Jn("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||!!kt.getSelectedElems(t).some((function(r){var o=kt.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(r)}))},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=Pt('<div class="w-e-panel-content-table"></div>'),o=Pt("<span>0 × 0</span>"),i=Pt("<table></table>"),a=0;a<10;a++){for(var s=Pt("<tr></tr>"),l=0;l<10;l++){var u=Pt("<td></td>");u.attr("data-x",l.toString()),u.attr("data-y",a.toString()),s.append(u),u.on("mouseenter",(function(d){var c=d.target;if(c!=null){var f=Pt(c).dataset(),p=f.x,v=f.y;o[0].innerHTML=p+1+" × "+(v+1),i.children().each((function(h){Pt(h).children().each((function(g){var y=Pt(g),m=y.dataset(),b=m.x,w=m.y;b<=p&&w<=v?y.addClass("active"):y.removeClass("active")}))}))}})),u.on("click",(function(d){d.preventDefault();var c=d.target;if(c!=null){var f=Pt(c).dataset(),p=f.x,v=f.y;n.insertTable(t,v+1,p+1)}}))}i.append(s)}return r.append(i),r.append(o),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){kt.isSelectedEmptyParagraph(t)&&nn.removeNodes(t,{mode:"highest"});var a=(function(s,l){for(var u=[],d=0;d<s;d++){for(var c=[],f=0;f<l;f++){var p={type:"table-cell",children:[{text:""}]};d===0&&(p.isHeader=!0),c.push(p)}u.push({type:"table-row",children:c})}return{type:"table",width:"auto",children:u}})(o,i);nn.insertNodes(t,a,{mode:"highest"})}},e})(),JMt=(function(){function e(){this.title=Jn("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||kt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||nn.removeNodes(t,{mode:"highest"})},e})(),ePt=(function(){function e(){this.title=Jn("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||kt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Yc(Je.nodes(t,{match:function(p){return kt.checkNodeType(p,"table-cell")},universal:!0}),1),o=Yc(r[0],2),i=o[0],a=o[1],s=kt.getParentNode(t,i),l=s?.children.length||0;if(l!==0){for(var u={type:"table-row",children:[]},d=0;d<l;d++)u.children.push({type:"table-cell",children:[{text:""}]});var c=qt.parent(a),f=qt.next(c);nn.insertNodes(t,u,{at:f})}}},e})(),tPt=(function(){function e(){this.title=Jn("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||kt.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Yc(Je.nodes(t,{match:function(l){return kt.checkNodeType(l,"table-row")},universal:!0}),1),o=Yc(r[0],2),i=o[0],a=o[1],s=kt.getParentNode(t,i);(s?.children.length||0)<=1?nn.removeNodes(t,{mode:"highest"}):nn.removeNodes(t,{at:a})}},e})(),pfe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},hR=lY("span").classList,hfe=hR&&hR.constructor&&hR.constructor.prototype,nPt=hfe===Object.prototype?void 0:hfe,rPt=Z7.forEach,oPt=(function(e,t){var n=[].forEach;return!!n&&Wa((function(){n.call(null,(function(){throw 1}),1)}))})(),gR=oPt?[].forEach:function(e){return rPt(this,e,arguments.length>1?arguments[1]:void 0)},XSe=function(e){if(e&&e.forEach!==gR)try{wb(e,"forEach",gR)}catch{e.forEach=gR}};for(var vR in pfe)pfe[vR]&&XSe(Do[vR]&&Do[vR].prototype);XSe(nPt);var iPt=(function(){function e(){this.title=Jn("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||kt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Yc(Je.nodes(t,{match:function(u){return kt.checkNodeType(u,"table-cell")},universal:!0}),1),o=Yc(r[0],2),i=o[0],a=o[1],s=kt.getParentNode(t,i);if(s!=null){var l=kt.getParentNode(t,s);l!=null&&(l.children||[]).forEach((function(u,d){Mr.isElement(u)&&(u.children||[]).forEach((function(c){var f=kt.findPath(t,c);if(f.length===a.length&&bSe(f.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};d===0&&$Se(l)&&(p.isHeader=!0),nn.insertNodes(t,p,{at:f})}}))}))}}},e})(),aPt=(function(){function e(){this.title=Jn("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||kt.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Yc(Je.nodes(t,{match:function(d){return kt.checkNodeType(d,"table-cell")},universal:!0}),1),o=Yc(r[0],2),i=o[0],a=o[1],s=kt.getParentNode(t,i),l=s?.children.length||0;if(!s||l<=1)nn.removeNodes(t,{mode:"highest"});else{var u=kt.getParentNode(t,s);u!=null&&(u.children||[]).forEach((function(d){Mr.isElement(d)&&(d.children||[]).forEach((function(c){var f=kt.findPath(t,c);f.length===a.length&&bSe(f.slice(-1),a.slice(-1))&&nn.removeNodes(t,{at:f})}))}))}}},e})(),sPt=(function(){function e(){this.title=Jn("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=kt.getSelectedNodeByType(t,"table");return n!=null&&$Se(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||kt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,o=kt.getSelectedNodeByType(t,"table");o!=null&&X7(o).forEach((function(i){return nn.setNodes(t,{isHeader:r},{at:kt.findPath(t,i)})}))}},e})(),lPt=(function(){function e(){this.title=Jn("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=kt.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||kt.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};nn.setNodes(t,r,{mode:"highest"})}},e})(),uPt={renderElems:[RMt,BMt,LMt],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,s=n.isHeader,l=s!==void 0&&s,u=n.width,d=l?"th":"td";return"<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(u===void 0?"auto":u)+'">'+t+"</"+d+">"}}],preParseHtml:[FMt],parseElemsHtml:[YMt,QMt,ZMt],menus:[{key:"insertTable",factory:function(){return new XMt}},{key:"deleteTable",factory:function(){return new JMt}},{key:"insertTableRow",factory:function(){return new ePt}},{key:"deleteTableRow",factory:function(){return new tPt}},{key:"insertTableCol",factory:function(){return new iPt}},{key:"deleteTableCol",factory:function(){return new aPt}},{key:"tableHeader",factory:function(){return new sPt}},{key:"tableFullWidth",factory:function(){return new lPt}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,s=e.selectAll,l=e;return l.insertBreak=function(){kt.getSelectedNodeByType(l,"table")==null?t():l.insertText(`
- `)},l.deleteBackward=function(u){if(!Jde(l)){var d=l.selection;if(d){var c=Je.before(l,d);if(c){var f=efe(l,c),p=efe(l,d);if(f&&!p)return}}n(u)}},l.handleTab=function(){var u;if(kt.getSelectedNodeByType(l,"table")){var d=Je.above(e);kt.checkNodeType(d[0],"table-cell")&&nn.select(e,d[1]);var c=Je.next(e);if(c)c[0]&&c[0].text&&(c=(u=Je.above(e,{at:c[1]}))!==null&&u!==void 0?u:c),nn.select(e,c[1]);else{var f=l.children||[],p=f.length;if(kt.checkNodeType(f[p-1],"table")){var v=kt.genEmptyParagraph();nn.insertNodes(l,v,{at:[p]}),l.handleTab()}}}else a()},l.deleteForward=function(u){Jde(l)||r(u)},l.normalizeNode=function(u){var d=Yc(u,2),c=d[0],f=d[1];if(kt.getNodeType(c)!=="table")return o([c,f]);if(kt.isLastNode(l,c)){var p=kt.genEmptyParagraph();nn.insertNodes(l,p,{at:[f[0]+1]})}},l.insertData=function(u){if(kt.getSelectedNodeByType(l,"table")!=null){var d=u.getData("text/plain");d===`
- `||/<img[^>]+>/.test(u.getData("text/html"))?i(u):Je.insertText(l,d)}else i(u)},l.selectAll=function(){var u=l.selection;if(u!=null){var d=kt.getSelectedNodeByType(l,"table-cell");if(d!=null){var c=u.anchor,f=u.focus;if(qt.equals(c.path.slice(0,3),f.path.slice(0,3)))if(Xn.string(d).length!==0){var p=kt.findPath(l,d),v={anchor:Je.start(l,p),focus:Je.end(l,p)};l.select(v)}else s();else s()}else s()}else s()},l}};Gl("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Gl("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var $T=function(){return $T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$T.apply(this,arguments)};function J7(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(u){try{l(r.next(u))}catch(d){i(d)}}function s(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){var d;u.done?o(u.value):(d=u.value,d instanceof n?d:new n((function(c){c(d)}))).then(a,s)}l((r=r.apply(e,[])).next())}))}function e9(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return(function(d){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(d[0]===6&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(c){d=[6,c],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}})([l,u])}}}function wv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function cPt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],s=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise((function(a,s){(function(l,u,d,c){Promise.resolve(c).then((function(f){l({value:f,done:d})}),u)})(a,s,(i=e[o](i)).done,i.value)}))}}}var gfe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wY(e){var t={exports:{}};return e(t,t.exports),t.exports}var Jp,H8,G6=function(e){return e&&e.Math==Math&&e},nr=G6(typeof globalThis=="object"&&globalThis)||G6(typeof window=="object"&&window)||G6(typeof self=="object"&&self)||G6(typeof gfe=="object"&&gfe)||(function(){return this})()||Function("return this")(),Ii=function(e){try{return!!e()}catch{return!0}},Qd=!Ii((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Jw=Function.prototype.call,Ti=Jw.bind?Jw.bind(Jw):function(){return Jw.apply(Jw,arguments)},vfe={}.propertyIsEnumerable,mfe=Object.getOwnPropertyDescriptor,dPt={f:mfe&&!vfe.call({1:2},1)?function(e){var t=mfe(this,e);return!!t&&t.enumerable}:vfe},t9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},JSe=Function.prototype,I$=JSe.bind,O$=JSe.call,fPt=I$&&I$.bind(O$),fo=I$?function(e){return e&&fPt(O$,e)}:function(e){return e&&function(){return O$.apply(e,arguments)}},pPt=fo({}.toString),hPt=fo("".slice),Ud=function(e){return hPt(pPt(e),8,-1)},mR=nr.Object,gPt=fo("".split),AY=Ii((function(){return!mR("z").propertyIsEnumerable(0)}))?function(e){return Ud(e)=="String"?gPt(e,""):mR(e)}:mR,vPt=nr.TypeError,HC=function(e){if(e==null)throw vPt("Can't call method on "+e);return e},H0=function(e){return AY(HC(e))},gi=function(e){return typeof e=="function"},Gi=function(e){return typeof e=="object"?e!==null:gi(e)},mPt=function(e){return gi(e)?e:void 0},rm=function(e,t){return arguments.length<2?mPt(nr[e]):nr[e]&&nr[e][t]},n5=fo({}.isPrototypeOf),Ay=rm("navigator","userAgent")||"",yfe=nr.process,bfe=nr.Deno,wfe=yfe&&yfe.versions||bfe&&bfe.version,Afe=wfe&&wfe.v8;Afe&&(H8=(Jp=Afe.split("."))[0]>0&&Jp[0]<4?1:+(Jp[0]+Jp[1])),!H8&&Ay&&(!(Jp=Ay.match(/Edge\/(\d+)/))||Jp[1]>=74)&&(Jp=Ay.match(/Chrome\/(\d+)/))&&(H8=+Jp[1]);var r5=H8,M$=!!Object.getOwnPropertySymbols&&!Ii((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r5&&r5<41})),CY=M$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yPt=nr.Object,yR=CY?function(e){return typeof e=="symbol"}:function(e){var t=rm("Symbol");return gi(t)&&n5(t.prototype,yPt(e))},bPt=nr.String,jT=function(e){try{return bPt(e)}catch{return"Object"}},wPt=nr.TypeError,_0=function(e){if(gi(e))return e;throw wPt(jT(e)+" is not a function")},o5=function(e,t){var n=e[t];return n==null?void 0:_0(n)},APt=nr.TypeError,CPt=Object.defineProperty,xY=function(e,t){try{CPt(nr,e,{value:t,configurable:!0,writable:!0})}catch{nr[e]=t}return t},Kh=nr["__core-js_shared__"]||xY("__core-js_shared__",{}),SY=wY((function(e){(e.exports=function(t,n){return Kh[t]||(Kh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),xPt=nr.Object,n9=function(e){return xPt(HC(e))},SPt=fo({}.hasOwnProperty),ja=Object.hasOwn||function(e,t){return SPt(n9(e),t)},EPt=0,kPt=Math.random(),TPt=fo(1 .toString),EY=function(e){return"Symbol("+(e===void 0?"":e)+")_"+TPt(++EPt+kPt,36)},e4=SY("wks"),Av=nr.Symbol,Cfe=Av&&Av.for,_Pt=CY?Av:Av&&Av.withoutSetter||EY,Na=function(e){if(!ja(e4,e)||!M$&&typeof e4[e]!="string"){var t="Symbol."+e;M$&&ja(Av,e)?e4[e]=Av[e]:e4[e]=CY&&Cfe?Cfe(t):_Pt(t)}return e4[e]},DPt=nr.TypeError,IPt=Na("toPrimitive"),kY=function(e){var t=(function(n,r){if(!Gi(n)||yR(n))return n;var o,i=o5(n,IPt);if(i){if(o=Ti(i,n,r),!Gi(o)||yR(o))return o;throw DPt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(gi(l=a.toString)&&!Gi(u=Ti(l,a))||gi(l=a.valueOf)&&!Gi(u=Ti(l,a)))return u;throw APt("Can't convert object to primitive value")})(n)})(e,"string");return yR(t)?t:t+""},P$=nr.document,OPt=Gi(P$)&&Gi(P$.createElement),i5=function(e){return OPt?P$.createElement(e):{}},e8e=!Qd&&!Ii((function(){return Object.defineProperty(i5("div"),"a",{get:function(){return 7}}).a!=7})),xfe=Object.getOwnPropertyDescriptor,TY={f:Qd?xfe:function(e,t){if(e=H0(e),t=kY(t),e8e)try{return xfe(e,t)}catch{}if(ja(e,t))return t9(!Ti(dPt.f,e,t),e[t])}},MPt=nr.String,PPt=nr.TypeError,vs=function(e){if(Gi(e))return e;throw PPt(MPt(e)+" is not an object")},NPt=nr.TypeError,Sfe=Object.defineProperty,kp={f:Qd?Sfe:function(e,t,n){if(vs(e),t=kY(t),vs(n),e8e)try{return Sfe(e,t,n)}catch{}if("get"in n||"set"in n)throw NPt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yh=Qd?function(e,t,n){return kp.f(e,t,t9(1,n))}:function(e,t,n){return e[t]=n,e},RPt=fo(Function.toString);gi(Kh.inspectSource)||(Kh.inspectSource=function(e){return RPt(e)});var HT,S3,WT,r9=Kh.inspectSource,Efe=nr.WeakMap,t8e=gi(Efe)&&/native code/.test(r9(Efe)),kfe=SY("keys"),_Y=function(e){return kfe[e]||(kfe[e]=EY(e))},o9={},N$=nr.TypeError,BPt=nr.WeakMap;if(t8e||Kh.state){var fg=Kh.state||(Kh.state=new BPt),LPt=fo(fg.get),Tfe=fo(fg.has),FPt=fo(fg.set);HT=function(e,t){if(Tfe(fg,e))throw new N$("Object already initialized");return t.facade=e,FPt(fg,e,t),t},S3=function(e){return LPt(fg,e)||{}},WT=function(e){return Tfe(fg,e)}}else{var h1=_Y("state");o9[h1]=!0,HT=function(e,t){if(ja(e,h1))throw new N$("Object already initialized");return t.facade=e,Yh(e,h1,t),t},S3=function(e){return ja(e,h1)?e[h1]:{}},WT=function(e){return ja(e,h1)}}var Au={set:HT,get:S3,has:WT,enforce:function(e){return WT(e)?S3(e):HT(e,{})},getterFor:function(e){return function(t){var n;if(!Gi(t)||(n=S3(t)).type!==e)throw N$("Incompatible receiver, "+e+" required");return n}}},n8e=Function.prototype,UPt=Qd&&Object.getOwnPropertyDescriptor,bR=ja(n8e,"name"),v2={EXISTS:bR,PROPER:bR&&(function(){}).name==="something",CONFIGURABLE:bR&&(!Qd||Qd&&UPt(n8e,"name").configurable)},cc=wY((function(e){var t=v2.CONFIGURABLE,n=Au.get,r=Au.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;gi(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ja(s,"name")||t&&s.name!==p)&&Yh(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==nr?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:Yh(i,a,s)):c?i[a]=s:xY(a,s)})(Function.prototype,"toString",(function(){return gi(this)&&n(this).source||r9(this)}))})),zPt=Math.ceil,$Pt=Math.floor,i9=function(e){var t=+e;return t!=t||t===0?0:(t>0?$Pt:zPt)(t)},jPt=Math.max,HPt=Math.min,a5=function(e,t){var n=i9(e);return n<0?jPt(n+t,0):HPt(n,t)},WPt=Math.min,r8e=function(e){return e>0?WPt(i9(e),9007199254740991):0},WC=function(e){return r8e(e.length)},_fe=function(e){return function(t,n,r){var o,i=H0(t),a=WC(i),s=a5(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},o8e={includes:_fe(!0),indexOf:_fe(!1)},VPt=o8e.indexOf,Dfe=fo([].push),i8e=function(e,t){var n,r=H0(e),o=0,i=[];for(n in r)!ja(o9,n)&&ja(r,n)&&Dfe(i,n);for(;t.length>o;)ja(r,n=t[o++])&&(~VPt(i,n)||Dfe(i,n));return i},VT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qPt=VT.concat("length","prototype"),qT={f:Object.getOwnPropertyNames||function(e){return i8e(e,qPt)}},GPt={f:Object.getOwnPropertySymbols},KPt=fo([].concat),YPt=rm("Reflect","ownKeys")||function(e){var t=qT.f(vs(e)),n=GPt.f;return n?KPt(t,n(e)):t},QPt=function(e,t){for(var n=YPt(t),r=kp.f,o=TY.f,i=0;i<n.length;i++){var a=n[i];ja(e,a)||r(e,a,o(t,a))}},ZPt=/#|\.prototype\./,VC=function(e,t){var n=JPt[XPt(e)];return n==tNt||n!=eNt&&(gi(t)?Ii(t):!!t)},XPt=VC.normalize=function(e){return String(e).replace(ZPt,".").toLowerCase()},JPt=VC.data={},eNt=VC.NATIVE="N",tNt=VC.POLYFILL="P",GT=VC,nNt=TY.f,Pl=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?nr:u?nr[s]||xY(s,{}):(nr[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=nNt(n,r))&&a.value:n[r],!GT(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;QPt(i,o)}(e.sham||o&&o.sham)&&Yh(i,"sham",!0),cc(n,r,i,e)}},a8e={};a8e[Na("toStringTag")]="z";var DY=String(a8e)==="[object z]",rNt=Na("toStringTag"),oNt=nr.Object,iNt=Ud((function(){return arguments})())=="Arguments",a9=DY?Ud:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=oNt(e),rNt))=="string"?n:iNt?Ud(t):(r=Ud(t))=="Object"&&gi(t.callee)?"Arguments":r},aNt=nr.String,Lu=function(e){if(a9(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return aNt(e)},R$=`
- \v\f\r \u2028\u2029\uFEFF`,Ife=fo("".replace),KT="["+R$+"]",sNt=RegExp("^"+KT+KT+"*"),lNt=RegExp(KT+KT+"*$"),uNt=function(e){return function(t){var n=Lu(HC(t));return 1&e&&(n=Ife(n,sNt,"")),2&e&&(n=Ife(n,lNt,"")),n}},cNt={trim:uNt(3)},dNt=v2.PROPER,fNt=cNt.trim;function Ofe(e){return e.length?e[0].tagName.toLowerCase():""}function s8e(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=Pt(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Pl({target:"String",proto:!0,forced:Ii((function(){return!!R$.trim()||"
".trim()!=="
"||dNt&&R$.trim.name!=="trim"}))},{trim:function(){return fNt(this)}}),Pl({global:!0},{globalThis:nr}),ac&&(Pt.fn.append=ac),Kd&&(Pt.fn.on=Kd),b0&&(Pt.fn.focus=b0),ic&&(Pt.fn.attr=ic),Gd&&(Pt.fn.val=Gd),y0&&(Pt.fn.html=y0),ab&&(Pt.fn.parent=ab),rb&&(Pt.fn.hasClass=rb),cb&&(Pt.fn.empty=cb);var K6,pNt={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=i===void 0?"":i,s=o.poster,l=s===void 0?"":s,u=o.width,d=u===void 0?"auto":u,c=o.height,f=c===void 0?"auto":c,p=kt.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0)r=ro("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:s8e(a,d,f)});else{var v=ro("video",{poster:l,controls:!0},ro("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
- 抱歉,浏览器不支持 video 视频`);d!=="auto"&&(v.data.width=d),f!=="auto"&&(v.data.height=f),r=ro("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return db("div",{props:{contentEditable:!1},on:{mousedown:function(h){return h.preventDefault()}}},r)}},hNt={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,s=n.width,l=s===void 0?"auto":s,u=n.height,d=u===void 0?"auto":u,c=`<div data-w-e-type="video" data-w-e-is-void>
- `;return o.trim().indexOf("<iframe ")===0?c+=s8e(o,l,d):c+='<video poster="'+a+'" controls="true" width="'+l+'" height="'+d+'"><source src="'+o+'" type="video/mp4"/></video>',c+`
- </div>`}},gNt=Object.keys||function(e){return i8e(e,VT)},vNt=Qd?Object.defineProperties:function(e,t){vs(e);for(var n,r=H0(t),o=gNt(t),i=o.length,a=0;i>a;)kp.f(e,n=o[a++],r[n]);return e},B$=rm("document","documentElement"),l8e=_Y("IE_PROTO"),wR=function(){},u8e=function(e){return"<script>"+e+"<\/script>"},Mfe=function(e){e.write(u8e("")),e.close();var t=e.parentWindow.Object;return e=null,t},W8=function(){try{K6=new ActiveXObject("htmlfile")}catch{}var e,t;W8=typeof document<"u"?document.domain&&K6?Mfe(K6):((t=i5("iframe")).style.display="none",B$.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(u8e("document.F=Object")),e.close(),e.F):Mfe(K6);for(var n=VT.length;n--;)delete W8.prototype[VT[n]];return W8()};o9[l8e]=!0;var IY=Object.create||function(e,t){var n;return e!==null?(wR.prototype=vs(e),n=new wR,wR.prototype=null,n[l8e]=e):n=W8(),t===void 0?n:vNt(n,t)},L$=Na("unscopables"),F$=Array.prototype;F$[L$]==null&&kp.f(F$,L$,{configurable:!0,value:IY(null)});var E3=function(e){F$[L$][e]=!0},mNt=o8e.includes;Pl({target:"Array",proto:!0},{includes:function(e){return mNt(this,e,arguments.length>1?arguments[1]:void 0)}}),E3("includes");var yNt={selector:"iframe,video,p",preParseHtml:function(e){var t=Pt(e),n=t;if(Ofe(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Pt(o))}}var a=Ofe(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var s=Pt('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},Pfe=fo(fo.bind),s5=function(e,t){return _0(e),t===void 0?e:Pfe?Pfe(e,t):function(){return e.apply(t,arguments)}},YT=Array.isArray||function(e){return Ud(e)=="Array"},c8e=function(){},bNt=[],d8e=rm("Reflect","construct"),OY=/^\s*(?:class|function)\b/,wNt=fo(OY.exec),ANt=!OY.exec(c8e),t4=function(e){if(!gi(e))return!1;try{return d8e(c8e,bNt,e),!0}catch{return!1}},MY=!d8e||Ii((function(){var e;return t4(t4.call)||!t4(Object)||!t4((function(){e=!0}))||e}))?function(e){if(!gi(e))return!1;switch(a9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ANt||!!wNt(OY,r9(e))}:t4,CNt=Na("species"),Nfe=nr.Array,xNt=function(e,t){return new((function(n){var r;return YT(n)&&(r=n.constructor,(MY(r)&&(r===Nfe||YT(r.prototype))||Gi(r)&&(r=r[CNt])===null)&&(r=void 0)),r===void 0?Nfe:r})(e))(t===0?0:t)},Rfe=fo([].push),Bfe=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=n9(l),h=AY(v),g=s5(u,d),y=WC(h),m=0,b=c||xNt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Rfe(w,f)}else switch(e){case 4:return!1;case 7:Rfe(w,f)}return i?-1:r||o?o:w}},PY={find:Bfe(5),findIndex:Bfe(6)},SNt=PY.find,Lfe=!0;"find"in[]&&Array(1).find((function(){Lfe=!1})),Pl({target:"Array",proto:!0,forced:Lfe},{find:function(e){return SNt(this,e,arguments.length>1?arguments[1]:void 0)}}),E3("find");var ENt=DY?{}.toString:function(){return"[object "+a9(this)+"]"};function Ffe(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}DY||cc(Object.prototype,"toString",ENt,{unsafe:!0});var Ufe,AR,kNt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Pt(e),o="",i="",a="auto",s="auto",l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",s=l.attr("height")||"auto",Ffe(o=l[0].outerHTML,i,a,s);var u=r.find("video");return(o=u.attr("src")||"")||u.length>0&&(o=u.find("source").attr("src")||""),a=u.attr("width")||"auto",s=u.attr("height")||"auto",Ffe(o,i=u.attr("poster")||"",a,s)}},f8e=function(){var e=vs(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},NY=nr.RegExp,p8e=Ii((function(){var e=NY("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));p8e||Ii((function(){return!NY("a","y").sticky}));var TNt={BROKEN_CARET:p8e||Ii((function(){var e=NY("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},_Nt=nr.RegExp,DNt=Ii((function(){var e=_Nt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),INt=nr.RegExp,ONt=Ii((function(){var e=INt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),MNt=Au.get,PNt=SY("native-string-replace",String.prototype.replace),QT=RegExp.prototype.exec,U$=QT,NNt=fo("".charAt),RNt=fo("".indexOf),BNt=fo("".replace),CR=fo("".slice),xR=(AR=/b*/g,Ti(QT,Ufe=/a/,"a"),Ti(QT,AR,"a"),Ufe.lastIndex!==0||AR.lastIndex!==0),zfe=TNt.BROKEN_CARET,SR=/()??/.exec("")[1]!==void 0;(xR||SR||zfe||DNt||ONt)&&(U$=function(e){var t,n,r,o,i,a,s,l=this,u=MNt(l),d=Lu(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=Ti(U$,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=zfe&&l.sticky,v=Ti(f8e,l),h=l.source,g=0,y=d;if(p&&(v=BNt(v,"y",""),RNt(v,"g")===-1&&(v+="g"),y=CR(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&NNt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),SR&&(n=new RegExp("^"+h+"$(?!\\s)",v)),xR&&(r=l.lastIndex),o=Ti(QT,p?n:l,y),p?o?(o.input=CR(o.input,g),o[0]=CR(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:xR&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),SR&&o&&o.length>1&&Ti(PNt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=IY(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var ZT=U$;Pl({target:"RegExp",proto:!0,forced:/./.exec!==ZT},{exec:ZT});var RY=Function.prototype,$fe=RY.apply,LNt=RY.bind,jfe=RY.call,h8e=typeof Reflect=="object"&&Reflect.apply||(LNt?jfe.bind($fe):function(){return jfe.apply($fe,arguments)}),Hfe=(Na("species"),RegExp.prototype),FNt=fo("".charAt),Wfe=fo("".charCodeAt),UNt=fo("".slice),zNt=function(e){return function(t,n){var r,o,i=Lu(HC(t)),a=i9(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=Wfe(i,a))<55296||r>56319||a+1===s||(o=Wfe(i,a+1))<56320||o>57343?e?FNt(i,a):r:e?UNt(i,a,a+2):o-56320+(r-55296<<10)+65536}},g8e={charAt:zNt(!0)},$Nt=g8e.charAt,jNt=function(e,t,n){return t+(n?$Nt(e,t).length:1)},HNt=Math.floor,ER=fo("".charAt),WNt=fo("".replace),kR=fo("".slice),VNt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qNt=/\$([$&'`]|\d{1,2})/g,GNt=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,l=qNt;return o!==void 0&&(o=n9(o),l=VNt),WNt(i,l,(function(u,d){var c;switch(ER(d,0)){case"$":return"$";case"&":return e;case"`":return kR(t,0,n);case"'":return kR(t,a);case"<":c=o[kR(d,1,-1)];break;default:var f=+d;if(f===0)return u;if(f>s){var p=HNt(f/10);return p===0?u:p<=s?r[p-1]===void 0?ER(d,1):r[p-1]+ER(d,1):u}c=r[f-1]}return c===void 0?"":c}))},KNt=nr.TypeError,YNt=function(e,t){var n=e.exec;if(gi(n)){var r=Ti(n,e,t);return r!==null&&vs(r),r}if(Ud(e)==="RegExp")return Ti(ZT,e,t);throw KNt("RegExp#exec called on incompatible receiver")},z$=Na("replace"),QNt=Math.max,ZNt=Math.min,XNt=fo([].concat),TR=fo([].push),Vfe=fo("".indexOf),qfe=fo("".slice),JNt="a".replace(/./,"$0")==="$0",Gfe=!!/./[z$]&&/./[z$]("a","$0")==="";function v8e(e){return e+"-"+S5e()}(function(e,t,n,r){var o=Na(e),i=!Ii((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!Ii((function(){var u=!1,d=/a/;return d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=fo(/./[o]),l=(function(u,d,c){var f=Gfe?"$":"$0";return[function(p,v){var h=HC(this),g=p==null?void 0:o5(p,z$);return g?Ti(g,p,h,v):Ti(d,Lu(h),p,v)},function(p,v){var h=vs(this),g=Lu(p);if(typeof v=="string"&&Vfe(v,f)===-1&&Vfe(v,"$<")===-1){var y=c(d,h,g,v);if(y.done)return y.value}var m=gi(v);m||(v=Lu(v));var b=h.global;if(b){var w=h.unicode;h.lastIndex=0}for(var A=[];;){var S=YNt(h,g);if(S===null||(TR(A,S),!b))break;Lu(S[0])===""&&(h.lastIndex=jNt(g,r8e(h.lastIndex),w))}for(var E,D="",_=0,M=0;M<A.length;M++){for(var O=Lu((S=A[M])[0]),k=QNt(ZNt(i9(S.index),g.length),0),R=[],N=1;N<S.length;N++)TR(R,(E=S[N])===void 0?E:String(E));var W=S.groups;if(m){var B=XNt([O],R,k,g);W!==void 0&&TR(B,W);var z=Lu(h8e(v,void 0,B))}else z=GNt(O,g,k,R,W,v);k>=_&&(D+=qfe(g,_,k)+z,_=k+O.length)}return D+qfe(g,_)}]})(0,""[e],(function(u,d,c,f,p){var v=fo(u),h=d.exec;return h===ZT||h===Hfe.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));cc(String.prototype,e,l[0]),cc(Hfe,o,l[1])}})("replace",0,!!Ii((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!JNt||Gfe);var XT=nr.Promise,JT=function(e,t,n){for(var r in t)cc(e,r,t[r],n);return e},eRt=nr.String,tRt=nr.TypeError,Ab=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=fo(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return vs(r),(function(i){if(typeof i=="object"||gi(i))return i;throw tRt("Can't set "+eRt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),nRt=kp.f,Kfe=Na("toStringTag"),e_=function(e,t,n){e&&!ja(e=n?e:e.prototype,Kfe)&&nRt(e,Kfe,{configurable:!0,value:t})},Yfe=Na("species"),rRt=nr.TypeError,BY=function(e,t){if(n5(t,e))return e;throw rRt("Incorrect invocation")},Cb={},oRt=Na("iterator"),iRt=Array.prototype,aRt=Na("iterator"),Qfe=function(e){if(e!=null)return o5(e,aRt)||o5(e,"@@iterator")||Cb[a9(e)]},sRt=nr.TypeError,Zfe=function(e,t,n){var r,o;vs(e);try{if(!(r=o5(e,"return"))){if(t==="throw")throw n;return n}r=Ti(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return vs(r),n},lRt=nr.TypeError,V8=function(e,t){this.stopped=e,this.result=t},Xfe=V8.prototype,t_=function(e,t,n){var r,o,i,a,s,l,u,d,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),h=s5(t,c),g=function(m){return r&&Zfe(r,"normal",m),new V8(!0,m)},y=function(m){return f?(vs(m),v?h(m[0],m[1],g):h(m[0],m[1])):v?h(m,g):h(m)};if(p)r=e;else{if(!(o=Qfe(e)))throw lRt(jT(e)+" is not iterable");if((d=o)!==void 0&&(Cb.Array===d||iRt[oRt]===d)){for(i=0,a=WC(e);a>i;i++)if((s=y(e[i]))&&n5(Xfe,s))return s;return new V8(!1)}r=(function(m,b){var w=arguments.length<2?Qfe(m):b;if(_0(w))return vs(Ti(w,m));throw sRt(jT(m)+" is not iterable")})(e,o)}for(l=r.next;!(u=Ti(l,r)).done;){try{s=y(u.value)}catch(m){Zfe(r,"throw",m)}if(typeof s=="object"&&s&&n5(Xfe,s))return s}return new V8(!1)},m8e=Na("iterator"),y8e=!1;try{var uRt=0,Jfe={next:function(){return{done:!!uRt++}},return:function(){y8e=!0}};Jfe[m8e]=function(){return this},Array.from(Jfe,(function(){throw 2}))}catch{}var l5,g1,epe,_R,b8e=function(e,t){if(!y8e)return!1;var n=!1;try{var r={};r[m8e]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},cRt=nr.TypeError,dRt=Na("species"),w8e=fo([].slice),A8e=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ay),Qh=Ud(nr.process)=="process",$$=nr.setImmediate,tpe=nr.clearImmediate,fRt=nr.process,DR=nr.Dispatch,pRt=nr.Function,npe=nr.MessageChannel,hRt=nr.String,IR=0,k3={};try{l5=nr.location}catch{}var LY=function(e){if(ja(k3,e)){var t=k3[e];delete k3[e],t()}},OR=function(e){return function(){LY(e)}},rpe=function(e){LY(e.data)},ope=function(e){nr.postMessage(hRt(e),l5.protocol+"//"+l5.host)};$$&&tpe||($$=function(e){var t=w8e(arguments,1);return k3[++IR]=function(){h8e(gi(e)?e:pRt(e),void 0,t)},g1(IR),IR},tpe=function(e){delete k3[e]},Qh?g1=function(e){fRt.nextTick(OR(e))}:DR&&DR.now?g1=function(e){DR.now(OR(e))}:npe&&!A8e?(_R=(epe=new npe).port2,epe.port1.onmessage=rpe,g1=s5(_R.postMessage,_R)):nr.addEventListener&&gi(nr.postMessage)&&!nr.importScripts&&l5&&l5.protocol!=="file:"&&!Ii(ope)?(g1=ope,nr.addEventListener("message",rpe,!1)):g1="onreadystatechange"in i5("script")?function(e){B$.appendChild(i5("script")).onreadystatechange=function(){B$.removeChild(this),LY(e)}}:function(e){setTimeout(OR(e),0)});var n4,Bg,T3,F1,MR,PR,NR,ipe,C8e={set:$$},gRt=/ipad|iphone|ipod/i.test(Ay)&&nr.Pebble!==void 0,vRt=/web0s(?!.*chrome)/i.test(Ay),mRt=TY.f,RR=C8e.set,ape=nr.MutationObserver||nr.WebKitMutationObserver,spe=nr.document,lpe=nr.process,Y6=nr.Promise,upe=mRt(nr,"queueMicrotask"),x8e=upe&&upe.value;x8e||(n4=function(){var e,t;for(Qh&&(e=lpe.domain)&&e.exit();Bg;){t=Bg.fn,Bg=Bg.next;try{t()}catch(n){throw Bg?F1():T3=void 0,n}}T3=void 0,e&&e.enter()},A8e||Qh||vRt||!ape||!spe?!gRt&&Y6&&Y6.resolve?((NR=Y6.resolve(void 0)).constructor=Y6,ipe=s5(NR.then,NR),F1=function(){ipe(n4)}):Qh?F1=function(){lpe.nextTick(n4)}:(RR=s5(RR,nr),F1=function(){RR(n4)}):(MR=!0,PR=spe.createTextNode(""),new ape(n4).observe(PR,{characterData:!0}),F1=function(){PR.data=MR=!MR}));var BR,cpe,S8e,dpe,E8e=x8e||function(e){var t={fn:e,next:void 0};T3&&(T3.next=t),Bg||(Bg=t,F1()),T3=t},yRt=function(e){var t,n;this.promise=new e((function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o})),this.resolve=_0(t),this.reject=_0(n)},FY={f:function(e){return new yRt(e)}},j$=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},bRt=typeof window=="object",k8e=C8e.set,wRt=Na("species"),Rf="Promise",fpe=Au.getterFor(Rf),ARt=Au.set,CRt=Au.getterFor(Rf),Eg=XT&&XT.prototype,Md=XT,r4=Eg,T8e=nr.TypeError,H$=nr.document,UY=nr.process,Cy=FY.f,xRt=Cy,SRt=!!(H$&&H$.createEvent&&nr.dispatchEvent),_8e=gi(nr.PromiseRejectionEvent),D8e=!1,_3=GT(Rf,(function(){var e=r9(Md),t=e!==String(Md);if(!t&&r5===66)return!0;if(r5>=51&&/native code/.test(e))return!1;var n=new Md((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[wRt]=r,!(D8e=n.then((function(){}))instanceof r)||!t&&bRt&&!_8e})),ERt=_3||!b8e((function(e){Md.all(e).catch((function(){}))})),I8e=function(e){var t;return!(!Gi(e)||!gi(t=e.then))&&t},zY=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;E8e((function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,s,l,u=n[i++],d=o?u.ok:u.fail,c=u.resolve,f=u.reject,p=u.domain;try{d?(o||(e.rejection===2&&TRt(e),e.rejection=1),d===!0?a=r:(p&&p.enter(),a=d(r),p&&(p.exit(),l=!0)),a===u.promise?f(T8e("Promise-chain cycle")):(s=I8e(a))?Ti(s,a,c,f):c(a)):f(r)}catch(v){p&&!l&&p.exit(),f(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&kRt(e)}))}},O8e=function(e,t,n){var r,o;SRt?((r=H$.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),nr.dispatchEvent(r)):r={promise:t,reason:n},!_8e&&(o=nr["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var s=nr.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,a))})("Unhandled promise rejection",n)},kRt=function(e){Ti(k8e,nr,(function(){var t,n=e.facade,r=e.value;if(ppe(e)&&(t=j$((function(){Qh?UY.emit("unhandledRejection",r,n):O8e("unhandledrejection",n,r)})),e.rejection=Qh||ppe(e)?2:1,t.error))throw t.value}))},ppe=function(e){return e.rejection!==1&&!e.parent},TRt=function(e){Ti(k8e,nr,(function(){var t=e.facade;Qh?UY.emit("rejectionHandled",t):O8e("rejectionhandled",t,e.value)}))},K1=function(e,t,n){return function(r){e(t,r,n)}},xy=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,zY(e,!0))},W$=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw T8e("Promise can't be resolved itself");var r=I8e(t);r?E8e((function(){var o={done:!1};try{Ti(r,t,K1(W$,o,e),K1(xy,o,e))}catch(i){xy(o,i,e)}})):(e.value=t,e.state=1,zY(e,!1))}catch(o){xy({done:!1},o,e)}}};if(_3&&(r4=(Md=function(e){BY(this,r4),_0(e),Ti(BR,this);var t=fpe(this);try{e(K1(W$,t),K1(xy,t))}catch(n){xy(t,n)}}).prototype,(BR=function(e){ARt(this,{type:Rf,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=JT(r4,{then:function(e,t){var n=CRt(this),r=n.reactions,o=Cy((function(i,a){var s,l=vs(i).constructor;return l===void 0||(s=vs(l)[dRt])==null?a:(function(u){if(MY(u))return u;throw cRt(jT(u)+" is not a constructor")})(s)})(this,Md));return o.ok=!gi(e)||e,o.fail=gi(t)&&t,o.domain=Qh?UY.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&zY(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),cpe=function(){var e=new BR,t=fpe(e);this.promise=e,this.resolve=K1(W$,t),this.reject=K1(xy,t)},FY.f=Cy=function(e){return e===Md||e===S8e?new cpe(e):xRt(e)},gi(XT)&&Eg!==Object.prototype)){dpe=Eg.then,D8e||(cc(Eg,"then",(function(e,t){var n=this;return new Md((function(r,o){Ti(dpe,n,r,o)})).then(e,t)}),{unsafe:!0}),cc(Eg,"catch",r4.catch,{unsafe:!0}));try{delete Eg.constructor}catch{}Ab&&Ab(Eg,r4)}function u5(e,t,n){return n===void 0&&(n=""),J7(this,void 0,void 0,(function(){var r,o,i,a,s,l,u;return e9(this,(function(d){switch(d.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return typeof(s=d.sent())=="string"?(e.alert(s,"error"),[2]):s==null?[2]:[4,a(t)];case 2:return(l=d.sent()).trim().indexOf("<iframe ")!==0&&(l=l.replace(/</g,"<").replace(/>/g,">")),u={type:"video",src:l,poster:n,children:[{text:""}]},Promise.resolve().then((function(){nn.insertNodes(e,u)})),o(u),[2]}}))}))}function LR(){return v8e("w-e-insert-video")}Pl({global:!0,wrap:!0,forced:_3},{Promise:Md}),e_(Md,Rf,!1),(function(e){var t=rm("Promise"),n=kp.f;Qd&&t&&!t[Yfe]&&n(t,Yfe,{configurable:!0,get:function(){return this}})})(),S8e=rm(Rf),Pl({target:Rf,stat:!0,forced:_3},{reject:function(e){var t=Cy(this);return Ti(t.reject,void 0,e),t.promise}}),Pl({target:Rf,stat:!0,forced:_3},{resolve:function(e){return(function(t,n){if(vs(t),Gi(n)&&n.constructor===t)return n;var r=FY.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),Pl({target:Rf,stat:!0,forced:ERt},{all:function(e){var t=this,n=Cy(t),r=n.resolve,o=n.reject,i=j$((function(){var a=_0(t.resolve),s=[],l=0,u=1;t_(e,(function(d){var c=l++,f=!1;u++,Ti(a,t,d).then((function(p){f||(f=!0,s[c]=p,--u||r(s))}),o)})),--u||r(s)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Cy(t),r=n.reject,o=j$((function(){var i=_0(t.resolve);t_(e,(function(a){Ti(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var _Rt=(function(){function e(){this.title=Jn("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=LR(),this.posterInputId=LR(),this.buttonId=LR()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||!!kt.getSelectedElems(t).some((function(r){var o=kt.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)}))},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,s=wv(hu(Jn("videoModule.videoSrc"),o,Jn("videoModule.videoSrcPlaceHolder")),2),l=s[0],u=s[1],d=wv(hu(Jn("videoModule.videoPoster"),i,Jn("videoModule.videoPosterPlaceHolder")),2),c=d[0],f=d[1],p=Pt(u),v=Pt(f),h=wv(a2(a,Jn("videoModule.ok")),1)[0];if(this.$content==null){var g=Pt("<div></div>");g.on("click","#"+a,(function(m){return J7(n,void 0,void 0,(function(){var b,w;return e9(this,(function(A){switch(A.label){case 0:return m.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,u5(t,b,w)];case 1:return A.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var y=this.$content;return y.empty(),y.append(l),y.append(c),y.append(h),p.val(""),v.val(""),setTimeout((function(){p.focus()})),y[0]},e})(),DRt=fo([].join),IRt=AY!=Object,ORt=(function(e,t){var n=[].join;return!!n&&Ii((function(){n.call(null,",",1)}))})();Pl({target:"Array",proto:!0,forced:IRt||!ORt},{join:function(e){return DRt(H0(this),e===void 0?",":e)}});var Cv,hpe,gpe,MRt=!Ii((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),vpe=_Y("IE_PROTO"),V$=nr.Object,PRt=V$.prototype,n_=MRt?V$.getPrototypeOf:function(e){var t=n9(e);if(ja(t,vpe))return t[vpe];var n=t.constructor;return gi(n)&&t instanceof n?n.prototype:t instanceof V$?PRt:null},q$=Na("iterator"),M8e=!1;[].keys&&("next"in(gpe=[].keys())?(hpe=n_(n_(gpe)))!==Object.prototype&&(Cv=hpe):M8e=!0);var NRt=Cv==null||Ii((function(){var e={};return Cv[q$].call(e)!==e}));NRt&&(Cv={}),gi(Cv[q$])||cc(Cv,q$,(function(){return this}));var $Y={IteratorPrototype:Cv,BUGGY_SAFARI_ITERATORS:M8e},RRt=$Y.IteratorPrototype,BRt=function(){return this},LRt=v2.PROPER,FRt=v2.CONFIGURABLE,mpe=$Y.IteratorPrototype,FR=$Y.BUGGY_SAFARI_ITERATORS,o4=Na("iterator"),URt=function(){return this},P8e=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=IY(RRt,{next:t9(1,m)}),e_(g,w,!1),Cb[w]=BRt})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!FR&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[o4]||f["@@iterator"]||o&&f[o],v=!FR&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=n_(h.call(new e)))!==Object.prototype&&s.next&&(n_(s)!==mpe&&(Ab?Ab(s,mpe):gi(s[o4])||cc(s,o4,URt)),e_(s,d,!0)),LRt&&o=="values"&&p&&p.name!=="values"&&(FRt?Yh(f,"name","values"):(c=!0,v=function(){return Ti(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||Pl({target:t,proto:!0,forced:FR||c},l)),f[o4]!==v&&cc(f,o4,v,{name:o}),Cb[t]=v,l},zRt=Au.set,$Rt=Au.getterFor("Array Iterator"),L4=P8e(Array,"Array",(function(e,t){zRt(this,{type:"Array Iterator",target:H0(e),index:0,kind:t})}),(function(){var e=$Rt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Cb.Arguments=Cb.Array,E3("keys"),E3("values"),E3("entries");var jRt=g8e.charAt,HRt=Au.set,WRt=Au.getterFor("String Iterator");P8e(String,"String",(function(e){HRt(this,{type:"String Iterator",string:Lu(e),index:0})}),(function(){var e,t=WRt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=jRt(n,r),t.index+=e.length,{value:e,done:!1})}));var N8e=function(e,t,n){var r=kY(t);r in e?kp.f(e,r,t9(0,n)):e[r]=n},VRt=nr.Array,qRt=Math.max,ype=qT.f,bpe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],GRt={f:function(e){return bpe&&Ud(e)=="Window"?(function(t){try{return ype(t)}catch{return(function(r,o,i){for(var a=WC(r),s=a5(void 0,a),l=a5(a,a),u=VRt(qRt(l-s,0)),d=0;s<l;s++,d++)N8e(u,d,r[s]);return u.length=d,u})(bpe)}})(e):ype(H0(e))}},wpe=Ii((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Q6=Object.isExtensible,Gg=Ii((function(){Q6(1)}))||wpe?function(e){return!!Gi(e)&&(!wpe||Ud(e)!="ArrayBuffer")&&(!Q6||Q6(e))}:Q6,KRt=!Ii((function(){return Object.isExtensible(Object.preventExtensions({}))})),jY=wY((function(e){var t=kp.f,n=!1,r=EY("meta"),o=0,i=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=qT.f,l=fo([].splice),u={};u[r]=1,s(u).length&&(qT.f=function(d){for(var c=s(d),f=0,p=c.length;f<p;f++)if(c[f]===r){l(c,f,1);break}return c},Pl({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:GRt.f}))},fastKey:function(s,l){if(!Gi(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!ja(s,r)){if(!Gg(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!ja(s,r)){if(!Gg(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return KRt&&n&&Gg(s)&&!ja(s,r)&&i(s),s}};o9[r]=!0})),Z6=jY.getWeakData,YRt=Au.set,QRt=Au.getterFor,ZRt=PY.find,XRt=PY.findIndex,JRt=fo([].splice),eBt=0,X6=function(e){return e.frozen||(e.frozen=new R8e)},R8e=function(){this.entries=[]},UR=function(e,t){return ZRt(e.entries,(function(n){return n[0]===t}))};R8e.prototype={get:function(e){var t=UR(this,e);if(t)return t[1]},has:function(e){return!!UR(this,e)},set:function(e,t){var n=UR(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=XRt(this.entries,(function(n){return n[0]===e}));return~t&&JRt(this.entries,t,1),!!~t}};var i4,B8e={getConstructor:function(e,t,n,r){var o=e((function(l,u){BY(l,i),YRt(l,{type:t,id:eBt++,frozen:void 0}),u!=null&&t_(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=QRt(t),s=function(l,u,d){var c=a(l),f=Z6(vs(u),!0);return f===!0?X6(c).set(u,d):f[c.id]=d,l};return JT(i,{delete:function(l){var u=a(this);if(!Gi(l))return!1;var d=Z6(l);return d===!0?X6(u).delete(l):d&&ja(d,u.id)&&delete d[u.id]},has:function(l){var u=a(this);if(!Gi(l))return!1;var d=Z6(l);return d===!0?X6(u).has(l):d&&ja(d,u.id)}}),JT(i,n?{get:function(l){var u=a(this);if(Gi(l)){var d=Z6(l);return d===!0?X6(u).get(l):d?d[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},J6=Au.enforce,tBt=!nr.ActiveXObject&&"ActiveXObject"in nr,L8e=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},nBt=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=nr[e],s=a&&a.prototype,l=a,u={},d=function(g){var y=fo(s[g]);cc(s,g,g=="add"?function(m){return y(this,m===0?0:m),this}:g=="delete"?function(m){return!(o&&!Gi(m))&&y(this,m===0?0:m)}:g=="get"?function(m){return o&&!Gi(m)?void 0:y(this,m===0?0:m)}:g=="has"?function(m){return!(o&&!Gi(m))&&y(this,m===0?0:m)}:function(m,b){return y(this,m===0?0:m,b),this})};if(GT(e,!gi(a)||!(o||s.forEach&&!Ii((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),jY.enable();else if(GT(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=Ii((function(){c.has(1)})),v=b8e((function(g){new a(g)})),h=!o&&Ii((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((l=t((function(g,y){BY(g,s);var m=(function(b,w,A){var S,E;return Ab&&gi(S=w.constructor)&&S!==A&&Gi(E=S.prototype)&&E!==A.prototype&&Ab(b,E),b})(new a,g,l);return y!=null&&t_(y,m[i],{that:m,AS_ENTRIES:r}),m}))).prototype=s,s.constructor=l),(p||h)&&(d("delete"),d("has"),r&&d("get")),(h||f)&&d(i),o&&s.clear&&delete s.clear}return u[e]=l,Pl({global:!0,forced:l!=a},u),e_(l,e),o||n.setStrong(l,e,r),l})("WeakMap",L8e,B8e);if(t8e&&tBt){i4=B8e.getConstructor(L8e,"WeakMap",!0),jY.enable();var a4=nBt.prototype,Ape=fo(a4.delete),eS=fo(a4.has),Cpe=fo(a4.get),xpe=fo(a4.set);JT(a4,{delete:function(e){if(Gi(e)&&!Gg(e)){var t=J6(this);return t.frozen||(t.frozen=new i4),Ape(this,e)||t.frozen.delete(e)}return Ape(this,e)},has:function(e){if(Gi(e)&&!Gg(e)){var t=J6(this);return t.frozen||(t.frozen=new i4),eS(this,e)||t.frozen.has(e)}return eS(this,e)},get:function(e){if(Gi(e)&&!Gg(e)){var t=J6(this);return t.frozen||(t.frozen=new i4),eS(this,e)?Cpe(this,e):t.frozen.get(e)}return Cpe(this,e)},set:function(e,t){if(Gi(e)&&!Gg(e)){var n=J6(this);n.frozen||(n.frozen=new i4),eS(this,e)?xpe(this,e,t):n.frozen.set(e,t)}else xpe(this,e,t);return this}})}var F8e={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},zR=i5("span").classList,Spe=zR&&zR.constructor&&zR.constructor.prototype,rBt=Spe===Object.prototype?void 0:Spe,$R=Na("iterator"),Epe=Na("toStringTag"),jR=L4.values,U8e=function(e,t){if(e){if(e[$R]!==jR)try{Yh(e,$R,jR)}catch{e[$R]=jR}if(e[Epe]||Yh(e,Epe,t),F8e[t]){for(var n in L4)if(e[n]!==L4[n])try{Yh(e,n,L4[n])}catch{e[n]=L4[n]}}}};for(var HR in F8e)U8e(nr[HR]&&nr[HR].prototype,HR);U8e(rBt,"DOMTokenList");var oBt=v2.EXISTS,iBt=kp.f,z8e=Function.prototype,aBt=fo(z8e.toString),$8e=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,sBt=fo($8e.exec);Qd&&!oBt&&iBt(z8e,"name",{configurable:!0,get:function(){try{return sBt($8e,aBt(this))[1]}catch{return""}}});var lBt=Na("species"),uBt=r5>=51||!Ii((function(){var e=[];return(e.constructor={})[lBt]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),cBt=Na("species"),WR=nr.Array,dBt=Math.max;function j8e(e){return e.getMenuConfig("uploadVideo")}Pl({target:"Array",proto:!0,forced:!uBt},{slice:function(e,t){var n,r,o,i=H0(this),a=WC(i),s=a5(e,a),l=a5(t===void 0?a:t,a);if(YT(i)&&(n=i.constructor,(MY(n)&&(n===WR||YT(n.prototype))||Gi(n)&&(n=n[cBt])===null)&&(n=void 0),n===WR||n===void 0))return w8e(i,s,l);for(r=new(n===void 0?WR:n)(dBt(l-s,0)),o=0;s<l;s++,o++)s in i&&N8e(r,o,i[s]);return r.length=o,r}});var kpe=new WeakMap;function fBt(e,t){return J7(this,void 0,void 0,(function(){var n,r,o,i;return e9(this,(function(a){switch(a.label){case 0:return n=(function(s){var l=kpe.get(s);if(l!=null)return l;var u=j8e(s),d=u.onSuccess,c=u.onProgress,f=u.onFailed,p=u.customInsert,v=u.onError;return l=fxe($T($T({},u),{onProgress:function(h){s.showProgressBar(h),c&&c(h)},onSuccess:function(h,g){if(p)return p(g,(function(D,_){return u5(s,D,_)})),void d(h,g);var y=g.errno,m=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(m===0){var A=w.url,S=A===void 0?"":A,E=w.poster;u5(s,S,E===void 0?"":E),d(h,g)}else f(h,g)},onError:function(h,g,y){v(h,g,y)}})),kpe.set(s,l),l})(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var pBt=(function(){function e(){this.title=Jn("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a((function(d,c){return u5(t,d,c)}));else{var s="";i.length>0&&(s='accept="'+i.join(", ")+'"');var l=Pt("body"),u=Pt('<input type="file" '+s+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",(function(){var d=u[0].files;(function(c,f){var p,v;J7(this,void 0,void 0,(function(){var h,g,y,m,b,w;return e9(this,(function(A){switch(A.label){case 0:if(f==null)return[2];h=Array.prototype.slice.call(f),g=j8e(c).customUpload,A.label=1;case 1:A.trys.push([1,9,10,15]),y=cPt(h),A.label=2;case 2:return[4,y.next()];case 3:return(m=A.sent()).done?[3,8]:(b=m.value,g?[4,g(b,(function(S,E){return u5(c,S,E)}))]:[3,5]);case 4:return A.sent(),[3,7];case 5:return[4,fBt(c,b)];case 6:A.sent(),A.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=A.sent(),p={error:w},[3,15];case 10:return A.trys.push([10,,13,14]),m&&!m.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:A.sent(),A.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}}))}))})(t,d)}))}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!pn.isCollapsed(n)||!!kt.getSelectedElems(t).some((function(r){var o=kt.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)}))},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e})(),hBt=v2.PROPER,G$=RegExp.prototype,H8e=G$.toString,gBt=fo(f8e),vBt=Ii((function(){return H8e.call({source:"a",flags:"b"})!="/a/b"})),mBt=hBt&&H8e.name!="toString";function VR(){return v8e("w-e-insert-video")}(vBt||mBt)&&cc(RegExp.prototype,"toString",(function(){var e=vs(this),t=Lu(e.source),n=e.flags;return"/"+t+"/"+Lu(n===void 0&&n5(G$,e)&&!("flags"in G$)?gBt(e):n)}),{unsafe:!0});var yBt=(function(){function e(){this.title=Jn("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=VR(),this.heightInputId=VR(),this.buttonId=VR()}return e.prototype.getSelectedVideoNode=function(t){return kt.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=wv(hu(Jn("videoModule.width"),r,"auto"),2),s=a[0],l=Pt(a[1]),u=wv(hu(Jn("videoModule.height"),o,"auto"),2),d=u[0],c=Pt(u[1]),f=wv(a2(i,Jn("videoModule.ok")),1)[0];if(this.$content==null){var p=Pt("<div></div>");p.on("click","#"+i,(function(w){w.preventDefault();var A=p.find("#"+r).val().trim(),S=p.find("#"+o).val().trim(),E=parseInt(A),D=parseInt(S),_=E?E.toString():"auto",M=D?D.toString():"auto";t.restoreSelection(),nn.setNodes(t,{width:_,height:M},{match:function(O){return kt.checkNodeType(O,"video")}}),t.hidePanelOrModal()})),this.$content=p}var v=this.$content;v.empty(),v.append(s),v.append(d),v.append(f);var h=this.getSelectedVideoNode(t);if(h==null)return v[0];var g=h.width,y=g===void 0?"auto":g,m=h.height,b=m===void 0?"auto":m;return l.val(y),c.val(b),setTimeout((function(){l.focus()})),v[0]},e})(),bBt={renderElems:[pNt],elemsToHtml:[hNt],preParseHtml:[yNt],parseElemsHtml:[kNt],menus:[{key:"insertVideo",factory:function(){return new _Rt},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new pBt},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new yBt}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="video"||t(o)},r.normalizeNode=function(o){var i=wv(o,2),a=i[0],s=i[1];return kt.getNodeType(a)==="video"&&kt.isLastNode(r,a)&&nn.insertNodes(r,kt.genEmptyParagraph(),{at:[s[0]+1]}),n([a,s])},r}};Gl("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Gl("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Tpe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function HY(e){var t={exports:{}};return e(t,t.exports),t.exports}var eh,q8,tS=function(e){return e&&e.Math==Math&&e},er=tS(typeof globalThis=="object"&&globalThis)||tS(typeof window=="object"&&window)||tS(typeof self=="object"&&self)||tS(typeof Tpe=="object"&&Tpe)||(function(){return this})()||Function("return this")(),ji=function(e){try{return!!e()}catch{return!0}},Zd=!ji((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),s4=Function.prototype.call,ci=s4.bind?s4.bind(s4):function(){return s4.apply(s4,arguments)},_pe={}.propertyIsEnumerable,Dpe=Object.getOwnPropertyDescriptor,wBt={f:Dpe&&!_pe.call({1:2},1)?function(e){var t=Dpe(this,e);return!!t&&t.enumerable}:_pe},s9=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},W8e=Function.prototype,K$=W8e.bind,Y$=W8e.call,ABt=K$&&K$.bind(Y$),To=K$?function(e){return e&&ABt(Y$,e)}:function(e){return e&&function(){return Y$.apply(e,arguments)}},CBt=To({}.toString),xBt=To("".slice),Lc=function(e){return xBt(CBt(e),8,-1)},qR=er.Object,SBt=To("".split),WY=ji((function(){return!qR("z").propertyIsEnumerable(0)}))?function(e){return Lc(e)=="String"?SBt(e,""):qR(e)}:qR,EBt=er.TypeError,c5=function(e){if(e==null)throw EBt("Can't call method on "+e);return e},W0=function(e){return WY(c5(e))},Ai=function(e){return typeof e=="function"},Ui=function(e){return typeof e=="object"?e!==null:Ai(e)},kBt=function(e){return Ai(e)?e:void 0},om=function(e,t){return arguments.length<2?kBt(er[e]):er[e]&&er[e][t]},d5=To({}.isPrototypeOf),Sy=om("navigator","userAgent")||"",Ipe=er.process,Ope=er.Deno,Mpe=Ipe&&Ipe.versions||Ope&&Ope.version,Ppe=Mpe&&Mpe.v8;Ppe&&(q8=(eh=Ppe.split("."))[0]>0&&eh[0]<4?1:+(eh[0]+eh[1])),!q8&&Sy&&(!(eh=Sy.match(/Edge\/(\d+)/))||eh[1]>=74)&&(eh=Sy.match(/Chrome\/(\d+)/))&&(q8=+eh[1]);var f5=q8,Q$=!!Object.getOwnPropertySymbols&&!ji((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&f5&&f5<41})),VY=Q$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",TBt=er.Object,GR=VY?function(e){return typeof e=="symbol"}:function(e){var t=om("Symbol");return Ai(t)&&d5(t.prototype,TBt(e))},_Bt=er.String,r_=function(e){try{return _Bt(e)}catch{return"Object"}},DBt=er.TypeError,D0=function(e){if(Ai(e))return e;throw DBt(r_(e)+" is not a function")},p5=function(e,t){var n=e[t];return n==null?void 0:D0(n)},IBt=er.TypeError,OBt=Object.defineProperty,qY=function(e,t){try{OBt(er,e,{value:t,configurable:!0,writable:!0})}catch{er[e]=t}return t},Zh=er["__core-js_shared__"]||qY("__core-js_shared__",{}),GY=HY((function(e){(e.exports=function(t,n){return Zh[t]||(Zh[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),MBt=er.Object,KY=function(e){return MBt(c5(e))},PBt=To({}.hasOwnProperty),Ha=Object.hasOwn||function(e,t){return PBt(KY(e),t)},NBt=0,RBt=Math.random(),BBt=To(1 .toString),YY=function(e){return"Symbol("+(e===void 0?"":e)+")_"+BBt(++NBt+RBt,36)},l4=GY("wks"),xv=er.Symbol,Npe=xv&&xv.for,LBt=VY?xv:xv&&xv.withoutSetter||YY,Ra=function(e){if(!Ha(l4,e)||!Q$&&typeof l4[e]!="string"){var t="Symbol."+e;Q$&&Ha(xv,e)?l4[e]=xv[e]:l4[e]=VY&&Npe?Npe(t):LBt(t)}return l4[e]},FBt=er.TypeError,UBt=Ra("toPrimitive"),QY=function(e){var t=(function(n,r){if(!Ui(n)||GR(n))return n;var o,i=p5(n,UBt);if(i){if(o=ci(i,n,r),!Ui(o)||GR(o))return o;throw FBt("Can't convert object to primitive value")}return(function(a,s){var l,u;if(Ai(l=a.toString)&&!Ui(u=ci(l,a))||Ai(l=a.valueOf)&&!Ui(u=ci(l,a)))return u;throw IBt("Can't convert object to primitive value")})(n)})(e,"string");return GR(t)?t:t+""},Z$=er.document,zBt=Ui(Z$)&&Ui(Z$.createElement),h5=function(e){return zBt?Z$.createElement(e):{}},V8e=!Zd&&!ji((function(){return Object.defineProperty(h5("div"),"a",{get:function(){return 7}}).a!=7})),Rpe=Object.getOwnPropertyDescriptor,ZY={f:Zd?Rpe:function(e,t){if(e=W0(e),t=QY(t),V8e)try{return Rpe(e,t)}catch{}if(Ha(e,t))return s9(!ci(wBt.f,e,t),e[t])}},$Bt=er.String,jBt=er.TypeError,ms=function(e){if(Ui(e))return e;throw jBt($Bt(e)+" is not an object")},HBt=er.TypeError,Bpe=Object.defineProperty,Tp={f:Zd?Bpe:function(e,t,n){if(ms(e),t=QY(t),ms(n),V8e)try{return Bpe(e,t,n)}catch{}if("get"in n||"set"in n)throw HBt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},zd=Zd?function(e,t,n){return Tp.f(e,t,s9(1,n))}:function(e,t,n){return e[t]=n,e},WBt=To(Function.toString);Ai(Zh.inspectSource)||(Zh.inspectSource=function(e){return WBt(e)});var o_,D3,i_,l9=Zh.inspectSource,Lpe=er.WeakMap,q8e=Ai(Lpe)&&/native code/.test(l9(Lpe)),Fpe=GY("keys"),XY=function(e){return Fpe[e]||(Fpe[e]=YY(e))},u9={},X$=er.TypeError,VBt=er.WeakMap;if(q8e||Zh.state){var pg=Zh.state||(Zh.state=new VBt),qBt=To(pg.get),Upe=To(pg.has),GBt=To(pg.set);o_=function(e,t){if(Upe(pg,e))throw new X$("Object already initialized");return t.facade=e,GBt(pg,e,t),t},D3=function(e){return qBt(pg,e)||{}},i_=function(e){return Upe(pg,e)}}else{var v1=XY("state");u9[v1]=!0,o_=function(e,t){if(Ha(e,v1))throw new X$("Object already initialized");return t.facade=e,zd(e,v1,t),t},D3=function(e){return Ha(e,v1)?e[v1]:{}},i_=function(e){return Ha(e,v1)}}var Cu={set:o_,get:D3,has:i_,enforce:function(e){return i_(e)?D3(e):o_(e,{})},getterFor:function(e){return function(t){var n;if(!Ui(t)||(n=D3(t)).type!==e)throw X$("Incompatible receiver, "+e+" required");return n}}},G8e=Function.prototype,KBt=Zd&&Object.getOwnPropertyDescriptor,KR=Ha(G8e,"name"),qC={EXISTS:KR,PROPER:KR&&(function(){}).name==="something",CONFIGURABLE:KR&&(!Zd||Zd&&KBt(G8e,"name").configurable)},dc=HY((function(e){var t=qC.CONFIGURABLE,n=Cu.get,r=Cu.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;Ai(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ha(s,"name")||t&&s.name!==p)&&zd(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==er?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:zd(i,a,s)):c?i[a]=s:qY(a,s)})(Function.prototype,"toString",(function(){return Ai(this)&&n(this).source||l9(this)}))})),YBt=Math.ceil,QBt=Math.floor,JY=function(e){var t=+e;return t!=t||t===0?0:(t>0?QBt:YBt)(t)},ZBt=Math.max,XBt=Math.min,g5=function(e,t){var n=JY(e);return n<0?ZBt(n+t,0):XBt(n,t)},JBt=Math.min,K8e=function(e){return e>0?JBt(JY(e),9007199254740991):0},GC=function(e){return K8e(e.length)},eLt=function(e){return function(t,n,r){var o,i=W0(t),a=GC(i),s=g5(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},tLt=eLt(!1),zpe=To([].push),Y8e=function(e,t){var n,r=W0(e),o=0,i=[];for(n in r)!Ha(u9,n)&&Ha(r,n)&&zpe(i,n);for(;t.length>o;)Ha(r,n=t[o++])&&(~tLt(i,n)||zpe(i,n));return i},a_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nLt=a_.concat("length","prototype"),s_={f:Object.getOwnPropertyNames||function(e){return Y8e(e,nLt)}},rLt={f:Object.getOwnPropertySymbols},oLt=To([].concat),iLt=om("Reflect","ownKeys")||function(e){var t=s_.f(ms(e)),n=rLt.f;return n?oLt(t,n(e)):t},aLt=function(e,t){for(var n=iLt(t),r=Tp.f,o=ZY.f,i=0;i<n.length;i++){var a=n[i];Ha(e,a)||r(e,a,o(t,a))}},sLt=/#|\.prototype\./,KC=function(e,t){var n=uLt[lLt(e)];return n==dLt||n!=cLt&&(Ai(t)?ji(t):!!t)},lLt=KC.normalize=function(e){return String(e).replace(sLt,".").toLowerCase()},uLt=KC.data={},cLt=KC.NATIVE="N",dLt=KC.POLYFILL="P",l_=KC,fLt=ZY.f,Pd=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?er:u?er[s]||qY(s,{}):(er[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=fLt(n,r))&&a.value:n[r],!l_(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;aLt(i,o)}(e.sham||o&&o.sham)&&zd(i,"sham",!0),dc(n,r,i,e)}},u_=Array.isArray||function(e){return Lc(e)=="Array"},Q8e={};Q8e[Ra("toStringTag")]="z";var eQ=String(Q8e)==="[object z]",pLt=Ra("toStringTag"),hLt=er.Object,gLt=Lc((function(){return arguments})())=="Arguments",c9=eQ?Lc:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=hLt(e),pLt))=="string"?n:gLt?Lc(t):(r=Lc(t))=="Object"&&Ai(t.callee)?"Arguments":r},Z8e=function(){},vLt=[],X8e=om("Reflect","construct"),tQ=/^\s*(?:class|function)\b/,mLt=To(tQ.exec),yLt=!tQ.exec(Z8e),u4=function(e){if(!Ai(e))return!1;try{return X8e(Z8e,vLt,e),!0}catch{return!1}},nQ=!X8e||ji((function(){var e;return u4(u4.call)||!u4(Object)||!u4((function(){e=!0}))||e}))?function(e){if(!Ai(e))return!1;switch(c9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yLt||!!mLt(tQ,l9(e))}:u4,J8e=function(e,t,n){var r=QY(t);r in e?Tp.f(e,r,s9(0,n)):e[r]=n},bLt=Ra("species"),eEe=To([].slice),wLt=f5>=51||!ji((function(){var e=[];return(e.constructor={})[bLt]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),ALt=Ra("species"),YR=er.Array,CLt=Math.max;Pd({target:"Array",proto:!0,forced:!wLt},{slice:function(e,t){var n,r,o,i=W0(this),a=GC(i),s=g5(e,a),l=g5(t===void 0?a:t,a);if(u_(i)&&(n=i.constructor,(nQ(n)&&(n===YR||u_(n.prototype))||Ui(n)&&(n=n[ALt])===null)&&(n=void 0),n===YR||n===void 0))return eEe(i,s,l);for(r=new(n===void 0?YR:n)(CLt(l-s,0)),o=0;s<l;s++,o++)s in i&&J8e(r,o,i[s]);return r.length=o,r}});var xLt=eQ?{}.toString:function(){return"[object "+c9(this)+"]"};eQ||dc(Object.prototype,"toString",xLt,{unsafe:!0});var nS,SLt=er.String,Xh=function(e){if(c9(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return SLt(e)},tEe=function(){var e=ms(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},rQ=er.RegExp,J$=ji((function(){var e=rQ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));J$||ji((function(){return!rQ("a","y").sticky}));var nEe={BROKEN_CARET:J$||ji((function(){var e=rQ("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:J$},ELt=Object.keys||function(e){return Y8e(e,a_)},kLt=Zd?Object.defineProperties:function(e,t){ms(e);for(var n,r=W0(t),o=ELt(t),i=o.length,a=0;i>a;)Tp.f(e,n=o[a++],r[n]);return e},ej=om("document","documentElement"),rEe=XY("IE_PROTO"),QR=function(){},oEe=function(e){return"<script>"+e+"<\/script>"},$pe=function(e){e.write(oEe("")),e.close();var t=e.parentWindow.Object;return e=null,t},G8=function(){try{nS=new ActiveXObject("htmlfile")}catch{}var e,t;G8=typeof document<"u"?document.domain&&nS?$pe(nS):((t=h5("iframe")).style.display="none",ej.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(oEe("document.F=Object")),e.close(),e.F):$pe(nS);for(var n=a_.length;n--;)delete G8.prototype[a_[n]];return G8()};u9[rEe]=!0;var jpe,ZR,oQ=Object.create||function(e,t){var n;return e!==null?(QR.prototype=ms(e),n=new QR,QR.prototype=null,n[rEe]=e):n=G8(),t===void 0?n:kLt(n,t)},TLt=er.RegExp,_Lt=ji((function(){var e=TLt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),DLt=er.RegExp,ILt=ji((function(){var e=DLt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),OLt=Cu.get,MLt=GY("native-string-replace",String.prototype.replace),c_=RegExp.prototype.exec,tj=c_,PLt=To("".charAt),NLt=To("".indexOf),RLt=To("".replace),XR=To("".slice),JR=(ZR=/b*/g,ci(c_,jpe=/a/,"a"),ci(c_,ZR,"a"),jpe.lastIndex!==0||ZR.lastIndex!==0),Hpe=nEe.BROKEN_CARET,eB=/()??/.exec("")[1]!==void 0;(JR||eB||Hpe||_Lt||ILt)&&(tj=function(e){var t,n,r,o,i,a,s,l=this,u=OLt(l),d=Xh(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=ci(tj,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=Hpe&&l.sticky,v=ci(tEe,l),h=l.source,g=0,y=d;if(p&&(v=RLt(v,"y",""),NLt(v,"g")===-1&&(v+="g"),y=XR(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&PLt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),eB&&(n=new RegExp("^"+h+"$(?!\\s)",v)),JR&&(r=l.lastIndex),o=ci(c_,p?n:l,y),p?o?(o.input=XR(o.input,g),o[0]=XR(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:JR&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),eB&&o&&o.length>1&&ci(MLt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=oQ(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var v5=tj;Pd({target:"RegExp",proto:!0,forced:/./.exec!==v5},{exec:v5});var iQ=Function.prototype,Wpe=iQ.apply,BLt=iQ.bind,Vpe=iQ.call,iEe=typeof Reflect=="object"&&Reflect.apply||(BLt?Vpe.bind(Wpe):function(){return Vpe.apply(Wpe,arguments)}),LLt=Ra("species"),tB=RegExp.prototype,FLt=Ra("match"),ULt=er.TypeError,zLt=Ra("species"),aEe=function(e,t){var n,r=ms(e).constructor;return r===void 0||(n=ms(r)[zLt])==null?t:(function(o){if(nQ(o))return o;throw ULt(r_(o)+" is not a constructor")})(n)},$Lt=To("".charAt),qpe=To("".charCodeAt),jLt=To("".slice),HLt=function(e){return function(t,n){var r,o,i=Xh(c5(t)),a=JY(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=qpe(i,a))<55296||r>56319||a+1===s||(o=qpe(i,a+1))<56320||o>57343?e?$Lt(i,a):r:e?jLt(i,a,a+2):o-56320+(r-55296<<10)+65536}},sEe={charAt:HLt(!0)},WLt=sEe.charAt,VLt=function(e,t,n){return t+(n?WLt(e,t).length:1)},qLt=er.Array,GLt=Math.max,nj=function(e,t,n){for(var r=GC(e),o=g5(t,r),i=g5(n===void 0?r:n,r),a=qLt(GLt(i-o,0)),s=0;o<i;o++,s++)J8e(a,s,e[o]);return a.length=s,a},KLt=er.TypeError,Gpe=function(e,t){var n=e.exec;if(Ai(n)){var r=ci(n,e,t);return r!==null&&ms(r),r}if(Lc(e)==="RegExp")return ci(v5,e,t);throw KLt("RegExp#exec called on incompatible receiver")},m1=nEe.UNSUPPORTED_Y,YLt=Math.min,lEe=[].push,QLt=To(/./.exec),y1=To(lEe),c4=To("".slice);(function(e,t,n,r){var o=Ra(e),i=!ji((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!ji((function(){var u=!1,d=/a/;return(d={}).constructor={},d.constructor[LLt]=function(){return d},d.flags="",d[o]=/./[o],d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=To(/./[o]),l=(function(u,d,c){var f;return f="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,g,y=Xh(c5(this)),m=v===void 0?4294967295:v>>>0;if(m===0)return[];if(p===void 0)return[y];if(!Ui(h=p)||!((g=h[FLt])!==void 0?g:Lc(h)=="RegExp"))return ci(d,y,p,m);for(var b,w,A,S=[],E=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),D=0,_=new RegExp(p.source,E+"g");(b=ci(v5,_,y))&&!((w=_.lastIndex)>D&&(y1(S,c4(y,D,b.index)),b.length>1&&b.index<y.length&&iEe(lEe,S,nj(b,1)),A=b[0].length,D=w,S.length>=m));)_.lastIndex===b.index&&_.lastIndex++;return D===y.length?!A&&QLt(_,"")||y1(S,""):y1(S,c4(y,D)),S.length>m?nj(S,0,m):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:ci(d,this,p,v)}:d,[function(p,v){var h=c5(this),g=p==null?void 0:p5(p,u);return g?ci(g,p,h,v):ci(f,Xh(h),p,v)},function(p,v){var h=ms(this),g=Xh(p),y=c(f,h,g,v,f!==d);if(y.done)return y.value;var m=aEe(h,RegExp),b=h.unicode,w=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(m1?"g":"y"),A=new m(m1?"^(?:"+h.source+")":h,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return Gpe(A,g)===null?[g]:[];for(var E=0,D=0,_=[];D<g.length;){A.lastIndex=m1?0:D;var M,O=Gpe(A,m1?c4(g,D):g);if(O===null||(M=YLt(K8e(A.lastIndex+(m1?D:0)),g.length))===E)D=VLt(g,D,b);else{if(y1(_,c4(g,E,D)),_.length===S)return _;for(var k=1;k<=O.length-1;k++)if(y1(_,O[k]),_.length===S)return _;D=E=M}}return y1(_,c4(g,E)),_}]})(o,""[e],(function(u,d,c,f,p){var v=To(u),h=d.exec;return h===v5||h===tB.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));dc(String.prototype,e,l[0]),dc(tB,o,l[1])}r&&zd(tB[o],"sham",!0)})("split",0,!!ji((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),m1);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var d_=function(){return d_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d_.apply(this,arguments)};function aQ(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(u){try{l(r.next(u))}catch(d){i(d)}}function s(u){try{l(r.throw(u))}catch(d){i(d)}}function l(u){var d;u.done?o(u.value):(d=u.value,d instanceof n?d:new n((function(c){c(d)}))).then(a,s)}l((r=r.apply(e,[])).next())}))}function sQ(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return(function(d){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&d[0]?r.return:d[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,d[1])).done)return o;switch(r=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(d[0]===6&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(c){d=[6,c],r=0}finally{n=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}})([l,u])}}}function ZLt(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],s=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise((function(a,s){(function(l,u,d,c){Promise.resolve(c).then((function(f){l({value:f,done:d})}),u)})(a,s,(i=e[o](i)).done,i.value)}))}}}var rj=Ra("unscopables"),oj=Array.prototype;oj[rj]==null&&Tp.f(oj,rj,{configurable:!0,value:oQ(null)});var Sv,Kpe,Ype,nB=function(e){oj[rj][e]=!0},xb={},XLt=!ji((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qpe=XY("IE_PROTO"),ij=er.Object,JLt=ij.prototype,f_=XLt?ij.getPrototypeOf:function(e){var t=KY(e);if(Ha(t,Qpe))return t[Qpe];var n=t.constructor;return Ai(n)&&t instanceof n?n.prototype:t instanceof ij?JLt:null},aj=Ra("iterator"),uEe=!1;[].keys&&("next"in(Ype=[].keys())?(Kpe=f_(f_(Ype)))!==Object.prototype&&(Sv=Kpe):uEe=!0);var eFt=Sv==null||ji((function(){var e={};return Sv[aj].call(e)!==e}));eFt&&(Sv={}),Ai(Sv[aj])||dc(Sv,aj,(function(){return this}));var lQ={IteratorPrototype:Sv,BUGGY_SAFARI_ITERATORS:uEe},tFt=Tp.f,Zpe=Ra("toStringTag"),p_=function(e,t,n){e&&!Ha(e=n?e:e.prototype,Zpe)&&tFt(e,Zpe,{configurable:!0,value:t})},nFt=lQ.IteratorPrototype,rFt=function(){return this},oFt=er.String,iFt=er.TypeError,Sb=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,n={};try{(e=To(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return ms(r),(function(i){if(typeof i=="object"||Ai(i))return i;throw iFt("Can't set "+oFt(i)+" as a prototype")})(o),t?e(r,o):r.__proto__=o,r}})():void 0),aFt=qC.PROPER,sFt=qC.CONFIGURABLE,Xpe=lQ.IteratorPrototype,rB=lQ.BUGGY_SAFARI_ITERATORS,d4=Ra("iterator"),lFt=function(){return this},cEe=function(e,t,n,r,o,i,a){(function(g,y,m,b){var w=y+" Iterator";g.prototype=oQ(nFt,{next:s9(1,m)}),p_(g,w,!1),xb[w]=rFt})(n,t,r);var s,l,u=function(g){if(g===o&&v)return v;if(!rB&&g in f)return f[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},d=t+" Iterator",c=!1,f=e.prototype,p=f[d4]||f["@@iterator"]||o&&f[o],v=!rB&&p||u(o),h=t=="Array"&&f.entries||p;return h&&(s=f_(h.call(new e)))!==Object.prototype&&s.next&&(f_(s)!==Xpe&&(Sb?Sb(s,Xpe):Ai(s[d4])||dc(s,d4,lFt)),p_(s,d,!0)),aFt&&o=="values"&&p&&p.name!=="values"&&(sFt?zd(f,"name","values"):(c=!0,v=function(){return ci(p,this)})),o&&(l={values:u("values"),keys:u("keys"),entries:u("entries")},a||Pd({target:t,proto:!0,forced:rB||c},l)),f[d4]!==v&&dc(f,d4,v,{name:o}),xb[t]=v,l},uFt=Cu.set,cFt=Cu.getterFor("Array Iterator"),F4=cEe(Array,"Array",(function(e,t){uFt(this,{type:"Array Iterator",target:W0(e),index:0,kind:t})}),(function(){var e=cFt(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");xb.Arguments=xb.Array,nB("keys"),nB("values"),nB("entries");var dFt=sEe.charAt,fFt=Cu.set,pFt=Cu.getterFor("String Iterator");cEe(String,"String",(function(e){fFt(this,{type:"String Iterator",string:Xh(e),index:0})}),(function(){var e,t=pFt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dFt(n,r),t.index+=e.length,{value:e,done:!1})}));var h_=function(e,t,n){for(var r in t)dc(e,r,t[r],n);return e},Jpe=s_.f,ehe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hFt={f:function(e){return ehe&&Lc(e)=="Window"?(function(t){try{return Jpe(t)}catch{return nj(ehe)}})(e):Jpe(W0(e))}},the=ji((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),rS=Object.isExtensible,Kg=ji((function(){rS(1)}))||the?function(e){return!!Ui(e)&&(!the||Lc(e)!="ArrayBuffer")&&(!rS||rS(e))}:rS,gFt=!ji((function(){return Object.isExtensible(Object.preventExtensions({}))})),uQ=HY((function(e){var t=Tp.f,n=!1,r=YY("meta"),o=0,i=function(s){t(s,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var s=s_.f,l=To([].splice),u={};u[r]=1,s(u).length&&(s_.f=function(d){for(var c=s(d),f=0,p=c.length;f<p;f++)if(c[f]===r){l(c,f,1);break}return c},Pd({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:hFt.f}))},fastKey:function(s,l){if(!Ui(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!Ha(s,r)){if(!Kg(s))return"F";if(!l)return"E";i(s)}return s[r].objectID},getWeakData:function(s,l){if(!Ha(s,r)){if(!Kg(s))return!0;if(!l)return!1;i(s)}return s[r].weakData},onFreeze:function(s){return gFt&&n&&Kg(s)&&!Ha(s,r)&&i(s),s}};u9[r]=!0})),nhe=To(To.bind),m5=function(e,t){return D0(e),t===void 0?e:nhe?nhe(e,t):function(){return e.apply(t,arguments)}},vFt=Ra("iterator"),mFt=Array.prototype,yFt=Ra("iterator"),rhe=function(e){if(e!=null)return p5(e,yFt)||p5(e,"@@iterator")||xb[c9(e)]},bFt=er.TypeError,ohe=function(e,t,n){var r,o;ms(e);try{if(!(r=p5(e,"return"))){if(t==="throw")throw n;return n}r=ci(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return ms(r),n},wFt=er.TypeError,K8=function(e,t){this.stopped=e,this.result=t},ihe=K8.prototype,g_=function(e,t,n){var r,o,i,a,s,l,u,d,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),h=m5(t,c),g=function(m){return r&&ohe(r,"normal",m),new K8(!0,m)},y=function(m){return f?(ms(m),v?h(m[0],m[1],g):h(m[0],m[1])):v?h(m,g):h(m)};if(p)r=e;else{if(!(o=rhe(e)))throw wFt(r_(e)+" is not iterable");if((d=o)!==void 0&&(xb.Array===d||mFt[vFt]===d)){for(i=0,a=GC(e);a>i;i++)if((s=y(e[i]))&&d5(ihe,s))return s;return new K8(!1)}r=(function(m,b){var w=arguments.length<2?rhe(m):b;if(D0(w))return ms(ci(w,m));throw bFt(r_(m)+" is not iterable")})(e,o)}for(l=r.next;!(u=ci(l,r)).done;){try{s=y(u.value)}catch(m){ohe(r,"throw",m)}if(typeof s=="object"&&s&&d5(ihe,s))return s}return new K8(!1)},AFt=er.TypeError,cQ=function(e,t){if(d5(t,e))return e;throw AFt("Incorrect invocation")},dEe=Ra("iterator"),fEe=!1;try{var CFt=0,ahe={next:function(){return{done:!!CFt++}},return:function(){fEe=!0}};ahe[dEe]=function(){return this},Array.from(ahe,(function(){throw 2}))}catch{}var pEe=function(e,t){if(!fEe)return!1;var n=!1;try{var r={};r[dEe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},xFt=Ra("species"),she=er.Array,SFt=function(e,t){return new((function(n){var r;return u_(n)&&(r=n.constructor,(nQ(r)&&(r===she||u_(r.prototype))||Ui(r)&&(r=r[xFt])===null)&&(r=void 0)),r===void 0?she:r})(e))(t===0?0:t)},lhe=To([].push),oB=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=KY(l),h=WY(v),g=m5(u,d),y=GC(h),m=0,b=c||SFt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:lhe(w,f)}else switch(e){case 4:return!1;case 7:lhe(w,f)}return i?-1:r||o?o:w}},dQ={forEach:oB(0),find:oB(5),findIndex:oB(6)},oS=uQ.getWeakData,EFt=Cu.set,kFt=Cu.getterFor,TFt=dQ.find,_Ft=dQ.findIndex,DFt=To([].splice),IFt=0,iS=function(e){return e.frozen||(e.frozen=new hEe)},hEe=function(){this.entries=[]},iB=function(e,t){return TFt(e.entries,(function(n){return n[0]===t}))};hEe.prototype={get:function(e){var t=iB(this,e);if(t)return t[1]},has:function(e){return!!iB(this,e)},set:function(e,t){var n=iB(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=_Ft(this.entries,(function(n){return n[0]===e}));return~t&&DFt(this.entries,t,1),!!~t}};var f4,gEe={getConstructor:function(e,t,n,r){var o=e((function(l,u){cQ(l,i),EFt(l,{type:t,id:IFt++,frozen:void 0}),u!=null&&g_(u,l[r],{that:l,AS_ENTRIES:n})})),i=o.prototype,a=kFt(t),s=function(l,u,d){var c=a(l),f=oS(ms(u),!0);return f===!0?iS(c).set(u,d):f[c.id]=d,l};return h_(i,{delete:function(l){var u=a(this);if(!Ui(l))return!1;var d=oS(l);return d===!0?iS(u).delete(l):d&&Ha(d,u.id)&&delete d[u.id]},has:function(l){var u=a(this);if(!Ui(l))return!1;var d=oS(l);return d===!0?iS(u).has(l):d&&Ha(d,u.id)}}),h_(i,n?{get:function(l){var u=a(this);if(Ui(l)){var d=oS(l);return d===!0?iS(u).get(l):d?d[u.id]:void 0}},set:function(l,u){return s(this,l,u)}}:{add:function(l){return s(this,l,!0)}}),o}},aS=Cu.enforce,OFt=!er.ActiveXObject&&"ActiveXObject"in er,vEe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},MFt=(function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=er[e],s=a&&a.prototype,l=a,u={},d=function(g){var y=To(s[g]);dc(s,g,g=="add"?function(m){return y(this,m===0?0:m),this}:g=="delete"?function(m){return!(o&&!Ui(m))&&y(this,m===0?0:m)}:g=="get"?function(m){return o&&!Ui(m)?void 0:y(this,m===0?0:m)}:g=="has"?function(m){return!(o&&!Ui(m))&&y(this,m===0?0:m)}:function(m,b){return y(this,m===0?0:m,b),this})};if(l_(e,!Ai(a)||!(o||s.forEach&&!ji((function(){new a().entries().next()})))))l=n.getConstructor(t,e,r,i),uQ.enable();else if(l_(e,!0)){var c=new l,f=c[i](o?{}:-0,1)!=c,p=ji((function(){c.has(1)})),v=pEe((function(g){new a(g)})),h=!o&&ji((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((l=t((function(g,y){cQ(g,s);var m=(function(b,w,A){var S,E;return Sb&&Ai(S=w.constructor)&&S!==A&&Ui(E=S.prototype)&&E!==A.prototype&&Sb(b,E),b})(new a,g,l);return y!=null&&g_(y,m[i],{that:m,AS_ENTRIES:r}),m}))).prototype=s,s.constructor=l),(p||h)&&(d("delete"),d("has"),r&&d("get")),(h||f)&&d(i),o&&s.clear&&delete s.clear}return u[e]=l,Pd({global:!0,forced:l!=a},u),p_(l,e),o||n.setStrong(l,e,r),l})("WeakMap",vEe,gEe);if(q8e&&OFt){f4=gEe.getConstructor(vEe,"WeakMap",!0),uQ.enable();var p4=MFt.prototype,uhe=To(p4.delete),sS=To(p4.has),che=To(p4.get),dhe=To(p4.set);h_(p4,{delete:function(e){if(Ui(e)&&!Kg(e)){var t=aS(this);return t.frozen||(t.frozen=new f4),uhe(this,e)||t.frozen.delete(e)}return uhe(this,e)},has:function(e){if(Ui(e)&&!Kg(e)){var t=aS(this);return t.frozen||(t.frozen=new f4),sS(this,e)||t.frozen.has(e)}return sS(this,e)},get:function(e){if(Ui(e)&&!Kg(e)){var t=aS(this);return t.frozen||(t.frozen=new f4),sS(this,e)?che(this,e):t.frozen.get(e)}return che(this,e)},set:function(e,t){if(Ui(e)&&!Kg(e)){var n=aS(this);n.frozen||(n.frozen=new f4),sS(this,e)?dhe(this,e,t):n.frozen.set(e,t)}else dhe(this,e,t);return this}})}var v_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},aB=h5("span").classList,fhe=aB&&aB.constructor&&aB.constructor.prototype,mEe=fhe===Object.prototype?void 0:fhe,sB=Ra("iterator"),phe=Ra("toStringTag"),lB=F4.values,yEe=function(e,t){if(e){if(e[sB]!==lB)try{zd(e,sB,lB)}catch{e[sB]=lB}if(e[phe]||zd(e,phe,t),v_[t]){for(var n in F4)if(e[n]!==F4[n])try{zd(e,n,F4[n])}catch{e[n]=F4[n]}}}};for(var uB in v_)yEe(er[uB]&&er[uB].prototype,uB);yEe(mEe,"DOMTokenList");var bEe=function(e,t){var n=[][e];return!!n&&ji((function(){n.call(null,t||function(){throw 1},1)}))},PFt=dQ.forEach,cB=bEe("forEach")?[].forEach:function(e){return PFt(this,e,arguments.length>1?arguments[1]:void 0)},wEe=function(e){if(e&&e.forEach!==cB)try{zd(e,"forEach",cB)}catch{e.forEach=cB}};for(var dB in v_)v_[dB]&&wEe(er[dB]&&er[dB].prototype);wEe(mEe);var y5,b1,hhe,fB,m_=er.Promise,ghe=Ra("species"),AEe=/(?:ipad|iphone|ipod).*applewebkit/i.test(Sy),Jh=Lc(er.process)=="process",sj=er.setImmediate,vhe=er.clearImmediate,NFt=er.process,pB=er.Dispatch,RFt=er.Function,mhe=er.MessageChannel,BFt=er.String,hB=0,I3={};try{y5=er.location}catch{}var fQ=function(e){if(Ha(I3,e)){var t=I3[e];delete I3[e],t()}},gB=function(e){return function(){fQ(e)}},yhe=function(e){fQ(e.data)},bhe=function(e){er.postMessage(BFt(e),y5.protocol+"//"+y5.host)};sj&&vhe||(sj=function(e){var t=eEe(arguments,1);return I3[++hB]=function(){iEe(Ai(e)?e:RFt(e),void 0,t)},b1(hB),hB},vhe=function(e){delete I3[e]},Jh?b1=function(e){NFt.nextTick(gB(e))}:pB&&pB.now?b1=function(e){pB.now(gB(e))}:mhe&&!AEe?(fB=(hhe=new mhe).port2,hhe.port1.onmessage=yhe,b1=m5(fB.postMessage,fB)):er.addEventListener&&Ai(er.postMessage)&&!er.importScripts&&y5&&y5.protocol!=="file:"&&!ji(bhe)?(b1=bhe,er.addEventListener("message",yhe,!1)):b1="onreadystatechange"in h5("script")?function(e){ej.appendChild(h5("script")).onreadystatechange=function(){ej.removeChild(this),fQ(e)}}:function(e){setTimeout(gB(e),0)});var h4,Lg,O3,U1,vB,mB,yB,whe,CEe={set:sj},LFt=/ipad|iphone|ipod/i.test(Sy)&&er.Pebble!==void 0,FFt=/web0s(?!.*chrome)/i.test(Sy),UFt=ZY.f,bB=CEe.set,Ahe=er.MutationObserver||er.WebKitMutationObserver,Che=er.document,xhe=er.process,lS=er.Promise,She=UFt(er,"queueMicrotask"),xEe=She&&She.value;xEe||(h4=function(){var e,t;for(Jh&&(e=xhe.domain)&&e.exit();Lg;){t=Lg.fn,Lg=Lg.next;try{t()}catch(n){throw Lg?U1():O3=void 0,n}}O3=void 0,e&&e.enter()},AEe||Jh||FFt||!Ahe||!Che?!LFt&&lS&&lS.resolve?((yB=lS.resolve(void 0)).constructor=lS,whe=m5(yB.then,yB),U1=function(){whe(h4)}):Jh?U1=function(){xhe.nextTick(h4)}:(bB=m5(bB,er),U1=function(){bB(h4)}):(vB=!0,mB=Che.createTextNode(""),new Ahe(h4).observe(mB,{characterData:!0}),U1=function(){mB.data=vB=!vB}));var wB,Ehe,SEe,khe,EEe=xEe||function(e){var t={fn:e,next:void 0};O3&&(O3.next=t),Lg||(Lg=t,U1()),O3=t},zFt=function(e){var t,n;this.promise=new e((function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o})),this.resolve=D0(t),this.reject=D0(n)},pQ={f:function(e){return new zFt(e)}},lj=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},$Ft=typeof window=="object",kEe=CEe.set,jFt=Ra("species"),Bf="Promise",The=Cu.getterFor(Bf),HFt=Cu.set,WFt=Cu.getterFor(Bf),kg=m_&&m_.prototype,Nd=m_,g4=kg,TEe=er.TypeError,uj=er.document,hQ=er.process,Ey=pQ.f,VFt=Ey,qFt=!!(uj&&uj.createEvent&&er.dispatchEvent),_Ee=Ai(er.PromiseRejectionEvent),DEe=!1,M3=l_(Bf,(function(){var e=l9(Nd),t=e!==String(Nd);if(!t&&f5===66)return!0;if(f5>=51&&/native code/.test(e))return!1;var n=new Nd((function(o){o(1)})),r=function(o){o((function(){}),(function(){}))};return(n.constructor={})[jFt]=r,!(DEe=n.then((function(){}))instanceof r)||!t&&$Ft&&!_Ee})),GFt=M3||!pEe((function(e){Nd.all(e).catch((function(){}))})),IEe=function(e){var t;return!(!Ui(e)||!Ai(t=e.then))&&t},gQ=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;EEe((function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,s,l,u=n[i++],d=o?u.ok:u.fail,c=u.resolve,f=u.reject,p=u.domain;try{d?(o||(e.rejection===2&&YFt(e),e.rejection=1),d===!0?a=r:(p&&p.enter(),a=d(r),p&&(p.exit(),l=!0)),a===u.promise?f(TEe("Promise-chain cycle")):(s=IEe(a))?ci(s,a,c,f):c(a)):f(r)}catch(v){p&&!l&&p.exit(),f(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&KFt(e)}))}},OEe=function(e,t,n){var r,o;qFt?((r=uj.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),er.dispatchEvent(r)):r={promise:t,reason:n},!_Ee&&(o=er["on"+e])?o(r):e==="unhandledrejection"&&(function(i,a){var s=er.console;s&&s.error&&(arguments.length==1?s.error(i):s.error(i,a))})("Unhandled promise rejection",n)},KFt=function(e){ci(kEe,er,(function(){var t,n=e.facade,r=e.value;if(_he(e)&&(t=lj((function(){Jh?hQ.emit("unhandledRejection",r,n):OEe("unhandledrejection",n,r)})),e.rejection=Jh||_he(e)?2:1,t.error))throw t.value}))},_he=function(e){return e.rejection!==1&&!e.parent},YFt=function(e){ci(kEe,er,(function(){var t=e.facade;Jh?hQ.emit("rejectionHandled",t):OEe("rejectionhandled",t,e.value)}))},Y1=function(e,t,n){return function(r){e(t,r,n)}},ky=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,gQ(e,!0))},cj=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw TEe("Promise can't be resolved itself");var r=IEe(t);r?EEe((function(){var o={done:!1};try{ci(r,t,Y1(cj,o,e),Y1(ky,o,e))}catch(i){ky(o,i,e)}})):(e.value=t,e.state=1,gQ(e,!1))}catch(o){ky({done:!1},o,e)}}};if(M3&&(g4=(Nd=function(e){cQ(this,g4),D0(e),ci(wB,this);var t=The(this);try{e(Y1(cj,t),Y1(ky,t))}catch(n){ky(t,n)}}).prototype,(wB=function(e){HFt(this,{type:Bf,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h_(g4,{then:function(e,t){var n=WFt(this),r=n.reactions,o=Ey(aEe(this,Nd));return o.ok=!Ai(e)||e,o.fail=Ai(t)&&t,o.domain=Jh?hQ.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&gQ(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ehe=function(){var e=new wB,t=The(e);this.promise=e,this.resolve=Y1(cj,t),this.reject=Y1(ky,t)},pQ.f=Ey=function(e){return e===Nd||e===SEe?new Ehe(e):VFt(e)},Ai(m_)&&kg!==Object.prototype)){khe=kg.then,DEe||(dc(kg,"then",(function(e,t){var n=this;return new Nd((function(r,o){ci(khe,n,r,o)})).then(e,t)}),{unsafe:!0}),dc(kg,"catch",g4.catch,{unsafe:!0}));try{delete kg.constructor}catch{}Sb&&Sb(kg,g4)}Pd({global:!0,wrap:!0,forced:M3},{Promise:Nd}),p_(Nd,Bf,!1),(function(e){var t=om("Promise"),n=Tp.f;Zd&&t&&!t[ghe]&&n(t,ghe,{configurable:!0,get:function(){return this}})})(),SEe=om(Bf),Pd({target:Bf,stat:!0,forced:M3},{reject:function(e){var t=Ey(this);return ci(t.reject,void 0,e),t.promise}}),Pd({target:Bf,stat:!0,forced:M3},{resolve:function(e){return(function(t,n){if(ms(t),Ui(n)&&n.constructor===t)return n;var r=pQ.f(t);return(0,r.resolve)(n),r.promise})(this,e)}}),Pd({target:Bf,stat:!0,forced:GFt},{all:function(e){var t=this,n=Ey(t),r=n.resolve,o=n.reject,i=lj((function(){var a=D0(t.resolve),s=[],l=0,u=1;g_(e,(function(d){var c=l++,f=!1;u++,ci(a,t,d).then((function(p){f||(f=!0,s[c]=p,--u||r(s))}),o)})),--u||r(s)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Ey(t),r=n.reject,o=lj((function(){var i=D0(t.resolve);g_(e,(function(a){ci(i,t,a).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var QFt=qC.PROPER,dj=RegExp.prototype,MEe=dj.toString,ZFt=To(tEe),XFt=ji((function(){return MEe.call({source:"a",flags:"b"})!="/a/b"})),JFt=QFt&&MEe.name!="toString";(XFt||JFt)&&dc(RegExp.prototype,"toString",(function(){var e=ms(this),t=Xh(e.source),n=e.flags;return"/"+t+"/"+Xh(n===void 0&&d5(dj,e)&&!("flags"in dj)?ZFt(e):n)}),{unsafe:!0});var eUt=qC.EXISTS,tUt=Tp.f,PEe=Function.prototype,nUt=To(PEe.toString),NEe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,rUt=To(NEe.exec);Zd&&!eUt&&tUt(PEe,"name",{configurable:!0,get:function(){try{return rUt(NEe,nUt(this))[1]}catch{return""}}});var Dhe=new WeakMap;function REe(e){return e.getMenuConfig("uploadImage")}function oUt(e,t){return aQ(this,void 0,void 0,(function(){return sQ(this,(function(n){return[2,new Promise((function(r){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),s=a.indexOf("data:image")===0?"":a;pv(e,a,t.name,s),r("ok")}}}))]}))}))}function iUt(e,t){return aQ(this,void 0,void 0,(function(){var n,r,o,i;return sQ(this,(function(a){switch(a.label){case 0:return n=(function(s){var l=Dhe.get(s);if(l!=null)return l;var u=REe(s),d=u.onSuccess,c=u.onProgress,f=u.onFailed,p=u.customInsert,v=u.onError;return l=fxe(d_(d_({},u),{onProgress:function(h){s.showProgressBar(h),c&&c(h)},onSuccess:function(h,g){if(p)return p(g,(function(M,O,k){return pv(s,M,O,k)})),void d(h,g);var y=g.errno,m=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(m===0){if(Array.isArray(w))w.forEach((function(M){var O=M.url,k=O===void 0?"":O,R=M.alt,N=R===void 0?"":R,W=M.href;pv(s,k,N,W===void 0?"":W)}));else{var A=w.url,S=A===void 0?"":A,E=w.alt,D=E===void 0?"":E,_=w.href;pv(s,S,D,_===void 0?"":_)}d(h,g)}else f(h,g)},onError:function(h,g,y){v(h,g,y)}})),Dhe.set(s,l),l})(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function BEe(e,t){var n,r;return aQ(this,void 0,void 0,(function(){var o,i,a,s,l,u,d,c,f;return sQ(this,(function(p){switch(p.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=REe(e),a=i.customUpload,s=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),l=ZLt(o),p.label=2;case 2:return[4,l.next()];case 3:return(u=p.sent()).done?[3,10]:(d=u.value,c=d.size,s&&c<=s?[4,oUt(e,d)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(d,(function(v,h,g){return pv(e,v,h,g)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,iUt(e,d)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return f=p.sent(),n={error:f},[3,17];case 12:return p.trys.push([12,,15,16]),u&&!u.done&&(r=l.return)?[4,r.call(l)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var aUt=To([].join),sUt=WY!=Object,lUt=bEe("join",",");Pd({target:"Array",proto:!0,forced:sUt||!lUt},{join:function(e){return aUt(W0(this),e===void 0?",":e)}}),ac&&(Pt.fn.append=ac),Kd&&(Pt.fn.on=Kd),ub&&(Pt.fn.remove=ub),Gd&&(Pt.fn.val=Gd),Dae&&(Pt.fn.click=Dae),ib&&(Pt.fn.hide=ib);var uUt=(function(){function e(){this.title=Jn("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return U7(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a((function(d,c,f){return pv(t,d,c,f)}));else{var s="";i.length>0&&(s='accept="'+i.join(", ")+'"');var l=Pt("body"),u=Pt('<input type="file" '+s+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",(function(){var d=u[0].files;BEe(t,d)}))}},e})(),cUt={menus:[{key:"uploadImage",factory:function(){return new uUt},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(U7(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(i){return(function(a,s){var l=typeof Symbol=="function"&&a[Symbol.iterator];if(!l)return a;var u,d,c=l.call(a),f=[];try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)f.push(u.value)}catch(p){d={error:p}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(d)throw d.error}}return f})(i.type.split("/"),1)[0]==="image"}))?BEe(e,o):t(r)}},n}};Gl("en",{highLightModule:{selectLang:"Language"}}),Gl("zh-CN",{highLightModule:{selectLang:"选择语言"}});var y_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var th,Y8,uS=function(e){return e&&e.Math==Math&&e},Oo=uS(typeof globalThis=="object"&&globalThis)||uS(typeof window=="object"&&window)||uS(typeof self=="object"&&self)||uS(typeof y_=="object"&&y_)||(function(){return this})()||Function("return this")(),dUt=Object.defineProperty,mQ=function(e,t){try{dUt(Oo,e,{value:t,configurable:!0,writable:!0})}catch{Oo[e]=t}return t},e0=Oo["__core-js_shared__"]||mQ("__core-js_shared__",{}),yQ=vQ((function(e){(e.exports=function(t,n){return e0[t]||(e0[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),LEe=Function.prototype,fj=LEe.bind,pj=LEe.call,fUt=fj&&fj.bind(pj),ii=fj?function(e){return e&&fUt(pj,e)}:function(e){return e&&function(){return pj.apply(e,arguments)}},pUt=Oo.TypeError,Eb=function(e){if(e==null)throw pUt("Can't call method on "+e);return e},hUt=Oo.Object,bQ=function(e){return hUt(Eb(e))},gUt=ii({}.hasOwnProperty),Zu=Object.hasOwn||function(e,t){return gUt(bQ(e),t)},vUt=0,mUt=Math.random(),yUt=ii(1 .toString),FEe=function(e){return"Symbol("+(e===void 0?"":e)+")_"+yUt(++vUt+mUt,36)},ml=function(e){return typeof e=="function"},bUt=function(e){return ml(e)?e:void 0},YC=function(e,t){return arguments.length<2?bUt(Oo[e]):Oo[e]&&Oo[e][t]},AB=YC("navigator","userAgent")||"",Ihe=Oo.process,Ohe=Oo.Deno,Mhe=Ihe&&Ihe.versions||Ohe&&Ohe.version,Phe=Mhe&&Mhe.v8;Phe&&(Y8=(th=Phe.split("."))[0]>0&&th[0]<4?1:+(th[0]+th[1])),!Y8&&AB&&(!(th=AB.match(/Edge\/(\d+)/))||th[1]>=74)&&(th=AB.match(/Chrome\/(\d+)/))&&(Y8=+th[1]);var Nhe=Y8,fs=function(e){try{return!!e()}catch{return!0}},hj=!!Object.getOwnPropertySymbols&&!fs((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Nhe&&Nhe<41})),wQ=hj&&!Symbol.sham&&typeof Symbol.iterator=="symbol",v4=yQ("wks"),Ev=Oo.Symbol,Rhe=Ev&&Ev.for,wUt=wQ?Ev:Ev&&Ev.withoutSetter||FEe,V0=function(e){if(!Zu(v4,e)||!hj&&typeof v4[e]!="string"){var t="Symbol."+e;hj&&Zu(Ev,e)?v4[e]=Ev[e]:v4[e]=wQ&&Rhe?Rhe(t):wUt(t)}return v4[e]},UEe={};UEe[V0("toStringTag")]="z";var AQ=String(UEe)==="[object z]",Xd=!fs((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),zf=function(e){return typeof e=="object"?e!==null:ml(e)},gj=Oo.document,AUt=zf(gj)&&zf(gj.createElement),CQ=function(e){return AUt?gj.createElement(e):{}},zEe=!Xd&&!fs((function(){return Object.defineProperty(CQ("div"),"a",{get:function(){return 7}}).a!=7})),CUt=Oo.String,xUt=Oo.TypeError,Fc=function(e){if(zf(e))return e;throw xUt(CUt(e)+" is not an object")},m4=Function.prototype.call,cs=m4.bind?m4.bind(m4):function(){return m4.apply(m4,arguments)},$Ee=ii({}.isPrototypeOf),SUt=Oo.Object,CB=wQ?function(e){return typeof e=="symbol"}:function(e){var t=YC("Symbol");return ml(t)&&$Ee(t.prototype,SUt(e))},EUt=Oo.String,jEe=function(e){try{return EUt(e)}catch{return"Object"}},kUt=Oo.TypeError,HEe=function(e){if(ml(e))return e;throw kUt(jEe(e)+" is not a function")},WEe=function(e,t){var n=e[t];return n==null?void 0:HEe(n)},TUt=Oo.TypeError,_Ut=Oo.TypeError,DUt=V0("toPrimitive"),xQ=function(e){var t=(function(n,r){if(!zf(n)||CB(n))return n;var o,i=WEe(n,DUt);if(i){if(o=cs(i,n,r),!zf(o)||CB(o))return o;throw _Ut("Can't convert object to primitive value")}return(function(a,s){var l,u;if(ml(l=a.toString)&&!zf(u=cs(l,a))||ml(l=a.valueOf)&&!zf(u=cs(l,a)))return u;throw TUt("Can't convert object to primitive value")})(n)})(e,"string");return CB(t)?t:t+""},IUt=Oo.TypeError,Bhe=Object.defineProperty,d9={f:Xd?Bhe:function(e,t,n){if(Fc(e),t=xQ(t),Fc(n),zEe)try{return Bhe(e,t,n)}catch{}if("get"in n||"set"in n)throw IUt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},SQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},kb=Xd?function(e,t,n){return d9.f(e,t,SQ(1,n))}:function(e,t,n){return e[t]=n,e},OUt=ii(Function.toString);ml(e0.inspectSource)||(e0.inspectSource=function(e){return OUt(e)});var vj,b_,mj,EQ=e0.inspectSource,Lhe=Oo.WeakMap,MUt=ml(Lhe)&&/native code/.test(EQ(Lhe)),Fhe=yQ("keys"),VEe=function(e){return Fhe[e]||(Fhe[e]=FEe(e))},kQ={},Uhe=Oo.TypeError,PUt=Oo.WeakMap;if(MUt||e0.state){var hg=e0.state||(e0.state=new PUt),NUt=ii(hg.get),zhe=ii(hg.has),RUt=ii(hg.set);vj=function(e,t){if(zhe(hg,e))throw new Uhe("Object already initialized");return t.facade=e,RUt(hg,e,t),t},b_=function(e){return NUt(hg,e)||{}},mj=function(e){return zhe(hg,e)}}else{var w1=VEe("state");kQ[w1]=!0,vj=function(e,t){if(Zu(e,w1))throw new Uhe("Object already initialized");return t.facade=e,kb(e,w1,t),t},b_=function(e){return Zu(e,w1)?e[w1]:{}},mj=function(e){return Zu(e,w1)}}var yj={get:b_,enforce:function(e){return mj(e)?b_(e):vj(e,{})}},qEe=Function.prototype,BUt=Xd&&Object.getOwnPropertyDescriptor,$he=Zu(qEe,"name"),GEe={PROPER:$he&&(function(){}).name==="something",CONFIGURABLE:$he&&(!Xd||Xd&&BUt(qEe,"name").configurable)},b5=vQ((function(e){var t=GEe.CONFIGURABLE,n=yj.get,r=yj.enforce,o=String(String).split("String");(e.exports=function(i,a,s,l){var u,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet,p=l&&l.name!==void 0?l.name:a;ml(s)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Zu(s,"name")||t&&s.name!==p)&&kb(s,"name",p),(u=r(s)).source||(u.source=o.join(typeof p=="string"?p:""))),i!==Oo?(d?!f&&i[a]&&(c=!0):delete i[a],c?i[a]=s:kb(i,a,s)):c?i[a]=s:mQ(a,s)})(Function.prototype,"toString",(function(){return ml(this)&&n(this).source||EQ(this)}))})),LUt=ii({}.toString),FUt=ii("".slice),t0=function(e){return FUt(LUt(e),8,-1)},UUt=V0("toStringTag"),zUt=Oo.Object,$Ut=t0((function(){return arguments})())=="Arguments",TQ=AQ?t0:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=(function(o,i){try{return o[i]}catch{}})(t=zUt(e),UUt))=="string"?n:$Ut?t0(t):(r=t0(t))=="Object"&&ml(t.callee)?"Arguments":r},jUt=AQ?{}.toString:function(){return"[object "+TQ(this)+"]"};AQ||b5(Object.prototype,"toString",jUt,{unsafe:!0});var jhe,Hhe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},xB=CQ("span").classList,Whe=xB&&xB.constructor&&xB.constructor.prototype,HUt=Whe===Object.prototype?void 0:Whe,Vhe=ii(ii.bind),SB=Oo.Object,WUt=ii("".split),_Q=fs((function(){return!SB("z").propertyIsEnumerable(0)}))?function(e){return t0(e)=="String"?WUt(e,""):SB(e)}:SB,VUt=Math.ceil,qUt=Math.floor,DQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?qUt:VUt)(t)},GUt=Math.min,KEe=function(e){return e>0?GUt(DQ(e),9007199254740991):0},IQ=function(e){return KEe(e.length)},qhe=Array.isArray||function(e){return t0(e)=="Array"},YEe=function(){},KUt=[],QEe=YC("Reflect","construct"),OQ=/^\s*(?:class|function)\b/,YUt=ii(OQ.exec),QUt=!OQ.exec(YEe),y4=function(e){if(!ml(e))return!1;try{return QEe(YEe,KUt,e),!0}catch{return!1}},ZEe=!QEe||fs((function(){var e;return y4(y4.call)||!y4(Object)||!y4((function(){e=!0}))||e}))?function(e){if(!ml(e))return!1;switch(TQ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return QUt||!!YUt(OQ,EQ(e))}:y4,ZUt=V0("species"),Ghe=Oo.Array,XUt=function(e,t){return new((function(n){var r;return qhe(n)&&(r=n.constructor,(ZEe(r)&&(r===Ghe||qhe(r.prototype))||zf(r)&&(r=r[ZUt])===null)&&(r=void 0)),r===void 0?Ghe:r})(e))(t===0?0:t)},Khe=ii([].push),nh=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,s=e==5||i;return function(l,u,d,c){for(var f,p,v=bQ(l),h=_Q(v),g=(function(A,S){return HEe(A),S===void 0?A:Vhe?Vhe(A,S):function(){return A.apply(S,arguments)}})(u,d),y=IQ(h),m=0,b=c||XUt,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((s||m in h)&&(p=g(f=h[m],m,v),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Khe(w,f)}else switch(e){case 4:return!1;case 7:Khe(w,f)}return i?-1:r||o?o:w}},JUt=[nh(0),nh(1),nh(2),nh(3),nh(4),nh(5),nh(6),nh(7)][0],EB=(jhe=[].forEach)&&fs((function(){jhe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return JUt(this,e,arguments.length>1?arguments[1]:void 0)},XEe=function(e){if(e&&e.forEach!==EB)try{kb(e,"forEach",EB)}catch{e.forEach=EB}};for(var kB in Hhe)Hhe[kB]&&XEe(Oo[kB]&&Oo[kB].prototype);XEe(HUt);var Yhe={}.propertyIsEnumerable,Qhe=Object.getOwnPropertyDescriptor,JEe={f:Qhe&&!Yhe.call({1:2},1)?function(e){var t=Qhe(this,e);return!!t&&t.enumerable}:Yhe},f9=function(e){return _Q(Eb(e))},Zhe=Object.getOwnPropertyDescriptor,eke={f:Xd?Zhe:function(e,t){if(e=f9(e),t=xQ(t),zEe)try{return Zhe(e,t)}catch{}if(Zu(e,t))return SQ(!cs(JEe.f,e,t),e[t])}},ezt=Math.max,tzt=Math.min,bj=function(e,t){var n=DQ(e);return n<0?ezt(n+t,0):tzt(n,t)},nzt=function(e){return function(t,n,r){var o,i=f9(t),a=IQ(i),s=bj(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},rzt=nzt(!1),Xhe=ii([].push),tke=function(e,t){var n,r=f9(e),o=0,i=[];for(n in r)!Zu(kQ,n)&&Zu(r,n)&&Xhe(i,n);for(;t.length>o;)Zu(r,n=t[o++])&&(~rzt(i,n)||Xhe(i,n));return i},w_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ozt=w_.concat("length","prototype"),izt={f:Object.getOwnPropertyNames||function(e){return tke(e,ozt)}},nke={f:Object.getOwnPropertySymbols},azt=ii([].concat),szt=YC("Reflect","ownKeys")||function(e){var t=izt.f(Fc(e)),n=nke.f;return n?azt(t,n(e)):t},lzt=function(e,t){for(var n=szt(t),r=d9.f,o=eke.f,i=0;i<n.length;i++){var a=n[i];Zu(e,a)||r(e,a,o(t,a))}},uzt=/#|\.prototype\./,QC=function(e,t){var n=dzt[czt(e)];return n==pzt||n!=fzt&&(ml(t)?fs(t):!!t)},czt=QC.normalize=function(e){return String(e).replace(uzt,".").toLowerCase()},dzt=QC.data={},fzt=QC.NATIVE="N",pzt=QC.POLYFILL="P",hzt=QC,gzt=eke.f,p9=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?Oo:u?Oo[s]||mQ(s,{}):(Oo[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=gzt(n,r))&&a.value:n[r],!hzt(l?r:s+(u?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;lzt(i,o)}(e.sham||o&&o.sham)&&kb(i,"sham",!0),b5(n,r,i,e)}},Q8=Object.keys||function(e){return tke(e,w_)},A1=Object.assign,Jhe=Object.defineProperty,vzt=ii([].concat),e0e=!A1||fs((function(){if(Xd&&A1({b:1},A1(Jhe({},"a",{enumerable:!0,get:function(){Jhe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(o){t[o]=o})),A1({},e)[n]!=7||Q8(A1({},t)).join("")!=r}))?function(e,t){for(var n=bQ(e),r=arguments.length,o=1,i=nke.f,a=JEe.f;r>o;)for(var s,l=_Q(arguments[o++]),u=i?vzt(Q8(l),i(l)):Q8(l),d=u.length,c=0;d>c;)s=u[c++],Xd&&!cs(a,l,s)||(n[s]=l[s]);return n}:A1;p9({target:"Object",stat:!0,forced:Object.assign!==e0e},{assign:e0e});var t0e=vQ((function(e){var t=(function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof s?new s(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(y,m){var b,w;switch(m=m||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),m[w])return m[w];for(var A in b={},m[w]=b,y)y.hasOwnProperty(A)&&(b[A]=g(y[A],m));return b;case"Array":return w=a.util.objId(y),m[w]?m[w]:(b=[],m[w]=b,y.forEach((function(S,E){b[E]=g(S,m)})),b);default:return y}},getLanguage:function(g){for(;g&&!r.test(g.className);)g=g.parentElement;return g?(g.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var m in y)if(y[m].src==g)return y[m]}return null}},isActive:function(g,y,m){for(var b="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!m}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,y){var m=a.util.clone(a.languages[g]);for(var b in y)m[b]=y[b];return m},insertBefore:function(g,y,m,b){var w=(b=b||a.languages)[g],A={};for(var S in w)if(w.hasOwnProperty(S)){if(S==y)for(var E in m)m.hasOwnProperty(E)&&(A[E]=m[E]);m.hasOwnProperty(S)||(A[S]=w[S])}var D=b[g];return b[g]=A,a.languages.DFS(a.languages,(function(_,M){M===D&&_!=g&&(this[_]=A)})),A},DFS:function g(y,m,b,w){w=w||{};var A=a.util.objId;for(var S in y)if(y.hasOwnProperty(S)){m.call(y,S,y[S],b||S);var E=y[S],D=a.util.type(E);D!=="Object"||w[A(E)]?D!=="Array"||w[A(E)]||(w[A(E)]=!0,g(E,m,S,w)):(w[A(E)]=!0,g(E,m,null,w))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,m){var b={callback:m,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,A=0;w=b.elements[A++];)a.highlightElement(w,y===!0,b.callback)},highlightElement:function(g,y,m){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var A=g.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&(A.className=A.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var S={element:g,language:b,grammar:w,code:g.textContent};function E(_){S.highlightedCode=_,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),m&&m.call(S.element)}if(a.hooks.run("before-sanity-check",S),(A=S.element.parentElement)&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(m&&m.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(y&&n.Worker){var D=new Worker(a.filename);D.onmessage=function(_){E(_.data)},D.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else E(a.highlight(S.code,S.grammar,S.language));else E(a.util.encode(S.code))},highlight:function(g,y,m){var b={code:g,grammar:y,language:m};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),s.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(g,y){var m=y.rest;if(m){for(var b in m)y[b]=m[b];delete y.rest}var w=new d;return c(w,w.head,g),u(g,w,y,w.head,0),(function(A){for(var S=[],E=A.head.next;E!==A.tail;)S.push(E.value),E=E.next;return S})(w)},hooks:{all:{},add:function(g,y){var m=a.hooks.all;m[g]=m[g]||[],m[g].push(y)},run:function(g,y){var m=a.hooks.all[g];if(m&&m.length)for(var b,w=0;b=m[w++];)b(y)}},Token:s};function s(g,y,m,b){this.type=g,this.content=y,this.alias=m,this.length=0|(b||"").length}function l(g,y,m,b){g.lastIndex=y;var w=g.exec(m);if(w&&b&&w[1]){var A=w[1].length;w.index+=A,w[0]=w[0].slice(A)}return w}function u(g,y,m,b,w,A){for(var S in m)if(m.hasOwnProperty(S)&&m[S]){var E=m[S];E=Array.isArray(E)?E:[E];for(var D=0;D<E.length;++D){if(A&&A.cause==S+","+D)return;var _=E[D],M=_.inside,O=!!_.lookbehind,k=!!_.greedy,R=_.alias;if(k&&!_.pattern.global){var N=_.pattern.toString().match(/[imsuy]*$/)[0];_.pattern=RegExp(_.pattern.source,N+"g")}for(var W=_.pattern||_,B=b.next,z=w;B!==y.tail&&!(A&&z>=A.reach);z+=B.value.length,B=B.next){var j=B.value;if(y.length>g.length)return;if(!(j instanceof s)){var q,Y=1;if(k){if(!(q=l(W,z,g,O)))break;var U=q.index,F=q.index+q[0].length,H=z;for(H+=B.value.length;U>=H;)H+=(B=B.next).value.length;if(z=H-=B.value.length,B.value instanceof s)continue;for(var re=B;re!==y.tail&&(H<F||typeof re.value=="string");re=re.next)Y++,H+=re.value.length;Y--,j=g.slice(z,H),q.index-=z}else if(!(q=l(W,0,j,O)))continue;U=q.index;var X=q[0],te=j.slice(0,U),Z=j.slice(U+X.length),le=z+j.length;A&&le>A.reach&&(A.reach=le);var ve=B.prev;if(te&&(ve=c(y,ve,te),z+=te.length),f(y,ve,Y),B=c(y,ve,new s(S,M?a.tokenize(X,M):X,R,X)),Z&&c(y,B,Z),Y>1){var Pe={cause:S+","+D,reach:le};u(g,y,m,B.prev,z,Pe),A&&Pe.reach>A.reach&&(A.reach=Pe.reach)}}}}}}function d(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function c(g,y,m){var b=y.next,w={value:m,prev:y,next:b};return y.next=w,b.prev=w,g.length++,w}function f(g,y,m){for(var b=y.next,w=0;w<m&&b!==g.tail;w++)b=b.next;y.next=b,b.prev=y,g.length-=w}if(n.Prism=a,s.stringify=function g(y,m){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach((function(D){b+=g(D,m)})),b}var w={type:y.type,content:g(y.content,m),tag:"span",classes:["token",y.type],attributes:{},language:m},A=y.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(w.classes,A):w.classes.push(A)),a.hooks.run("wrap",w);var S="";for(var E in w.attributes)S+=" "+E+'="'+(w.attributes[E]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",(function(g){var y=JSON.parse(g.data),m=y.language,b=y.code,w=y.immediateClose;n.postMessage(a.highlight(b,a.languages[m],m)),w&&n.close()}),!1)),a;var p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;h==="loading"||h==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a})(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),y_!==void 0&&(y_.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return n})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,(function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(l){l.selector+=", "+o})),t.hooks.add("before-sanity-check",(function(l){var u=l.element;if(u.matches(o)){l.code="",u.setAttribute(r,"loading");var d=u.appendChild(document.createElement("CODE"));d.textContent="Loading…";var c=u.getAttribute("data-src"),f=l.language;if(f==="none"){var p=(/\.(\w+)$/.exec(c)||[,"none"])[1];f=n[p]||p}s(d,f),s(u,f);var v=t.plugins.autoloader;v&&v.loadLanguages(f);var h=new XMLHttpRequest;h.open("GET",c,!0),h.onreadystatechange=function(){h.readyState==4&&(h.status<400&&h.responseText?(u.setAttribute(r,"loaded"),d.textContent=h.responseText,t.highlightElement(d)):(u.setAttribute(r,"failed"),h.status>=400?d.textContent="✖ Error "+h.status+" while fetching file: "+h.statusText:d.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(l){for(var u,d=(l||document).querySelectorAll(o),c=0;u=d[c++];)t.highlightElement(u)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(l,u){var d=l.className;d=d.replace(i," ")+" language-"+u,l.className=d.replace(/\s+/g," ").trim()}})()}));(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(l,u){return l=l.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(l,u)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(l){return l?typeof l=="string"?l:typeof l.content=="string"?l.content:l.content.map(a).join(""):""},s=function(l){for(var u=[],d=0;d<l.length;d++){var c=l[d],f=!1;if(typeof c!="string"&&(c.type==="tag"&&c.content[0]&&c.content[0].type==="tag"?c.content[0].content[0].content==="</"?u.length>0&&u[u.length-1].tagName===a(c.content[0].content[1])&&u.pop():c.content[c.content.length-1].content==="/>"||u.push({tagName:a(c.content[0].content[1]),openedBraces:0}):u.length>0&&c.type==="punctuation"&&c.content==="{"?u[u.length-1].openedBraces++:u.length>0&&u[u.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?u[u.length-1].openedBraces--:f=!0),(f||typeof c=="string")&&u.length>0&&u[u.length-1].openedBraces===0){var p=a(c);d<l.length-1&&(typeof l[d+1]=="string"||l[d+1].type==="plain-text")&&(p+=a(l[d+1]),l.splice(d+1,1)),d>0&&(typeof l[d-1]=="string"||l[d-1].type==="plain-text")&&(p=a(l[d-1])+p,l.splice(d-1,1),d--),l[d]=new e.Token("plain-text",p,null,p)}c.content&&typeof c.content!="string"&&s(c.content)}};e.hooks.add("after-tokenize",(function(l){l.language!=="jsx"&&l.language!=="tsx"||s(l.tokens)}))})(Prism),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(l){/<\?/.test(l.code)&&e.languages["markup-templating"].buildPlaceholders(l,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(l){e.languages["markup-templating"].tokenizePlaceholders(l,"php")}))})(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(Prism),(function(e){function t(F,H){return F.replace(/<<(\d+)>>/g,(function(re,X){return"(?:"+H[+X]+")"}))}function n(F,H,re){return RegExp(t(F,H),"")}function r(F,H){for(var re=0;re<H;re++)F=F.replace(/<<self>>/g,(function(){return"(?:"+F+")"}));return F.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(F){return"\\b(?:"+F.trim().replace(/ /g,"|")+")\\b"}var u=l(i),d=RegExp(l(o+" "+i+" "+a+" "+s)),c=l(i+" "+a+" "+s),f=l(o+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=r(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,m]),A=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,y,m]),E={keyword:d,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,M=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[M]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:RegExp(D),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,S]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,g]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,f,h]),inside:E}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:n(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,g,h,S,d.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:d,"class-name":{pattern:RegExp(S),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=_+"|"+D,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),R=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,R]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[R]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var B=/:[^}\r\n]+/.source,z=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[z,B]),q=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),Y=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,B]);function U(F,H){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[F]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[H,B]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:U(j,z)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Y]),lookbehind:!0,greedy:!0,inside:U(Y,q)}]})})(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash})(Prism),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(u){return u=u.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(u){["url","bold","italic","strike","code-snippet"].forEach((function(d){u!==d&&(e.languages.markdown[u].inside.content.inside[d]=e.languages.markdown[d])}))})),e.hooks.add("after-tokenize",(function(u){u.language!=="markdown"&&u.language!=="md"||(function d(c){if(c&&typeof c!="string")for(var f=0,p=c.length;f<p;f++){var v=c[f];if(v.type==="code"){var h=v.content[1],g=v.content[3];if(h&&g&&h.type==="code-language"&&g.type==="code-block"&&typeof h.content=="string"){var y=h.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),m="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,m]:g.alias.push(m):g.alias=[m]}}else d(v.content)}})(u.tokens)})),e.hooks.add("wrap",(function(u){if(u.type==="code-block"){for(var d="",c=0,f=u.classes.length;c<f;c++){var p=u.classes[c],v=/language-(.+)/.exec(p);if(v){d=v[1];break}}var h=e.languages[d];if(h)u.content=e.highlight((function(y){var m=y.replace(a,"");return m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(b,w){var A;return(w=w.toLowerCase())[0]==="#"?(A=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),l(A)):s[w]||b}))})(u.content),h,d);else if(d&&d!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());u.attributes.id=g,e.plugins.autoloader.loadLanguages(d,(function(){var y=document.getElementById(g);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[d],d))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}}));var mzt=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function rke(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce((function(t,n){return t+rke(n)}),0)}var cS,yzt=Oo.String,Kf=function(e){if(TQ(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yzt(e)},oke=function(){var e=Fc(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},MQ=Oo.RegExp,wj=fs((function(){var e=MQ("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));wj||fs((function(){return!MQ("a","y").sticky}));var ike={BROKEN_CARET:wj||fs((function(){var e=MQ("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:wj},bzt=Xd?Object.defineProperties:function(e,t){Fc(e);for(var n,r=f9(t),o=Q8(t),i=o.length,a=0;i>a;)d9.f(e,n=o[a++],r[n]);return e},wzt=YC("document","documentElement"),ake=VEe("IE_PROTO"),TB=function(){},ske=function(e){return"<script>"+e+"<\/script>"},n0e=function(e){e.write(ske("")),e.close();var t=e.parentWindow.Object;return e=null,t},Z8=function(){try{cS=new ActiveXObject("htmlfile")}catch{}var e,t;Z8=typeof document<"u"?document.domain&&cS?n0e(cS):((t=CQ("iframe")).style.display="none",wzt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(ske("document.F=Object")),e.close(),e.F):n0e(cS);for(var n=w_.length;n--;)delete Z8.prototype[w_[n]];return Z8()};kQ[ake]=!0;var r0e,_B,Azt=Object.create||function(e,t){var n;return e!==null?(TB.prototype=Fc(e),n=new TB,TB.prototype=null,n[ake]=e):n=Z8(),t===void 0?n:bzt(n,t)},Czt=Oo.RegExp,xzt=fs((function(){var e=Czt(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")})),Szt=Oo.RegExp,Ezt=fs((function(){var e=Szt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),kzt=yj.get,Tzt=yQ("native-string-replace",String.prototype.replace),A_=RegExp.prototype.exec,Aj=A_,_zt=ii("".charAt),Dzt=ii("".indexOf),Izt=ii("".replace),DB=ii("".slice),IB=(_B=/b*/g,cs(A_,r0e=/a/,"a"),cs(A_,_B,"a"),r0e.lastIndex!==0||_B.lastIndex!==0),o0e=ike.BROKEN_CARET,OB=/()??/.exec("")[1]!==void 0;(IB||OB||o0e||xzt||Ezt)&&(Aj=function(e){var t,n,r,o,i,a,s,l=this,u=kzt(l),d=Kf(e),c=u.raw;if(c)return c.lastIndex=l.lastIndex,t=cs(Aj,c,d),l.lastIndex=c.lastIndex,t;var f=u.groups,p=o0e&&l.sticky,v=cs(oke,l),h=l.source,g=0,y=d;if(p&&(v=Izt(v,"y",""),Dzt(v,"g")===-1&&(v+="g"),y=DB(d,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&_zt(d,l.lastIndex-1)!==`
- `)&&(h="(?: "+h+")",y=" "+y,g++),n=new RegExp("^(?:"+h+")",v)),OB&&(n=new RegExp("^"+h+"$(?!\\s)",v)),IB&&(r=l.lastIndex),o=cs(A_,p?n:l,y),p?o?(o.input=DB(o.input,g),o[0]=DB(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:IB&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),OB&&o&&o.length>1&&cs(Tzt,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&f)for(o.groups=a=Azt(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var w5=Aj;p9({target:"RegExp",proto:!0,forced:/./.exec!==w5},{exec:w5});var PQ=Function.prototype,i0e=PQ.apply,Ozt=PQ.bind,a0e=PQ.call,Mzt=typeof Reflect=="object"&&Reflect.apply||(Ozt?a0e.bind(i0e):function(){return a0e.apply(i0e,arguments)}),Pzt=V0("species"),MB=RegExp.prototype,Nzt=V0("match"),Rzt=Oo.TypeError,Bzt=V0("species"),Lzt=ii("".charAt),s0e=ii("".charCodeAt),Fzt=ii("".slice),Uzt=function(e){return function(t,n){var r,o,i=Kf(Eb(t)),a=DQ(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=s0e(i,a))<55296||r>56319||a+1===s||(o=s0e(i,a+1))<56320||o>57343?e?Lzt(i,a):r:e?Fzt(i,a,a+2):o-56320+(r-55296<<10)+65536}},zzt=Uzt(!0),$zt=function(e,t,n){return t+(n?zzt(e,t).length:1)},jzt=Oo.Array,Hzt=Math.max,l0e=function(e,t,n){for(var r,o,i,a,s=IQ(e),l=bj(t,s),u=bj(n===void 0?s:n,s),d=jzt(Hzt(u-l,0)),c=0;l<u;l++,c++)r=d,o=c,i=e[l],(a=xQ(o))in r?d9.f(r,a,SQ(0,i)):r[a]=i;return d.length=c,d},Wzt=Oo.TypeError,u0e=function(e,t){var n=e.exec;if(ml(n)){var r=cs(n,e,t);return r!==null&&Fc(r),r}if(t0(e)==="RegExp")return cs(w5,e,t);throw Wzt("RegExp#exec called on incompatible receiver")},C1=ike.UNSUPPORTED_Y,Vzt=Math.min,lke=[].push,qzt=ii(/./.exec),x1=ii(lke),b4=ii("".slice);(function(e,t,n,r){var o=V0(e),i=!fs((function(){var u={};return u[o]=function(){return 7},""[e](u)!=7})),a=i&&!fs((function(){var u=!1,d=/a/;return(d={}).constructor={},d.constructor[Pzt]=function(){return d},d.flags="",d[o]=/./[o],d.exec=function(){return u=!0,null},d[o](""),!u}));if(!i||!a||n){var s=ii(/./[o]),l=(function(u,d,c){var f;return f="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,g,y=Kf(Eb(this)),m=v===void 0?4294967295:v>>>0;if(m===0)return[];if(p===void 0)return[y];if(!zf(h=p)||!((g=h[Nzt])!==void 0?g:t0(h)=="RegExp"))return cs(d,y,p,m);for(var b,w,A,S=[],E=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),D=0,_=new RegExp(p.source,E+"g");(b=cs(w5,_,y))&&!((w=_.lastIndex)>D&&(x1(S,b4(y,D,b.index)),b.length>1&&b.index<y.length&&Mzt(lke,S,l0e(b,1)),A=b[0].length,D=w,S.length>=m));)_.lastIndex===b.index&&_.lastIndex++;return D===y.length?!A&&qzt(_,"")||x1(S,""):x1(S,b4(y,D)),S.length>m?l0e(S,0,m):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:cs(d,this,p,v)}:d,[function(p,v){var h=Eb(this),g=p==null?void 0:WEe(p,u);return g?cs(g,p,h,v):cs(f,Kf(h),p,v)},function(p,v){var h=Fc(this),g=Kf(p),y=c(f,h,g,v,f!==d);if(y.done)return y.value;var m=(function(R,N){var W,B=Fc(R).constructor;return B===void 0||(W=Fc(B)[Bzt])==null?N:(function(z){if(ZEe(z))return z;throw Rzt(jEe(z)+" is not a constructor")})(W)})(h,RegExp),b=h.unicode,w=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(C1?"g":"y"),A=new m(C1?"^(?:"+h.source+")":h,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return u0e(A,g)===null?[g]:[];for(var E=0,D=0,_=[];D<g.length;){A.lastIndex=C1?0:D;var M,O=u0e(A,C1?b4(g,D):g);if(O===null||(M=Vzt(KEe(A.lastIndex+(C1?D:0)),g.length))===E)D=$zt(g,D,b);else{if(x1(_,b4(g,E,D)),_.length===S)return _;for(var k=1;k<=O.length-1;k++)if(x1(_,O[k]),_.length===S)return _;D=E=M}}return x1(_,b4(g,E)),_}]})(o,""[e],(function(u,d,c,f,p){var v=ii(u),h=d.exec;return h===w5||h===MB.exec?i&&!p?{done:!0,value:s(d,c,f)}:{done:!0,value:v(c,d,f)}:{done:!1}}));b5(String.prototype,e,l[0]),b5(MB,o,l[1])}r&&kb(MB[o],"sham",!0)})("split",0,!!fs((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"})),C1),p9({global:!0},{globalThis:Oo}),ic&&(Pt.fn.attr=ic);var Gzt=GEe.PROPER,Cj=RegExp.prototype,uke=Cj.toString,Kzt=ii(oke),Yzt=fs((function(){return uke.call({source:"a",flags:"b"})!="/a/b"})),Qzt=Gzt&&uke.name!="toString";(Yzt||Qzt)&&b5(RegExp.prototype,"toString",(function(){var e=Fc(this),t=Kf(e.source),n=e.flags;return"/"+t+"/"+Kf(n===void 0&&$Ee(Cj,e)&&!("flags"in Cj)?Kzt(e):n)}),{unsafe:!0});var Zzt=(function(){function e(){this.title=Jn("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach((function(a){var s=a.text,l=a.value;n.push({text:s,value:l})}));var i=this.getValue(t);return n.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!Mr.isElement(n))return"";var r=n.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some((function(i){return i.value===r}))?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};nn.setNodes(t,r,{match:function(o){return kt.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=kt.getSelectedNodeByType(t,"code");if(n==null)return null;var r=kt.getParentNode(t,n);return Mr.isElement(r)?r.type!=="pre"?null:n:null},e})(),Xzt={renderStyle:function(e,t){var n=e,r=t,o="";return mzt.forEach((function(i){n[i]&&(o=i)})),o&&(function(i,a){i.data==null&&(i.data={});var s=i.data;s.props==null&&(s.props={}),Object.assign(s.props,{className:a})})(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Pt(e);if(!Mr.isElement(t)||kt.getNodeType(t)!=="code")return t;var o=t,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Zzt},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Jzt=/"/g,e$t=ii("".replace);p9({target:"String",proto:!0,forced:fs((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Kf(Eb(this)),r="<a",(r+=' name="'+e$t(Kf(t),Jzt,""")+'"')+">"+n+"</a>";var t,n,r}});var cke=function(e){var t,n,r,o=(function(y,m){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,A,S=b.call(y),E=[];try{for(;(m===void 0||m-- >0)&&!(w=S.next()).done;)E.push(w.value)}catch(D){A={error:D}}finally{try{w&&!w.done&&(b=S.return)&&b.call(S)}finally{if(A)throw A.error}}return E})(e,2),i=o[0],a=o[1],s=[],l=(function(y){if(!cr.isText(y))return null;var m=kt.getParentNode(null,y);if(m&&kt.getNodeType(m)==="code"){var b=kt.getParentNode(null,m);if(b&&kt.getNodeType(b)==="pre")return m}return null})(i);if(l==null)return s;var u=l.language,d=u===void 0?"":u;if(!d)return s;var c=(function(y,m){if(!m)return[];var b=t0e.languages[m];return b?t0e.tokenize(y.text,b):[]})(i,d),f=0;try{for(var p=(function(y){var m=typeof Symbol=="function"&&Symbol.iterator,b=m&&y[m],w=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")})(c),v=p.next();!v.done;v=p.next()){var h=v.value,g=f+rke(h);typeof h!="string"&&s.push(((r={})[h.type]=!0,r.anchor={path:a,offset:f},r.focus={path:a,offset:g},r)),f=g}}catch(y){t={error:y}}finally{try{v&&!v.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s},ua=function(){return ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ua.apply(this,arguments)},ls=(function(){function e(){throw new Error(`不能实例化
- Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=ua(ua({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=ua(ua({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=ua(ua({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=ua(ua({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var i=r.key,a=r.factory,s=r.config,l=Fu(Fu({},s),o||{});if(jA[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");jA[i]=a,(function(u,d){d!=null&&(PCe[u]=d)})(i,l)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;oxe[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){mz.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;NCe[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){dz.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){XCe.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;sT[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){VG.push(n)})(t)},e.registerModule=function(t){Tg(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e})();/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function Tg(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach((function(d){return ls.registerMenu(d)})),n&&n.forEach((function(d){return ls.registerRenderElem(d)})),r&&ls.registerRenderStyle(r),o&&o.forEach((function(d){return ls.registerElemToHtml(d)})),i&&ls.registerStyleToHtml(i),a&&a.forEach((function(d){return ls.registerPreParseHtml(d)})),s&&s.forEach((function(d){return ls.registerParseElemHtml(d)})),l&&ls.registerParseStyleHtml(l),u&&ls.registerPlugin(u)}a7t.forEach((function(e){return Tg(e)})),Tg(LIt),Tg(uPt),Tg(bBt),Tg(cUt),Tg(Xzt);var dke='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',fke={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},t$t={hoverbarKeys:ua(ua({},fke),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};ls.setEditorConfig(ua(ua({},t$t),{decorate:cke}));var n$t={hoverbarKeys:fke};ls.setSimpleEditorConfig(ua(ua({},n$t),{decorate:cke}));var r$t={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Jn("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Jn("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Jn("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Jn("editor.image"),iconSvg:dke,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Jn("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};ls.setToolbarConfig(r$t);var o$t={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Jn("editor.image"),iconSvg:dke,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function i$t(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,i=e.html,a=e.config,s=a===void 0?{}:a,l=e.mode,u=(l===void 0?"default":l)==="simple"?ls.simpleEditorConfig:ls.editorConfig,d=ua(ua({},u.hoverbarKeys||{}),s.hoverbarKeys||{});return uSt({selector:n,config:ua(ua(ua({},u),s),{hoverbarKeys:d}),content:o,html:i,plugins:ls.plugins})}function a$t(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s=a==="simple"?ls.simpleToolbarConfig:ls.toolbarConfig,l=(function(u,d){if(u==null)throw new Error("Cannot create toolbar, because editor is null");var c=d.selector,f=d.config,p=f===void 0?{}:f;if((function(g,y){return txe(g,"data-w-e-toolbar",y)})(u,c))throw new Error("Repeated create toolbar by selector '"+c+"'");var v=Fu({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),h=new hSt(c,v);return BG.set(h,u),D7.set(u,h),h})(n,{selector:t,config:ua(ua({},s),o)});return l}ls.setSimpleToolbarConfig(o$t);var s$t=Object.defineProperty,l$t=Object.defineProperties,u$t=Object.getOwnPropertyDescriptors,c0e=Object.getOwnPropertySymbols,c$t=Object.prototype.hasOwnProperty,d$t=Object.prototype.propertyIsEnumerable,d0e=(e,t,n)=>t in e?s$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f$t=(e,t)=>{for(var n in t||(t={}))c$t.call(t,n)&&d0e(e,n,t[n]);if(c0e)for(var n of c0e(t))d$t.call(t,n)&&d0e(e,n,t[n]);return e},p$t=(e,t)=>l$t(e,u$t(t));function rh(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
- Please use '@${e}' event instead of props`,t}var pke=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const h$t=nt({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=K(null),r=jo(null),o=K(""),i=()=>{if(!n.value)return;const s=No(e.defaultContent);i$t({selector:n.value,mode:e.mode,content:s||[],html:e.defaultHtml||e.modelValue||"",config:p$t(f$t({},e.defaultConfig),{onCreated(l){if(r.value=l,t.emit("onCreated",l),e.defaultConfig.onCreated){const u=rh("onCreated");throw new Error(u)}},onChange(l){const u=l.getHtml();if(o.value=u,t.emit("update:modelValue",u),t.emit("onChange",l),e.defaultConfig.onChange){const d=rh("onChange");throw new Error(d)}},onDestroyed(l){if(t.emit("onDestroyed",l),e.defaultConfig.onDestroyed){const u=rh("onDestroyed");throw new Error(u)}},onMaxLength(l){if(t.emit("onMaxLength",l),e.defaultConfig.onMaxLength){const u=rh("onMaxLength");throw new Error(u)}},onFocus(l){if(t.emit("onFocus",l),e.defaultConfig.onFocus){const u=rh("onFocus");throw new Error(u)}},onBlur(l){if(t.emit("onBlur",l),e.defaultConfig.onBlur){const u=rh("onBlur");throw new Error(u)}},customAlert(l,u){if(t.emit("customAlert",l,u),e.defaultConfig.customAlert){const d=rh("customAlert");throw new Error(d)}},customPaste:(l,u)=>{if(e.defaultConfig.customPaste){const c=rh("customPaste");throw new Error(c)}let d;return t.emit("customPaste",l,u,c=>{d=c}),d}})})};function a(s){const l=r.value;l?.setHtml(s)}return qn(()=>{i()}),St(()=>e.modelValue,s=>{s!==o.value&&a(s)}),{box:n}}}),g$t={ref:"box",style:{height:"100%"}};function v$t(e,t,n,r,o,i){return L(),G("div",g$t,null,512)}var m$t=pke(h$t,[["render",v$t]]);const y$t=nt({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=K(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");kt.getToolbar(r)||a$t({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return Es(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),b$t={ref:"selector"};function w$t(e,t,n,r,o,i){return L(),G("div",b$t,null,512)}var A$t=pke(y$t,[["render",w$t]]);const C$t="/assets/3-DQsDb2Wr.png",x$t="/assets/2-dXZ0SRRr.png",S$t="/assets/1-Bqw91QeI.png",E$t="/assets/18-CEUBeFPE.png",k$t="/assets/19-DzDaxNt7.png",T$t={class:"chat-container"},_$t={class:"history-sidebar"},D$t={class:"history-header"},I$t={class:"history-list"},O$t={key:0,class:"history-loading"},M$t=["onClick"],P$t={class:"history-content"},N$t={class:"history-title"},R$t={class:"history-time"},B$t=["onClick"],L$t={key:2,class:"empty-history"},F$t={class:"main-work"},U$t={class:"work-content"},z$t={key:0,class:"ai-writing-card"},$$t={class:"document-generation"},j$t={class:"input-area"},H$t={class:"input-actions"},W$t={class:"left-actions"},V$t=["disabled"],q$t={key:0,class:"file-preview-inline"},G$t={class:"file-info-inline"},K$t=["src"],Y$t={key:1,class:"file-icon-inline"},Q$t={class:"file-name-inline"},Z$t={class:"right-actions"},X$t=["disabled"],J$t={class:"icon-container"},ejt={key:0,class:"recording-indicator"},tjt=["disabled"],njt=["src"],rjt={key:0,class:"generating-text"},ojt={class:"document-templates"},ijt={class:"template-tabs"},ajt=["onClick"],sjt={class:"template-cards"},ljt=["src","alt"],ujt=["onClick"],cjt={key:1,class:"editor-view"},djt={key:0,class:"editor-full-loading"},fjt={key:1,class:"editor-full-loading"},pjt={class:"editor-header"},hjt={class:"editor-title"},gjt={key:0,class:"editor-subtitle"},vjt={key:1,class:"editor-subtitle"},mjt={class:"editor-actions"},yjt=["disabled"],bjt=["disabled"],wjt={class:"editor-content"},Ajt={class:"polish-input-container"},Cjt={class:"input-wrapper"},xjt=["disabled"],Sjt={class:"char-counter"},Ejt={class:"button-group"},kjt=["disabled"],Tjt=["disabled"],_jt={key:2,class:"detail-view"},Djt={key:0,class:"detail-loading"},Ijt={class:"left-column"},Ojt={class:"chat-area"},Mjt={key:0,class:"user-message"},Pjt={class:"message-content"},Njt={key:0,class:"message-file"},Rjt={class:"file-display"},Bjt={class:"file-icon"},Ljt={class:"file-details"},Fjt={class:"file-name"},Ujt={class:"file-size"},zjt={key:1,class:"message-text"},$jt={class:"action-buttons"},jjt=["onClick"],Hjt=["onClick"],Wjt={key:1,class:"ai-message"},Vjt={class:"message-content"},qjt=["innerHTML"],Gjt=["onClick"],Kjt={class:"doc-details"},Yjt={class:"doc-title"},Qjt={class:"doc-time"},Zjt=["innerHTML"],Xjt={class:"action-buttons"},Jjt={class:"left-actions"},eHt=["onClick"],tHt=["onClick","disabled"],nHt=["onClick"],rHt=["onClick"],oHt={class:"right-actions"},iHt=["onClick"],aHt=["onClick"],sHt={key:0,class:"message-item generating"},lHt={class:"input-section"},uHt={key:0,class:"file-preview-section"},cHt={class:"file-preview"},dHt={class:"file-icon"},fHt=["src"],pHt={key:1},hHt={class:"file-info"},gHt={class:"file-name"},vHt={class:"file-size"},mHt={class:"input-container"},yHt=["disabled"],bHt=["disabled"],wHt=["disabled"],AHt={class:"icon-container"},CHt={key:0,class:"recording-indicator"},xHt=["disabled"],SHt=["src"],EHt={key:0,class:"right-column"},kHt={class:"document-body"},THt=["innerHTML"],_Ht=["innerHTML"],DHt=["innerHTML"],f0e="default",IHt={__name:"AIWriting",setup(e){K(""),K("");const t=K("项目进展总结"),n=K("工作内容、成果、风险卡点及解决方案"),r=K(""),o=K("all"),i=K("main"),a=K(null),s=K(""),l=K(!1),u=K(""),d=K(!1);K(null);const c=K(null);qn(()=>{document.addEventListener("selectionchange",Le),document.addEventListener("mousemove",Tn),document.addEventListener("mousedown",Nn),document.addEventListener("mouseup",We),document.addEventListener("scroll",be,!0),document.addEventListener("keydown",fe),document.addEventListener("compositionstart",Se),document.addEventListener("compositionupdate",qe),document.addEventListener("compositionend",$e)}),Jr(()=>{document.removeEventListener("selectionchange",Le),document.removeEventListener("mousemove",Tn),document.removeEventListener("mousedown",Nn),document.removeEventListener("mouseup",We),document.removeEventListener("scroll",be,!0),document.removeEventListener("keydown",fe),document.removeEventListener("compositionstart",Se),document.removeEventListener("compositionupdate",qe),document.removeEventListener("compositionend",$e)});const f={excludeKeys:["group-video","group-more-style","fullScreen","emotion","insertLink","insertImage","uploadImage","insertTable","codeBlock","divider","undo","redo"]},p={placeholder:"请输入内容...",readOnly:!1,autoFocus:!1,scroll:!0,hoverbarKeys:{text:{menuKeys:[]},link:{menuKeys:[]},image:{menuKeys:[]},table:{menuKeys:[]},video:{menuKeys:[]}},MENU_CONF:{color:{colors:["#000000","#333333","#666666","#999999","#cccccc","#ffffff","#ff0000","#00ff00","#0000ff"]},fontFamily:{fontFamilyList:["黑体","楷体","仿宋","微软雅黑","Arial","Tahoma","Verdana"]},fontSize:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","32px","48px"]},uploadImage:{server:"",allowedFileTypes:[],maxFileSize:0,maxNumberOfFiles:0,fieldName:"",meta:{},metaWithUrl:!1,withCredentials:!1,timeout:0,headers:{},customInsert:()=>{},customBrowseAndUpload:()=>{},customUpload:()=>{}}}},v=K(!1),h=K(null),g=K(""),y=K(!1);K(""),K(!1);const m=K(!1),b=K(!1),w=K(!1),A=K(""),S=K({x:0,y:0}),E=K(!1),D=K(""),_=K({x:0,y:0}),M=K(!1),O=K(null),k=K(""),R=K(!1),N=K(null),W=K(!1),B=K(null),z=K(null),j=K(!1),q=K(!1);K("");const Y=Wr({maxSize:20*1024*1024,allowedTypes:[".docx"]}),U=K(null),{isListening:F,transcript:H,error:re,startListening:X,stopListening:te}=O0();let Z=null,le=null;const ve=K(0);K(2);const Pe=ee(()=>r.value||""),Ae=ee(()=>r.value.trim().length>0),he=K([]),Ee=K(0),Q=async()=>{try{console.log("📋 开始获取AI写作历史记录列表..."),m.value=!0;const ne=performance.now(),Oe=await zn.getHistoryRecord({ai_conversation_id:0,business_type:2}),Ge=performance.now();console.log(`📋 AI写作历史记录API调用耗时: ${(Ge-ne).toFixed(2)}ms`),console.log("📋 AI写作历史记录列表响应:",Oe),Oe.statusCode===200?(Ee.value=Oe.total||0,he.value=Oe.data.map($t=>({id:$t.id,title:De($t.content),time:pe($t.updated_at),businessType:$t.business_type,isActive:!1,rawData:$t})),console.log(`✅ AI写作历史记录列表已设置: ${he.value.length}条记录,总数: ${Ee.value}`)):console.error("❌ 获取AI写作历史记录列表失败:",Oe.statusCode)}catch(ne){console.error("❌ 获取AI写作历史记录列表失败:",ne)}finally{m.value=!1}},me=async ne=>{try{console.log("开始获取AI写作对话消息,conversationId:",ne);const Oe=await zn.getHistoryRecord({ai_conversation_id:ne,business_type:2});if(console.log("AI写作对话消息响应:",Oe),console.log("响应数据结构:",{statusCode:Oe.statusCode,data:Oe.data,dataType:Array.isArray(Oe.data)?"array":typeof Oe.data,dataLength:Array.isArray(Oe.data)?Oe.data.length:"N/A"}),Oe.statusCode===200){if(!Oe.data||!Array.isArray(Oe.data))return console.error("响应数据格式错误:",Oe.data),!1;const Ge=Oe.data.map(Ot=>{const ln=ue(Ot.user_feedback);console.log(`消息 ${Ot.id} 的反馈状态:`,{raw:Ot.user_feedback,converted:ln});let fn=null;if(Ot.type==="ai")try{fn=is(Ot.content),!fn.hasDocument&&!fn.openingText&&!fn.closingText&&(fn={hasDocument:!1,documentContent:null,openingText:Ot.content,documentText:"",closingText:""})}catch(Tr){console.error("解析AI回复失败:",Tr),fn={hasDocument:!1,documentContent:null,openingText:Ot.content,documentText:"",closingText:""}}let Cn=null,sr=Ot.content;if(Ot.type==="user"&&Ot.content.includes("</filesize>")){const Tr=Ot.content.match(/<filename>(.*?)<\/filename>/),ar=Ot.content.match(/<filesize>(.*?)<\/filesize>/),ur=Ot.content.match(/<word>(.*?)<\/word>/s);if(Tr&&ar){const Lr=Tr[1],yr=parseInt(ar[1]),Ar=ur?ur[1].trim():"";Cn={name:Lr,size:yr,type:Lr.endsWith(".docx")?".docx":Lr.endsWith(".doc")?".doc":".docx",icon:Ln(Lr.endsWith(".docx")?".docx":Lr.endsWith(".doc")?".doc":".docx"),content:Ar};const we=Ot.content.split("</filesize>")[1];sr=we?we.trim():""}}return{type:Ot.type,content:sr,displayContent:Ot.type==="ai"?Ot.content:sr,file:Cn,isTyping:!1,id:Ot.id,userFeedback:ln,parsedContent:fn,created_at:Ot.created_at,isFromBackend:!0,rawData:Ot}});a.value.messages=Ge,console.log("AI写作对话消息已设置:",a.value.messages),console.log("消息数量:",Ge.length),console.log("currentView状态:",i.value),ve.value=ne;const $t=Ge.find(Ot=>Ot.type==="ai"&&Ot.parsedContent?.hasDocument);return $t&&$t.parsedContent&&(a.value.documentContent=$t.parsedContent.documentContent,a.value.hasDocument=$t.parsedContent.hasDocument),!0}else return console.error("获取AI写作对话消息失败:",Oe.statusCode),!1}catch(Oe){return console.error("获取AI写作对话消息失败:",Oe),!1}},De=ne=>{if(!ne)return"未知对话";if(ne.includes("</filesize>")){const $t=ne.split("</filesize>")[1];if($t&&$t.trim()){const ln=$t.replace(/\s+/g," ").trim().split(/[。!?\n]/)[0];return ln.length>30?ln.substring(0,30)+"...":ln||"新对话"}}let Oe=ne.replace(/<[^>]*>/g,"");Oe=Oe.replace(/\s+/g," ").trim();const Ge=Oe.split(/[。!?\n]/)[0];return Ge.length>30?Ge.substring(0,30)+"...":Ge||"新对话"},pe=ne=>{if(!ne)return"未知时间";let Oe;if(typeof ne=="string")Oe=new Date(ne);else{let sr=ne;ne.toString().length===10||ne.toString().length===11?sr=ne*1e3:ne.toString().length===13||(sr=ne*1e3),Oe=new Date(sr)}const Ge=new Date,$t=new Date(Ge.getFullYear(),Ge.getMonth(),Ge.getDate()),Ot=new Date($t.getTime()-1440*60*1e3);if(Oe>=$t)return Oe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Oe>=Ot&&Oe<$t)return"昨天 "+Oe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const ln=Oe.getMonth()+1,fn=Oe.getDate(),Cn=Oe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${ln}月${fn}日 ${Cn}`},ie=ne=>ne.isFromBackend&&ne.created_at?pe(ne.created_at):ne.time||"未知时间",ue=ne=>{switch(console.log("转换用户反馈状态:",ne,"类型:",typeof ne),parseInt(ne)){case 2:return"like";case 3:return"dislike";case 0:default:return null}},Be=ne=>{switch(ne){case"like":return 2;case"dislike":return 3;default:return 0}},Me=ee(()=>g.value==="history"?`确定要删除历史记录"${h.value?.item?.title||""}"吗?删除后将无法恢复。`:g.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),Fe=ee(()=>g.value==="history"?"删除历史记录":g.value==="message"?"删除消息":"删除确认"),ze=(ne,Oe)=>{console.log("准备删除历史记录:",ne),h.value={item:ne,index:Oe},g.value="history",v.value=!0},Ne=ne=>{if(console.log("点击删除按钮,消息索引:",ne),a.value?.messages?.length===2){Et.warning("第一句话无法删除");return}g.value="message",h.value={messageIndex:ne},v.value=!0},Re=async()=>{h.value&&(g.value==="history"?await gt():g.value==="message"&&await Bt())},gt=async()=>{const{item:ne,index:Oe}=h.value;try{const Ge=await zn.deleteHistoryRecord({ai_conversation_id:ne.id});Ge.statusCode===200?(he.value.splice(Oe,1),ne.isActive&&await Dt(),console.log("历史记录删除成功"),Et.success("删除成功")):(console.error("删除历史记录失败:",Ge.msg),Et.error(Ge.msg||"删除失败"))}catch(Ge){console.error("删除历史记录失败:",Ge),Et.error("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},Bt=async()=>{const{messageIndex:ne}=h.value;try{const Oe=a.value?.messages?.[ne];if(console.log("aiMessage:",Oe),Oe&&Oe.id){console.log("准备调用后端删除接口,id:",Oe.id);try{const Ge=await zn.deleteConversation({ai_message_id:Oe.id});console.log("后端删除接口响应:",Ge),Ge.statusCode===200?(a.value.messages.splice(ne,1),ne>0&&a.value.messages.splice(ne-1,1),l.value&&(l.value=!1,Ft.value=null,console.log("删除对话时关闭文档预览")),console.log("删除成功"),Et.success("删除成功")):(console.error("删除失败:",Ge.msg),Et.error("删除失败,请稍后重试"))}catch(Ge){console.error("删除接口调用失败:",Ge),Et.error("删除失败,请稍后重试")}}else console.log("没有id,仅从前端删除"),a.value.messages.splice(ne,1),l.value&&(l.value=!1,Ft.value=null,console.log("删除对话时关闭文档预览")),Et.success("删除成功")}catch(Oe){console.error("删除消息失败:",Oe),Et.error("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},Lt=()=>{v.value=!1,h.value=null,g.value=""},an=ne=>{if(!ne||!ne.trim())return"AI写作任务";const Ge=ne.replace(/<[^>]*>/g,"").split(/[。!?\n]/)[0];return Ge.length>30?Ge.substring(0,30)+"...":Ge||"AI写作任务"},Kt=[{key:"all",name:"全部"},{key:"announcement",name:"公告"},{key:"notification",name:"通知"},{key:"summary",name:"总结报告"},{key:"meeting",name:"会议纪要"},{key:"speech",name:"决定"}],Ht=[{id:1,name:"公告模板",image:C$t,category:"announcement",buttonClass:"announcement-btn"},{id:2,name:"通知模板",image:x$t,category:"notification",buttonClass:"notification-btn"},{id:3,name:"工作汇报模板",image:S$t,category:"summary",buttonClass:"report-btn"},{id:4,name:"会议纪要模版",image:E$t,category:"meeting",buttonClass:"announcement-btn"},{id:5,name:"决定模版",image:k$t,category:"speech",buttonClass:"notification-btn"}],pt=ee(()=>o.value==="all"?Ht:Ht.filter(ne=>ne.category===o.value)),Dt=async()=>{if(console.log("创建新AI写作任务"),!(y.value||E.value)){if(vn(),U.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}U.value=null}ve.value=0,a.value=null,i.value="main",l.value=!1,Ft.value=null,s.value="",r.value='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括总结主题:、总结时间:、主要业绩和成果:、存在的问题和不足:、下一阶段工作计划:的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。',he.value.forEach(ne=>{ne.isActive=!1}),await Q()}},dt=async ne=>{if(console.log("点击历史记录:",ne),!y.value){vn(),W.value=!0,b.value=!0;try{if(U.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}U.value=null}if(a.value=ne,l.value=!1,Ft.value=null,he.value.forEach(Ge=>{Ge.isActive=Ge.id===ne.id}),await me(ne.id)){console.log("AI写作历史对话加载成功,直接进入富文本编辑器");const Ge=a.value.messages.find($t=>$t.type==="ai");if(Ge){console.log("AI消息内容长度:",Ge.content.length),console.log("AI消息内容预览:",Ge.content.substring(0,200)+"...");const $t=fr(Ge.content);Mt($t)}else{const $t=a.value.messages.find(Ot=>Ot.type==="user");if($t){const Ot=fr($t.content);Mt(Ot)}else Mt("<p>暂无内容</p>")}}else console.error("加载历史对话失败"),Et.error("加载历史对话失败,请稍后重试")}catch(Oe){console.error("加载AI写作历史对话失败:",Oe),Et.error("加载历史对话时发生错误,请稍后重试")}finally{b.value=!1,setTimeout(()=>{W.value=!1,console.log("历史记录内容加载完成,允许显示扩写弹窗")},500)}}},it=ne=>{c.value=ne,console.log("wangeditor 编辑器创建完成")},de=ne=>{const Oe=ne.getHtml();console.log("wangeditor内容变化 - 新内容长度:",Oe.length),console.log("wangeditor内容变化 - 新内容预览:",Oe.substring(0,200)+"..."),d.value&&(u.value=Oe)},tt=async(ne={})=>{const{silent:Oe=!1}=ne;if(!E.value)try{let Ge="";if(c.value)try{Ge=c.value.getHtml(),console.log("保存文档 - 从wangeditor获取内容,长度:",Ge.length),console.log("保存文档 - 内容预览:",Ge.substring(0,200)+"...")}catch(ln){console.log("从wangeditor获取内容失败,使用editorContent:",ln),Ge=u.value||""}else Ge=u.value||"",console.log("保存文档 - 从editorContent获取内容,长度:",Ge.length);if(!Ge||Ge.trim()===""){Et.warning("没有内容可保存");return}console.log("保存文档内容长度:",Ge.length);const $t=a.value?.id;if(!$t){Et.error("无法获取对话ID,请重新选择历史记录");return}const Ot=await zn.saveEditDocument({ai_conversation_id:$t,content:Ge});Ot&&Ot.data&&Ot.statusCode===200?(Oe||Et.success("文档保存成功"),console.log("文档保存成功,返回内容:",Ot.data.data)):(Et.error("文档保存失败,请重试"),console.error("保存失败:",Ot))}catch(Ge){console.error("保存文档失败:",Ge),Et.error("保存文档失败,请检查网络连接")}},ft=async()=>{if(!E.value)try{console.log("开始下载文档..."),await tt({silent:!0});let ne="";const Oe=document.querySelector(".w-e-text");if(Oe&&(ne=Oe.innerHTML,console.log("从DOM获取内容长度:",ne.length)),!ne&&u.value&&(ne=u.value,console.log("从editorContent获取内容长度:",ne.length)),!ne&&c.value)try{ne=c.value.getHtml(),console.log("从wangeditor实例获取内容长度:",ne.length)}catch(Ot){console.log("从wangeditor实例获取失败:",Ot)}if(console.log("最终下载内容长度:",ne.length),console.log("最终下载内容预览:",ne.substring(0,200)),!ne||ne.trim()===""){Et.warning("没有可下载的内容");return}const Ge=mi();let $t;Ge&&Ge!=="AI生成文档"?$t=`${Ge.replace(/[<>:"/\\|?*]/g,"").trim()}.docx`:$t=`AI生成文档_${new Date().toISOString().slice(0,19).replace(/[-:]/g,"").replace("T","_")}.docx`,await Si(ne,Ge,$t)}catch(ne){console.error("下载Word文档失败:",ne),Et.error("下载Word文档失败,请重试")}},Mt=ne=>{i.value="editor",console.log("进入富文本编辑器,内容长度:",ne.length),console.log("进入富文本编辑器,内容预览:",ne.substring(0,200)+"..."),Yt(()=>{u.value=ne,setTimeout(()=>{if(c.value)try{c.value.setHtml(ne),console.log("wangeditor 内容设置完成"),d.value=!0,y.value=!1}catch(Oe){console.error("设置 wangeditor 内容失败:",Oe);try{console.log("尝试重新初始化编辑器..."),c.value.clear(),c.value.setHtml(ne),console.log("重新初始化编辑器成功"),d.value=!0,y.value=!1}catch(Ge){console.error("重新初始化编辑器也失败:",Ge),u.value=ne,d.value=!0,y.value=!1}}else console.log("editorRef.value 不存在,等待编辑器初始化"),setTimeout(()=>{if(c.value)try{c.value.setHtml(ne),console.log("延迟设置 wangeditor 内容完成"),d.value=!0,y.value=!1}catch(Oe){console.error("延迟设置 wangeditor 内容失败:",Oe);try{console.log("延迟设置失败,尝试重新初始化编辑器..."),c.value.clear(),c.value.setHtml(ne),console.log("延迟重新初始化编辑器成功"),d.value=!0,y.value=!1}catch(Ge){console.error("延迟重新初始化编辑器也失败:",Ge),u.value=ne,d.value=!0,y.value=!1}}},500)},100)})},Tn=ne=>{ne.target.closest(".ai-polish-input")||M.value&&(_.value={x:ne.clientX,y:ne.clientY})},Nn=ne=>{if(E.value){ne.preventDefault();return}if(!ne.target.closest(".ai-polish-input")){if(ne.target.closest(".w-e-toolbar")||ne.target.closest(".w-e-bar")){vn();return}M.value=!0,_.value={x:ne.clientX,y:ne.clientY},(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container"))&&!ne.target.closest(".ai-polish-input")&&vn()}},We=()=>{E.value||(M.value=!1,setTimeout(()=>{ke()},50))},ke=()=>{if(console.log("=== checkSelectionAndShowButton 被调用 ==="),W.value){console.log("正在加载历史记录内容,跳过选择处理");return}if(E.value){console.log("正在扩写/续写中,跳过选择处理");return}if(w.value){console.log("扩写输入框正在显示,跳过选择处理");return}try{const ne=window.getSelection();if(console.log("当前选择:",ne?ne.toString():"无选择"),ne&&ne.toString().trim().length>0){console.log("检测到选中文本");const Oe=ne.toString().trim();A.value=Oe;const Ge=400,$t=60,Ot=10,ln=window.innerWidth,fn=window.innerHeight;let Cn=_.value.x+Ot,sr=_.value.y-80;if(Cn+Ge>ln&&(Cn=_.value.x-Ge-Ot),Cn<Ot&&(Cn=Ot),sr<Ot&&(sr=_.value.y+Ot),sr+$t>fn-Ot&&(sr=fn-$t-Ot),Cn=Math.max(Ot,Math.min(Cn,ln-Ge-Ot)),sr=Math.max(Ot,Math.min(sr,fn-$t-Ot)),S.value={x:Cn,y:sr},w.value=!0,console.log("选中文本:",Oe),console.log("鼠标位置:",_.value),console.log("视口尺寸:",{width:ln,height:fn}),console.log("扩写框位置:",S.value),ne&&ne.rangeCount>0)try{const Kn=ne.getRangeAt(0),Tr=c.value?.getEditableContainer?.();if(Tr&&Tr.contains(Kn.commonAncestorContainer)){const ar=document.createElement("div");ar.appendChild(Kn.cloneContents());const ur=ar.innerHTML,Lr=ar.textContent||ar.innerText||"",yr=ur.includes("<strong>")||ur.includes("<em>")||ur.includes("<b>")||ur.includes("<i>")||ur.includes("<span")||ur.includes("<h1>")||ur.includes("<h2>")||ur.includes("<h3>")||ur.includes("<h4>")||ur.includes("<h5>")||ur.includes("<h6>")||ur.includes("<u>")||ur.includes("<s>");O.value={text:Oe,html:ur,plainText:Lr,isMultiFormat:yr,range:Kn.cloneRange(),startContainer:Kn.startContainer,endContainer:Kn.endContainer,startOffset:Kn.startOffset,endOffset:Kn.endOffset,fullHtml:c.value.getHtml()},console.log("已保存选区信息:",{text:Oe,html:ur,plainText:Lr,isMultiFormat:yr,startContainer:Kn.startContainer,endContainer:Kn.endContainer,startOffset:Kn.startOffset,endOffset:Kn.endOffset})}else console.log("选区不在编辑器内,清除保存的选区"),O.value=null}catch(Kn){console.error("保存选区失败:",Kn),O.value=null}}else console.log("没有选中文本,隐藏输入框"),vn()}catch(ne){console.error("处理文本选择失败:",ne),vn()}},be=ne=>{if(w.value)if(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder")||ne.target.closest(".w-e-content")){if(E.value){console.log("扩写/续写过程中,禁用编辑器滚动"),ne.preventDefault(),ne.stopPropagation();return}console.log("检测到编辑器内滚动,隐藏扩写输入框"),vn()}else console.log("检测到页面滚动,但不隐藏扩写输入框")},fe=ne=>{if(w.value){if(ne.target.closest(".ai-polish-input")||ne.target.classList.contains("polish-input-field")||ne.target.classList.contains("polish-input-container")||ne.target.classList.contains("input-wrapper")){console.log("在扩写输入框内,不处理键盘事件");return}(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder"))&&(ne.key==="Backspace"||ne.key==="Delete"?(console.log("检测到退格/删除键,隐藏扩写输入框"),vn()):ne.key.length===1&&!ne.ctrlKey&&!ne.metaKey&&!ne.altKey?(console.log("检测到文字输入,隐藏扩写输入框"),vn()):ne.key===" "?(console.log("检测到空格键,隐藏扩写输入框"),vn()):ne.key==="Enter"&&(console.log("检测到Enter键,隐藏扩写输入框"),vn()))}},Se=ne=>{if(w.value){if(ne.target.closest(".ai-polish-input")||ne.target.classList.contains("polish-input-field")||ne.target.classList.contains("polish-input-container")||ne.target.classList.contains("input-wrapper")){console.log("在扩写输入框内,不处理输入法事件");return}(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder"))&&(console.log("检测到输入法开始,隐藏扩写输入框"),vn())}},qe=ne=>{if(w.value){if(ne.target.closest(".ai-polish-input")||ne.target.classList.contains("polish-input-field")||ne.target.classList.contains("polish-input-container")||ne.target.classList.contains("input-wrapper")){console.log("在扩写输入框内,不处理输入法事件");return}(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder"))&&(console.log("检测到输入法更新,隐藏扩写输入框"),vn())}},$e=ne=>{if(w.value){if(ne.target.closest(".ai-polish-input")||ne.target.classList.contains("polish-input-field")||ne.target.classList.contains("polish-input-container")||ne.target.classList.contains("input-wrapper")){console.log("在扩写输入框内,不处理输入法事件");return}(ne.target.closest(".w-e-text-container")||ne.target.closest(".rich-editor-container")||ne.target.closest(".w-e-text-placeholder"))&&(console.log("检测到输入法结束,隐藏扩写输入框"),vn())}},Le=()=>{if(console.log("=== handleSelectionChange 被调用 ==="),E.value){console.log("正在润色中,跳过选择变化处理");return}if(w.value){console.log("润色输入框正在显示,跳过选择变化处理");return}M.value?console.log("鼠标仍按下,等待松开"):(console.log("鼠标已松开,调用 checkSelectionAndShowButton"),ke())},ot=ne=>{ne.stopPropagation(),R.value=!0,Qt()},vt=ne=>{R.value=!0,Qt()},Ut=ne=>{R.value=!1,Gt(),setTimeout(()=>{if(O.value&&O.value.range)try{const Oe=window.getSelection();Oe&&(Oe.removeAllRanges(),Oe.addRange(O.value.range),console.log("输入框失焦时恢复选区成功"))}catch(Oe){console.error("恢复选区失败:",Oe)}},10)},Qt=()=>{if(!(!O.value||!O.value.range))try{const ne=O.value.range,Oe=ne.getClientRects();if(Gt(),!Oe||Oe.length===0){const $t=ne.getBoundingClientRect();if($t.width===0||$t.height===0){console.log("选区矩形为空,跳过高亮创建");return}const Ot=document.createElement("div");Ot.className="custom-selection-highlight",Ot.style.cssText=`
- position: fixed;
- left: ${$t.left}px;
- top: ${$t.top}px;
- width: ${$t.width}px;
- height: ${$t.height}px;
- background-color: rgba(59, 130, 246, 0.2);
- border: 1px solid rgba(59, 130, 246, 0.5);
- border-radius: 2px;
- pointer-events: none;
- z-index: 998;
- transition: all 0.2s ease;
- `,document.body.appendChild(Ot),N.value=[Ot],console.log("自定义高亮创建成功(单个矩形)");return}const Ge=[];for(let $t=0;$t<Oe.length;$t++){const Ot=Oe[$t];if(Ot.width===0||Ot.height===0)continue;const ln=document.createElement("div");ln.className="custom-selection-highlight",ln.style.cssText=`
- position: fixed;
- left: ${Ot.left}px;
- top: ${Ot.top}px;
- width: ${Ot.width}px;
- height: ${Ot.height}px;
- background-color: rgba(59, 130, 246, 0.2);
- border: 1px solid rgba(59, 130, 246, 0.5);
- border-radius: 2px;
- pointer-events: none;
- z-index: 998;
- transition: all 0.2s ease;
- `,document.body.appendChild(ln),Ge.push(ln)}N.value=Ge,console.log(`自定义高亮创建成功(${Ge.length}个矩形)`)}catch(ne){console.error("创建自定义高亮失败:",ne)}},Gt=()=>{if(N.value)try{Array.isArray(N.value)?(N.value.forEach(ne=>{try{ne&&ne.parentNode&&document.body.removeChild(ne)}catch(Oe){console.error("移除单个高亮元素失败:",Oe)}}),console.log(`自定义高亮移除成功(${N.value.length}个矩形)`)):(N.value.parentNode&&document.body.removeChild(N.value),console.log("自定义高亮移除成功")),N.value=null}catch(ne){console.error("移除自定义高亮失败:",ne)}},vn=()=>{w.value=!1,A.value="",k.value="",D.value="",R.value=!1,Gt(),O.value=null},Un=async()=>{if(!(!A.value.trim()||E.value))try{E.value=!0,D.value="polish";let ne=`请对以下文本进行扩写,要求:
- 1. 保持原文的核心意思和逻辑结构
- 2. 提升语言的流畅性和专业性
- 3. 优化表达方式,使其更加准确和生动
- 4. 保持原文的语调和风格
- 5. 只返回扩写后的文本,不要添加任何解释或说明`;k.value.trim()&&(ne=`请根据以下要求对文本进行处理:${k.value.trim()}
- 要求:
- 1. 保持原文的核心意思和逻辑结构
- 2. 只返回处理后的文本,不要添加任何解释或说明`),ne+=`
- 原文:
- ${A.value}`;const Oe=await zn.reProduceSingleQuestion({message:ne});if(Oe&&Oe.data&&Oe.data.reply){const Ge=Oe.data.reply.trim();if(c.value)try{let $t=null,Ot="";const ln=window.getSelection();if(ln&&ln.toString().trim()?($t=ln,Ot=ln.toString(),console.log("使用当前选区:",Ot)):O.value&&O.value.text&&(Ot=O.value.text,console.log("使用保存的选区:",Ot)),Ot){if(O.value&&O.value.range)try{const Tr=c.value;if(Tr.restoreSelection&&typeof Tr.restoreSelection=="function"){Tr.restoreSelection(O.value.range),Tr.insertText(Ge),console.log("扩写完成,通过wangeditor restoreSelection + insertText API"),Et.success("文本扩写完成");return}else throw new Error("wangeditor restoreSelection API不可用")}catch(Tr){console.error("使用wangeditor API替换失败,尝试字符串替换:",Tr)}if($t)try{const Tr=$t.getRangeAt(0),ar=c.value.getEditableContainer();if(ar&&ar.contains(Tr.commonAncestorContainer)){c.value.insertText(Ge),console.log("扩写完成,通过wangeditor insertText API"),$t.removeAllRanges();return}else throw new Error("选区不在编辑器内")}catch(Tr){console.log("insertText失败,尝试字符串替换:",Tr)}const fn=c.value.getHtml();console.log("扩写前内容长度:",fn.length);let Cn=fn,sr=!1;console.log("扩写调试信息:",{selectedText:Ot,currentHtmlLength:fn.length,savedSelection:O.value,hasCurrentSelection:!!$t});const Kn=O.value?.html?new DOMParser().parseFromString(O.value.html,"text/html").documentElement.textContent:"";if(O.value&&O.value.html&&(fn.includes(O.value.html)||fn.includes(Kn)))fn.includes(O.value.html)?(Cn=fn.replace(O.value.html,Ge),sr=!0,console.log("策略1成功:通过保存的HTML结构替换")):fn.includes(Kn)&&(Cn=fn.replace(Kn,Ge),sr=!0,console.log("策略1成功:通过解码后的HTML结构替换"));else if(O.value&&O.value.plainText&&fn.includes(O.value.plainText))Cn=fn.replace(O.value.plainText,Ge),sr=!0,console.log("策略1.5成功:通过保存的纯文本替换");else if(fn.includes(Ot))Cn=fn.replace(Ot,Ge),sr=!0,console.log("策略2成功:直接字符串替换");else{const Tr=Ot.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");if(console.log("策略3尝试:HTML实体替换",{htmlEntities:Tr,includes:fn.includes(Tr)}),fn.includes(Tr))Cn=fn.replace(Tr,Ge),sr=!0,console.log("策略3成功:HTML实体替换");else{const ar=new RegExp(`>[^<]*${Ot.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[^<]*<`,"g"),ur=fn.match(ar);if(console.log("策略4尝试:正则表达式匹配",{regex:ar,match:ur}),ur)Cn=fn.replace(ur[0],ur[0].replace(Ot,Ge)),sr=!0,console.log("策略4成功:正则表达式替换");else{const Lr=Ot.replace(/<[^>]*>/g,"").trim(),yr=fn.replace(/<[^>]*>/g,"");if(console.log("策略5尝试:模糊匹配",{cleanText:Lr,cleanCurrentHtml:yr.substring(0,200)+"...",includes:yr.includes(Lr)}),yr.includes(Lr)){const Ar=new RegExp(`[^>]*${Lr.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}[^<]*`,"g"),we=fn.match(Ar);we&&(Cn=fn.replace(we[0],we[0].replace(Lr,Ge)),sr=!0,console.log("策略5成功:通过模糊匹配替换"))}}}}if(sr)try{c.value.setHtml(Cn),setTimeout(()=>{try{const Tr=c.value.getEditableContainer();if(Tr){const ar=new Event("input",{bubbles:!0});Tr.dispatchEvent(ar)}}catch(Tr){console.log("编辑器状态同步失败:",Tr)}},10),console.log("润色后内容长度:",Cn.length),console.log("润色完成,通过字符串替换"),console.log("润色后内容预览:",Cn.substring(0,200)+"...")}catch(Tr){console.error("设置编辑器内容失败:",Tr),Et.error("润色失败,请重试");return}else{console.log("所有替换策略都失败,未找到匹配的文本"),Et.warning("未找到选中的文本,请重新选择");return}}else{console.log("没有找到选中的文本"),Et.warning("请先选择要润色的文本");return}}catch($t){console.error("润色失败:",$t),Et.error("润色失败,请重试");return}Et.success("文本润色完成"),console.log("文本润色完成")}else Et.error("润色失败,请重试")}catch(ne){console.error("AI润色失败:",ne),Et.error("润色失败,请检查网络连接")}finally{E.value=!1,D.value="",vn()}},wr=async()=>{if(!(!A.value.trim()||E.value))try{E.value=!0,D.value="continue";let ne=`请对以下文本进行续写,要求:
- 1. 保持原文的语调和风格
- 2. 在原文基础上自然延续,【重要】绝对不要重复原文内容
- 3. 续写的内容应该与原文逻辑连贯
- 4. 增加新的内容,使文章更加完整
- 5. 【重要】只返回续写的内容,不要包含原文,不要添加任何解释或说明
- 6. 【重要】直接开始续写新内容,不要重复原文的最后几个字
- 7. 如果AI无法理解或续写,请返回"无法续写"`;k.value.trim()&&(ne=`请根据以下要求对文本进行续写:${k.value.trim()}
- 要求:
- 1. 保持原文的语调和风格
- 2. 【重要】只返回续写的内容,不要包含原文,不要添加任何解释或说明
- 3. 【重要】直接开始续写新内容,不要重复原文
- 4. 如果AI无法理解或续写,请返回"无法续写"`),ne+=`
- 原文:
- ${A.value}
- 请直接开始续写,不要重复原文:`;const Oe=await zn.reProduceSingleQuestion({message:ne});if(Oe&&Oe.data&&Oe.data.reply){let Ge=Oe.data.reply.trim();if(console.log("AI返回的原始续写内容:",Ge),console.log("原文:",A.value),Ge.includes(A.value)){console.log("AI返回内容包含原文,开始提取纯续写部分");const Ot=Ge.indexOf(A.value);Ot!==-1&&(Ge=Ge.substring(Ot+A.value.length).trim(),console.log("提取后的纯续写内容:",Ge))}else console.log("AI返回内容不包含原文,直接使用");const $t=[/^续写[::]/,/^续写内容[::]/,/^续写部分[::]/,/^以下是续写[::]/,/^以下是续写内容[::]/];for(const Ot of $t)if(Ot.test(Ge)){Ge=Ge.replace(Ot,"").trim(),console.log("移除前缀后的续写内容:",Ge);break}if(!Ge||Ge==="无法续写"||Ge.length<2){Et.warning("AI无法续写此内容,请尝试其他文本或调整要求");return}if(console.log("最终使用的续写内容:",Ge),c.value)try{if(console.log("续写调试信息:",{selectedText:A.value,continuedText:Ge,hasSavedRange:!!O.value?.range,savedSelection:O.value}),O.value&&O.value.range)try{const Cn=O.value.range,sr=c.value.getEditableContainer();if(sr&&sr.contains(Cn.endContainer)){const Kn=document.createRange();Kn.setStart(Cn.endContainer,Cn.endOffset),Kn.setEnd(Cn.endContainer,Cn.endOffset);const Tr=document.createTextNode(Ge);Kn.insertNode(Tr),Kn.setStartAfter(Tr),Kn.collapse(!0);const ar=window.getSelection();ar&&(ar.removeAllRanges(),ar.addRange(Kn)),setTimeout(()=>{try{const ur=new Event("input",{bubbles:!0});sr.dispatchEvent(ur)}catch(ur){console.log("触发input事件失败:",ur)}},10),console.log("续写成功:通过Range在选区末尾插入文本节点"),Et.success("文本续写完成");return}else console.log("Range不在编辑器内,尝试其他策略")}catch(Cn){console.error("使用Range插入失败:",Cn)}const Ot=c.value.getHtml();let ln=Ot,fn=!1;if(O.value&&O.value.html&&Ot.includes(O.value.html)){const Cn=O.value.html+Ge;ln=Ot.replace(O.value.html,Cn),fn=!0,console.log("续写成功:通过HTML结构匹配添加续写")}else if(O.value&&O.value.plainText&&Ot.includes(O.value.plainText)){const Cn=O.value.plainText+Ge;ln=Ot.replace(O.value.plainText,Cn),fn=!0,console.log("续写成功:通过纯文本匹配添加续写")}else if(Ot.includes(A.value)){const Cn=A.value+Ge;ln=Ot.replace(A.value,Cn),fn=!0,console.log("续写成功:通过直接文本匹配添加续写")}fn?(c.value.setHtml(ln),setTimeout(()=>{try{const Cn=c.value.getEditableContainer();if(Cn){const sr=new Event("input",{bubbles:!0});Cn.dispatchEvent(sr)}}catch(Cn){console.log("编辑器状态同步失败:",Cn)}},10),console.log("续写完成"),Et.success("文本续写完成")):(console.error("所有策略都失败了"),console.log("续写失败调试信息:",{selectedText:A.value,savedSelectionHtml:O.value?.html,savedSelectionPlainText:O.value?.plainText,currentHtmlPreview:Ot.substring(0,500)}),Et.error("续写失败,无法找到选中的文本"))}catch(Ot){console.error("续写过程中发生错误:",Ot),Et.error("续写失败,请重试")}else console.error("编辑器引用不存在"),Et.error("续写失败,编辑器未初始化")}else Et.error("续写失败,请重试")}catch(ne){console.error("AI续写失败:",ne),Et.error("续写失败,请检查网络连接")}finally{E.value=!1,D.value="",vn()}},fr=ne=>{if(!ne)return"";console.log("formatContentForEditor 输入内容:",ne),console.log("formatContentForEditor 输入内容长度:",ne.length),console.log("formatContentForEditor 输入内容预览:",ne.substring(0,200)+"...");const Oe=/<[^>]+>/.test(ne);return console.log("检测到HTML格式:",Oe),Oe?(console.log("直接使用后端返回的HTML内容,无需转换"),ne):(console.log("按普通文本处理"),Nt(ne))},Nt=ne=>{console.log("开始普通文本处理,内容长度:",ne.length);let Oe=ne.replace(/\n\n\n+/g,`
- `).replace(/\n\n/g,"</p><p>").replace(/\n/g,"<br>");return Oe.trim()&&(Oe="<p>"+Oe+"</p>"),Oe=Oe.replace(/<p>(第[一二三四五六七八九十\d]+章[^<]*)<\/p>/g,"<h2>$1</h2>").replace(/<p>(\d+\.\d+[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(\d+\.\d+\.\d+[^<]*)<\/p>/g,"<h4>$1</h4>").replace(/<p>(一、[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(二、[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(三、[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(四、[^<]*)<\/p>/g,"<h3>$1</h3>").replace(/<p>(五、[^<]*)<\/p>/g,"<h3>$1</h3>"),Oe=Oe.replace(/<p><\/p>/g,""),Oe=Oe.replace(/<p>\s*<\/p>/g,""),console.log("普通文本处理后内容长度:",Oe.length),console.log("普通文本处理后内容预览:",Oe.substring(0,200)+"..."),Oe},_n=ne=>{o.value=ne,console.log("切换到标签:",ne)},xt=ne=>{console.log("使用模板:",ne);let Oe="";switch(ne){case"通知模板":Oe='请帮我生成一份正式的通知,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">通知主题:</span>、<span class="editable-highlight" contenteditable="true">发文背景:</span>、<span class="editable-highlight" contenteditable="true">通知目的:</span>、<span class="editable-highlight" contenteditable="true">具体事项:</span>、<span class="editable-highlight" contenteditable="true">发文日期:</span>、<span class="editable-highlight" contenteditable="true">收文单位:</span>等内容。请按照标准公文格式生成完整通知,包括文号、标题、正文、落款等所有要素。';break;case"公告模板":Oe='请帮我生成一份正式的公告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">公告编号:</span>、<span class="editable-highlight" contenteditable="true">公告主题:</span>、<span class="editable-highlight" contenteditable="true">发布背景:</span>、<span class="editable-highlight" contenteditable="true">公告核心条款:</span>、<span class="editable-highlight" contenteditable="true">发文日期:</span>等内容。请按照标准公告格式生成全文,包括标题、正文、落款等所有要素。';break;case"会议纪要模版":Oe='请帮我生成一份正式的会议纪要,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">会议名称:</span>、<span class="editable-highlight" contenteditable="true">会议时间:</span>、<span class="editable-highlight" contenteditable="true">主持人:</span>、<span class="editable-highlight" contenteditable="true">参会人员:</span>、<span class="editable-highlight" contenteditable="true">主要议题:</span>、<span class="editable-highlight" contenteditable="true">会议议定事项:</span>的内容。请按照标准会议纪要格式生成全文,包含标题、导语、议定事项和落款。';break;case"决定模版":Oe='请帮我生成一份正式的决定,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">标题:</span>、<span class="editable-highlight" contenteditable="true">文号:</span>、<span class="editable-highlight" contenteditable="true">决定事项:</span>、<span class="editable-highlight" contenteditable="true">决定背景:</span>、<span class="editable-highlight" contenteditable="true">决定依据:</span>、<span class="editable-highlight" contenteditable="true">具体内容:</span>、<span class="editable-highlight" contenteditable="true">生效时间:</span>、<span class="editable-highlight" contenteditable="true">主送机关:</span>的内容。请按照标准决定公文格式生成完成文件。';break;case"工作汇报模板":Oe='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">总结主题:</span>、<span class="editable-highlight" contenteditable="true">总结时间:</span>、<span class="editable-highlight" contenteditable="true">主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true">存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true">下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。';break;default:Oe='请帮我生成一份正式的公告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">公告编号:</span>、<span class="editable-highlight" contenteditable="true">公告主题:</span>、<span class="editable-highlight" contenteditable="true">发布背景:</span>、<span class="editable-highlight" contenteditable="true">公告核心条款:</span>、<span class="editable-highlight" contenteditable="true">发文日期:</span>等内容。请按照标准公告格式生成全文,包括标题、正文、落款等所有要素。'}const Ge=document.querySelector(".template-input-container");if(Ge){Ge.innerHTML=Oe,r.value=Oe.replace(/<[^>]*>/g,""),Ge.querySelectorAll(".editable-highlight").forEach(fn=>{fn.style.backgroundColor="#3E7BFA10",fn.style.color="#3E7BFA",fn.style.padding="4px 8px",fn.style.borderRadius="6px",fn.style.fontWeight="500",fn.style.cursor="text",fn.style.border="1px solid transparent",fn.style.display="inline-block",fn.style.minWidth="20px"}),Ge.focus();const Ot=document.createRange(),ln=window.getSelection();Ot.selectNodeContents(Ge),Ot.collapse(!1),ln.removeAllRanges(),ln.addRange(Ot),console.log("模板已应用,templateContent更新为:",r.value)}},Ft=K(null),Sn=ne=>{Ft.value&&Ft.value===ne?(l.value=!1,Ft.value=null):(Ft.value=ne,l.value=!0),console.log("切换文档预览状态:",l.value,"选中文档:",Ft.value)},Bn=()=>{l.value=!1,Ft.value=null,console.log("关闭文档预览")},Fr=async()=>{if(!Ae.value){console.log("请输入内容");return}const ne=z.value;i.value="editor",y.value=!0,l.value=!1,Ft.value=null,(he.value.length===0||!he.value.some(Ge=>Ge.isActive))&&(he.value.forEach(Ge=>{Ge.isActive=!1}),console.log("新对话开始,清除所有历史记录的选中状态"));const Oe={id:Date.now(),title:an(Pe.value),time:new Date().toLocaleString("zh-CN",{hour:"2-digit",minute:"2-digit"}),isActive:!1,hasDocument:!1,documentContent:null,aiResponse:"",userMessage:Pe.value,file:ne,messages:[{type:"user",content:Pe.value,file:ne,time:new Date().toLocaleString("zh-CN",{hour:"2-digit",minute:"2-digit"}),id:Date.now(),isFromBackend:!1}]};console.log("创建临时历史记录项,文件信息:",ne),a.value=Oe,z.value&&yn(),console.log("发送AI写作请求:"),console.log("完整文本:",Pe.value),console.log("目的:",t.value),console.log("内容:",n.value),console.log("额外:",r.value),await xi(Oe,null,Pe.value,ne)},kn=ne=>{Z&&clearTimeout(Z),Z=setTimeout(async()=>{await Yt();const Oe=ne.target.innerText||ne.target.textContent||"";if(r.value=Oe,!Oe.trim()){await Yt();const Ge=window.getSelection(),$t=document.createRange();ne.target.firstChild?$t.setStart(ne.target.firstChild,0):$t.setStart(ne.target,0),$t.collapse(!0),Ge.removeAllRanges(),Ge.addRange($t),ne.target.focus()}},200)},Ye=ne=>{const Oe=ne.target.innerText||ne.target.textContent;ne.clipboardData.setData("text/plain",Oe),ne.preventDefault(),console.log("复制成功:",Oe)},At=ne=>{if(ne.size>Y.maxSize)throw new Error("文件大小不能超过20MB");const Oe="."+ne.name.split(".").pop().toLowerCase();if(!Y.allowedTypes.includes(Oe))throw new Error("只支持.docx格式的Word文档。如果是.doc格式,请先另存为.docx格式。");return Oe},tn=async ne=>{try{if(console.log("开始读取Word文件:",ne.name,"文件大小:",ne.size),ne.size===0)throw new Error("Word文件为空");console.log("正在导入mammoth库...");const Oe=await Lf(()=>Promise.resolve().then(()=>KE),void 0);console.log("mammoth库导入成功");const Ge=await ne.arrayBuffer();console.log("文件转换为ArrayBuffer成功,大小:",Ge.byteLength),console.log("开始提取文本内容...");const $t=await Oe.extractRawText({arrayBuffer:Ge});return console.log("Word文件读取完成,内容长度:",$t.value.length),$t.value}catch(Oe){throw console.error("Word文件读取失败,详细错误:",Oe),console.error("错误堆栈:",Oe.stack),Oe.message.includes("Invalid file format")?new Error("Word文件格式无效或已损坏"):Oe.message.includes("File is empty")?new Error("Word文件为空"):new Error(`Word文件读取失败: ${Oe.message}`)}},Ct=()=>{if(z.value){Et.warning("只能上传一个文件,请先删除当前文件");return}B.value?.click()},Xt=async ne=>{const Oe=ne.target.files[0];if(Oe)try{const Ge=At(Oe);j.value=!0,console.log("开始读取文件内容:",Oe.name);const $t=await tn(Oe);z.value={file:Oe,name:Oe.name,size:Oe.size,type:Ge,icon:Ln(Ge),content:$t};const Ot=$t.length;console.log("文件内容提取完成,字符数:",Ot),Et.success("文件读取成功")}catch(Ge){console.error("文件读取失败:",Ge),Et.error(Ge.message||"文件读取失败,请重试")}finally{j.value=!1,ne.target.value=""}},yn=()=>{z.value&&(z.value=null)},Ln=ne=>{switch(ne){case".doc":case".docx":return wq;default:return"📎"}},Zn=()=>{console.log("点击语音按钮"),F.value?yo():jr()},jr=()=>{console.log("开始语音输入"),X()||Et.error("语音识别启动失败,请检查麦克风权限")},yo=()=>{if(console.log("停止语音输入"),te(),H.value.trim())if(i.value==="detail")s.value=H.value;else{const ne=document.querySelector(".template-input-container");ne&&(ne.textContent=H.value,r.value=H.value)}},Kr=ne=>{le&&clearTimeout(le),le=setTimeout(()=>{const Oe=ne.target.value,Ge=/(.)\1{3,}/g;if(Ge.test(Oe)){const $t=Oe.replace(Ge,(Ot,ln)=>ln.repeat(3));s.value=$t,Et.warning("检测到重复字符,已自动清理");return}Oe.length>2e3&&(s.value=Oe.substring(0,2e3),Et.warning("消息长度不能超过2000字"))},100)},xo=async ne=>{try{await navigator.clipboard.writeText(ne),Et.success("复制成功")}catch{const Ge=document.createElement("textarea");Ge.value=ne,document.body.appendChild(Ge),Ge.select(),document.execCommand("copy"),document.body.removeChild(Ge),Et.success("复制成功")}},zo=()=>{let ne=a.value?.documentContent;if(!ne){const Oe=a.value?.messages?.find(Ge=>Ge.type==="ai"&&Ge.parsedContent?.hasDocument);Oe&&Oe.parsedContent&&(ne=Oe.parsedContent.documentContent)}if(!ne){Et.warning("没有可复制的文档内容");return}try{let Oe="";ne.title&&(Oe+=`${ne.title}
- `),ne.sections&&ne.sections.forEach((Ge,$t)=>{Oe+=`${Ge.title}
- `;const Ot=Ge.content.replace(/<[^>]*>/g,"");Oe+=`${Ot}
- `}),Oe=Rr(Oe),xo(Oe.trim())}catch(Oe){console.error("复制文档内容失败:",Oe),Et.error("复制失败,请重试")}},Sr=async()=>{let ne=a.value?.documentContent;if(!ne){const Oe=a.value?.messages?.find(Ge=>Ge.type==="ai"&&Ge.parsedContent?.hasDocument);Oe&&Oe.parsedContent&&(ne=Oe.parsedContent.documentContent)}if(!ne){Et.warning("没有可下载的文档内容");return}try{const Oe=Yr(ne),Ge=new Blob([Oe],{type:"application/msword"}),{saveAs:$t}=await Lf(async()=>{const{saveAs:ln}=await import("./FileSaver.min-D3PRR5IN.js").then(fn=>fn.F);return{saveAs:ln}},[]),Ot=ne.title||"AI生成的文档";$t(Ge,`${Ot}.doc`),Et.success("下载成功")}catch(Oe){console.error("下载文档失败:",Oe),Et.error("下载失败,请重试")}},Yr=ne=>{let Oe=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${ne.title||"AI生成的文档"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotOptimizeForBrowser/>
- <w:ValidateAgainstSchemas/>
- <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
- <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
- <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- @page {
- size: 21cm 29.7cm;
- margin: 2.5cm 2cm 2.5cm 2cm;
- }
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 1.5cm;
- page-break-after: avoid;
- }
- .doc-title {
- font-size: 18pt;
- font-weight: bold;
- margin-bottom: 0.8cm;
- color: #000;
- }
- .section {
- margin-bottom: 1rem;
- page-break-inside: avoid;
- }
- .section-title {
- font-size: 14pt;
- font-weight: bold;
- margin-bottom: 0.5rem;
- color: #000;
- page-break-after: avoid;
- }
- .content {
- margin-bottom: 0.5rem;
- text-align: justify;
- }
- h1 {
- font-size: 16pt;
- font-weight: bold;
- margin: 1rem 0 0.5rem 0;
- color: #000;
- page-break-after: avoid;
- letter-spacing: normal;
- word-spacing: normal;
- }
- h2 {
- font-size: 14pt;
- font-weight: bold;
- margin: 0.8rem 0 0.4rem 0;
- color: #000;
- page-break-after: avoid;
- letter-spacing: normal;
- word-spacing: normal;
- }
- h3 {
- font-size: 12pt;
- font-weight: bold;
- margin: 0.6rem 0 0.3rem 0;
- color: #000;
- page-break-after: avoid;
- letter-spacing: normal;
- word-spacing: normal;
- }
- h4 {
- font-size: 12pt;
- font-weight: bold;
- margin: 0.5rem 0 0.3rem 0;
- color: #000;
- page-break-after: avoid;
- letter-spacing: normal;
- word-spacing: normal;
- }
- strong { font-weight: bold; }
- em { font-style: italic; }
- p {
- margin: 0.5rem 0;
- text-align: justify;
- orphans: 2;
- widows: 2;
- letter-spacing: normal;
- word-spacing: normal;
- }
- .list-item {
- margin: 0.25rem 0;
- text-align: justify;
- }
- table {
- border-collapse: collapse;
- width: 100%;
- margin: 1rem 0;
- page-break-inside: avoid;
- }
- td, th {
- border: 1px solid #000;
- padding: 0.3cm;
- text-align: left;
- font-size: 11pt;
- }
- th {
- background-color: #f0f0f0;
- font-weight: bold;
- }
- ul, ol {
- margin: 0.5rem 0;
- padding-left: 1cm;
- }
- li {
- margin: 0.25rem 0;
- text-align: justify;
- letter-spacing: normal;
- word-spacing: normal;
- }
- </style>
- </head>
- <body>
- <div class='header'>
- <div class='doc-title'>${ne.title||"AI生成的文档"}</div>
- </div>
- `;return ne.sections&&ne.sections.forEach((Ge,$t)=>{Oe+=`
- <div class='section'>
- <div class='section-title'>${Ge.title}</div>
- <div class='content'>
- ${vo(Ge.content)}
- </div>
- </div>
- `}),Oe+="</body></html>",Oe},vo=ne=>{if(!ne)return"";let Oe=ne;return Oe=Oe.replace(/(<li>.*<\/li>)/gs,Ge=>{const Ot=/^\d+\./.test(ne)?"ol":"ul";return`<${Ot}>${Ge}</${Ot}>`}),Oe=Oe.replace(/\n\n/g,"</p><p>"),Oe=Oe.replace(/\n/g,"<br>"),Oe.trim()&&!Oe.startsWith("<")&&(Oe=`<p>${Oe}</p>`),Oe},Rr=ne=>ne?ne.replace(/^#{1,6}\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/__(.*?)__/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/_(.*?)_/g,"$1").replace(/~~(.*?)~~/g,"$1").replace(/```[\s\S]*?```/g,"").replace(/`([^`]+)`/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/!\[([^\]]*)\]\([^)]+\)/g,"$1").replace(/^>\s*/gm,"").replace(/^[\s]*[-*+]\s+/gm,"").replace(/^[\s]*\d+\.\s+/gm,"").replace(/\|/g," ").replace(/^[-*]{3,}$/gm,"").replace(/\n\s*\n\s*\n/g,`
- `).trim():"",Ur=ne=>{let Oe=ne.content||"";if(Oe.includes("<filename>")&&Oe.includes("<filesize>")){const Ge=Oe.split("</filesize>");Ge.length>1?Oe=Ge[1].trim():Oe=Oe.replace(/<word>.*?<\/word>/s,"").replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"").trim()}Oe=Rr(Oe),xo(Oe)},Hr=ne=>{let Oe=ne.content||"";Oe=Oe.replace(/<OPENING_START>/g,"").replace(/<\/OPENING_END>/g,"").replace(/<DOCUMENT_START>/g,"").replace(/<\/DOCUMENT_END>/g,"").replace(/<CLOSING_START>/g,"").replace(/<\/CLOSING_START>/g,"").replace(/<\/CLOSING_END>/g,"").replace(/<\/DOCUMENT_START>/g,"").replace(/<CLOSING_END>/g,"").trim(),Oe=Rr(Oe),xo(Oe)},to=ne=>{console.log("编辑用户消息:",ne.content),s.value=ne.content,ne.file&&(z.value=ne.file,console.log("恢复文件信息:",ne.file.name));const Oe=document.querySelector(".message-input");Oe&&(Oe.focus(),Oe.setSelectionRange(Oe.value.length,Oe.value.length))},pr=async ne=>{if(console.log("重新生成回复,消息索引:",ne),ne>0){const Oe=a.value.messages[ne-1];Oe&&Oe.type==="user"&&(console.log("重新发送用户消息:",Oe.content),s.value=Oe.content,Oe.file&&(z.value=Oe.file,console.log("重新生成时恢复文件信息:",Oe.file.name)),await xa())}},Po=ne=>{if(U.value===ne.id){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}U.value=null}else{if(U.value)try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}let Oe="";if(ne.parsedContent){const Ge=[];ne.parsedContent.openingText&&Ge.push(sa(ne.parsedContent.openingText)),ne.parsedContent.documentText&&Ge.push(sa(ne.parsedContent.documentText)),ne.parsedContent.closingText&&Ge.push(sa(ne.parsedContent.closingText)),Oe=Ge.join(" ")}else Oe=sa(ne.content||"");if(Oe=Oe.replace(/<[^>]*>/g,"").trim(),Oe=Dr(Oe),Oe){const Ge=new SpeechSynthesisUtterance(Oe);Ge.lang="zh-CN",Ge.rate=.9,Ge.pitch=1,Ge.volume=1,Ge.onend=()=>{U.value=null},Ge.onerror=()=>{U.value=null},window.speechSynthesis.speak(Ge),U.value=ne.id}}},ni=ne=>U.value===ne,Wi=async ne=>{console.log("点赞消息:",ne.id),ne.userFeedback==="like"?ne.userFeedback=null:ne.userFeedback="like",a.value.messages=[...a.value.messages],await aa(ne)},va=async ne=>{console.log("点踩消息:",ne.id),ne.userFeedback==="dislike"?ne.userFeedback=null:ne.userFeedback="dislike",a.value.messages=[...a.value.messages],await aa(ne)},aa=async ne=>{try{if(!ne.rawData||!ne.rawData.id){console.warn("消息缺少原始数据,无法同步反馈");return}const Oe=Be(ne.userFeedback);console.log("同步反馈到后端:",{messageId:ne.rawData.id,feedback:Oe});const Ge=await zn.likeAndDislike({id:ne.rawData.id,user_feedback:Oe});Ge.statusCode===200?(console.log("反馈同步成功"),Et.success("反馈提交成功")):(console.error("反馈同步失败:",Ge.msg),Et.error("反馈提交失败,请稍后重试"))}catch(Oe){console.error("同步反馈失败:",Oe),Et.error("反馈同步失败,请稍后重试")}},Ci=ne=>{if(ne===0)return"0 B";const Oe=1024,Ge=["B","KB","MB","GB"],$t=Math.floor(Math.log(ne)/Math.log(Oe));return parseFloat((ne/Math.pow(Oe,$t)).toFixed(2))+" "+Ge[$t]};St(H,ne=>{if(!(!ne||F.value))if(i.value==="detail")s.value=ne;else{const Oe=document.querySelector(".template-input-container");Oe&&(Oe.textContent=ne),r.value=ne}}),St(re,ne=>{ne&&(console.error("语音识别错误:",ne),Et.error(ne))}),qn(async()=>{await Yt();const ne='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括总结主题:、总结时间:、主要业绩和成果:、存在的问题和不足:、下一阶段工作计划:的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。';r.value=ne,await Q()}),Jr(()=>{if(U.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}U.value=null}});const xi=async(ne,Oe,Ge=null,$t=null)=>{try{y.value=!0;const Ot=Ge||(ne?ne.userMessage:"");let ln=Ot;$t&&$t.content&&(ln=`<word>${$t.content}</word><filename>${$t.name}</filename><filesize>${$t.size}</filesize>${Ot}`);const fn=await zn.sendDeepseekMessage({ai_conversation_id:ve.value,message:ln,business_type:2});if(console.log("DeepSeek API响应:",fn),fn.statusCode===200){const Cn=fn.data.reply;if(ve.value=fn.data.ai_conversation_id,ne){ne.aiResponse=Cn,ne.hasDocument=!0,ne.documentContent={title:"AI生成的文档",sections:[{title:"文档内容",content:Cn}]};const Kn={type:"ai",content:Cn,time:new Date().toLocaleString("zh-CN",{hour:"2-digit",minute:"2-digit"}),parsedContent:{hasDocument:!0,documentContent:{title:"AI生成的文档",sections:[{title:"文档内容",content:Cn}]},openingText:"",documentText:Cn,closingText:"",documentTitle:"AI生成的文档"},id:fn.data.ai_message_id||Date.now()+1,userFeedback:null,isFromBackend:!1};ne.messages.push(Kn),a.value&&a.value.id===ne.id&&(a.value=ne)}Qe(),await Q(),ve.value>0&&(he.value.forEach(Kn=>{Kn.isActive=Kn.id===ve.value}),console.log("设置最新历史记录为激活状态,conversationId:",ve.value)),console.log("AI写作完成,准备进入富文本编辑器"),console.log("AI回复内容长度:",Cn.length),console.log("AI回复内容预览:",Cn.substring(0,200)+"...");const sr=fr(Cn);Mt(sr)}else console.error("DeepSeek API调用失败:",fn),alert("AI写作失败,请重试")}catch(Ot){console.error("调用AI时出错:",Ot),alert("调用AI失败,请检查网络连接")}finally{y.value=!1}},is=ne=>{let Oe="",Ge="",$t="",Ot="AI生成的文档";const ln="<OPENING_START>",fn="</OPENING_END>",Cn="<DOCUMENT_START>",sr="</DOCUMENT_END>",Kn="<CLOSING_START>",Tr="</CLOSING_END>";if(ne.includes(ln)&&ne.includes(Cn)&&ne.includes(Kn))try{console.log("检测到三个标签格式,开始解析");const ur=ne.indexOf(ln)+ln.length,Lr=ne.indexOf(fn);ur<Lr?(Oe=ne.substring(ur,Lr).trim(),console.log("提取的开头文本:",Oe)):console.warn("开头标签格式不正确");const yr=ne.indexOf(Cn)+Cn.length;let Ar=ne.indexOf(sr);if(Ar===-1&&(Ar=ne.indexOf("</DOCUMENT_START>"),Ar!==-1&&console.log("检测到错误的文档结束标签:</DOCUMENT_START>")),yr<Ar&&Ar!==-1){Ge=ne.substring(yr,Ar).trim(),console.log("提取的文档内容长度:",Ge.length),console.log("提取的文档内容预览:",Ge.substring(0,200)+"...");const ce=Ge.match(/^#\s+(.+)$/m);if(ce)Ot=ce[1].trim(),console.log("从Markdown提取的标题:",Ot);else{const Ce=Ge.split(`
- `);Ce.length>0&&Ce[0].trim()&&(Ot=Ce[0].trim(),console.log("从第一行提取的标题:",Ot))}}else console.warn("文档标签格式不正确");const we=ne.indexOf(Kn)+Kn.length,ae=ne.indexOf(Tr);if(we<ae)$t=ne.substring(we,ae).trim(),console.log("提取的结尾文本:",$t);else{let ce=ne.indexOf(sr)+sr.length;ce===sr.length-1&&(ce=ne.indexOf("</DOCUMENT_START>")+17);const Ce=ne.substring(ce).trim();Ce?($t=Ce,console.log("从文档结束后提取的结尾文本:",$t)):console.warn("结尾标签格式不正确")}(!Oe||!Ge||!$t)&&console.warn("标签解析不完整:",{openingText:!!Oe,documentText:!!Ge,closingText:!!$t})}catch(ur){console.error("解析三个标签格式失败:",ur)}else if(ne.includes(Cn)&&ne.includes(sr)){const ur=ne.indexOf(Cn)+Cn.length,Lr=ne.indexOf(sr);if(ur<Lr){Ge=ne.substring(ur,Lr).trim();const we=Ge.match(/^#\s+(.+)$/m);if(we)Ot=we[1].trim();else{const ae=Ge.split(`
- `);ae.length>0&&ae[0].trim()&&(Ot=ae[0].trim())}}const yr=ne.substring(0,ne.indexOf(Cn)).trim(),Ar=ne.substring(ne.indexOf(sr)+sr.length).trim();Oe=yr,$t=Ar}else if(ne.includes("<DOCUMENT_START>")&&ne.includes("</DOCUMENT_START>")){console.log("检测到错误的文档标签格式:<DOCUMENT_START>和</DOCUMENT_START>");const ur=ne.indexOf("<DOCUMENT_START>")+16,Lr=ne.indexOf("</DOCUMENT_START>");if(ur<Lr){Ge=ne.substring(ur,Lr).trim();const we=Ge.match(/^#\s+(.+)$/m);if(we)Ot=we[1].trim();else{const ae=Ge.split(`
- `);ae.length>0&&ae[0].trim()&&(Ot=ae[0].trim())}}const yr=ne.substring(0,ne.indexOf("<DOCUMENT_START>")).trim(),Ar=ne.substring(ne.indexOf("</DOCUMENT_START>")+17).trim();Oe=yr,$t=Ar}else{const ur=ne.split(`
- `).filter(Ar=>Ar.trim()),Lr=ur.findIndex(Ar=>Ar.includes("以下"));Lr!==-1&&(Oe=ur[Lr]);const yr=ur.findIndex(Ar=>Ar.includes("以上"));if(yr!==-1&&($t=ur[yr]),Lr!==-1&&yr!==-1){const Ar=Lr+1,we=yr;if(Ar<we){Ge=ur.slice(Ar,we).join(`
- `);const ae=Ge.match(/^#\s+(.+)$/m);if(ae)Ot=ae[1].trim();else{const ce=Ge.split(`
- `)[0];ce&&ce.trim()&&(Ot=ce.trim())}}}else if(Lr!==-1){const Ar=Lr+1;Ge=ur.slice(Ar).join(`
- `);const we=Ge.match(/^#\s+(.+)$/m);we&&(Ot=we[1].trim())}else if(yr!==-1){Ge=ur.slice(0,yr).join(`
- `);const Ar=Ge.match(/^#\s+(.+)$/m);Ar&&(Ot=Ar[1].trim())}}if(!Oe&&!$t&&!Ge)return/<[^>]+>/.test(ne)?(console.log("检测到HTML格式,将其作为文档内容"),{hasDocument:!0,documentContent:{title:"AI生成的文档",sections:[{title:"文档内容",content:ne}]},openingText:"",documentText:ne,closingText:"",documentTitle:"AI生成的文档"}):{hasDocument:!1,documentContent:null,openingText:ne,documentText:"",closingText:"",documentTitle:"AI回复"};const ar={hasDocument:Ge.trim().length>0,documentContent:Ge.trim()?{title:Ot,sections:[{title:"文档内容",content:Ge.trim()}]}:null,openingText:Oe.trim(),documentText:Ge.trim(),closingText:$t.trim(),documentTitle:Ot};return console.log("parseAIResponse 解析结果:",{hasDocument:ar.hasDocument,documentTextLength:ar.documentText.length,openingTextLength:ar.openingText.length,closingTextLength:ar.closingText.length,documentTitle:ar.documentTitle}),ar},Oi=()=>{if(!a.value?.messages)return null;const ne=a.value.messages.find(Oe=>Oe.type==="ai"&&Oe.parsedContent?.hasDocument);return ne&&ne.parsedContent?ne.parsedContent.documentContent:null},mi=()=>{let ne="";const Oe=document.querySelector(".w-e-text");if(Oe&&(ne=Oe.innerHTML),!ne&&u.value&&(ne=u.value),!ne&&c.value)try{ne=c.value.getHtml()}catch(Ge){console.log("从wangeditor实例获取失败:",Ge)}if(ne){const Ge=ne.match(/<h1[^>]*>(.*?)<\/h1>/i);if(Ge){const fn=Ge[1].replace(/<[^>]*>/g,"").trim();if(fn)return fn}const $t=ne.match(/<h2[^>]*>(.*?)<\/h2>/i);if($t){const fn=$t[1].replace(/<[^>]*>/g,"").trim();if(fn)return fn}const Ot=ne.match(/<h3[^>]*>(.*?)<\/h3>/i);if(Ot){const fn=Ot[1].replace(/<[^>]*>/g,"").trim();if(fn)return fn}const ln=ne.match(/<p[^>]*>(.*?)<\/p>/i);if(ln){const fn=ln[1].replace(/<[^>]*>/g,"").trim();if(fn&&fn.length<=50&&!fn.includes("。")&&!fn.includes(","))return fn}}return"AI生成文档"},Si=async(ne,Oe,Ge)=>{try{const $t=yi(ne,Oe),Ot=new Blob([$t],{type:"application/msword;charset=utf-8"}),ln=URL.createObjectURL(Ot),fn=document.createElement("a");fn.href=ln,fn.download=Ge.replace(".docx",".doc"),document.body.appendChild(fn),fn.click(),document.body.removeChild(fn),URL.revokeObjectURL(ln),Et.success("Word文档下载成功")}catch($t){console.error("生成无水印Word文档失败:",$t),Et.error("生成Word文档失败,请重试")}},yi=(ne,Oe)=>`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="UTF-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${Oe||"AI生成文档"}</title>
- <style>
- @page { size: 21cm 29.7cm; margin: 2.54cm 3.18cm 2.54cm 3.18cm; }
- body { font-family: "宋体", "SimSun", serif; font-size: 12pt; line-height: 1.5; color: #000; }
- h1 { font-size: 18pt; font-weight: bold; text-align: center; margin: 24pt 0 18pt 0; }
- h2 { font-size: 16pt; font-weight: bold; margin: 18pt 0 12pt 0; }
- h3 { font-size: 14pt; font-weight: bold; margin: 12pt 0 6pt 0; }
- p { margin: 0 0 6pt 0; text-align: justify; text-indent: 2em; }
- table { border-collapse: collapse; width: 100%; margin: 12pt 0; }
- td, th { border: 1px solid #000; padding: 6pt; }
- </style>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotOptimizeForBrowser/>
- </w:WordDocument>
- </xml>
- <![endif]-->
- </head>
- <body>
- ${ne}
- </body>
- </html>`,sa=ne=>{if(!ne)return ne;console.log("过滤前的文本:",ne);let Oe=ne.replace(/<OPENING_START>/g,"").replace(/<\/OPENING_END>/g,"").replace(/<DOCUMENT_START>/g,"").replace(/<\/DOCUMENT_END>/g,"").replace(/<CLOSING_START>/g,"").replace(/<\/CLOSING_START>/g,"").replace(/<\/CLOSING_END>/g,"").replace(/<\/DOCUMENT_START>/g,"").replace(/<CLOSING_END>/g,"").trim();return console.log("过滤后的文本:",Oe),Oe},Dr=ne=>ne&&ne.replace(/^#{1,6}\s+/gm,"").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/\*([^*]+)\*/g,"$1").replace(/__([^_]+)__/g,"$1").replace(/_([^_]+)_/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/```[\s\S]*?```/g,"").replace(/`([^`]+)`/g,"$1").replace(/^[\s]*[-*+]\s+/gm,"").replace(/^[\s]*\d+\.\s+/gm,"").replace(/^>\s*/gm,"").replace(/^[-*_]{3,}$/gm,"").replace(/\|/g," ").replace(/^[\s]*[-:]+[\s-:]*$/gm,"").replace(/\n\s*\n/g,`
- `).replace(/\s+/g," ").trim(),Mi=ne=>{if(!ne)return"";let Oe=ne;return Oe=Oe.replace(/[\u{1F600}-\u{1F64F}]|[\u{1F300}-\u{1F5FF}]|[\u{1F680}-\u{1F6FF}]|[\u{1F1E0}-\u{1F1FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/gu,""),Oe.trim()&&(Oe=`<p>${Oe}</p>`),Oe},xa=()=>{if(!s.value.trim()||y.value)return;const ne=z.value,Oe={type:"user",content:s.value,file:ne,time:new Date().toLocaleString("zh-CN",{hour:"2-digit",minute:"2-digit"}),id:Date.now(),isFromBackend:!1};a.value.messages.push(Oe),s.value="",z.value&&yn(),Qe(),i.value="editor",y.value=!0,xi(a.value,null,Oe.content,ne)},Qe=()=>{Yt(()=>{const ne=document.querySelector(".chat-area");ne&&(ne.scrollTop=ne.scrollHeight)})},Ve=()=>{a.value?.messages&&Qe()};return St(a,ne=>{Ve()}),(ne,Oe)=>(L(),G("div",T$t,[He(Q5),x("div",_$t,[x("div",D$t,[Oe[4]||(Oe[4]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:oC,alt:"新建任务",class:oe(["new-chat-btn",{disabled:E.value}]),onClick:Dt},null,2)]),x("div",I$t,[m.value&&Ee.value===0?(L(),G("div",O$t,Oe[5]||(Oe[5]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):Ee.value>0?(L(!0),G(Rt,{key:1},un(he.value,(Ge,$t)=>(L(),G("div",{key:Ge.id,class:oe(["history-item",{active:Ge.isActive}]),onClick:Ot=>Ge.isActive||y.value||E.value?null:dt(Ge),style:rn({cursor:Ge.isActive||E.value?"default":"pointer"})},[x("div",P$t,[x("div",N$t,je(Ge.title),1),x("div",R$t,je(Ge.time),1)]),x("div",{class:oe(["delete-btn",{"always-visible":Ge.isActive}]),onClick:en(Ot=>ze(Ge,$t),["stop"])},Oe[6]||(Oe[6]=[x("img",{src:kc,alt:"删除",class:"delete-icon"},null,-1)]),10,B$t)],14,M$t))),128)):(L(),G("div",L$t,Oe[7]||(Oe[7]=[x("img",{src:iC,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])]),x("div",F$t,[Oe[40]||(Oe[40]=x("div",{class:"work-header"},[x("h2",null,"AI写作")],-1)),x("div",U$t,[i.value==="main"?(L(),G("div",z$t,[x("div",$$t,[Oe[13]||(Oe[13]=x("h3",null,"帮我写作",-1)),Oe[14]||(Oe[14]=x("p",{class:"subtitle"},"智能生成办公文档,提升办公效能,高效创作",-1)),x("div",j$t,[x("div",{class:"template-input-container",contenteditable:"true",onInput:kn,onCopy:Ye,placeholder:"请在这里输入您的写作要求..."},Oe[8]||(Oe[8]=[ki(' 请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>总结主题:</span>、<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>总结时间:</span>、<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true" data-v-6adfdb6f>下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。 ',11)]),32),x("div",H$t,[x("div",W$t,[x("button",{class:"attachment-btn",onClick:Ct,disabled:q.value},Oe[9]||(Oe[9]=[x("img",{src:gAe,alt:"附件",class:"action-icon"},null,-1)]),8,V$t),z.value?(L(),G("div",q$t,[x("div",G$t,[z.value.icon&&typeof z.value.icon=="string"&&z.value.icon.includes(".png")?(L(),G("img",{key:0,src:z.value.icon,alt:"文档图标",class:"file-icon-inline-img"},null,8,K$t)):(L(),G("span",Y$t,je(z.value.icon),1)),x("span",Q$t,je(z.value.name),1),x("button",{class:"remove-file-inline",onClick:yn},Oe[10]||(Oe[10]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0)]),x("div",Z$t,[x("button",{class:oe(["voice-btn",{recording:C(F)}]),onClick:Zn,disabled:q.value},[x("div",J$t,[Oe[11]||(Oe[11]=x("img",{src:rp,alt:"语音",class:"action-icon"},null,-1)),C(F)?(L(),G("div",ejt)):xe("",!0)])],10,X$t),Oe[12]||(Oe[12]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:Fr,disabled:y.value||q.value},[x("img",{src:Ae.value?C(ip):C(op),alt:"发送",class:"action-icon"},null,8,njt),y.value?(L(),G("span",rjt,"生成中...")):xe("",!0)],8,tjt)])])]),Oe[15]||(Oe[15]=x("p",{class:"hint-text"},"提示:请输入关键字,AI将根据关键字生成文档",-1))]),x("div",ojt,[x("div",ijt,[(L(),G(Rt,null,un(Kt,Ge=>x("div",{key:Ge.key,class:oe(["tab-item",{active:o.value===Ge.key}]),onClick:$t=>_n(Ge.key)},je(Ge.name),11,ajt)),64))]),x("div",sjt,[(L(!0),G(Rt,null,un(pt.value,Ge=>(L(),G("div",{key:Ge.id,class:"template-card"},[x("img",{src:Ge.image,alt:Ge.name,class:"template-image"},null,8,ljt),x("button",{class:oe(["use-template-btn",Ge.buttonClass]),onClick:$t=>xt(Ge.name)}," 使用此模板 ",10,ujt)]))),128))])])])):xe("",!0),i.value==="editor"?(L(),G("div",cjt,[y.value?(L(),G("div",djt,Oe[16]||(Oe[16]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在生成文档,请稍候...",-1)]))):xe("",!0),b.value?(L(),G("div",fjt,Oe[17]||(Oe[17]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录,请稍候...",-1)]))):xe("",!0),x("div",pjt,[x("div",hjt,[Oe[18]||(Oe[18]=x("h3",null,"文档编辑",-1)),y.value?(L(),G("p",vjt,"AI正在生成内容,请稍候...")):(L(),G("p",gjt,"AI已为您生成内容,您可以直接编辑和完善"))]),x("div",mjt,[x("button",{class:"save-btn",onClick:tt,disabled:E.value}," 保存文档 ",8,yjt),x("button",{class:"download-btn",onClick:ft,disabled:E.value},Oe[19]||(Oe[19]=[x("img",{src:i7,alt:"下载Word",class:"download-icon"},null,-1)]),8,bjt)])]),x("div",wjt,[x("div",{class:oe(["rich-editor-container",{polishing:E.value}])},[x("div",null,[He(C(A$t),{class:"rich-editor-toolbar",editor:c.value,defaultConfig:f,mode:f0e},null,8,["editor"]),He(C(m$t),{style:{height:"calc(100vh - 280px)","overflow-y":"auto"},modelValue:u.value,"onUpdate:modelValue":Oe[0]||(Oe[0]=Ge=>u.value=Ge),defaultConfig:p,mode:f0e,onOnCreated:it,onOnChange:de},null,8,["modelValue"])])],2)]),w.value&&A.value.trim()?(L(),G("div",{key:2,class:"ai-polish-input",style:rn({left:S.value.x+"px",top:S.value.y+"px"}),onClick:Oe[2]||(Oe[2]=en(()=>{},["stop"]))},[x("div",Ajt,[x("div",Cjt,[cn(x("input",{type:"text","onUpdate:modelValue":Oe[1]||(Oe[1]=Ge=>k.value=Ge),placeholder:"请输入要求(可选)",class:"polish-input-field",disabled:E.value,onKeyup:$r(Un,["enter"]),onClick:en(ot,["stop"]),onFocus:vt,onBlur:Ut,maxlength:"200"},null,40,xjt),[[qr,k.value]]),x("div",Sjt,je(k.value.length)+"/200",1)]),x("div",Ejt,[x("button",{class:"polish-send-btn",onClick:en(Un,["stop"]),disabled:E.value},je(E.value&&D.value==="polish"?"正在扩写":"AI扩写"),9,kjt),x("button",{class:"polish-send-btn continue-btn",onClick:en(wr,["stop"]),disabled:E.value},je(E.value&&D.value==="continue"?"正在续写":"AI续写"),9,Tjt)])])],4)):xe("",!0)])):xe("",!0),i.value==="detail"?(L(),G("div",_jt,[b.value?(L(),G("div",Djt,Oe[20]||(Oe[20]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录,请稍候...",-1)]))):xe("",!0),x("div",{class:oe(["main-content1",{"with-document":l.value}])},[x("div",Ijt,[x("div",Ojt,[(L(!0),G(Rt,null,un(a.value?.messages,(Ge,$t)=>(L(),G("div",{key:$t,class:oe(["message-item",Ge.type])},[Ge.type==="user"?(L(),G("div",Mjt,[x("div",Pjt,[Ge.file?(L(),G("div",Njt,[x("div",Rjt,[x("div",Bjt,je(Ge.file.icon),1),x("div",Ljt,[x("div",Fjt,je(Ge.file.name),1),x("div",Ujt,je(Ci(Ge.file.size)),1)])])])):xe("",!0),Ge.content?(L(),G("div",zjt,je(Ge.content),1)):xe("",!0)]),x("div",$jt,[x("button",{class:"action-btn copy-btn",onClick:Ot=>Ur(Ge)},Oe[21]||(Oe[21]=[x("img",{src:jv,alt:"复制",class:"action-icon"},null,-1),bn(" 复制 ",-1)]),8,jjt),x("button",{class:"action-btn edit-btn",onClick:Ot=>to(Ge)},Oe[22]||(Oe[22]=[x("img",{src:aC,alt:"编辑",class:"action-icon"},null,-1),bn(" 编辑 ",-1)]),8,Hjt)])])):Ge.type==="ai"?(L(),G("div",Wjt,[Oe[30]||(Oe[30]=x("div",{class:"ai-avatar"},[x("img",{src:moe,alt:"AI头像",class:"avatar-img"})],-1)),x("div",Vjt,[Ge.parsedContent?.openingText?(L(),G("div",{key:0,class:"opening-text",innerHTML:sa(Ge.parsedContent.openingText)},null,8,qjt)):xe("",!0),Ge.parsedContent?.hasDocument?(L(),G("div",{key:1,class:"document-info clickable",onClick:Ot=>Sn(Ge.parsedContent)},[Oe[23]||(Oe[23]=x("div",{class:"doc-icon"},[x("img",{src:cmt,alt:"文档图标",class:"info-icon"})],-1)),x("div",Kjt,[x("div",Yjt,je(Ge.parsedContent?.documentTitle||a.value?.documentContent?.title||"文档标题"),1),x("div",Qjt,"创建时间: "+je(ie(Ge)),1)])],8,Gjt)):xe("",!0),Ge.parsedContent?.closingText?(L(),G("div",{key:2,class:"closing-text",innerHTML:sa(Ge.parsedContent.closingText)},null,8,Zjt)):xe("",!0),x("div",Xjt,[x("div",Jjt,[x("button",{class:"action-btn copy-btn",onClick:Ot=>Hr(Ge)},Oe[24]||(Oe[24]=[x("img",{src:jv,alt:"复制",class:"action-icon"},null,-1),bn(" 复制 ",-1)]),8,eHt),x("button",{class:"action-btn regenerate-btn",onClick:Ot=>pr($t),disabled:y.value},Oe[25]||(Oe[25]=[x("img",{src:yq,alt:"重新生成",class:"action-icon"},null,-1),bn(" 重新生成 ",-1)]),8,tHt),x("button",{class:"action-btn delete-btn",onClick:Ot=>Ne($t)},Oe[26]||(Oe[26]=[x("img",{src:kc,alt:"删除",class:"action-icon"},null,-1),bn(" 删除 ",-1)]),8,nHt),x("button",{class:"action-btn voice-btn",onClick:Ot=>Po(Ge)},[Oe[27]||(Oe[27]=x("img",{src:o7,alt:"语音朗读",class:"action-icon"},null,-1)),bn(" "+je(ni(Ge.id)?"停止朗读":"语音朗读"),1)],8,rHt)]),x("div",oHt,[x("button",{class:oe(["action-btn thumbs-up-btn",{active:Ge.userFeedback==="like"}]),onClick:Ot=>Wi(Ge)},Oe[28]||(Oe[28]=[x("img",{src:Qy,alt:"点赞",class:"action-icon"},null,-1)]),10,iHt),x("button",{class:oe(["action-btn thumbs-down-btn",{active:Ge.userFeedback==="dislike"}]),onClick:Ot=>va(Ge)},Oe[29]||(Oe[29]=[x("img",{src:Zy,alt:"踩",class:"action-icon"},null,-1)]),10,aHt)])])])])):xe("",!0)],2))),128)),y.value?(L(),G("div",sHt,Oe[31]||(Oe[31]=[ki('<div class="ai-avatar" data-v-6adfdb6f><img src="'+moe+'" alt="AI头像" class="avatar-img" data-v-6adfdb6f></div><div class="message-content" data-v-6adfdb6f><span class="generating-text" data-v-6adfdb6f>AI正在思考中...</span><div class="loading-dots" data-v-6adfdb6f><span data-v-6adfdb6f></span><span data-v-6adfdb6f></span><span data-v-6adfdb6f></span></div></div>',2)]))):xe("",!0)]),x("div",lHt,[z.value?(L(),G("div",uHt,[x("div",cHt,[x("div",dHt,[z.value.icon&&typeof z.value.icon=="string"&&z.value.icon.includes(".png")?(L(),G("img",{key:0,src:z.value.icon,alt:"文档图标",class:"file-icon-img"},null,8,fHt)):(L(),G("span",pHt,je(z.value.icon),1))]),x("div",hHt,[x("div",gHt,je(z.value.name),1),x("div",vHt,je(Ci(z.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:yn},Oe[32]||(Oe[32]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0),x("div",mHt,[x("button",{class:"attachment-btn",onClick:Ct,disabled:y.value},Oe[33]||(Oe[33]=[x("img",{src:bq,alt:"上传文件",class:"action-icon"},null,-1)]),8,yHt),cn(x("input",{"onUpdate:modelValue":Oe[3]||(Oe[3]=Ge=>s.value=Ge),type:"text",placeholder:"请在此处发送消息 (Enter键也可发送)",class:"message-input",onKeydown:$r(xa,["enter"]),onInput:Kr,maxlength:"2000",disabled:y.value},null,40,bHt),[[qr,s.value]]),x("button",{class:oe(["voice-btn",{recording:C(F)}]),onClick:Zn,disabled:y.value},[x("div",AHt,[Oe[34]||(Oe[34]=x("img",{src:rp,alt:"语音",class:"action-icon"},null,-1)),C(F)?(L(),G("div",CHt)):xe("",!0)])],10,wHt),Oe[35]||(Oe[35]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:xa,disabled:y.value||!s.value.trim()},[x("img",{src:s.value.trim()&&!y.value?C(ip):C(op),class:"action-icon",alt:"发送"},null,8,SHt)],8,xHt)])])]),l.value?(L(),G("div",EHt,[x("div",{class:"document-header"},[Oe[39]||(Oe[39]=x("h3",{class:"doc-title"}," 文件详情 ",-1)),x("div",{class:"doc-actions"},[x("button",{class:"action-btn",onClick:zo},Oe[36]||(Oe[36]=[x("img",{src:l3,alt:"复制",class:"action-icon"},null,-1),bn(" 复制 ",-1)])),x("button",{class:"action-btn",onClick:Sr},Oe[37]||(Oe[37]=[x("img",{src:Aq,alt:"下载",class:"action-icon"},null,-1),bn(" 下载 ",-1)])),x("button",{class:"action-btn close-btn",onClick:Bn},Oe[38]||(Oe[38]=[x("img",{src:dmt,alt:"关闭",class:"action-icon"},null,-1)]))])]),x("div",kHt,[Ft.value?.documentContent?(L(!0),G(Rt,{key:0},un(Ft.value.documentContent.sections,Ge=>(L(),G("div",{key:`selected-${Ge.title}`,class:"doc-section"},[x("div",{class:"section-content",innerHTML:Mi(Ge.content)},null,8,THt)]))),128)):a.value?.documentContent?(L(!0),G(Rt,{key:1},un(a.value.documentContent.sections,Ge=>(L(),G("div",{key:`history-${Ge.title}`,class:"doc-section"},[x("div",{class:"section-content",innerHTML:Mi(Ge.content)},null,8,_Ht)]))),128)):Oi()?(L(!0),G(Rt,{key:2},un(Oi().sections,Ge=>(L(),G("div",{key:`message-${Ge.title}`,class:"doc-section"},[x("div",{class:"section-content",innerHTML:Mi(Ge.content)},null,8,DHt)]))),128)):xe("",!0)])])):xe("",!0)],2)])):xe("",!0)])]),He(h0,{visible:v.value,title:Fe.value,message:Me.value,onConfirm:Re,onCancel:Lt,onClose:Lt},null,8,["visible","title","message"]),x("input",{ref_key:"fileInput",ref:B,type:"file",accept:".docx",style:{display:"none"},onChange:Xt},null,544)]))}},OHt=Zo(IHt,[["__scopeId","data-v-6adfdb6f"]]),MHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAo2SURBVHic7d1LaB3XGQfw/zf3YVmoECEKsjdG4CJkN0ZOFqVCUoJl/ILQprXxwpD4sTAtdjZtTGUpYKgeJWQVmxovXKWBLIzdklCwFROZRhIGL/xAdW1EDcIbWWCEtBCyfR/zdXF1ZT2u7szcmavjO/P/bUKkuTNHo7/PmTPnm5GgzNo69adipfYA+DlgNQLaCEgtoNUAqgEkyt0GKioNYB6QeUBnABkH7HEAD9VO3hzpl+flPLiUY6dtZ1/tgGX9StQ+AMgvynUcKjsF9I6KdR22/d1I34axoA8QWDA6OrUuZWVOCvQwgB1B7ZfeKGMKuZK045eG+mU6iB36DmBHp9alJXMKoqcB1AXQJnrzTUPlfELjF/wG0VcA27syRyD6OVQ3+9kPVSiRSaicGe6Nf1PyLkr5UEvXiy1xjV2GoKPUA1OIKIYykj1xu3fjU68ftbx+oLU7dSyO2F2GjxYJOuKI3W3tTh3z/lEP2s6m/iqC33k9CEWHKi6O9CV/73Z71wF8rzt9VVUPltYsihIRufZjT+KQq23dbNTe9ep7QPb4axZFi94c7t2w12krx2vA9u7U3xk+8k725LJTXNEAtp1NfQnFR8E1iiJF8VHb2dSXxTZZcwhu7U4dsxR/C75VFDW24PhoT3Kg0PcKBrCl68WWOGJ3wZUNCsZ0Btl3C90nLDgExzV2GQwfBaduIVOrrApgbnmNN5kpYIKO9q7MkdVfXqKjU+vSscwY13apLEQmE9n4jqUFDMt6wLRkTjF8VDaqm9OSObX0S4s9YEen1qWt9Dh47UflNZ2wE435XnCxB0xZmZNg+Kj86hayBmBJABcqmYnKbmnWLGDhGQ6W0dP62dH+mb4NLATQEuvXZttDUSN25kNgIYAK/cBscyhq8pmT98/N1dvp5CT46CStL7USqc1WNpXYDYaP1p9kU4ndlgi2m24JRZMItlu512UQmWA1Wrl3tRCZoI1W7kVBRCZIrbXwlioiA7TaQu4VaUQmVFvg+/nInITnV3MQBYkBJKMYQDKKASSjGEAyigEkoxhAMooBJKMYQDKKASSjGEAyigEkoxhAMooBJKMYQDKKASSjGEAyigEkoxhAMooBJKMYQDKKASSjGEAyigEkoxhAMooBJKMYQDIqbroBJtRUAb1H3P/oA7eyeDChvo7Z2iTYuimYNyFPzQCD9+1A9mVaJAO4dZOgucF9GPbvtPBgIuvrmK1NFva/E8yA82BCQxPASA7BR3fFPG2/7x0LNVVlakzERS6ANVXAz0oYClubIneq1kXkzmprU2m9WVDDJy0XubO6r8QgNTcI6t8qfRIxNetvErPUk2fB7cu0SE1CaqqAnR4mHys1NwgG75f2y//qlo3Be4qDLbnJSCm98OA9GwO37EDDbFqkekCn3u++w60Wv8Pw1KziwvUsDn+RxsCtLOZeuvvc4D0bh7/IoP+f2VCFD4hYAJ0mEl/dymJqZu1fsN9hOG/uZa5HvHrb+dbOjXt2KIOXF5kAOg2/cy9z11ZON5xbt/HP6gUpMgE82FL8R/3fM8XcS2DkcfEAHvplZE7ZuojM2WxuKP6jjj62F/9b7Nqsvja4JTWKSACbG8Rx9jv66PXS1oOJ4stc7AWDE4kz6bTu++SZYmr29f+PPCo+DHtZR6biIhHAQy3F135HHi/v8ZwmIvW13ooZaG2hD2Bzgzje9F0ZuKlZ59nw/p2hP3XrIvRn0ene39zLwj3ejXvFrwPZAwYj9AF0Wr1YK2huhmFWyPgX6jPoZvgdfVw4gFOz6rjo39bEXtCvUAdwn8N1Wn71Yy1Oa8MsVPUvtAGsqQLatrlb/ViLm7J3DsP+hPbsuSk8XWv4zXvyTIsWJwAsVPUrtGfPTeHpoMNMF3CejARVIRNVoQygm8LT+xPFh9+8Gy6GYd6SKV0oA+im93Na7329nXNQOQyXLpQl+W4mBjVVgqO73AVn7oWipmrtXi4/DIe1aLScQhdAt899HHKoD/SqdZvg2m0G0KvQjR1OhaflwhKt0oTurDkVnpYLC1VLE6oA1r/l77FLv9gLeheqM1bqQ+dB4e0Y78IVQMM1eixU9S40AWxuEGyqNf/LZ6GqN6G5DePm3t/9CcVf/pEp/RjbLJw+ULy8nz2gN6EJoJvViNHH9rKHj7wafaQ4faD4NvlCVadCB8oJxXjhpvAUWP7oZSncPCsCuC9U3eSiiOEnG13tqmKFIoBuht9nM+qr98tb+QRdIU6Fqvt2Wrjyh7irWXtrU27bgy3hLH6t+ADWVLkdfoNZJht1eGY4r9A/inzwOn8bQ72HCVN9reD0gRiu/DGBo7vCFcSKD+DWTS6H34CuyaZmnYtUgdX/KP70m5jn4K1UUwUc2xXz9Ib/N13FB9DNC8fXevSyVE4vMAJYqOpWRQfQ7QvHR3xOPlZy25vyloyzig6g26fSgrr+y3swUdowTKtV9BlyM/vNDb/B35NzM6RzGHYm7V2piq2idDvEBXn9l1dTBVflV1MzuYlL/VuC+tpgju30PHMlqegAUuWr6CGYKh8DSEYxgGQUA0hGMYBkFANIRjGAZBQDSEYxgGQUA0hGMYBkFANIRjGAZBQDSEYxgGQUA0hGMYBkFANIRjGAZBQDSEYxgGQUA0hGMYBklAUgbboRFFlpC8C86VZQZM1bgDCAZIjMW4DOmG4GRZXOWICMm24GRZWMW4DNAJIh9rgF4KHpZlBkPbTUTt4EwFe00XpTtZM3rZF+eQ7oHdOtoajROyP98twCABXruunmULTkM2cBgEj8W7PNocix7e+AhQAO/1n+A2DMaIMoSsZG+jaMAUuKERRyxVx7KEqWZm0xgEk7fgnAtJEWUZRML2QNwJIADvXLNFTOm2kTRYbK+aF+WezoltUDJjR+ASKT698qigSRyYTGLyz90rIALvSCZ9a3VRQZKmeW9n4AUPBP/bSfTf0AQcf6tIoiQTE03JfcvfLLBUvyM5I9AU5IKDjTC5lapWAAb/dufGoLPi1vmygqbMGnt3s3Pi30vTUfShrtSQ6o4mL5mkVRoIqLoz3JgbW+7/jnHt/rTl9V1YPBNouiQESu/diTOFR0Gzc7au969T0ge4JpFkWD3hzu3bDXaStXzwUP927YC8HX/htFkSD42k34AA8Ppg/3JD9WBVdKqChVnB/uSX7sdntPb0YY6Ut+YguOg7doaLVpW3B8pC/5iZcPufub9yu0dL3YEtfYZd6sJgCAYigj2RNr3WoppqQA5rV3ZY5A9HOobvazH6pQIpNQOTPcG/+m5F34bUNHp9alJXMKoqcB1PndH1WEaaicT2j8wsq1Xa98BzCvo1PrUlbmpEAPA9gR1H7pjTKmkCtJO37Jb/DyAgvgUu2f6dtiZz5U6AcA3i3XcajsFMBdgfzLVvvbfBl9kMoejPfPzdVnU4ndItgOWI2ANgJSC2g1gGoAiXK3gYpKA5jPvaRKZ3KvarHHVfHfWDL9w7/P1UyV8+D/ByVqAll3U2+tAAAAAElFTkSuQmCC",PHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEoSURBVFiF7ZjRUYNAFEXPcyyAErACU0KsQK3IEhwrMB3EDrQDSQXSgXRw8wEfL5sIqytsRvd8LewbOLwFhgsU/jj21YSkNXALVDM7tMDOzF6iqiVVkrZanmdJ080YCnOxDX0skLsDfFEHxLX+Z1TACqjdvhszeztZLenBXc2HYlqeiPpb6tOd99HPXwT1tRs3ZtbNLTicw6/SQVNCQc/scjGMCZ4FRTCVIphKEUylCKZSBFMpgqkUwVTORbB244Pv0MvvHGXILL8dA66Btdve+ckowSGbvNIHnDlpCULa5BIvKNcB92EOGhVcSK4FNsCVmTXh5NgSn5Jr6HNrnkCl8b8K70vk5JDY10y2zsUIZl3WKcG89xzHgq0bZ5eD46f4yY9zyxX+BXsQMXqyev1l1wAAAABJRU5ErkJggg==",NHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFfSURBVFiF7ZgxboMwFECfq44ZOEKG7E13pKQ3yBV6Mo5Ab1AiZS/ZK5UjZMj+OxjUjxvAqkMglZ8UYfkb87A/Uvwh8s8xXQER2QJr4GlkhwrYG2MKr9EikohILrcnE5HERzCbQK4hd32MI7cF3lXXCXjzWvq/kWDTaKn6XvR2Pzo3bFS7Ap6NMaeR5ACbUsAXVhascNHEH5zxS9Uux5YDqJ+hd6n1UbqCmtHlfOgTnAVRMBT3K9akIpL1xBf19XwFj7Qr4AouVHtV/26Ndri/Ldbb9QkcOu5L+VndvnG+6PlaKdOXgwdjzOulQJ2bq6FxvjjztZj9FkfBUKJgKFEwlCgYShQMJQqGMhfBzpKHK3hU7Z341EoCqZ+xVl2Vjrv/B0vVToAPESn5fUbWZ4ihs8sQO9oruO8dLdNUthqGX1Rs+S2bQC6XCyk1VMDc0K7XaK517Dxi60BF4DyR++QbasVA5Mak+dYAAAAASUVORK5CYII=",RHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAeDSURBVHic7Zw9bBtHFsf/b3cpkZEuRzbUMRW1gAXYgWzGrgQVoWG5MyAZuKuEw0lFXB0QOVWag+wucWE76aIUUQpXCWAZ8FWnwExh+BpH9BmwABEgtzqaTLFEQFqUubMvBT9MSvzQkjsrSsqvEpczs8O/Zt7Me7tvCB6zk+cYhIiRpl4AOMo2YvXviBCt/VlgRoEIBRAMgAy2xAsBNs5GfAkv+0uyb5AxOWjt2UtQ6WMw4gCCAzZZACHBlv1IQE2cjZAxeC87I0WgjMnBSlkskKr8A0Bcxj2aSLCwv5+KaOsyGndVoIzJQcvCp2BeweAjxRHMMGDbt31+dWMyRAW32nVNoNRrsQKFVuGxMPthhkHMX535i3rfjfYGFiiV5ThUvge8M7bDADMMEF2fClNykHaUQSqn8uIeVH6CIRMHqK6IBN5K5cTqQO30U2k7y1FN5YcYQmHawQxD2HS5nxXPsUA7eY4R+AmO2NY4pd8p52iK7eR5icBbOGbiAO+m3E6el5zUO7RAqddihcDfOe7ZkEHg71Kvxcrhyx+C2sg59uI0w6DlqTCt9yrXU6CazdlypVdDBoM+6mWTuk6x7SxHwfzQ3W4NDwR+sp3laLcyXQVSFX7S5GGfRIK17UpHOgqUyonVEy5OnVgqL+51+rKtDTrJdqcjgi6fiVBi/+X2I+gE252OVP3JAxwQKPVarJySqbWfWLv9UcsUy5gcrLzlrVMqEAAUNB9NNseTWkZQpSwWTrE4AFAN+DXRMoJ2cnZGlkDFXcZ4QHoI3A1aRpFWv7qTtZZkjp61xyVs/rIHPaJi5twIFufe61r+n18XkDNt6BEVVy/5MXdpVFbX9hOslMUCgHWgaYrVAuxSyJkCm7/sAQDSWYGJkNq1fPr/FtJZgVKZ8TJjYVrXupZ3m2YtNKDmUoDjsm649vhNy+ecKfBg803bsvOzAWw8LTc+T4QUbD7f69r+3KXRnqI7JJ4xOTgZooIGACpEfMDoa0c2n+/h2au3Ldce/LTbsbwe0RqjDQBypt21PABM6z63BYK1Zy8BuK8AAGnKvKut18iZAt88Ljmqc/fHooyuOEelj4G6kWb3H+4Vdxmff/sbSmUGUJ0qN66N4e4Pxca1mXMjmJ/1N+o8elpuGW3/+vufAKClzuKVAKZ1X8u99IgEG1XTRNnOVuKQEEJd+3cJOdNufP7ik/cxc26k8aMB4NmrtxgPEM7rPpzXfZif9WPMX90KLF4JYObcSG3FCzTqbDwtYyKkNOqc132ytg/BnTzHNBUUdbvl4i4D/O7zjWvvNWzEed2HhVk/Np6WMXdpFOGgiuIuY/mO2RglX3zyfsuoWJgN4NmrCl6mK5j5cARjfjn28gBCxDTS1Atg7l3YAeMBwmd/G0epzCju2tAjGv6XrjS+n570IWfamLs4inTWatSpC/TffUYdAK5eHMG4n1rqANWp67aBrkOaeoFSv9oPwVhwu/GcKbB8x7VH5B1ZvBLouensG8KGAj7VvldX2EZMY0aQPHCRPvvrOMIhd2zH2uMS0lnhSlu90Ii8eQg4rWuu2Yr6SucFlMrb7lroGsVdxlptk5jOWq7+x6d1HyaC1dE482F1KyALaV5gfSUDgAebb5DOdncXnHD14qhn3r3GDMPLIJkeUbEwG+hdcB8PfnrTsvH0iIK3cQRU7Uc///3/PC97LhDzEQj0MmNh+Y7puF5xV4qp7AoRChopSHq9FzqCqdIfBEMDyGhxnCQzEVIwd3EwA6t/IMe1OAgZGlviBakeOX8AwkFFnmvgMmyJFxpUNenlCEpnBe7+MHhQ7Ma1MelPSQTY0KbClEzl7QI8eq2uVOaWkGq/LM4FMB6QOtUKZyO+RHUVIyRkePTtGPMT9Eh/P+xlxupdyC0ICaC+kxb8MxTyRCA9ouLLG392XM+r8EkdtuxHQE0gbVRZtyrt325wm1KZW4JnhyXv8dZAQE0ANYEmQ1RI5e0E5GfmIJ0V+Pzb32TfZlAaaVaN9Z2F/f2RdWfIaNai4Wr4/OpGbZpJXc2mJ7WhtkHMMJpzz1o2EqlfeRXMt9y+ac4UDfdi3E/QP+jPBcyZ72JKsgL1LOzljgJlTA5aFc7gGKYauAEzDN8IfdTxBarJEBVg823vuzYcEPNX+7MV2+7VU3l7C8ck1cktmGFMTSiT+6+391IF3ZTeo2GD6Hq7y20Fqr4vzK7kfB4LmG91ytno6g6fhqnWaWrV6RoIsgRdB+CdA+Qx9VTNbmX+SIcaJB0KAKbClGTQsnvdGg5qCXU981cPFWudCtM6bD45K5vNNw+TbQg4zHo+CamZh03FrNNXWjiYHx7DlIUCgy5LTQsHqjZJ2HSZGYbTukdI0hK9DXI7BnoskMqJVRDdGqQN+fD9M2G1b/s58HOTIZ5ySQi62S6L0AmuHo/DRJ8OgVAF2Hx7aI7HaaZ+8hQU5SgSggsguq9pOBCyGARpjyZ3staSl0d0uX3yVB3pL/ttZzmqQsRJU+bdPOQNgn/WRpV1GaI043kK4Ha2EldB0foxgWBEa2/aBlETr3kLQQqS9WMCoarJQU+UcsrvVfYI77qcyA0AAAAASUVORK5CYII=",BHt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEFSURBVFiF7djPDYIwGAXw9xnvevHekWQCHYENGMGRHAE2wAFMdACT50EgFQWh/6jKO9FAPn5padMCzPmFkMxI5uzOhWQWCnPsgTyhQmDSgRgG6aHWMB1Irr2/9ANIzyQYaYOaGyLy+rj/LHwVJqlIltVnoEyLNHEA0idIaYRyDKp7yBzlEuQE5RpkjfIBskL5Ao1BjV6HqiJbACsDlwKw19onAImIFDagsirsKmcR2dQNk4Xx6hADADe9sTQokADYGb5c4c2QdT4dw0cdBBTVtI9qYbTCuAZZYzyAotx+5GMx37OF5USb/Dao0K6zqVBN+DhCD8mfHqU1VMr+nw0M1kNzYs8dcL4BFPEyqQIAAAAASUVORK5CYII=",p0e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJwSURBVFiF7ZbBUdtQEIa/lQPXOBWgdGA6sCsAOnBuHpPDGzfg5cYltpgJDDc7FYRUgKkgKkF0oGMmjN7mIImxA7afbUgu/BdJo9Xu9/7R27fwpv8sCQlyTpsPEV2MI4NYhBjIMTKE1ODuaqTTFweoCg8Bty6RQQacbQoSLXvRcxr/jvhZFze48Z6TwvPxcqSy5/lgnkODTwaZQCwwOR3oeBOAZx3oOY0bZfEmQloUnFwnmq1K1B9oV2AMNDFml2PthAA8caDnNI4iboEmMN0r6KwrDnA10mlROpIhtEOdeOLA6UAnQBchvfyihyFJ5tV32pJqAeLpfE10tip+wYGe0xjoAhQFJ5sWB7hKNDUkATBhuC5+AaARcVzdTkNsX6Z9bxdAjtB2TpvBABhHAN7zY9viAEmiOUYK8BCVjgYBGMTVNd0FAMBEZmUueR8MUHU4drH/Ud7uAQSLgwGAHMoOuGt9iahz5MEAZmXwL9gZoLbekHAAEWawsBu2lpgdA3hvd8EA5imDq92wrXpOY4QWkF9v0oj24aZupf2BdrcFaESPDehmXewCQJJoDpwBCIyrzriR+oOzIdA1yApf5goGgPJQAaZAM4q47TttbVJcMC2f5DxkOz97HDunzQfhO0IbwBD13r4tS/jZaduEYR1ffkPm/fqTdOVEtLgicoMZSIq3+2qfH2C05grngvQ8di4Qh0CsnQl7TuOGMJlf3TPKDUn2vV0kieb1TBECETSU1iBRRBvkoGqvuSF55O3uHaTVD/x3/FqIYIBtFALxqgAhEEun4pfSdaKZ93TqybkhTObfvzrAPARGarL6dHzTP9cfNFMnFzfmaSIAAAAASUVORK5CYII=",LHt={class:"admin-container"},FHt={class:"sidebar"},UHt={class:"sidebar-nav"},zHt={class:"main-content1"},$Ht={key:0},jHt={class:"content-header"},HHt={class:"search-box"},WHt={class:"data-table"},VHt={class:"table"},qHt={class:"content-cell"},GHt={class:"content-preview"},KHt={class:"content-cell"},YHt={class:"content-preview"},QHt={class:"pagination"},ZHt={class:"page-numbers"},XHt=["onClick"],JHt={class:"page-info"},eWt={key:1},tWt={class:"content-header"},nWt={class:"search-box"},rWt={class:"data-table"},oWt={class:"table"},iWt={class:"content-cell"},aWt={class:"content-preview"},sWt={class:"tags-container"},lWt={class:"content-cell"},uWt={class:"content-preview"},cWt={class:"pagination"},dWt={class:"page-numbers"},fWt=["onClick"],pWt={class:"page-info"},hWt={__name:"Admin",setup(e){const t=K("chat"),n=K(""),r=K(1),o=K(15),i=K(""),a=K(1),s=K(15),l=K([{userId:"SD00125",userMessage:"施工现场照片如何识别脚手架搭设隐患?",aiReply:"脚手架搭设隐患识别可以通过以下几个关键点:1.检查连接件是否松动;2.立杆垂直度是否满足要求;3.横杆间距是否符合规范...",timestamp:"2023-10-15 14:32:45",status:"liked"},{userId:"SD00078",userMessage:"高性能混凝土在桥梁工程中的应用特点?",aiReply:"高性能混凝土在桥梁工程中的主要应用特点包括:1.具有更高的强度和耐久性;2.抗渗性能优异;3.施工性能良好...",timestamp:"2023-10-14 11:03:51",status:"liked"},{userId:"SD00234",userMessage:"桥梁健康监测系统如何设计?",aiReply:"桥梁健康监测系统设计需要考虑:1.传感器布置优化;2.数据采集与传输;3.健康状态评估算法;4.预警机制建立...",timestamp:"2023-10-13 16:45:22",status:"liked"},{userId:"SD00156",userMessage:"桥梁施工质量控制要点有哪些?",aiReply:"桥梁施工质量控制要点包括:1.原材料质量控制;2.施工工艺控制;3.质量检测与验收;4.质量记录管理...",timestamp:"2023-10-12 09:15:33",status:"liked"},{userId:"SD00345",userMessage:"桥梁抗震设计规范要求?",aiReply:"桥梁抗震设计规范要求:1.地震作用计算;2.结构抗震验算;3.构造措施要求;4.抗震性能目标...",timestamp:"2023-10-11 14:28:17",status:"disliked"},{userId:"SD00189",userMessage:"桥梁养护管理策略?",aiReply:"桥梁养护管理策略:1.定期检查制度;2.预防性养护;3.维修加固技术;4.养护资金管理...",timestamp:"2023-10-10 11:42:55",status:"liked"},{userId:"SD00456",userMessage:"桥梁施工安全管理措施?",aiReply:"桥梁施工安全管理措施:1.安全教育培训;2.安全防护设施;3.安全检查制度;4.应急预案制定...",timestamp:"2023-10-09 15:33:28",status:"liked"},{userId:"SD00278",userMessage:"桥梁设计荷载标准?",aiReply:"桥梁设计荷载标准:1.恒载计算;2.活载标准;3.风荷载;4.地震荷载;5.温度荷载...",timestamp:"2023-10-08 10:25:41",status:"liked"},{userId:"SD00567",userMessage:"桥梁施工进度控制方法?",aiReply:"桥梁施工进度控制方法:1.进度计划编制;2.进度监控;3.进度调整;4.进度报告制度...",timestamp:"2023-10-07 13:18:36",status:"liked"},{userId:"SD00321",userMessage:"桥梁检测技术发展现状?",aiReply:"桥梁检测技术发展现状:1.无损检测技术;2.智能检测设备;3.检测数据分析;4.检测标准完善...",timestamp:"2023-10-06 16:52:19",status:"liked"},{userId:"SD00678",userMessage:"桥梁施工环境保护要求?",aiReply:"桥梁施工环境保护要求:1.噪声控制;2.扬尘控制;3.废水处理;4.固体废物管理...",timestamp:"2023-10-05 09:41:27",status:"liked"},{userId:"SD00432",userMessage:"桥梁施工成本控制策略?",aiReply:"桥梁施工成本控制策略:1.成本计划编制;2.成本核算;3.成本分析;4.成本控制措施...",timestamp:"2023-10-04 14:15:33",status:"liked"},{userId:"SD00789",userMessage:"桥梁施工技术发展趋势?",aiReply:"桥梁施工技术发展趋势:1.智能化施工;2.绿色施工;3.装配式施工;4.信息化管理...",timestamp:"2023-10-03 11:28:45",status:"liked"},{userId:"SD00543",userMessage:"桥梁施工质量验收标准?",aiReply:"桥梁施工质量验收标准:1.验收程序;2.验收标准;3.验收方法;4.验收记录...",timestamp:"2023-10-02 15:37:12",status:"liked"},{userId:"SD00890",userMessage:"桥梁施工安全风险评估?",aiReply:"桥梁施工安全风险评估:1.风险识别;2.风险分析;3.风险评价;4.风险控制措施...",timestamp:"2023-10-01 10:52:38",status:"liked"}]),u=K([{id:"KB0012",content:"公路路基不均匀沉降处理方法:1.采用换填法处理软土地基;2.设置沉降缝和伸缩缝;3.加强路基压实度控制;4.采用预压法减少工后沉降。",tags:["路基","公路工程","沉降处理"],timestamp:"2023-10-18 14:32:45",source:"《公路路基施工技术规范》(JTG F10-2006)"},{id:"KB0007",content:"高性能混凝土在桥梁工程中的应用特点:1.具有更高的强度和耐久性;2.抗渗性能优异;3.施工性能良好;4.能够满足大跨度桥梁的承载要求。",tags:["混凝土","桥梁工程","材料应用"],timestamp:"2023-10-17 11:03:51",source:"《公路桥涵施工技术规范》(JTG/T F50-2011)"},{id:"KB0034",content:"大跨径桥梁施工技术要点:1.采用悬臂浇筑法施工;2.设置临时支撑体系;3.实施智能监测系统;4.严格控制施工精度和质量。",tags:["大跨径桥梁","施工技术","智能监测"],timestamp:"2023-10-16 16:45:22",source:"《公路工程技术标准》(JTG B01-2014)"},{id:"KB0015",content:"公路车道宽度设计标准:1.一级公路车道宽度为3.75m;2.二级公路车道宽度为3.5m;3.三级公路车道宽度为3.25m;4.四级公路车道宽度为3.0m。",tags:["公路标准","车道宽度","设计规范"],timestamp:"2023-10-15 09:15:33",source:"《公路工程技术标准》(JTG B01-2014)"},{id:"KB0029",content:"桥梁预应力张拉施工注意事项:1.张拉前检查锚具和钢绞线;2.控制张拉力和伸长量;3.实施对称张拉;4.做好张拉记录和检测。",tags:["预应力","桥梁施工","张拉技术"],timestamp:"2023-10-14 14:28:17",source:"《公路桥涵施工技术规范》(JTG/T F50-2011)"},{id:"KB0018",content:"SMA与SUP沥青混合料区别:1.SMA具有更好的抗车辙性能;2.SUP具有更好的低温性能;3.施工工艺要求不同;4.适用场景有所差异。",tags:["沥青混合料","路面材料","SMA"],timestamp:"2023-10-13 11:42:55",source:"《公路沥青路面施工技术规范》(JTG F40-2004)"},{id:"KB0005",content:"隧道突水突泥防治措施:1.超前地质预报;2.注浆加固围岩;3.设置排水系统;4.加强施工监测和预警。",tags:["隧道施工","安全防护","突水防治"],timestamp:"2023-10-12 15:33:28",source:"《公路隧道施工技术规范》(JTG F60-2009)"},{id:"KB0021",content:"脚手架搭设隐患识别要点:1.检查连接件是否松动;2.立杆垂直度是否满足要求;3.横杆间距是否符合规范;4.安全防护设施是否完善。",tags:["脚手架","施工安全","隐患识别"],timestamp:"2023-10-11 10:25:41",source:"《建筑施工安全检查标准》(JGJ 59-2011)"},{id:"KB0043",content:"高铁轨道精调技术要点:1.轨道几何状态检测;2.扣件调整和更换;3.轨道平顺性控制;4.精调后质量验收。",tags:["高铁轨道","精调技术","质量控制"],timestamp:"2023-10-10 13:18:36",source:"《高速铁路轨道工程施工质量验收标准》(TB 10754-2010)"},{id:"KB0038",content:"桥梁健康监测系统设计原则:1.传感器布置优化;2.数据采集与传输;3.健康状态评估算法;4.预警机制建立。",tags:["桥梁监测","健康评估","智能系统"],timestamp:"2023-10-09 16:52:19",source:"《公路桥梁技术状况评定标准》(JTG/T H21-2011)"},{id:"KB0025",content:"公路施工环境保护要求:1.噪声控制措施;2.扬尘控制技术;3.废水处理工艺;4.固体废物管理。",tags:["环境保护","施工管理","绿色施工"],timestamp:"2023-10-08 09:41:27",source:"《公路工程施工环境保护技术规范》(JTG B06-2007)"},{id:"KB0041",content:"桥梁抗震设计要点:1.地震作用计算;2.结构抗震验算;3.构造措施要求;4.抗震性能目标。",tags:["桥梁抗震","结构设计","安全性能"],timestamp:"2023-10-07 14:15:33",source:"《公路桥梁抗震设计细则》(JTG/T B02-01-2008)"}]),d=ee(()=>n.value?l.value.filter(M=>M.userId.includes(n.value)||M.userMessage.includes(n.value)||M.aiReply.includes(n.value)):l.value),c=ee(()=>d.value.length),f=ee(()=>Math.ceil(c.value/o.value)),p=ee(()=>{const M=[],O=Math.max(1,r.value-2),k=Math.min(f.value,O+4);for(let R=O;R<=k;R++)M.push(R);return M}),v=ee(()=>i.value?u.value.filter(M=>M.id.includes(i.value)||M.content.includes(i.value)||M.tags.some(O=>O.includes(i.value))||M.source.includes(i.value)):u.value),h=ee(()=>v.value.length),g=ee(()=>Math.ceil(h.value/s.value)),y=ee(()=>{const M=[],O=Math.max(1,a.value-2),k=Math.min(g.value,O+4);for(let R=O;R<=k;R++)M.push(R);return M}),m=M=>{t.value=M},b=M=>({liked:"已点赞",disliked:"踩",empty:""})[M]||"",w=()=>{r.value>1&&r.value--},A=()=>{r.value<f.value&&r.value++},S=M=>{r.value=M},E=()=>{a.value>1&&a.value--},D=()=>{a.value<g.value&&a.value++},_=M=>{a.value=M};return qn(()=>{}),(M,O)=>(L(),G("div",LHt,[x("div",FHt,[O[6]||(O[6]=x("div",{class:"sidebar-header"},[x("img",{src:MHt,alt:"AI",class:"ai-icon"}),x("span",{class:"ai-title"},"AI后台管理系统")],-1)),x("nav",UHt,[x("div",{class:oe(["nav-item",{active:t.value==="chat"}]),onClick:O[0]||(O[0]=k=>m("chat"))},O[4]||(O[4]=[x("img",{src:PHt,alt:"对话记录",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"AI对话记录",-1)]),2),x("div",{class:oe(["nav-item",{active:t.value==="data"}]),onClick:O[1]||(O[1]=k=>m("data"))},O[5]||(O[5]=[x("img",{src:NHt,alt:"数据资源",class:"nav-icon"},null,-1),x("span",{class:"nav-text"},"数据资源",-1)]),2)]),O[7]||(O[7]=ki('<div class="sidebar-footer" data-v-c5b9f548><div class="user-info" data-v-c5b9f548><img src="'+RHt+'" alt="管理员" class="user-avatar" data-v-c5b9f548><div class="user-details" data-v-c5b9f548><span class="user-name" data-v-c5b9f548>管理员</span><span class="user-role" data-v-c5b9f548>超级管理员</span></div></div><button class="logout-btn" data-v-c5b9f548><img src="'+BHt+'" alt="退出" class="logout-icon" data-v-c5b9f548></button></div>',1))]),x("div",zHt,[t.value==="chat"?(L(),G("div",$Ht,[x("div",jHt,[O[9]||(O[9]=x("div",{class:"header-left"},[x("h1",{class:"page-title"},"AI对话记录"),x("p",{class:"page-description"},"查看和管理所有用户与AI助手的对话历史记录")],-1)),x("div",HHt,[O[8]||(O[8]=x("img",{src:p0e,alt:"搜索",class:"search-icon"},null,-1)),cn(x("input",{type:"text",placeholder:"搜索用户ID或问题内容",class:"search-input","onUpdate:modelValue":O[2]||(O[2]=k=>n.value=k)},null,512),[[qr,n.value]])])]),x("div",WHt,[x("table",VHt,[O[10]||(O[10]=x("thead",null,[x("tr",null,[x("th",null,"序号"),x("th",null,"用户ID"),x("th",null,"提问内容"),x("th",null,"回答内容"),x("th",null,"提问时间"),x("th",null,"状态")])],-1)),x("tbody",null,[(L(!0),G(Rt,null,un(d.value,(k,R)=>(L(),G("tr",{key:R},[x("td",null,je(R+1),1),x("td",null,je(k.userId),1),x("td",qHt,[x("div",GHt,je(k.userMessage),1)]),x("td",KHt,[x("div",YHt,je(k.aiReply),1)]),x("td",null,je(k.timestamp),1),x("td",null,[x("span",{class:oe(["status-badge",k.status])},je(b(k.status)),3)])]))),128))])])]),x("div",QHt,[x("button",{class:"page-btn prev-btn",onClick:w},O[11]||(O[11]=[x("span",null,"‹",-1)])),x("div",ZHt,[(L(!0),G(Rt,null,un(p.value,k=>(L(),G("span",{key:k,class:oe(["page-number",{active:k===r.value}]),onClick:R=>S(k)},je(k),11,XHt))),128))]),x("button",{class:"page-btn next-btn",onClick:A},O[12]||(O[12]=[x("span",null,"›",-1)])),x("div",JHt," 第"+je(r.value)+"页,共"+je(f.value)+"页 ",1)])])):xe("",!0),t.value==="data"?(L(),G("div",eWt,[x("div",tWt,[O[14]||(O[14]=x("div",{class:"header-left"},[x("h1",{class:"page-title"},"数据资源"),x("p",{class:"page-description"},"查看和管理已标注的相关文档知识点")],-1)),x("div",nWt,[O[13]||(O[13]=x("img",{src:p0e,alt:"搜索",class:"search-icon"},null,-1)),cn(x("input",{type:"text",placeholder:"搜索ID、知识点内容或标签",class:"search-input","onUpdate:modelValue":O[3]||(O[3]=k=>i.value=k)},null,512),[[qr,i.value]])])]),x("div",rWt,[x("table",oWt,[O[15]||(O[15]=x("thead",null,[x("tr",null,[x("th",null,"ID"),x("th",null,"内容"),x("th",null,"标签"),x("th",null,"录入时间"),x("th",null,"来源")])],-1)),x("tbody",null,[(L(!0),G(Rt,null,un(v.value,(k,R)=>(L(),G("tr",{key:R},[x("td",null,je(k.id),1),x("td",iWt,[x("div",aWt,je(k.content),1)]),x("td",null,[x("div",sWt,[(L(!0),G(Rt,null,un(k.tags,N=>(L(),G("span",{key:N,class:"tag"},je(N),1))),128))])]),x("td",null,je(k.timestamp),1),x("td",lWt,[x("div",uWt,je(k.source),1)])]))),128))])])]),x("div",cWt,[x("button",{class:"page-btn prev-btn",onClick:E},O[16]||(O[16]=[x("span",null,"‹",-1)])),x("div",dWt,[(L(!0),G(Rt,null,un(y.value,k=>(L(),G("span",{key:k,class:oe(["page-number",{active:k===a.value}]),onClick:R=>_(k)},je(k),11,fWt))),128))]),x("button",{class:"page-btn next-btn",onClick:D},O[17]||(O[17]=[x("span",null,"›",-1)])),x("div",pWt," 第"+je(a.value)+"页,共"+je(g.value)+"页 ",1)])])):xe("",!0)])]))}},gWt=Zo(hWt,[["__scopeId","data-v-c5b9f548"]]),hke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAalSURBVHic7ZxBbts4FIb/Jzfosp4T1D1BPSgGQVdRTtAcwdkFjoEovkDoCzgKkATZJb1Bc4KqqxZFgUlPUOUEdZdFa75ZWJ5JzUeZFK1uht+SNknxlyzx/e/JQCQSiUQikUgkEon8biikc5ap7g+iVyBOmZESoQugW9eHGSUBMxCKucbZVa7KkGMYZSrVCVJi7DDQI0JvTZcZM2YJ4U4Dt5dTdRMyf2MBh2M1IOAEWHvA67iZa0x8hTzIVK+T4ATAIHD+koFJUyEbCTgaK8UL8TZFOdfYdRWxEu8twk/evxAwOZ8q5duv49uhBfEAoJsQ9l5sp7efPhSzui+2IV5Fuv0ypY/vi8KnU+Lz5eFYDVoQb8lSmFpaEg8AwMDJcKwGPn28fsKHY/UF0sEzCs04ewwUea5qr6BhpvqUIMXiREgPnOOLqcrFvov77rXw0YyBM2i8uczVXd38Waa6P4E+E05ASIWvlFsaf65bxxJnAW0H3/TeYfspMqO8PFXPpD6WE+h1/3yI9XbENLg4PXntMobzTzgBXpkToWgiHgBc5aokjf3VdiL0DjLVW20fZqoP4eonjf2mW6HzqVJgFMYHxKnrGM4CakbfnAcT1/4S57kqwDB+ch2iHWMuoufGAIziPFdFyDFoxpkxLIs/bRFnAatN8i88grl4b8i8Aigx55LaQOHzP4Ywv7BWGz5PYWNQ1xttHQx8W23TzH+4tEl9fbGsoRUBIwJRwECigIFEAQOJAgYSBQwkChiIs4DMKFfbqvAq9ACMCIOYvri0SX19kdYgrdWGeyQCYdAEe679JbJMdRlmiKiZjQ0yMd+vtjGQZply3vRKVM7Qr22Ac4DgfgUS3gkTHUmBvys/EjklIIVXVdi4urBuNUYjqmM3+wvhpQ13N0aLg3Y7Cd6OMpW6jgMsrrzDsToFkAkf30jhVZ6rmWQ8AMgOx+rU90ocZSqt7DSj31ybBoMNX0P1GrYkDqMA4W5dfJoAzxlIYYk35xrPbPZU5SEa98KKkoA7DXyum5+AJ2CkIPPWUXFzMVWGzWbjkesXAWCuMeks7hk94chSAOm6M8I1nxHqs3NXuSpHYzWxpBV6DPQIDvdl+0GWc+1n0XkllT59KGYvttPbhLAHD8fCBVdn++P7oth+mRLg7tk50sjZ9s7KtSGib1qgBREbpwWCKhMCk+szMO7m3NySD02uM6MkwpktieVCkIBLhpnqE9FzStCVjM9fJmT6Qsz3j4C7TRiywOKp/h1IE6InTCwmpJYkRF9ZYzZnfhdaVhKJRCL/dzbyEDnIVK9DtOP6ENHM31zKQFz5r1yDnro+RJj587oyEBeCBDwcq4wZRw5FjTYa1QYuWZw4XFdhWZM9aVBtINBQwE2XmDWpr9lwmV3jjbR3JNJSfZ5XbV4LNYrO9YmreAnYYnEj4ChiSwWeQEMRvdyYjsUABQAw7kAoHO0ssdKKgZODTN3U2Vk14s0IKBztrL6lNnAZGm7ezqrc24HwUUka+z5VUlmmlk6yYah2CNcAdqV+Hbv7nG9pTHye6qNMpZzgGuaJHIwy9dp1Pc6OdCfBkdA8m2vs+paY5bmaXUzVMQAziCf0JXe5ahtIw11M1bHvlug8V8VcYxdC/kMLeRIb7mlNuWau8RYEALYW5qWR5/gpJJq+y9ZVueVpgD7kKlclw7TviWHUJ9pwTyoJ+yyW8yTO5LmakZBAYqKnq20J0ZPVNtqEo6Pxxpjf4yHpU2BpDLqJnbx005eiCalt3QPDBWkNPoFBrEwIJAoYSBQwkChgIFHAQKKAgUQBA/ER0NiwhpaWAVVwv0JC9NWlTerri2UNLZS3sTmoJbzyQ3iFjLU5l9RmCS+9kMJGaa02fCKRwuhMosHgzChTqWQrMbMRYcyZjfpEEPq+pXXGXGQ6PInHK2QeZgIVRhshHY2bva15kKleZSetUkrh1VWuSqn0lhNcNy3yHI2Vkk6gBm5dx3D2A7eYb38QSqy+3wucHB6rHWJMXMo1hpnqI8EeAUeQDArY3RUinAE4XWnudRL8fThWE9YoXF64XpSB4IgtDo9PkskrqVTzxvimKC+m8svWS6xvzW8IBvZ9BPTaxlxO1Q3VXCGBlJXBWUv1nbKNA6AGKU7vrFxLBY7OacW2ijx/29+eAAsR/3qZ3hMaJ7QfcjP3fG3/gYhdCNsQT0qu+aOLdQSXdgzHapAArzSj7/HXTyUT3iU6/JX9KtV6BEbKQNf1r5+IUICp2GK+3VSJSSQSiUQikUgkEon8Hv4BSokHjVtCxsMAAAAASUVORK5CYII=",gke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAXuSURBVHic7ZxPUhtHFIe/1zKUd5FP4MkJrCwSxyuLExhOENiBoIpBPoCaA0QeVwWcHeQEwAksr+yKF4YTWL7BZJeCol8WGhGMB02PZkaapPStYKanu+c3r7vf6z8SZkwntC2gJYYnCgFKa3xPhCD5M1YlFohVGIKcq9MLgeFhZM9nWV+puoAwtM0rw7rCc4E20CyYZawwAM6cY/B7ZIdF6ziJygTaCu2qEXYR2lWVAaBwCpwd9u1xFfmXKlAY2ualkV1BQ4pbSi4UhsB+2UKVJtB214ZAjxkLc5eyhSos0E5o2yr0qm5KeVEYOsdK0T7KFHl4u2tfqeFt3cQBEAgahs+d7n6vYD752Qxt0BCO6ihMKsL59TVr01hTboE6oW1hOBFufJb/BApDHGt5/ahcAu2Etq2GEwp2xKoMRTgFvjjHUOEcYPyFw9A2/x6VETQMLeAxShv516mcktgJG29+tae+D3gL1OnadYGj6eoFKAOEsyXHcRTZeJosNkMbGENblF+KNG+FDd9RzkugrZd21SgnU9bnWB2vyw4RNkMbNAw9YH2a58Wx8ltkB5npshJ0QtsSw1tyNiuFU+fYqzoUKCBUrI6VrA83UaDEpN/m6ZAVhsax4fN1yqTTtetAL29ds3yliX5Qo5FvtFI4XXb8MGtxAA779tg5VoBj32cERu7K5DTpdLr7PUGtb2GK2MN+b983fZXkrTsQHfTtXtqNRtrFzdAGZjQMe1EncQA+vh+8+/HZCsn0ig8/P33afvfnh8Hw7o3UJmZGnbIXdRNnzGG/t6+I9U2vQmpI8o0FJf7OulemNRVnTC5LEoKfnrX/+vh+8OH25TQL8g3ujusszpiRJXl3F70wtF+5M18JlFhPkJWLwvDaUXtxxiw7NpJ5oiyal0Z2b1+4a0G+1rNftQNYJlFkY+PY8EmbzIbe+j8hR6x1fNC3XoX5sBnaAAgEmsaMrFcdsYPhQzifNm5Lo9O1JwKrWemcY+1NNApoH9y6/sKnkDKaVhIerKK8SAs6xYxGjytge88WDnLHOMdew2QLZIRdkn5LblX4s0cZhaynYIAZKxItO31dRKjtrj3yKX/J8SiKbGwAjPFzqIpYT6dr1xuGTz6Vu4emoPbS8ClZfJwKdbz2SXdlRvUcd9LZzUunX6Qbuf4cUcKKh0AghrdJcJqbw8ieowyy0ik8h0QgH0dKhT+mqdAUcZEPTYGjrZc2sz9JRTjLTjLSxCTmmvllnctW/S7bXRtWIM4NRjlKRsFcLDmviL/ZCW3LqM90hnKet3nthLYNvMrzzBQ088SNY6LIxqpejmPLiJEnmckkv/XcF/yVjUAwTX8kHrMVYnhiQH1GhC95Ct8JbXvGa2bTfIzMd1IIjGh2E7t25Jpwn5X1jBEItsJ8HbZzHk1MaRn1G3qzM0sIQ9ucx4qrMX6RwJjxWlxmviLZAj0Eb8/10iPWqQL1nz3MhcHDgnK59kYeF6nQtAgEd+dyJuEzKosQFNrdkZopGpSdpy+XFewXKF0gzz6tElwFZZdvQTrfHWZlU7pA/zcWAmWwECiDhUAZLATKYCFQBguBMqibQDE54r5ZUCeBooO+fbTk+N5zmXgm1EagazeaSI8iGwv5ZzCrojYCfYXHJN6seJCdZDY0GrzaDO2aQKtORxxqIxBKy3P5e6bURiCFU0lGMFXat86vzpVaCJS2la/TtZ/rcGCmHp2007Sl4Jmebr6PWgi0nOr3yEIgGB2NSl0UcJprsbIq5i6QCM3UDQhzWh25Sx066WajwUmnu3+zVi5oE3R9jnW6oQ4CgdISvz0CM2f+Ao0O3H5zkKRhaCnsznuon7dA8dI1KwfpK7eD7a6F6vcYTWS+nfR9I1hC3l0lVTBfgTI2Zj2sgbM4V4HUcTHpfhTZGJ2vSPP2gzJffvQDS/OjfIH8Xyj2PCqeuWV3jKlgPrv0UWzJsXdluFDku4kJ0wPUbzjs2+NO1wKTPWt1evGmgp/vKl2gZFSKysyzql+X8mHefVDtWQiUwUKgDP4B+8cqeklqZ/4AAAAASUVORK5CYII=",vke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAekSURBVHic3Zy/cttGHoC/3zK8SWeW6cI8Qei5STTOFaG6u8r2E4TuKCkzgekH8Kq8whIyY8vurHTX2XoCIZWUnGfEdOmCvAHTXSJx9woCMkUCIP4sQMpfJZEEdvlx97fYxQ8r5ODbkdYW7rQN+76vJ3mOWQe7nu6JyOeI7WHpW+iI0AE6wMRaJgIhwlhEwqupPXnl67BKmbLqA5G8p9G/4dSwXbVQl3ie7vyl8LB8I0K34OFh23C3SqNoZb25IA+go4TBl/f6f/73LDgvW6gLhp7ubn3VPzTCfwT6UUsrSufK8tO78+DXsvVIFZggL+Zj4J9f3ut3/rHV/+n8PPhf2cLLsjvSWglvgF7FU4XG8u9350HpFpjYhTPkLVWgyS499HS31eINtrI4gIk1bB/5elzlJEstsIA8aLBL73q6pxRnUDjOJeFEHiy0wILyFvHrGqV3R3og8NrR6ZzJgzmBFeXFOO/Su57uieLC0emcyoOoCzuSB4679NDT3ajbfuygbs7lAbQcyotxNkpvfdW/AD5xUKda5AEoC3dcnzTCu1RcDD3dLXPwtyOt2bABIwnVNuwDYR0nB7otxcXeSHtFDhp6uuuoV9QqD0D5vp5MDdtAXXPcDnC4N9KHnqdzzRZa6nbIg7lROGolh3UWRo5ReujpbkvxW8VyGpEHoOI/XhxoH/BrLm9ll1aKfsUyGpMH8NH8P23D/qXiAW6CdxodZi098ccSy3er14jSMYZHL2uU53m6cwW9Kwhf+TpU8282EA8zGXq6i1Sb5yqRuq4qGHq6e6m4sIrTluLU83RHLX4oik/7dVUiC6m+ugJiXSw0LBHF5lPe987upcj9JYHQWDxcQlR1gVJD+EmQFxVme4kCYRYPqe/6MBEFn1c9h3Gz1HVNqjwAS7rAdcRDa0utKt9AhG7e681VZMoDLHRTBcJa4qGTL/6Xg268Sl5MpkBoNh5aRwJFpFIoyCtPZEULjGksHloe4iJkVBiJ88qLmOQSWEc8TIpTR74eWwfllB2JC8rD2pwCwX08vGzNLkQXX3chscxIXFQegEBYeNK0N9KHQKHlqYwajNtTtpPuo0RL+aeUjYuWsQihgV+sYSwQps2Py8iL8AsL9DzduZzdoyhaWDJ1SkxiQWwLJlbxmhLfx8KjUtP26Be7wNUXa1qiI6zhbu4YOI/z60NLr86YWBPhka/HFRaO8uF5unPZ4jRXNsEtaoki4j1/9vT7Ui2wCL6vJ+0p2wir1+huUUu8mtoTyDETccEHKPE4vi3RiED4sCROzfv435hA+DAkCuzP3xSrfRBJwvHA8o2IhNOp/V0gVNCZQqfVkk+ttT2gj7tF1vDFgf7sZvXWhCuJeYhEfwcMyhwfkXhLdm0CoVmJcD0BeEoJkdZwN2kquFaB0LxEgJ0n+oGyvCbfNeXEwuOjA32c9GZjg8jeSB/uenpJkquBpQgvn+m3U8NdVq9xhtawnSYPGmqBeyP9mlm3Sc0aKNMSAS5F7kfPhfSIngcBsMKPyhA893WQdprMVRhhPJ3ycFWyaO0C5+TFuJE4az3xQzSZn7Own9aKEiROLHx/dKB1jjrUKzBBXowriUU4bhseJ8XPoae7LeGNFU7+ZvCLxNjaBGbIi1mHROc53LUIzCEv5tZLdC6wgLyYWy3RqcAS8mKyJbq8hfAeJxKdXQdWkAfQEcVp2nVipYql020pTssmwcc4EVhRXkyHWXLnDXY8XWfCZ2WJlQU6kgeANcuzEaX42sW5M6gksZJAl/IAWknre+4HkCRKSywt0LW8DJq6iVRKYimBDcprmsISCwusU54V+XTxNZFms2QpKLGQwLpbnhX72eJrBn6pq7wMckvMLbCJbit2ecRVhqDOMjPIJTGXwMZintBbXCx97usAu7kSVwpseMDoJOU3i13PcysRmRIzBa5htD1Omg+vuRVChsRUgeuQ9+JAP0p7sz3Lnw6bq84SiRITBW6aPLiRpx02U6VEliQuLWdtorx5KqTjuuR6KeyGwE2XF7MREqM7g9c7F0WbPLhJHs9HKXkA786Dyd+3+idKeMD6Ei4/mQp/CjjfGSgPpeXNs/aWaAkUgLjdN2YVTuTBLFd7rQOL0FO7Iz0g+xc8xsrAGB4CxxWLdCYvZt0SPxLSV3yN8PDlM/127qW3O0/0ibK8KVGWc3kxr3wdDj293Xh3toyVtam7ZBwvyANmiTkUb4m1yYtZR0u0wg8qbd9RYzjJODIoUE7t8mIalWgJjg70sSIlzzhr9wtj7R85i2lMXkwjEoVxNLVEWZuSqC22n3a8UtzPUUzj8mJqlbiQ5KlEUlc5BjtP9PJ92tlrgxXFrE1eTC0SEzJkZcfTD5TKHFWPjeFEidyJWuVgRTFrlzePs4vtlPRiAdgb6d8qFzBjo+TFVJaYkZutAIzwuFINZ2ykPKjYnVcktrcA3p0Fv27d6wuU3jltY+XFlFqAyPFUwPVqzM9nQVBGosD+iwPtogXXTiGJOR+puLER989nQfDFvf7v0SZgK5O3jfDo6EC/ylP5TSGXREvQNvwrT2pdaoJltMT1NZYe0WzFWiYiBMZw8tJfnubdNnZHehDtV9gDJljGVvgh67mQRf4PlainFlLaGJ0AAAAASUVORK5CYII=",mke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARrSURBVHic7ZxLcts2GIC/n6q7Vm+gnqDqItNJV/QJ4pwg8s6xPRNWPYDgA0SmZ/za2T1B7RNYXWWmXUQ3CHOCel1X/Lsw1agqXyIk2SLx7STiNd8AIEA8hAV4G5gdz+OVKr4IbaC9SPyK3KNECOM45vYiNDdryLM0UibQ25/NjqccA53VFqcUkcLR+dBcP3VBAFpFAQ77xghcsJ7aVoa2wM4PL335/cNo9NSFyRV42DdGYbCuwiyIX1XiYWD8Fz/6gxcv/W/++DAa2xQiswnv901P4Mom8XUQC68v3pfvF/9XKYTx1oTtMDT3VfL3sh7I8615/yHpm0uR2qKU7kOLuyAwlbqoVIFvA7PD83hhlKGTlDeX/b7pZXZHFhJTBXoerxZN6CkpU16B73IDVJSY3oSV7iKJPDWq+EVhRCQqTmhxiekCZWOaLwDJoD6X0/eDE4TiN+6CEr/K+L9U5LOhKTUQt+Ggb7REsFLl3Zqw/dDirrCFfZFY+HbOfAvXkTA091sTtpdZExslEJYvsXECYbkSGykQliexsQJhRmIZMiQ2WiA8SiwdOEVi4wUujNJ98L7Mv53AavQO+iYAJ9CGQRCYthNYnfbfLXnjBNqg6juBFsRK1wm0QATXB1riBCZUWlACN4wBQNUJtEKEyttFnEBAYm6rxnUCgdPQjFBGVeJmrYmUouR6xUYwUXZbwh0Lroe7GphwGZpoErMNRIvEcwJnmJF4XTaOEzjHZWiis6HZncR8q7Bb1Dc6gRlchiY6H5prFX7LC+cEWuIEWuIEWuIEWuIEWmI1E3lOTGdFqkQCEUIkMb+chma0ynxrVwNF6CD4QE897g765tN+3/RWlV/tBKbQEbg66JtP+4FZ+s7bJgic0hGPj9MF8WXRJIFTjpcpsYkCAY6X1ZybKhDx+LXq4ZpZaiNQ4UjhSOCGct/0On95WDfl2owDz4fGzP5O+rncY2AC7wCTF6aI2tTAec6GJtSY78lf820fBsa3yae2AgHOQzNWOMkLo5bH2motEP5t2tm1sMQxsTxqLzAhc+FcLU/iN0KgwuesZ2J5LrARAleJE2iJE2iJE2hJIwR6In+uLO1VJfyc0Dh/A+VeYDpZz7z8uxbuGyFQVDOHMQCeRy/t/73AdJSc0+1K1AiBycJSZi0UGMyvmwSBabeEK/K2uwnj2nyNKUQZJ4tNqQhcHfxk3iTnh9sPsEPBLCWOuW2MQFGONEfgYyB8KD03ji5Cc9OIJgx223jTUDiCkvcH1oW9wHRaHh+x/ICgcHM+NK+hIcOYKZehifRxB2rlcyEI469jdqc/GyUQko+sFfZCw2PNm78qr1FNeJakOQ8gfQw4RwScnA1NOP+gsQKnJCLfoXQRuiT9oyqRCKOii29lLzCdlnA1G3njUUYTZfcyNNGqs/ISeT51kQcg+MksYuV4eaPzjUbWcwdind/Ca2lRdRa4FpxAS5xASzxspjUOPLTE/XmbyBK/vOThTbT4ROKGcT8dSK8js38AVv6NEaBqFDoAAAAASUVORK5CYII=",xj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAWtSURBVHic7ZzBctNGGIC/Xw4dbnVvveE3AC7McEK59RZ4AswtTTyTjV8gmwcoMTMUuCWcegSeAPfUzvTQ8AQ1T1D3VgrW34Nl1wWtLMm7kjLj75Txyvtvvn93tVpLgi1btlxhpOkGrGKM7X4U2ZOIbqL6jcANAIX3kcifs5m+V7h8MbKThpu6pHGBA2PjJCIW5R5CXOhLyqUKb5KEi6ZlNiZwYGyswklhaW4uZgmnTYmsXeC+sb1OxAnQ91x1IyJrFXhg7C2JeAX0AoWYzBJ265TYqSvQwdD2RfgJ+DZgmG4k9O/cjT/89sv414BxltQi8HBojcBz4HoN4a4D3925G/9Vh8TgQzgdtr8XOjg9u2rCpcLldZgC/A3dHehpxB5KjHCrUHUJt5+N7OUGzV9LUIHpCeMt6+Y8ZSzK6dORHRept8QZPPicuBOqYoAC8qYKx8/O7EWZelPR44Oh7QucAV3Hob2OcA7slqm/DMF6YPrPneccMtGEB5sOsSK9XBJ2i/busgTrgQInOcXehtaLkZ3sG7vbmc+zmT1RO5wBt4vWaYzt/hNhIrgJvHv62FrXsUF64LrelwgPnv9gX/uMOTA21nlPzETh0bPH+VNFWsce80X+Mhl5PTiq1No1iPIwp/jCtzxYzoujim3ie2PvpwkwfNaTVeSG63veBRpju3lnx1nCqe+YC67N655mFgqxMdZ1siES+bpKTO8CP5C7tAi6ezIa2Slw4Spf07ZKeBcYRdxzlUnCS9/xMmK8cZVF8/nNK6UFDoyND4x1Xwmo+yoh1FJilR24xDGMxb1erExhgQNj48Nj+1Yj3orIzZxDsxupBL2kWjAa2alqtsAkJ7lVyV0HLtZDAkdaNHviXNBmT+4BEJgQbsvsfzgFDoyNP0a8qtDtvQ+Tsogw1ezPe75jOYdwuvYpLUOViaOoNrGqjisSd9sq4/0sLI6hWngK8IA6hm86tL3iX6BkN1KEXt5C1hf7xvZcQ1XE/zzsXWAC71xlnzqSeznlgyhyL5b1KvTAKGHsKtNE7/uO90V83IvlvEX2BvH8ki6WndejA2Nj3zEXDIyNFVxJmoRYyAfZjQGcuy0qufuEG6HCWU7xOETMMNtZede8QjwYujcoqzIYWpv3Y1OoXaAgAp+O7BjNmQvh5GBo+77iHQ6t0fwd8GC7QKGGMDPlUV65wLkPiWkdeUM36B5kMIFpxp07xLC5xAI/XCGEvV8mmECAHx/b47yhDNUlFpGHMs77QcgHQQUCXFMesGYBW1ZiIXkwWTeN+CC4wNHITmcJu3iSWFheTXdpBRcI8/nQh8S2yYOaBMLmEtsoD2oUCNUltlUeBL65KIuVWzHy72eZS1z+vabaRuRBzT1wQZme2GZ50JBAKC5xDY3KgwYFwsYSG5cHDQuEyhJbIQ9aIBBKS2yNPGiJQCgssVXyoEUCYa3E1smDlgkEp8RWyoMWCoQvJLZWHrRUIPwnsc3yoIFLuTK0WdyC1vbAq8JW4IZsBW5I7XPgyoOCPYXTdQ+/tJ1aBBpju5868lAT7evK3QMC54dDe3KVRQYVuG9sL4rof4QjVLuOB8t6V1lkEIEV38jRiMhFkkGPqnzfm0DXMK1ALSJ9vXZlY4EFh2kVvIv0mOQllQV6fHHOOjYWGTDJFQWKjlQq33U/VXiSvherX+J7pUV6SbIynqn+7Cp25uLw+PQhoheVA2c0RCJ5vTPTl+lTlZu+xWiSJXJ1mBZ9u0cGU4UnXyWMFm11EV5ggTdy+BCZJIyjiL7AEVWfSclI8jpCCSycwVUCvlcrn5KvXVnFr8AKGcyiJpGVkvw5fgRukME8goj0lOQFmwj0ksEieBEZKMnlBXrOYBkqiAyeZKfAtLF/LD8IlMEqrBVZY5Jz1+T7xvZ2OrLXRG8rwhciW5TkK8W+sbU8Srtly5YtW7ZsaRP/AtDwUxcccaikAAAAAElFTkSuQmCC",yke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARTSURBVHic7ZzBceM2GIU/UDs7OaoEl+ASmAqiVCDltok9I0YNGGogK81kNrktXcEqFYRbwboEdhCdE5PIwdKORNsSAAIEqcV3lUyBz0M8EO//Ieght5lMSZgruFYKEsEDNevfV7IIPbYmIvQADvllIWcC7oCrF7+gKGrF+o+V3HQ6sBMEF/BdJq+ShPSkcM/ZKli/rVmtVnLrcXhnCSbgu0xejRLugBR94ZoEF7JzAQ+Emzm+dC5q7rueJzsT8DaTqRLcIUi9/pCiEIplV0J6F/CsMfhCUSjB/YffZO7zZ7wIaGkMvvA6TzoV0JEx+MKLkE4E9GgMvnBmOK0E7MwYfOHAcKwEDGYMvmhhONoC9swYfGE8T54VsOfG4AttIV8VcIDG4IuThvNMwMEbgy9eMZyvAl6cMfiiYThi96j+TRTODMFDVfFj8ibhPVE8cxTXo4S7RBHnuhZMktAjGDoJ0Jt8YWgIKJKqZongIfRgBkj5WPPr8TJGMY3rv7OUCpZflzHNT+NC+hXOLaSb3GYyVQlT4qtcXtUs/1zJ8qUPz24mZJkc/5uQCZgDY9ej6yklUJwSbo/2dtY3ImSpYFnXFOeE22O/oXpZhnNkDCbELf0QW/pNBmg4J43BBKexZs/nyRJNYzDBSMAsk2OdrKBnQhobg+59gmYm8iZhpmAKjE1Dl4CGY2QMjexH+z5tM5EtsDEJp/taXKRxn3lVs9ZeSBsbguGAPRqOkTEclBFPtK6ulYm0edQMy28dzZMlhsbQOvtpCCmyTI7/S/hifcHnGIXTlkKWCpZvazY6v+GlKEBRVIqfxM1CvgcyJxc9xjjl/zmTk0QwP/EUtDGGK52/MSQXNwv5D/6XGkbVUPt5UilSIUBg1ubQYVHAtisBn/Bcfhvg1XIrbhbyI12/gjkuvw1ZRhw6WLeuGu1BtVhZ1Xwv4MgJp4EGoy3kwfw2IcxrYs8zEUUBIq+U+rxf2+3+wZMEftBe+HoY10vTzulMZMh7fe4wK29rsntk5jwZTeidlS7RejWMmcgxpYD7x5rcWyaSZXL8OBJTpVTG5VR1xUzECgfrUXeZyLCE7EejTZMBGI6zMGmPUZ/Id7AdYiYCrKuaTbBMxCYr2A/kcSSmqlYzBNc6A3KIzdbXnN0bTheZSC5q/upjJmJiDBpbX577RGwyET9C5qpm/WEltYpF/WQiLbMCk0xkt5syazlPboFN15nIUZ/IkDMR3bDcy9bXrk9E3C7kJ087HDZCTs4kgzET0fnywfyUAqB4MJ0eYiZiQcxELAmViQjYPGUiIz6hOl/owqVkIhC8bNcmE0kJJFzMRCzH9ZKRncxEjFbql0vsE7GgJPaJWBH7RCyJmYgVsU/EmtgnYkFJ6D4RXXompLExmNDNEaAD6BOxJR5C25LOj0E+MBzX9X3OM18dgh3EHapPxDXBj4Lvok/EJ8EFPMR1n0gX9ErAPc0+EaAIccy7Dv8DLEXbK4+V3DgAAAAASUVORK5CYII=",bke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAloSURBVHicvVtLcttIEn1ZlDpmyT7BUCdo6QQmT2DqBKZ2MqkIFdEHUHI9YRKOEGXvRJ3A8glEn0CcEwhzgsbsJlpG5SxYoPBHgR+/HUFUoSqRn5eJLMIBMdR8qlr0DiJdEXRAOE3+L4KACEsiWh1F8uD7HB5yPUWgQ0w69HhAguvshmsQAlhEBp+/+hwcYl1F2KsAhh4PCLgB0NlhmhDAZD5lfz+rqsbeBHDlMct68/vC4thgfGiz2IsARh7fAxiU3iBYkqJHMdhshhTaEOkK0AXQLlnd6jhC75BC2FkAFZsPBJgYg2WdTV9p7orCPYpMh7CCQShAh2jzfwhBAMIKQstjke/bCmknAYw81gBmBX8tIoNJU2c29JgJuEaZRpQjBPC4zTO3FoDW3H5VeEFmsQRMbqfMTee71NxpKVwD0NuuycI/Npi4aoTa9imvCjPk35S/zeaHHg9aCk/YffMAoF8VnoeanULwVhpg3/5fqYuC5XzGvSbzDDWfksI3VIfNQIAHEnoxIv9tAaEQ/RMkpxCcgtAtGReKQe/O51XVGo6aLDjG3wo6KzkSTFzHW3W/QVXkABZk8HDr87Lk/4eaudqk8DTUXCmERhpgvfUHrENXZ/NHg7fvwBe2cqBWEE/Ia1MQGfTK5nPSALvoaynxzi5vP2aJUq7ugTEYf/H50WVNWXz1ObjU3Gu18A2SouCxhlwUjavUAFdqe2zwe5nXvdTcaRG+VeQFgQCTuykvqp7hCq25/drCU0YIIINekTmVRoGrdUwuJicJiCAo2/zI41lL4aVi84vIoLevzQOA73MYRTjPrXNtujkUakAttU3NjNV8xmfZy5bUFNo6AY8/DcYudv5Rc18pvCOioEnKXORrIoOT7DNzGlBFbcmgJ8jYO6HYw0qhxAMBLm6nfF63+UvNnZHH92odJrWI+K8Kz0OPi9aWw5GBDyD1DKXy+0o5QUttczcl2d3Q467LAjIICHhwIUk1jLBDwP1ozB9IMKkIkfB9DkceL5HYDwneZe/baMCl5g4KVNa+sdqFV0EMzl3mcGaEhK4oPI08nmnNpXmDAD8y43K+aCOAFuEemTAnwMU+HJQBKu32SnN35PFLgdNdGINzCJYlQ/WrwovV3PxzTW5c277oDY7iBUieUvr79M5FiFmc5M0uIIOLhIo/fvyT+0owQz4qtQHMRh5fZ8bgq8/ByOPKNRwBgCi8z1wPj407tW0Krbn9U0EXMMJSTvDlEz9qzUtLw4tS5o4oPI3GvIwEF5YYderWEpvAIHlRgM+HqsIMPR68KjyX0OHHKq3zfQ7vpsyRwZkAxYyR0G2towWr4/q6wpFNG1M3GoPSRWyLCq6ehB6N+bTOw9sQem5N96YgI2wTcIMI19mx/8j4I0VEf2TuCfddlj5SWDPC9OYDAS7IoJfiEm8e/r7KwwPArc9xEjZGsaNNjxesspqtSOVvcthTIwjQT/wMAIznUz65m/Li1ufl/BOfIb+JwavCy9BjrhPEfMr+scFJjqRlQflooozI75mbgspJdsMiMugV1fzjTQBI/tcm4OZV4flKVxOwhH84qQibOUFuXRJrBMEyMjiZT/miyrx8n8P5lMcFm4g9/FNdqeurz8F8xj0q1obBlZcmZHkByE5fdQoRhyXX++NN5P4gdEnhuY4BAsDtlJkMesj4BgFukuFRicnYfLPveb8KIdIbqWSAMWwkyWmCLZAAABQhZ/Nt14rqr4IIQusfFonLawY45qcq/2D9zSJzeRCPUbZgGCT/JZWPn5vFZDUG6LumqLvA+od12Ez6h0TYLBsbrVltkLwWF0hiH7BMD0G3jEbamt0icaltU9TKN7EvxLFf1jW+VNgsexHW/ywzl7uAFUCU5/2dpJ1ksXkTBQRm6PE3Fw6+KyxlTtFhQj7f3/xn1mX0BDpDzacK2Ehokblh8PFP7qMEZQSGgH5L4Zmo8fe9g8I6xGxE6GzCYIEWQAnu6xxiGYFB8w+ch0eG5ZLC6UYAVgvGmSFtWjuYynBTQWAArIstTfzDpebOlcffXO/fBSkiVBIyNuGmzrY3LGxNQILNH44JTlwIbSm8ZPKHvYAonzAVUeHiOsA6z3ZKTm59Xs6nHCcnTglOoh44qNvIthBJm6Ui+quIClfavE1OalkYANxNmesSnI+a+2X1wLr5m0Brbufa9AzCvADyVLgsz65lYcCbf8gRGJvgqPzn8SBOnKrmbYqfQK7wIyL/TgnA2nj6ptbmY0heEA1iv0PxIhDgYj7l3NebfcCoXNUovPN5VZsO3/2LV3EdrizPjmN/nX+wTC1X0CRgcmxwdqgq9KXmji2kJrEAHOoB8YZSHr74c1hs2y9ZSlpV948MTm6nzIdshbOsNiX0yOAz4NAf8L/1wM3iLKM6s04wNzHecoMPRvBZKbx3qPsfDPZlpJ8vb617KQ2wF1NvglAcFUoYYHJg1zq45MM3dl63+X3kE7a/IZslhpG8NUsUhcGUeqv8R5MNYg8vFf4hebtrL8DIY205wdYYeawLNg8g3X6TMwEh/CCkPGZXa25X2aitKfRKOj6de3720Wxd2XUKLLIF2ZwAjMEikwp3/lbow4GY3Pq81JrPfrbog4h0jMEPl56fS82dI4VZGf2lgnI2ABDQlvSlvhT0AFj48ylncx3nDpEwMjjbd3x2bZcr6xofjfnZpYZZ1b1aGAXI4CEjyba1yZO6h7nCQd0r29vWC601lUDWZw8W5VOUoKhVRoDH3wwudonZtuen6DN3DKeuMWvrZY7SuSOllAdEBpOWSjdEEtB/baFzqet7fLJwUXcCJkcGvouAC7q+AgCPZPC9Cb+o7hNc9/I+IU92QgE+/+awWFc7b9Idaud8SV6zWsMu45OobZWtEEL85KUQfpDQC4n8J75sFLokeFfRzAxs2R06GvNTZt7w2OBkG9N06hV27Opugq27Q0t6jQtDnAucPo7e+bw6NjhDGe1thq27Q0s2v1M7T+PzAgmb7mO7oy1bHYkbeTxDQfucIZx/+bRdgzWw65EZovcg6dqDCx1YgYggICCAQruwxCZY1rXBxKjiC9sez8nMcVhU9R3bo7OPEFolHag9EdJF9lxCAvvYvJ3n8ChT3x0w3tfJ0l8iAKA2S3ODYBUJGpOwKvwyAcQYeswQfKB6Hv+GNdd4OETN8JcLIMaV5q5R6CrgD3u0vgNbfhNBqAgrEC1/RvL9kKfJ/w8ubB80zNGY6gAAAABJRU5ErkJggg==",vWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAWwSURBVHic7ZpBVttIEEB/NzBvls4NxAmGnCDmBCEniNkRm/ciew5A+QAx4j2bsDM5wcAJcG7gOUE0JxivQ9w1C8tEkiWMZBk/Mv4raMnd1dXV1VXVgi1btmzZ8v/FPNdATV8O7I55o06PgJpCzRg8AFVCAxNjCB38bR2jfiCj55BrrQo48cXbtTQU3sNssgWYKFz85giCQCZrEA9YowJOOyIKZxV0NQGup46Lq0DCCvpLULkCTnzxdix3FF/xZUwU2pc9ua6y00oV0OqID5znPA4NjB3c4hg7mMxX9MQXz0LNGPMHRuvAEVDL6SfYc3Sr2haVKeARkw8VukVXrtmRhpn15y08VEaDczksJWiKShQQCTvMeLTyakVWdcaiRVwPenJctt85Kyug6cuBme35uICV7tc8v2Kg2++JrNK3XeXHAGaHIenJOw6rdFZXgYRTxyEQxtsVzj74crRK3yspoNURH+Ug1dy9DGS8Sr9Z5CnB2lyn+yRKbwHfl9q95RvJ1Q8GPWmvItAyou3wLd62ylYobAG+L7VTX+r3M80nTH/P0S0jRBGio/M63hZFmqV4kgWc+OJZS90o7zHUs96JjjopK0gRspyiwnEZv/OoBZz44p12RHYsdwaGeZMH+M0RFB28LJEVjOJtRstZQa4Cmh1p7FjuNC8YSbLWhCWLaXq7GeonvnhF+9lNN0TO7QzwH/ndPKxdKXVtdqQBUMZ0rwIJW20Zxa3SwAGpU2IZCwr4bhmaWSyeJjTGBD+meltFVhaPHpsdKaUENXw1/FSAtbwBbor0kXCCrY4MgUbGe+1BTyrb41mhcxkn9sGXI2v5K9Y0AW5QM9pTvX3KtnzwAVHM3Ug9D6eO/XVMXuFm6tjfc7xSuDEwnG+Jp2IWzb0GNDB6fW/5t9WWu1Nf6kv6yA1qwqnjsMoiRHzl9xyv5isUD26KWkKrI99Y5qSVkVG6Wb7KAkROLxHUrHPyAHHzjI9T1BKcoc3M9PMx1NVyd9pZjFOs78vMbJJ01zn5Oa2ODCO/k6CIEj5/kptBT15NHfvO8U6hiyZjhDkKZ2klmLQjUSW8PJf9pwz+FB6pFVzzU/Hxvx8oG90BnPpSV8v7rH7juYO1lrepp1/KDJhF3uQVjlOCNaK2tKCFHeOcfiCjQU+OTU4aPQ+abDqdtS7bfIrS9OUgb/JZq3rZk+tcJfiSTrmfTD+QUVYavWNmVm81VWr6UTCSyuMykLEhGa4uM+ksJZgK6gtXgYTGpZRrOGj6cmDntzPxl1cZLE6/JzJXwlP3c1wJVZS8HmSZHYGJ8Y3loyV1hESnQmX0eyLqeF3EmV325Fodr6ua/BznuE00KJ5FSZjX9+ovNChjwusoqynJuSp4i+mwXajx/TKkt7cxeFZTx17ZwsJLIF0vUCW0Ln3slSwsvAR2F+8VJvYqkDAdOkb1tl8OXQz6xhbAKRepd72sxOElk5XzGMcXC/A5kBsWS80LicNL5rtdvMHqBzJ6OAWiImMY/5HCWastd1XHBs9NqyNZZb4uxCpCeVdPGOr3lm/NjshLU0SzI42oYNJIPFBG8ypXoih6FUjY9OVdxm1vzcDZveVjqy1jY83NdKr/KIx/h8lzl8SzmH9koeBFxdEjsoO6cKo/84LMm6ETX7wd8/hFSAEmznD8+ZMkqrWtjmj8/0FPErJ8+FOOrHJOtZHpQpkv82LkKpAw+gJjeblpObVoIoWwypAKJ2+gu+d4nY4GH70aG/Qk2HPsG2P8dM5QBNXl72RQxbaaf2G23++JZG3VhYuRNNGPLoCLE1+83R3zVlUPUDwFzxhq5H/QBMrYKoWvzI3j2BmG6XQ9d5joY0tggmHsHF+j4/3xcYoKVhXLfMBzsfInMi+drQI2LcCm2Spg0wJsmq0CNi3AptmkAsLY3xtLpjamgNi1dujM4pXYli1btmzZsn7+A0xBo6uRjthqAAAAAElFTkSuQmCC",mWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAALHSURBVFiF7Za9UttAFIXPMTMhpV+AGZGKSaWGsTvWvAAyVTrME8Q8gfETGJ4AeIFYlGnipbNDEXWhQwXpVYYUPim0EvIi/vIzKeIzo0JzV3e/e/fuvQKWWup/F1+yuG0iI2AHZAggcA8ApABSSAmB86mN7R8FaJuoJ3JQ2fBRCcggHf8AjhIbZ78M0DaREXmCaqSk1Xx+3gCy70ACAK+BJoBAwI7IHvN3AEglHXy2cfxigPb27qGkQeGI0nBq49PHgD3wAQADACSH008fDp8FEJqoudponECK6j4OTdR8BfRJbgkInZOE0pkP2DJRH+TIvdpbqesfyQJAaKLmKjlB7jidS91LGyeVyAKRY2evU0qpM7Vx6mWjOMZ79kb169U75ymlTnVzAFAFTlKX0rp79pHfhEDkODRRUQOY2thS6iCvl8DBlFop07W9OwLwro7SRdID2SvsMxtPb9KrzD3JWrBxDjICsLEC3H5Lr2zx7U16la0FGx+dPVx785Y3119tmYG2iXqQ+gKyudT1N3fR7wGAK8Z79qmNU0kHAEByq84+l7oAIGnQMlG/BHAVC0pDP+0lwN252zq7c5Z4axd0aeMEDhLk+xLgXyoHkI4BAOSobaKgbiFddPOHbwBQ3Hu31temicJqtkuAmY2PSA6BvNLrICRd5Iz1kO6KFs7P6uwNckygCfKo6BkLfaDV6X5BHmFCrxj9HuEisECeFeYNJwCQzibj9Rq44orb2WTcKWwLNcC8SlMAocjJponKdCc2zir2QOSJyGuR18ydBw68U/XpNq+C7y/s+UAqxwBCAVlDOvBbrJuOe9VWLOnCn35+K6a071/hB4dRa3t3BKlf+Xj43DnvT9EXDaMFCBP1RQ4q49VKumjkZ58W0biiDOaAYd6wArf+ySn65A9JMf1Avq+APKUU0vEtcPpbPyS+/sYv2VJLLfUTWR6eJ45fIAcAAAAASUVORK5CYII=",yWt="/assets/11-7l3W5DeQ.png",wke="/assets/12-DEN8e9Vv.png",Ih="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEsSURBVFiF7dQxbsJAEIXhN0buSZcrpCNSJITS2F3a3AMpq+QAGS5AKLhEqhwh7kDQcARukJSRLNZpMLYguzbeQWnm7yzL409reQBN0zRN0/6znuSw8cvk6W6U3KwX2UZqJkkMMYb7eQ+fKDDYT93EO6SzGX+Hzg4GnuCqySLIIKATV00PRnYGNuKqNwQhOwFdOAImAFAAr1LIs/9iH24+ZV4tsmw4SghAUrt9bSM83A+T9+Uy+7kYsAlXXksiWwPb4qSRrYDn4iSRjcCuOCmkFxiKk0BGvsF5hLdQXNl8ylyuoUMFBjnhw/eccw8aw/08wpcErt74mfl4T8YWV64d6TzB/QNbSRzw50lufQvc+4l3FikRGbJIJXB1pLV4JCITW9xKzdU0TdM0Tb5fy/nLMy4jqr0AAAAASUVORK5CYII=",Oh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAPoSURBVGiB7Vg7bBtHFJy3S1ICjoAgGDjWYs+ePQtCCWD1bhMLTCwgKdQIcmmDjQrDSGIj7u06RgTjgLBPavZRTcKB4YAUIFK7k+J0x6Ng35frJppqj9zPzO3c27cPuMMd/t8QVxM3g4HfMGoI0DNan3zs/3ThYh3lYlIAqFvVE9AXwNPGDHeCoz0X6zgTsFR2RMgUAFyKcGYhYGUjAX0AIDDftJ2cCgDci3AuAHAr4osIANyJ2JiAVnDsLa7/bYvUugL4FPgAvbVOFIkEAJsRUavAGUD8Zg+WZt5Toj2AAADhp3qv/xhGJ/sYwDdl1y8toBUcewt7eV8MD+T2my4AEU7KjgVKCmgGA39pLocqYQcAoGACyl8Ax8Ziul3nLPn/tdUdgt8L2QAAQqYLZZ+Vp19CwO75YUeMnK69dcHYWvPmw1e/jpN9PybaO8HRnqZ5KMCKvLYns/7LaVny4dIFEPpdngvghSQwF1Gv/tn/eZQ2bic42tPGDFfjNkMeKLADiTAYkzBaPcmKIC7JAwUErMfwiMQvqSRckwdyJnP33j3qJeO30epJFolmMPBdkwdyCiD5IGpb4k2egydMp92SB3JY6N67Rz3QxtZZ1uwfeSZeKjtqWNUFgIWyT12QB/J8A2Q3alrhb3mJ3PT7oTy1fMi0EMFO1L5W/NMtneJIFbB7fthJ+tiVDaogVYCIjk9bAf52T6c4Ur8BI9arMdRIcP5FGOHm0LTqFMgOAKk7oKBXubtIpayxCOpW9YRsC9muWemm9U0VYGFi5UK2NkUwC0I08/Z1VlapAgHinVdEauBIF2DU6sQVcVKY+hTC6+hNmyb120sVsF33JgTmACBkuxUcl7555UUzGPhCtqPnD1+v3zFuI1XApH82F1mFzys771WnmI4tq+OD0wpSyQM5vgEDxKevohy43oVk4qigUi9KYZ8MbClvFNsI9Bf28n41ip9HMm0nZHqlTPUdmPTP5krwOnoW8qAZDPy0MWXQDAY+aR/G64i8zpO65Aqj7/dfvE1WmhtGDTdppdV1dZV3Zd2zI+Q+BxbaniSttDSXzzexE81g4G9ZdZosOS60Pck7PreAWf/llDRPo2cB/YZRlWr+u+eHnYZRQyTCJoBnRbLewrXRmxvaj8nfCIwWmrk8C8TlmQcCrIVlEbx6v//ibRE+pYq7YbXBPpZblTkrGCuo0bWxF9t1bzLpn82BsAwJzLwrK10NdEm0I78D+Us0GxMAfP4tFoZgfKVYyDbrwyti5/fv2krjW0V0snuvrRyWIzNShexpNoQwmugOyC4FPshWsgQJwUwoF0Y43lLeKLLXHe5wh2r4D0ZDBfBX3iD1AAAAAElFTkSuQmCC",bWt={class:"chat-container"},wWt={class:"history-sidebar"},AWt={class:"history-list"},CWt={key:0,class:"history-loading"},xWt=["onClick"],SWt={class:"history-content"},EWt={class:"history-title"},kWt={class:"history-time"},TWt=["onClick"],_Wt={key:2,class:"empty-history"},DWt={key:0,class:"loading-overlay"},IWt={key:1,class:"exam-workshop-card"},OWt={class:"config-section"},MWt={class:"config-item"},PWt={class:"type-cards"},NWt=["onClick"],RWt=["src","alt"],BWt={class:"config-item"},LWt={class:"generation-methods"},FWt=["src"],UWt=["src"],zWt={class:"method-content"},$Wt={key:0,class:"ppt-file-preview"},jWt={class:"file-preview"},HWt={class:"file-icon"},WWt={class:"file-info"},VWt={class:"file-name"},qWt={class:"file-size"},GWt={class:"config-item"},KWt={class:"exam-config-container"},YWt={class:"config-left"},QWt={class:"config-row"},ZWt={class:"config-group"},XWt={class:"input-wrapper"},JWt=["disabled"],eVt={class:"config-group"},tVt={class:"score-input"},nVt=["disabled"],rVt={class:"question-types"},oVt={class:"type-row"},iVt={class:"type-name"},aVt={class:"progress-bar"},sVt={class:"score-config"},lVt=["onUpdate:modelValue","onInput","disabled"],uVt=["onUpdate:modelValue","onInput","disabled"],cVt={class:"preview-panel"},dVt={class:"preview-header"},fVt=["src"],pVt={class:"preview-content"},hVt={class:"preview-title"},gVt={class:"question-breakdown"},vVt={class:"breakdown-row"},mVt={class:"breakdown-left"},yVt={class:"breakdown-right"},bVt={class:"calculated-score-row"},wVt={class:"calculated-value"},AVt={class:"total-score-row"},CVt={class:"total-value"},xVt={class:"bottom-actions"},SVt=["disabled"],EVt=["src"],kVt=["disabled"],TVt=["src"],_Vt={key:1,class:"generating-text"},DVt={key:2,class:"exam-detail-card"},IVt={class:"detail-header"},OVt={class:"header-left"},MVt=["disabled"],PVt={class:"header-right"},NVt=["disabled"],RVt=["src"],BVt={class:"dropdown-menu"},LVt=["disabled"],FVt=["disabled"],UVt={class:"exam-info"},zVt={class:"exam-title"},$Vt={class:"exam-stats"},jVt={class:"total-score"},HVt={class:"question-count"},WVt={class:"generation-time"},VVt={class:"question-sections"},qVt={class:"question-section"},GVt={class:"section-title"},KVt={class:"section-score"},YVt={class:"section-controls"},QVt={class:"question-count-text"},ZVt=["src"],XVt={key:0,class:"section-content"},JVt={class:"question-header"},eqt={class:"question-number"},tqt={class:"question-text"},nqt=["onClick","disabled"],rqt=["src"],oqt={class:"options"},iqt={class:"radio-wrapper"},aqt={key:0,class:"radio-dot"},sqt={class:"option-key"},lqt={class:"option-content"},uqt={class:"option-text"},cqt={class:"question-section"},dqt={class:"section-title"},fqt={class:"section-score"},pqt={class:"section-controls"},hqt={class:"question-count-text"},gqt=["src"],vqt={key:0,class:"section-content"},mqt={class:"question-header"},yqt={class:"question-number"},bqt={class:"question-text"},wqt=["onClick","disabled"],Aqt=["src"],Cqt={class:"options"},xqt={class:"radio-wrapper"},Sqt={key:0,class:"radio-dot"},Eqt={class:"radio-wrapper"},kqt={key:0,class:"radio-dot"},Tqt={class:"question-section"},_qt={class:"section-title"},Dqt={class:"section-score"},Iqt={class:"section-controls"},Oqt={class:"question-count-text"},Mqt=["src"],Pqt={key:0,class:"section-content"},Nqt={class:"question-header"},Rqt={class:"question-number"},Bqt={class:"question-text"},Lqt=["onClick","disabled"],Fqt=["src"],Uqt={class:"options"},zqt={class:"radio-wrapper"},$qt={key:0,class:"radio-dot"},jqt={class:"option-key"},Hqt={class:"option-content"},Wqt={class:"option-text"},Vqt={class:"question-section"},qqt={class:"section-title"},Gqt={class:"section-score"},Kqt={class:"section-controls"},Yqt={class:"question-count-text"},Qqt=["src"],Zqt={key:0,class:"section-content"},Xqt={class:"question-header"},Jqt={class:"question-number"},eGt={class:"question-text"},tGt=["onClick","disabled"],nGt=["src"],rGt={class:"answer-box"},oGt={class:"answer-outline"},iGt={class:"outline-item"},aGt={class:"outline-text"},sGt={__name:"ExamWorkshop",setup(e){const t=K("ai"),n=K("bridge"),r=K("桥梁工程施工技术考核"),o=K(100),i=K(!1),a=K(""),s=K(!1),l=K({}),u=K(!1),d=K(!1),c=K(!1),f=K(!1),p=K(null),v=K(null),h=K(null),g=K(!1);K("");const y=K(""),m=Wr({maxSize:20*1024*1024,allowedTypes:[".ppt",".pptx"]}),b=K({single:!0,judge:!0,multiple:!0,short:!0}),w=K(null),A=K([]),S=K(0),E=async()=>{try{console.log("📋 开始获取考试工坊历史记录列表..."),d.value=!0;const $e=performance.now(),Le=await zn.getHistoryRecord({ai_conversation_id:0,business_type:3}),ot=performance.now();console.log(`📋 考试工坊历史记录API调用耗时: ${(ot-$e).toFixed(2)}ms`),console.log("📋 考试工坊历史记录列表响应:",Le),Le.statusCode===200?(S.value=Le.total||0,A.value=Le.data.map(vt=>({id:vt.id,title:D(vt.exam_name),time:_(vt.updated_at),businessType:vt.business_type,isActive:!1,rawData:vt})),console.log(`✅ 考试工坊历史记录列表已设置: ${A.value.length}条记录,总数: ${S.value}`)):console.error("❌ 获取考试工坊历史记录列表失败:",Le.statusCode)}catch($e){console.error("❌ 获取考试工坊历史记录列表失败:",$e)}finally{d.value=!1}},D=$e=>{if(!$e)return"未知对话";const ot=$e.replace(/<[^>]*>/g,"").split(/[。!?\n]/)[0];return ot.length>30?ot.substring(0,30)+"...":ot||"新对话"},_=$e=>{if(!$e)return"未知时间";let Le;if(typeof $e=="string")Le=new Date($e);else{let Un=$e;$e.toString().length===10||$e.toString().length===11?Un=$e*1e3:$e.toString().length===13||(Un=$e*1e3),Le=new Date(Un)}const ot=new Date,vt=new Date(ot.getFullYear(),ot.getMonth(),ot.getDate()),Ut=new Date(vt.getTime()-1440*60*1e3);if(Le>=vt)return Le.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Le>=Ut&&Le<vt)return"昨天 "+Le.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const Qt=Le.getMonth()+1,Gt=Le.getDate(),vn=Le.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Qt}月${Gt}日 ${vn}`},M={bridge:{name:"桥梁",icon:hke},tunnel:{name:"隧道",icon:gke},equipment:{name:"特种设备",icon:vke},"gas-station":{name:"加油站",icon:mke},highway:{name:"高速运营公路",icon:xj},comprehensive:{name:"综合",icon:yke}},O=K([{name:"单选题",scorePerQuestion:5,questionCount:5,romanNumeral:"一"},{name:"判断题",scorePerQuestion:3,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:8,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}]);let k=null;const R=K(0),N=ee(()=>`确定要删除历史记录"${p.value?.item?.title||""}"吗?删除后将无法恢复。`),W=ee(()=>O.value.reduce(($e,Le)=>$e+Le.scorePerQuestion*Le.questionCount,0)),B=($e,Le)=>{console.log("准备删除考试工坊历史记录:",$e),p.value={item:$e,index:Le},f.value=!0},z=async()=>{if(!p.value)return;const{item:$e,index:Le}=p.value;try{const ot=await zn.deleteHistoryRecord({ai_conversation_id:$e.id});ot.statusCode===200?(A.value.splice(Le,1),$e.isActive&&await q(),console.log("考试工坊历史记录删除成功"),Et.success("删除成功")):(console.error("删除考试工坊历史记录失败:",ot.msg),Et.error(ot.msg||"删除失败"))}catch(ot){console.error("删除考试工坊历史记录失败:",ot),Et.error("删除失败,请稍后重试")}finally{f.value=!1,p.value=null}},j=()=>{f.value=!1,p.value=null},q=async()=>{s.value||(console.log("创建新考试工坊任务"),R.value=0,i.value=!1,t.value="ai",n.value="bridge",r.value="桥梁工程施工技术考核",o.value=100,a.value="",k?(O.value=k.questionTypes,o.value=k.totalScore,n.value=k.selectedProjectType,r.value=k.examName):O.value=[{name:"单选题",scorePerQuestion:2,questionCount:8,romanNumeral:"一"},{name:"判断题",scorePerQuestion:2,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:3,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}],w.value=null,b.value={single:!0,judge:!0,multiple:!0,short:!0},s.value=!1,l.value={},h.value=null,y.value="",A.value.forEach($e=>{$e.isActive=!1}),await E())},Y=async $e=>{if(!(s.value||c.value)){console.log("点击考试工坊历史记录:",$e),R.value=$e.id,c.value=!0;try{A.value.forEach(ot=>{ot.isActive=ot.id===$e.id});const Le=await zn.getHistoryRecord({ai_conversation_id:$e.id,business_type:3});if(console.log(Le.data),Le.statusCode===200&&Le.data&&Le.data.length>0){const ot=Le.data[Le.data.length-1];if(console.log("获取到的试卷数据:",ot),console.log("试卷数据结构:",JSON.stringify(ot,null,2)),a.value=_(ot.created_at),ot&&ot.content)try{const vt=JSON.parse(ot.content);tt(vt)}catch(vt){console.error("解析试卷数据失败:",vt),i.value=!0,a.value=$e.time}else i.value=!0,a.value=$e.time}else console.error("获取历史记录详情失败:",Le),i.value=!0,a.value=$e.time}catch(Le){console.error("获取历史记录详情失败:",Le),i.value=!0,a.value=$e.time}finally{c.value=!1}}},U=$e=>{t.value=$e,console.log("选择功能:",$e)},F=$e=>{n.value=$e,console.log("选择工程类型:",M[$e].name);const Le=M[$e].name;r.value=`${Le}工程施工技术考核`,w.value&&(w.value.title=r.value)},H=()=>{const $e=M[n.value].name;r.value=`${$e}工程施工技术考核`,o.value=100,O.value=[{name:"单选题",scorePerQuestion:2,questionCount:8,romanNumeral:"一"},{name:"判断题",scorePerQuestion:2,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:3,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}],console.log("清除设置")},re=()=>{r.value.length>32&&(r.value=r.value.slice(0,20))},X=()=>{o.value>1e3&&(o.value=1e3,Et.warning("试卷总分不能超过1000分")),o.value<1&&(o.value=1)},te=$e=>{$e.scorePerQuestion>99&&($e.scorePerQuestion=99,Et.warning(`${$e.name}每题分数不能超过99分`)),$e.scorePerQuestion<1&&($e.scorePerQuestion=1)},Z=$e=>{$e.questionCount>99&&($e.questionCount=99,Et.warning(`${$e.name}题目数量不能超过99题`)),$e.questionCount<1&&($e.questionCount=1)},le=async()=>{if(!r.value.trim()){Et.warning("请输入试卷名称");return}if(r.value.trim().length===0){Et.warning("试卷名称不能为空");return}if(o.value>1e3){Et.warning("试卷总分不能超过1000分");return}for(const ot of O.value){if(ot.scorePerQuestion>99){Et.warning(`${ot.name}每题分数不能超过99分`);return}if(ot.questionCount>99){Et.warning(`${ot.name}题目数量不能超过99题`);return}}const $e=O.value.reduce((ot,vt)=>ot+vt.scorePerQuestion*vt.questionCount,0);if($e!==o.value){Et.warning(`总分不匹配!当前配置总分为${$e}分,请检查配置`);return}console.log("生成试卷:",{function:t.value,projectType:M[n.value].name,examName:r.value,totalScore:o.value,questionTypes:O.value});const Le=new Date;if(a.value=`${Le.getFullYear()}-${String(Le.getMonth()+1).padStart(2,"0")}-${String(Le.getDate()).padStart(2,"0")} ${String(Le.getHours()).padStart(2,"0")}:${String(Le.getMinutes()).padStart(2,"0")}`,t.value==="ai")await Pe();else{if(!h.value){Et.warning("请先上传PPT文件");return}await ve()}},ve=async()=>{try{s.value=!0;const $e=await Ae("ppt");console.log("发送给AI的PPT生成提示词:",$e);const Le=await zn.sendDeepseekMessage({business_type:3,message:$e,exam_name:r.value,ai_conversation_id:R.value});if(Le.statusCode===200){const ot=Le.data.reply,vt=Le.data.ai_conversation_id;console.log("AI生成的PPT试卷:",ot),console.log("AI对话ID:",vt),R.value=vt;const Ut=he(ot);De(Ut),i.value=!0,Et.success("PPT试卷生成完成!"),await E(),R.value>0?(A.value.forEach(Qt=>{Qt.isActive=Qt.id===R.value}),console.log("设置最新历史记录为激活状态,conversationId:",R.value)):ue()}else throw new Error("AI接口调用失败")}catch($e){console.error("PPT生成试卷失败:",$e),Et.error("PPT生成试卷失败,请稍后重试或检查网络连接"),i.value=!0}finally{s.value=!1}},Pe=async()=>{try{s.value=!0;const $e=await Ae("ai");console.log("发送给AI的提示词:",$e);const Le=await zn.sendDeepseekMessage({business_type:3,message:$e,exam_name:r.value,ai_conversation_id:R.value});if(Le.statusCode===200){const ot=Le.data.reply,vt=Le.data.ai_conversation_id;console.log("AI生成的试卷:",ot),console.log("AI对话ID:",vt),R.value=vt;const Ut=he(ot);De(Ut),i.value=!0,Et.success("AI试卷生成完成!"),await E(),R.value>0?(A.value.forEach(Qt=>{Qt.isActive=Qt.id===R.value}),console.log("设置最新历史记录为激活状态,conversationId:",R.value)):ue()}else throw new Error("AI接口调用失败")}catch($e){console.error("AI生成试卷失败:",$e),Et.error("AI生成试卷失败,请稍后重试或检查网络连接"),i.value=!0}finally{s.value=!1}},Ae=async($e="ai")=>{const Le=O.value.map(vt=>({name:vt.name,romanNumeral:vt.romanNumeral,questionCount:Number(vt.questionCount)||0,scorePerQuestion:Number(vt.scorePerQuestion)||0})),ot={mode:$e,client:"pc",projectType:M[n.value]?.name||"",examTitle:r.value,totalScore:o.value,questionTypes:Le,pptContent:h.value?.content||""};try{const vt=await zn.buildExamPrompt(ot);if(!vt?.data?.prompt)throw new Error(vt?.msg||"提示词构建失败");return vt.data.prompt}catch(vt){throw console.error("获取提示词失败:",vt),vt}},he=$e=>{try{const Le=$e.match(/\{[\s\S]*\}/);if(Le){const ot=JSON.parse(Le[0]);return Ee(ot),ot}else throw new Error("未找到有效的JSON数据")}catch(Le){return console.error("解析AI回复失败:",Le),Q()}},Ee=$e=>{$e.singleChoice&&$e.singleChoice.questions&&$e.singleChoice.questions.forEach(Le=>{Le.selectedAnswer||(Le.selectedAnswer=""),(!Le.options||Le.options.length===0)&&(Le.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),$e.judge&&$e.judge.questions&&$e.judge.questions.forEach(Le=>{Le.selectedAnswer||(Le.selectedAnswer="")}),$e.multiple&&$e.multiple.questions&&$e.multiple.questions.forEach(Le=>{Le.selectedAnswers||(Le.selectedAnswers=[]),(!Le.options||Le.options.length===0)&&(Le.options=[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}])}),$e.short&&$e.short.questions&&$e.short.questions.forEach(Le=>{Le.outline||(Le.outline={keyFactors:"答题要点、关键因素、示例答案"})})},Q=()=>({title:r.value,totalScore:o.value,totalQuestions:O.value.reduce(($e,Le)=>$e+Le.questionCount,0),singleChoice:{scorePerQuestion:O.value.find($e=>$e.name==="单选题")?.scorePerQuestion||2,totalScore:(O.value.find($e=>$e.name==="单选题")?.scorePerQuestion||2)*(O.value.find($e=>$e.name==="单选题")?.questionCount||15),count:O.value.find($e=>$e.name==="单选题")?.questionCount||15,questions:me("single",O.value.find($e=>$e.name==="单选题")?.questionCount||15)},judge:{scorePerQuestion:O.value.find($e=>$e.name==="判断题")?.scorePerQuestion||2,totalScore:(O.value.find($e=>$e.name==="判断题")?.scorePerQuestion||2)*(O.value.find($e=>$e.name==="判断题")?.questionCount||10),count:O.value.find($e=>$e.name==="判断题")?.questionCount||10,questions:me("judge",O.value.find($e=>$e.name==="判断题")?.questionCount||10)},multiple:{scorePerQuestion:O.value.find($e=>$e.name==="多选题")?.scorePerQuestion||3,totalScore:(O.value.find($e=>$e.name==="多选题")?.scorePerQuestion||3)*(O.value.find($e=>$e.name==="多选题")?.questionCount||10),count:O.value.find($e=>$e.name==="多选题")?.questionCount||10,questions:me("multiple",O.value.find($e=>$e.name==="多选题")?.questionCount||10)},short:{scorePerQuestion:O.value.find($e=>$e.name==="简答题")?.scorePerQuestion||10,totalScore:(O.value.find($e=>$e.name==="简答题")?.scorePerQuestion||10)*(O.value.find($e=>$e.name==="简答题")?.questionCount||2),count:O.value.find($e=>$e.name==="简答题")?.questionCount||2,questions:me("short",O.value.find($e=>$e.name==="简答题")?.questionCount||2)}}),me=($e,Le)=>{const ot=[],vt=M[n.value].name;for(let Ut=0;Ut<Le;Ut++)$e==="single"?ot.push({text:`${vt}工程相关单选题${Ut+1}`,options:[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}],selectedAnswer:""}):$e==="judge"?ot.push({text:`${vt}工程相关判断题${Ut+1}`,selectedAnswer:""}):$e==="multiple"?ot.push({text:`${vt}工程相关多选题${Ut+1}`,options:[{key:"A",text:"选项A"},{key:"B",text:"选项B"},{key:"C",text:"选项C"},{key:"D",text:"选项D"}],selectedAnswers:[]}):$e==="short"&&ot.push({text:`${vt}工程相关简答题${Ut+1}`,outline:{keyFactors:"答题要点、关键因素、示例答案"}});return ot},De=$e=>{w.value={...w.value,...$e}},pe=()=>{i.value=!1},ie=$e=>{b.value[$e]=!b.value[$e]},ue=()=>{A.value.length>0&&(A.value.forEach($e=>{$e.isActive=!1}),A.value[0].isActive=!0)},Be=async($e,Le)=>{try{console.log(`刷新${$e}类型第${Le+1}题`);const ot=`${$e}_${Le}`;l.value[ot]=!0;const vt=Fe($e,Le),Ut=await zn.reProduceSingleQuestion({message:vt});if(Ut.statusCode===200){const Qt=Ut.data.reply;console.log("AI重新生成的题目:",Qt),console.log("使用当前对话ID:",R.value);const Gt=Re(Qt,$e);console.log("解析后的新题目:",Gt),Gt?(gt($e,Le,Gt),console.log("准备保存到后端,对话ID:",R.value),await Lt($e,Le,Gt),Et.success("题目重新生成成功!"),await E(),R.value>0?(A.value.forEach(vn=>{vn.isActive=vn.id===R.value}),console.log("设置最新历史记录为激活状态,conversationId:",R.value)):ue()):Et.error("题目重新生成失败,请稍后重试")}else throw new Error("AI接口调用失败")}catch(ot){console.error("重新生成题目失败:",ot),Et.error("重新生成题目失败,请稍后重试")}finally{const ot=`${$e}_${Le}`;l.value[ot]=!1}},Me=($e,Le)=>$e==="single"?w.value.singleChoice.questions[Le]:$e==="judge"?w.value.judge.questions[Le]:$e==="multiple"?w.value.multiple.questions[Le]:$e==="short"?w.value.short.questions[Le]:null,Fe=($e,Le)=>{const ot=M[n.value].name,vt=ze($e),Ut=Ne($e),Qt=Me($e,Le);let Gt=`请基于以下${ot}工程的${vt}题目,重新生成一道相似主题的题目,要求如下:
- 当前题目参考:
- ${JSON.stringify(Qt,null,2)}
- 题目类型:${vt}
- 每题分值:${Ut}分
- 题目序号:第${Le+1}题
- 请严格按照以下JSON格式返回,不要包含任何其他文字:
- `;return $e==="single"?Gt+=`{
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswer": "正确答案选项(A/B/C/D)"
- }`:$e==="judge"?Gt+=`{
- "text": "题目内容",
- "selectedAnswer": "正确答案(正确/错误)"
- }`:$e==="multiple"?Gt+=`{
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A内容"},
- {"key": "B", "text": "选项B内容"},
- {"key": "C", "text": "选项C内容"},
- {"key": "D", "text": "选项D内容"}
- ],
- "selectedAnswers": ["正确答案选项1", "正确答案选项2"]
- }`:$e==="short"&&(Gt+=`{
- "text": "题目内容",
- "outline": {
- "keyFactors": "答题要点、关键因素、示例答案"
- }
- }`),Gt+=`
- 注意:
- 1. 新题目必须与当前题目保持相似的主题和难度
- 2. 题目内容必须与${ot}工程相关
- 3. 题目难度适中,符合考试要求
- 4. 严格按照JSON格式返回,不要有多余字符
- 5. 单选题和判断题的选项要合理
- 6. 多选题至少要有2个正确答案
- 7. 简答题要提供清晰的答题要点
- 8. 必须为每道题设置正确答案:
- - 单选题:selectedAnswer字段填写正确的选项(A/B/C/D)
- - 判断题:selectedAnswer字段填写"正确"或"错误"
- - 多选题:selectedAnswers数组包含所有正确答案选项
- 9. 简答题答案字数不超过500字
- 10. 新题目应该是当前题目的变体,保持主题一致性但内容要有所变化`,Gt},ze=$e=>({single:"单选题",judge:"判断题",multiple:"多选题",short:"简答题"})[$e]||"题目",Ne=$e=>({single:w.value.singleChoice.scorePerQuestion,judge:w.value.judge.scorePerQuestion,multiple:w.value.multiple.scorePerQuestion,short:w.value.short.scorePerQuestion})[$e]||2,Re=($e,Le)=>{try{console.log("AI回复内容:",$e),console.log("题目类型:",Le);const ot=$e.match(/\{[\s\S]*\}/);if(ot){const vt=JSON.parse(ot[0]);return console.log("解析后的题目数据:",vt),Le==="short"&&vt.outline&&vt.outline.keyFactors&&(console.log("简答题keyFactors原始值:",vt.outline.keyFactors),Array.isArray(vt.outline.keyFactors)&&(vt.outline.keyFactors=vt.outline.keyFactors.join(" "),console.log("转换后的keyFactors:",vt.outline.keyFactors))),vt}else throw new Error("未找到有效的JSON数据")}catch(ot){return console.error("解析单题AI回复失败:",ot),null}},gt=($e,Le,ot)=>{let vt;$e==="single"?(vt={...ot},(!vt.selectedAnswer||vt.selectedAnswer==="")&&Bt($e,Le,vt),w.value.singleChoice.questions[Le]=vt):$e==="judge"?(vt={...ot},(!vt.selectedAnswer||vt.selectedAnswer==="")&&Bt($e,Le,vt),w.value.judge.questions[Le]=vt):$e==="multiple"?(vt={...ot},(!vt.selectedAnswers||vt.selectedAnswers.length===0)&&Bt($e,Le,vt),w.value.multiple.questions[Le]=vt):$e==="short"&&(w.value.short.questions[Le]=ot),w.value={...w.value},console.log(`更新后的题目${$e}_${Le}:`,vt),console.log("当前试卷数据:",w.value)},Bt=($e,Le,ot)=>{if($e==="single")if(ot.text.includes("桩身倾斜")||ot.text.includes("桩位纠偏"))ot.selectedAnswer="B";else if(ot.text.includes("深水河流")||ot.text.includes("悬臂浇筑"))ot.selectedAnswer="B";else if(ot.text.includes("预应力张拉")||ot.text.includes("对称张拉"))ot.selectedAnswer="C";else if(ot.text.includes("混凝土裂缝")||ot.text.includes("伸缩缝"))ot.selectedAnswer="C";else if(ot.text.includes("沉井下沉")||ot.text.includes("土体破坏"))ot.selectedAnswer="C";else{const vt=["A","B","C","D"];ot.selectedAnswer=vt[Le%vt.length]}else if($e==="judge")ot.text.includes("水灰比无关")?ot.selectedAnswer="错误":ot.text.includes("张拉顺序")||ot.text.includes("预应力损失")?ot.selectedAnswer="正确":ot.text.includes("养护时间越长越好")?ot.selectedAnswer="错误":ot.text.includes("下沉速度应控制")?ot.selectedAnswer="正确":ot.text.includes("张拉应力值可以超过设计值")?ot.selectedAnswer="错误":ot.selectedAnswer=Le%2===0?"正确":"错误";else if($e==="multiple")if(ot.selectedAnswers||(ot.selectedAnswers=[]),ot.text.includes("桥梁基础施工"))ot.selectedAnswers=["A","C","D"];else if(ot.text.includes("预应力技术"))ot.selectedAnswers=["A","B"];else if(ot.text.includes("质量控制"))ot.selectedAnswers=["A","B","C"];else if(ot.text.includes("安全措施"))ot.selectedAnswers=["A","B","C","D"];else{const vt=["A","B","C","D"],Ut=Math.floor(Math.random()*2)+2;ot.selectedAnswers=vt.slice(0,Ut)}},Lt=async($e,Le,ot)=>{console.log("对话id",R.value);try{if(!R.value){console.warn("没有找到对话ID,跳过保存");return}const vt=JSON.stringify(w.value);console.log("保存到 /re_modify_question 的内容:",vt);const Ut=await zn.reModifyQuestion({ai_conversation_id:R.value,content:vt});Ut.statusCode===200?(console.log("修改已保存到后端"),ot&&console.log("题目重新生成并保存成功")):console.error("保存修改失败:",Ut)}catch(vt){console.error("保存修改失败:",vt)}},an=()=>{s.value||(u.value=!u.value)},Kt=()=>{u.value=!1},Ht=$e=>{$e.target.closest(".download-dropdown")||(u.value=!1)},pt=async()=>{try{Kt();const $e=de();console.log("准备导出的数据(有答案):",$e),console.log("使用模拟Word导出功能(有答案)"),await dt(!0)}catch($e){console.error("Word导出失败:",$e),Et.error("Word导出失败,请稍后重试")}},Dt=async()=>{try{Kt();const $e=de();console.log("准备导出的数据(无答案):",$e),console.log("使用模拟Word导出功能(无答案)"),await dt(!1)}catch($e){console.error("Word导出失败:",$e),Et.error("Word导出失败,请稍后重试")}},dt=async($e=!0)=>{try{const Le=de(),ot=it(Le,$e),vt=new Blob([ot],{type:"application/msword"}),Ut=URL.createObjectURL(vt),Qt=document.createElement("a"),Gt=$e?`${w.value.title}_有答案_${a.value.replace(/[:\s]/g,"_")}.doc`:`${w.value.title}_无答案_${a.value.replace(/[:\s]/g,"_")}.doc`;Qt.setAttribute("href",Ut),Qt.setAttribute("download",Gt),Qt.style.visibility="hidden",document.body.appendChild(Qt),Qt.click(),document.body.removeChild(Qt),Et.success(`导出成功${$e?"(含答案)":"(不含答案)"}`)}catch(Le){console.error("模拟Word导出失败:",Le),Et.error("Word导出失败,请稍后重试")}},it=($e,Le=!0)=>{const ot=w.value;let vt=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${ot.title||"试卷"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .exam-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- .exam-info {
- font-size: 14px;
- color: #666;
- margin-bottom: 14px;
- }
- .section {
- margin-bottom: 14px;
- }
- .section-title {
- font-size: 18px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- border-bottom: 2px solid #3e7bfa;
- padding-bottom: 5px;
- }
- .question {
- margin-bottom: 14px;
- padding: 10px;
- background-color: #f9f9f9;
- border-left: 4px solid #3e7bfa;
- }
- .question-header {
- display: flex;
- align-items: flex-start;
- gap: 8px;
- margin-bottom: 14px;
- }
- .question-number {
- font-weight: bold;
- color: #3e7bfa;
- flex-shrink: 0;
- }
- .question-text {
- flex: 1;
- }
- .options {
- margin-left: 12px;
- }
- .option {
- margin-bottom: 5px;
- }
- .answer {
- margin-top: 10px;
- padding: 8px;
- background: #e8f4fd;
- border-radius: 4px;
- font-weight: bold;
- color: #2c5aa0;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="exam-title">${ot.title||"试卷"}</div>
- <div class="exam-info">
- 总分:${ot.totalScore||0}分 | 总题数:${ot.totalQuestions||0}题 | 生成时间:${a.value}
- </div>
- </div>`;return ot.singleChoice&&ot.singleChoice.questions&&ot.singleChoice.questions.length>0&&(vt+=`
- <div class="section">
- <div class="section-title">一、单选题(每题${ot.singleChoice.scorePerQuestion||0}分,共${ot.singleChoice.totalScore||0}分)</div>`,ot.singleChoice.questions.forEach((Ut,Qt)=>{vt+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Qt+1}.</span>
- <span class="question-text">${Ut.text||"题目内容"}</span>
- </div>`,Ut.options&&Ut.options.length>0&&(vt+='<div class="options">',Ut.options.forEach((Gt,vn)=>{const Un=String.fromCharCode(65+vn);vt+=`<div class="option">${Un}. ${Gt.text||"选项内容"}</div>`}),vt+="</div>"),vt+=`${Le?`<div class="answer">答案:${Ut.selectedAnswer||"未设置"}</div>`:""}
- </div>`}),vt+="</div>"),ot.judge&&ot.judge.questions&&ot.judge.questions.length>0&&(vt+=`
- <div class="section">
- <div class="section-title">二、判断题(每题${ot.judge.scorePerQuestion||0}分,共${ot.judge.totalScore||0}分)</div>`,ot.judge.questions.forEach((Ut,Qt)=>{vt+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Qt+1}.</span>
- <span class="question-text">${Ut.text||"题目内容"}</span>
- </div>
- ${Le?`<div class="answer">答案:${Ut.selectedAnswer||"未设置"}</div>`:""}
- </div>`}),vt+="</div>"),ot.multipleChoice&&ot.multipleChoice.questions&&ot.multipleChoice.questions.length>0&&(vt+=`
- <div class="section">
- <div class="section-title">三、多选题(每题${ot.multipleChoice.scorePerQuestion||0}分,共${ot.multipleChoice.totalScore||0}分)</div>`,ot.multipleChoice.questions.forEach((Ut,Qt)=>{vt+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Qt+1}.</span>
- <span class="question-text">${Ut.text||"题目内容"}</span>
- </div>`,Ut.options&&Ut.options.length>0&&(vt+='<div class="options">',Ut.options.forEach((Gt,vn)=>{const Un=String.fromCharCode(65+vn);vt+=`<div class="option">${Un}. ${Gt.text||"选项内容"}</div>`}),vt+="</div>"),vt+=`${Le?`<div class="answer">答案:${Ut.selectedAnswer||Ut.selectedAnswers?.join(", ")||"未设置"}</div>`:""}
- </div>`}),vt+="</div>"),ot.short&&ot.short.questions&&ot.short.questions.length>0&&(vt+=`
- <div class="section">
- <div class="section-title">四、简答题(每题${ot.short.scorePerQuestion||0}分,共${ot.short.totalScore||0}分)</div>`,ot.short.questions.forEach((Ut,Qt)=>{vt+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Qt+1}.</span>
- <span class="question-text">${Ut.text||"题目内容"}</span>
- </div>
- ${Le?`<div class="answer">答题要点:${Ut.outline?.keyFactors||"未设置"}</div>`:""}
- </div>`}),vt+="</div>"),vt+=`
- </body>
- </html>`,vt},de=()=>{const $e=w.value,Le=[["试卷名称",$e.title],["总分",`${$e.totalScore}分`],["总题数",`${$e.totalQuestions}题`],["生成时间",a.value],["",""]],ot=[["一、单选题",`(每题${$e.singleChoice.scorePerQuestion}分,共${$e.singleChoice.totalScore}分)`],["题号","题目内容","选项A","选项B","选项C","选项D","正确答案"]];$e.singleChoice.questions.forEach((Gt,vn)=>{ot.push([`${vn+1}`,Gt.text,Gt.options[0]?.text||"",Gt.options[1]?.text||"",Gt.options[2]?.text||"",Gt.options[3]?.text||"",Gt.selectedAnswer||""])});const vt=[["",""],["二、判断题",`(每题${$e.judge.scorePerQuestion}分,共${$e.judge.totalScore}分)`],["题号","题目内容","正确答案"]];$e.judge.questions.forEach((Gt,vn)=>{vt.push([`${vn+1}`,Gt.text,Gt.selectedAnswer||""])});const Ut=[["",""],["三、多选题",`(每题${$e.multiple.scorePerQuestion}分,共${$e.multiple.totalScore}分)`],["题号","题目内容","选项A","选项B","选项C","选项D","正确答案"]];$e.multiple.questions.forEach((Gt,vn)=>{Ut.push([`${vn+1}`,Gt.text,Gt.options[0]?.text||"",Gt.options[1]?.text||"",Gt.options[2]?.text||"",Gt.options[3]?.text||"",Gt.selectedAnswers.join(", ")||""])});const Qt=[["",""],["四、简答题",`(每题${$e.short.scorePerQuestion}分,共${$e.short.totalScore}分)`],["题号","题目内容","答题要点"]];return $e.short.questions.forEach((Gt,vn)=>{Qt.push([`${vn+1}`,Gt.text,Gt.outline?.keyFactors||""])}),[...Le,...ot,...vt,...Ut,...Qt]},tt=$e=>{try{console.log("开始恢复试卷数据:",$e),console.log("试卷数据详细结构:",JSON.stringify($e,null,2));let Le=$e;if($e.exam&&(Le=$e.exam),Le.title?r.value=Le.title:Le.exam_name&&(r.value=Le.exam_name),Le.exam_type&&(n.value=Le.exam_type),Le.totalScore?o.value=Le.totalScore:Le.total_score&&(o.value=Le.total_score),Le.generation_method&&(t.value=Le.generation_method),Le.generationTime?a.value=Le.generationTime:Le.generation_time&&(a.value=Le.generation_time),Le.question_config&&(O.value=[{name:"单选题",scorePerQuestion:Le.question_config.single_choice.score_per_question,questionCount:Le.question_config.single_choice.count,romanNumeral:"一"},{name:"判断题",scorePerQuestion:Le.question_config.judge.score_per_question,questionCount:Le.question_config.judge.count,romanNumeral:"二"},{name:"多选题",scorePerQuestion:Le.question_config.multiple.score_per_question,questionCount:Le.question_config.multiple.count,romanNumeral:"三"},{name:"简答题",scorePerQuestion:Le.question_config.short.score_per_question,questionCount:Le.question_config.short.count,romanNumeral:"四"}]),Le.singleChoice||Le.questions?.single_choice){const ot=Le.singleChoice||Le.questions.single_choice,vt=Le.judge||Le.questions.judge,Ut=Le.multiple||Le.questions.multiple,Qt=Le.short||Le.questions.short;console.log("单选题数据:",ot),console.log("判断题数据:",vt),console.log("多选题数据:",Ut),console.log("简答题数据:",Qt),w.value={title:r.value,totalScore:o.value,totalQuestions:Le.totalQuestions||Le.total_questions,singleChoice:{scorePerQuestion:ot.scorePerQuestion||ot.score_per_question,totalScore:ot.totalScore||ot.total_score,count:ot.count,questions:ot.questions.map(Gt=>({text:Gt.text||Gt.question_text,options:Gt.options||[],selectedAnswer:Gt.selectedAnswer||""}))},judge:{scorePerQuestion:vt.scorePerQuestion||vt.score_per_question,totalScore:vt.totalScore||vt.total_score,count:vt.count,questions:vt.questions.map(Gt=>({text:Gt.text||Gt.question_text,selectedAnswer:Gt.selectedAnswer||Gt.correct_answer||Gt.answer||""}))},multiple:{scorePerQuestion:Ut.scorePerQuestion||Ut.score_per_question,totalScore:Ut.totalScore||Ut.total_score,count:Ut.count,questions:Ut.questions.map(Gt=>({text:Gt.text||Gt.question_text,options:Gt.options||[],selectedAnswers:Gt.selectedAnswers||Gt.correct_answers||Gt.answers||[]}))},short:{scorePerQuestion:Qt.scorePerQuestion||Qt.score_per_question,totalScore:Qt.totalScore||Qt.total_score,count:Qt.count,questions:Qt.questions.map(Gt=>({text:Gt.text||Gt.question_text,outline:Gt.outline||Gt.answer_outline||{keyFactors:"答题要点、关键因素、示例答案"}}))}}}Le.user_answers&&(Le.user_answers.single_choice&&Le.user_answers.single_choice.forEach((ot,vt)=>{w.value.singleChoice.questions[vt]&&(w.value.singleChoice.questions[vt].selectedAnswer=ot||"")}),Le.user_answers.judge&&Le.user_answers.judge.forEach((ot,vt)=>{w.value.judge.questions[vt]&&(w.value.judge.questions[vt].selectedAnswer=ot||"")}),Le.user_answers.multiple&&Le.user_answers.multiple.forEach((ot,vt)=>{w.value.multiple.questions[vt]&&(w.value.multiple.questions[vt].selectedAnswers=ot||[])})),console.log("恢复完成后的试卷数据:",w.value),console.log("单选题答案:",w.value.singleChoice?.questions?.map(ot=>ot.selectedAnswer)),console.log("判断题答案:",w.value.judge?.questions?.map(ot=>ot.selectedAnswer)),console.log("多选题答案:",w.value.multiple?.questions?.map(ot=>ot.selectedAnswers)),i.value=!0}catch(Le){console.error("恢复试卷失败:",Le),Et.error("恢复试卷失败,请稍后重试")}},ft=$e=>{if($e.size>m.maxSize)throw new Error("文件大小不能超过20MB");const Le="."+$e.name.split(".").pop().toLowerCase();if(!m.allowedTypes.includes(Le))throw new Error("只支持PPT格式文件(.ppt/.pptx)");return Le},Mt=$e=>{switch($e){case".ppt":case".pptx":return"📊";default:return"📎"}},Tn=$e=>{if($e===0)return"0 B";const Le=1024,ot=["B","KB","MB","GB"],vt=Math.floor(Math.log($e)/Math.log(Le));return parseFloat(($e/Math.pow(Le,vt)).toFixed(2))+" "+ot[vt]},Nn=async $e=>{try{const Le=await Lf(()=>import("./jszip.min-DXNZmKaK.js").then(Gt=>Gt.j),[]),vt=await new Le.default().loadAsync($e),Ut=Object.keys(vt.files).filter(Gt=>Gt.startsWith("ppt/slides/slide")&&Gt.endsWith(".xml"));let Qt="";if(Ut.length>0){const Gt=Ut[0],vn=await vt.file(Gt).async("text"),Un=vn.match(/<a:t[^>]*>([^<]+)<\/a:t>/g);if(Un&&Un.forEach(wr=>{const fr=wr.replace(/<[^>]*>/g,"").trim();fr.length>0&&(Qt+=fr+" ")}),Qt.length===0){const wr=vn.match(/>([^<]{2,})</g);wr&&wr.forEach(fr=>{const Nt=fr.replace(/[<>]/g,"").trim();Nt.length>2&&/[\u4e00-\u9fa5a-zA-Z]/.test(Nt)&&(Qt+=Nt+" ")})}}if(Qt.length===0){const Gt=Object.keys(vt.files).filter(vn=>vn.endsWith(".xml")&&!vn.includes("_rels"));for(const vn of Gt.slice(0,3))try{const wr=(await vt.file(vn).async("text")).match(/>([^<]{2,})</g);wr&&wr.forEach(fr=>{const Nt=fr.replace(/[<>]/g,"").trim();Nt.length>2&&/[\u4e00-\u9fa5a-zA-Z]/.test(Nt)&&(Qt+=Nt+" ")})}catch(Un){console.log("读取XML文件失败:",vn,Un)}}return Qt.length>0?(Qt=Qt.replace(/\s+/g," ").replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s]/g,"").trim(),Qt.substring(0,800)):""}catch(Le){console.error("PPT文本提取失败:",Le);try{const vt=new TextDecoder("utf-8").decode($e),Ut=vt.match(/[\u4e00-\u9fa5]{2,}/g),Qt=vt.match(/[a-zA-Z]{3,}/g);let Gt="";if(Ut&&Ut.length>0&&(Gt+=Ut.join(" ")),Qt&&Qt.length>0&&(Gt+=" "+Qt.join(" ")),Gt.length>0)return Gt=Gt.replace(/\s+/g," ").replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s]/g,"").trim(),Gt.substring(0,800)}catch(ot){console.error("回退文本提取也失败:",ot)}return""}},We=async $e=>{try{if(console.log("开始读取PPT文件:",$e.name,"文件大小:",$e.size),$e.size===0)throw new Error("PPT文件为空");return console.log("开始读取PPT文件内容..."),new Promise((Le,ot)=>{const vt=new FileReader;vt.onload=async Ut=>{try{const Qt=Ut.target.result;console.log("文件读取成功,大小:",Qt.byteLength),console.log("开始读取PPT文件第一页内容...");try{const Gt=new Uint8Array(Qt);let vn=`PPT文件信息:
- 文件名:${$e.name}
- 文件大小:${Tn($e.size)}
- 文件类型:${$e.type}
- 修改时间:${new Date($e.lastModified).toLocaleString("zh-CN")}
- PPT第一页内容提取结果:
- `;const Un=await Nn(Gt);Un&&Un.length>0?(vn+=`
- 提取的文本内容:
- ${Un}`,console.log("PPT文本提取成功,长度:",Un.length)):vn+=`
- 无法自动提取PPT文本内容。
- `,vn+=`
- 请在下方文本框中补充或修正PPT内容描述,AI将基于这些信息生成相关考题。`,console.log("PPT内容提取完成,长度:",vn.length),console.log("提取的内容预览:",vn.substring(0,500)),Le(vn)}catch(Gt){console.error("PPT解析失败:",Gt);const vn=`PPT文件:${$e.name}
- 文件大小:${Tn($e.size)}
- 文件类型:${$e.type}
- 修改时间:${new Date($e.lastModified).toLocaleString("zh-CN")}
- PPT内容提取失败,请手动描述PPT的主要内容、关键知识点、培训目标等信息,AI将基于您的描述生成相关考题。
- 您可以描述:
- 1. PPT的主要主题和内容
- 2. 关键知识点和重点
- 3. 培训目标和学习要求
- 4. 相关的技术要点和注意事项`;Le(vn)}}catch(Qt){console.error("PPT处理失败:",Qt);const Gt=`PPT文件:${$e.name}
- 文件大小:${Tn($e.size)}
- 文件类型:${$e.type}
- 修改时间:${new Date($e.lastModified).toLocaleString("zh-CN")}
- PPT文件处理失败,请手动描述PPT的主要内容、关键知识点、培训目标等信息,AI将基于您的描述生成相关考题。
- 您可以描述:
- 1. PPT的主要主题和内容
- 2. 关键知识点和重点
- 3. 培训目标和学习要求
- 4. 相关的技术要点和注意事项`;Le(Gt)}},vt.onerror=()=>{ot(new Error("文件读取失败"))},vt.readAsArrayBuffer($e)})}catch(Le){throw console.error("PPT文件读取失败,详细错误:",Le),console.error("错误堆栈:",Le.stack),Le.message.includes("Invalid file format")?new Error("PPT文件格式无效或已损坏"):Le.message.includes("File is empty")?new Error("PPT文件为空"):new Error(`PPT文件读取失败: ${Le.message}`)}},ke=async $e=>{const Le=$e.target.files[0];if(Le)try{const ot=ft(Le);g.value=!0,console.log("开始读取文件内容:",Le.name);const vt=await We(Le);h.value={file:Le,name:Le.name,size:Le.size,type:ot,icon:Mt(ot),content:vt};const Ut=Le.name.replace(/\.(ppt|pptx)$/i,"");r.value=`${Ut}考试试卷`;const Qt=vt.length;console.log("文件内容提取完成,字符数:",Qt),Et.success(`PPT文件读取成功,提取了${Qt}个字符的内容`)}catch(ot){console.error("文件读取失败:",ot),Et.error(ot.message||"文件读取失败,请重试")}finally{g.value=!1,$e.target.value=""}},be=()=>{if(h.value){h.value=null,y.value="";const $e=M[n.value].name;r.value=`${$e}工程施工技术考核`}},fe=()=>{if(h.value){Et.warning("只能上传一个文件,请先删除当前文件");return}v.value?.click()},Se=()=>{f.value=!1,Et.success("删除成功")},qe=()=>{f.value=!1};return qn(async()=>{k={questionTypes:JSON.parse(JSON.stringify(O.value)),totalScore:o.value,selectedProjectType:n.value,examName:r.value},console.log("初始配置已保存:",k),await E(),document.addEventListener("click",Ht)}),yl(()=>{document.removeEventListener("click",Ht)}),($e,Le)=>(L(),G("div",bWt,[He(Q5),x("div",wWt,[x("div",{class:"history-header"},[Le[10]||(Le[10]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:oC,alt:"新建任务",class:"new-chat-btn",onClick:q})]),x("div",AWt,[d.value&&S.value===0?(L(),G("div",CWt,Le[11]||(Le[11]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):S.value>0?(L(!0),G(Rt,{key:1},un(A.value,(ot,vt)=>(L(),G("div",{key:vt,class:oe(["history-item",{active:ot.isActive}]),onClick:Ut=>ot.isActive||s.value||c.value?null:Y(ot),style:rn({cursor:ot.isActive?"default":s.value||c.value?"not-allowed":"pointer",opacity:ot.isActive?"0.8":"1"})},[x("div",SWt,[x("div",EWt,je(ot.title),1),x("div",kWt,je(ot.time),1)]),x("div",{class:oe(["delete-btn",{"always-visible":ot.isActive}]),onClick:en(Ut=>B(ot,vt),["stop"])},Le[12]||(Le[12]=[x("img",{src:kc,alt:"删除",class:"delete-icon"},null,-1)]),10,TWt)],14,xWt))),128)):(L(),G("div",_Wt,Le[13]||(Le[13]=[x("img",{src:iC,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])]),x("div",{class:"main-work",style:rn({background:i.value?"transparent":"#ebf3ff"})},[Le[48]||(Le[48]=x("div",{class:"work-header"},[x("h2",null,"考试工坊")],-1)),x("div",{class:oe(["work-content",{"exam-detail-mode":i.value}])},[c.value?(L(),G("div",DWt,Le[14]||(Le[14]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载历史记录...",-1)]))):xe("",!0),i.value?xe("",!0):(L(),G("div",IWt,[x("div",OWt,[x("div",MWt,[Le[15]||(Le[15]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"1"),x("h3",null,"选择试卷类型")],-1)),x("div",PWt,[(L(),G(Rt,null,un(M,(ot,vt)=>x("div",{key:vt,class:oe(["type-card",{active:n.value===vt}]),onClick:Ut=>s.value||h.value?null:F(vt),style:rn({cursor:s.value||h.value?"not-allowed":"pointer",opacity:s.value||h.value?"0.5":"1"})},[x("img",{src:ot.icon,alt:ot.name,class:"type-icon"},null,8,RWt),x("span",null,je(ot.name),1)],14,NWt)),64))])]),x("div",BWt,[Le[20]||(Le[20]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"2"),x("h3",null,"选择生成方式")],-1)),x("div",LWt,[x("div",{class:oe(["method-card",{active:t.value==="ai"}]),onClick:Le[0]||(Le[0]=ot=>s.value||h.value?null:U("ai")),style:rn({cursor:s.value||h.value?"not-allowed":"pointer",opacity:s.value||h.value?"0.5":"1"})},[x("img",{src:C(bke),alt:"智能生成试卷",class:"method-icon"},null,8,FWt),Le[16]||(Le[16]=x("div",{class:"method-content"},[x("h4",null,"智能生成试卷"),x("p",null,"基于AI技术,根据所选类型自动生成完整试卷")],-1))],6),x("div",{class:oe(["method-card",{active:t.value==="ppt"}]),onClick:Le[1]||(Le[1]=ot=>s.value?null:t.value==="ppt"&&!h.value?fe():U("ppt")),style:rn({cursor:s.value?"not-allowed":"pointer",opacity:s.value?"0.5":"1"})},[x("img",{src:C(vWt),alt:"从PPT生成考题",class:"method-icon"},null,8,UWt),x("div",zWt,[Le[18]||(Le[18]=x("h4",null,"从PPT生成考题",-1)),Le[19]||(Le[19]=x("p",null,"上传培训PPT,智能提取关键内容生成考题(单个文件可上传20M内)",-1)),t.value==="ppt"&&h.value?(L(),G("div",$Wt,[x("div",jWt,[x("div",HWt,je(h.value.icon),1),x("div",WWt,[x("div",VWt,je(h.value.name),1),x("div",qWt,je(Tn(h.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:be},Le[17]||(Le[17]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0)])],6)])]),x("div",GWt,[Le[34]||(Le[34]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"3"),x("h3",null,"试卷配置")],-1)),x("div",KWt,[x("div",YWt,[x("div",QWt,[x("div",ZWt,[Le[21]||(Le[21]=x("label",null,"试卷名称",-1)),x("div",XWt,[cn(x("input",{"onUpdate:modelValue":Le[2]||(Le[2]=ot=>r.value=ot),type:"text",placeholder:"请输入试卷名称",class:"config-input",maxlength:"32",onInput:re,disabled:s.value||h.value},null,40,JWt),[[qr,r.value]]),x("span",{class:oe(["char-count-inline",{warning:r.value.length>=18}])},je(r.value.length)+"/32 ",3)])]),x("div",eVt,[Le[23]||(Le[23]=x("label",null,"试卷总分",-1)),x("div",tVt,[cn(x("input",{"onUpdate:modelValue":Le[3]||(Le[3]=ot=>o.value=ot),type:"number",class:"config-input",min:"1",max:"1000",onInput:X,disabled:s.value||h.value},null,40,nVt),[[qr,o.value]]),Le[22]||(Le[22]=x("span",{class:"unit"},"分",-1))])])]),Le[28]||(Le[28]=x("div",{class:"section-title"},"题型选择与分数分配",-1)),x("div",rVt,[(L(!0),G(Rt,null,un(O.value,(ot,vt)=>(L(),G("div",{class:"question-type",key:vt},[x("div",oVt,[x("span",iVt,je(ot.name),1),x("div",aVt,[x("div",{class:"progress-fill",style:rn({width:ot.scorePerQuestion*ot.questionCount/o.value*100+"%"})},null,4)]),x("div",sVt,[Le[24]||(Le[24]=x("span",null,"每题",-1)),cn(x("input",{"onUpdate:modelValue":Ut=>ot.scorePerQuestion=Ut,type:"number",class:"score-input-field",min:"1",max:"99",onInput:Ut=>te(ot),disabled:s.value||h.value},null,40,lVt),[[qr,ot.scorePerQuestion]]),Le[25]||(Le[25]=x("span",null,"分",-1)),Le[26]||(Le[26]=x("span",null,"一共",-1)),cn(x("input",{"onUpdate:modelValue":Ut=>ot.questionCount=Ut,type:"number",class:"count-input-field",min:"1",max:"99",onInput:Ut=>Z(ot),disabled:s.value||h.value},null,40,uVt),[[qr,ot.questionCount]]),Le[27]||(Le[27]=x("span",null,"题",-1))])])]))),128))])]),x("div",cVt,[x("div",dVt,[x("img",{src:C(mWt),alt:"预览",class:"preview-icon"},null,8,fVt),Le[29]||(Le[29]=x("h3",null,"预览",-1))]),x("div",pVt,[x("h4",hVt,je(r.value||"试卷名称"),1),x("div",gVt,[(L(!0),G(Rt,null,un(O.value,(ot,vt)=>(L(),G("div",{class:"breakdown-item",key:vt},[x("div",vVt,[x("span",mVt,je(ot.romanNumeral)+"、"+je(ot.name)+" (每题"+je(ot.scorePerQuestion)+"分,共"+je(ot.scorePerQuestion*ot.questionCount)+"分)",1),x("span",yVt,je(ot.questionCount)+"题",1)])]))),128))]),Le[32]||(Le[32]=x("div",{class:"divider"},null,-1)),x("div",bVt,[Le[30]||(Le[30]=x("span",{class:"calculated-label"},"配置总分",-1)),x("span",wVt,je(W.value)+"分",1)]),x("div",AVt,[Le[31]||(Le[31]=x("span",{class:"total-label"},"试卷总分",-1)),x("span",CVt,je(o.value)+"分",1)])])])]),x("div",xVt,[x("button",{class:"clear-btn",onClick:H,disabled:s.value||h.value},[x("img",{src:C(yWt),alt:"一键清除",class:"clear-icon"},null,8,EVt)],8,SVt),x("button",{class:"generate-btn",onClick:le,disabled:s.value},[s.value?(L(),G("span",_Vt,Le[33]||(Le[33]=[bn(" 生成中",-1),x("span",{class:"loading-dots"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1)]))):(L(),G("img",{key:0,src:C(wke),alt:"生成试卷",class:"generate-icon"},null,8,TVt))],8,kVt)])])])])),i.value?(L(),G("div",DVt,[x("div",IVt,[x("div",OVt,[x("button",{class:"back-btn",onClick:pe,disabled:s.value},Le[35]||(Le[35]=[x("span",{class:"back-arrow"},"←",-1),bn(" 返回修改 ",-1)]),8,MVt)]),x("div",PVt,[x("div",{class:oe(["download-dropdown",{disabled:s.value,show:u.value}]),onClick:Le[4]||(Le[4]=en(()=>{},["stop"]))},[x("button",{class:"download-btn",disabled:s.value,onClick:an},[x("img",{src:C(i7),alt:"下载Word",class:"download-icon"},null,8,RVt)],8,NVt),x("div",BVt,[x("div",{class:"dropdown-item",onClick:pt,disabled:s.value},Le[36]||(Le[36]=[x("span",{class:"item-text"},"有答案",-1)]),8,LVt),x("div",{class:"dropdown-item",onClick:Dt,disabled:s.value},Le[37]||(Le[37]=[x("span",{class:"item-text"},"无答案",-1)]),8,FVt)])],2)])]),x("div",UVt,[x("div",null,[x("h1",zVt,je(w.value.title),1),x("div",$Vt,[x("span",jVt,"总分: "+je(w.value.totalScore)+"分",1),x("span",HVt,"题量: "+je(w.value.totalQuestions)+"题",1)])]),x("div",WVt,"生成时间: "+je(a.value),1)]),x("div",VVt,[x("div",qVt,[x("div",{class:"section-header",onClick:Le[5]||(Le[5]=ot=>s.value?null:ie("single")),style:rn({cursor:s.value?"not-allowed":"pointer"})},[x("div",GVt,[Le[38]||(Le[38]=x("span",{class:"section-number"},"一",-1)),Le[39]||(Le[39]=x("span",{class:"section-name"},"单选题",-1)),x("span",KVt,"(每题"+je(w.value.singleChoice.scorePerQuestion)+"分, 共"+je(w.value.singleChoice.totalScore)+"分)",1)]),x("div",YVt,[x("span",QVt,je(w.value.singleChoice.count)+"题",1),x("img",{src:C(Ih),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!b.value.single}])},null,10,ZVt)])],4),b.value.single?(L(),G("div",XVt,[(L(!0),G(Rt,null,un(w.value.singleChoice.questions,(ot,vt)=>(L(),G("div",{key:vt,class:"question-item"},[x("div",JVt,[x("span",eqt,je(vt+1)+".",1),x("span",tqt,je(ot.text),1),x("button",{class:"refresh-btn",onClick:Ut=>Be("single",vt),disabled:s.value},[x("img",{src:C(Oh),alt:"刷新",class:oe(["refresh-icon",{rotating:l.value[`single_${vt}`]}])},null,10,rqt)],8,nqt)]),x("div",oqt,[(L(!0),G(Rt,null,un(ot.options,Ut=>(L(),G("div",{key:Ut.key,class:oe(["option",{selected:ot.selectedAnswer===Ut.key}]),style:{cursor:"default"}},[x("div",iqt,[x("div",{class:oe(["radio-circle",{selected:ot.selectedAnswer===Ut.key}])},[ot.selectedAnswer===Ut.key?(L(),G("div",aqt)):xe("",!0)],2)]),x("span",sqt,je(Ut.key)+".",1),x("div",lqt,[x("span",uqt,je(Ut.text),1)])],2))),128))])]))),128))])):xe("",!0)]),x("div",cqt,[x("div",{class:"section-header",onClick:Le[6]||(Le[6]=ot=>s.value?null:ie("judge")),style:rn({cursor:s.value?"not-allowed":"pointer"})},[x("div",dqt,[Le[40]||(Le[40]=x("span",{class:"section-number"},"二",-1)),Le[41]||(Le[41]=x("span",{class:"section-name"},"判断题",-1)),x("span",fqt,"(每题"+je(w.value.judge.scorePerQuestion)+"分, 共"+je(w.value.judge.totalScore)+"分)",1)]),x("div",pqt,[x("span",hqt,je(w.value.judge.count)+"题",1),x("img",{src:C(Ih),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!b.value.judge}])},null,10,gqt)])],4),b.value.judge?(L(),G("div",vqt,[(L(!0),G(Rt,null,un(w.value.judge.questions,(ot,vt)=>(L(),G("div",{key:vt,class:"question-item"},[x("div",mqt,[x("span",yqt,je(vt+1)+".",1),x("span",bqt,je(ot.text),1),x("button",{class:"refresh-btn",onClick:Ut=>Be("judge",vt),disabled:s.value},[x("img",{src:C(Oh),alt:"刷新",class:oe(["refresh-icon",{rotating:l.value[`judge_${vt}`]}])},null,10,Aqt)],8,wqt)]),x("div",Cqt,[x("div",{class:oe(["option judge-option",{selected:ot.selectedAnswer==="正确"}]),style:{cursor:"default"}},[x("div",xqt,[x("div",{class:oe(["radio-circle",{selected:ot.selectedAnswer==="正确"}])},[ot.selectedAnswer==="正确"?(L(),G("div",Sqt)):xe("",!0)],2)]),Le[42]||(Le[42]=x("span",{class:"option-text"},"正确",-1))],2),x("div",{class:oe(["option judge-option",{selected:ot.selectedAnswer==="错误"}]),style:{cursor:"default"}},[x("div",Eqt,[x("div",{class:oe(["radio-circle",{selected:ot.selectedAnswer==="错误"}])},[ot.selectedAnswer==="错误"?(L(),G("div",kqt)):xe("",!0)],2)]),Le[43]||(Le[43]=x("span",{class:"option-text"},"错误",-1))],2)])]))),128))])):xe("",!0)]),x("div",Tqt,[x("div",{class:"section-header",onClick:Le[7]||(Le[7]=ot=>s.value?null:ie("multiple")),style:rn({cursor:s.value?"not-allowed":"pointer"})},[x("div",_qt,[Le[44]||(Le[44]=x("span",{class:"section-number"},"三",-1)),Le[45]||(Le[45]=x("span",{class:"section-name"},"多选题",-1)),x("span",Dqt,"(每题"+je(w.value.multiple.scorePerQuestion)+"分, 共"+je(w.value.multiple.totalScore)+"分)",1)]),x("div",Iqt,[x("span",Oqt,je(w.value.multiple.count)+"题",1),x("img",{src:C(Ih),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!b.value.multiple}])},null,10,Mqt)])],4),b.value.multiple?(L(),G("div",Pqt,[(L(!0),G(Rt,null,un(w.value.multiple.questions,(ot,vt)=>(L(),G("div",{key:vt,class:"question-item"},[x("div",Nqt,[x("span",Rqt,je(vt+1)+".",1),x("span",Bqt,je(ot.text),1),x("button",{class:"refresh-btn",onClick:Ut=>Be("multiple",vt),disabled:s.value},[x("img",{src:C(Oh),alt:"刷新",class:oe(["refresh-icon",{rotating:l.value[`multiple_${vt}`]}])},null,10,Fqt)],8,Lqt)]),x("div",Uqt,[(L(!0),G(Rt,null,un(ot.options,Ut=>(L(),G("div",{key:Ut.key,class:oe(["option",{selected:ot.selectedAnswers.includes(Ut.key)}]),style:{cursor:"default"}},[x("div",zqt,[x("div",{class:oe(["radio-circle",{selected:ot.selectedAnswers.includes(Ut.key)}])},[ot.selectedAnswers.includes(Ut.key)?(L(),G("div",$qt)):xe("",!0)],2)]),x("span",jqt,je(Ut.key)+".",1),x("div",Hqt,[x("span",Wqt,je(Ut.text),1)])],2))),128))])]))),128))])):xe("",!0)]),x("div",Vqt,[x("div",{class:"section-header",onClick:Le[8]||(Le[8]=ot=>s.value?null:ie("short")),style:rn({cursor:s.value?"not-allowed":"pointer"})},[x("div",qqt,[Le[46]||(Le[46]=x("span",{class:"section-number"},"四",-1)),Le[47]||(Le[47]=x("span",{class:"section-name"},"简答题",-1)),x("span",Gqt,"(每题"+je(w.value.short.scorePerQuestion)+"分, 共"+je(w.value.short.totalScore)+"分)",1)]),x("div",Kqt,[x("span",Yqt,je(w.value.short.count)+"题",1),x("img",{src:C(Ih),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!b.value.short}])},null,10,Qqt)])],4),b.value.short?(L(),G("div",Zqt,[(L(!0),G(Rt,null,un(w.value.short.questions,(ot,vt)=>(L(),G("div",{key:vt,class:"question-item"},[x("div",Xqt,[x("span",Jqt,je(vt+1)+".",1),x("span",eGt,je(ot.text),1),x("button",{class:"refresh-btn",onClick:Ut=>Be("short",vt),disabled:s.value},[x("img",{src:C(Oh),alt:"刷新",class:oe(["refresh-icon",{rotating:l.value[`short_${vt}`]}])},null,10,nGt)],8,tGt)]),x("div",rGt,[x("div",oGt,[x("div",iGt,[x("span",aGt,je(ot.outline.keyFactors),1)])])])]))),128))])):xe("",!0)])])])):xe("",!0)],2)],4),He(h0,{visible:f.value,onClose:Le[9]||(Le[9]=ot=>f.value=!1),onConfirm:Se,onCancel:qe},null,8,["visible"]),x("input",{ref_key:"fileInput",ref:v,type:"file",accept:".ppt,.pptx",style:{display:"none"},onChange:ke},null,544),He(h0,{visible:f.value,title:"删除历史记录",message:N.value,onConfirm:z,onCancel:j,onClose:j},null,8,["visible","message"])]))}},lGt=Zo(sGt,[["__scopeId","data-v-2dc748e1"]]),Ake="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAYaSURBVHic7d2/bxtlHMfxz/fOdhMGyFwGjh216QASVE6dmQGG7u2CxJhsVl0UR8hVytL8CenAhBCZQLDEJK0QYiD8mJFVWmYXCZL6fM+XoXkqoD/yPOc7P8/d832teS55ct+3bCvOnQEhhBBCCCGEEEIIIUT9kesNuHLpo8mbzHiLGRRl+P7brdYPrvfkQnABtK/xOcLkUxC98d+v0KGK+Oqdj1s/udmZG0EF0L7G50DpAQEvP+vrDPzJU6zcuRlOBMEE0OkeJSqK7oLo7AsXMv8RKXVxuLU4ms/O3Ipcb2AeOt2jRMXx3qnDBwCisyqO9zrdo6T8nblX+0eAJ8MHEstDR1GWrdb9kaDWAcwwfK32EdQ2gAKGr9U6gloGUODwtdpGULsAShi+VssIahVAicPXahdBbQKYw/C1WkVQiwDmOHytNhFUPgAHw9dqEUGlA3A4fK3yEVQ2AA+Gr1U6gkoG4NHwtcpGULkAPBy+VskIKvVu4IzD/6uktVpSxXcRKxPAjMMfAdQ3Xs208fgYa5WLoBIBzDr8KMtWmWhkegCTGkVZtooAIvA+gCKGn+d5ebi1GEQEXgfgavhaCBF4G4Dr4Wt1j8DLAHwZvlbnCLwLwLfha3WNwKsAfB2+VscIvAnA9+FrdYvAiwCqMnytThF4EUCVhq8VEMEXBW8pF+cBtHvHa6jY8LUZI1heufaoX+yO7DkPAIjey3GQ8+FrM0VAlOd3L5TzAAhYtjzEm+FrM0SQFL8bO84DAPPYYrV3w9dyRmCzthTOAyCioeFSb4ev2UZAwGG5Ozqd+wCybBPAaY8C3g9fs4hgfPK7O+U8gOHW4ogZ63h+BIdVGb5mEMGYGes+/E7OAwCAgxutnSjLLhCwg8cPi2MAh2De3B+0LvhwomwNtxZH+4PW6wy1zsAQAMA8ImAnyrILBzdaO043eKJy/xSaV/v69DKx+sxkLYMvHwzOfF72nnzgxSOAcEcCCJwEEDgJIHASQOAkgMBJAIGTAAInAQROAgicBBA4CSBwEkDgJIDASQCBkwACJwEETgIInAQQOAkgcBJA4CSAwEkAgZMAAicBBK6R98BOn5em0+NlAGg0Fg6HfbK5zFvMqKjzbx1Ap89LKk03VJquRYgBACpNcak32aEs26zidXxVUvT5t3oK6HSPEpWmPwJY+//XGLiq4niv0+clm+8pzJVx/q0C4DjewItva5KoNN2w+Z7CXBnn3ziATp+XGLhqsHRNHgWKV9b5Nw5Av+AwMkkT47U+Uv5dNl/W+TcOIOL4NdO1inDedO28UIaJ8do4/rvMveRR1vkP5u8Aiqe/mq6NJpOfy9yLT4IJ4M7Wwm8Af3P6Sv5q+MlL98vfkR+CCQAAsmnrAzA/f7jM97Op+nCOW3IuqADu3qR7oNY7AH/59Ffp66zZunj35uK9+e/Mndx/Cq6q/QH9DuDdt3v8apMenSdGTM0zvwz75h8rVyfBBaB9N6AHAB643odrQT0FiKdJAIGTAAInAQROAgicBBA4CSBwEkDgJIDASQCBkwACJwEETgIInAQQOOMAWPHDMjciimMzK+MAYrL5hwmy/TxgcSrzc8qxMr5O0PwpQGXG35TBEkDh+H3TlY2p+WcSmwewsGAcAAGddu/4qevXRD4r1x/1YfFJ4zYXiBoHMOzT+MknYBogRLdONi5m0O4dr4HJ+Ho/mxkBlv8TSIRdMDrGBzBtrPQmVwDaBdj5J2VXCy0zeJlgcb4BgHHbZrlVAFGjeVul6bbVhoAEYHk6sMa5LlCMVTa0WW/1d4CTu1DYBiDmhICdUm8QAQBRs7mJ53/Uu3CIsmzT9hjrAB6/GFTWP0iUjDjX7XlyXwe/0pvcwjNuVSKc2N4ftNbzHDjTjRDavcme9atUUSgGhgeD1mre42d6M+jkB8uLQne2Zxk+UMC7gfuD1jqI5TXBfI0Zaj3vw/6/FXYvnE73KOE43jC8kZHIbztqNjeLujFn4TdD6nSPkiyKOyBckdcHxWBgSITdqNG8XfQdWUu/G1ane5RMG0goi5YoolfK/nl1wIofxkQjqGwsd14VQgghhBBCCCGEEELM7h8r2yBfEw11eQAAAABJRU5ErkJggg==",uGt="/assets/17-BJ4I6Ces.png",cGt="/assets/18-CsyhSRVL.png",dGt="/assets/19-LEWFVOdg.png",fGt="/assets/20-pqZy7Dwl.png",pGt="/assets/21-BTsblUui.png",Sj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAKUSURBVHic7Zo9btswFIA/2gjQUd069ghdUsCbfYP0Bs5WOBlUTd3KXEDWkHqNb9C1nerNRb34BnVOEO8FpA5xAaNx9GM+ioL7vpEm+KjPpPT4QFAURVEURVEURVEURVEUB+LYRqcU20gNdJXYKTAGImBjci5vM7uQGr+M69gOC8MUwxsAAze3qbUSY/clBrlOrAU+Ai92TRGG8flgeL9aLtYSMZ5jktgxhi8YXu01D98OhtFqufjmOn7PdQCAAj4dajdwN0nsWCLGISaJHRu4e+ZnkbjOgqr2vS9JFXIAIol3krOgLLNbCkq3kbSkGnIANllmt66xRLaYKfhQ2UdIUk05FDnvXGOB0Ev654/F5nwwvDdwUdbPwIXLi7u2HLicTe3XY2L8i4gggNVysfYpqZGc1M6bjF2GmCDwJymUHBAWBPKSQsoBD4JATlJoOeBJELhL6oIc8CgIjpfUFTm7ufmnyQPDY85Up69vObu5tENdSXVoSw543mL71N1uVbQpB1oUBO6S2pYDLQuC4yWFkAMBBEFzSaHkgNBp/pQJsoKaftFcqwAutC7o2M99KEmtCnLNhUJIak2QVKLYtiQ9alTgfQU1PXj6rkw2xaugY0/lXZLkTZBryaIrkrwIkqrndEGSuCDpYldoSaKCfFUCQ0oSE+S7TBpKkkge9D62r/s9flX1k8hd6v4RJmckcT9J5DTf7/G9qo9UYjdL7fxvQlkazzB1jQUCKyiObfS7x0NZHx9Zb52VdJbz0vWGh8gWu0rsA49X757g80hQJelzap2fT6pgNj/U6Pu8VLHdMokYIoLOcm7Yn1DB2uSM2jhMzlI7NzkjYLNr2gLZbk7d49SuASuKoiiKoiiKoiiKoij/F38A0km+yu6NC4kAAAAASUVORK5CYII=",Cke="/assets/13-BL3zSFtZ.png",xke="/assets/2-BidY8fbj.png",Ske="/assets/3-N-JnaHAs.png",hGt={class:"chat-container"},gGt={class:"history-sidebar"},vGt={class:"history-list"},mGt={key:0,class:"history-loading"},yGt=["onClick"],bGt={class:"history-content"},wGt={class:"title-row"},AGt={class:"history-title"},CGt={class:"time-row"},xGt={class:"history-time"},SGt={class:"desc-row"},EGt={class:"history-icon"},kGt=["src","onError"],TGt={class:"history-desc"},_Gt=["onClick"],DGt={key:2,class:"empty-history"},IGt={class:"main-work"},OGt={class:"work-content"},MGt={key:0,class:"main-layout"},PGt={class:"hazard-system"},NGt={class:"step-section"},RGt={class:"scenario-tags"},BGt=["onClick"],LGt={class:"step-section"},FGt={key:0,class:"uploaded-image-container"},UGt=["src"],zGt={class:"image-overlay"},$Gt={key:1,class:"upload-content"},jGt={key:2,class:"upload-status"},HGt={key:3,class:"upload-status"},WGt={class:"action-section"},VGt=["disabled"],qGt=["src"],GGt={key:1,class:"detail-view"},KGt={class:"detail-header"},YGt={class:"header-left"},QGt={class:"header-text"},ZGt={class:"main-title"},XGt={class:"header-right"},JGt={class:"current-time"},eKt={class:"detail-content"},tKt={key:0,class:"loading-overlay"},nKt={class:"image-section"},rKt={class:"image-container"},oKt=["src","alt"],iKt={key:0,class:"scanning-overlay"},aKt={class:"analysis-section"},sKt={class:"analysis-header"},lKt={class:"header-title"},uKt={key:0,class:"analysis-prompt"},cKt={key:1,class:"analysis-title"},dKt={key:0,class:"analysis-body"},fKt={class:"analysis-text"},pKt=["innerHTML"],hKt={key:1},gKt={class:"scene-tag"},vKt={key:0,class:"hazards-intro"},mKt={key:1,class:"hazards-section"},yKt={key:0,class:"hazards-loading-overlay"},bKt={key:1,class:"hazard-cards-container"},wKt={class:"hazard-number"},AKt={class:"hazard-text-container"},CKt={class:"hazard-desc"},xKt=["onClick"],SKt=["src"],EKt={class:"modal-header-section"},kKt={class:"modal-title-area"},TKt={class:"hazard-info"},_Kt={class:"hazard-number"},DKt={class:"hazard-text"},IKt={class:"modal-content-section"},OKt={key:0,class:"loading-state"},MKt={key:1,class:"comparison-container"},PKt={class:"example-card correct-example"},NKt={class:"card-content"},RKt={key:0,class:"image-loading"},BKt=["src"],LKt={key:2,class:"no-image"},FKt={class:"example-card error-example"},UKt={class:"card-content"},zKt={key:0,class:"image-loading"},$Kt=["src"],jKt={key:2,class:"no-image"},HKt={class:"modal-body"},WKt={class:"question-section"},VKt={class:"answer-buttons"},qKt={class:"question-section"},GKt={class:"answer-buttons"},KKt={class:"question-section"},YKt={class:"star-rating"},QKt=["onClick"],ZKt={key:0,class:"question-section"},XKt={class:"remark-input-container"},JKt=["disabled"],eYt={class:"character-count"},tYt={key:0,class:"modal-footer"},nYt={__name:"HazardDetection",setup(e){K("");const t=K("tunnel"),n=K(null),r=K(""),o=K(null),i=K("main"),a=K(!1),s=K(null),l=K(!1),u=K(null),d=K({}),c=K(!1),f=K({correct:!1,error:!1}),p=K(!1),v=K(null),h=K(!1),g=K(!1),y=K(!1),m=K(null),b=K(""),w=K(!1),A=K(""),S=K(!1),E=K(!1),D=K(!1),_=K(""),M=K(!1),O=K(""),k=K(!1),R=K({}),N=K([]),W=K(0),B=K(!1),z=K(!1),j=K(!1),q=K(!1),Y=K({sceneMatch:null,promptAccurate:null,rating:0,userRemark:""}),U=ee(()=>`确定要删除历史记录"${v.value?.item?.title||""}"吗?删除后将无法恢复。`),F=ee(()=>s.value?.effect_evaluation>0?Y.value.userRemark&&Y.value.userRemark.trim()!=="":!0),H={tunnel:{name:"隧道工程",color:"#3366E6"},simple_supported_bridge:{name:"桥梁工程",color:"#22B850"},gas_station:{name:"加油站",color:"#FF4D4F"},special_equipment:{name:"特种设备",color:"#0080FF"},operate_highway:{name:"运营高速公路",color:"#722ED1"}},re={tunnel:{class:"tag-tunnel",background:"rgba(62, 123, 250, 0.1)",color:"#3366E6",text:"隧道"},simple_supported_bridge:{class:"tag-bridge",background:"rgba(34, 184, 80, 0.1)",color:"#22B850",text:"桥梁"},special_equipment:{class:"tag-equipment",background:"rgba(0, 128, 255, 0.1)",color:"#0080FF",text:"特种设备"},operate_highway:{class:"tag-highway",background:"rgba(114, 46, 209, 0.1)",color:"#722ED1",text:"运营高速公路"},gas_station:{class:"tag-gas-station",background:"rgba(255, 77, 79, 0.1)",color:"#FF4D4F",text:"加油站"}},X=ke=>re[ke]?.class||"tag-tunnel",te=ke=>re[ke]?.text||"隧道",Z=(ke,be)=>{console.log("准备删除隐患提示历史记录:",ke),v.value={item:ke,index:be},p.value=!0},le=async()=>{if(!v.value)return;const{item:ke,index:be}=v.value;try{const fe=await zn.deleteRecognitionRecord({recognition_record_id:ke.id});fe.statusCode===200?(N.value.splice(be,1),W.value=W.value-1,ke.isActive&&await Pe(),console.log("隐患提示历史记录删除成功"),Et.success("删除成功")):(console.error("删除隐患提示历史记录失败:",fe.msg),Et.error(fe.msg||"删除失败"))}catch(fe){console.error("删除隐患提示历史记录失败:",fe),Et.error("删除失败,请稍后重试")}finally{p.value=!1,v.value=null}},ve=()=>{p.value=!1,v.value=null},Pe=()=>{console.log("createNewChat 被调用"),i.value="main",t.value="tunnel",n.value=null,r.value="",s.value=null,l.value=!1,u.value=null,h.value=!1,g.value=!1,y.value=!1,b.value="",d.value={},c.value=!1,f.value={correct:!1,error:!1},z.value=!1,S.value=!1,E.value=!1,D.value=!1,_.value="",M.value=!1,O.value="",k.value=!1,o.value?(o.value.value="",console.log("文件输入已清空")):console.log("fileInput 引用为空,无法清空"),N.value.length>0&&N.value.forEach(ke=>{ke.isActive=!1}),console.log("新任务创建完成")},Ae=async(ke,be)=>{try{if(console.log("handleHistoryItem 被调用,历史记录:",ke),ke.isActive){console.log("当前记录已经是选中状态,忽略点击");return}s.value=ke,i.value="detail",g.value=!1,B.value=!0,z.value=!0,console.log("开始获取记录详情,ID:",ke.id);const fe=await zn.getRecognitionRecordDetail({recognition_record_id:ke.id});if(fe.statusCode===200||fe.code===200){const Se=fe.data;console.log("获取详情成功:",Se),m.value={scene_name:Se.tag_type||it(Se.labels),labels:Se.labels,total_detections:Se.labels&&Array.isArray(Se.labels)?Se.labels.length:0,third_scenes:Se.third_scenes||[]};const qe=Se.recognition_image_url||Se.original_image_url;b.value=qe,qe&&await tt(qe);const $e=Se.tag_type||it(Se.labels);ke.tagType=$e;const Le=m.value?.third_scenes||[];R.value={},Le.forEach((ot,vt)=>{R.value[vt]=!0})}else{console.error("获取详情失败:",fe.message),Et.error("获取记录详情失败"),m.value={scene_name:ke.tagType||"simple_supported_bridge",labels:ke.labels,total_detections:0,third_scenes:[]};const Se=ke.recognitionImageUrl||ke.originalImageUrl;b.value=Se,Se&&await tt(Se),R.value={}}N.value.forEach(Se=>{Se.isActive=Se.id===ke.id}),console.log("历史记录状态已更新")}catch(fe){console.error("处理历史记录失败:",fe),Et.error("获取记录详情失败"),g.value=!1}finally{B.value=!1,z.value=!1}},he=ke=>{try{console.log("selectScenario 被调用,场景:",ke),t.value=ke,g.value=!1,console.log("选择场景:",H[ke].name)}catch(be){console.error("选择场景失败:",be),g.value=!1}},Ee=()=>{try{console.log("triggerFileUpload 被调用"),console.log("fileInput.value:",o.value),g.value=!1,o.value?(o.value.click(),console.log("已触发文件选择器")):console.error("fileInput 引用为空")}catch(ke){console.error("触发文件上传失败:",ke),g.value=!1}},Q=async ke=>{try{console.log("uploadFileToServer 被调用,文件:",ke),h.value=!0;const be=new FormData;be.append("image",ke),console.log("FormData 已创建:",be),console.log("开始调用后端API...");const fe=await zn.uploadImage(be);if(console.log("后端API响应:",fe),fe.statusCode===200)r.value=fe.fileUrl||fe.fileURL,console.log("上传成功:",r.value),Et.success("图片上传成功!");else throw new Error(fe.message||"上传失败")}catch(be){console.error("上传失败:",be),Et.error("图片上传失败: "+(be.message||"未知错误")),n.value=null,r.value="",g.value=!1}finally{h.value=!1,g.value=!1}},me=async()=>{try{if(console.log("startIdentification 被调用"),y.value){console.log("识别正在进行中,忽略重复点击"),Et.warning("识别正在进行中,请勿重复点击");return}if(!t.value){console.log("未选择场景"),Et.warning("请先选择场景"),g.value=!1;return}if(!r.value){console.log("未上传图片"),Et.warning("请先上传图片"),g.value=!1;return}try{console.log("检查最新识别记录是否已点评");const Gt=await zn.getLatestRecognitionRecord({});if(Gt.statusCode===200&&Gt.data){const vn=Gt.data;if(console.log("最新识别记录:",vn),vn.effect_evaluation===0||!vn.effect_evaluation){Et.warning("请先对上一次识别结果进行点评,再进行新的识别"),g.value=!1;return}}}catch(Gt){console.error("检查最新识别记录失败:",Gt)}console.log("开始识别:",{scenario:H[t.value].name,image:r.value}),y.value=!0;const ke="",be="蜀道用户",fe=new Date,Se=fe.getFullYear(),qe=String(fe.getMonth()+1).padStart(2,"0"),$e=String(fe.getDate()).padStart(2,"0"),Le=`${Se}/${qe}/${$e}`,ot=ke.length>=4?ke.slice(-4):ke,vt={scene_name:t.value,image:r.value,account:ot,username:be,date:Le};console.log("发送隐患提示请求:",vt);const Ut=await zn.hazardDetection(vt);if(console.log("隐患提示响应:",Ut),Ut.code===200||Ut.statusCode===200){if(Et.success("隐患提示完成!"),m.value=Ut.data,Ut.data.annotated_image&&(b.value=`${Ut.data.annotated_image}`),a.value=!0,setTimeout(()=>{i.value="detail",a.value=!1,S.value=!0,k.value=!0},1e3),setTimeout(()=>{S.value=!1,k.value=!1,ze()},4e3),await Dt(),N.value.length>0){const Gt=N.value[0];s.value=Gt,N.value.forEach(vn=>{vn.isActive=vn.id===Gt.id}),console.log("自动选中最新记录:",Gt)}console.log("识别结果:",Ut.data),console.log("标注图片URL:",b.value)}else Et.error(Ut.msg||"隐患提示失败")}catch(ke){console.error("开始识别失败:",ke),Et.error("隐患提示失败: "+(ke.msg||"未知错误")),g.value=!1}finally{y.value=!1}},De=async ke=>{try{if(console.log("openExampleModal 被调用,隐患信息:",ke),c.value){console.log("正在加载示例图,忽略重复点击");return}u.value=ke,g.value=!1,c.value=!0;const be=await zn.getThirdSceneExampleImage({third_scene_name:ke.description});if(console.log("获取示例图响应:",be),be.statusCode===200){const fe=be.data;fe&&(fe.correct_example_image||fe.wrong_example_image)?(d.value={correctImageUrl:fe.correct_example_image||"",errorImageUrl:fe.wrong_example_image||""},f.value={correct:!1,error:!1},l.value=!0,console.log("示例弹窗已打开,示例图数据:",d.value),console.log("API返回的原始数据:",fe),console.log("正确示例图URL:",fe.correct_example_image),console.log("错误示例图URL:",fe.wrong_example_image)):(Et.warning("暂无示例图"),console.log("没有找到示例图数据"))}else Et.error("获取示例图失败: "+(be.msg||"未知错误")),console.error("获取示例图失败:",be.msg)}catch(be){console.error("打开示例弹窗失败:",be),Et.error("获取示例图失败,请稍后重试"),g.value=!1}finally{c.value=!1}},pe=()=>{try{console.log("closeExampleModal 被调用"),l.value=!1,d.value={},u.value=null,c.value=!1,f.value={correct:!1,error:!1},console.log("示例弹窗已关闭")}catch(ke){console.error("关闭示例弹窗失败:",ke)}},ie=(ke,be)=>{console.log(`图片加载失败 (${be}):`,ke.target.src),be==="correct"?(d.value.correctImageUrl="",f.value.correct=!1):be==="error"&&(d.value.errorImageUrl="",f.value.error=!1)},ue=(ke,be)=>{const fe=ke.target,Se=fe.naturalWidth/fe.naturalHeight;Se>1?(fe.setAttribute("data-orientation","landscape"),console.log(`图片加载完成 (${be}): 横图, 宽高比: ${Se.toFixed(2)}`)):(fe.setAttribute("data-orientation","portrait"),console.log(`图片加载完成 (${be}): 竖图, 宽高比: ${Se.toFixed(2)}`)),be==="correct"?f.value.correct=!1:be==="error"&&(f.value.error=!1),console.log(`图片加载完成 (${be}):`,fe.src)},Be=(ke=null)=>{try{console.log("openImagePreview 被调用"),ke?A.value=ke:A.value=b.value,w.value=!0,console.log("图片预览已打开,URL:",A.value)}catch(be){console.error("打开图片预览失败:",be)}},Me=()=>{try{console.log("closeImagePreview 被调用"),w.value=!1,A.value="",console.log("图片预览已关闭")}catch(ke){console.error("关闭图片预览失败:",ke)}},Fe=ke=>{try{console.log("主图片加载失败")}catch(be){console.error("处理主图片错误失败:",be)}},ze=()=>{try{console.log("开始整个分析文本流式输出效果"),M.value=!1,O.value="",R.value={};const ke=m.value?.scene_name,be=ke?H[ke]?.name:"未知场景",qe=(m.value?.labels||"").split("、").map(vn=>`<span class="label-tag">${vn}</span>`).join(""),$e=`我识别到这是一个<span class="scene-tag">${be}</span>场景,检测到的关键要素为${qe}`,Le=[];let ot=$e,vt=!1,Ut="";for(let vn=0;vn<ot.length;vn++){const Un=ot[vn];Un==="<"?(Ut&&!vt&&(Le.push(Ut),Ut=""),vt=!0,Ut+=Un):Un===">"?(Ut+=Un,Le.push(Ut),Ut="",vt=!1):vt?Ut+=Un:Le.push(Un)}Ut&&Le.push(Ut),M.value=!0;let Qt=0;const Gt=setInterval(()=>{Qt<Le.length?(O.value+=Le[Qt],Qt++):(clearInterval(Gt),M.value=!1,console.log("分析文本流式输出完成"),setTimeout(()=>{Ne()},500))},30)}catch(ke){console.error("开始分析文本流式输出失败:",ke),M.value=!1}},Ne=()=>{try{console.log("开始逐个显示隐患卡片");const ke=m.value?.third_scenes||[];setTimeout(()=>{const be=document.querySelector(".hazards-section");be&&be.scrollIntoView({behavior:"smooth",block:"start"})},100),ke.forEach((be,fe)=>{setTimeout(()=>{R.value[fe]=!0,console.log(`显示第${fe+1}个隐患卡片`),setTimeout(()=>{const Se=document.querySelectorAll(".hazard-card");Se[fe]&&Se[fe].scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},50)},fe*150)})}catch(ke){console.error("显示隐患卡片失败:",ke)}},Re=()=>{try{console.log("clearUploadedImage 被调用"),n.value=null,r.value="",g.value=!1,o.value?(o.value.value="",console.log("文件输入已清空")):console.log("fileInput 引用为空,无法清空"),console.log("上传图片已清除")}catch(ke){console.error("清除上传图片失败:",ke)}},gt=()=>{try{console.log("reselectImage 被调用"),Re(),g.value=!1,Ee(),console.log("重新选择图片完成")}catch(ke){console.error("重新选择图片失败:",ke)}},Bt=ke=>{try{console.log("handleDrop 被调用"),ke.preventDefault(),g.value=!1;const be=ke.dataTransfer.files[0];console.log("拖拽的文件:",be),be?Ht(be):(console.log("没有拖拽文件"),g.value=!1)}catch(be){console.error("拖拽处理失败:",be),g.value=!1}},Lt=ke=>{try{console.log("handleDragOver 被调用"),ke.preventDefault(),g.value=!0,console.log("拖拽进入状态已设置")}catch(be){console.error("拖拽进入处理失败:",be),g.value=!1}},an=ke=>{try{console.log("handleDragLeave 被调用"),ke.preventDefault(),g.value=!1,console.log("拖拽离开状态已设置")}catch(be){console.error("拖拽离开处理失败:",be),g.value=!1}},Kt=ke=>new Promise(be=>{const fe=document.createElement("canvas"),Se=fe.getContext("2d"),qe=new Image;qe.onload=()=>{fe.width=qe.naturalWidth,fe.height=qe.naturalHeight,Se.drawImage(qe,0,0),fe.toBlob($e=>{const Le=new File([$e],ke.name,{type:ke.type,lastModified:ke.lastModified});be(Le)},ke.type)},qe.src=URL.createObjectURL(ke)}),Ht=async ke=>{try{if(console.log("processFile 被调用,文件:",ke),ke.size>5*1024*1024){console.log("文件大小超过限制:",ke.size),Et.error("文件大小不能超过5MB"),g.value=!1;return}const be=["image/jpeg","image/jpg","image/png"];if(console.log("文件类型:",ke.type),!be.includes(ke.type)){console.log("不支持的文件类型:",ke.type),Et.error("只支持JPG、PNG、GIF、BMP、WEBP格式的图片"),g.value=!1;return}const fe=await Kt(ke);n.value=fe,console.log("选择文件:",fe.name),console.log("开始上传文件到服务器"),await Q(fe)}catch(be){console.error("处理文件失败:",be),g.value=!1}},pt=async ke=>{try{console.log("handleFileUpload 被调用",ke);const be=ke.target.files[0];console.log("选择的文件:",be),be?await Ht(be):console.log("没有选择文件")}catch(be){console.error("文件上传处理失败:",be),g.value=!1}},Dt=async()=>{try{console.log("📋 开始获取隐患识别历史记录..."),j.value=!0;const ke=performance.now(),be=await zn.getHazardHistory({}),fe=performance.now();if(console.log(`📋 隐患识别历史记录API调用耗时: ${(fe-ke).toFixed(2)}ms`),console.log("📋 历史记录响应:",be),be.statusCode===200||be.code===200){W.value=be.total||0;const Se=be.data||[];N.value=Se.map((qe,$e)=>({id:qe.id||$e,title:qe.title||"隐患提示记录",description:qe.description||"暂无描述",time:dt(qe.created_at),tagType:qe.tag_type,isActive:!1,originalImageUrl:qe.original_image_url,recognitionImageUrl:qe.recognition_image_url,labels:qe.labels||"",third_scenes:[],effect_evaluation:qe.effect_evaluation||0})),console.log(`✅ 隐患识别历史记录处理完成: ${N.value.length}条记录,总数: ${W.value}`)}else console.error("❌ 获取历史记录失败:",be.message)}catch(ke){console.error("❌ 获取历史记录失败:",ke)}finally{j.value=!1}},dt=ke=>{if(!ke)return"未知时间";console.log("formatTime 被调用,原始时间戳:",ke,"类型:",typeof ke);let be;if(typeof ke=="string")be=new Date(ke);else{let Ut=ke;ke.toString().length===10||ke.toString().length===11?Ut=ke*1e3:ke.toString().length===13||(Ut=ke*1e3),be=new Date(Ut)}console.log("转换后的日期:",be);const fe=new Date,Se=new Date(fe.getFullYear(),fe.getMonth(),fe.getDate()),qe=new Date(Se.getTime()-1440*60*1e3);if(console.log("今天开始时间:",Se),console.log("昨天开始时间:",qe),console.log("记录时间:",be),be>=Se){const Ut=be.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return console.log("今天对话,返回:",Ut),Ut}if(be>=qe&&be<Se){const Ut="昨天 "+be.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return console.log("昨天对话,返回:",Ut),Ut}const $e=be.getMonth()+1,Le=be.getDate(),ot=be.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}),vt=`${$e}月${Le}日 ${ot}`;return console.log("更早对话,返回:",vt),vt},it=ke=>{if(!ke)return"gas_station";let be="";return Array.isArray(ke)?be=ke.join(" ").toLowerCase():be=String(ke).toLowerCase(),be.includes("隧道")?"tunnel":be.includes("桥梁")?"simple_supported_bridge":be.includes("加油站")?"gas_station":be.includes("设备")?"special_equipment":be.includes("高速")?"operate_highway":"simple_supported_bridge"},de=()=>{const ke=new Date,be=ke.getMonth()+1,fe=ke.getDate(),Se=ke.getHours().toString().padStart(2,"0"),qe=ke.getMinutes().toString().padStart(2,"0");return`${be}月${fe}日 ${Se}:${qe}`},tt=ke=>new Promise((be,fe)=>{if(!ke){be();return}const Se=new Image,qe=setTimeout(()=>{console.warn("图片加载超时:",ke),be()},1e4);Se.onload=()=>{clearTimeout(qe),console.log("图片加载完成:",ke),be()},Se.onerror=()=>{clearTimeout(qe),console.error("图片加载失败:",ke),be()},Se.src=ke}),ft=()=>{try{console.log("打开点评弹窗"),q.value=!0,s.value?.effect_evaluation>0?Mt():Y.value={sceneMatch:null,promptAccurate:null,rating:0,userRemark:""}}catch(ke){console.error("打开点评弹窗失败:",ke)}},Mt=async()=>{try{console.log("加载点评数据");const ke=await zn.getRecognitionRecordDetail({recognition_record_id:s.value.id});if(ke.statusCode===200||ke.code===200){const be=ke.data;Y.value={sceneMatch:be.scene_match===1,promptAccurate:be.tip_accuracy===1,rating:be.effect_evaluation||0,userRemark:be.user_remark||""},console.log("点评数据回显成功:",Y.value)}else console.error("获取点评数据失败:",ke.message),Y.value={sceneMatch:null,promptAccurate:null,rating:s.value.effect_evaluation||0,userRemark:""}}catch(ke){console.error("加载点评数据失败:",ke),Y.value={sceneMatch:null,promptAccurate:null,rating:s.value.effect_evaluation||0,userRemark:""}}},Tn=()=>{try{console.log("关闭点评弹窗"),q.value=!1}catch(ke){console.error("关闭点评弹窗失败:",ke)}},Nn=ke=>{const be=ke.target.value;be.length>200?Y.value.userRemark=be.substring(0,200):Y.value.userRemark=be},We=async()=>{try{if(console.log("提交评价:",Y.value),Y.value.sceneMatch===null||Y.value.promptAccurate===null||Y.value.rating===0){Et.warning("请完成所有评价项目");return}const ke=await zn.submitEvaluation({id:s.value?.id,scene_match:Y.value.sceneMatch?1:0,tip_accuracy:Y.value.promptAccurate?1:0,effect_evaluation:Y.value.rating,user_remark:Y.value.userRemark});if(ke.statusCode===200||ke.code===200){Et.success("评价提交成功"),s.value&&(s.value.effect_evaluation=Y.value.rating);const be=N.value.find(fe=>fe.id===s.value?.id);be&&(be.effect_evaluation=Y.value.rating),Tn()}else Et.error("评价提交失败: "+(ke.msg||"未知错误"))}catch(ke){console.error("提交评价失败:",ke),Et.error("评价提交失败,请稍后重试")}};return qn(()=>{Dt()}),(ke,be)=>(L(),G("div",hGt,[He(Q5),x("div",gGt,[x("div",{class:"history-header"},[be[14]||(be[14]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:oC,alt:"新建任务",class:"new-chat-btn",onClick:Pe})]),x("div",vGt,[j.value&&W.value===0?(L(),G("div",mGt,be[15]||(be[15]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):W.value>0?(L(!0),G(Rt,{key:1},un(N.value,(fe,Se)=>(L(),G("div",{key:fe.id,class:oe(["history-item",{active:fe.isActive}]),onClick:qe=>Ae(fe)},[x("div",bGt,[x("div",wGt,[x("div",AGt,je(fe.title),1),x("span",{class:oe(["history-tag",X(fe.tagType)])},je(te(fe.tagType)),3)]),x("div",CGt,[x("span",xGt,je(fe.time),1)]),x("div",SGt,[x("div",EGt,[x("img",{src:fe.originalImageUrl,alt:"隐患图标",class:"history-icon-img",onError:qe=>qe.target.src=fe.originalImageUrl},null,40,kGt)]),x("div",TGt,je(fe.description),1)])]),x("div",{class:oe(["delete-btn",{"always-visible":fe.isActive}]),onClick:en(qe=>Z(fe,Se),["stop"])},be[16]||(be[16]=[x("img",{src:kc,alt:"删除",class:"delete-icon"},null,-1)]),10,_Gt)],10,yGt))),128)):(L(),G("div",DGt,be[17]||(be[17]=[x("img",{src:iC,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])]),x("div",IGt,[be[44]||(be[44]=x("div",{class:"work-header"},[x("h2",null,"隐患提示")],-1)),x("div",OGt,[i.value==="main"?(L(),G("div",MGt,[x("div",{class:oe(["left-section",{transitioning:a.value}])},[x("div",PGt,[be[26]||(be[26]=x("div",{class:"system-header"},[x("h3",null,"智能隐患提示系统"),x("p",null," 基于AI技术的工程安全智能隐患提示系统,实时检测分析,提供专业评估和预防建议 ")],-1)),x("div",NGt,[be[18]||(be[18]=x("h4",null,"步骤一:选择场景",-1)),be[19]||(be[19]=x("p",{class:"step-description"}," 请先选择您要识别的工程场景 ",-1)),x("div",RGt,[(L(),G(Rt,null,un(H,(fe,Se)=>x("div",{key:Se,class:oe(["scenario-tag",{active:t.value===Se,disabled:Se!=="gas_station"&&Se!=="simple_supported_bridge"&&Se!=="tunnel"&&Se!=="special_equipment"&&Se!=="operate_highway","identifying-disabled":y.value}]),onClick:qe=>!y.value&&(Se==="gas_station"||Se==="simple_supported_bridge"||Se==="tunnel"||Se==="special_equipment"||Se==="operate_highway")?he(Se):null},je(fe.name),11,BGt)),64))])]),x("div",LGt,[be[25]||(be[25]=x("h4",null,"步骤二:上传需要识别的场景图片",-1)),x("div",{class:oe(["upload-area",{"drag-over":g.value}]),onClick:Ee,onDrop:Bt,onDragover:Lt,onDragleave:an},[r.value?(L(),G("div",FGt,[x("img",{src:r.value,alt:"已上传的图片",class:"uploaded-image"},null,8,UGt),x("div",zGt,[x("button",{class:"change-image-btn",onClick:en(gt,["stop"])}," 更换图片 ")])])):(L(),G("div",$Gt,[be[20]||(be[20]=x("img",{src:Ake,alt:"上传图标",class:"upload-icon"},null,-1)),be[21]||(be[21]=x("p",{class:"upload-text"},"点击上传图片",-1)),be[22]||(be[22]=x("p",{class:"upload-format"}," 支持JPG、PNG格式,单个文件不超过5MB ",-1)),x("button",{class:"select-file-btn",onClick:en(Ee,["stop"])}," 选择图片文件 ")])),h.value?(L(),G("div",jGt,be[23]||(be[23]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在上传...",-1)]))):xe("",!0),y.value?(L(),G("div",HGt,be[24]||(be[24]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在识别隐患...",-1)]))):xe("",!0),x("input",{ref_key:"fileInput",ref:o,type:"file",accept:"image/*",onChange:pt,style:{display:"none"}},null,544)],34)]),x("div",WGt,[x("button",{class:oe(["start-identify-btn",{"btn-disabled":y.value}]),onClick:me,disabled:y.value},[x("img",{src:r.value?C(Ske):C(xke),alt:"开始识别",class:"btn-bg"},null,8,qGt)],10,VGt)])])],2),x("div",{class:oe(["right-section",{"slide-out":a.value}])},be[27]||(be[27]=[ki('<div class="process-card" data-v-994f939a><h3 data-v-994f939a>使用流程</h3><div class="process-section" data-v-994f939a><div class="process-flow" data-v-994f939a><div class="process-step" data-v-994f939a><div class="step-image" data-v-994f939a><img src="'+uGt+'" alt="步骤1" data-v-994f939a><div class="step-number" data-v-994f939a>1</div></div><div class="step-content" data-v-994f939a><div class="step-title" data-v-994f939a> 上传图片 </div><div class="step-desc" data-v-994f939a> 选择包含安全隐患的图片 </div></div></div><div class="step-connector" data-v-994f939a></div><div class="process-step" data-v-994f939a><div class="step-image" data-v-994f939a><img src="'+cGt+'" alt="步骤2" data-v-994f939a><div class="step-number" data-v-994f939a>2</div></div><div class="step-content" data-v-994f939a><div class="step-title" data-v-994f939a>AI识别</div><div class="step-desc" data-v-994f939a> 智能识别场景要素 </div></div></div><div class="step-connector" data-v-994f939a></div><div class="process-step" data-v-994f939a><div class="step-image" data-v-994f939a><img src="'+dGt+'" alt="步骤3" data-v-994f939a><div class="step-number" data-v-994f939a>3</div></div><div class="step-content" data-v-994f939a><div class="step-title" data-v-994f939a> 隐患分析 </div><div class="step-desc" data-v-994f939a> 智能分析安全隐患 </div></div></div><div class="step-connector" data-v-994f939a></div><div class="process-step" data-v-994f939a><div class="step-image" data-v-994f939a><img src="'+fGt+'" alt="步骤4" data-v-994f939a><div class="step-number" data-v-994f939a>4</div></div><div class="step-content" data-v-994f939a><div class="step-title" data-v-994f939a> 查看隐患 </div><div class="step-desc" data-v-994f939a> 查看详细隐患结果 </div></div></div></div></div></div>',1)]),2)])):xe("",!0),i.value==="detail"?(L(),G("div",GGt,[x("div",KGt,[x("div",YGt,[be[28]||(be[28]=x("svg",{class:"header-icon-svg",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},[x("path",{d:"M957.217391 86.372174C957.217391 86.372174 957.217391 608.211478 957.217391 608.211478 957.217391 639.510261 949.782261 670.630957 934.956522 701.573565 920.086261 732.605217 900.674783 762.568348 876.633043 791.685565 852.591304 820.758261 825.121391 848.317217 794.267826 874.273391 763.369739 900.274087 732.070957 923.425391 700.326957 943.727304 668.538435 964.073739 637.68487 980.992 607.721739 994.437565 577.758609 1007.88313 551.490783 1017.09913 528.918261 1022.130087 528.918261 1022.130087 518.233043 1024 518.233043 1024 518.233043 1024 508.438261 1022.130087 508.438261 1022.130087 485.286957 1017.09913 458.440348 1007.88313 427.853913 994.437565 397.267478 980.992 365.523478 964.073739 332.577391 943.727304 299.631304 923.425391 267.308522 900.274087 235.52 874.273391 203.776 848.317217 175.415652 820.758261 150.483478 791.685565 125.551304 762.568348 105.382957 732.605217 89.978435 701.573565 74.48487 670.630957 66.782609 639.510261 66.782609 608.211478 66.782609 608.211478 66.782609 86.372174 66.782609 86.372174 66.782609 86.372174 103.290435 80.717913 103.290435 80.717913 103.290435 80.717913 512.890435 0 512.890435 0 512.890435 0 930.504348 80.717913 930.504348 80.717913 930.504348 80.717913 957.217391 86.372174 957.217391 86.372174 957.217391 86.372174 957.217391 86.372174 957.217391 86.372174ZM513.024 75.553391C513.024 75.553391 508.082087 74.529391 508.082087 74.529391 508.082087 74.529391 156.538435 137.527652 156.538435 137.527652 156.538435 137.527652 156.538435 466.765913 156.538435 466.765913 156.538435 466.765913 513.024 466.765913 513.024 466.765913 513.024 466.765913 513.024 75.553391 513.024 75.553391 513.024 75.553391 513.024 75.553391 513.024 75.553391ZM867.461565 466.765913C867.461565 466.765913 513.024 466.765913 513.024 466.765913 513.024 466.765913 513.024 935.401739 513.024 935.401739 535.81913 929.881043 560.617739 921.466435 587.419826 910.113391 614.177391 898.760348 640.623304 885.359304 666.713043 869.865739 692.847304 854.372174 717.957565 837.186783 742.13287 818.265043 766.308174 799.343304 787.634087 778.99687 806.288696 757.314783 824.898783 735.677217 839.724522 713.149217 850.810435 689.730783 861.94087 666.35687 867.461565 642.582261 867.461565 618.496 867.461565 618.496 867.461565 466.765913 867.461565 466.765913 867.461565 466.765913 867.461565 466.765913 867.461565 466.765913Z"})],-1)),x("div",QGt,[x("span",ZGt,je(m.value?.scene_name?H[m.value.scene_name]?.name:"隐患提示结果"),1)])]),x("div",XGt,[x("div",JGt,je(s.value?.time||de()),1)])]),x("div",eKt,[B.value||z.value?(L(),G("div",tKt,[be[29]||(be[29]=x("div",{class:"loading-spinner"},null,-1)),x("p",null,je(B.value?"正在加载详情...":"正在加载图片..."),1)])):xe("",!0),x("div",nKt,[x("div",{class:"evaluation-status",onClick:ft},[x("span",{class:oe(["status-badge",s.value?.effect_evaluation>0?"evaluated":"not-evaluated"])},je(s.value?.effect_evaluation>0?"已点评":"未点评"),3)]),x("div",rKt,[x("img",{src:S.value?r.value:b.value,alt:S.value?"用户上传图片":"隐患提示图片",class:"main-image",onClick:be[0]||(be[0]=fe=>Be()),style:{cursor:"pointer",transform:"none !important"},onError:Fe},null,40,oKt),S.value?(L(),G("div",iKt,be[30]||(be[30]=[x("div",{class:"scanning-line"},null,-1)]))):xe("",!0)])]),x("div",aKt,[x("div",sKt,[be[32]||(be[32]=x("div",{class:"robot-avatar"},[x("img",{src:pGt,alt:"蜀安AI助手",class:"robot-img"})],-1)),x("div",lKt,[k.value?(L(),G("div",uKt,be[31]||(be[31]=[ki('<div class="typing-indicator" data-v-994f939a><span class="dot" data-v-994f939a></span><span class="dot" data-v-994f939a></span><span class="dot" data-v-994f939a></span></div><span class="prompt-text" data-v-994f939a>蜀安AI助手正在为您智能分析图片,请稍候…</span>',2)]))):(L(),G("h3",cKt," 蜀道安全管理AI智能助手慧眼识图分析出以下结果 "))])]),k.value?xe("",!0):(L(),G("div",dKt,[x("div",fKt,[M.value?(L(),G("span",{key:0,innerHTML:O.value,class:"streaming-text"},null,8,pKt)):!M.value&&m.value?(L(),G("span",hKt,[be[33]||(be[33]=bn(" 我识别到这是一个",-1)),x("span",gKt,je(m.value?.scene_name?H[m.value.scene_name]?.name:"未知场景"),1),be[34]||(be[34]=bn("场景,检测到的关键要素为",-1)),(L(!0),G(Rt,null,un(m.value.labels?.split("、")||[],(fe,Se)=>(L(),G("span",{key:Se,class:"label-tag"},je(fe),1))),128))])):xe("",!0)]),!M.value&&m.value?(L(),G("p",vKt," 根据安全规范和施工标准,我为您梳理出以下需要重点关注的安全隐患 ")):xe("",!0),k.value?xe("",!0):(L(),G("div",mKt,[x("div",{class:oe(["hazards-content",{"scanning-mode":S.value}])},[S.value?(L(),G("div",yKt,be[35]||(be[35]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在分析场景隐患...",-1)]))):(L(),G("div",bKt,[(L(!0),G(Rt,null,un(m.value?.third_scenes||[],(fe,Se)=>(L(),G("div",{key:Se,class:oe(["hazard-card",{show:R.value[Se]}])},[x("div",wKt,je(Se+1),1),x("div",AKt,[x("p",CKt,je(fe),1),x("a",{href:"javascript:void(0);",class:"example-link",onClick:en(qe=>De({number:Se+1,description:fe}),["prevent"])}," 示例 ",8,xKt)])],2))),128))]))],2)]))]))])]),(L(),yt(QB,{to:"body"},[w.value?(L(),G("div",{key:0,class:"image-preview-overlay",onClick:Me},[x("img",{src:A.value||b.value,alt:"预览图片",class:"preview-image",style:{transform:"none !important"}},null,8,SKt)])):xe("",!0)])),l.value?(L(),G("div",{key:0,class:"modal-backdrop",onClick:pe},[x("div",{class:"example-comparison-modal",onClick:be[7]||(be[7]=en(()=>{},["stop"]))},[x("div",EKt,[x("div",kKt,[x("div",TKt,[x("span",_Kt,je(u.value?.number),1),x("span",DKt,je(u.value?.description),1)])]),x("button",{class:"close-button",onClick:pe},be[36]||(be[36]=[x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[x("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)]))]),x("div",IKt,[c.value?(L(),G("div",OKt,be[37]||(be[37]=[x("div",{class:"spinner"},null,-1),x("p",null,"正在加载示例图片...",-1)]))):(L(),G("div",MKt,[x("div",PKt,[be[40]||(be[40]=x("div",{class:"card-header"},[x("div",{class:"status-badge correct"},[x("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none"},[x("path",{d:"M20 6L9 17L4 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]),bn(" 正确示例 ")])],-1)),x("div",NKt,[f.value.correct?(L(),G("div",RKt,be[38]||(be[38]=[x("div",{class:"spinner"},null,-1),x("p",null,"加载中...",-1)]))):d.value.correctImageUrl?(L(),G("img",{key:1,src:d.value.correctImageUrl,alt:"正确示例",class:"example-image clickable-image",onError:be[1]||(be[1]=fe=>ie(fe,"correct")),onLoad:be[2]||(be[2]=fe=>ue(fe,"correct")),onClick:be[3]||(be[3]=fe=>Be(d.value.correctImageUrl))},null,40,BKt)):(L(),G("div",LKt,be[39]||(be[39]=[x("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none"},[x("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),x("circle",{cx:"8.5",cy:"8.5",r:"1.5",stroke:"currentColor","stroke-width":"2"}),x("path",{d:"M21 15L16 10L5 21",stroke:"currentColor","stroke-width":"2"})],-1),x("p",null,"暂无示例图片",-1)])))])]),x("div",FKt,[be[43]||(be[43]=x("div",{class:"card-header"},[x("div",{class:"status-badge error"},[x("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none"},[x("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})]),bn(" 错误示例 ")])],-1)),x("div",UKt,[f.value.error?(L(),G("div",zKt,be[41]||(be[41]=[x("div",{class:"spinner"},null,-1),x("p",null,"加载中...",-1)]))):d.value.errorImageUrl?(L(),G("img",{key:1,src:d.value.errorImageUrl,alt:"错误示例",class:"example-image clickable-image",onError:be[4]||(be[4]=fe=>ie(fe,"error")),onLoad:be[5]||(be[5]=fe=>ue(fe,"error")),onClick:be[6]||(be[6]=fe=>Be(d.value.errorImageUrl))},null,40,$Kt)):(L(),G("div",jKt,be[42]||(be[42]=[x("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none"},[x("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),x("circle",{cx:"8.5",cy:"8.5",r:"1.5",stroke:"currentColor","stroke-width":"2"}),x("path",{d:"M21 15L16 10L5 21",stroke:"currentColor","stroke-width":"2"})],-1),x("p",null,"暂无示例图片",-1)])))])])]))])])])):xe("",!0)])):xe("",!0)])]),(L(),yt(QB,{to:"body"},[q.value?(L(),G("div",{key:0,class:"evaluation-modal-overlay",onClick:Tn},[x("div",{class:"evaluation-modal",onClick:be[13]||(be[13]=en(()=>{},["stop"]))},[x("div",{class:"modal-header"},[be[45]||(be[45]=x("span",{class:"modal-title"},"点评确认",-1)),x("img",{src:Sj,alt:"关闭",class:"close-icon",onClick:Tn})]),x("div",HKt,[x("div",WKt,[be[46]||(be[46]=x("div",{class:"question-title"},"1.场景是否匹配?",-1)),x("div",VKt,[x("button",{class:oe(["answer-btn",{active:Y.value.sceneMatch===!0,disabled:s.value?.effect_evaluation>0}]),onClick:be[8]||(be[8]=fe=>s.value?.effect_evaluation>0?null:Y.value.sceneMatch=!0)}," 是 ",2),x("button",{class:oe(["answer-btn",{active:Y.value.sceneMatch===!1,disabled:s.value?.effect_evaluation>0}]),onClick:be[9]||(be[9]=fe=>s.value?.effect_evaluation>0?null:Y.value.sceneMatch=!1)}," 否 ",2)])]),x("div",qKt,[be[47]||(be[47]=x("div",{class:"question-title"},"2.提示是否准确?",-1)),x("div",GKt,[x("button",{class:oe(["answer-btn",{active:Y.value.promptAccurate===!0,disabled:s.value?.effect_evaluation>0}]),onClick:be[10]||(be[10]=fe=>s.value?.effect_evaluation>0?null:Y.value.promptAccurate=!0)}," 是 ",2),x("button",{class:oe(["answer-btn",{active:Y.value.promptAccurate===!1,disabled:s.value?.effect_evaluation>0}]),onClick:be[11]||(be[11]=fe=>s.value?.effect_evaluation>0?null:Y.value.promptAccurate=!1)}," 否 ",2)])]),x("div",KKt,[be[48]||(be[48]=x("div",{class:"question-title"},"3.效果评价",-1)),x("div",YKt,[(L(),G(Rt,null,un(5,fe=>x("span",{key:fe,class:oe(["star",{active:fe<=Y.value.rating,disabled:s.value?.effect_evaluation>0}]),onClick:Se=>s.value?.effect_evaluation>0?null:Y.value.rating=fe}," ★ ",10,QKt)),64))])]),F.value?(L(),G("div",ZKt,[be[49]||(be[49]=x("div",{class:"question-title"},"4.您的意见",-1)),x("div",XKt,[cn(x("textarea",{"onUpdate:modelValue":be[12]||(be[12]=fe=>Y.value.userRemark=fe),disabled:s.value?.effect_evaluation>0,placeholder:"请输入您的意见和建议(最多200字)",class:"remark-textarea",maxlength:"200",onInput:Nn},null,40,JKt),[[qr,Y.value.userRemark]]),x("div",eYt,[x("span",{class:oe({"over-limit":Y.value.userRemark.length>200})},je(Y.value.userRemark.length)+"/200 ",3)])])])):xe("",!0)]),!s.value?.effect_evaluation||s.value.effect_evaluation===0?(L(),G("div",tYt,[x("button",{class:"submit-btn",onClick:We},be[50]||(be[50]=[x("img",{src:Cke,alt:"提交反馈",class:"submit-icon"},null,-1)]))])):xe("",!0)])])):xe("",!0)])),He(h0,{visible:p.value,title:"删除历史记录",message:U.value,onConfirm:le,onCancel:ve,onClose:ve},null,8,["visible","message"])]))}},rYt=Zo(nYt,[["__scopeId","data-v-994f939a"]]),oYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE+SURBVFiF7ZdNUsIwGIafLxatO47QizADN/AIeAPdKStc+LOTG8ANxBPITC/gEThCdyLYxFX8YUqh/2UmzzKdpM98mSTfCw6Hw9F+erefF/2x6Vaxtiq6QG+0HoqSF73ZvFUhKUUm90broQjTP0PvqtMZLMYSFfT6IXcFE+QAuqxWpVYxVwV3yC1VHA8WT+fL4lq/ZBasUw4yCtYtBxkEm5CDAwWbkoMDBJuUgz2CTctBiqCVM+jrk9jMAfC8QGu9LVzQQCKjzV34eDZP+uylyYFMwnt/AtC/+Qi0MVNEglIFAVHyDCQKpr4kQjUNQAI7/7N3ixGu1Ff8CjSyxcd7SCxNSx7/RW1p9VNnaXWzYGl1u2VpdcNqqUsydyYJH05nxnC5NRzh+6UFJiiY6uBfJUtPdKVRZXB3OByOivkGXifOFMpxESoAAAAASUVORK5CYII=",Eke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAMsSURBVFiF7ZhLbtswEIb/0aPoUkeQb+AjOCeIta8TC6gDdJXmBElOEGdlwA5AJ27WdE4Q3aA+go6gZQBRYhcRUlGibMrKAy3y70RryM/D4cxQwKf+c1EXY8a49wR4jgNfCMQ/wiB+Ja4XtQZcrPjAIhxKiTEATzNjDCCSEreTURC9G+BixQdEYJDwW8wfpQJhF8/uBGSMe5mLKzx7bC9J4HIyCi72sd0KOGPcdx1wAP2GleNiSxMAHgj+Fg+vbYEwDIOkDaDT9EPhuUfNgonM82snt6a6xeb3vG9JnGo8PsxcJADCNoCNHrz5xVltEcLSTnFm4oUZ476r+YNS4mxyFEw7Ac7v+NgiMGXiPeKIMe5lzyEyKI+nAj3Tg2NpBy2cV4bW+wR5GAaJLRAUcfoi18GV6Rw1wJsVHyrbQohTgbO2cGVIKWtxN2SM13OoCSAIh+VHmeO6a4WYjIIIhGV5LHNwbGKr2+JB+UFkWO9NVpKUuN22TpMUQMa4Vzl1m9eqr47ARhmQDbm1IgUw/VLPeZ2oSipS09/5SFPHNVIAKa8YVU5fZ0nlD7cHFKIC1K4x2C1Dr5WlAH6tbukrAs4Y96F6bdPwqiIFMAyDBLLkRYI/v+dGwbxLtl07tbHmtZpqaYYsNa2QyId7U5UXIjXv5RIPRnbVgaohWdZpsT17a37Hx1DzXpJliExsa4BFm1429lwH3LQ0VTVj3K/VdsK6U7MggcvKUD9zwNpCalsuQpymtfnbAU5GQaSBHGYufptu92LFB7p+kGDuveL9Zt2sOAdQPySEJSQebIGo3Lw+d+HyEJLG2FJrc4nw5ChYdgZkjHu5i3Mp8XPLawkkkiIJG4eAKaTRtXOx4heEWhNrqgSEte5WaAKpjcGqJqPgIhXoVXu6XWBEmNoCve/fgjCvN62wCGzOtheC1l8WZoz7to2BRTiGhA8qHQKJGBYiSGxsgdvq5Up31wGQ5AIHJ2GgLX2dvs3so7aQ7w4IAHPG+5aDR6iHSgv5IYBAM6Qt0CuHhtEheQudhMEmFziA2uJ5T5VU9WGAQAmy6NyJMH2Lb4ydxRj3unZMn/pn9QecTlNPkc9dAgAAAABJRU5ErkJggg==",kke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFlSURBVEiJ3ZUxUsJQFEXPD2KNMzAOHQUwlC4BluAOwoSeJZjsAHoQdsAScBmMUKSjiEVqIXkWUUBIyANt9FV/Mv/e85N33w/89TLHD+q9oG2EJ+ABKKVoQpF4uHq+dy8GNHuBK4m5RjpdjstdNeDz5HMAY/DetzcDf3oXHguSfWYCUtNArN1KTB9AJPZeRxU3zRxgNaq8FKJNB4wPYject4kKYJA2wDa+HQDUnWBWd4JZmmgxrfpaiHWwLgFknfxayK4HDScQgOW4cpKsc9Wy17WoUJxn9cTK0Kkr701+DEiDNHuB+6uALwhW/AggQj8NEELyTa+FiJiTyd/H1DAEiArF+TWQlr2uJQMIIvFw53u4KWmQ2GD8QrTpLKZVX2uelaSTSF4KyYtpaua1kDzzTIAGojE/CzgH0ZrnAo4hYqRrjITE1kx7XavunT3km1T1w1FN8nJc7orEHskwhsbgacz/R30A7ZrwEHLpuasAAAAASUVORK5CYII=",Tke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGBSURBVFiF7Zc9TsMwFIC/OBVi7MiYIyAxsLY3CCMjW6EMaTgAjwu0QUJVtx6hZWNrRwYOkSNkLo3NEqGqOG3+pAroN9pP9ufnJ//Af8fJ6+gF4rUUIwMdoJ0TlgDzVPM0iSRuTKAXiOcqFoBXcJw41XSrSFgF7kOZGfANzE80N1EkiS2uH4qpK6FsjVna0ZpB3uRbxIDnKha9QLzaAmR7XnQ1qaZbVSJPoBSTSOKqEo0I1JFoTKCqRKMCVSTqCiQAtw/i75MIArEeZq06szvwbOBRGWb9UHaFeivFFLja7qiVgZehiIEnskzswsnOlm1qZQBgPBQBZFdMdmJat6DxIizLwQUKb8FdKDMH/P2RYGA+HsqPgrPxezJQdEVlOXgGDi5wLMJjEeYJJAB5V2gZNt4C1gvLKuDAEmClmJZ95W4SBNJWitHmmNtYa2CtGbiKcwd8V+Hvuetz+eT74xGvNQNbjGtr/HhfJheXnVfXwQPOgNNKBpA48JZqrqt+3f4+X/QCoAn6Ho4MAAAAAElFTkSuQmCC",_ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAKsSURBVFiF7ZbBVdtAEIa/XUHOLkF04A7AFSSuALj5Ae9lcQpgXUBs8R4QboYKCBVYVBB1gErwMS9EOzloJeRFDnZCTvF/0bNnNPPv7Mw/gg02+N+h1nE+MXZPNO8RugKxUsQAIuQKchSZctxfJDZ9UwJHQ3ug4AzKhCtgLnD+zpEkiZ3/MQF/4mkjcQ6kznEfwXwLMoDv0NmCWDTvgQOgU/k7xemXz/br2gROhtZKeWqAXGB0NbY3vyO8QFxxhmLPJxldjK1diYAxtvNDM1Xwoe1lbzdK2EXRBUDIRHEbEjweWgNMvE+6LfTDK1kgYIztPEXMELpALo7+VWKzyj4wNo4i7ry9DXnh6F0nNl+oxvM1vrDr5ttPqg6eF45eMzlApJ/JOUe/cOwUjh2BQ8r+iKOIO2Ns1QNcJDYtHD0UGRBHimlrBY6HdgKYNpZQT8J0mX1gbBxpZkDs+8UuszevVVfBffK5OPphcAAl7AMIjNrs14nNnePU++622cXR9zHOfH/4K5C620dh2Z8ZlPfuHGmrvQycNX1D+Nin/ufHmoBaSw/fBiLls2rCc/+cDIyN298oT6dYOgFoXc595RviyNgulbYoRjWBy7FNFOUfkWbWRkIUDz5JK8mBsbGXa0Rx22rX3FGqZFJpxkLxjz/ZbwhdFFlRLDbjC42AUdUPCrpaM8HP+uXY7oTJa/0Q0suJ7dVVazoWBX0gR+hGmpkvGQBJYue1vRylaaR5jDSPujxZjCIrHL1mzHr8Kn0RDpv2F+0XqN1c4DSU2KOhPVDCfiDFD+H2C6W4EA7DEV7a/w1hAiFVwmjVPR9u0bWWUUDCUDZWpyIiigftSH9CXp1mYGy8BbHT7CnYrxKzwhZ9VQHq7VcKR+c1/yoxcL7tuPmrD5IQ/+KTbIMNNvgFdcNyG4wBmd0AAAAASUVORK5CYII=",iYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAAA4CAYAAAASCXE7AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAgJSURBVHic7Z0/TBtZHse/740NNkOIp8nIV8VzxWqJjPZCs4gmEk4X6Tgp1ywX5SggzW2kpFjRRLcRV5AURLqkOSiSKMs2GyleiS5GSnFWtiG3whKrU7RDqrMmzcyCjQ3jmXfFeAb/w5g/8djwPhJi/j7//OY7v/n9fu9ZQ9CEDZ1FbBM3GcEV22ZfEIIIgEizczhdjwHgAwCDwX5uWcKbz6Pkw34Hk0YbN3QWsUw8YmB//SQmcroKAvLMtHC/kZDqBPRfrTROCX0K7mk41Rg2syc/kwPJyo20cuW9Zn1LCX0FLh5OPRFK6Kv3mvVt5UbPA5U9z6u2m8XpOmxm/8n1RAQAfsmyiwGB/Qfc83BawwgESSwmEYMCQFDA38HFw2mdiGXiEQCQsvfZ8NsiTvcRCBKJCoJ1xW9DON2JbeImJaA3/TaE050wgisUPPbhHBHbZl9QABf9NoTTnRCCCPdAnOMQoQcfw+HsT0cLaPbFFmZfbPltBqcJAb8NaMbb9V2/TWgra6qJjGoirgQxpATr9qdWd/B6tYirwyEkhnt9sLCejvZAZ42MamJppYCMajbcr+kWMhslaLoFAHi9uoPU6k47Tayjoz1Qu9B0Cxm19MnaF8MEI4M9J9qmplt49DLnLU8k+k60/VbhAgKQUUuYL1+MT4Es0ToB/Ws5j59qHtG5AgMAJNNFpN5Ve5bpa6K3rOk2ZEnAk9vnMftiC0srBQDwRURcQAAuSBSJywfHFPki8+KykcEeiKGGEzrrEMOtHXcQsiRUrSvRAOamBvC3f/7mm4i4gAAM7RO01qLplieg6Wt9dRf0MNy6JuJWhVcBgKXUNpZWChgfDTUUQqN4R5YE3LtxDjOLm0e25ThwAXUh+SKrWh9SgpibGmjpJjhpfBNQanUHyXQBatbyto0M9uDejXNNz5t9sVWV3seVICbGwr503lGZ/6FxvKVmnUD+7fouNN2u268ZzrY11WzYhuuh4koQV9uU5vsioDXVPLGgNaOamFFN3L3e3/baiJtOH/ZRVhsg16Jmraobq5Z8kR3YxqkWkBvwjY+G8NVYH/oPEWRWeqhcgeH7lW0k00Uk04W2CihXYPjHd1vIFRhuXRMP9dlzUwN12z7qFnIFBuV3+1+SfIFh9rutfdtwkaX2lfd8EZBbKDuseGrpDxN8NdaHZLrY9I79VIghAk23Mf8yd6haTKPH7eTDHDTdbupJ3TQfcDKwyr5bSm0jMdx7rMD+KPgaRB9HPCfZxlE/98ntiJc5La048dyd6/0H2lRbuFSzpaqYp1G2dUGiGFKCEEME+SJDvmijP+yIZa1cwU6928HTb6QT+oatwbOwY+J6naWVAt6u70J9bGBuaqCpJ2hWuNxvezwWwND0ecgShZq1vGIiAPyYLjq2jJ3xQmIyXcDIYM++ne/WYcZHw222rDkTiT5ckAQsLOeh6TZmFjebiiiuBHD3ej8AJ+N6u74LWaJNBeAWI2VJgJq18LHssdw+kSWKuNL+y9kxg6nJdAELy9uYWdz0sptKNN3CzOImFpa3kUwXfLCwOVeHe/FgesCLi2YWN720vBZZEpAY7kVcCXjH3CnHPr9mS1hTTXw52IPEcK/35w6FXCgHyL+Wz1tKOX0RjwXbHv8AHSQgx/NQr/MrReSKx3Hb9eNKnYISDeDJ7fOeiJL/LjY9filVgKbbSFzu9QLrn9Z3kXq3g3yxvg4EAL+POl7mo25D0y2k3u1ADBFMJPzxyh3zCJMlAXNTA55QZhY3vXS0UjwHxRd+I0sCHkwPYP6HXNOLmivs1XI0w/YKg26mtbC8XTXWNnKpByODPd5jak01vcl246Mh3/qkYwQE1Ivo6TfOdO3Jh0ZXiMfF8UTNp5pXepiMaiJTs792Mp3reWVJ8DIxNWs5sZNPUzmADhMQUC0it7bTTeJpFVkSvBukEvfmcb7vXoQhhvaWh5SgJ7Dawmq7yxodJyCgWkQATp14XJp9J1miEEMU+aINNWtBDNkYUoLQdMsLvJWoACW6dwlnFn/zRufbRUcKCNgTkbt8WlhTzaoU3Pm/t+4uTz40qs5LXO6FLFHPQwHOmFml19F0u+0V+Y4VEHC6hOPizns+CCUqePGOLFGI4T3xKFEBYpgio5r4MV3ARKIP6v9KyBcZlOgZGso4i4xc6oEYpugvZ1himECOUIhhAjFE8fVjA5pu496Nc94N9Hp1BwvLeU8gc1PnkdlwfsGRTBfxx9Gw53kqH2ntwFcBnUTQVznA2A0o0cChLvKaanqT5+NKEPf+cg795Un6StSpSn/92PD6YeRSe2tkvhQSXTf7/cr2sQTgTucAnM49jQyVJ8yNj4bwYGqg6oa7++d+r2iZLzJfiqy+eKDx0TDmX+bK83iaV2tbZWKsPZXYeMzpssq0+iT5crAH+QKran+/Oo9b+U6t7kAMt/bDgJOGvP9o+/IMWDvgR3StokQFjI+GO+aXmmcN3wTEOR10zGAqpzuhcN6NwOEcBYMyxgXEOTIfKKXkZ7+t4HQtBiUMb/y2gtOdMNjPyYbOIiWT6X4bw+k+ShaJ0ZhEDALyzG9jON0FAXn2eZR8oAAgBHEHPBvjtI5hWrgPlOtAMYkYNrMn/bWJ0y3YzJ50317oFRI/kwNJMHbfN6s43QFj9yvfWshfeclplYNfeQk4nqhkkT/wwJrjQkCeBYIkViseZ18Tfsmyi4JgXSm/0ScC570a3DOdbgzGYFBKfiYMb2gQz2MS2TfB+j8kDmw7OOugHAAAAABJRU5ErkJggg==",xd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAM4SURBVGiB7ZpfUuJAEMZ/PcR3UnsAucG6J3As4rN6gsUb6AnUE1ieADiB8qzieIJlT7BcwEregcw+JPLHJSEMCWjVflUUkO6Z7i8zPfMxQViBtyC4VnACHKzyXRMDwDAe3/jGRK6dSJ4xDIJflJ/4IqwdMpkc+cYMXZqrLEMYBBdUnTyASINa7SXUuuHSPJMA8NMpIRdsQCJzCoVBYD9cMjG8rhsAQMEhoFc6Okwnr6hjDK/fnp6ui/rPI10I9GKH8TlKtReuzUaiMIm8KVQp/H6/Qxyf/2NYczrtjACUQ2KnBGBzEjsnAIVI1LPafgoCkE8i9ryLrHafhgBkk1DWZu5JhZfRsrFkn8mGSCPL9KlGwAVbIaBEwsr6rqrjBYxGPcBZMudhKzXgGzMMtf7B3t5JbK2/yr+wdmKLRZxqm7sivku1UwYqIZD+lrjC2gilzvzHx0EVcaCCGkh3zVugjkhEHN+XHWMeVRRxsu1bO4yhh0gjTwpsim3tA1+KQLJcijSUtfswLeBKUDoB35gIa4cAiJySHJ9UhqqmkEnf61j7BQkoNUs6R4iVEqqSXq09nfumXc98iqCKfaAB6LQOHgDwvHZOk41Q/gjUalcAsUiX8ficZFXSYbPZrmI/KFVKhFo3EGkBqPG44xsThcfHR8TxPSItajUdNpvmQ10MGI/vSj8bdUJ697G2M01oNIoQSaaSyDtBPfe6wPP+hEGgXUKWNgLzdx+l7lJFuVwWJ/VhEOlibR2Rdpz4mXXjlkIg1LqO593OJfiiEvkQpYk+YO3v1HqFiAZaQAtJjmeVQ/JQAoGpdJ7pnQgYYG2HyaS35OGFCbVuoJRGqe9YWwd6/vOzcYnvTCC96/fMhl4DEMeXfr/fyWub1keuT1G4F7HnvZCs9x1mErqzKvmy4UQgbDZPgYOpaHv/PJnclJZZQbiNgFL7AIjUEWlt+pxrE7gRGI26JDKhDphdJQ+ORZyuLGcl5+KE/0eLu8aXJ5BXAxFzpwkKDt+C4LrqhN5jFfXNIzBk8Um9LnrcVwFMliFvCnXLz8MZvSzDqj97JHJhtzD+09NRljG3iNOGlzhK3Q2QKFq4zEse4C9IGz/zNm81nAAAAABJRU5ErkJggg==",Dke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAN2SURBVGiB7VpNbtpAFP6eDawdqaTKqq4UpOyanADnBOkNSkBdNzlB0xO0XbdJyA2SE8Q5QckuEll4FyVUwmvAfl3Y2GNgjBkbSCW+lWfem5n3zbz5eQ8Ic7DbfD4j0o4A7M/TXRAdEOzhqPTNaW+5qp1QmrDW6v1B8YZPmuDo3vDwob3jqLTWZILdZu8ESzceANj09PLtXuPJVGktJUCET8o2LQx1ElIXqrV6PFFlM/t3iw4AAERaHYCVQXNhdyplVWT27x4v3p5l1RcRHgTWRIfHILqcGGW8EplJSF1o2ehebLfBfDwtWcyd1kYAKIbEWgkA+UmsnQAwn4TZ6Buytq+CAJBOoqQNTmTtXg0BQE6CQNI7KfMxWjRm3DNyEJky0ataARWshABRqb+svldCQPcGNwCUn8xpWMkeeGjvOHuNpwNPrxwxj7bm6Wd/O61wE4dvm59ZdGe+nSTYbOJ1Y0Ng3dgQWDeUj9Fa86URh4TkDD39QMzvhPLvAAxmnD5eVH8k2rf+XgLcAIBZ8qxQXwGNPsQFNiv6wErIib4AMIJPfBVFQZASGB/q1pXNUG1IExkKn+McUhiAiDklo/b5JSr7upbINxHIVrVDmcDAqyQHJT1akanVAABfj2aZg6eCYIWnlK4BchAI/b0zLhP70axOGRjUxrPO4uqQ0/213ZnWz4Z8pxDBjr/JjGJXnpWS5I9CISYrTIIKcj3miKnDiAOrij6wzEbfBkZWWOWC2Q0jKsNsPJnlsm7AhxH34d/ksSHXCgw8PTE4o/SuVBqJs99h0qIZrujlOvlsJjrR861ALgJOe8sFsxPX8D4BR0L31+IJw4CV3B/5/B8o4ibW6Dr6Zt8S/Z/Jv0+cMJPynP4PFBDQJPZB4OtmKHIff1dtAKi1ei4AY7wX4rb5/B8oYAUG3lB2hkezy8mLKiKg+55Yr4TcBJz2jpPcB1HXkWvNvmnJUf1ZKTFK3g4AAKTZk1VM/n08ysybdqqNCgohwMRXADlClT32fwAIThpqC3IXmp8pwJ+HQrISobHv03S652+OAcxI3ubDfx/QbAisG2l7ILh8QhBp9d3m89nSLUKUWsyENAIOklGVlTXdtwTYMoHUhZhxtRRTFMAM6ZNj3p89bpExS7xE2N3z6qFMmLqJu+fVQ2acoqBbcwG4ADrMOE0zHgD+ARbbT11NUi+MAAAAAElFTkSuQmCC",Ike="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANFSURBVGiB7VlBVtswEP0jAt2m70HK0j1B2xNgdok3wAEC+ATACQgnaDmBAR+gsAnZEU5AegMveYT36jVJNF1gqO1YjmMpCbzH30UaeeZrNJrRhDABtXOnBYEtAN8nyU6JHhN3B4NPJ6F7GZb9COVN1nznDuYNT1sQiIHcvHc7QZnlQjXx5aJxiFkbDwAMSy6Lm3WvbpVZriTARHuljZoWGiSUR6jmO5zUwV2SdFvCPLDgDQLZBayZ+jhVigqSpNuHvXarqHwc0UVgx8eY4RLBSwj+90RhEsojNGv0d9tnzHDHJqY8TgsjAJghsVACgD6JhRMAJpOoettV1do3QQDIJ7Eing5V694MASCHBLEyJxW+Rk0jnWdyQWSppt6UB8pgLgRY4O+svj0XAktDecVA6ZI5D3OJgXu3E6x79R+jitgiic+T5AvXTphjEEe1zWkR2azaSYWPIF403j0B7RhY9es2Qfwm4LleIQQ8wE7fbfficute3RpVxN2LHAMhQ+48NjtdHf3aHiCIb6/GP1tmocI/03JyWdzE5QioEgtLV782gX6zfQpCEB8jkF3zG9svv9cunH0wLCSFgv5u+0xXv5EYkCwzCjB69QIJHKenWeLEhG4jBB6bnS6Du4lBhrXq123F7p+Z2H3AYCJbGrI7qtBd8pzTMYiRbn6IgTSy+4DBa/Te7QQkk5mWQHZGSXBStguXBaN54Emu/EoHdAKE4KFZrjWjglECoXsZZgZ0BFOBG4fxTJx3tzPJwLQ+8wQyrsxXZSS8vA5DGRglUPOd1tiVGceEDkMZGCMQNaDSu99L5wcWOCjbSs+CMQJyWYxnW8YpgxOBS0B1VCEvLVsWRgjU/MY2GPuJwajWycrSBLJX/bptQrcZD8TqnhfEr8y0F4DngDahWptAkUpTVSut+c6Brn5tAkwyiLdMGAjFQG6OCQ7pKJ6lowfNH1392sVc9KKa2CqJXmhfdfWl8e7fxB8EFg1lDDAQxh8nLHijdu605mFU1FosJKskQECA2D/1BLKLtvt0kTZ+7AqOQXmEiPncnEl6EIwr1Vyun9b8xk3RLvGswOBuv3k9nlci5AZxv3m9ScxHeS6cBaLE2CPmozzjAeAf9g9XIJ6mCdsAAAAASUVORK5CYII=",aYt={class:"policy-container"},sYt={class:"main-content"},lYt={class:"search-section"},uYt={class:"search-box"},cYt={class:"category-tabs"},dYt={key:0,class:"loading"},fYt={key:1,class:"no-data"},pYt={class:"doc-icon"},hYt=["src","alt"],gYt={class:"doc-content"},vYt={class:"doc-header"},mYt={class:"doc-title"},yYt={class:"doc-date"},bYt={class:"doc-tags"},wYt={class:"doc-description"},AYt={class:"doc-footer"},CYt={class:"doc-info"},xYt={class:"info-item"},SYt={class:"info-item"},EYt={class:"doc-actions"},kYt=["onClick"],TYt=["onClick"],_Yt={key:2,class:"load-more"},DYt={__name:"PolicyDocument",setup(e){const t=Yl(),n=K(""),r=K(0),o=K([]),i=K(!1),a=K(1),s=K(10),l=K(!0),u=K(null);let d=null;const c=()=>{t.push("/")},f=_=>{r.value=_,a.value=1,o.value=[],l.value=!0,p()},p=async(_=!1)=>{if(!i.value){i.value=!0;try{const M={page:a.value,pageSize:s.value,search:n.value,policy_type:r.value===0?"":r.value};console.log("请求参数:",M);const O=await zn.getPolicyFile(M);if(console.log("API响应:",O),O&&O.data){const k=O.data;_?o.value=[...o.value,...k]:o.value=k,l.value=k.length===s.value}}catch(M){console.error("获取政策文件失败:",M)}finally{i.value=!1}}},v=()=>{d&&clearTimeout(d),d=setTimeout(()=>{a.value=1,o.value=[],l.value=!0,p()},300)},h=()=>{n.value.trim()&&(a.value=1,o.value=[],l.value=!0,p())},g=async _=>{if(console.log("查看政策文件:",_),console.log("文件ID:",_.id,"文件所有字段:",Object.keys(_)),!_.policy_file_url){alert("文件链接不存在");return}if(!_.id)console.error("政策文件ID不存在,跳过次数更新");else{_.view_count=(_.view_count||0)+1;try{await zn.updatePolicyFileCount({policy_file_id:_.id,action_type:1}),console.log("查看次数更新成功")}catch(O){console.error("更新查看次数失败:",O),_.view_count=(_.view_count||1)-1}}const M=_.file_type;if(M===0)window.open(_.policy_file_url,"_blank");else if(M===1||M===2){const k=`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(_.policy_file_url)}`;window.open(k,"_blank")}else window.open(_.policy_file_url,"_blank")},y=async _=>{if(console.log("下载政策文件:",_),console.log("文件ID:",_.id,"文件所有字段:",Object.keys(_)),!_.policy_file_url){alert("文件链接不存在");return}if(!_.id)console.error("政策文件ID不存在,跳过次数更新");else try{await zn.updatePolicyFileCount({policy_file_id:_.id,action_type:2}),console.log("下载次数更新成功")}catch(k){console.error("更新下载次数失败:",k)}let M=_.policy_name||"政策文件";const O=_.file_type;O===0?M+=".pdf":O===1?M+=".docx":O===2?M+=".xlsx":O===3?M+=".pptx":O===4&&(M+=".txt"),O===0?(console.log("PDF下载URL:",_.policy_file_url),m(_.policy_file_url,M)):(console.log("其他文件类型下载URL111111:",_.policy_file_url),window.open(_.policy_file_url,"_blank"))},m=(_,M)=>{const O=`/apiv1/download_file?pdf_oss_download_link=${encodeURIComponent(_)}&file_name=${encodeURIComponent(M)}`,k=document.createElement("a");k.href=O,k.download=M||"download_file",k.style.display="none",document.body.appendChild(k),k.click(),document.body.removeChild(k)},b=_=>({0:xd,1:Dke,2:Ike,3:xd,4:xd,5:xd})[_]||xd,w=_=>({0:"PDF",1:"Word",2:"Excel",3:"PPT",4:"TXT",5:"其他"})[_]||"文件",A=_=>{if(console.log("原始标签字符串:",_),!_)return["政策文件"];const M=_.split(",").map(O=>O.trim()).filter(O=>O.length>0);return console.log("拆分后的标签数组:",M),M},S=_=>{if(!_)return"";const M=new Date(_*1e3),O=M.getFullYear(),k=String(M.getMonth()+1).padStart(2,"0"),R=String(M.getDate()).padStart(2,"0");return`${O}-${k}-${R}`};let E=null;const D=_=>{E&&clearTimeout(E),E=setTimeout(()=>{const M=_.target,O=M.scrollTop,k=M.scrollHeight,R=M.clientHeight;O+R>=k-50&&l.value&&!i.value&&(a.value++,p(!0))},100)};return qn(()=>{p()}),yl(()=>{E&&clearTimeout(E),d&&clearTimeout(d)}),(_,M)=>(L(),G("div",aYt,[x("div",{class:"header"},[x("div",{class:"header-left"},[x("div",{class:"logo-section",onClick:c},M[6]||(M[6]=[x("img",{src:Qj,alt:"logo",class:"logo-img"},null,-1)]))])]),x("div",sYt,[x("div",{class:"page-header"},[x("div",{class:"back-button1",onClick:c},M[7]||(M[7]=[x("img",{src:oYt,alt:"返回",class:"back-icon"},null,-1),x("span",{class:"back-text"},"返回首页",-1)])),M[8]||(M[8]=x("h1",{class:"page-title"},"政策文件",-1))]),x("div",lYt,[x("div",uYt,[M[9]||(M[9]=x("div",{class:"search-icon-left"},[x("img",{src:Eke,alt:"搜索",class:"search-icon"})],-1)),cn(x("input",{type:"text",placeholder:"搜索政策文件...",class:"search-input","onUpdate:modelValue":M[0]||(M[0]=O=>n.value=O),maxlength:"100",onInput:v,onKeyup:$r(h,["enter"])},null,544),[[qr,n.value]])])]),x("div",cYt,[x("button",{class:oe(["tab-btn",{active:r.value===0}]),onClick:M[1]||(M[1]=O=>f(0))}," 全部政策 ",2),x("button",{class:oe(["tab-btn",{active:r.value===1}]),onClick:M[2]||(M[2]=O=>f(1))}," 国家法规 ",2),x("button",{class:oe(["tab-btn",{active:r.value===2}]),onClick:M[3]||(M[3]=O=>f(2))}," 行业法规 ",2),x("button",{class:oe(["tab-btn",{active:r.value===3}]),onClick:M[4]||(M[4]=O=>f(3))}," 地方法规 ",2),x("button",{class:oe(["tab-btn",{active:r.value===4}]),onClick:M[5]||(M[5]=O=>f(4))}," 内部条例 ",2)]),x("div",{class:"document-list",ref_key:"documentList",ref:u,onScroll:D},[i.value?(L(),G("div",dYt,M[10]||(M[10]=[x("div",{class:"loading-spinner"},null,-1),x("span",null,"加载中...",-1)]))):xe("",!0),!i.value&&o.value.length===0?(L(),G("div",fYt,M[11]||(M[11]=[x("span",null,"暂无数据",-1)]))):xe("",!0),(L(!0),G(Rt,null,un(o.value,(O,k)=>(L(),G("div",{key:O.id||k,class:"document-item"},[x("div",pYt,[x("img",{src:b(O.file_type),alt:w(O.file_type),class:"file-icon"},null,8,hYt)]),x("div",gYt,[x("div",vYt,[x("h3",mYt,je(O.policy_name),1),x("span",yYt,je(S(O.publish_time)),1)]),x("div",bYt,[(L(!0),G(Rt,null,un(A(O.file_tag),(R,N)=>(L(),G("span",{key:N,class:"tag tag-blue"},[M[12]||(M[12]=x("img",{src:kke,alt:"标签图标",class:"tag-icon"},null,-1)),bn(" "+je(R),1)]))),128))]),x("p",wYt,je(O.policy_content),1),x("div",AYt,[x("div",CYt,[x("span",xYt,[M[13]||(M[13]=x("img",{src:Tke,alt:"部门",class:"info-icon"},null,-1)),bn(" "+je(O.policy_department),1)]),x("span",SYt,[M[14]||(M[14]=x("img",{src:_ke,alt:"次数",class:"info-icon"},null,-1)),bn(" "+je(O.view_count)+" 次查看 ",1)])]),x("div",EYt,[x("button",{class:"action-btn view-btn",onClick:R=>g(O)},"查看详情 >",8,kYt),x("button",{class:"action-btn download-btn",onClick:R=>y(O)},M[15]||(M[15]=[x("img",{src:iYt,alt:"",class:"action-icon"},null,-1)]),8,TYt)])])])]))),128)),l.value&&!i.value?(L(),G("div",_Yt,M[16]||(M[16]=[x("span",null,"上拉加载更多",-1)]))):xe("",!0)],544)])]))}},IYt=Zo(DYt,[["__scopeId","data-v-4a9ae471"]]),C_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAhtSURBVHic7d1daFR3Gsfx3/OfFzX1IhIWpt6IsBCKW3Hbi2WDSUsiWoSyW4j0QmiNuZBdYntVISYFYfMCvWsNK15ks1voguhCy0Kx0sg2EYsX1pK1C4GCeBMDEtILN+q8nGcvZuImzSTOZM6ZZ/I/v89lMnPOc8zXM2/nnBFErL1ffyEuexjArwDXCmgrILsAbQLQBCAV9Qy0oRyAJUCWAF0EZBYIZgHc1SB9bXpUHka5colioe1nn+6Hc78TDY4C8puo1kORU0BvqbgvEQRfTI9smwl7BaGF0dWvLVmXPyXQtwHsD2u51FBmFHIpHSQvTo7KQhgLrDnArn5tyUm+D6KnAbSEMBM1vgWonE9pcqzWEGsKsGMgfxyiH0F1dy3LoS1KZA4qZ6aGk59tehGbuVPbwOM9SU2MQ9C12RWTRxSTeSn03hzecb/au7pq73BwMNuTROI246NnBF1JJG4fHMz2VH/XKrSfzf5ZBH+odiUUH6q4MD2S/mOlt684wNcGc5dVtXtzY1GciMiVb4ZSxyq6bSU36hh4+hUgh2sbi+JFr00NbzvyvFs99zlgx2D2b4yPqieHi+1sbMMA289mP4HinfCGolhRvNN+NvvJRjdZ9yH44GC2xyn+Ev5UFDeB4OSNofREud+VDbBt4PGeJBK3wU82KBwLeRReLfc+YdmH4KQmxsH4KDwtpabWWBNg8eM1vslMIRN0dQzkj6/98Qpd/dqSS+Rn+NkuRUJkLlVI7l95AMOqPWBO8n2MjyKjujsn+b6VP3q2B+zq15acy82Cz/0oWgupINW6vBd8tgfMuvwpMD6KXkupNQArAiwdyUwUuZWtOaB0DgcPo6f62d/xob4MlAJ04n5vOw/FjQT5t4BSgAp903Ycipvl5uT1c48yQS49B546SfWlLpXd7QrZ1CEwPqo/KWRTh5wI9llPQvEkgn2ueLkMIguu1RWv1UJkQVtd8UJBRBZklytdpYrIgDY5FC+RRmShyYHX5yM7qaovzUEUJgZIphggmWKAZIoBkikGSKYYIJligGSKAZIpBkimGCCZYoBkKmk9QL1kmgXdbQ6/3it4YTvw4q7NnwYz+o8Crt4JQpwuvrwPMNMs6Ol0eOOV8Hb2mTKH8O7cDjx6EtoqYsPrADPNgo97E8jUsLerVHebg0Awcb0Q+bp84m2AmWbBeF8SO7fXb50nOot7WUZYOW9fhHzcm6hrfMtOdDr0dCbqv+ItyssAu9tcXR5218MIK+dngL+13yxGWBn7v1TIfvmi1PQWS5gY4fP5F2CmMeJbxgg35l2AO3dYT7AWI1yffwEavPKtBCMsz7sAGxkjXIsB1hkjXI0BGmCE/8cAjTDCIgZoiBEyQHNxj5ABNoA4R8gAG0RcI2SADSSOETLABhO3CBlgA4pThAywQcUlQga4CZnmtYd8fX9PQ19PHCJkgJtQ7oDX7+8p/no9CP3UzBOdDt1t/v6ZvD0rLkoH9goyzYL5n1bv9SauF3hGXJX8/a8VsZ5O/tOFgf+Km/TGK/4/P6sHBliDE50OfUcZYS34HLBGx9oc2l8SXP42wI3/FF+E8BoxlWOAIcjsEpw+msDpiPeGPl6Viw/BW0i5q3JtdQyQTDFAMsUAyRQDJFMMkEwxQDLFAMkUAyRTDJBMMUAyxQDJFAMkUwyQTDFAMsUAyRQDJFMMkEwxQDLFAMkUAyRTDJBMMUAyxQDJFAMkUwyQTDFAMsUAyRQDJFPeBejzpdF83Db/AnxsPUF0fNw27wL8cT78r0toFD5um38BPlDML/r3h3qwqPjxgX/b5V2AADBx3a+riALAlW/92ybA0wCv3gm82gvOLyqu3GSAW8r74wUvInz0pLgtvvI2wPmfFAN/39oRzi8qesfya76RySfeBggUX5C8P17A1e+23sPX1e+C4l7c4/gAQDoGsn5vYcmBvYIDewXtLzm8sL38Fw5aerCo+O8T4M694vM938NbFpsAqTF5/RBMjY8BkikGSKYYIJligGSKAZIpBkimGCCZYoBkigGSKQZIphggmXIActZDUGzlHIAl6ykotpYcIAyQjMiSA3TRegyKK110gMxaj0FxJbMOCBggGQlmHYC71mNQbN11GqSvAeB5IVRvqkH6mpselYeA3rKehuJGb02PykMHACruS+txKF6Wm3MAIJL83HYcip0g+AIoBTj1J/k3gBnTgShOZqZHts0AKw5GUMglu3koTla29izAdJC8CGDBZCKKk4VSawBWBDg5KgtQOW8zE8WGyvnJUXm2o1t1PGBKk2MQmav/VBQLInMpTY6t/NGqAEt7wTP1nYpiQ+XMyr0fAJS9RlnH2ezXEHTVZyqKBcXk1Ej60M9/XPaQ/LwUesEXJBSehVJTa5QN8ObwjvuB4INoZ6K4CAQf3Bzecb/c79Y9KenGUHpCFReiG4viQBUXbgylJ9b7/XOvU/vaYO6yqnaHOxbFgYhc+WYodWzD21SyoI6Bp18BcjicsSge9NrU8LYjz7tVRecFTw1vOwLBp7UPRbEg+LSS+IAqTkyfGkq/qwp+UkIbUsX5qaH0u5XevqorI0yPpN8LBCfBt2horYVAcHJ6JP1eNXfa1JdltA083pPUxDjfrCYAgGIyL4Xe9d5q2UhN39bSMZA/DtGPoLq7luXQFiUyB5UzU8PJzza9iFpn6OrXlpzk+yB6GkBLrcujLWEBKudTmhz7+We71Qrt+6q6+rUl6/KnBPo2gP1hLZcayoxCLqWD5MVaw1sWyRemdXyoL0uQf0uhbwJ4Nar1UOQUwG2B/DPQ4PPlw+jDFHkYr597lClkU4dEsA9wrYC2ArIL0CYATQBSUc9AG8oBWCpepEoXi5dqCWZV8UMinfv6X+d2zke58v8Bne1ec0evJM0AAAAASUVORK5CYII=",x_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARGSURBVHic7Z2/b9tGFMe/70zXg2GYHOTAiyANyeIGUIHEU4cYzWgg9dKxgf+CBMgfkPg/SNDsRcZkcQLEszN4idtBQOKlHkxoCSIOJCG4cCKar4N+VFEki+RJd6R9n8WQfRSfP3rHe3oUToSE+D7bkYUaCPfAqDGjQgQbgJ30OXJKAMAFEBDBZcaL0hK9S3owTRrg+2x/FXgoBB6g+LKSEhDhdbuNnVWH3IsGjhV4RcWNYqe0RE/G/XGkwE8+VywLuwBqs4qqYNSjCFujsvE7gZ98rszPY58ZFRWRFQUiuO02NoYlfiPQyLuYURLF4ADLwq6RNx5mVCwLu77P/TWhL9Br8ROYa14Sal8FHvYeENBfNE70xVQ4AitC1XEoEAAwP4/HuiMqGHYvCwkAvBb7uNq1XhYCK0JVeC2+AyMvC3ZkoSaIcF93JIWFcE+YskUCRk3ATN/MMKMiAJOBWSGCbTJQDltMHmO4CCNQEiNQEiNQEiNQEkvHSZshw/3MOGny2DEry4SNm/l/fZUKPD0DXh2c4+3f8cSxa+X/BX5sxPixnE+ZSqN6vhclkjfMq4MYLw/OZxCRPMoEHjUYh8fjp+wk8ipRmcDDf9Jn3jB5lKhMYDPMnn2D5E2iMoGnX6b3XHmSmM+lLQF5kVhYgUA+JBZaIKBfYuEFAnolFkLg4sLkMbok5lbgYNmzVhaJJb79S77eTIOWZkISvLDz7mWtTNi8LbB5O5+vdT6j6vLHXgT383QK8FmR2wwEOln46M8I69cJlWsTP87dR2UrLNcCexwep2tEDLbCZk2up3ARMAIl0T6FFxeA7btzKC2nO84LgZcH5/DC2cSVFO0C12+IzNerowZj/4Paum8Y7QI/NmLsf6BMGTiNJq0s2gV6IfB8T39bKitmEZHECJRE+xQGgI2bIvU18N8zZLpFOm20C9y8JbB9dy7TsadfoH0V1j6F3x/HOD1Lf1wzZJzkoNGgPQO9EPj9aVt3GJnRnoFF51IKTNK9nhbKBFZXkvfzZFlZVncuZQLXyur+qfUb6iaWsjPJNA1Snec6KX2xlK7C27/MYXFhdgXw5i2B337OVlNmhbwWKy+mmiHjqMFT+8RWdaVzz0Tlta+HFoGXiUtZxqjECJTECJTECJTECJREoLN/niEbgWA2AiVwBRFc3VEUmECAUNcdRVEhgivAeKM7kKLCjBfU3Vz2BGbzibQEpSVyhONQEMd4pjuaokGE10B38zGThemJIlRXHXIFAJgsTE1/e+R+A62bhfswu1hOol5aop96D/pv5RyHgijClqkLx0MEN4qw9c3vhgeZnXxHM24b5O+aCasOue02NgBTYA9QHyUPGNONWXXI7c7znVlHlnOCOMaOFY2WByT4MoLulH7MjF9xdcqcII7x7IcYTx2HLmy2pLqN5bX4DhHud6+PNtD/WWQC5s5XYYBQB+ONFaE+SVyP/wB7RIl0zOCuIgAAAABJRU5ErkJggg==",S_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQISURBVHic7Z2/bxNJFMe/b9hghBV5t7BRmmhdUIWTTMFVFERXchJEFEg0CPrT0dEBuY7ipEP8ASeak0BCgSLlKVfQ3NFYAhooskqDsItdy7JE8LCPwj9EiH+sPZ7bXfI+TWR7vPv8yZsfnhmNCQkJQ3a1gxoIl8CoMcMnggvATXqNjBIBCABERAiY8ai8TP8kfTNNKxCG7H5SuKUUfkX+ZSUlIsKzbhebKx4FkwqOFXhExY1is7xM98a9OFLg+5B9x8EWgJqtqHJGXWtsjMrGQwLfh+wvLWGHGf7/EVleIELQ7WL9W4kHBIq8yYySqL4u4DjYEnnjYYbvONgKQx72CUOBzTbfg7R5Sah9Urg1eEDAsNPYTS+m3BE5GlXPo0gBwNIS7qYdUc5wB1lIANBsc4ijPdabh8jRqKpmmy9A5M2Dqx3UFBGupx1JbiFcUjJsMYBRU5DqOzfM8BUgGTgvRHAlA81w1fQywiREoCEi0BARaIgINEQEGuLYvsHuB0Znn23fZiSVEqFSmrrwaIQ1gW/2GA+3NZotW3dIRrkE/HLRwdqqHZFWqnCjxbj/NH15ANBsAfefajRadmqBFYHbL2N09m1ceT46+72YbGAtA7PGbiNHGZil7LONDGMMEYGGiEBDRKAhItAQEWiICDREBBoiAg0RgYaIQENEoCEi0BArM9LrPyisrWZrSsvW1L4VgX6FUC7ZuPL8FAs5Evjn35/xZi9bGbi2Svjt2uI/rrSBhmRa4I2fjuHq+UyHaH9deF78CuHncz15/75lBIZrGsXCIqI6jBWB1QoZt4FBg/HkxWecLJCxPCBnvfDFcwo7r8yXNh+/WMxSZLHQi8kGVq5aKRFuX3EyMZQpl4DbVxxrGUjNNlsdbzRanHidePtljP/eTS7742lKnE3FAqF6Kqd7YwbMssEnye6Bzj5wZjU7PXOqvfDrvYPCGgn20jRafOB9xULvH1Q8sejokmG9Co/jzl96Yd9W/Arh95vp5EJqdaHzcXHXSiv7gBQzsPOxVx0XsfkyzTYxNYHfC9npznKKCDREBBoiAg0RgYaIQEMUeufnCfMRKWYRaECgiBCkHUWOiRQI9bSjyCtECBQYz9MOJK8w4xH1D5fdhRw+MStReZk85XkUxTEepB1N3iDCM6B/+Jhk4exojeqKR4ECAMnCmRkejzxc7eln4Q7kFMtp1MvLdHbwYPhVzvMo0hobMi4cDxECrbFx4LlvC8lJvqMZdwzyocmEFY+CbhfrgAywv6I+Sh4wZjZmxaOgX883bUeWcaI4xqajR8sDEvwYQb9K32XGZRydYU4Ux3hwPMYfnkcTJ1tm2jjSbPMFIlzvt48uMPybZyLm3k9hgFAH47mjUZ8mbsAXITpX1JTiVQEAAAAASUVORK5CYII=",E_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARESURBVHic7Z2/TxtXHMA/38dRkCxk3+BELJGZWyR37wBqNoaUqVKHRuxUpf9AE/oPtFGzV8lQKROJFLZKdMgUdbCEWNqBE0sEHnzIsgTxca+Df4Fjg+3z3b2D95GQZfPs9+XD9/24d0/PwojUaroQOJQRHqEpa01JhAJQGPUzDMUHPMAXwdOaF8UF+XvUN8tNBWo1Xfio2FKKH8m+rFHxRXjdbLK96Ip3XcGhAu+ouEFsFxfk6bBfDhT4oaZLjsMOUI4rqoxRCQLWB2XjJwI/1HRpdpY9rSklEVlWEMFrNlntl3hFoJV3PYMkqssFHIcdK284WlNyHHZqNd0dE7oCq3X9FNvnjUL5o2Kr80SgO2gcphdT5vCdgCXXFV8BzM7yJO2IMkahk4UCUK3rGnd7rjcJvhOwpKp1vYKVNwmFwKGsRHicdiSZRXik7LQlApqywjbfidGakgKbgZMiQsFmYDQK6uYyluuwAiNiBUbECoyIFRgRKzAit1Zg4wxOTnXs9Tix15ACe/shf/x1QeMcXm7NkpuPr65bmYEdeQCN83iz8FYJbJy1HjcezpCbg821Ge7lb9w7EAmp1nX8HUUC7O2HPN+9YHVZsbk2k1i9iQo8OdVT6di/eHC14XTkdYi737tMIoPIwZHm992A6mn0z8rNwcufegL75W2uzSQmDxIQ2P8HRiE3B7981wt5kLzV5WS79dhre/VuuvJK91uDggnyIGaBh8d6as3WRHkQs8BpzMFMlgeGzwNNlwcGCxxHnnes+f7XJofHyU9pjRQ4rryf/wxonMd/2TYI4wROKi8tjBKYNXlgmMCsyQODBK4uq8zJA4MEriy35J2c6szIA0ME5uZ6KywHR72R1HR5YMiS/uXVk5NTzcbXLXGd102VB4YIbJy1fnLz8O1XVxdDTZYHpgg8h+e7ARsPe0vwB0ea9/+GvP0nTDm66zFCIMD7/zQHRwG5+XZGGppx/RgjEGhfjqUdxXgYMQpnGSswIlZgRKzAiMQqMO5dAf3k5pKtDxIQWMzHWUOPYh6W7t8ygQA/rCUzU+q/gkmKRLZ27O2HvHp3MZVbnP0U861/0ucPks8+SHhvzOGxnup9i3t5Sbyf7efW7M5KCzuNiYgVGBErMCJWYESswIhYgRFRtM7Ps0yGr7S2AiPgKRG8tKPIML5CqKQdRVYRwVNo3qQdSFbRmhfSPlz2EHv4xLj4xQVxleuKH4Y8SzuarCHCa2gfPmazcHyCgKVFVzwFYLNwbLrHI3dXI9tZuIc9xfImKsUF+bLzpHsp57riBwHrdl44HBG8IGD9ymv9hexJvoMZdgzyJ4sJi654zSarYCfYl6gMkgdDVmMWXfHa7Xw77sgMxw9Dtp1gsDwY4csI2k36idZ8w92Z5vhhyLPPQn5zXbl2sWWse4LVul4R4XG7fyxA9zHL+Fq3vgoDoYLmjRNQuUlch/8BwRL4U3BGOhMAAAAASUVORK5CYII=",k_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAWnSURBVHic7Z0/aBtXHMe/v+dzZRBGukEKXoQyOIticCFxFw8x6WZDmg4pZAneXRrI0K2Js2UINNS7yVJowDiBeGtQh0xOBoPrJR5yaAmRBp0wAjk63a/DWaruj2xZp7tnKe+zGEmnu6ePf++93/s9cSL0SbXKaUvDPAi3wJhnRp4IaQDpfs9xQTEBGABMIhjMeJ6Zpn/6fTOddUC1yukvAveFwC8YfVn9YhLhZbOJ9RmdjNMO7CnwKxUXxHpmmh71ejFQ4Kcq5zUN2wDmo2rViLFnWbgdFI0+gZ+qnJ+cRJEZ+ThaNioQwWg2seSV6BKo5J1OkETRfYCmYVvJ6w0z8pqG7WqVO3NCR2DliB9BjXn9MP9F4H77AQGdSeOjvDaNHKZm4bKukykAYHISD2W3aMRIt6OQAKByxFV83bneIJiahcuicsQ3oOQNQtrSMC+IcE92S0YWwi2h0pYQMOYFVPcdGGbkBaAicFCIkFYRGI60OPsYxWkogSFRAkOiBIZECQyJEhgSTXYDuqk3gPoxo1xjZFOEbOrMTUPpSBd4UGLsfrBR3LdRP/a/nkkBV3MCN+YIV3MXr8NQ5YhZxoUPSow/dixUav2/p5AjrC1PXKjIjF1gvQFsvmmhuG8PfI47iwI/LU4MsVWDE6vAco3xZKsFoxx8yWwKyKQIyQRQP3aO7xWhC7OEtWUNyakIG9wHsQmsN4AHm02fkGQCWLkusHxtIlDGx8+Mnfd2YMQuzQmsLcuNxNgEbuz4u+3SnMDqzWBxXso1xm9/+sfM1ZsTWLkub3KJ5crFfX8E3Vl0oqffLphNEZ6uTqKQc08gm29aKNekzIMAYhL419uW6/HCLA00CSSngF9/1JBJuZ/f/LsV/IYYiFzg7gfb1e0yKWD1+8HHreQU8POyO33dPWTUGwOfMhTRCzx0d6+Va+HzuEKOsDTnbnqYtCgMkQv8t+T+YAtXhpMEewUelMZQYL0BV/fNZ4e3vs1n3efplVtGTaQCvbPjMJPe5JSTQ7YZyzGwfuwWOOw1bPc/JKgQEQeRCvQKG3a+JivquolUYDLhFlgZosByjV1R5x0T4yJagVNOgaBNueasbYfBQck7PAzltOcm8jRmYdZ9iXeHw0k3vHnfwhU56+HoBXo+2Ot3duixsLhvuyIwmYBvjRwXkQss5Mj14erHwJOt1sATQLnG/rX1FSGtSh1L3HsLB0aZsbFjnVtiUEkrk3IqO7KI5cqFHPk+5O4h48Fms+/ufFAKrgd+Nysv+oCYS/pPtixfcQFw1rULs4RCTriT4wawe2j7xjwva8sTvrVxXMQqsN4AXrxt4fX73jNxMuGkP84ecf/nliUx1ismp5xa4GljlrOZ1FteMuGvxADBWwZxIG1fuFxjvHgbvFkURFvcnUVnG6C4b2Njx1+JfrqqIX8pvjFRmsA25RrjoMQo7tuo1BjlrkkimwIKOYF81imgeqs5QRKTCeDx3fgkShcYFtkSR14gABifnRSne9yMS+LF+7bOAOQvER7f1dwF1mM4UiMueY2FQKC3RG9Rd9iMjUDgf4ntfeOVa9GvUsZiDPTS/qJmHEu8sRQYJ2PVhWWgBIZECQyJEhgSJTAkSmBIBJz75ykGwxTMSmAIDEEEQ3YrRhhTgLAnuxWjChEMAcYr2Q0ZVZjxnE5uLvsR6uYT58XMTJMudJ1M28Yz2a0ZNYjwEji5+ZiKwvNjWbg8o5MhAEBF4bnp3B65U3E8icIi1F0sz2IvM03fth90lnK6TqZl4bbKC3tDBMOycNv1nPcgdSffYHrdBtlXTJjRyWg2sQSoBLuLvSB5QI9qzIxOxkk/X4+6ZRcc07axrlnB8oA+fozgpEs/ZMYP+HrSHNO28ewbG7/rOp1abDnXvl/liG8Q4d7J+JgGOn9HGZPZ+SkMEPbAeKVZ2DtLXJv/APmZSn+iwQ4QAAAAAElFTkSuQmCC",Oke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANVSURBVGiB7ZnBThNRFIb//86AuNFZFNOdY3TnBp/ALgsLAfcg8wTiG8gTVHbuRsoDWBJT2FneoEsTXYw7AizGxBhT2jku2mJb7tzeoRRGw5806dxz7+mXk3PPvWcK3Op6xWn/gBeueC5+L/Sf25hrxkEtntTvVMHnq4sVkpsaU+14rb46iW81yWKT5qtLGynQALAyX13amMT/1MCh8Nxop7yazP0/Krf/pVBd3FTgaxB+b6gpbQQnQb05bYhuWmEZgC+AT8CDSJQA26fr++90axQAFHbLJUVWBqABYIEOPhbDsq9beFUqVBc3SYQAVgAsEPAAAKSvyEohLJdSwUlnWeuV8BOXC1rbFUmRxlxXrtLulV6Oi5e2UCTddh2S4Sw4141vToEYDyMKtIFzdYNpKoZlv+OglGY/68zVMp+KZARJN0tKNliDF6qLmwlZMR21M26rUgzLz46Cg8jWLwXGuZQJUsULVzxFVsZCAF7HZWjjs69E5IfZKX3dsBX4DFraxdrfAUu2cwFA0RxxoBu4C+tsnAuSqVWWpG3enIA+cDdeVQg1FlwXOKvNeRocNLyw/MgOZS5TVTnDbDSLlnGOcnk5cACIM1SKLIqDWvxgd8k4J9FUlhtPFQCASGQyK/L+6JhVxAthuaRc9dmW43itnqmzEiIi9PW6Z79gy0XECZr3hYg/OpQLcCEjk524uDlzAU4x13LRpFEuwEWS7yb7eXMxoHyAd2yO/eFOLBfgNnJH0iUX4G2Mj/iocgFucyrTyWHEAUAAcwtH9XDwOTfgHJMuwuFanhvw8U3z8OlpdVdpY645i9bby2NZKGPTbAXe69y3JgIbo6xNc25SJWvTbBXxYlj2bbt3gvFlXtrbNs399zaWOQ5fZezesyppS6xc8zW+1zQ3gRylStamuQeefpEnGds4/eu934aNaQ5G7uBnmI30EweWDHAoAHDOOtt6CESt9p3GSVBvYsyuHwD60CWRHdM0kWTIHge1WCCN1PmQxuCfDA4A/Nz7Ft99+fgQgM9uLY2FaDodWT0NPh0BwMyLpzuO0ymi+9o5vvDpRvD98Vp9CwB+7X09GvXZ9wvh1un6fm0U7t6LJ4eJo0CRIshIIF9ANiDYPlnff2MKxK1u9b/pD3pIIlyKQZiAAAAAAElFTkSuQmCC",X8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAABsSURBVFiF7ZaxDYAwDAQPxICwRtJ5Ak9AyRphw7AAVB8pBX/ty6+TJUsGY4xAiWwlsikdmzK8wK7MA6xqgQUsYAGV5SsokW3EnQN0uK8zj7ds+gYkamSvkV3pmL4BC1jAAtJH1OEeJWLMf3kAZQ4Q9oMTMAMAAAAASUVORK5CYII=",OYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAG/SURBVFiF7ZjNUcJAFMf/bxMUTqYDtQJpACYdCB3QgXATOBAOftywA7UDrIDMUADaQewgNz427PMCMZjoGJePOJPfKftm9+WXZHfnbYCMQ38ZVO3IHhPb67YAPCoUWq5D/tbMVphpB1Q60waIneiTMQCWgQ+gtTWzFSLtAIJ5mhRncFlfJ05qwX2TC+qSepFsC9thaynnDWLjZB0TKnh270tetN/BBHkRPBKJGojDmDKMpu3weXS7OtgnZuJaQtjCbLaxG2R+DuaCuuSCumRecCf7oO2wpWTQ2ywg1Mv4pviQNtdOBFnKAYDGZrEp7Ep77o3vjodpcu3kEyvgLClOJC7S5sr8HMwFdcm8YOIqtjuLMtTSAgAIw3dvj173ahUh9gar3cVEESbKMEbKMEaKMKl25r1DyAFfBO3rqQ0gfjojau7JJ8Zv56C1U4sfyPwiyQV1yQV1yQV1yQV1+WeCxWJy1cLsfV6qt28ShX0IlJiHEbxHmt9VSF60sVFuuQ75lfa8DkFX4Y2ZfAn01+3x3fGw0p21AHEZFaKCGfYRBbPPUlrRswkxuePb0lPYZ7msszAHitha30exiv1+yzwfMl2JtiuFJpYAAAAASUVORK5CYII=",MYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAALZSURBVFiF7ZjPUdtAFMa/pzXy+OYOEB3gAvBsKmDSgd1BuGkMMxYzjJIbSQWoA0gFaOwCIBVEdOCbwHj1OFgoHq0k7+LYycHfSfO0+95PK+2fT8Bee/1b0aYJ5EUqVQaP0DoEoQsAYMwYiycB8RiH7uPOAeVFKjNunQI8AHKoOjEnRBSTUpfxt06yVUDppx4LMWZgYFsoLxbZghoDnozmAyJcY92IrdeMMx5Ov7bvTBo7Jo36o5cxEW6wORwAdMmh2/7oZWzSeO0I9kcvYxAFG2NViTmYhO3LpiaNgCejdEAkbiwKJsus5Jl3wXAaulHd/dpXLP3UIxLXFnDBJGwfTcL2EYDvpt2IcC391LMGZCHGsPjmHNf9UVwfHDS+tpK6ea3qvFVB6aee9VIyf/WK6+dnq8nEwEBepLLqXquyQ8MT1SkD30o/HaIFZGzxabz359YpgNgMkFmCLDcZIi8T4h5si1ZUHQA409KWA3I0P84ID1apgZiYYgAgYvvPI5dD6lN81YlXY9oIKqhjgjBOSkx3k/Dg82qsf/46A/iLLaDK4JVj2iQhtA5tkjKxV14mmBe/bOHqauuzmKy3s+NMiN/98znLgL2PgBWlSe9vtBfvSgyalWM6IENrtDNV1NYAGYun3dDoqqqtAQoHyU5oKiQgNHugAebr0O5fM3NS5V9qJglFW8bRK9JyodfiVcGlKRL3a7MyJ47r9uJAn33vMj1TOkodVXmVyhGMrzoxAdFaPqKkCQ4ARKYfAMoiIKozUrUnAumnXibEA9acCVf34YrsXQNrOnOU6lkDAoWTMz/yf0DMajgNO1Hd/cadZBq6EZiDvw1ViDloggMMffFWnJ2BowOsjHs6yE3U5sadcdbk5FZlfFiYhp3IUapnMrvrREDkKNUzhcv72Kv4R7O0Bt6a5jOAIocWP8un5a0Brkr6qVTOn99vBO4yU8JYPAkHyUeg9trrf9IbEyMdVzO8mNgAAAAASUVORK5CYII=",Ej="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANISURBVFiF7ZhLUttAEIb/npGE2WmRAyj7LJxdKlWY4QSYEwA3CDuXTRWiKrjYQU5gcgLgBAh8APsG0RG0MwzWdBaSbJeDbNkesqJXerS6P3f3TE8b+JAPqS6N9utZo/1yZtMm2TKk2rpuCAMAYOCmf+Ed27ArbBgBgKjrDRmIAICAo52O7tmwaw0QAKTrHgAYAvYgraW4EBWyb15fHwDUgc3TbR0QsAu5EaAK2cf4uW7Y2Sewb4BgxnANwLfifl3ItQBVaxSkwrkiYgXAr/odw5z0L2rXq/hyVoVrdPSVAX4QePZxAuaEieLZhwR8AfCpuJcsolX9VQZUrVFgpLxFXlc5wA1R+htObRiFlMzqf2/rukN4KO6ZcRx1veG7AKrWKDBCPGBaY0NB6Un0czt6S38Gzi/g+l3vZlU4oOI+aKS8BVEAZMUuXHfvf8ABFSLY6OgrTNN63b/wTsp0bcMBS1ZxXnd/kHmLn7pbn5foDmzCAUtSzFJOTibCmL2Flmq1YpEktuCAZYBAE8hWa3S5HS/SjUJKRJp+Fa772RYcsKAGVWukTJ4uY/i+irFlP2IdKY2gEc5ucS23vMi246pSCkjEAQCAOZ7fhG2Kauv6ovflEcw35fn2ZVN2O7pnCING+7V0TCgFFJxFjVY4DKwq0yCwKuUo/Zo4SyvzuwESZ2UkgLhMpxSQOU8tUaBC+5AqZH/SPrm8jMpTLMaPxXWqn5sW2TKbL1pNfJmpr384Si04tSGALM0kD+2h5Y4F7eeXSXT59sEDWACYbS10AwAEKHU6UrbgVGukGDjKbd8t0l3Y6oTrnCOPojGiZ6MWVci+EWIyjlKanq8NGIWUgCmbIYiCVI83nnNTPe4ViwPM4bL2WGlo2unoBwJUZpPupOccr9pdVMh+qsc9Im4Wdvpd92DZd5VO1NJ1D8AcAwARN43WA9WqXpPqdKSM1oMCDsyx9JxKI2jlsXM+AgBATHcG43tpEM2nKtN/boLkYRF9AGAgkq57UDUDK8/FjfbLGYjCN14lAOJJ5ynqbPY90/VT1124KDYGBLLjPUt5lh9ol63sBEzXwnN+rXMq2vi/GdUaKSOcXRB8YgRFD2emWIjxY9n09yEfkstfJatv3PWhNoEAAAAASUVORK5CYII=",kj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAC6SURBVFiF7djRDYIwFIXhU+MAjKAbOQIjyASOops4giPoBrjB7wOJCeHWRFNSMOd7Jb38oSGkSGZmI0ADNLU7QsCRQQ+0tXsmgDtjbe2mEeDKVFu76w3YBU/RkV9zZCmOLOWvI7cfBh4knSSV/K5Gs86AUkqXaEHKTQL6zMA5PFJK++jC5sOi50wxkeyDyG6xpE7zbHE0ryt4j98s+k12nOMc57hCWMGh6bbYOGkFB3dp+PVRu8HMluQF4pAvLRUftNIAAAAASUVORK5CYII=",PYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAC7SURBVCiRlZOxEYJAEEXfxwZkxtQZQsyMHMqADrAEK6EELceQ0FBmNCO4ClgzFLzTY8O992Z/8E/8mWx3KA01YGvBUT/hvKhNdv5Y3VcLYMDwXvDDINN3pF/w/Xa9aAkMvCPFwKMQCwNoCQyQmIYmFgZIQM73EJpE2Gm+NNk5y4vaJ6xc/7ylm22HKKe5KNPNtnP9o50IAK5/tLHS2KVYaVK+GGlZ+bDKW+/gJVQE/0NAckFhJu0BJw3VC5tche+mQCWHAAAAAElFTkSuQmCC",NYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADKSURBVCiRlZO9DcJADEbfd9fQESSoEFLKjJCSEWADGIFJGAE2oaVMmTKRQpciE2AKBOIv4c6VdX5PZ8uy0ixfmuwAlsjcrirPRwbCj2fzE5CCRojVZLqou7Yp+gT3+WCyQ5rlm15B2C5G8l17KSfTRY1YvVV62vMAXdsUoZJ/JKGSf62FSPo1WJrlm/tu+PBs7X8JvT+h/GsPw2FJXEum7ZcwBFfl+agYGEAx8FMIhQEUAwM403UfCgM4UBcKAziZtkAFVMLW/070Bikai/hqOiXCAAAAAElFTkSuQmCC",RYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANeSURBVFiFxZi9TiNXFMd/505sg4PEbGeqTIqt2e0stnGVIg28AIg8QGKoo+ABRL22eABQngDyAnETRAdbp5lUS8esFPBia+5JMfiD2B5/MLb/3chnfH8655479/yFKVX0G55joi1w1kE9VTwRdQFQAkRChRDspbWt+rX/JphmHZkkuOSr23S+lsXaLUTeTbSS6i0i9cg+1SaBHQuwA6Z2D8SdCKxPGqpQzUb5Wt2X8NWAG0f/7gry8fVgL6UQgD28Olg5T4oziXDHDxXBnKUNByDgCeZs4/ihMiKuXyVf3ZZ5/AiymzbYEFUzdvlwUMkHZrBlGpU5wgHsxQnpVx/gc8r3Zo7UJ9kdVO4XJY4bwpzND6pfiv2pt3E6gCVf3aZp3Ah4iwDrSsOMzX/f3o+dEjedx/Li4QDEbTpfy50ngKJ/7zkmezOL46RXK0vwyw8Z1lzDyWWTuy86JLKbRQPgmFx5HnCn2zl+XP+G998ZTndyFFaHfSe6WYxLrFqaB9zbQvfQWHOF053c0HfE2i0AU/TvvYk//K+Ea2t4iQGRd0W/4RljMqVFwH0OlZPLZuL7jom2DJjNRcD9/PtTcgZjxHUjMLI5CqvC6XaW050cK0vzggNQz6CaCFhYjTfze8+Ju287GTI9OFDFM0jy4fzrZpY1t3scvC0Mh0wTDkBE3cT7IADa/4eDINOGa8uoJl+7T/5o8TlMhpwVHEogH44e/wRKSXHtfdhb6rb+vrMd4FThYtUNSDAq6u5LvNCwTM4IDoXQQPRpnOAkyFnAxbKXJrLOxbjh40CmBwfWturm2l8OUL1NAzJNOFRvr/03gQFQY8bO4jDIVOEAROrwfN3KRks10JFT/iDIm38sN0GULhwaRvapBj0zycZxoyKqfkorvEoq6l/99u0h9Mwk02RxFlIIslG+1n7uANZ9CRXdXwxWr+wLh+HFCXt1sHKusrgyq6j/fzNp4NTy4ejhbM7WB0D1r4N8XwUH3mYyNr8PVGeO1JGeZ+zy4aBfEv3BjeOHiqj4M2F6Vm/HDtJYBiaYSvqug4aK7o8yMCewgB/LoqRkAZtqNlpKxwLuVWyR5MqolqYx0dWYi3HBpgLsVdG/9+KZ2mwKuKi67flGVUIRgviuGX2KrHNx7S8H06zzH2eo3Ix75cQiAAAAAElFTkSuQmCC",BYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGpSURBVFiF7ZjdTcMwFIU/I97pCGYD2KDdoBs0TECZpGKCdgQ2gA3oBg0TNBscHmKrVvElPy5QpJ6XSPbxzee/aydw0S9I0krS8q85AJDkddCkNN7VKaASnR1QsS5AXboAdensgK6/q5TkgUfgLilugCfnXN2j7YpDKmiAGnjuamsFnEraK69l4ksTo0/K50bbvaS59V5nwEyAd8CHXm2S6g/gxTnXRCBgF+puY+9DjAq4CXUTYJ7EvI8xOhVG50uvDW92hHp4pzmPtahj4HrUfBsKsWI8n/Oc3S77/0BhHVQ9fPOuNZXTt3koBwO8Al4SzrmN4auANVBLmg1Zh4OAaJNb3KprSQBvBsyxv5cGTVnIGzNgG6GARWJZJDBbYNY71wQNHSGcc42kGe3U3dEmv02orkpgRgFloLxz7gFA0q4EZjTQMZSkFe2R0pTAFAEdQ4WiIphioCMoSmFOAnQqkKj/f3T8tCygOjz9mPPIUogV49U5j7WGtqGBp93WLww8AgxVCczWtmUUTmvrTl2ivXVbBONOnUB52q8Ozwl+JNCOyrivjouCPgF+eH/69chi4gAAAABJRU5ErkJggg==",LYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAA8CAYAAADxJz2MAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAASFSURBVHic7ZxPaNtWGMC/9xTVlhx7JsYGn+zAdqkLGzHJwDDmHjIIgxXanXwYzhg9LIcWQiEXQyE7BEKhPSSHUpaccloKG4wceqh78SHBZYP61MPsUyHGRfUfyZ5ivR0SpYoSO47lp2cN/U6WbOv78sunp09PDyM4IXmX8KL//WeAcRgIBIEgHlw+gogKXZC62FsuPBIqp7sBAJIPiSg0P6QQgSC7DJ2DBqjV9gdeFR8iGQMAeBv1r115g4OB+ITmh1TyLuG51LIS4+Aozjopp4EAvLxH1jCnteOsk3EsGIcxcO6pOzQEgti92lqAIB6zzsHpuAIt4gq0iCvQIq5Ai0zYESSXEdM3YnguOMnFBA9EaMZSOqQqNbXym4q2v7oj52nGAqAsMJXgww/uCEuhAErQjGNE8KCw4OHC0RA3O/NpIL2+q2wUSmqVVjyqp7Dd8syEAijx4I6wRDMGNYG5jJhmKU8nFECJXEZM0zo+tVP4RgzPGbffvSf7K8+am/8cai1aMQGOh417t4RsdAqdxj/JJU8jHrUKDE7iuHH7ye/KNm15AACFklpdedbcPJsLF6MVj5pAwYPCxm2aA7kZ8z+K5pXf7QMtYksfOAru3xZmF5LXsgAE7RXVrcfPlQPWOQE4qAIXkvyi4IGI4EHh7768RrU1uQqOEQiAiP5KPSIyy0yMOEbgXvHfbaVDqkddaO0V1S3W+eg4Zgx8/Fw5GJdxz8jYCJyOYN/NL/g4AMDLv9SyHT3jKGAu8KIJh+w3XnhX6x48+aOzZWf/OAxMBeYyYvrm53x2ggOf+b1oiJv95Qfx+su/1e1+01KsK5eZwFxGTM/P8H3bkQkOfMefEcEssVfl1hqktP6bskEp7fM52hXISC95tTopAQII+c/O4pgl9qvckB8l1hbFTfN+WtgusJe8F6/VDV3Q2o/it6nrfNb4vi7x4+vxwNY+cBB5AAArv8p/vnitnjsN52f4pV6VW2uQ0sgTHgDbKnBQeTrH+8RLq+2yyqWNbRV4FXk6qzty/qJK7PX9XpVLE2a3cpfJ07lMotXPW4WJwEHl6fSSMj/DL130vMOOx5k6tgu8qjydfhLv3xZmR5LcENgqcFh5Or0kHk+0ssE2gVbl6VwskSCrxx0W29qYUY5LqztyvtEWWgtJfpGfQCLL+UHmszHDMi7zg46ZkR5XqAlUOnBo3J6O4HM3/rRIJfgzz6SVDnHe4iKp2a0Yt9d+mvzZ/IfRYDqCffduCdmzuWhlWvGojYFvKtp+NMSd9mfRKTS3tijO9fsOzVxoHZtaBa7uyPlanc0MiZFanZRo3plQvYis7yobLCXW6qS0vkt3dhp9tSx9TzMAgHGJL46bFx2NGqUDh1KzW7Fria8tAv/PuH2gRVyBFnEFWsQVaBFXoEUwIKKyTsKxIKJiQCCxzsOxdEHCoGljvfppnOlibxnLjam3xK3CK6MBahUeCRVcfIpUZfKTggbIEQsaxwGCQGr7A68ATn65SCe1rMQ4rR0Hzv3pp3MgogICCTStKjem3hafIhUA4D9tmfZT2kg4MgAAAABJRU5ErkJggg==",oh="/assets/template5-slide-1-TJjsFVVA.png",gg="/assets/template5-slide-2-DJ4kPT3z.png",vg="/assets/template5-slide-3-DNybFf9j.png",mg="/assets/template5-slide-4-Cxg_TPty.png",yg="/assets/template5-slide-5-CV650ry4.png",dS="/assets/template7-slide-1-CLk_px9N.png",PB="/assets/template7-slide-2-1G8DmFfM.png",NB="/assets/template7-slide-3-CnzGmsln.png",RB="/assets/template7-slide-4-CF9sxqur.png",BB="/assets/template7-slide-5-D3Atk3Z8.png",LB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADEALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",FB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADIALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",UB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADMALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",zB="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADQALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",$B="data:image/png;base64,//50AGUAbQBwAGwAYQB0AGUAOAAtAHMAbABpAGQAZQAtADUALgBwAG4AZwAgAHAAbABhAGMAZQBoAG8AbABkAGUAcgANAAoA",h0e=JSON.parse('[{"id":"template5-slide-1","type":"cover","elements":[{"type":"image","id":"cover-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=960&h=540&fit=crop&crop=center","opacity":0.8},{"type":"shape","id":"cover-overlay","left":0,"top":0,"width":960,"height":540,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(0,0,0,0.4)","fixedRatio":false,"opacity":1,"rotate":0},{"type":"text","id":"title-text","textType":"title","left":100,"top":150,"width":760,"height":120,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 48px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);\\">标题占位符</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"subtitle-text","textType":"content","left":100,"top":300,"width":760,"height":80,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 24px; color: #f0f0f0;\\">副标题占位符</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#f0f0f0"},{"type":"shape","id":"cover-line","left":300,"top":400,"width":360,"height":3,"viewBox":[200,10],"path":"M 0 0 L 200 0 L 200 10 L 0 10 Z","fill":"#ffffff","fixedRatio":false,"opacity":0.8,"rotate":0}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#667eea","pos":0},{"color":"#764ba2","pos":100}]}}},{"id":"template5-slide-2","type":"contents","elements":[{"type":"image","id":"contents-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557683316-973673baf926?w=960&h=540&fit=crop&crop=center","opacity":0.3},{"type":"text","id":"contents-title","textType":"title","left":100,"top":80,"width":760,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 36px; color: #2d3748;\\">目录</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"item-1","textType":"item","left":150,"top":200,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-2","textType":"item","left":510,"top":200,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-3","textType":"item","left":150,"top":280,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-4","textType":"item","left":510,"top":280,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-5","textType":"item","left":150,"top":360,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项5</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"item-6","textType":"item","left":510,"top":360,"width":300,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: #4a5568;\\">目录项6</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"}],"background":{"type":"solid","color":"#f7fafc"}},{"id":"template5-slide-3","type":"transition","elements":[{"type":"image","id":"transition-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557683316-973673baf926?w=960&h=540&fit=crop&crop=center","opacity":0.7},{"type":"shape","id":"transition-card","left":180,"top":120,"width":600,"height":300,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.95)","fixedRatio":false,"rotate":0,"shadow":{"h":0,"v":10,"blur":30,"color":"rgba(0,0,0,0.2)"}},{"type":"text","id":"transition-title","textType":"title","left":200,"top":160,"width":560,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 32px; color: #2d3748;\\">章节标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"transition-content","textType":"content","left":200,"top":260,"width":560,"height":120,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #4a5568;\\">章节介绍内容</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#f093fb","pos":0},{"color":"#f5576c","pos":100}]}}},{"id":"template5-slide-4","type":"content","elements":[{"type":"image","id":"content-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557683311-eac922347aa1?w=960&h=540&fit=crop&crop=center","opacity":0.2},{"type":"text","id":"content-title","textType":"title","left":80,"top":60,"width":500,"height":60,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 28px; color: #2d3748;\\">内容页标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemTitle-1","textType":"itemTitle","left":80,"top":200,"width":220,"height":30,"content":"<p style=\\"text-align: left;\\"><strong><span style=\\"font-size: 20px; color: #2d3748;\\">要点标题1</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemContent-1","textType":"itemContent","left":80,"top":240,"width":220,"height":40,"content":"<p style=\\"text-align: left;\\"><span style=\\"font-size: 16px; color: #4a5568;\\">详细说明内容1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"itemTitle-2","textType":"itemTitle","left":320,"top":200,"width":220,"height":30,"content":"<p style=\\"text-align: left;\\"><strong><span style=\\"font-size: 20px; color: #2d3748;\\">要点标题2</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemContent-2","textType":"itemContent","left":320,"top":240,"width":220,"height":40,"content":"<p style=\\"text-align: left;\\"><span style=\\"font-size: 16px; color: #4a5568;\\">详细说明内容2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"itemTitle-3","textType":"itemTitle","left":80,"top":320,"width":220,"height":30,"content":"<p style=\\"text-align: left;\\"><strong><span style=\\"font-size: 20px; color: #2d3748;\\">要点标题3</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemContent-3","textType":"itemContent","left":80,"top":360,"width":220,"height":40,"content":"<p style=\\"text-align: left;\\"><span style=\\"font-size: 16px; color: #4a5568;\\">详细说明内容3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"text","id":"itemTitle-4","textType":"itemTitle","left":320,"top":320,"width":220,"height":30,"content":"<p style=\\"text-align: left;\\"><strong><span style=\\"font-size: 20px; color: #2d3748;\\">要点标题4</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#2d3748"},{"type":"text","id":"itemContent-4","textType":"itemContent","left":320,"top":360,"width":220,"height":40,"content":"<p style=\\"text-align: left;\\"><span style=\\"font-size: 16px; color: #4a5568;\\">详细说明内容4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#4a5568"},{"type":"image","id":"content-illustration","left":600,"top":120,"width":300,"height":400,"src":"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center","opacity":0.8}],"background":{"type":"solid","color":"#ffffff"}},{"id":"template5-slide-5","type":"end","elements":[{"type":"image","id":"end-bg","left":0,"top":0,"width":960,"height":540,"src":"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=960&h=540&fit=crop&crop=center","opacity":0.8},{"type":"shape","id":"end-overlay","left":0,"top":0,"width":960,"height":540,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(0,0,0,0.5)","fixedRatio":false,"opacity":1,"rotate":0},{"type":"text","id":"end-title","textType":"title","left":100,"top":200,"width":760,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);\\">谢谢聆听</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"end-subtitle","textType":"content","left":100,"top":300,"width":760,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 20px; color: rgba(255,255,255,0.9);\\">感谢您的时间与关注</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#667eea","pos":0},{"color":"#764ba2","pos":100}]}}}]'),bg=JSON.parse('[{"id":"template7-slide-1","type":"cover","elements":[{"type":"image","id":"cover-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImdyYWQxIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZTc0YzNjIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZjU2NjY2Ii8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkMSkiLz48Y2lyY2xlIGN4PSI4MDAiIGN5PSIxMDAiIHI9IjEyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PGNpcmNsZSBjeD0iMTUwIiBjeT0iNDAwIiByPSI4MCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA4KSIvPjwvc3ZnPg==","opacity":1},{"type":"shape","id":"cover-overlay","left":0,"top":200,"width":960,"height":340,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(0,0,0,0.3)","fixedRatio":true,"opacity":0.6,"rotate":0},{"type":"image","id":"cover-icon","left":430,"top":100,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0iI2U3NGMzYyIgcng9IjE1Ii8+PHRleHQgeD0iNTAiIHk9IjYwIiBmb250LWZhbWlseT0iQXJpYWwiIGZvbnQtc2l6ZT0iNDAiIGZpbGw9IndoaXRlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj7wn5OIPC90ZXh0Pjwvc3ZnPg==","opacity":0.9},{"type":"text","id":"title-text","textType":"title","left":200,"top":220,"width":560,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);\\">标题占位符</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"subtitle-text","textType":"content","left":200,"top":300,"width":560,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: rgba(255,255,255,0.9);\\">副标题占位符</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"},{"type":"shape","id":"cover-decoration","left":200,"top":380,"width":560,"height":4,"viewBox":[200,10],"path":"M 0 0 L 200 0 L 200 10 L 0 10 Z","fill":"#ffffff","fixedRatio":true,"opacity":0.8,"rotate":0},{"type":"image","id":"cover-decoration-icon","left":50,"top":200,"width":80,"height":140,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0ibGVmdE9ybiIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0icmdiYSgyNTUsMjU1LDI1NSwwLjQpIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMCBRIDQwIDM1IDgwIDcwIFEgNDAgMTA1IDAgMTQwIEwgMCAwIFoiIGZpbGw9InVybCgjbGVmdE9ybikiLz48Y2lyY2xlIGN4PSIyMCIgY3k9IjMwIiByPSI0IiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNikiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjcwIiByPSIzIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNSkiLz48Y2lyY2xlIGN4PSIyNSIgY3k9IjExMCIgcj0iNSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjQpIi8+PC9zdmc+","opacity":0.7},{"type":"image","id":"cover-decoration-icon-right","left":830,"top":200,"width":80,"height":140,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0icmlnaHRPcm4iIHgxPSIxMDAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTSA4MCAwIFEgNDAgMzUgMCA3MCBRIDQwIDEwNSA4MCAxNDAgTCA4MCAwIFoiIGZpbGw9InVybCgjcmlnaHRPcm4pIi8+PGNpcmNsZSBjeD0iNjAiIGN5PSIzMCIgcj0iNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjYpIi8+PGNpcmNsZSBjeD0iMzAiIGN5PSI3MCIgcj0iMyIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjUpIi8+PGNpcmNsZSBjeD0iNTUiIGN5PSIxMTAiIHI9IjUiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIvPjwvc3ZnPg==","opacity":0.7}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#e74c3c","pos":0},{"color":"#f56666","pos":100}]}}},{"id":"template7-slide-2","type":"contents","elements":[{"type":"image","id":"contents-bg-pattern","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZG90cyIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIj48Y2lyY2xlIGN4PSI1IiBjeT0iNSIgcj0iMiIgZmlsbD0icmdiYSgyMzEsMTA3LDEwNywwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2RvdHMpIi8+PC9zdmc+","opacity":0.3},{"type":"shape","id":"contents-header-bg","left":0,"top":0,"width":960,"height":120,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"#e74c3c","fixedRatio":true,"opacity":0.1,"rotate":0},{"type":"image","id":"contents-icon","left":80,"top":30,"width":60,"height":60,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIiB4PSI1IiB5PSI1IiBmaWxsPSIjZTc0YzNjIiByeD0iOCIvPjxyZWN0IHdpZHRoPSI4IiBoZWlnaHQ9IjgiIHg9IjE1IiB5PSIxNSIgZmlsbD0id2hpdGUiLz48cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB4PSIxNSIgeT0iMjgiIGZpbGw9IndoaXRlIi8+PHJlY3Qgd2lkdGg9IjgiIGhlaWdodD0iOCIgeD0iMTUiIHk9IjQxIiBmaWxsPSJ3aGl0ZSIvPjx0ZXh0IHg9IjMzIiB5PSIyMiIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjgiIGZpbGw9IndoaXRlIj7nm67lvZU8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"contents-title","textType":"title","left":160,"top":30,"width":640,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 36px; color: #e74c3c;\\">目录</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#e74c3c"},{"type":"text","id":"item-1","textType":"item","left":90,"top":200,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-2","textType":"item","left":90,"top":250,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-3","textType":"item","left":90,"top":300,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-4","textType":"item","left":90,"top":350,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-5","textType":"item","left":90,"top":400,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项5</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-6","textType":"item","left":90,"top":450,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项6</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"image","id":"contents-decoration","left":700,"top":150,"width":200,"height":300,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjMwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImdyYWQyIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSJyZ2JhKDIzMSwxMDcsMTA3LDAuMSkiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjMxLDEwNywxMDcsMC4wNSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMCBRIDEwMCA1MCAyMDAgMCBRIDEwMCAxNTAgMCAzMDAgWiIgZmlsbD0idXJsKCNncmFkMikiLz48L3N2Zz4=","opacity":0.4,"fixedRatio":true}],"background":{"type":"solid","color":"#fafbfc"}},{"id":"template7-slide-3","type":"transition","elements":[{"type":"image","id":"transition-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9InJhZGlhbCIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNzAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZmZmOGZmIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmVmNGY0Ii8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNyYWRpYWwpIi8+PC9zdmc+","opacity":1},{"type":"image","id":"transition-left-decoration","left":0,"top":100,"width":300,"height":340,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjM0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImxlZnRHcmFkIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0icmdiYSgyMzEsMTA3LDEwNywwLjE1KSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiYSgyMzEsMTA3LDEwNywwLjA1KSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0gMCAwIEwgMjAwIDAgUSAyNTAgNTAgMzAwIDEwMCBMIDMwMCAyNDAgUSAyNTAgMjkwIDIwMCAzNDAgTCAwIDM0MCBMIDAgMCBaIiBmaWxsPSJ1cmwoI2xlZnRHcmFkKSIvPjwvc3ZnPg==","opacity":0.8},{"type":"image","id":"transition-right-decoration","left":660,"top":100,"width":300,"height":340,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjM0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InJpZ2h0R3JhZCIgeDE9IjEwMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjMxLDEwNywxMDcsMC4xNSkiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjMxLDEwNywxMDcsMC4wNSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDMwMCAwIEwgMTAwIDAgUSA1MCA1MCAwIDEwMCBMIDAgMjQwIFEgNTQgMjkwIDEwMCAzNDAgTCAzMDAgMzQwIEwgMzAwIDAgWiIgZmlsbD0idXJsKCNyaWdodEdyYWQpIi8+PC9zdmc+","opacity":0.8},{"type":"shape","id":"transition-center-bg","left":200,"top":150,"width":560,"height":240,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.9)","fixedRatio":true,"rotate":0,"shadow":{"h":0,"v":8,"blur":25,"color":"rgba(231,76,60,0.15)"}},{"type":"image","id":"transition-icon","left":430,"top":120,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI0NSIgZmlsbD0iI2U3NGMzYyIvPjxwb2x5Z29uIHBvaW50cz0iMzUsMzAgNjUsMzAgNTAsNzAiIGZpbGw9IndoaXRlIi8+PHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjQiIHg9IjM1IiB5PSI3NSIgZmlsbD0id2hpdGUiIHJ4PSIyIi8+PC9zdmc+","opacity":1},{"type":"text","id":"transition-title","textType":"title","left":240,"top":240,"width":480,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 32px; color: #e74c3c;\\">章节标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#e74c3c"},{"type":"text","id":"transition-content","textType":"content","left":240,"top":320,"width":480,"height":80,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 16px; color: #666666;\\">章节介绍内容</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"image","id":"transition-dots","left":400,"top":450,"width":160,"height":20,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYwIiBoZWlnaHQ9IjIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgY3g9IjIwIiBjeT0iMTAiIHI9IjQiIGZpbGw9IiNlNzRjM2MiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjEwIiByPSI0IiBmaWxsPSIjZjU2NjY2Ii8+PGNpcmNsZSBjeD0iODAiIGN5PSIxMCIgcj0iNCIgZmlsbD0iI2U3NGMzYyIvPjxjaXJjbGUgY3g9IjExMCIgY3k9IjEwIiByPSI0IiBmaWxsPSIjZjU2NjY2Ii8+PGNpcmNsZSBjeD0iMTQwIiBjeT0iMTAiIHI9IjQiIGZpbGw9IiNlNzRjM2MiLz48L3N2Zz4=","opacity":0.6}],"background":{"type":"gradient","gradient":{"type":"radial","colors":[{"color":"#fff8ff","pos":0},{"color":"#fef4f4","pos":100}]}}},{"id":"template7-slide-4","type":"content","elements":[{"type":"image","id":"content-bg-pattern","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIj48cGF0aCBkPSJNIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDIzMSwxMDcsMTA3LDAuMDgpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=","opacity":0.3},{"type":"shape","id":"content-header-bg","left":0,"top":0,"width":960,"height":100,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"#e74c3c","fixedRatio":true,"opacity":0.05,"rotate":0},{"type":"image","id":"content-title-icon","left":50,"top":30,"width":50,"height":50,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMjUiIGN5PSIyNSIgcj0iMjAiIGZpbGw9IiNlNzRjM2MiLz48dGV4dCB4PSIyNSIgeT0iMzIiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIyMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPvCfk4g8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"content-title","textType":"title","left":90,"top":30,"width":500,"height":60,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 28px; color: #e74c3c;\\">内容页标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#e74c3c"},{"type":"image","id":"content-illustration","left":50,"top":120,"width":300,"height":400,"src":"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center","opacity":0.8},{"type":"shape","id":"item-bg-1","left":400,"top":140,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(231,76,60,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-1","left":415,"top":155,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjZTc0YzNjIi8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjE8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-1","textType":"itemTitle","left":450,"top":150,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">待AI生成子小节1</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-1","textType":"itemContent","left":450,"top":180,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-2","left":400,"top":240,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(245,102,102,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-2","left":415,"top":255,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjZTc0YzNjIi8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjI8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-2","textType":"itemTitle","left":450,"top":250,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">待AI生成子小节2</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-2","textType":"itemContent","left":450,"top":280,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-3","left":400,"top":340,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(231,76,60,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-3","left":415,"top":355,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjZTc0YzNjIi8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjM8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-3","textType":"itemTitle","left":450,"top":350,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">待AI生成子小节3</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-3","textType":"itemContent","left":450,"top":380,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-4","left":400,"top":440,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(231,76,60,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-4","left":415,"top":455,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjZTc0YzNjIi8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjQ8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-4","textType":"itemTitle","left":450,"top":450,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">待AI生成子小节4</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-4","textType":"itemContent","left":450,"top":480,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"image","id":"content-side-decoration","left":920,"top":50,"width":40,"height":400,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0ic2lkZUdyYWQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjMxLDEwNywxMDcsMC4wNSkiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0icmdiYSgyMzEsMTA3LDEwNywwLjEpIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSJyZ2JhKDIzMSwxMDcsMTA3LDAuMDUpIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTSAwIDAgUSAyMCAxMDAgNDAgMjAwIFEgMjAgMzAwIDAgNDAwIEwgMCAwIFoiIGZpbGw9InVybCgjc2lkZUdyYWQpIi8+PC9zdmc+","opacity":0.6}],"background":{"type":"solid","color":"#fafbfc"}},{"id":"template7-slide-5","type":"end","elements":[{"type":"image","id":"end-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImVuZEdyYWQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmNTY2NjYiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2U3NGMzYyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2RjMzU0MiIvPjwvbGluZWFyR3JhZGllbnQ+PGNpcmNsZSBpZD0icGFydGljbGUiIHI9IjMiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4zKSIvPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2VuZEdyYWQpIi8+PHVzZSBocmVmPSIjcGFydGljbGUiIHg9IjEwMCIgeT0iNTAiLz48dXNlIGhyZWY9IiNwYXJ0aWNsZSIgeD0iMjAwIiB5PSIxMDAiLz48dXNlIGhyZWY9IiNwYXJ0aWNsZSIgeD0iMzUwIiB5PSI4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI1MDAiIHk9IjE4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI3MDAiIHk9IjEyMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI4MDAiIHk9IjIwMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSIxNTAiIHk9IjM1MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI0MDAiIHk9IjQwMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI2MDAiIHk9IjM4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI4NTAiIHk9IjQ1MCIvPjwvc3ZnPg==","opacity":1},{"type":"image","id":"end-top-decoration","left":0,"top":0,"width":960,"height":150,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjE1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InRvcERlY29yIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMikiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMCBMIDk2MCAwIEwgOTYwIDEwMCBRIDQ4MCA3MCA0ODAgMTIwIFEgNDgwIDEzMCAwIDE1MCBMIDAgMCBMIDAgMDAgWiIgZmlsbD0idXJsKCN0b3BEZWNvcikiLz48L3N2Zz4=","opacity":0.4},{"type":"image","id":"end-bottom-decoration","left":0,"top":390,"width":960,"height":150,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjE1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImJvdHRvbURlY29yIiB4MT0iMTAwJSIgeTE9IjEwMCUiIHgyPSIwJSIgeTI9IjAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMikiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMTUwIEwgOTYwIDUwIFEgNzAwIDIwIDQ4MCAzMCBRIDIwMCA0MCAwIDAgTCAwIDE1MCBaIiBmaWxsPSJ1cmwoI2JvdHRvbURlY29yKSIvPjwvc3ZnPg==","opacity":0.4},{"type":"shape","id":"end-main-bg","left":150,"top":120,"width":660,"height":300,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.15)","fixedRatio":true,"rotate":0,"shadow":{"h":0,"v":15,"blur":35,"color":"rgba(0,0,0,0.2)"}},{"type":"image","id":"end-center-icon","left":430,"top":100,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9Imljb25HcmFkIiBjeD0iNTAlIiBjeT0iNTAlIiByPSI1MCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC44KSIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQ1IiBmaWxsPSJ1cmwoI2ljb25HcmFkKSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNSkiIHN0cm9rZS13aWR0aD0iMyIvPjxwYXRoIGQ9Ik0gMzAgMzUgTCA3MCAzNSBMIDcwIDQwIEwgMzAgNDAgWiIgZmlsbD0iI2U3NGMzYyIvPjxwYXRoIGQ9Ik0gMzAgNDUgTCA2MCA0NSBMIDYwIDUwIEwgMzAgNTAgWiIgZmlsbD0iI2Y1NjY2NiIvPjxwYXRoIGQ9Ik0gMzAgNTUgTCA2NSA1NSBMIDY1IDYwIEwgMzAgNjAgWiIgZmlsbD0iI2U3NGMzYyIvPjwvc3ZnPg==","opacity":1},{"type":"text","id":"end-title","textType":"title","left":200,"top":220,"width":560,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 6px rgba(0,0,0,0.3);\\">谢谢聆听</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"end-subtitle","textType":"content","left":200,"top":300,"width":560,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: rgba(255,255,255,0.9);\\">感谢您的时间与关注</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"},{"type":"image","id":"end-left-ornament","left":50,"top":200,"width":80,"height":140,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0ibGVmdE9ybiIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0icmdiYSgyNTUsMjU1LDI1NSwwLjQpIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNIDAgMCBRIDQwIDM1IDgwIDcwIFEgNDAgMTA1IDAgMTQwIEwgMCAwIFoiIGZpbGw9InVybCgjbGVmdE9ybikiLz48Y2lyY2xlIGN4PSIyMCIgY3k9IjMwIiByPSI0IiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNikiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjcwIiByPSIzIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNSkiLz48Y2lyY2xlIGN4PSIyNSIgY3k9IjExMCIgcj0iNSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjQpIi8+PC9zdmc+","opacity":0.7},{"type":"image","id":"end-right-ornament","left":830,"top":200,"width":80,"height":140,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0icmlnaHRPcm4iIHgxPSIxMDAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTSA4MCAwIFEgNDAgMzUgMCA3MCBRIDQwIDEwNSA4MCAxNDAgTCA4MCAwIFoiIGZpbGw9InVybCgjcmlnaHRPcm4pIi8+PGNpcmNsZSBjeD0iNjAiIGN5PSIzMCIgcj0iNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjYpIi8+PGNpcmNsZSBjeD0iMzAiIGN5PSI3MCIgcj0iMyIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjUpIi8+PGNpcmNsZSBjeD0iNTUiIGN5PSIxMTAiIHI9IjUiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIvPjwvc3ZnPg==","opacity":0.7},{"type":"image","id":"end-footer-decoration","left":380,"top":380,"width":200,"height":30,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjMwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxjaXJjbGUgY3g9IjUwIiBjeT0iMTUiIHI9IjYiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC41KSIvPjxyZWN0IHdpZHRoPSI4MCIgaGVpZ2h0PSIyIiB4PSI2MCIgeT0iMTQiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC40KSIgcng9IjEiLz48Y2lyY2xlIGN4PSIxNTAiIGN5PSIxNSIgcj0iNiIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjUpIi8+PC9zdmc+","opacity":0.6}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#f56666","pos":0},{"color":"#e74c3c","pos":50},{"color":"#dc3542","pos":100}]}}}]'),S1=JSON.parse('[{"id":"template8-slide-1","type":"cover","elements":[{"type":"image","id":"cover-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImdyYWQxIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjMWU0MDY2Ii8+PHN0b3Agb2Zmc2V0PSI1MCUiIHN0b3AtY29sb3I9IiMzMzY2OTkiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0NzYzYjEiLz48L2xpbmVhckdyYWRpZW50PjxjaXJjbGUgY3g9IjgwMCIgY3k9IjEwMCIgcj0iMTIwIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+PGNpcmNsZSBjeD0iMTUwIiBjeT0iNDAwIiByPSI4MCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjxwYXRoIGQ9Ik0gMCAwIEwgOTYwIDAgTCA5NjAgNTQwIEwgMCA1NDAgWiIgZmlsbD0idXJsKCNncmFkMSkiLz48L3N2Zz4=","opacity":1},{"type":"shape","id":"cover-overlay","left":0,"top":200,"width":960,"height":340,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(0,0,0,0.4)","fixedRatio":true,"opacity":0.7,"rotate":0},{"type":"image","id":"cover-icon","left":430,"top":100,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0iIzMzNjY5OSIgcng9IjE1Ii8+PHRleHQgeD0iNTAiIHk9IjYwIiBmb250LWZhbWlseT0iQXJpYWwiIGZvbnQtc2l6ZT0iNDAiIGZpbGw9IndoaXRlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj7wn5OIPC90ZXh0Pjwvc3ZnPg==","opacity":0.9},{"type":"text","id":"title-text","textType":"title","left":200,"top":220,"width":560,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);\\">标题占位符</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"subtitle-text","textType":"content","left":200,"top":300,"width":560,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: rgba(255,255,255,0.9);\\">副标题占位符</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"},{"type":"shape","id":"cover-decoration","left":200,"top":380,"width":560,"height":4,"viewBox":[200,10],"path":"M 0 0 L 200 0 L 200 10 L 0 10 Z","fill":"#ffffff","fixedRatio":true,"opacity":0.8,"rotate":0}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#1e4066","pos":0},{"color":"#336699","pos":50},{"color":"#4763b1","pos":100}]}}},{"id":"template8-slide-2","type":"contents","elements":[{"type":"image","id":"contents-bg-pattern","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIj48cGF0aCBkPSJNIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDUxLDEwMiwxNTMsMC4wOCkiIHN0cm9rZS13aWR0aD0iMSIvPjwvcGF0dGVybi8+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=","opacity":0.3},{"type":"shape","id":"contents-header-bg","left":0,"top":0,"width":960,"height":120,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"#336699","fixedRatio":true,"opacity":0.1,"rotate":0},{"type":"image","id":"contents-icon","left":80,"top":30,"width":60,"height":60,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIiB4PSI1IiB5PSI1IiBmaWxsPSIjMzM2Njk5IiByeD0iOCIvPjxyZWN0IHdpZHRoPSI4IiBoZWlnaHQ9IjgiIHg9IjE1IiB5PSIxNSIgZmlsbD0id2hpdGUiLz48cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB4PSIxNSIgeT0iMjgiIGZpbGw9IndoaXRlIi8+PHJlY3Qgd2lkdGg9IjgiIGhlaWdodD0iOCIgeD0iMTUiIHk9IjQxIiBmaWxsPSJ3aGl0ZSIvPjx0ZXh0IHg9IjMzIiB5PSIyMiIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjgiIGZpbGw9IndoaXRlIj7nm67lvZU8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"contents-title","textType":"title","left":160,"top":30,"width":640,"height":80,"lineHeight":1.2,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 36px; color: #336699;\\">目录</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#336699"},{"type":"text","id":"item-1","textType":"item","left":90,"top":200,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-2","textType":"item","left":90,"top":250,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-3","textType":"item","left":90,"top":300,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-4","textType":"item","left":90,"top":350,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-5","textType":"item","left":90,"top":400,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项5</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"item-6","textType":"item","left":90,"top":450,"width":720,"height":40,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: #333333;\\">目录项6</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"}],"background":{"type":"solid","color":"#fafbfc"}},{"id":"template8-slide-3","type":"transition","elements":[{"type":"image","id":"transition-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9InJhZGlhbCIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNzAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZjhmZmZmIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZWZmOGZmIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNyYWRpYWwpIi8+PC9zdmc+","opacity":1},{"type":"shape","id":"transition-center-bg","left":200,"top":150,"width":560,"height":240,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.9)","fixedRatio":true,"rotate":0,"shadow":{"h":0,"v":8,"blur":25,"color":"rgba(51,102,153,0.15)"}},{"type":"image","id":"transition-icon","left":430,"top":120,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI0NSIgZmlsbD0iIzMzNjY5OSIvPjxwb2x5Z29uIHBvaW50cz0iMzUsMzAgNjUsMzAgNTAsNzAiIGZpbGw9IndoaXRlIi8+PHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjQiIHg9IjM1IiB5PSI3NSIgZmlsbD0id2hpdGUiIHJ4PSIyIi8+PC9zdmc+","opacity":1},{"type":"text","id":"transition-title","textType":"title","left":240,"top":240,"width":480,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 32px; color: #336699;\\">章节标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#336699"},{"type":"text","id":"transition-content","textType":"content","left":240,"top":320,"width":480,"height":80,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 16px; color: #666666;\\">章节介绍内容</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"}],"background":{"type":"gradient","gradient":{"type":"radial","colors":[{"color":"#f8ffff","pos":0},{"color":"#eff8ff","pos":100}]}}},{"id":"template8-slide-4","type":"content","elements":[{"type":"image","id":"content-bg-pattern","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIj48cGF0aCBkPSJNIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDUxLDEwMiwxNTMsMC4wOCkiIHN0cm9rZS13aWR0aD0iMSIvPjwvcGF0dGVybi8+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=","opacity":0.3},{"type":"shape","id":"content-header-bg","left":0,"top":0,"width":960,"height":100,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"#336699","fixedRatio":true,"opacity":0.05,"rotate":0},{"type":"image","id":"content-title-icon","left":50,"top":30,"width":50,"height":50,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMjUiIGN5PSIyNSIgcj0iMjAiIGZpbGw9IiMzMzY2OTkiLz48dGV4dCB4PSIyNSIgeT0iMzIiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIyMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPvCfk4g8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"content-title","textType":"title","left":90,"top":30,"width":500,"height":60,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 28px; color: #336699;\\">内容页标题</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#336699"},{"type":"image","id":"content-illustration","left":50,"top":120,"width":300,"height":400,"src":"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center","opacity":0.8},{"type":"shape","id":"item-bg-1","left":400,"top":140,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(51,102,153,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-1","left":415,"top":155,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjMzM2Njk5Ii8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjE8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-1","textType":"itemTitle","left":450,"top":150,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">要点标题1</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-1","textType":"itemContent","left":450,"top":180,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容1</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-2","left":400,"top":240,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(71,99,177,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-2","left":415,"top":255,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjMzM2Njk5Ii8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjI8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-2","textType":"itemTitle","left":450,"top":250,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">要点标题2</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-2","textType":"itemContent","left":450,"top":280,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容2</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-3","left":400,"top":340,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(51,102,153,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-3","left":415,"top":355,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjMzM2Njk5Ii8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjM8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-3","textType":"itemTitle","left":450,"top":350,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">要点标题3</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-3","textType":"itemContent","left":450,"top":380,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容3</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"},{"type":"shape","id":"item-bg-4","left":400,"top":440,"width":500,"height":80,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(51,102,153,0.08)","fixedRatio":true,"rotate":0},{"type":"image","id":"item-icon-4","left":415,"top":455,"width":25,"height":25,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTIuNSIgY3k9IjEyLjUiIHI9IjEwIiBmaWxsPSIjMzM2Njk5Ii8+PHRleHQgeD0iMTIuNSIgeT0iMTciIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxMCIgZmlsbD0id2hpdGUiIHRleHQtYW5jaG9yPSJtaWRkbGUiPjQ8L3RleHQ+PC9zdmc+","opacity":1},{"type":"text","id":"itemTitle-4","textType":"itemTitle","left":450,"top":450,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 18px; color: #333333;\\">要点标题4</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#333"},{"type":"text","id":"itemContent-4","textType":"itemContent","left":450,"top":480,"width":420,"height":30,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 14px; color: #666666;\\">详细说明内容4</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#666"}],"background":{"type":"solid","color":"#fafbfc"}},{"id":"template8-slide-5","type":"end","elements":[{"type":"image","id":"end-bg-image","left":0,"top":0,"width":960,"height":540,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTYwIiBoZWlnaHQ9IjU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImVuZEdyYWQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiM0NzYzYjEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzMzNjY5OSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzFlNDA2NiIvPjwvbGluZWFyR3JhZGllbnQ+PGNpcmNsZSBpZD0icGFydGljbGUiIHI9IjMiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4zKSIvPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2VuZEdyYWQpIi8+PHVzZSBocmVmPSIjcGFydGljbGUiIHg9IjEwMCIgeT0iNTAiLz48dXNlIGhyZWY9IiNwYXJ0aWNsZSIgeD0iMjAwIiB5PSIxMDAiLz48dXNlIGhyZWY9IiNwYXJ0aWNsZSIgeD0iMzUwIiB5PSI4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI1MDAiIHk9IjE4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI3MDAiIHk9IjEyMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI4MDAiIHk9IjIwMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSIxNTAiIHk9IjM1MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI0MDAiIHk9IjQwMCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI2MDAiIHk9IjM4MCIvPjx1c2UgaHJlZj0iI3BhcnRpY2xlIiB4PSI4NTAiIHk9IjQ1MCIvPjwvc3ZnPg==","opacity":1},{"type":"shape","id":"end-main-bg","left":150,"top":120,"width":660,"height":300,"viewBox":[200,200],"path":"M 0 0 L 200 0 L 200 200 L 0 200 Z","fill":"rgba(255,255,255,0.15)","fixedRatio":true,"rotate":0,"shadow":{"h":0,"v":15,"blur":35,"color":"rgba(0,0,0,0.2)"}},{"type":"image","id":"end-center-icon","left":430,"top":100,"width":100,"height":100,"src":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9Imljb25HcmFkIiBjeD0iNTAlIiBjeT0iNTAlIiByPSI1MCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InJnYmEoMjU1LDI1NSwyNTUsMC44KSIvPjwvcmFkaWFsR3JhZGllbnQ+PC9kZWZzPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQ1IiBmaWxsPSJ1cmwoI2ljb25HcmFkKSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNSkiIHN0cm9rZS13aWR0aD0iMyIvPjxwYXRoIGQ9Ik0gMzAgMzUgTCA3MCAzNSBMIDcwIDQwIEwgMzAgNDAgWiIgZmlsbD0iIzMzNjY5OSIvPjxwYXRoIGQ9Ik0gMzAgNDUgTCA2MCA0NSBMIDYwIDUwIEwgMzAgNTAgWiIgZmlsbD0iIzQ3NjNiMSIvPjxwYXRoIGQ9Ik0gMzAgNTUgTCA2NSA1NSBMIDY1IDYwIEwgMzAgNjAgWiIgZmlsbD0iIzMzNjY5OSIvPjwvc3ZnPg==","opacity":1},{"type":"text","id":"end-title","textType":"title","left":200,"top":220,"width":560,"height":80,"content":"<p style=\\"text-align: center;\\"><strong><span style=\\"font-size: 40px; color: #ffffff; text-shadow: 2px 2px 6px rgba(0,0,0,0.3);\\">谢谢聆听</span></strong></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"#ffffff"},{"type":"text","id":"end-subtitle","textType":"content","left":200,"top":300,"width":560,"height":60,"content":"<p style=\\"text-align: center;\\"><span style=\\"font-size: 18px; color: rgba(255,255,255,0.9);\\">感谢您的时间与关注</span></p>","rotate":0,"defaultFontName":"微软雅黑","defaultColor":"rgba(255,255,255,0.9)"}],"background":{"type":"gradient","gradient":{"type":"linear","colors":[{"color":"#4763b1","pos":0},{"color":"#336699","pos":50},{"color":"#1e4066","pos":100}]}}}]'),FYt=[{type:"cover",data:{title:"犯罪心理学研究",text:"探索犯罪心理的成因、特征及干预策略,助力犯罪预防与矫治。"}},{type:"contents",data:{items:["犯罪心理学概述","犯罪心理的形成","犯罪类型与心理特征","犯罪心理评估与干预","犯罪心理学的应用","未来发展趋势"]}},{type:"transition",data:{title:"犯罪心理学概述",text:"本章将介绍犯罪心理学的定义、历史、基本理论及其研究领域。"}},{type:"content",data:{title:"定义与历史",items:[{title:"犯罪心理学的定义",text:"犯罪心理学是研究犯罪行为及其心理机制的学科,旨在理解犯罪者的心理特征和行为动机。"},{title:"犯罪心理学的发展历史",text:"犯罪心理学起源于19世纪末,随着心理学和法学的发展逐渐形成独立学科。"},{title:"主要研究领域",text:"包括犯罪心理成因、犯罪类型分析、犯罪心理评估与干预等。"},{title:"与其他学科的关系",text:"犯罪心理学与法学、社会学、生物学等学科密切相关,共同探讨犯罪现象。"}]}},{type:"content",data:{title:"基本理论",items:[{title:"生物学理论",text:"探讨遗传、神经生理等因素对犯罪行为的影响。"},{title:"心理学理论",text:"分析人格、认知、情感等心理因素与犯罪行为的关联。"},{title:"社会学理论",text:"研究社会环境、文化背景等对犯罪心理的塑造作用。"},{title:"综合理论",text:"结合生物学、心理学和社会学视角,全面解释犯罪心理。"}]}},{type:"transition",data:{title:"犯罪心理的形成",text:"本章将探讨个体因素、环境因素及心理过程对犯罪心理的影响。"}},{type:"content",data:{title:"个体因素",items:[{title:"遗传因素",text:"研究基因与犯罪行为之间的潜在联系。"},{title:"心理特质",text:"探讨人格特质如攻击性、冲动性与犯罪的关系。"},{title:"人格障碍",text:"分析反社会人格障碍等心理疾病对犯罪行为的推动作用。"},{title:"早期经历",text:"研究童年创伤、家庭暴力等对犯罪心理的长期影响。"}]}},{type:"content",data:{title:"环境因素",items:[{title:"家庭环境",text:"探讨家庭结构、教育方式对犯罪心理的塑造作用。"},{title:"社会环境影响",text:"分析同伴压力、社区环境对犯罪行为的诱导作用。"},{title:"经济因素",text:"研究贫困、失业等经济问题与犯罪率的关系。"},{title:"文化背景",text:"探讨文化价值观对犯罪心理的影响。"}]}},{type:"content",data:{title:"心理过程",items:[{title:"认知过程",text:"分析犯罪者的思维方式、决策模式及其对行为的影响。"},{title:"情感过程",text:"探讨情绪调节、情感缺失与犯罪行为的关系。"},{title:"行为动机",text:"研究犯罪者的内在动机,如利益驱动、报复心理等。"},{title:"决策机制",text:"分析犯罪者在实施犯罪前的决策过程及其心理机制。"}]}},{type:"transition",data:{title:"犯罪类型与心理特征",text:"本章将分析暴力犯罪、财产犯罪及网络犯罪的心理特征。"}},{type:"content",data:{title:"暴力犯罪",items:[{title:"谋杀心理特征",text:"探讨谋杀者的心理动机,如情感冲突、利益争夺等。"},{title:"抢劫心理特征",text:"分析抢劫者的冒险心理及对暴力的依赖。"},{title:"性犯罪心理特征",text:"研究性犯罪者的心理扭曲及行为模式。"},{title:"家庭暴力心理特征",text:"探讨家庭暴力施暴者的控制欲及情感缺陷。"}]}},{type:"content",data:{title:"财产犯罪",items:[{title:"盗窃心理特征",text:"分析盗窃者的侥幸心理及对物质的渴望。"},{title:"诈骗心理特征",text:"探讨诈骗者的欺骗技巧及心理操纵能力。"},{title:"贪污心理特征",text:"研究贪污者的权力欲望及道德沦丧。"},{title:"洗钱心理特征",text:"分析洗钱者的风险规避心理及法律规避策略。"}]}},{type:"content",data:{title:"网络犯罪",items:[{title:"黑客心理特征",text:"探讨黑客的技术崇拜及对权威的挑战心理。"},{title:"网络诈骗心理特征",text:"分析网络诈骗者的伪装能力及心理操纵技巧。"},{title:"网络暴力心理特征",text:"研究网络暴力施暴者的匿名心理及攻击性。"},{title:"网络成瘾与犯罪",text:"探讨网络成瘾者对虚拟世界的依赖及其与犯罪行为的关联。"}]}},{type:"transition",data:{title:"犯罪心理评估与干预",text:"本章将介绍犯罪心理评估方法及干预策略,探讨预防措施。"}},{type:"content",data:{title:"评估方法",items:[{title:"心理测试",text:"通过标准化测试评估犯罪者的心理状态及人格特征。"},{title:"行为观察",text:"观察犯罪者的日常行为,分析其行为模式及心理动机。"},{title:"访谈技巧",text:"通过深度访谈了解犯罪者的心理历程及犯罪动机。"},{title:"案例分析",text:"通过典型案例分析犯罪者的心理特征及行为规律。"}]}},{type:"content",data:{title:"干预策略",items:[{title:"心理治疗",text:"通过心理咨询和治疗帮助犯罪者纠正心理问题。"},{title:"行为矫正",text:"通过行为训练帮助犯罪者改变不良行为模式。"},{title:"社会支持",text:"提供社会资源支持,帮助犯罪者重新融入社会。"},{title:"法律干预",text:"通过法律手段对犯罪行为进行约束和惩罚。"}]}},{type:"content",data:{title:"预防措施",items:[{title:"早期干预",text:"通过早期心理干预预防潜在犯罪者的行为问题。"},{title:"教育预防",text:"通过教育提升公众的法律意识及心理健康水平。"},{title:"社区预防",text:"通过社区活动增强社会凝聚力,减少犯罪诱因。"},{title:"政策预防",text:"通过政策制定减少社会不平等,降低犯罪率。"}]}},{type:"transition",data:{title:"犯罪心理学的应用",text:"本章将探讨犯罪心理学在刑事司法、犯罪预防及研究教育中的应用。"}},{type:"content",data:{title:"刑事司法系统",items:[{title:"犯罪心理画像",text:"通过心理分析描绘犯罪者的特征,协助案件侦破。"},{title:"审讯技巧",text:"运用心理学方法提高审讯效率,获取真实供述。"},{title:"证人心理学",text:"研究证人的心理状态及其对证词可信度的影响。"},{title:"陪审团决策",text:"分析陪审员的心理过程及其对判决结果的影响。"}]}},{type:"content",data:{title:"犯罪预防与矫治",items:[{title:"犯罪预防策略",text:"通过心理干预和社会支持预防犯罪行为的发生。"},{title:"监狱心理矫治",text:"通过心理治疗帮助服刑人员纠正心理问题,降低再犯率。"},{title:"社区矫正",text:"通过社区支持帮助犯罪者重新融入社会,减少再犯风险。"},{title:"再犯预防",text:"通过心理评估和干预降低犯罪者的再犯可能性。"}]}},{type:"content",data:{title:"研究与教育",items:[{title:"犯罪心理学研究",text:"通过科学研究深化对犯罪心理的理解,推动学科发展。"},{title:"犯罪心理学教育",text:"通过教育培养专业人才,提升犯罪心理学的应用水平。"},{title:"专业培训",text:"通过培训提升司法人员的心理学知识和技能。"},{title:"学术交流",text:"通过学术交流促进犯罪心理学领域的国际合作与发展。"}]}},{type:"transition",data:{title:"未来发展趋势",text:"本章将探讨犯罪心理学在技术应用、跨学科合作及伦理挑战方面的未来发展方向。"}},{type:"content",data:{title:"技术应用",items:[{title:"人工智能与犯罪心理学",text:"利用人工智能技术分析犯罪数据,提升犯罪预测能力。"},{title:"大数据分析",text:"通过大数据技术挖掘犯罪行为的规律及心理特征。"},{title:"虚拟现实技术",text:"利用虚拟现实技术模拟犯罪场景,研究犯罪者的心理反应。"},{title:"神经科学研究",text:"通过神经科学研究探索犯罪行为的生物学基础。"}]}},{type:"content",data:{title:"跨学科合作",items:[{title:"心理学与法律",text:"加强心理学与法学的合作,提升司法系统的科学性。"},{title:"心理学与医学",text:"通过心理学与医学的结合,深化对犯罪心理的理解。"},{title:"心理学与社会学",text:"通过心理学与社会学的交叉研究,全面分析犯罪现象。"},{title:"心理学与信息技术",text:"结合心理学与信息技术,开发犯罪预防与干预的新工具。"}]}},{type:"content",data:{title:"伦理与挑战",items:[{title:"伦理问题",text:"探讨犯罪心理学研究中的伦理困境及解决方案。"},{title:"隐私保护",text:"研究犯罪心理学应用中如何保护个人隐私。"},{title:"数据安全",text:"分析犯罪心理学数据的安全风险及防护措施。"},{title:"未来挑战",text:"探讨犯罪心理学在未来发展中可能面临的技术与社会挑战。"}]}},{type:"end"}],P3={default:{name:"通用风格",colors:{primary:"#2d3748",secondary:"#4a5568",accent:"#FF6B6B",text:"#4a5568",textLight:"#4a5568",background:"#F8F9FA",overlay:"rgba(0,0,0,0.4)",title:"#2d3748",subtitle:"#4a5568"},gradients:{cover:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",content:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)"}},redElegant:{name:"红色低调",colors:{primary:"#C62828",secondary:"#D32F2F",accent:"#FF5722",text:"#2C1810",textLight:"#5D4037",background:"#FFF3E0",overlay:"rgba(198,40,40,0.3)",title:"#ffffff",subtitle:"#FFEBEE"},gradients:{cover:"linear-gradient(135deg, #C62828 0%, #8D1B1B 100%)",content:"linear-gradient(135deg, #FFCDD2 0%, #FF8A80 100%)"}},blueTech:{name:"蓝色科技",colors:{primary:"#1976D2",secondary:"#2196F3",accent:"#00BCD4",text:"#0D47A1",textLight:"#1565C0",background:"#E3F2FD",overlay:"rgba(25,118,210,0.3)",title:"#ffffff",subtitle:"#E1F5FE"},gradients:{cover:"linear-gradient(135deg, #1976D2 0%, #0D47A1 100%)",content:"linear-gradient(135deg, #BBDEFB 0%, #90CAF9 100%)"}}},jB={cover:{id:"dynamic-cover",type:"cover",elements:[{type:"image",id:"cover-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=960&h=540&fit=crop&crop=center",opacity:.8},{type:"shape",id:"cover-overlay",left:0,top:0,width:960,height:540,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"rgba(0,0,0,0.4)",fixedRatio:!1,opacity:1,rotate:0},{type:"text",id:"title-text",textType:"title",left:100,top:150,width:760,height:120,lineHeight:1.2,content:'<p style="text-align: center;"><strong><span style="font-size: 48px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);">标题占位符</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#ffffff"},{type:"text",id:"subtitle-text",textType:"content",left:100,top:300,width:760,height:80,content:'<p style="text-align: center;"><span style="font-size: 24px; color: #f0f0f0;">副标题占位符</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#f0f0f0"},{type:"shape",id:"cover-line",left:300,top:400,width:360,height:10,viewBox:[200,10],path:"M 0 0 L 200 0 L 200 10 L 0 10 Z",fill:"#ffffff",fixedRatio:!1,opacity:.8,rotate:0}],background:{type:"gradient",gradient:{type:"linear",colors:[{color:"#667eea",pos:0},{color:"#764ba2",pos:100}]}}},transition:{id:"dynamic-transition",type:"transition",elements:[{type:"image",id:"transition-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557683316-973673baf926?w=960&h=540&fit=crop&crop=center",opacity:.7},{type:"shape",id:"transition-card",left:180,top:120,width:600,height:300,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"rgba(255,255,255,0.95)",fixedRatio:!1,rotate:0,shadow:{h:0,v:10,blur:30,color:"rgba(0,0,0,0.2)"}},{type:"text",id:"transition-title",textType:"title",left:200,top:160,width:560,height:80,content:'<p style="text-align: center;"><strong><span style="font-size: 32px; color: #2d3748;">章节标题</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:"transition-content",textType:"content",left:200,top:260,width:560,height:120,content:'<p style="text-align: center;"><span style="font-size: 18px; color: #4a5568;">章节介绍内容</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"}],background:{type:"gradient",gradient:{type:"linear",colors:[{color:"#f093fb",pos:0},{color:"#f5576c",pos:100}]}}},end:{id:"dynamic-end",type:"end",elements:[{type:"image",id:"end-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=960&h=540&fit=crop&crop=center",opacity:.8},{type:"shape",id:"end-overlay",left:0,top:0,width:960,height:540,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"rgba(0,0,0,0.5)",fixedRatio:!1,opacity:1,rotate:0},{type:"text",id:"end-title",textType:"title",left:100,top:200,width:760,height:80,content:'<p style="text-align: center;"><strong><span style="font-size: 40px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);">谢谢聆听</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#ffffff"},{type:"text",id:"end-subtitle",textType:"content",left:100,top:300,width:760,height:60,content:'<p style="text-align: center;"><span style="font-size: 20px; color: rgba(255,255,255,0.9);">感谢您的时间与关注</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"rgba(255,255,255,0.9)"}],background:{type:"gradient",gradient:{type:"linear",colors:[{color:"#667eea",pos:0},{color:"#764ba2",pos:100}]}}}};function UYt(e){const t={id:`dynamic-contents-${e}`,type:"contents",elements:[{type:"image",id:"contents-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557683316-973673baf926?w=960&h=540&fit=crop&crop=center",opacity:.3},{type:"text",id:"contents-title",textType:"title",left:100,top:80,width:760,height:80,lineHeight:1.2,content:'<p style="text-align: center;"><strong><span style="font-size: 36px; color: #2d3748;">目录</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"}],background:{type:"solid",color:"#f7fafc"}};if(e<=3)for(let n=0;n<e;n++)t.elements.push({type:"text",id:`item-${n+1}`,textType:"item",left:150,top:200+n*80,width:660,height:40,content:`<p style="text-align: center;"><span style="font-size: 20px; color: #4a5568;">目录项${n+1}</span></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"});else if(e<=6)for(let n=0;n<e;n++){const r=Math.floor(n/2),o=n%2;t.elements.push({type:"text",id:`item-${n+1}`,textType:"item",left:150+o*360,top:200+r*80,width:300,height:40,content:`<p style="text-align: center;"><span style="font-size: 20px; color: #4a5568;">目录项${n+1}</span></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}else for(let n=0;n<e;n++){const r=Math.floor(n/3),o=n%3;t.elements.push({type:"text",id:`item-${n+1}`,textType:"item",left:100+o*250,top:200+r*60,width:200,height:40,content:`<p style="text-align: center;"><span style="font-size: 18px; color: #4a5568;">目录项${n+1}</span></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}return t}function g0e(e){const t={id:`dynamic-content-${e}`,type:"content",elements:[{type:"image",id:"content-bg",left:0,top:0,width:960,height:540,src:"https://images.unsplash.com/photo-1557683311-eac922347aa1?w=960&h=540&fit=crop&crop=center",opacity:.2},{type:"text",id:"content-title",textType:"title",left:80,top:60,width:500,height:60,content:'<p style="text-align: center;"><strong><span style="font-size: 32px; color: #2d3748;">内容页标题</span></strong></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"}],background:{type:"solid",color:"#ffffff"}};if(e===2){for(let n=0;n<e;n++)t.elements.push({type:"text",id:`itemTitle-${n+1}`,textType:"itemTitle",left:60+n*260,top:200,width:240,height:30,content:`<p style="text-align: left;"><strong><span style="font-size: 20px; color: #2d3748;">要点标题${n+1}</span></strong></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:`itemContent-${n+1}`,textType:"itemContent",left:60+n*260,top:240,width:240,height:120,content:'<p style="text-align: left;"><span style="font-size: 16px; color: #4a5568;">待AI填充</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"});t.elements.push({type:"image",id:"content-illustration",left:600,top:120,width:300,height:400,src:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center",opacity:.8})}else if(e===3){for(let n=0;n<e;n++){let r,o;n<2?(r=60+n*260,o=180):(r=160,o=360),t.elements.push({type:"text",id:`itemTitle-${n+1}`,textType:"itemTitle",left:r,top:o,width:240,height:30,content:`<p style="text-align: left;"><strong><span style="font-size: 20px; color: #2d3748;">要点标题${n+1}</span></strong></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:`itemContent-${n+1}`,textType:"itemContent",left:r,top:o+40,width:240,height:100,content:'<p style="text-align: left;"><span style="font-size: 16px; color: #4a5568;">待AI填充</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}t.elements.push({type:"image",id:"content-illustration",left:600,top:120,width:300,height:400,src:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center",opacity:.8})}else if(e===4){for(let n=0;n<e;n++){const r=Math.floor(n/2),o=n%2;t.elements.push({type:"text",id:`itemTitle-${n+1}`,textType:"itemTitle",left:80+o*240,top:200+r*120,width:220,height:30,content:`<p style="text-align: left;"><strong><span style="font-size: 20px; color: #2d3748;">要点标题${n+1}</span></strong></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:`itemContent-${n+1}`,textType:"itemContent",left:80+o*240,top:240+r*120,width:220,height:60,content:'<p style="text-align: left;"><span style="font-size: 16px; color: #4a5568;">待AI填充</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}t.elements.push({type:"image",id:"content-illustration",left:600,top:120,width:300,height:400,src:"https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=300&h=400&fit=crop&crop=center",opacity:.8})}else for(let n=0;n<e;n++){const r=Math.floor(n/3),o=n%3;t.elements.push({type:"text",id:`itemTitle-${n+1}`,textType:"itemTitle",left:80+o*250,top:200+r*100,width:200,height:30,content:`<p style="text-align: left;"><strong><span style="font-size: 18px; color: #2d3748;">要点标题${n+1}</span></strong></p>`,rotate:0,defaultFontName:"微软雅黑",defaultColor:"#2d3748"},{type:"text",id:`itemContent-${n+1}`,textType:"itemContent",left:80+o*250,top:240+r*100,width:200,height:50,content:'<p style="text-align: left;"><span style="font-size: 14px; color: #4a5568;">待AI填充</span></p>',rotate:0,defaultFontName:"微软雅黑",defaultColor:"#4a5568"})}return t}function E1(e,t){const n=P3[t]||P3.default,r=JSON.parse(JSON.stringify(e));return r.elements&&r.elements.forEach(o=>{o.type==="shape"&&o.fill&&(o.id==="cover-overlay"?o.fill=n.colors.overlay:o.id==="content-bg"&&(o.fill=n.colors.background)),o.type==="text"&&(o.textType==="title"?o.defaultColor=n.colors.title:o.textType==="content"?o.defaultColor=n.colors.subtitle:o.textType==="itemTitle"?o.defaultColor=n.colors.primary:o.textType==="itemContent"&&(o.defaultColor=n.colors.text),(o.id==="transition-title"||o.id==="transition-content")&&(t==="redElegant"?o.defaultColor="#2C1810":t==="blueTech"?o.defaultColor="#0D47A1":o.defaultColor="#1a202c")),o.type==="image"&&(o.id==="cover-bg"||o.id==="transition-bg"||o.id==="end-bg")&&(t==="redElegant"?o.src="https://images.unsplash.com/photo-1586953208448-b95a79798f07?w=960&h=540&fit=crop&crop=center":t==="blueTech"&&(o.src="https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=960&h=540&fit=crop&crop=center"))}),r}function zYt(e,t,n="default"){const r=[];r.push(E1(jB.cover,n));const o=e.length;return r.push(E1(UYt(o),n)),e.forEach((i,a)=>{r.push(E1(jB.transition,n)),i.sections&&i.sections.length>0?i.sections.forEach((s,l)=>{const u=s.subsections?s.subsections.length:1;r.push(E1(g0e(Math.min(u,6)),n))}):r.push(E1(g0e(2),n))}),r.push(E1(jB.end,n)),r}function Mke(e){const t=[],n=[];if(!e||e.length===0)return t.push("大纲数据不能为空"),{isValid:!1,errors:t,warnings:n};const r=e.length;return r<2?t.push("至少需要2个章节"):r>6&&n.push("章节数量超过6个,建议合并部分章节"),e.forEach((o,i)=>{const a=o.sections?o.sections.length:0;a<2?n.push(`第${i+1}章的小节数量少于2个,建议增加内容`):a>4&&n.push(`第${i+1}章的小节数量超过4个,建议合并部分小节`)}),{isValid:t.length===0,errors:t,warnings:n}}function $Yt(){return Object.keys(P3).map(e=>({id:e,name:P3[e].name,colors:P3[e].colors}))}function Pke(e){if(!e||!Array.isArray(e))throw new Error("大纲数据格式不正确");return e.map((n,r)=>{const o=n.title||n.name||`第${r+1}章`;let i=[];return n.sections&&Array.isArray(n.sections)?i=n.sections.map((a,s)=>{const l=a.title||a.name||`第${s+1}节`;let u=[];return a.subsections&&Array.isArray(a.subsections)?u=a.subsections.map((d,c)=>({title:d.title||d.name||`第${c+1}点`,content:d.content||d.text||""})):u=[{title:"概述",content:""},{title:"详细内容",content:""}],{title:l,content:a.content||a.text||"",subsections:u}}):i=[{title:"主要内容",content:"",subsections:[{title:"概述",content:""},{title:"详细内容",content:""}]}],{title:o,content:n.content||n.text||"",sections:i}})}function Nke(e){const t={chapterCount:e.length,totalSections:0,totalSubsections:0,avgSectionsPerChapter:0,avgSubsectionsPerSection:0,complexity:"simple",recommendations:[]};return e.forEach((n,r)=>{const o=n.sections?n.sections.length:0;t.totalSections+=o,n.sections&&n.sections.forEach(i=>{const a=i.subsections?i.subsections.length:0;t.totalSubsections+=a})}),t.avgSectionsPerChapter=t.totalSections/t.chapterCount,t.avgSubsectionsPerSection=t.totalSections>0?t.totalSubsections/t.totalSections:0,t.chapterCount<=3&&t.avgSectionsPerChapter<=2?t.complexity="simple":t.chapterCount<=5&&t.avgSectionsPerChapter<=3?t.complexity="medium":t.complexity="complex",t.chapterCount<2&&t.recommendations.push("建议增加至少2个章节"),t.chapterCount>6&&t.recommendations.push("章节数量较多,建议合并相关章节"),t.avgSectionsPerChapter<2&&t.recommendations.push("建议为每个章节增加更多小节"),t.avgSectionsPerChapter>4&&t.recommendations.push("小节数量较多,建议合并相关内容"),t}function Rke(e){const t={templateType:"dynamic",layout:{contents:"vertical",content:"vertical"},maxItemsPerSlide:4,imagePosition:"right",fontSize:"medium"};switch(e.complexity){case"simple":t.layout.contents="vertical",t.layout.content="vertical",t.maxItemsPerSlide=3,t.imagePosition="right",t.fontSize="large";break;case"medium":t.layout.contents="grid-2",t.layout.content="grid-2",t.maxItemsPerSlide=4,t.imagePosition="right",t.fontSize="medium";break;case"complex":t.layout.contents="grid-3",t.layout.content="grid-3",t.maxItemsPerSlide=6,t.imagePosition="center",t.fontSize="small";break}return e.chapterCount<=3?t.layout.contents="vertical":e.chapterCount<=6?t.layout.contents="grid-2":t.layout.contents="grid-3",t}function jYt(e,t,n){const r=[];r.push({type:"cover",data:{title:t,text:"基于大纲自动生成的演示文稿"}});const o=e.map(i=>i.title);return r.push({type:"contents",data:{title:"目录",items:o}}),e.forEach((i,a)=>{r.push({type:"transition",data:{title:i.title,text:i.content||`本章将介绍${i.title}的相关内容`}}),i.sections&&i.sections.length>0?i.sections.forEach((s,l)=>{const u=[];for(s.subsections&&s.subsections.length>0?s.subsections.forEach((d,c)=>{c<n.maxItemsPerSlide&&u.push({title:d.title,text:d.content||""})}):u.push({title:s.title,text:s.content||""});u.length<2;)u.push({title:"",text:""});r.push({type:"content",data:{title:s.title,items:u.slice(0,n.maxItemsPerSlide)}})}):r.push({type:"content",data:{title:i.title,items:[{title:"概述",text:""},{title:"详细内容",text:""}]}})}),r.push({type:"end",data:{title:"谢谢聆听",text:"感谢您的时间与关注"}}),r}function HYt(e,t,n="default"){try{const r=Pke(e);console.log("大纲数据标准化完成:",r);const o=Mke(r);if(!o.isValid)throw new Error(`大纲数据验证失败: ${o.errors.join(", ")}`);o.warnings.length>0&&console.warn("大纲数据警告:",o.warnings);const i=Nke(r);console.log("大纲结构分析完成:",i);const a=Rke(i);console.log("模板配置选择完成:",a);const s=jYt(r,t,a);console.log("PPT幻灯片生成完成:",s);const l=zYt(r,t,n);return console.log("动态模板生成完成:",l),{success:!0,data:{normalizedOutline:r,analysis:i,config:a,slides:s,template:l},warnings:o.warnings,recommendations:i.recommendations}}catch(r){return console.error("大纲匹配和PPT生成失败:",r),{success:!1,error:r.message,data:null}}}function v0e(e,t){try{const n=Pke(e),r=Mke(n),o=Nke(n),i=Rke(o);return{success:!0,preview:{chapterCount:o.chapterCount,totalSections:o.totalSections,complexity:o.complexity,estimatedSlides:2+o.chapterCount*(1+o.avgSectionsPerChapter)+1,recommendedLayout:i.layout,validation:r,recommendations:o.recommendations}}}catch(n){return{success:!1,error:n.message}}}const WYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAS5SURBVHic7Z3NbxNHGId/7+wGRbAojlJqtyrFK/8Bdq/4AhLylcbczRGRC5Uick1yJYpULkgcsTgTevUFLnB2/gB3nahCprTNVjESDbv79kBs+TPrz90ZMs8pu96dffNo3pnZGWdCGBF2nASAHAzjNgM5MKdBlACQGLUMSXHBXAeRy0A98P1nC7b9etSbKewCdpwETPMBM/8C9WWNisvAS+H722Tb9bMuHCrwnIrrg5m3jGvXtod9PlAgO06aTXMPzLn5haYQRFXyvNVBtbFPIDtOmoV4BaJ0BKGpA3OdguBmr8QugVpeCAMkiq7PTXNPyzsDojSb5t7piARAh0D/4GBTt3kjwJyDaT5oHRJwmrqG4cQXlXK45Ps22bYrACAwjM24I1KMRKsWEgAEh4dHOMdjvQlxyfdt8dlxbkDLm4QEgJwQhnE37kiUxTBuCwLSccehKgzkBJh1+k4Kc1rogfMUECUEdAcyDQkRfo3mLLTAKdECp8SM6kFeo4E/d3ZwUqshaDanKstMJrF05w6WisUZRTc5FBwe8rwfclKr4Y9792Ze7uVCAVc2NmZe7jhEksJ/PXkyl3KPKxV8ePRoLmWPSiQpfFKrtX8WloULmczY9w9L++NKBQBiq4mRCOz85S9kMvh+d3es+9+tr+PT/n77eLlUwlG53D6OU6KSvfByqYTlUqnrXFzprKRAQB6JygoE5JCotEBguMTONnKeKC8QGCzx45s3kTw7sjeRWfL7rVuh13QOnebJV1ED40QJgQvJZNwhDEWJFF5ZW4OwLPwXkpazmKgYFyUECsvCytpa6HW9byxRoEQKy4wWOCXSpLDXaLQnBXoxk0ksZrNYSKUijiocaQT+Uy6jOURgi6ViEculEoRlRRRVOEql8L8vXuDvOU3OToq0Ai/m87AKBSxms13njysVeI1GTFH1I00K97Jy/367zTsql7smBz6+fSvFghIgcQ3s5GI+33UsUw1UQqBMwnqRNoU/7e/De/8eQbPZ13GYEg1npBX4YWdn4HlhWbhcKEQczXCkFTgIM5nElY0NqcaB0go0O6awzFQKl/J5XLp+Xar0BSQW+N3urpSvbr0o0QvLjBY4JdIINCTqGMZBmjZwqVhs965mMqlE+wdIJNBMpfrWdlVAmhRWFS1wSiJJYWFZ7eXGk1oN79bX5/Kc3i9yRkEkAi9kMu3lxqDZjGTpcdxvwU5KJCn87cOHUTymi29GWEeeBZEINFMp/PD0KRaz2bmmlrAsLGaz+PH588hqYCR/5vA1o3vhKdECp0QLnBIBwI07CIVxBZi1wElhrgsQ1eOOQ1mIXEFANe44VIWBuoDv/xZ3IKoS+P4zgS81ULeD4+Mu2PZrQbbtEtGvcUejGgy8BFrjQM97DF0Lx0L4/jZwKlDXwvFg5q3WNqDtPVTZcRJsmq/0LpYhEFXF1as/tQ7br3Jk2y553iqY67EEpgLMdfK81c5TehvkURmyDXLfZALZdp2C4CaI9AC7BVF1kDwgZC99/+Bgk4i25hWXAnzpXD3vMdn2wFHKKP+MIB0YxiYBP+P87PQWKq5FqMBOPjvODWEYdwlIgzlx2k6qLtUFswuiOgHV01fbapi4Fv8DnfCjpKjzyVIAAAAASUVORK5CYII=",VYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAbqSURBVHic7Z1PaBNZHMe/b2yCTVJIMbSGbaVZCUFQaLIXoRiUurBrwa4X7U2xRwv14lJYoRZckPXSQj1G1tNqL9qCXaEtSkvAPWxSaEHDqAlp2bglkoE2aTcpeXtIZzZ/Jpn8m5lkO5/TJPP65uWb3/v9fu9PXgnKJEiD5v39o70MQwZpmvaCoAegZoCYy62jMaEcoQhREA4EIZraf2Jv7X5T7l8TqQJBGjSn00dHKaW3m1+scqEcQF6kUpg41WoNlSpZVMDDKVwhhOLeSZ11ouh9sTff7UZ69HrynFLaK1/TmgdCyGoySa+IWWOBgO92Iz06HV4D6FGgbc1EKJXChXwRcwTUxJOkQEQm+65eT55DE68UPXo9eR6kQSEmCAJ+TEXGNZ8nDaW0N50+Osq/JoDQdYPqNavZoNyRI//YbMTGMQCg02Fc7SY1F8TMWyEBgA/7f8UOc65XHRkrZNjdjfOaeNVAMkNbomu5rnZTmhWGIYMMqJa2VAtN016GgGrdt1oIehhKNAusHmpmtABSC8TMSBfSKIUmYI1oAtZIi5IPi8Sj8KzNgY2FwXIbNdVl0hlgb+/GgK0Pl77uq1MLK4d82I9QJR7ExsIYW3mESDxa97qdHQ48ODeCNr2h7nVLoUgXZmNh3Fp6KIt4AODfCmBsZVqWuqVQpAvf/+MxdlIJAIDVaMHw6cs4brTUVOdOKoHlTT/mg14AGRHnP3kV786yC+jbCoCNZfyd1WjBdP8dWGsUj8fd5YSz04Gf3z4GAHjW5xQXUPYuPP/JK1z/dPZm3cTjGbD14ZItI1okHhW+LKWQXUDf1nsAgN3cDVeHQ5Zn8AICkM3PFkN2AXeSuwAAe/sJ2Z5hNR0TrtlYWLbniCG7D+SDRzYvg17MvF/Atsg9MdxdLtx2DRW9n+0WTAqnMoom0jzzn7wVJdIzgQVcc1ws6T9HXUOIxL/kdGclUEVAq9ECPwJllzfpDDDpSlvWNce3tTarKlQRcNQ1BGcFAcXV6Sg5ymBjYdx/+xgstwFnhwO3XUOy+txsVBGwTW/AQJ3yNX6Uw/ta/1YAt5Ye4sn343VPmcRo6tmY7WQCYyuPCgLVTiqBERmHjtk0tYBjK9OCSFajBQ/OjQhWx8/8yE3TCjjpewr/ViYQmXQGTPffgbvLien+O0LA4e/LiSo+kI2FMel7WnZ5d5czJ8q+DHoxE1gQXluNxwTLsxotcHU6sLzpV6QLqyKgZ32uIuvwbwVwydaHNr0BbCyMqT9zxWe5DXjW5jB85jK2kwlhPCyV+tQDVQSs9IPx5fODhtVoEazMsz4Lk741x/LcXc46tloc1fJAe3s3dpLlD+Xa9AbcWvolJ2j8+t04ZgKL8KzPAgCmstyCSWfA8JnL9W98HqrlgZWOHMSCRps+IxLLhbG86c8pP/rNkJYH8uQHjXxxruZ9GcOnBzGg0Ji44QXMDxr54mwnE8KMNJBZYFKi6/I0tID5QUNMHLFkWklUywOfBRYL3re3d+f4RilxivlFJVEtD8x3+gCAIIR8T0ocKb+oFKp04e0i6Quf70mJI+UXlUQVC7x79iaeBRYL8kB3lxOf41HJoCHmFz1rc1je9OGBe0RRS1RtRlpsjWM7mcCNVxMVB43tZEJIpuc/eTF8ZlDmT/AfDRWFZwILVQUNsYUrpWgoAfnA0shBI5+GEpBf5nR3ORs2aOQju4C1TimVk0yriexBxGo8BpZLVLRjYCeVQCQexU5yF5O+3yRHGpH4F+G61l1flSK7gPb2E2C5DbDcBiLxaEm/9flAiOVNf0GiXWqk4VmbFa5dnfLsvymG7F04e1JzZOlh0SRaimJB42XQK0RmZ4dD8cAiuwXyASESjyISj+LGqwlcdVyE3Vy48G03d4tu+XB/5YTVYIHv79xlgPmgV9hgCUCVwKLIHulIPIrrv0/Imq85Oxx41P+jbPUXQ5E0xmq04O7Zm7It8vCbzNVAsV36QMYSnwUWsbzpEwJGtRy6nzn8X2mokUgzoglYI5qANcJkjnrTqA7KMQDRBKwSQhFiQBFSuyHNCgXhGMKQVbUb0rQQhJh0ms5Kl9QQg6b2nzAtLXurWiCpBsrZW7vfMDZi4wghk2o3p/kgL4CDPJBh9qY0K6yMVAoTwIGAmhVWBqG4xx8DKpyhmjn2uPW1doplaQghqyePHBem2YWhnI3YuGSSXgG0vLAEoQONBLRjkMtH9BjkgsmEU63WUCqFC4RoCTYPIWRVTDxA4iz9j6nIOCW4J1fDGh/KEUImGWZvykZsolmK5D8jOOjS4wD94fCc9CYtHI+kgNmwuxvnia7lOih6CKg5c/Zgs4tKOYBwoAgRhqym03S2pWVvVUo4nn8BgWoljtHNmkoAAAAASUVORK5CYII=",qYt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAXxSURBVHic7ZwxbNtGFIb/dyRtqXICcYkgTxKBDHYhwa2XGlkSRKMBJ0MnNwgyJJ2KdOwSOEGXIEObomOnIMgWIPHuIB0aOEsCw0blwaikyYIyVERj1bJE6TpIpGVbNiWRR4oNv8UQRd89/Xrv3uM74QgDUqzyuFHHHGQsgfM5zpEiQhxAfNAxxhQdQAmATuClZqv9ZCap/D7oP5PdDcUqjxsG7oLz7xF8sQZFJ/CXzRZ7MJOk0lk3nirgJyrcSTi/fzEhPTjt7b4Cbpd5Spb4CwBzwgwLFhtGi67388YTAm6XeUpi/DURUl5YFhQ4R6nVpivHRTwiYCje2fQTkfXeIEv8RSje6RAhJUv8RbHKrZxgCbhTaa0gXPMGYc4wcNd8QYCVNIr+2RQ4dFmhdFolnQGAIrVX/LYoYMRNLyQA2PnQruJTrvVGQ5cVSrPtcvMyQvFGIW7UMccUid3025LAImOJcVDKZzOCC+dzDGH4jgznSDEgLJxHhQjx0AOdEWf294ScRSigQ0IBHSJ7NdHePsfbfAOVakvYHNq0jExawVTUdqfCNTwRsFA28OPTj6hU28LnSqgMD2+fR0KVhM8FeBTCXokHAJVqGz89r3kyF+CBB24WmpZ4uS8nsfD5BGIRMSG2+qaO9XwDW4UmCrsGtGnxASZ8hkL5cM1bzkWFhtZUhLCeb1jzeiGg8BCu7R+Gruh1KeZh8jAJyxiHhAI6RMgisbfPUat3Qnevzq3rg9aAXpUgbuC6gM/W/sWzV/t937v1SB94nOWrUSznPnPLLGG4GsKFXeNU8Ybl2at9bBaarowlElc9cLNouDkc1t4f4INNAZ7RZF9D3lUBe0sWN1h7d4C1dwe29z28fR5ZTXF17kEJs7BDPOvGjEJGU5BNn21iRlN88z5gzAXMpuWxz8TCQzihMiRUduJab0MhFqET14KCcA/89bs4pqKErx/8jVqdY2F2AvdunMNmoYkffvsHAPDtYgy5+Un8+PSj1QwAOlnYrpRJqBLuLMY8baL2IlzAt/kGcvOTyGoK1vMNLMxOAAC0pIxYhFCrc2S0jhmF8tEyqFJt2/YRt4oGspqC3PykmA9gg/AQNj0o013oTbGmogRtWu6GuITCrjFS0zUWIWtMPxA+sxmS2bQMLSkhoUqWJy7MTqCw2/G6fkV4EB7nhAtYq3OrO2yWGy//2EcmrWBhVsFUN3Gs/2lfMI8jnvj+ZrEj4J3FGIDOumWujYl5ybp2nL06t+3gxCLMtwQCeCTger6Ba5ciAA7XxL/KBnKYPHLtOKtv6lh9Uz9z7ITKcO+bc5607/vhyaxbhSZuPaoC6PQKgY44b7vro3ltFCrVNip6G9q0cztHwbOvrV+Gtcu6WlKCljzbxITKrNLID8b6UW5hdmLss3DYjXGIqwLGou5+H26PJwJXLdSS7naG3R5PBK4KmNUUq1xxyvLVqK99vkFxPYncWYxh6VLEyrBr7w6w9r7zlPHw9vmBxtCSsq/F8TAIycIJVbI2erZ6iuQgeNSwjP8qPeaEAjpEuIC9pYiTR7ZBqPWM79UvtYQ/ifTuh/z8fA9LLmXp49Tq/Mgeslf7K8IFzKQVJFSGSrWN9XzjyJ6HKBIq8yxhCQ/hqSjh3o1zJ3bmRGH+yNwraOdDW+zC1KVSbWGrYAj9wVBWU/DV7ISnNaRnAv5fCcsYh4QCOiQU0CEMnfPzQkZDZ5yHAjqgxIhQ8tuKAKMzEG34bUVQIfASg4FVvw0JKs1W+wkVqzxuNHkR4eETw6JfvMBUllZJB9Fjv60JGgT+svMX3QNnQy8cCqNF6ZkklRgAhF44JJzfN48BtdoWXS98jfAUSzs2Ll5gX5gvrEe5tEq60aLrnId14WlwjpLRouu918JjkAfktGOQTzQTZpJUarXpCoCwwD5ko594gM1Z+juV1gqI7ouyKgDoIHosy/glrVLfnoFt73u7zFOK1F7hoGv4dMocW+FMhto82C43LysSu9k99TKOztmDQRdV5xw6EUog2oCBVTmCDTvhTP4DldIcZr4qfHkAAAAASUVORK5CYII=",GYt={class:"chat-container"},KYt={class:"history-header"},YYt={class:"history-list"},QYt={key:0,class:"history-loading"},ZYt=["onClick"],XYt={class:"history-icon"},JYt=["src"],eQt={class:"history-content"},tQt={class:"history-title"},nQt={class:"history-meta"},rQt={class:"history-time"},oQt=["onClick"],iQt={key:2,class:"empty-history"},aQt={class:"main-work"},sQt={class:"work-content"},lQt={key:0,class:"step1-content"},uQt={key:0,class:"initial-content"},cQt={class:"function-cards"},dQt=["onClick"],fQt={class:"card-header"},pQt={class:"card-icon"},hQt=["src","alt"],gQt={class:"card-description"},vQt={key:1,class:"chat-content"},mQt={class:"chat-messages"},yQt={key:0,class:"user-message"},bQt={class:"message-content"},wQt={key:0,class:"message-file"},AQt={class:"file-display"},CQt={class:"file-icon"},xQt=["src"],SQt={key:1},EQt={class:"file-details"},kQt={class:"file-name"},TQt={class:"file-size"},_Qt={key:1,class:"message-text"},DQt={class:"message-actions"},IQt=["onClick"],OQt={key:1,class:"ai-message"},MQt=["data-message-index"],PQt={class:"ai-text"},NQt={key:0,class:"typing-indicator"},RQt=["innerHTML"],BQt={key:1,class:"step2-content"},LQt={key:0,class:"loading-overlay"},FQt={class:"outline-container"},UQt={class:"outline-main"},zQt={class:"outline-header"},$Qt={class:"outline-title-container"},jQt={key:1,class:"edit-input-container"},HQt=["onKeydown"],WQt={class:"outline-actions"},VQt=["disabled"],qQt=["disabled"],GQt=["disabled"],KQt={key:0,class:"generating-overlay"},YQt={key:1,class:"generating-overlay"},QQt={key:2,class:"outline-content-scrollable"},ZQt=["onDragstart","onDragover","onDrop"],XQt={class:"chapter-header"},JQt=["onClick"],eZt={key:1,class:"edit-input-container"},tZt={class:"edit-input-wrapper"},nZt=["onKeydown"],rZt={class:"edit-options-inline"},oZt=["onClick"],iZt=["onClick"],aZt={class:"outline-section"},sZt={key:0,class:"section-container"},lZt={class:"section-header"},uZt=["onClick"],cZt={key:1,class:"edit-input-container"},dZt={class:"edit-input-wrapper"},fZt=["onKeydown"],pZt={class:"edit-options-inline"},hZt=["onClick"],gZt=["onClick"],vZt={key:0,class:"section-subsection"},mZt={key:0,class:"subsection-container"},yZt={class:"subsection-header"},bZt=["onClick"],wZt={key:1,class:"edit-input-container"},AZt={class:"edit-input-wrapper"},CZt=["onKeydown"],xZt={class:"edit-options-inline"},SZt=["onClick"],EZt={key:0,class:"subsubsection-container"},kZt={class:"subsubsection-header"},TZt=["onClick"],_Zt={key:1,class:"edit-input-container"},DZt={class:"edit-input-wrapper"},IZt=["onKeydown"],OZt={key:0,class:"add-chapter-container"},MZt={key:3},PZt={class:"outline-sidebar"},NZt={class:"sidebar-section"},RZt={class:"section-content"},BZt={class:"stat-item"},LZt={class:"stat-value"},FZt={class:"stat-item"},UZt={class:"stat-value"},zZt={class:"stat-item"},$Zt={class:"stat-value"},jZt={class:"stat-item"},HZt={class:"stat-value"},WZt={class:"sidebar-section"},VZt={class:"section-content"},qZt={class:"evaluation-buttons"},GZt=["disabled"],KZt=["disabled"],YZt={class:"sidebar-actions"},QZt=["disabled"],ZZt=["disabled"],XZt={key:0,class:"loading-overlay"},JZt={class:"template-container"},eXt={key:0,class:"applying-overlay"},tXt={class:"template-preview"},nXt={class:"preview-container"},rXt={class:"preview-header"},oXt={class:"save-status"},iXt={class:"main-carousel"},aXt={key:0},sXt={class:"main-slide"},lXt={key:0,class:"ai-generated-slide"},uXt=["innerHTML"],cXt=["src","alt"],dXt=["src","alt"],fXt={key:1,class:"ppt-editor-workspace"},pXt={class:"editor-canvas"},hXt={style:{position:"absolute",top:"10px",right:"10px",background:"rgba(0,0,0,0.7)",color:"white",padding:"5px","border-radius":"4px","font-size":"12px","z-index":"1001"}},gXt=["onClick","onDblclick","onMousedown"],vXt=["onMousedown"],mXt=["onMousedown"],yXt=["onMousedown"],bXt=["onMousedown"],wXt=["onMousedown"],AXt=["src","alt","onClick"],CXt=["innerHTML","onBlur"],xXt=["innerHTML"],SXt={key:1,class:"edit-mode"},EXt={class:"slide-editor"},kXt={class:"slide-title"},TXt={class:"slide-body"},_Xt={class:"thumbnail-nav"},DXt={key:0},IXt={class:"slide-counter"},OXt={class:"progress-dots"},MXt=["onClick"],PXt=["onClick"],NXt=["src","alt"],RXt={class:"thumbnail-number"},BXt={key:1},LXt={class:"slide-counter"},FXt={class:"progress-dots"},UXt=["onClick"],zXt=["onClick"],$Xt={class:"thumbnail-content"},jXt=["innerHTML"],HXt=["src","alt"],WXt={class:"thumbnail-number"},VXt={class:"template-sidebar"},qXt={class:"sidebar-title"},GXt={class:"template-list"},KXt=["onClick"],YXt={class:"template-thumbnail"},QXt=["src","alt"],ZXt={class:"template-info"},XXt={class:"template-title"},JXt={class:"template-meta"},eJt={class:"update-time"},tJt={class:"page-count"},nJt={key:0,class:"template-description"},rJt={key:0,class:"applying-overlay"},oJt={key:0,class:"applying-overlay"},iJt={key:1,class:"applying-overlay"},aJt={class:"download-options"},sJt=["onClick"],lJt={class:"option-icon"},uJt=["src","alt"],cJt={class:"option-info"},dJt={class:"option-title"},fJt={class:"option-description"},pJt={key:0,class:"option-check"},hJt={class:"download-actions"},gJt=["disabled"],vJt={key:1,class:"preview-actions"},mJt=["disabled"],yJt={key:0},bJt={key:1},wJt={key:0,class:"recommended-questions"},AJt=["onClick"],CJt=["src"],xJt={key:1,class:"chat-input-section"},SJt={class:"input-container"},EJt={key:0,class:"file-preview-section"},kJt={class:"file-preview"},TJt={class:"file-icon"},_Jt=["src"],DJt={key:1},IJt={class:"file-info"},OJt={class:"file-name"},MJt={class:"file-size"},PJt={class:"input-box"},NJt=["disabled"],RJt=["disabled"],BJt=["disabled"],LJt={class:"icon-container"},FJt={key:0,class:"recording-indicator"},UJt=["disabled"],zJt=["src"],$Jt={key:2,class:"copy-toast-overlay",style:{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",display:"flex","justify-content":"center","align-items":"center","z-index":"10000","pointer-events":"none"}},jJt={class:"wps-modal-header",style:{display:"flex","justify-content":"space-between","align-items":"center",padding:"16px 24px",background:"#f8f9fa","border-bottom":"1px solid #e9ecef"}},HJt={class:"wps-modal-content",style:{display:"flex","flex-direction":"column",flex:"1","min-height":"0"}},WJt={class:"wps-iframe-container",style:{flex:"1","min-height":"0",position:"relative"}},VJt=["src"],qJt={key:0,class:"wps-iframe-mask-top-right",style:{position:"absolute",top:"8px",left:"8px",width:"160px",height:"54px",background:"#F8F8F8","border-radius":"8px","z-index":"5","pointer-events":"none",opacity:"0.98",display:"flex","align-items":"center","justify-content":"center","font-size":"14px","font-weight":"600",color:"#333333"}},GJt={__name:"SafetyHazard",setup(e){Yl();const t=K(""),n=K(null),r=K(0),o=K(null),i=K(null),a=K(!1),s=K(!1),l=K(!1),u=K(null),d=K("step1");K(!1);const c=K(""),f=K(null),p=K(null),v=K(null),h=K(!1),g=K(!1),y=K(!1),m=K(!1),b=K(!1),w=K(!1),A=K([]),S=K([]),E=K(!1),D=K([]),_=K(!1),M=K(!1),O=K(!1),k=K("https://aippt.wps.cn/aippt/");K(!0),K([]),K(null);const R=K(null),N=K(!1);K(!1);const W=K(null),B=K(!1);K("");const z=Wr({maxSize:20*1024*1024,allowedTypes:[".docx"]});Wr({OssAccessKeyId:"",policy:"",Signature:"",host:"",dir:"",key:""});const{isListening:j,transcript:q,error:Y,startListening:U,stopListening:F}=O0();K(null);const H=ee(()=>D.value.some(ye=>ye.type==="ai"&&ye.isTyping)),re=ee(()=>`确定要删除历史记录"${u.value?.item?.title||""}"吗?删除后将无法恢复。`),X=K(null),te=K({}),Z=K(""),le=ye=>{if(!ye||!Array.isArray(ye))return{totalChapters:0,totalSections:0,estimatedPages:"0页",estimatedTime:"0分钟"};const se=ye.length;let Ie=0;ye.forEach((lt,at)=>{lt.sections&&Array.isArray(lt.sections)&&(Ie+=lt.sections.length)});const Ue=ve(ye),Ze=Pe(ye);return{totalChapters:se,totalSections:Ie,estimatedPages:Ue,estimatedTime:Ze}},ve=(ye,se)=>{let Ie=3,Ue=0;return ye.forEach(lt=>{lt.sections&<.sections.length>0?(Ue+=1,lt.sections.forEach(at=>{if(at.subsections&&at.subsections.length>0){const wt=at.subsections.length;wt<=2?Ue+=1:wt<=4?Ue+=2:Ue+=3}else Ue+=1})):Ue+=2}),`${Ie+Ue}页`},Pe=(ye,se)=>{let Ie=5,Ue=0;return ye.forEach(lt=>{lt.sections&<.sections.length>0?(Ue+=2,lt.sections.forEach(at=>{if(at.subsections&&at.subsections.length>0){const wt=at.subsections.length;wt<=2?Ue+=3:wt<=4?Ue+=5:Ue+=7}else Ue+=4})):Ue+=6}),`${Ie+Ue}分钟`},Ae=()=>{X.value&&(te.value=le(X.value))},he=K(null),Ee=K(""),Q=K(null),me=K(""),De=K(null),pe=K(null);K(null);const ie=K(0),ue=K(0),Be=K({title:"",content:""}),Me=K([]),Fe=K(0),ze=K(!1);K("edit");const Ne=K(!1),Re=K([]),gt=K(0),Bt=K(-1),Lt=K(-1),an=K(""),Kt=K(1),Ht=K(null),pt=K([oh,gg,vg,mg,yg]),Dt=K([{thumbnail:oh,title:"通用类PPT",updateTime:"2025-01-15 10:00 更新",pageCount:"5",type:"dynamic",style:"default"},{thumbnail:dS,title:"红色主题PPT",updateTime:"2025-01-15 10:00 更新",pageCount:"5",type:"static",style:"red",templateData:bg}]),dt=K(!1),it=K(null),de=K(null),tt=async(ye,se,Ie)=>{console.log("🎬 开始逐页生成PPT效果..."),Re.value=[];for(let Ue=0;Ue<ye.length;Ue++){const Ze=ye[Ue];console.log(`📄 正在生成第${Ue+1}页: ${Ze.type||"未知类型"}`),Re.value.push({...Ze,elements:Ze.elements?Ze.elements.map(at=>({...at,content:at.content,left:at.left,top:at.top,width:at.width,height:at.height})):[]}),Re.value=[...Re.value],console.log(`第${Ue+1}页背景信息:`,Ze.background),console.log(`第${Ue+1}页元素数量:`,Ze.elements?.length),await Yt(),Re.value=[...Re.value],await new Promise(at=>setTimeout(at,300));const lt=await ft(Ze,se,Ie,Ue);Re.value[Ue]=lt,Re.value=[...Re.value],await Yt(),Re.value=[...Re.value],gt.value=Ue,await new Promise(at=>setTimeout(at,400)),console.log(`✅ 第${Ue+1}页生成完成`)}console.log("🎉 所有页面生成完成!"),gt.value=0,console.log("📄 已回到第一页")},ft=async(ye,se,Ie,Ue)=>{const Ze=JSON.parse(JSON.stringify(ye));if(Ze.elements){console.log(`🔍 第${Ue+1}页有${Ze.elements.length}个元素`);for(let lt=0;lt<Ze.elements.length;lt++){const at=Ze.elements[lt];if(console.log(`🔍 处理元素${lt+1}:`,{textType:at.textType,content:at.content,id:at.id,type:at.type}),Ue===0&&at.textType==="title"&&at.content&&at.content.includes("标题占位符"))at.content=`<p style="text-align: center;"><strong><span style="font-size: 48px; color: #ffffff; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);">${Ie}</span></strong></p>`,console.log(`📝 填充封面标题: ${Ie}`),Yt(()=>{Re.value=[...Re.value]}),await new Promise(wt=>setTimeout(wt,200));else if(Ue===0&&at.textType==="content"&&at.content&&at.content.includes("副标题占位符")){const wt=await be(se,Ie);at.content=`<p style="text-align: center;"><span style="font-size: 24px; color: #f0f0f0;">${wt}</span></p>`,console.log(`📝 填充封面副标题: ${wt}`),Yt(()=>{Re.value=[...Re.value]}),await new Promise(mt=>setTimeout(mt,200))}else if(Ue===1&&at.textType==="item"&&at.content&&at.content.includes("目录项")){const wt=at.id.match(/item-(\d+)/);if(wt){const mt=parseInt(wt[1])-1;if(mt<se.length){const T=se[mt].title;at.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${at.defaultColor};">${T}</span></p>`,console.log(`📝 填充目录项${mt+1}: ${T}`)}else at.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${at.defaultColor};"> </span></p>`}Yt(()=>{Re.value=[...Re.value]}),await new Promise(mt=>setTimeout(mt,200))}else if(at.textType==="title"&&at.content&&at.content.includes("章节标题")){const wt=Se(se,Ue);at.content=`<p style="text-align: center;"><strong><span style="font-size: 36px; color: ${at.defaultColor};">${wt}</span></strong></p>`,console.log(`📝 填充过渡页标题: ${wt}`),Yt(()=>{Re.value=[...Re.value]}),await new Promise(mt=>setTimeout(mt,200))}else if(at.textType==="content"&&at.content&&at.content.includes("章节介绍")){const wt=Se(se,Ue);try{console.log(`🤖 正在为过渡页生成章节介绍内容: ${wt}`);const mt=await zn.reProduceSingleQuestion({message:`请为PPT章节"${wt}"生成一个简洁的章节介绍内容。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在20-30字以内 5.不要包含任何编号`});if(mt&&mt.data){const T=mt.data.reply||mt.data.content||mt.data.message||mt.data;console.log(`✅ 过渡页章节介绍生成完成: ${T}`),at.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${at.defaultColor};">${T}</span></p>`}else{const T=fe(se,Ue);console.log(`🔄 使用备用内容: ${T}`),at.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${at.defaultColor};">${T}</span></p>`}}catch(mt){console.error("❌ AI生成过渡页内容失败:",mt);const T=fe(se,Ue);console.log(`🔄 使用备用内容: ${T}`),at.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${at.defaultColor};">${T}</span></p>`}Yt(()=>{Re.value=[...Re.value]}),await new Promise(mt=>setTimeout(mt,200))}else if(at.textType==="title"&&at.content&&at.content.includes("内容页标题")){const wt=We(se,Ue);at.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: ${at.defaultColor};">${wt}</span></strong></p>`,console.log(`📝 填充内容页标题: ${wt}`),Yt(()=>{Re.value=[...Re.value]}),await new Promise(mt=>setTimeout(mt,200))}else if(at.textType==="itemContent"&&at.content&&(at.content.includes("正在生成...")||at.content.includes("待AI填充"))){console.log("🤖 找到需要AI填充的元素:",{textType:at.textType,content:at.content,id:at.id});const wt=$e(se,Ue,lt);try{console.log(`🤖 正在为第${Ue+1}页生成内容: ${wt}`),console.log("🤖 元素信息:",at);const mt=await zn.reProduceSingleQuestion({message:`请为PPT幻灯片生成专业的内容,主题是:${wt}。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.严格控制字数在30-45字以内 5.不要包含任何编号(如"子小节3:"、"要点1:"等)6.直接返回内容,不要添加前缀 7.要有独特性和创新性,避免与其他内容重复 8.从不同角度阐述主题。这是关于"${Ie}"的PPT演示文稿,当前章节是"${wt}"`});if(console.log("🤖 AI响应:",mt),mt&&mt.data){const T=mt.data.reply||mt.data.content||mt.data.message||mt.data||"AI生成的内容为空";console.log("🤖 AI生成内容:",T),await Mt(at,T,at.defaultColor),console.log(`✅ 第${Ue+1}页内容生成完成`)}else{const T=ot(se,Ue,lt);console.log("🔄 使用备用内容:",T),await Mt(at,T,at.defaultColor)}}catch(mt){console.error("❌ AI生成内容失败:",mt);const T=ot(se,Ue,lt);console.log("🔄 使用备用内容:",T),await Mt(at,T,at.defaultColor)}}else if(at.textType==="itemTitle"&&at.content&&(at.content.includes("要点标题")||at.content.includes("待AI生成子小节"))){const wt=Tn(se,Ue,lt);if(wt.includes("待AI生成子小节"))try{console.log(`🤖 正在为子小节生成标题: ${wt}`);const mt=qe(se,Ue,lt),T=await zn.reProduceSingleQuestion({message:`请为PPT幻灯片的小节"${mt}"生成3-4个简洁的子标题。要求:1.每个标题都要不同 2.标题简洁明了,控制在6-12字 3.专业准确 4.适合PPT展示 5.直接返回标题,用换行分隔,不要编号,不要重复,不要解释,只要标题`});if(T&&T.data){const P=(T.data.reply||T.data.content||T.data.message||T.data).split(`
- `).filter($=>$.trim()).map($=>$.trim());if(P.length>0){const $=lt%P.length,V=P[$];at.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${at.defaultColor};">${V}</span></strong></p>`,console.log(`✅ AI生成子小节标题[${$}]: ${V}`)}else at.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${at.defaultColor};">${wt}</span></strong></p>`,console.log("⚠️ AI生成标题失败,使用默认标题")}else at.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${at.defaultColor};">${wt}</span></strong></p>`,console.log("⚠️ AI调用失败,使用默认标题")}catch(mt){console.error("❌ AI生成标题失败:",mt),at.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${at.defaultColor};">${wt}</span></strong></p>`}else at.content=`<p style="text-align: center;"><strong><span style="font-size: 20px; color: ${at.defaultColor};">${wt}</span></strong></p>`,console.log(`📝 填充标题: ${wt}`);Yt(()=>{Re.value=[...Re.value]}),await new Promise(mt=>setTimeout(mt,200))}else if(at.content&&at.content.includes("待AI填充")&&!at.content.includes("正在生成...")){const wt=Nn(se,Ue,lt);at.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${at.defaultColor};">${wt}</span></p>`,console.log(`📝 填充内容: ${wt}`),Yt(()=>{Re.value=[...Re.value]}),await new Promise(mt=>setTimeout(mt,200))}}}return Ze},Mt=async(ye,se,Ie)=>new Promise(Ue=>{ye.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${Ie};">正在生成内容...</span></p>`,Yt(()=>{Re.value=[...Re.value]}),setTimeout(()=>{let Ze="";const lt=se.split("");let at=0;const wt=()=>{at<lt.length?(Ze+=lt[at],ye.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${Ie};">${Ze}</span></p>`,Yt(()=>{Re.value=[...Re.value]}),at++,setTimeout(wt,30)):Ue()};wt()},500)}),Tn=(ye,se,Ie)=>{if(console.log(`获取元素标题 - 幻灯片索引: ${se}, 元素索引: ${Ie}`),console.log("大纲数据:",ye),se<2)return"默认标题";let Ue=2,Ze=0,lt=0;for(let mt=0;mt<ye.length;mt++){const T=ye[mt];if(Ue++,T.sections&&T.sections.length>0){for(let I=0;I<T.sections.length;I++){if(Ue===se){Ze=mt,lt=I;break}Ue++}if(Ue===se)break}else{if(Ue===se){Ze=mt,lt=0;break}Ue++}}console.log(`当前内容页对应 - 章节: ${Ze}, 小节: ${lt}`);const at=ye[Ze],wt=at&&at.sections&&at.sections[lt];if(wt&&wt.subsections&&wt.subsections.length>0){const mt=wt.subsections[Ie%wt.subsections.length];if(mt&&mt.title)return mt.title.includes("待AI生成子小节"),mt.title}return wt&&wt.title?wt.title:at&&at.title?at.title:"默认标题"},Nn=(ye,se,Ie)=>{if(console.log(`获取元素内容 - 幻灯片索引: ${se}, 元素索引: ${Ie}`),se<2)return"默认内容";let Ue=2,Ze=0,lt=0;for(let mt=0;mt<ye.length;mt++){const T=ye[mt];if(Ue++,T.sections&&T.sections.length>0){for(let I=0;I<T.sections.length;I++){if(Ue===se){Ze=mt,lt=I;break}Ue++}if(Ue===se)break}else{if(Ue===se){Ze=mt,lt=0;break}Ue++}}console.log(`当前内容页对应 - 章节: ${Ze}, 小节: ${lt}`);const at=ye[Ze],wt=at&&at.sections&&at.sections[lt];if(wt&&wt.subsections&&wt.subsections.length>0){const mt=wt.subsections[Ie%wt.subsections.length];if(mt&&mt.title)return Le(mt.title,Ie)}return wt&&wt.title?Le(wt.title,Ie):at&&at.title?Le(at.title,Ie):Le("默认内容",Ie)},We=(ye,se)=>{if(console.log(`获取内容页标题 - 幻灯片索引: ${se}`),se<2)return"默认内容页标题";let Ie=2,Ue=0,Ze=0;for(let wt=0;wt<ye.length;wt++){const mt=ye[wt];if(Ie++,mt.sections&&mt.sections.length>0){for(let T=0;T<mt.sections.length;T++){if(Ie===se){Ue=wt,Ze=T;break}Ie++}if(Ie===se)break}else{if(Ie===se){Ue=wt,Ze=0;break}Ie++}}console.log(`当前内容页对应 - 章节: ${Ue}, 小节: ${Ze}`);const lt=ye[Ue],at=lt&<.sections&<.sections[Ze];return at&&at.title?at.title:lt&<.title?lt.title:"默认内容页标题"},ke=async ye=>{if(console.log("转换用户大纲数据为兼容格式..."),console.log("原始用户大纲数据:",ye),!ye||!Array.isArray(ye))return console.log("用户大纲数据无效,返回空数组"),[];const se=[];for(let Ie=0;Ie<ye.length;Ie++){const Ue=ye[Ie];let Ze=Ue.content;if(!Ze)try{console.log(`🤖 正在为章节"${Ue.title}"生成内容...`);const at=await zn.reProduceSingleQuestion({message:`请为PPT章节"${Ue.title}"生成一个简洁的章节介绍内容。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在20-30字以内 5.不要包含任何编号`});at&&at.data?(Ze=at.data.reply||at.data.content||at.data.message||at.data,console.log(`✅ 章节内容生成完成: ${Ze}`)):Ze=`第${Ie+1}章节的内容`}catch(at){console.error("❌ 章节内容生成失败:",at),Ze=`第${Ie+1}章节的内容`}const lt={title:Ue.title||`章节${Ie+1}`,content:Ze,sections:[]};if(Ue.sections&&Array.isArray(Ue.sections))for(let at=0;at<Ue.sections.length;at++){const wt=Ue.sections[at];let mt=wt.content;if(!mt)try{console.log(`🤖 正在为小节"${wt.title}"生成内容...`);const I=await zn.reProduceSingleQuestion({message:`请为PPT小节"${wt.title}"生成一个简洁的小节介绍内容。要求:1.内容专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在20-30字以内 5.不要包含任何编号`});I&&I.data?(mt=I.data.reply||I.data.content||I.data.message||I.data,console.log(`✅ 小节内容生成完成: ${mt}`)):mt=`第${at+1}小节的内容`}catch(I){console.error("❌ 小节内容生成失败:",I),mt=`第${at+1}小节的内容`}const T={title:wt.title||`小节${at+1}`,content:mt,subsections:[]};if(wt.subsections&&Array.isArray(wt.subsections)&&wt.subsections.length>0)T.subsections=wt.subsections.map((I,P)=>({title:I.title||`子小节${P+1}`}));else{const I=Math.floor(Math.random()*3)+2;T.subsections=[];for(let P=0;P<I;P++)T.subsections.push({title:`待AI生成子小节${P+1}`});console.log(`为小节"${wt.title}"创建了${I}个待AI生成的子小节`)}lt.sections.push(T)}else lt.sections=[{title:"主要内容",content:"主要内容描述",subsections:[{title:`${lt.title} - 要点1`},{title:`${lt.title} - 要点2`},{title:`${lt.title} - 要点3`},{title:`${lt.title} - 要点4`}]}],console.log(`为章节"${lt.title}"创建了默认小节和子小节`);se.push(lt)}return console.log("转换后的兼容格式数据:",se),se},be=async(ye,se)=>{if(console.log(`获取封面页完整描述 - 标题: ${se}`),se!=="用户生成的大纲"&&ye&&ye.length>0){if(ye&&ye.length>0){try{console.log("🤖 正在为用户大纲生成专业描述...");const lt=await zn.reProduceSingleQuestion({message:`请为PPT演示文稿生成一个专业的副标题描述。大纲包含${ye.length}个章节,每个章节都有多个小节和子小节。要求:1.描述专业准确 2.语言简洁明了 3.适合PPT展示 4.控制在30-45字以内 5.突出培训的专业性和系统性`});if(lt&<.data){const at=lt.data.reply||lt.data.content||lt.data.message||lt.data;return console.log(`✅ 用户大纲描述生成完成: ${at}`),at}}catch(lt){console.error("❌ 用户大纲描述生成失败:",lt)}let Ze=`${ye.length}章节`;return ye.forEach((lt,at)=>{if(lt.sections&<.sections.length>0){const wt=lt.sections.length;Ze+=`,第${at+1}章节${wt}小节`;const mt=lt.sections.map(T=>T.subsections?T.subsections.length:0);mt.length>0&&mt.some(T=>T>0)&&(Ze+=`(${mt.join("+")}子小节)`)}}),console.log(`生成用户大纲描述: ${Ze}`),Ze}return"用户生成的大纲结构"}const Ie=vt.value.find(Ue=>Ue.title===se);if(Ie&&Ie.description)return console.log(`找到对应的描述: ${Ie.description}`),Ie.description;if(ye&&ye.length>0){let Ze=`${ye.length}章节`;return ye.forEach((lt,at)=>{if(lt.sections&<.sections.length>0){const wt=lt.sections.length;Ze+=`,第${at+1}章节${wt}小节`;const mt=lt.sections.map(T=>T.subsections?T.subsections.length:0);mt.length>0&&mt.some(T=>T>0)&&(Ze+=`(${mt.join("+")}子小节)`)}}),console.log(`生成的描述: ${Ze}`),Ze}return"安全培训演示文稿"},fe=(ye,se)=>{if(console.log(`获取过渡页章节介绍内容 - 幻灯片索引: ${se}`),se<2)return"默认章节介绍";let Ie=2,Ue=0;for(let lt=0;lt<ye.length;lt++){const at=ye[lt];if(Ie===se){Ue=lt;break}Ie++,at.sections&&at.sections.length>0?Ie+=at.sections.length:Ie++}console.log(`当前过渡页对应 - 章节: ${Ue}`);const Ze=ye[Ue];return Ze&&Ze.content?Ze.content:Ze&&Ze.title?`本章将介绍${Ze.title}的相关内容,包括核心概念、重要知识点和实践应用。`:"默认章节介绍"},Se=(ye,se)=>{if(console.log(`获取过渡页章节标题 - 幻灯片索引: ${se}`),se<2)return"默认章节";let Ie=2,Ue=0;for(let lt=0;lt<ye.length;lt++){const at=ye[lt];if(Ie===se){Ue=lt;break}Ie++,at.sections&&at.sections.length>0?Ie+=at.sections.length:Ie++}console.log(`当前过渡页对应 - 章节: ${Ue}`);const Ze=ye[Ue];return Ze&&Ze.title?Dr(Ze.title):"默认章节"},qe=(ye,se,Ie)=>{if(console.log(`获取小节标题用于AI生成 - 幻灯片索引: ${se}, 元素索引: ${Ie}`),se<2)return"默认小节";let Ue=2,Ze=0,lt=0;for(let mt=0;mt<ye.length;mt++){const T=ye[mt];if(Ue++,T.sections&&T.sections.length>0){for(let I=0;I<T.sections.length;I++){if(Ue===se){Ze=mt,lt=I;break}Ue++}if(Ue===se)break}else{if(Ue===se){Ze=mt,lt=0;break}Ue++}}console.log(`当前内容页对应 - 章节: ${Ze}, 小节: ${lt}`);const at=ye[Ze],wt=at&&at.sections&&at.sections[lt];return wt&&wt.title?wt.title:"默认小节"},$e=(ye,se,Ie)=>{if(console.log(`获取AI标题 - 幻灯片索引: ${se}, 内容索引: ${Ie}`),se<2)return"默认内容";let Ue=2,Ze=0,lt=0;for(let mt=0;mt<ye.length;mt++){const T=ye[mt];if(Ue++,T.sections&&T.sections.length>0){for(let I=0;I<T.sections.length;I++){if(Ue===se){Ze=mt,lt=I;break}Ue++}if(Ue===se)break}else{if(Ue===se){Ze=mt,lt=0;break}Ue++}}console.log(`当前内容页对应 - 章节: ${Ze}, 小节: ${lt}`);const at=ye[Ze],wt=at&&at.sections&&at.sections[lt];if(wt&&wt.subsections&&wt.subsections.length>0){const mt=wt.subsections[Ie%wt.subsections.length];if(mt&&mt.title)return`${at.title} - ${wt.title} - ${mt.title}`}return wt&&wt.title?`${at.title} - ${wt.title}`:at&&at.title?at.title:"默认内容"},Le=(ye,se)=>{const Ie={信息上报与指挥体系建立:["建立完善的信息收集机制,确保各类安全信息及时准确上报","构建统一的指挥调度平台,实现各部门协调联动","制定标准化的上报流程,提高信息处理效率","建立应急响应机制,确保突发事件快速处置"],安全风险评估与控制:["开展全面的安全风险识别,建立风险清单","制定风险等级评估标准,实施分级管控","建立风险监测预警系统,实现动态监控","完善风险控制措施,确保风险可控"],应急预案与处置:["制定完善的应急预案体系,覆盖各类突发事件","建立应急响应队伍,提高应急处置能力","开展应急演练,检验预案有效性","完善应急物资储备,确保应急保障"],培训教育与能力提升:["制定系统化的培训计划,提高全员安全意识","开展专业技能培训,提升操作能力","建立培训考核机制,确保培训效果","持续改进培训方式,提高培训质量"],监督检查与持续改进:["建立监督检查机制,确保制度有效执行","开展定期检查评估,发现问题及时整改","建立问题跟踪机制,确保整改到位","持续改进工作方法,提升管理水平"]};for(const[Ze,lt]of Object.entries(Ie))if(ye.includes(Ze)||Ze.includes(ye))return lt[se%lt.length];const Ue=["建立完善的管理体系,确保各项工作有序开展","制定详细的操作规范,提高工作效率和质量","加强人员培训,提升专业技能和综合素质","建立监督检查机制,确保制度有效执行","完善应急预案,提高应对突发事件的能力","加强沟通协调,促进部门间有效合作","持续改进优化,不断提升管理水平","注重细节管理,确保工作质量稳定可靠","强化责任意识,确保各项工作落实到位","创新工作方法,提高工作效率和效果"];return Ue[se%Ue.length]},ot=(ye,se,Ie)=>{if(console.log(`生成内容 - 幻灯片索引: ${se}, 内容索引: ${Ie}`),se<2)return Le("默认内容",Ie);let Ue=2,Ze=0,lt=0;for(let mt=0;mt<ye.length;mt++){const T=ye[mt];if(T.sections&&T.sections.length>0){for(let I=0;I<T.sections.length;I++){if(Ue===se){Ze=mt,lt=I;break}Ue++}if(Ue===se)break}else{if(Ue===se){Ze=mt,lt=0;break}Ue++}}console.log(`当前内容页对应 - 章节: ${Ze}, 小节: ${lt}`);const at=ye[Ze],wt=at&&at.sections&&at.sections[lt];if(wt&&wt.subsections&&wt.subsections.length>0){const mt=wt.subsections[Ie%wt.subsections.length];if(mt&&mt.title)return Le(mt.title,Ie)}return wt&&wt.title?Le(wt.title,Ie):at&&at.title?Le(at.title,Ie):Le("默认内容",Ie)},vt=K([{id:"safety-basic",title:"基础安全培训",description:"2章节,每章节2小节,每小节4子小节",data:[{title:"信息上报与指挥体系建立",content:"建立完善的信息上报和指挥体系",sections:[{title:"信息收集机制",content:"建立完善的信息收集机制",subsections:[{title:"信息收集渠道"},{title:"信息收集标准"},{title:"信息收集流程"},{title:"信息质量控制"}]},{title:"指挥调度平台",content:"构建统一的指挥调度平台",subsections:[{title:"平台功能设计"},{title:"系统架构规划"},{title:"数据集成方案"},{title:"用户权限管理"}]}]},{title:"安全风险评估与控制",content:"开展全面的安全风险评估与控制",sections:[{title:"风险识别与评估",content:"建立风险识别与评估体系",subsections:[{title:"风险识别方法"},{title:"风险评估标准"},{title:"风险等级划分"},{title:"风险评估流程"}]},{title:"风险控制措施",content:"制定有效的风险控制措施",subsections:[{title:"预防控制措施"},{title:"监测预警机制"},{title:"应急处置方案"},{title:"持续改进机制"}]}]}]},{id:"comprehensive-training",title:"综合培训体系",description:"3章节,每章节3小节,每小节3子小节",data:[{title:"培训体系建设",content:"建立完善的培训体系",sections:[{title:"培训需求分析",content:"分析培训需求",subsections:[{title:"需求调研方法"},{title:"需求分析工具"},{title:"需求确认流程"}]},{title:"培训计划制定",content:"制定培训计划",subsections:[{title:"计划制定原则"},{title:"计划执行方案"},{title:"计划调整机制"}]},{title:"培训效果评估",content:"评估培训效果",subsections:[{title:"评估指标体系"},{title:"评估方法选择"},{title:"评估结果应用"}]}]},{title:"师资队伍建设",content:"建设专业师资队伍",sections:[{title:"师资选拔标准",content:"制定师资选拔标准",subsections:[{title:"专业能力要求"},{title:"教学经验要求"},{title:"综合素质要求"}]},{title:"师资培训体系",content:"建立师资培训体系",subsections:[{title:"培训内容设计"},{title:"培训方式选择"},{title:"培训效果跟踪"}]},{title:"师资激励机制",content:"建立师资激励机制",subsections:[{title:"激励政策制定"},{title:"激励措施实施"},{title:"激励效果评估"}]}]},{title:"培训资源管理",content:"管理培训资源",sections:[{title:"培训设施建设",content:"建设培训设施",subsections:[{title:"设施规划布局"},{title:"设施设备配置"},{title:"设施维护管理"}]},{title:"培训教材开发",content:"开发培训教材",subsections:[{title:"教材编写标准"},{title:"教材审核流程"},{title:"教材更新机制"}]},{title:"培训技术支持",content:"提供技术支持",subsections:[{title:"技术平台建设"},{title:"技术维护服务"},{title:"技术培训支持"}]}]}]},{id:"emergency-management",title:"应急管理体系",description:"4章节,每章节2小节,每小节2子小节",data:[{title:"应急预案制定",content:"制定应急预案",sections:[{title:"预案编制流程",content:"编制应急预案",subsections:[{title:"预案编制标准"},{title:"预案审核程序"}]},{title:"预案演练实施",content:"实施预案演练",subsections:[{title:"演练计划制定"},{title:"演练效果评估"}]}]},{title:"应急响应机制",content:"建立应急响应机制",sections:[{title:"响应流程设计",content:"设计响应流程",subsections:[{title:"响应级别划分"},{title:"响应时间要求"}]},{title:"响应队伍建设",content:"建设响应队伍",subsections:[{title:"队伍组建标准"},{title:"队伍培训体系"}]}]},{title:"应急物资保障",content:"保障应急物资",sections:[{title:"物资储备管理",content:"管理物资储备",subsections:[{title:"储备标准制定"},{title:"储备检查制度"}]},{title:"物资调配机制",content:"建立调配机制",subsections:[{title:"调配流程设计"},{title:"调配效率优化"}]}]},{title:"应急信息管理",content:"管理应急信息",sections:[{title:"信息收集系统",content:"建设收集系统",subsections:[{title:"系统功能设计"},{title:"系统运行维护"}]},{title:"信息发布机制",content:"建立发布机制",subsections:[{title:"发布渠道建设"},{title:"发布效果监控"}]}]}]},{id:"quality-management",title:"质量管理体系",description:"5章节,每章节2小节,每小节3子小节",data:[{title:"质量方针制定",content:"制定质量方针",sections:[{title:"方针内容设计",content:"设计方针内容",subsections:[{title:"方针目标设定"},{title:"方针实施策略"},{title:"方针效果评估"}]},{title:"方针宣传推广",content:"推广质量方针",subsections:[{title:"宣传渠道建设"},{title:"推广活动组织"},{title:"推广效果跟踪"}]}]},{title:"质量目标管理",content:"管理质量目标",sections:[{title:"目标设定方法",content:"设定质量目标",subsections:[{title:"目标分解原则"},{title:"目标量化标准"},{title:"目标调整机制"}]},{title:"目标监控体系",content:"监控目标实现",subsections:[{title:"监控指标设计"},{title:"监控频率设定"},{title:"监控结果分析"}]}]},{title:"质量过程控制",content:"控制质量过程",sections:[{title:"过程识别分析",content:"识别分析过程",subsections:[{title:"过程流程图绘制"},{title:"过程关键点识别"},{title:"过程风险分析"}]},{title:"过程改进优化",content:"改进优化过程",subsections:[{title:"改进机会识别"},{title:"改进方案设计"},{title:"改进效果验证"}]}]},{title:"质量审核评估",content:"审核评估质量",sections:[{title:"审核计划制定",content:"制定审核计划",subsections:[{title:"审核范围确定"},{title:"审核标准制定"},{title:"审核人员安排"}]},{title:"审核实施管理",content:"管理审核实施",subsections:[{title:"审核流程执行"},{title:"审核记录管理"},{title:"审核结果处理"}]}]},{title:"质量持续改进",content:"持续改进质量",sections:[{title:"改进机会识别",content:"识别改进机会",subsections:[{title:"问题分析方法"},{title:"改进需求评估"},{title:"改进优先级排序"}]},{title:"改进措施实施",content:"实施改进措施",subsections:[{title:"改进方案制定"},{title:"改进资源保障"},{title:"改进效果跟踪"}]}]}]},{id:"innovation-system",title:"创新管理体系",description:"6章节,每章节1小节,每小节4子小节",data:[{title:"创新战略规划",content:"规划创新战略",sections:[{title:"战略分析制定",content:"制定创新战略",subsections:[{title:"内外部环境分析"},{title:"创新机会识别"},{title:"战略目标设定"},{title:"战略实施路径"}]}]},{title:"创新文化建设",content:"建设创新文化",sections:[{title:"文化理念塑造",content:"塑造创新文化",subsections:[{title:"创新价值观建立"},{title:"创新氛围营造"},{title:"创新激励机制"},{title:"创新成果分享"}]}]},{title:"创新团队建设",content:"建设创新团队",sections:[{title:"团队组建管理",content:"管理创新团队",subsections:[{title:"团队成员选拔"},{title:"团队能力建设"},{title:"团队协作机制"},{title:"团队绩效管理"}]}]},{title:"创新项目管理",content:"管理创新项目",sections:[{title:"项目全生命周期",content:"管理项目全周期",subsections:[{title:"项目立项评估"},{title:"项目执行监控"},{title:"项目风险控制"},{title:"项目成果转化"}]}]},{title:"创新资源保障",content:"保障创新资源",sections:[{title:"资源统筹配置",content:"配置创新资源",subsections:[{title:"资金投入保障"},{title:"技术平台建设"},{title:"人才资源开发"},{title:"信息资源整合"}]}]},{title:"创新成果转化",content:"转化创新成果",sections:[{title:"成果产业化",content:"实现成果产业化",subsections:[{title:"成果评估筛选"},{title:"产业化路径设计"},{title:"市场推广策略"},{title:"经济效益评估"}]}]}]},{id:"mixed-structure",title:"混合结构演示",description:"2章节,第一章节2小节(3+4子小节),第二章节3小节(2+3+4子小节)",data:[{title:"第一章节:基础管理",content:"建立基础管理体系",sections:[{title:"制度建设",content:"建立完善的管理制度",subsections:[{title:"制度框架设计"},{title:"制度内容制定"},{title:"制度执行监督"}]},{title:"流程优化",content:"优化工作流程",subsections:[{title:"流程梳理分析"},{title:"流程改进设计"},{title:"流程实施推广"},{title:"流程效果评估"}]}]},{title:"第二章节:运营管理",content:"提升运营管理水平",sections:[{title:"资源配置",content:"优化资源配置",subsections:[{title:"资源需求分析"},{title:"资源配置方案"}]},{title:"绩效管理",content:"建立绩效管理体系",subsections:[{title:"绩效指标设定"},{title:"绩效评估方法"},{title:"绩效改进措施"}]},{title:"风险控制",content:"加强风险控制",subsections:[{title:"风险识别评估"},{title:"风险控制措施"},{title:"风险监测预警"},{title:"风险应急处置"}]}]}]}]),Ut=K(0);K(!1);const Qt=K("default");K($Yt());const Gt=K([{icon:WYt,title:"PowerPoint (PPTX)",description:"可编辑的演示文稿"},{icon:VYt,title:"考试工坊",description:"基于该文档,生成考试题"},{icon:qYt,title:"培训讲义文档",description:"基于PPT内容,提取文档文字"}]),vn=ee(()=>pt.value[ie.value]),Un=ee(()=>{const ye=new Date;return`${ye.getHours().toString().padStart(2,"0")}:${ye.getMinutes().toString().padStart(2,"0")}:${ye.getSeconds().toString().padStart(2,"0")}`}),wr=K([]),fr=K(0),Nt=async()=>{try{console.log("📋 开始获取安全培训历史记录列表...");const ye=performance.now(),se=await zn.getHistoryRecord({ai_conversation_id:0,business_type:1}),Ie=performance.now();console.log(`📋 历史记录API调用耗时: ${(Ie-ye).toFixed(2)}ms`),console.log("📋 安全培训历史记录列表响应:",se),se.statusCode===200?(fr.value=se.total||0,wr.value=se.data.map(Ue=>({id:Ue.id,title:xt(Ue.content),time:Ft(Ue.updated_at),businessType:Ue.business_type,step:Ue.step||0,cover_image:Ue.cover_image||"",ppt_json_url:Ue.ppt_json_url||"",ppt_json_content:Ue.ppt_json_content||"",isActive:!1,rawData:Ue})),console.log(`✅ 安全培训历史记录列表已设置: ${wr.value.length}条记录,总数: ${fr.value}`)):console.error("❌ 获取安全培训历史记录列表失败:",se.statusCode)}catch(ye){console.error("❌ 获取安全培训历史记录列表失败:",ye)}},_n=async ye=>{try{console.log("开始获取安全培训对话消息,conversationId:",ye);const se=await zn.getHistoryRecord({ai_conversation_id:ye,business_type:1});if(console.log("安全培训对话消息响应:",se),se.statusCode===200){const Ie=se.data.map(Ze=>{const lt=Sn(Ze.user_feedback);console.log(`安全培训消息 ${Ze.id} 的反馈状态:`,{raw:Ze.user_feedback,converted:lt});let at=null,wt=Ze.content;if(Ze.type==="user"&&Ze.content.includes("</filesize>")){const mt=Ze.content.match(/<filename>(.*?)<\/filename>/),T=Ze.content.match(/<filesize>(.*?)<\/filesize>/),I=Ze.content.match(/<word>(.*?)<\/word>/s);if(mt&&T){const P=mt[1],$=parseInt(T[1]),V=I?I[1].trim():"";at={name:P,size:$,type:P.endsWith(".docx")?".docx":P.endsWith(".doc")?".doc":".docx",icon:ox(P.endsWith(".docx")?".docx":P.endsWith(".doc")?".doc":".docx"),content:V};const J=Ze.content.split("</filesize>")[1];wt=J?J.trim():""}}return{type:Ze.type,content:wt,displayContent:Ze.type==="ai"?nx(Ze.content):wt,file:at,isTyping:!1,id:Ze.id,userFeedback:lt,rawData:Ze}});D.value=Ie,console.log("安全培训对话消息已设置:",D.value),r.value=ye;const Ue=Ie.find(Ze=>Ze.type==="ai");if(Ue&&Ue.content){console.log("找到AI回复内容,直接解析大纲:",Ue.content);const Ze=s.value;if(!X.value||X.value.length===0||Ze){const lt=vo(Ue.content);lt&<.chapters&<.chapters.length>0?(X.value=lt.chapters,Z.value=lt.title||"安全培训大纲",te.value=le(lt.chapters),console.log("从AI回复解析大纲数据成功",Ze?"(强制更新)":"")):console.log("AI回复中未找到有效的大纲内容")}else console.log("已有大纲数据,跳过设置(避免覆盖用户编辑结果)")}else console.log("未找到AI回复内容");return Ue&&Ue.rawData&&Ue.rawData.user_feedback!==void 0?(f.value=Ue.rawData.user_feedback,p.value=Ue.id,console.log("设置大纲反馈状态:",f.value,"AI消息ID:",p.value),console.log("AI消息原始数据:",Ue.rawData)):(f.value=null,p.value=null,console.log("未找到AI消息或反馈状态,重置大纲反馈状态")),!0}else return console.error("获取安全培训对话消息失败:",se.statusCode),!1}catch(se){return console.error("获取安全培训对话消息失败:",se),!1}},xt=ye=>{if(!ye)return"未知对话";if(ye.includes("</filesize>")){const Ue=ye.split("</filesize>")[1];if(Ue&&Ue.trim()){const lt=Ue.replace(/\s+/g," ").trim().split(/[。!?\n]/)[0];return lt.length>30?lt.substring(0,30)+"...":lt||"新对话"}}let se=ye.replace(/<[^>]*>/g,"");se=se.replace(/\s+/g," ").trim();const Ie=se.split(/[。!?\n]/)[0];return Ie.length>30?Ie.substring(0,30)+"...":Ie||"新对话"},Ft=ye=>{if(!ye)return"未知时间";let se;if(typeof ye=="string")se=new Date(ye);else{let mt=ye;ye.toString().length===10||ye.toString().length===11?mt=ye*1e3:ye.toString().length===13||(mt=ye*1e3),se=new Date(mt)}const Ie=new Date,Ue=new Date(Ie.getFullYear(),Ie.getMonth(),Ie.getDate()),Ze=new Date(Ue.getTime()-1440*60*1e3);if(se>=Ue)return se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(se>=Ze&&se<Ue)return"昨天 "+se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const lt=se.getMonth()+1,at=se.getDate(),wt=se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${lt}月${at}日 ${wt}`},Sn=ye=>{switch(console.log("转换用户反馈状态:",ye,"类型:",typeof ye),parseInt(ye)){case 2:return"like";case 3:return"dislike";case 0:default:return null}},Bn=()=>{Yt(()=>{const ye=document.querySelector(".chat-content");if(console.log("滚动函数执行,找到聊天区域:",ye),ye){console.log("滚动前 - scrollTop:",ye.scrollTop,"scrollHeight:",ye.scrollHeight,"clientHeight:",ye.clientHeight),ye.scrollTop=ye.scrollHeight,setTimeout(()=>{ye.scrollTop=ye.scrollHeight,console.log("延迟滚动后 - scrollTop:",ye.scrollTop)},10);const se=ye.lastElementChild;se&&se.scrollIntoView({behavior:"smooth",block:"end"}),console.log("滚动后 - scrollTop:",ye.scrollTop)}else console.warn("未找到聊天内容区域")})},Fr=(ye,se)=>{console.log("准备删除安全培训历史记录:",ye),u.value={item:ye,index:se},l.value=!0},kn=async()=>{if(!u.value)return;const{item:ye,index:se}=u.value;try{const Ie=await zn.deleteHistoryRecord({ai_conversation_id:ye.id});Ie.statusCode===200?(wr.value.splice(se,1),ye.isActive&&await Ct(),console.log("安全培训历史记录删除成功"),Et.success("删除成功")):(console.error("删除安全培训历史记录失败:",Ie.msg),Et.error(Ie.msg||"删除失败"))}catch(Ie){console.error("删除安全培训历史记录失败:",Ie),Et.error("删除失败,请稍后重试")}finally{l.value=!1,u.value=null}},Ye=()=>{l.value=!1,u.value=null},At=()=>{if(console.log("点击新建任务按钮,isProcessing:",w.value),w.value){console.log("正在处理中,无法新建任务");return}Ct()},tn=(ye,se)=>{if(console.log("点击历史记录项,isProcessing:",w.value,"isGeneratingOutline:",h.value,"item.isActive:",ye.isActive,"isSwitchingHistory:",s.value),ye.isActive||w.value||h.value||s.value){console.log("正在处理中、正在生成大纲、已激活或正在切换历史记录,无法切换");return}Ln(ye)},Ct=async()=>{console.log("创建新安全培训任务"),r.value=0,D.value=[],t.value="",W.value=null,o.value=null,i.value=null,a.value=!1,E.value=!1,wr.value.forEach(ye=>{ye.isActive=!1}),d.value="step1",X.value=null,te.value={},Z.value="",c.value="",f.value=null,p.value=null,v.value=null,he.value=null,Ee.value="",Q.value=null,me.value="",ie.value=0,ue.value=0,ze.value=!1,Fe.value=0,Me.value=[],Be.value={title:"",content:""},Re.value=[],gt.value=0,Bt.value=-1,Lt.value=-1,an.value="",Kt.value=1,Ht.value=null,pt.value=[oh,gg,vg,mg,yg],await Nt()},Xt=ye=>ye.cover_image&&ye.cover_image.trim()?ye.cover_image:LYt,yn=async(ye=!0,se=!1)=>{try{if(a.value)return console.log("正在保存中,跳过重复保存请求"),!1;if(!se&&!yi())return console.log("PPT数据未发生变化,跳过保存"),!1;a.value=!0,console.log("开始保存步骤信息到后端...");const Ie={slides:Re.value,title:Z.value||"安全培训演示文稿",generatedAt:new Date().toISOString()},Ue=JSON.stringify(Ie,null,2);console.log("PPT JSON数据已准备,长度:",Ue.length);let Ze="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0909_1757403783.png";if(Qt.value==="red"&&(Ze="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0913_1757730132.png",console.log("使用模板7专用封面图:",Ze)),Qt.value==="blueTech"&&(Ze="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0913_1757730132.png",console.log("使用模板8专用封面图:",Ze)),ye){for(const wt of Re.value)if(wt.elements&&wt.elements.length>0){for(const mt of wt.elements)if(mt.type==="image"&&mt.src&&mt.src.startsWith("http")){if(mt.src.includes("unsplash.com")||mt.src.includes("placeholder")){console.log("跳过模板默认图片:",mt.src);continue}Ze=mt.src,console.log("使用用户上传的图片作为封面图:",Ze);break}if(Ze!=="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0909_1757403783.png"&&Ze!=="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0913_1757730132.png")break}}else if(r.value){const wt=wr.value.find(mt=>mt.id===r.value);wt&&wt.cover_image&&wt.cover_image.trim()&&(Ze=wt.cover_image,console.log("保持使用现有封面图:",Ze))}const lt={ai_conversation_id:r.value,step:1,ppt_json_url:"",ppt_json_content:JSON.stringify(Re.value),cover_image:Ze};console.log("正在保存步骤信息:",lt);const at=await zn.saveStep(lt);return at.statusCode===200?(console.log("步骤信息保存成功"),i.value=JSON.parse(JSON.stringify(Re.value)),Et.success("PPT生成完成并已保存!"),!0):(console.error("保存步骤信息失败:",at.msg),Et.warning("PPT生成完成,但保存步骤信息失败"),!1)}catch(Ie){return console.error("保存步骤信息时发生错误:",Ie),Et.warning("PPT生成完成,但保存步骤信息时发生错误"),!1}finally{a.value=!1}},Ln=async ye=>{console.log("点击安全培训历史记录:",ye),s.value=!0;try{n.value=ye;const se=r.value,Ie=v.value,Ue=X.value?JSON.parse(JSON.stringify(X.value)):null,Ze=Z.value,lt=te.value?JSON.parse(JSON.stringify(te.value)):null,at=Re.value?JSON.parse(JSON.stringify(Re.value)):null;wr.value.forEach(mt=>{mt.isActive=mt.id===ye.id}),m.value=!0;const wt=async()=>{let mt=!1;if(Ue&&Ue.length>0&&Ie)if(!o.value||JSON.stringify({title:Ze,stats:lt,chapters:Ue})!==JSON.stringify(o.value)){console.log("检测到当前大纲数据有变化,保存当前修改到历史记录:",Ie);try{const I=r.value;r.value=Ie;const P=X.value,$=Z.value,V=te.value;X.value=Ue,Z.value=Ze,te.value=lt;const J=await Qe();if(r.value=I,r.value!==ye.id&&(X.value=P,Z.value=$,te.value=V),J){mt=!0,console.log("当前大纲修改已保存到历史记录:",Ie);const Te=wr.value.find(Xe=>Xe.id===Ie);Te&&(Te.rawData={...Te.rawData,ppt_outline:JSON.stringify({title:Ze,stats:lt,chapters:Ue,timestamp:Date.now()})},console.log("已更新历史记录列表中的大纲数据"))}}catch(I){console.error("保存当前大纲修改失败:",I)}}else console.log("大纲数据快照无变化,跳过保存");if(at&&at.length>0&&se)if(!i.value||JSON.stringify(at)!==JSON.stringify(i.value)){console.log("检测到当前PPT数据有变化,保存当前修改到历史记录:",se);try{const I=r.value;r.value=se;const P=Re.value;Re.value=at;const $=await yn();if(r.value=I,se!==ye.id&&(Re.value=P),$){mt=!0,console.log("当前PPT修改已保存到历史记录:",se);const V=wr.value.find(J=>J.id===se);V&&(V.rawData={...V.rawData,ppt_json_content:JSON.stringify(at),timestamp:Date.now()},console.log("已更新历史记录列表中的PPT数据"))}}catch(I){console.error("保存当前PPT修改失败:",I)}}else console.log("PPT数据快照无变化,跳过保存");mt||console.log("当前数据无变化,跳过保存")};if(r.value=ye.id,wt(),ye.step===0){console.log("历史记录step为0,跳转到步骤二(大纲页)"),Re.value=[],gt.value=0,Bt.value=-1,Lt.value=-1,an.value="",Kt.value=1,Ht.value=null,ze.value=!1,ie.value=0;const mt={type:"ai",content:"正在加载历史对话...",displayContent:"正在加载历史对话...",isTyping:!0,id:Date.now()+1,userFeedback:null};D.value=[mt];try{await _n(ye.id)?(console.log("安全培训历史对话加载成功",ye),D.value=D.value.filter(I=>I.id!==mt.id),d.value="step2",m.value=!1,X.value&&X.value.length>0&&r.value===ye.id?(console.log("检测到已有大纲数据,直接使用(来自getConversationMessages)"),v.value=ye.id,o.value={title:Z.value,stats:te.value,chapters:JSON.parse(JSON.stringify(X.value))},console.log("设置大纲ID:",v.value),d.value="step2",console.log("已跳转到步骤二:培训大纲界面(使用getConversationMessages数据)"),Kn(),po()):(console.log("未找到大纲数据,显示聊天界面"),E.value=!0)):(D.value=[{type:"ai",content:"抱歉,加载历史对话失败,请稍后重试。",displayContent:"抱歉,加载历史对话失败,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],E.value=!0)}catch(T){console.error("加载安全培训历史对话失败:",T),D.value=[{type:"ai",content:"抱歉,加载历史对话时发生错误,请稍后重试。",displayContent:"抱歉,加载历史对话时发生错误,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],E.value=!0,m.value=!1}}else if(ye.step===1){console.log("历史记录step为1,直接跳转到PPT预览页面"),Re.value=[],gt.value=0,Bt.value=-1,Lt.value=-1,an.value="",Kt.value=1,Ht.value=null;const mt={type:"ai",content:"正在加载PPT数据...",displayContent:"正在加载PPT数据...",isTyping:!0,id:Date.now()+1,userFeedback:null};D.value=[mt];try{if(await _n(ye.id)){console.log("安全培训历史对话加载成功"),D.value=D.value.filter($=>$.id!==mt.id),d.value="step3",m.value=!1;const I=D.value.filter($=>$.type==="ai"),P=I.length>1?I[1]:I.length>0?I[0]:null;if(P&&P.content){console.log("找到AI回复,开始解析大纲并直接生成PPT预览"),v.value=ye.id;const $=vo(P.content);if($&&$.chapters&&$.chapters.length>0){X.value=$.chapters,Z.value=$.title||"安全培训大纲",te.value=le($.chapters);try{if(console.log("step=1,从数据库读取已保存的PPT数据..."),ye.ppt_json_content&&ye.ppt_json_content.trim()){console.log("找到已保存的PPT JSON内容,直接加载...");const V=JSON.parse(ye.ppt_json_content);console.log("解析的PPT数据:",V),Re.value=V,ze.value=!0,i.value=JSON.parse(JSON.stringify(V)),console.log("PPT数据加载完成,共",V.length,"张幻灯片");const J=wr.value.find(Te=>Te.id===ye.id);J&&(J.ppt_json_content=ye.ppt_json_content,console.log("已同步历史记录列表中的PPT数据"))}else{console.log("未找到保存的PPT内容,重新生成...");const V=A2(X.value,Z.value),J=await mi(V,Z.value);await C2(J,!1),ze.value=!0,console.log("PPT数据重新生成完成")}}catch(V){console.error("加载PPT失败:",V),Et.error("加载PPT失败: "+V.message)}}else console.log("解析大纲失败,显示聊天界面"),E.value=!0}else console.log("未找到AI回复,显示聊天界面"),E.value=!0}else D.value=[{type:"ai",content:"抱歉,加载历史对话失败,请稍后重试。",displayContent:"抱歉,加载历史对话失败,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],E.value=!0}catch(T){console.error("加载安全培训历史对话失败:",T),D.value=[{type:"ai",content:"抱歉,加载历史对话时发生错误,请稍后重试。",displayContent:"抱歉,加载历史对话时发生错误,请稍后重试。",isTyping:!1,id:Date.now()+1,userFeedback:null}],E.value=!0,m.value=!1}}else console.log("历史记录step未知,显示聊天界面"),E.value=!0}catch(se){console.error("处理历史记录切换失败:",se),Et.error("切换历史记录失败,请稍后重试")}finally{s.value=!1,m.value=!1}};let Zn=0,jr=0;const yo=ye=>{const se=[x_,S_,E_,k_],Ie=se[Zn%se.length];return Zn++,Ie},Kr=ye=>{const se=[lk,uk,ck],Ie=se[jr%se.length];return jr++,Ie},xo=ye=>{console.log("点击功能卡片:",ye),E.value=!0;let se="";if(typeof ye=="string"&&ye.length>0)se=`请详细介绍${ye}的相关内容`;else switch(ye){case"safety-training":se="请详细介绍安全培训课程的相关内容";break;case"safety-assessment":se="请介绍安全评估测试的关键要点";break;case"safety-regulations":se="请查询相关的安全法规和标准";break;case"emergency-procedures":se="请介绍应急处理程序的关键步骤";break;default:se=`请详细介绍${ye}的相关内容`}t.value=se,zo()},zo=async()=>{if(t.value.trim()&&!_.value){console.log("开始发送消息:",t.value,"文件:",W.value),_.value=!0,w.value=!0,E.value=!0,D.value.length===0&&(wr.value.forEach(Ue=>{Ue.isActive=!1}),console.log("新对话开始,清除所有历史记录的选中状态"));const ye={type:"user",content:t.value,file:W.value,id:Date.now()};D.value.push(ye);const se={type:"ai",content:"",displayContent:"",isTyping:!0,id:Date.now()+1,userFeedback:null};D.value.push(se);const Ie=t.value;t.value="",W.value&&ix(),Bn(),console.log("当前聊天消息:",D.value);try{let Ue=Ie;ye.file&&ye.file.content&&(Ue=`<word>${ye.file.content}</word><filename>${ye.file.name}</filename><filesize>${ye.file.size}</filesize>${Ie}`);const Ze=await zn.sendDeepseekMessage({business_type:1,message:Ue});if(console.log("DeepSeek API响应:",Ze),Ze.statusCode===200){const lt=Ze.data.reply;r.value=Ze.data.ai_conversation_id;const at=tx(lt),wt=L9(at,ye.file),mt=nx(wt),T=[];let I="",P=!1,$="";for(let Xe=0;Xe<mt.length;Xe++){const st=mt[Xe];st==="<"?(I&&!P&&(T.push({type:"text",content:I}),I=""),P=!0,$=st):st===">"?($+=st,T.push({type:"tag",content:$}),P=!1,$=""):P?$+=st:I+=st}I&&T.push({type:"text",content:I}),console.log("分割后的文本块:",T);let V=0,J=0;const Te=setInterval(()=>{if(V<T.length){const Xe=T[V];if(Xe.type==="tag")se.displayContent+=Xe.content,V++,J=0;else if(J<Xe.content.length){const Ke=se.displayContent+Xe.content[J];se.displayContent=Ke,J++}else V++,J=0;D.value=[...D.value];const st=document.querySelector(`[data-message-index="${D.value.length-1}"] .message-content`);st&&(st.style.width="fit-content"),Bn(),Yt(()=>{Bn()})}else{se.isTyping=!1,se.content=at,clearInterval(Te),console.log("打字完成");const Xe=document.querySelector(`[data-message-index="${D.value.length-1}"] .message-content`);Xe&&(Xe.style.width="100%"),setTimeout(async()=>{D.value=[...D.value],console.log("打字完成,AI回复内容已全部显示"),await Nt(),r.value>0&&(wr.value.forEach(st=>{st.isActive=st.id===r.value}),console.log("设置最新历史记录为激活状态,conversationId:",r.value),v.value=r.value,console.log("设置新对话的大纲ID:",v.value)),Bn(),w.value=!1,console.log("AI回复完成,解禁历史记录和新建任务"),console.log("AI回复完成,开始检查是否为PPT需求"),Yr(at)},100)}},20)}else se.isTyping=!1,se.content="抱歉,我暂时无法回答您的问题,请稍后重试。",se.displayContent=se.content,console.error("DeepSeek API调用失败:",Ze),w.value=!1}catch(Ue){console.error("发送消息失败:",Ue),se.isTyping=!1,se.content="抱歉,网络连接出现问题,请检查网络后重试。",se.displayContent=se.content,w.value=!1}finally{_.value=!1}}},Sr=async()=>{try{h.value=!0,w.value=!0;const ye=r.value,Ie=`${Z.value||"安全培训大纲"}`;console.log("开始生成新大纲111:",Ie),console.log("锁定的ai_conversation_id:",ye),console.log("outlineTitle.value:",Z.value);const Ue=await zn.sendDeepseekMessage({business_type:1,message:Z.value,ai_conversation_id:ye});if(console.log("新大纲生成API响应:",Ue),Ue.statusCode===200){const Ze=Ue.data.reply,lt=tx(Ze),at=vo(lt);at&&at.chapters&&at.chapters.length>0?(console.log("新大纲解析成功:",at),X.value=at.chapters,te.value=at.stats,Z.value=at.title,f.value=null,c.value="",v.value=null,await xa(ye,at.chapters,at.title,at.stats),Et.success("大纲已生成")):(console.log("新大纲解析失败"),Et.error("新大纲生成失败,请重试"))}else console.error("新大纲生成API调用失败:",Ue),Et.error("生成失败,请重试")}catch(ye){console.error("生成新大纲失败:",ye),Et.error("生成失败,请重试")}finally{h.value=!1,w.value=!1}},Yr=ye=>{console.log("AI回复完成,直接解析并跳转到步骤二");const se=vo(ye);se&&se.chapters&&se.chapters.length>0?(console.log("解析成功,更新大纲数据:",se),X.value=se.chapters,te.value=se.stats,Z.value=se.title,f.value===null&&p.value===null?(console.log("新生成的大纲,重置反馈状态"),f.value=null,c.value="",v.value=null,d.value="step2",console.log("已跳转到步骤二:培训大纲界面"),console.log("当前大纲数据:",X.value),console.log("当前统计信息:",te.value),console.log("当前标题:",Z.value),Kn(),po()):(console.log("从历史记录加载的大纲,保持现有反馈状态:",f.value),d.value="step2",console.log("已跳转到步骤二:培训大纲界面"),console.log("当前大纲数据:",X.value),console.log("当前统计信息:",te.value),console.log("当前标题:",Z.value),Kn(),po())):console.log("解析失败或没有章节数据")},vo=ye=>{try{console.log("开始解析AI回复中的大纲信息"),console.log("AI回复内容:",ye);let se="安全培训大纲";const Ie=ye.split(`
- `);for(let wt of Ie){const mt=wt.trim();if(mt.includes("以下是为您准备的PPT大纲")){const T=Ie.indexOf(wt)+1;if(T<Ie.length){const I=Ie[T].trim();if(I&&I.length>0&&!I.includes("以下")&&!I.includes("大纲统计信息")){se=I;break}}}if(mt.startsWith("#")&&mt.length>1){se=mt.replace(/^#+\s*/,"").trim();break}}const Ue=[],Ze=ye.split(`
- `);let lt=null;console.log("开始解析行数:",Ie.length);for(let wt=0;wt<Ie.length;wt++){const T=Ie[wt].trim();console.log(`第${wt}行: "${T}"`);const I=(T.match(/^#+/)||[""])[0].length;if(I===1){console.log("找到大标题:",T),se=T.replace(/^#\s*/,"").trim();continue}else if(I===2){console.log("找到章节:",T),lt={title:T.replace(/^##\s*/,"").trim(),sections:[]},Ue.push(lt);continue}else if(I===3){if(lt){console.log("找到小节:",T);let P=T.replace(/^###\s*/,"").trim();lt.sections.push({title:P,subsections:[]});continue}}else if(I===4){if(lt&<.sections.length>0){console.log("找到子标题:",T);let P=T.replace(/^####\s*/,"").trim();lt.sections[lt.sections.length-1].subsections.push({title:P,subsubsections:[]});continue}}else if(T.startsWith("-")){if(lt&<.sections.length>0){console.log("找到具体内容要点:",T);let P=T.replace(/^-\s*/,"").trim();const $=lt.sections[lt.sections.length-1];if($.subsections.length>0){const V=$.subsections[$.subsections.length-1];V.subsubsections||(V.subsubsections=[]),V.subsubsections.push({title:P,content:""})}continue}}else if(I===0&&T.match(/^\d+\.\d+\.\d+/)){if(lt&<.sections.length>0){console.log("找到子小节(数字格式):",T),lt.sections[lt.sections.length-1].subsections.push({title:T});continue}}else if(I===0&&T.match(/^\d+\.\d+/)&<){console.log("找到小节(数字格式):",T),lt.sections.push({title:T,subsections:[]});continue}if(!lt&&T&&T.length>5&&!T.includes("以下")&&!T.includes("以上")&&!T.startsWith("#")&&!T.includes("大纲统计信息")&&(console.log("将内容作为章节处理:",T),lt={title:T,sections:[]},Ue.push(lt)),lt&&T&&T.length>3&&!T.match(/^第[一二三四五六七八九十]+章/)&&!T.match(/^第\d+章/)&&!T.match(/^\d+\.\d+/)&&!T.match(/^[一二三四五六七八九十]+\.\d+/)&&!T.match(/^\d+\.\d+\.\d+/)&&!T.match(/^[一二三四五六七八九十]+\.\d+\.\d+/)&&!T.includes("以下")&&!T.includes("以上")&&!T.includes("大纲统计信息")&&!T.includes("预计PPT页数")&&!T.includes("预计讲解时长")&&!T.includes("总章节数")&&!T.includes("总小节数")&&!T.startsWith("#")){lt.sections.length===0&<.sections.push({title:"内容详情",subsections:[]});const P=lt.sections[lt.sections.length-1];if(P.subsections||(P.subsections=[]),T&&T!=="内容要点"&&T!=="概述"&&T!=="内容详情"&&!T.includes("总章节数")&&!T.includes("总小节数")&&!T.includes("预计PPT页数")&&!T.includes("预计讲解时长")&&!T.startsWith("-")&&T.length>2){const $=P.subsections[P.subsections.length-1];if($&&$.subsubsections&&$.subsubsections.length>0){const V=$.subsubsections[$.subsubsections.length-1];if(V&&!V.content){V.content=T;continue}}P.subsections.push({title:T,subsubsections:[]})}}}Ue.forEach(wt=>{wt&&wt.sections&&wt.sections.forEach(mt=>{mt&&!mt.subsections&&(mt.subsections=[]),mt.subsections&&mt.subsections.forEach(T=>{T.subsubsections||(T.subsubsections=[])})})});const at=le(Ue);return{title:se,stats:at,chapters:Ue}}catch(se){return console.error("解析大纲信息失败:",se),null}};St(q,ye=>{!ye||j.value||(t.value=ye)}),St(Y,ye=>{ye&&(console.error("语音识别错误:",ye),Et.error(ye))}),qn(async()=>{console.log("🚀 页面初始化开始,优先加载历史记录..."),m.value=!0;try{await Nt(),console.log("✅ 历史记录加载完成");const ye=Promise.all([M9(),P9()]);console.log("🎉 页面初始化完成")}catch(ye){console.error("❌ 页面初始化失败:",ye)}finally{m.value=!1}});const Rr=ye=>{t.value=ye,console.log("选择推荐问题:",ye),E.value=!0,zo()},Ur=()=>{if(console.log("getEvaluationStatus - outlineFeedback:",f.value,"evaluation:",c.value),f.value!==null)switch(f.value){case 2:return"satisfied";case 3:return"unsatisfied";case 0:return"";default:return""}return c.value},Hr=async ye=>{try{console.log("设置评价:",ye);const se=Ur();let Ie;se===ye?(Ie=0,console.log("取消评价,发送0")):(Ie=ye==="satisfied"?2:3,console.log("设置新评价:",Ie)),console.log("currentAiMessageId.value",p.value);const Ue=await zn.likeAndDislike({id:p.value,user_feedback:Ie});Ue.statusCode===200?(console.log("评价保存成功"),Ie===0?(c.value="",f.value=0,Et.success("评价已取消")):(c.value=ye,f.value=Ie,Et.success("评价已保存"))):(console.error("评价保存失败:",Ue),Et.error("评价保存失败,请重试"))}catch(se){console.error("设置评价失败:",se),Et.error("评价设置失败,请重试")}},to=(ye,se,Ie,Ue)=>{he.value=ye,Ee.value=se,Q.value=Ie;let Ze=Ue;se==="chapter"?Ze=Ue.replace(/^第[一二三四五六七八九十\d]+章\s*/,""):se==="section"?Ze=Ue.replace(/^\d+\.\d+\s*/,""):se==="subsection"?Ze=Ue.replace(/^####\s*/,""):se==="subsubsection"&&(Ze=Ue.replace(/^-\s*/,"")),me.value=Ze,console.log("开始编辑:",{type:se,index:Ie,content:Ze})},pr=async()=>{if(!me.value.trim()){console.log("编辑内容为空,取消保存"),Po();return}try{if(Ee.value==="title")Z.value=me.value.trim();else if(Ee.value==="chapter"){const ye=Q.value,Ie=X.value[ye].title.match(/^(第[一二三四五六七八九十\d]+章)\s*/);if(Ie){const Ze=`${Ie[1]} ${me.value.trim()}`;X.value[ye].title=Ze}else{const Ue=["一","二","三","四","五","六","七","八","九","十"],lt=`第${ye<Ue.length?Ue[ye]:(ye+1).toString()}章 ${me.value.trim()}`;X.value[ye].title=lt}}else if(Ee.value==="section"){const[ye,se]=Q.value.split("-");X.value[ye].sections[se].title=me.value.trim()}else if(Ee.value==="subsection"){const[ye,se,Ie]=Q.value.split("-");X.value[ye].sections[se].subsections[Ie].title=me.value.trim()}else if(Ee.value==="subsubsection"){const[ye,se,Ie,Ue]=Q.value.split("-");X.value[ye].sections[se].subsections[Ie].subsubsections[Ue].title=me.value.trim()}else if(Ee.value==="subsubsection-content"){const[ye,se,Ie,Ue]=Q.value.split("-");X.value[ye].sections[se].subsections[Ie].subsubsections[Ue].content=me.value.trim()}console.log("保存成功:",me.value.trim()),Ae(),await Qe(!0),Po(),Et.success("保存成功!")}catch(ye){console.error("保存失败:",ye),Et.error("保存失败,请重试")}},Po=()=>{he.value=null,Ee.value="",Q.value=null,me.value="",console.log("取消编辑")},ni=async(ye,se)=>{try{if(ye==="chapter"){if(X.value.length<=2){Et.warning("至少需要保留2个章节");return}X.value.splice(se,1)}else if(ye==="section"){const[Ie,Ue]=se.split("-");if(X.value[Ie].sections.length<=1){Et.warning("每个章节至少需要保留1个小节");return}X.value[Ie].sections.splice(Ue,1)}else if(ye==="subsection"){const[Ie,Ue,Ze]=se.split("-");X.value[Ie].sections[Ue].subsections.splice(Ze,1)}else if(ye==="subsubsection"){const[Ie,Ue,Ze,lt]=se.split("-");X.value[Ie].sections[Ue].subsections[Ze].subsubsections.splice(lt,1)}Ae(),await Qe(!0),Et.success("删除成功!")}catch(Ie){console.error("删除失败:",Ie),Et.error("删除失败,请重试")}},Wi=(ye,se)=>{try{if(ye==="chapter"){const Ie=X.value||[];let Ue=0;const Ze=["","一","二","三","四","五","六","七","八","九","十"];Ie.forEach(at=>{const wt=at.title.match(/^第([一二三四五六七八九十\d]+)章/);if(wt){let mt=0;const T=wt[1];if(/^\d+$/.test(T))mt=parseInt(T);else{const I=Ze.indexOf(T);I>0&&(mt=I)}Ue=Math.max(Ue,mt)}});const lt=Ue+1;return`第${Ze[lt]}章`}else if(ye==="section"){const Ie=se,Ue=X.value[Ie]?.sections||[];let Ze=0;Ue.forEach(at=>{const wt=at.title.match(/^\d+\.(\d+)/);if(wt){const mt=parseInt(wt[1])||0;Ze=Math.max(Ze,mt)}});const lt=Ze+1;return`${Ie+1}.${lt}`}else if(ye==="subsection"){const[Ie,Ue]=se.split("-"),Ze=X.value[Ie]?.sections[Ue]?.subsections||[];let lt=0;Ze.forEach(wt=>{const mt=wt.title.match(/^\d+\.\d+\.(\d+)/);if(mt){const T=parseInt(mt[1])||0;lt=Math.max(lt,T)}});const at=lt+1;return`${parseInt(Ie)+1}.${parseInt(Ue)+1}.${at}`}else if(ye==="subsubsection"){const[Ie,Ue,Ze]=se.split("-"),lt=X.value[Ie]?.sections[Ue]?.subsections[Ze]?.subsubsections||[];let at=0;lt.forEach(mt=>{const T=mt.title.match(/^\d+\.\d+\.\d+\.(\d+)/);if(T){const I=parseInt(T[1])||0;at=Math.max(at,I)}});const wt=at+1;return`${parseInt(Ie)+1}.${parseInt(Ue)+1}.${parseInt(Ze)+1}.${wt}`}return""}catch(Ie){return console.error("生成编号失败:",Ie),""}},va=(ye,se)=>{if(ye.target.tagName==="TEXTAREA"||ye.target.tagName==="INPUT"||ye.target.closest(".edit-input-container")||ye.target.closest(".edit-input-wrapper")){ye.preventDefault();return}if(Ee.value!==""){ye.preventDefault();return}De.value=se,ye.dataTransfer.effectAllowed="move",ye.dataTransfer.setData("text/html",ye.target.outerHTML),ye.target.style.opacity="0.5"},aa=ye=>{ye.target.style.opacity="1",De.value=null,pe.value=null},Ci=(ye,se)=>{ye.preventDefault(),ye.dataTransfer.dropEffect="move",pe.value=se},xi=ye=>{ye.currentTarget.contains(ye.relatedTarget)||(pe.value=null)},is=async(ye,se)=>{ye.preventDefault();const Ie=De.value,Ue=se;if(!(Ie===null||Ie===Ue)){try{const Ze=[...X.value],[lt]=Ze.splice(Ie,1);Ze.splice(Ue,0,lt);const at=["","一","二","三","四","五","六","七","八","九","十"];Ze.forEach((wt,mt)=>{const T=wt.title.match(/^第[一二三四五六七八九十\d]+章\s*(.+)$/);if(T){const I=T[1];wt.title=`第${at[mt+1]}章 ${I}`}else wt.title=`第${at[mt+1]}章 ${wt.title}`;wt.sections&&wt.sections.length>0&&wt.sections.forEach((I,P)=>{const $=I.title.match(/^\d+\.\d+\s*(.+)$/);$&&(I.title=$[1]),I.subsections&&I.subsections.length>0&&I.subsections.forEach((V,J)=>{const Te=V.title.match(/^\d+\.\d+\.\d+\s*(.+)$/);Te&&(V.title=Te[1])})})}),X.value=Ze,Ae(),await Qe(!0),Et.success("章节顺序已调整,编号已重新排序")}catch(Ze){console.error("调整章节顺序失败:",Ze),Et.error("调整章节顺序失败,请重试")}De.value=null,pe.value=null}},Oi=async(ye,se)=>{try{if(ye==="chapter"){if(X.value.length>=6){Et.warning("最多只能添加6个章节");return}const Ie=Wi("chapter",null),Ue={title:`${Ie} 新章节`,sections:[{title:"新小节",subsections:[]}]};X.value.push(Ue),to(Ue,"chapter",X.value.length-1,`${Ie} 新章节`)}else if(ye==="section"){const Ue={title:`${Wi("section",se)} 新小节`,subsections:[]};X.value[se].sections.push(Ue),to(Ue,"section",`${se}-${X.value[se].sections.length-1}`,"新小节")}else if(ye==="subsection"){const[Ie,Ue]=se.split("-"),Ze=Wi("subsection",se),lt={title:"新子标题",subsubsections:[]};X.value[Ie].sections[Ue].subsections.push(lt),to(lt,"subsection",`${Ie}-${Ue}-${X.value[Ie].sections[Ue].subsections.length-1}`,"新子标题")}else if(ye==="subsubsection"){const[Ie,Ue,Ze]=se.split("-"),lt=Wi("subsubsection",se),at={title:`${lt} 新具体内容要点`,content:""};X.value[Ie].sections[Ue].subsections[Ze].subsubsections||(X.value[Ie].sections[Ue].subsections[Ze].subsubsections=[]),X.value[Ie].sections[Ue].subsections[Ze].subsubsections.push(at),to(at,"subsubsection",`${Ie}-${Ue}-${Ze}-${X.value[Ie].sections[Ue].subsections[Ze].subsubsections.length-1}`,`${lt} 新具体内容要点`)}Ae(),await Qe(!0)}catch(Ie){console.error("添加失败:",Ie),Et.error("添加失败,请重试")}},mi=async(ye,se)=>{console.log("开始填充AIPPT内容...");try{const Ie=`请为以下PPT数据填充内容,要求:
- 1. title字段:15字以内
- 2. text字段:20-50字以内
- 3. 内容要专业、实用、简洁
- 4. 保持JSON格式不变,只填充空的内容
- 5. 请自由发挥,生成丰富多样的标题和内容
- 6. 重要:必须保持原有的幻灯片数量和结构,不能删除或合并任何幻灯片
- 7. 对于每个content类型的幻灯片,确保items数组有4个元素
- PPT主题:${se}
- PPT数据:${JSON.stringify(ye,null,2)}
- 请直接返回完整的JSON数据,不要添加任何说明文字。确保所有空的内容都被填充,并且保持原有的幻灯片数量。`;console.log("发送AIPPT填充请求...");const Ue=await zn.reProduceSingleQuestion({message:Ie});console.log("API响应:",Ue);let Ze=null;if(Ue&&Ue.data?Ue.data&&typeof Ue.data=="object"&&Ue.data.reply?Ze=Ue.data.reply:Ue.data&&typeof Ue.data=="string"?Ze=Ue.data:Ze=JSON.stringify(Ue.data):Ue&&Ue.message?Ze=Ue.message:Ue&&Ue.content?Ze=Ue.content:Ue&&Ue.reply?Ze=Ue.reply:Ue&&typeof Ue=="string"?Ze=Ue:Ue&&typeof Ue=="object"&&(Ze=JSON.stringify(Ue)),Ze&&typeof Ze=="string"&&Ze.trim()!=="")try{const lt=JSON.parse(Ze.trim());if(console.log("AI返回的AIPPT数据解析成功:",lt),Array.isArray(lt))return console.log("AIPPT内容填充完成,原始数量:",ye.length,"填充后数量:",lt.length),lt.length!==ye.length&&(console.warn("警告:AI返回的幻灯片数量与原始数量不一致!"),console.warn("原始数量:",ye.length,"AI返回数量:",lt.length)),lt;throw new Error("AI返回的数据不是数组格式")}catch(lt){throw console.error("解析AI返回的JSON失败:",lt),console.log("AI返回的原始内容:",Ze),new Error("AI返回的数据格式不正确")}else throw new Error("AI返回内容为空或格式不正确")}catch(Ie){throw console.error("填充AIPPT内容失败:",Ie),new Error("填充AIPPT内容失败: "+Ie.message)}},Si=()=>{if(!o.value)return!0;const ye={title:Z.value,stats:te.value,chapters:X.value};return JSON.stringify(ye)!==JSON.stringify(o.value)},yi=()=>i.value?JSON.stringify(Re.value)!==JSON.stringify(i.value):!0,sa=(ye,se)=>{if(ye.match(/^第[一二三四五六七八九十\d]+章/))return ye;const Ie=["一","二","三","四","五","六","七","八","九","十"];return`第${se<Ie.length?Ie[se]:(se+1).toString()}章 ${ye}`},Dr=ye=>ye.replace(/^第[一二三四五六七八九十\d]+章\s*/,""),Mi=(ye,se)=>{let Ie=`# ${se}
- `;return ye.forEach((Ue,Ze)=>{Ie+=`## ${Ue.title}
- `,Ue.sections&&Ue.sections.length>0&&Ue.sections.forEach((lt,at)=>{Ie+=`### ${lt.title}
- `,lt.subsections&<.subsections.length>0&<.subsections.forEach((wt,mt)=>{Ie+=`#### ${wt.title}
- `,wt.subsubsections&&wt.subsubsections.length>0&&wt.subsubsections.forEach((T,I)=>{Ie+=`- ${T.title}
- `,T.content&&T.content.trim()&&(Ie+=`${T.content}
- `)})})}),Ie+=`
- `}),Ie},xa=async(ye,se,Ie,Ue)=>{try{if(a.value)return console.log("正在保存中,跳过重复保存请求"),!1;if(!ye||!se)return console.log("缺少conversationId或大纲数据,跳过后端保存"),!1;a.value=!0;const Ze=Mi(se,Ie);console.log("直接保存大纲到后端:",{ai_conversation_id:ye,markdownContent:Ze});const lt=await zn.savePPTOutline({ai_conversation_id:ye,ppt_content:Ze});return lt.statusCode===200?(console.log("大纲已直接保存到后端服务器,conversation_id:",ye),!0):(console.error("直接保存到后端服务器失败:",lt),!1)}catch(Ze){return console.error("直接保存大纲失败:",Ze),!1}finally{a.value=!1}},Qe=async(ye=!1)=>{try{if(a.value)return console.log("正在保存中,跳过重复保存请求"),!1;if(!r.value||!X.value)return console.log("缺少ai_conversation_id或大纲数据,跳过后端保存"),!1;if(!ye&&!Si())return console.log("大纲数据未发生变化,跳过保存"),!1;a.value=!0;const se=Mi(X.value,Z.value);console.log("准备保存大纲到后端:",{ai_conversation_id:r.value,markdownContent:se});const Ie=await zn.savePPTOutline({ai_conversation_id:r.value,ppt_content:se});return Ie.statusCode===200?(console.log("大纲已保存到后端服务器,conversation_id:",r.value),o.value={title:Z.value,stats:te.value,chapters:JSON.parse(JSON.stringify(X.value))},!0):(console.error("保存到后端服务器失败:",Ie),!1)}catch(se){return console.error("保存大纲失败:",se),!1}finally{a.value=!1}},Ve=()=>{O.value=!0,setTimeout(()=>{O.value=!1},1e3)},ne=()=>{try{if(!X.value||X.value.length===0){Et.warning("请先生成大纲后再使用WPS AI PPT");return}ax(),Ve(),k.value="https://aippt.wps.cn/aippt/",M.value=!0,Et.success("正在加载WPS AI PPT..."),console.log("WPS AI PPT集成页面已打开")}catch(ye){console.error("WPS AI PPT加载失败:",ye),Et.error("WPS AI PPT加载失败,请稍后重试")}},Oe=()=>{console.log("iframe加载失败"),Et.warning("页面加载失败,请尝试其他选项或检查网络连接")};K(null);const Ge=()=>{try{console.log("打开测试PPT"),M.value=!0,k.value=R.value.link_url,Et.success("正在打开测试PPT...")}catch(ye){console.error("打开测试PPT失败:",ye),Et.error("打开测试PPT失败,请重试")}},$t=()=>{if(console.log("返回步骤二:编辑大纲"),!X.value||X.value.length===0){console.log("大纲数据未加载,重新加载历史记录数据");const ye=wr.value.find(se=>se.id===r.value);if(ye)if(ye.rawData&&ye.rawData.ppt_outline&&ye.rawData.ppt_outline.trim())try{const se=JSON.parse(ye.rawData.ppt_outline);X.value=se.chapters,Z.value=se.title||"安全培训大纲",te.value=le(se.chapters),v.value=ye.id,o.value={title:Z.value,stats:te.value,chapters:JSON.parse(JSON.stringify(se.chapters))},console.log("重新加载大纲数据成功:",Z.value)}catch(se){console.error("重新加载大纲数据失败:",se)}else console.log("当前历史记录没有大纲数据")}else console.log("大纲数据已存在,直接跳转");d.value="step2"},Ot=()=>{ie.value>0?ie.value--:ie.value=pt.value.length-1},ln=()=>{ie.value<pt.value.length-1?ie.value++:ie.value=0},fn=ye=>{ie.value=ye,ze.value&&Me.value[ye]&&(Be.value={...Me.value[ye]})},Cn=ye=>{gt.value=ye,console.log("切换到PPT幻灯片:",ye),Yt(()=>{const se=_p.value;if(se){const Ue=ye*146-se.clientWidth/2+73;se.scrollLeft=Math.max(0,Ue),console.log(`缩略图条已滚动到第${ye+1}页,位置:${Ue}`)}})},sr=ye=>{ye.preventDefault();const se=ye.currentTarget,Ie=ye.deltaY>0?200:-200;se.scrollLeft+=Ie},Kn=()=>{if(console.log("开始加载本地PPT数据"),Re.value&&Re.value.length>0){console.log("使用已生成的PPT数据:",Re.value.length,"张幻灯片"),Me.value=Re.value.map((se,Ie)=>({title:se.data?.title||`第${Ie+1}页`,content:se.data?.text||se.data?.items?.map(Ue=>Ue.title).join(`
- `)||"内容",type:se.type})),po(),ie.value=0,Be.value={...Me.value[0]},Et.success("生成的PPT数据加载成功"),console.log("加载的PPT页数:",Me.value.length);return}console.log("加载默认template5内容");const ye=[{title:"第1页标题",content:"第1页内容",type:"cover"},{title:"第2页标题",content:"第2页内容",type:"content"},{title:"第3页标题",content:"第3页内容",type:"content"},{title:"第4页标题",content:"第4页内容",type:"content"},{title:"第5页标题",content:"第5页内容",type:"content"}];Me.value=ye,po(),ie.value=0,Be.value={...ye[0]},console.log("加载的PPT页数:",ye.length)},Tr=ye=>{const se=ye.target;se.classList.contains("slide-title")?Be.value.title=se.textContent:se.classList.contains("slide-body")&&(Be.value.content=se.textContent),Me.value[ie.value]&&(Me.value[ie.value]={...Be.value}),po()},ar=K(!1),ur=async()=>{if(!ar.value)try{switch(ar.value=!0,w.value=!0,console.log("exportPPTX: 设置 isProcessing = true"),Fe.value){case 0:await ce();break;case 1:await Lr();break;case 2:await yr();break;default:Et.warning("未知的下载选项")}}catch(ye){console.error("导出失败:",ye),Et.error("导出失败,请重试")}finally{ar.value=!1,w.value=!1,console.log("exportPPTX: 重置 isProcessing = false")}},Lr=async()=>{try{console.log("开始生成考试题目..."),g.value=!0,w.value=!0;const ye=`请基于以下安全培训内容生成完整的考试题目:
- 培训主题:${Z.value||"安全培训"}
- 培训内容:
- ${Re.value.map((Ie,Ue)=>{const Ze=Ie.elements?.map(lt=>lt.type==="text"?lt.content.replace(/<[^>]*>/g,""):"").filter(lt=>lt.trim()).join(" ");return`第${Ue+1}页:${Ze}`}).join(`
- `)}
- 请严格按照以下格式生成考试题目:
- 一、单选题(每题4分,共60分)
- 1. 题目内容
- A. 选项A
- B. 选项B
- C. 选项C
- D. 选项D
- 正确答案:X
- 解析:详细解析内容
- 2. 题目内容
- A. 选项A
- B. 选项B
- C. 选项C
- D. 选项D
- 正确答案:X
- 解析:详细解析内容
- 二、多选题(每题4分,共20分)
- 1. 题目内容
- A. 选项A
- B. 选项B
- C. 选项C
- D. 选项D
- 正确答案:AB
- 解析:详细解析内容
- 三、判断题(每题2分,共20分)
- 1. 题目内容
- 正确答案:正确/错误
- 解析:详细解析内容
- 四、简答题(每题10分,共20分)
- 1. 题目内容
- 答题要点:详细答案内容和评分标准
- 2. 题目内容
- 答题要点:详细答案内容和评分标准
- 3. 题目内容
- 答案:详细答案内容和评分标准
- 重要要求:
- 1. 必须严格按照上述格式输出,不能省略任何内容
- 2. 单选题15道(每题2分,共30分),多选题10道(每题3分,共30分),判断题10道(每题2分,共20分),简答题2道(每题10分,共20分)
- 3. 总分控制在100分,不包含填空题
- 4. 题目要全面覆盖培训内容的主要知识点
- 5. 每道题都要包含正确答案和详细解析
- 6. 简答题的答案必须详细具体,不能写"未设置"或"待补充"
- 7. 所有答案都要具体详细,不能省略或留空
- 8. 严格按照示例格式,每道简答题后面必须跟"答题要点:"开头的详细内容
- 9. 简答题答案必须基于题目内容提供具体的知识点和实际应用示例
- 10. 答案内容要丰富详实,至少包含3-5个要点,每个要点都要有具体说明
- 11. 每道简答题的答题要点必须包含:核心概念解释、关键步骤分析、实际应用举例、注意事项说明
- 12. 答题要点内容要具体可操作,不能是空泛的指导性语言
- 13. 必须为每道简答题提供完整的答题要点,不能留空或写"未设置"`,se=await zn.reProduceSingleQuestion({message:ye});if(se&&se.data){console.log("AI返回的数据:",se.data);const Ie=se.data.reply||se.data.content||se.data.message||se.data||"AI生成的内容为空";console.log("AI生成的内容:",Ie),await Ar(Ie,`考试题目-${Z.value||"安全培训"}`),Et.success("考试题目生成成功!")}else throw new Error("AI生成考试题目失败")}catch(ye){console.error("生成考试题目失败:",ye),Et.error("生成考试题目失败: "+ye.message)}finally{g.value=!1,w.value=!1}},yr=async()=>{try{console.log("开始生成培训讲义文档..."),b.value=!0,w.value=!0;const ye=`请基于以下安全培训内容生成培训讲义:
- 培训主题:${Z.value||"安全培训"}
- 培训内容:
- ${Re.value.map((Ie,Ue)=>{const Ze=Ie.elements?.map(lt=>lt.type==="text"?lt.content.replace(/<[^>]*>/g,""):"").filter(lt=>lt.trim()).join(" ");return`第${Ue+1}页:${Ze}`}).join(`
- `)}
- 要求:
- 1. 生成完整的培训讲义,使用Markdown格式
- 2. 包含以下结构:
- - 封面页(标题、副标题、日期)
- - 目录页
- - 各章节内容(使用# ## ###等标题层级)
- - 要点列表(使用- 或 1. 2. 等)
- - 重要概念(使用**粗体**标记)
- - 注意事项(使用> 引用格式)
- - 总结页
- 3. 内容要详细、专业、易懂
- 4. 适合作为培训教材使用
- 5. 使用标准的Markdown语法
- 请生成完整的培训讲义文档,使用规范的Markdown格式。`,se=await zn.reProduceSingleQuestion({message:ye});if(se&&se.data){console.log("AI返回的数据:",se.data);const Ie=se.data.reply||se.data.content||se.data.message||se.data||"AI生成的内容为空";await Ar(Ie,`培训讲义-${Z.value||"安全培训"}`),Et.success("培训讲义生成成功!")}else throw new Error("AI生成培训讲义失败")}catch(ye){console.error("生成培训讲义失败:",ye),Et.error("生成培训讲义失败: "+ye.message)}finally{b.value=!1,w.value=!1}},Ar=async(ye,se)=>{try{console.log("开始生成Word文档,内容:",ye);const Ie=String(ye);console.log("转换后的内容字符串:",Ie);let Ue=Ie.replace(/<[^>]*>/g,"").replace(/颜色[::].*?[,,。]/g,"").replace(/红色|蓝色|绿色|黄色|紫色|橙色|灰色|黑色|白色/g,"").replace(/#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}/g,"").replace(/rgb\([^)]*\)|rgba\([^)]*\)/g,"").replace(/```[\s\S]*?```/g,"").replace(/`[^`]*`/g,"").replace(/^>\s*/gm,"").replace(/\|.*\|/g,"").replace(/^[-:\s|]+$/gm,"").replace(/\n\s*\n\s*\n/g,`
- `);const Ze=we(Ue,se),lt=new Blob([Ze],{type:"application/msword"}),at=URL.createObjectURL(lt),wt=document.createElement("a");wt.setAttribute("href",at),wt.setAttribute("download",`${se}-${new Date().toISOString().split("T")[0]}.doc`),wt.style.visibility="hidden",document.body.appendChild(wt),wt.click(),document.body.removeChild(wt),URL.revokeObjectURL(at),console.log("Word文档已下载")}catch(Ie){console.error("下载Word文档失败:",Ie);const Ue=String(ye),Ze=new Blob([Ue],{type:"text/plain;charset=utf-8"}),lt=window.URL.createObjectURL(Ze),at=document.createElement("a");at.href=lt,at.download=`${se}-${new Date().toISOString().split("T")[0]}.txt`,document.body.appendChild(at),at.click(),document.body.removeChild(at),window.URL.revokeObjectURL(lt),console.log("已降级为文本文件下载")}},we=(ye,se)=>{let Ie=ye.replace(/^# (.*?)$/gm,"<h1>$1</h1>").replace(/^## (.*?)$/gm,"<h2>$1</h2>").replace(/^### (.*?)$/gm,"<h3>$1</h3>").replace(/^#### (.*?)$/gm,"<h4>$1</h4>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/^\- (.*$)/gim,'<div class="list-item">- $1</div>').replace(/^(\d+)\. (.*$)/gim,'<div class="list-item">$1. $2</div>').replace(/\n/g,"<br>");return`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${se||"培训讲义"}</title>
- <style>
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .doc-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- .content {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- color: #000;
- margin: 0;
- padding: 0;
- }
- .header {
- text-align: center;
- margin-bottom: 30px;
- }
- .doc-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 20px;
- color: #333;
- }
- h1 {
- font-size: 20px;
- font-weight: bold;
- margin: 20px 0 15px 0;
- color: #333;
- }
- h2 {
- font-size: 18px;
- font-weight: bold;
- margin: 18px 0 12px 0;
- color: #333;
- }
- h3 {
- font-size: 16px;
- font-weight: bold;
- margin: 15px 0 10px 0;
- color: #333;
- }
- h4 {
- font-size: 14px;
- font-weight: bold;
- margin: 12px 0 8px 0;
- color: #333;
- }
- p {
- margin: 10px 0;
- text-align: justify;
- }
- .list-item {
- margin: 5px 0;
- padding-left: 20px;
- }
- strong {
- font-weight: bold;
- }
- em {
- font-style: italic;
- }
- </style>
- </head>
- <body>
- <div class='header'>
- <div class='doc-title'>${se||"培训讲义"}</div>
- </div>
- <div class='content'>
- ${Ie}
- </div>
- </body>
- </html>
- `},ae=()=>{try{const ye={slides:Re.value,timestamp:Date.now(),title:Z.value||"安全培训演示文稿"};localStorage.setItem("safetyHazardModifiedPPT",JSON.stringify(ye)),console.log("PPT修改已自动保存")}catch(ye){console.error("保存PPT数据失败:",ye)}},ce=async()=>{if(Re.value.length===0){Et.warning("没有可导出的PPT内容,请先生成PPT");return}try{const ye=(await Lf(async()=>{const{default:Ue}=await import("./pptxgen.es-C5rj3hyV.js");return{default:Ue}},__vite__mapDeps([0,1]))).default,se=new ye;se.defineLayout({name:"CUSTOM_16_9",width:10,height:5.625}),se.layout="CUSTOM_16_9",se.author="安全培训系统",se.company="蜀道科技",se.subject="安全培训演示文稿",se.title=Z.value||"安全培训演示文稿";for(let Ue=0;Ue<Re.value.length;Ue++){const Ze=Re.value[Ue];console.log(`正在转换第 ${Ue+1} 页:`,Ze.type),await Ce(se,Ze)}const Ie=`安全培训-${Z.value||"演示文稿"}-${new Date().toISOString().split("T")[0]}.pptx`;await se.writeFile({fileName:Ie}),console.log("PPTX文件已生成并下载"),Et.success(`成功导出PPTX文件!
- 文件名: ${Ie}`)}catch(ye){console.error("导出PPTX失败:",ye),Et.error("导出PPTX失败: "+ye.message)}},Ce=async(ye,se)=>{const Ie=ye.addSlide();if(se.background){if(se.background.type==="solid"){const Ue=Or(se.background.color||"#FFFFFF");Ie.background={color:Ue}}else if(se.background.type==="gradient"&&se.background.gradient){const Ue=se.background.gradient.colors[0]?.color||"#FFFFFF",Ze=Or(Ue);Ie.background={color:Ze}}}for(const Ue of se.elements)await zt(Ie,Ue)},zt=async(ye,se)=>{try{const Ze=se.left/960*10,lt=se.top/540*5.625,at=se.width/960*10,wt=se.height/540*5.625;switch(se.type){case"text":_t(ye,se,Ze,lt,at,wt);break;case"image":await mn(ye,se,Ze,lt,at,wt);break;case"shape":wn(ye,se,Ze,lt,at,wt);break}}catch(Ie){console.warn(`添加元素失败 ${se.type}:`,Ie)}},_t=(ye,se,Ie,Ue,Ze,lt)=>{const at=Pn(se.content),wt=Cr(se.content),mt=wt.color||se.defaultColor||"#000000",T=se.opacity!==void 0?Math.round(se.opacity*100):100;se.content&&se.content.includes("text-align: center")&&console.log(`文本对齐调试 ${se.id||"unknown"}:`,{content:se.content,extractedAlign:wt.align,finalAlign:wt.align||"left"}),ye.addText(at,{x:Ie,y:Ue,w:Ze,h:lt,fontSize:wt.fontSize||16,color:Or(mt),fontFace:se.defaultFontName||"微软雅黑",align:wt.align||"left",valign:"middle",bold:wt.bold||!1,wrap:!0,transparency:100-T,line:null})},mn=async(ye,se,Ie,Ue,Ze,lt)=>{if(!se.src){console.warn("图片元素没有src属性:",se);return}try{const at=se.opacity!==void 0?Math.round(se.opacity*100):100,wt=100-at;if(console.log("处理图片元素:",{id:se.id,srcType:se.src.startsWith("data:image")?"base64":"url",srcLength:se.src.length,opacity:at,transparency:wt}),se.src.startsWith("data:image")){if(console.log("使用base64图片数据"),!se.src.includes(","))throw new Error("Base64数据格式错误:缺少逗号分隔符");const[mt,T]=se.src.split(",");if(!mt||!T)throw new Error("Base64数据格式错误:header或data为空");if(T.length<100)throw new Error("Base64数据过短,可能已损坏");let I=se.src;if(se.src.includes("data:image/svg+xml")){console.log("检测到SVG图像,开始转换为PNG格式");try{I=await Ir(se.src),console.log("SVG转PNG成功,使用转换后的PNG数据")}catch(P){throw console.error("SVG转PNG失败:",P),new Error("SVG图像转换失败: "+P.message)}}try{ye.addImage({data:I,x:Ie,y:Ue,w:Ze,h:lt,transparency:wt,sizing:{type:"cover",w:Ze,h:lt},line:null}),console.log("Base64图片添加成功")}catch(P){console.error("PptxGenJS添加图片失败:",P);try{const $=I.split(",")[1];ye.addImage({data:$,x:Ie,y:Ue,w:Ze,h:lt,transparency:wt,sizing:{type:"cover",w:Ze,h:lt},line:null}),console.log("使用纯base64数据添加成功")}catch($){throw console.error("重试添加图片也失败:",$),P}}}else{console.log("转换URL图片为base64:",se.src);const mt=await qo(se.src);ye.addImage({data:mt,x:Ie,y:Ue,w:Ze,h:lt,transparency:wt,sizing:{type:"cover",w:Ze,h:lt},line:null}),console.log("URL图片转换并添加成功")}}catch(at){console.error("添加图片失败:",at),console.error("图片元素详情:",se),ye.addText(`图片加载失败: ${at.message}`,{x:Ie,y:Ue,w:Ze,h:lt,fontSize:10,color:"FF0000",align:"center",valign:"middle",bold:!0})}},wn=(ye,se,Ie,Ue,Ze,lt)=>{const at=se.fill||se.color||"#007bff";let wt=0;if(at.startsWith("rgba(")){const T=at.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/);if(T){const I=parseFloat(T[4]);wt=Math.round((1-I)*100)}}else se.opacity!==void 0&&(wt=100-Math.round(se.opacity*100));const mt=Or(at);se.id&&se.id.includes("overlay")&&console.log(`Overlay元素调试 ${se.id}:`,{originalFill:se.fill,fillColor:at,convertedColor:mt,opacity:se.opacity,transparency:wt,alphaFromRgba:at.startsWith("rgba(")?parseFloat(at.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/)?.[4]||"1"):null}),ye.addShape("rect",{x:Ie,y:Ue,w:Ze,h:lt,fill:{type:"solid",color:mt,transparency:wt},line:null})},Pn=ye=>{if(!ye)return"";const se=document.createElement("div");return se.innerHTML=ye,se.textContent||se.innerText||""},Cr=ye=>{if(!ye)return{};const se={},Ie=ye.match(/font-size:\s*(\d+)px/);if(Ie){const Ze=parseInt(Ie[1]),lt=1105/960,at=.7;se.fontSize=Math.round(Ze/lt*at),console.log(`字体大小转换: 预览${Ze}px -> 导出${se.fontSize}px (缩放因子: ${lt.toFixed(3)}, 额外缩放: ${at})`)}const Ue=ye.match(/color:\s*(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\([^)]+\)|rgba\([^)]+\))/);return Ue&&(se.color=Ue[1]),ye.includes("text-align: center")?se.align="center":ye.includes("text-align: right")?se.align="right":se.align="left",(ye.includes("<strong>")||ye.includes("<b>"))&&(se.bold=!0),se},Ir=ye=>new Promise((se,Ie)=>{try{const Ue=new Image;Ue.onload=()=>{try{const Ze=document.createElement("canvas"),lt=Ze.getContext("2d");Ze.width=Ue.width||960,Ze.height=Ue.height||540,lt.imageSmoothingEnabled=!0,lt.imageSmoothingQuality="high",lt.drawImage(Ue,0,0,Ze.width,Ze.height);const at=Ze.toDataURL("image/png",1);console.log("SVG转PNG成功:",{originalSvgLength:ye.length,pngDataUrlLength:at.length,canvasSize:`${Ze.width}x${Ze.height}`}),se(at)}catch(Ze){console.error("Canvas转换失败:",Ze),Ie(new Error("SVG转PNG失败: "+Ze.message))}},Ue.onerror=Ze=>{console.error("SVG图像加载失败:",Ze),Ie(new Error("SVG图像加载失败"))},Ue.src=ye}catch(Ue){console.error("SVG转换初始化失败:",Ue),Ie(new Error("SVG转换初始化失败: "+Ue.message))}}),qo=ye=>new Promise((se,Ie)=>{const Ue=new Image;Ue.crossOrigin="anonymous",Ue.onload=()=>{const Ze=document.createElement("canvas"),lt=Ze.getContext("2d");Ze.width=Ue.width,Ze.height=Ue.height,lt.drawImage(Ue,0,0);try{const at=Ze.toDataURL("image/png");se(at)}catch(at){Ie(at)}},Ue.onerror=()=>{Ie(new Error("图片加载失败"))},Ue.src=ye}),Or=ye=>{if(!ye)return"FFFFFF";if(/^[0-9A-Fa-f]{6}$/.test(ye))return ye.toUpperCase();if(ye.startsWith("#")){const lt=ye.substring(1);if(lt.length===3)return(lt[0]+lt[0]+lt[1]+lt[1]+lt[2]+lt[2]).toUpperCase();if(lt.length===6)return lt.toUpperCase()}const se=ye.match(/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/);if(se){const lt=parseInt(se[1]).toString(16).padStart(2,"0"),at=parseInt(se[2]).toString(16).padStart(2,"0"),wt=parseInt(se[3]).toString(16).padStart(2,"0");return(lt+at+wt).toUpperCase()}const Ie=ye.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*[\d.]+\s*\)/);if(Ie){const lt=parseInt(Ie[1]).toString(16).padStart(2,"0"),at=parseInt(Ie[2]).toString(16).padStart(2,"0"),wt=parseInt(Ie[3]).toString(16).padStart(2,"0");return(lt+at+wt).toUpperCase()}const Ue={white:"FFFFFF",black:"000000",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",orange:"FFA500",purple:"800080",pink:"FFC0CB",gray:"808080",grey:"808080"},Ze=ye.toLowerCase();return Ue[Ze]?Ue[Ze]:(console.warn(`无法识别的颜色格式: ${ye},使用默认黑色`),"000000")},po=()=>{const ye=Re.value&&Re.value.length>0?Re.value:Me.value;if(!ye||ye.length===0){pt.value=[oh,gg,vg,mg,yg],console.log("PPT内容为空,使用默认template5图片,共",pt.value.length,"张");return}pt.value=ye.map((se,Ie)=>{if(Qt.value==="red"){const Ze=[dS,PB,NB,RB,BB];return console.log(`幻灯片 ${Ie+1} 类型: ${se.type||"content"}, ID: ${se.id}`),Ze[Ie%5]}if(Qt.value==="blueTech"){const Ze=[LB,FB,UB,zB,$B];return console.log(`幻灯片 ${Ie+1} 类型: ${se.type||"content"}, ID: ${se.id}`),Ze[Ie%5]}return[oh,gg,vg,mg,yg][Ie%5]}),console.log("缩略图更新完成,共",pt.value.length,"页")},lo=(ye,se)=>{let Ie="";if(se==="redElegant"||se==="red")Ie="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0911_1757633045.png";else if(se==="blueTech")Ie="http://172.16.17.52:8060/gdsc-ai-aqzs/images/2025/0911_1757633045.png";else{const Ue=[oh,gg,vg,mg,yg];switch(ye){case"cover":return oh;case"contents":return gg;case"transition":return vg;case"content":return mg;case"end":return yg;default:return Ue[0]}}return Ie},Go=()=>{if(!Re.value||Re.value.length===0){Qt.value==="redElegant"||Qt.value==="red"?pt.value=[dS,PB,NB,RB,BB]:Qt.value==="blueTech"?pt.value=[LB,FB,UB,zB,$B]:pt.value=[oh,gg,vg,mg,yg],pt.value=[...pt.value],console.log("动态模板内容为空,使用风格化图片,共",pt.value.length,"张"),console.log("当前风格:",Qt.value),console.log("更新后的缩略图数组:",pt.value);return}pt.value=Re.value.map((ye,se)=>{if(Qt.value==="redElegant"||Qt.value==="red"){const Ie=[dS,PB,NB,RB,BB];return console.log(`动态模板幻灯片 ${se+1} 类型: ${ye.type||"content"}, ID: ${ye.id}`),Ie[se%5]}if(Qt.value==="blueTech"){const Ie=[LB,FB,UB,zB,$B];return console.log(`动态模板幻灯片 ${se+1} 类型: ${ye.type||"content"}, ID: ${ye.id}`),Ie[se%5]}return lo(ye.type,Qt.value)}),pt.value=[...pt.value],console.log("动态模板缩略图更新完成,共",pt.value.length,"页")},Pi=async ye=>{ue.value=ye;const se=Dt.value[ye];if(console.log("选择模板:",se.title),se.style&&(Qt.value=se.style,console.log("设置模板风格:",se.style)),se.type==="dynamic"){if(dt.value=!0,Re.value&&Re.value.length>0?(Go(),console.log("缩略图已更新为",se.style,"风格")):(console.log("准备更新缩略图,当前风格:",Qt.value),Go(),console.log("缩略图已更新为",se.style,"风格(无PPT数据)"),console.log("最终缩略图数组:",pt.value)),Yt(()=>{pt.value=[...pt.value],console.log("强制更新缩略图完成")}),X.value&&X.value.length>0)try{const Ie=v0e(X.value,Z.value);Ie.success?(it.value=Ie.preview,de.value=Ie.preview,console.log("动态模板预览生成成功:",it.value)):(console.error("动态模板预览生成失败:",Ie.error),Et.error("动态模板预览生成失败: "+Ie.error))}catch(Ie){console.error("动态模板预览生成异常:",Ie),Et.error("动态模板预览生成异常: "+Ie.message)}}else if(dt.value=!1,it.value=null,de.value=null,se.type==="static"&&se.templateData&&(console.log("选择静态模板:",se.title,"等待用户点击应用模板"),console.log("准备更新静态模板缩略图,当前风格:",Qt.value),po(),console.log("静态模板缩略图已更新为",se.style,"风格"),X.value&&X.value.length>0))try{const Ie=v0e(X.value,Z.value);Ie.success?(it.value=Ie.preview,de.value=Ie.preview,console.log("Template7预览生成成功:",it.value)):console.error("Template7预览生成失败:",Ie.error)}catch(Ie){console.error("Template7预览生成异常:",Ie)}},uo=async()=>{console.log("应用模板:",Dt.value[ue.value].title),y.value=!0,w.value=!0;try{if(dt.value){console.log("使用动态模板生成PPT...");let ye,se,Ie;if(X.value&&X.value.length>0)ye=await ke(X.value),se=Z.value||"用户生成的大纲",Ie=`${ye.length}章节结构演示`,console.log("使用用户大纲数据:",se,`共${ye.length}个章节`),console.log("转换后的用户大纲数据结构:",JSON.stringify(ye,null,2));else if(Ut.value!==null&&Ut.value!==void 0){const at=vt.value[Ut.value];ye=at.data,se=at.title,Ie=at.description,console.log("使用mock数据:",at.title,at.description)}else ye=vt.value[0].data,se=vt.value[0].title,Ie=vt.value[0].description,console.log("使用默认测试数据:",vt.value[0].title);const Ue=await HYt(ye,se,Qt.value);if(console.log("生成的动态模板结果:",Ue),!Ue.success)throw new Error(Ue.error||"动态模板生成失败");const Ze=Ue.data.template;if(console.log("提取的模板数据:",Ze),!Array.isArray(Ze))throw console.error("模板数据不是数组格式:",typeof Ze,Ze),new Error("模板数据格式不正确,期望数组但得到: "+typeof Ze);ze.value=!0,gt.value=0,Ne.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await tt(Ze,ye,se),console.log("动态模板应用完成,共",Re.value.length,"张幻灯片"),Ue.warnings&&Ue.warnings.length>0&&Et.warning("模板应用成功,但有以下建议: "+Ue.warnings.join(", ")),Ue.recommendations&&Ue.recommendations.length>0&&console.log("优化建议:",Ue.recommendations),Go();const lt=X.value&&X.value.length>0?`动态模板应用完成!使用用户大纲数据 (${ye.length}个章节)`:`动态模板应用完成!使用数据: ${se} (${Ie})`;Et.success(lt),Re.value&&Re.value.length>0&&(localStorage.setItem("generatedPPT",JSON.stringify(Re.value)),console.log("动态模板PPT数据已保存到本地存储:",Re.value.length,"张幻灯片")),ze.value=!0,await yn(!0,!0),await Nt(),wr.value.forEach(at=>{at.isActive=at.id===r.value}),Yt(()=>{const at=_p.value;at&&(at.scrollLeft=0)})}else{console.log("使用静态模板生成PPT...");const ye=Dt.value[ue.value];if(console.log("检查模板数据:",{title:ye.title,type:ye.type,hasTemplateData:!!ye.templateData,templateDataLength:ye.templateData?.length}),ye.type==="static"&&ye.templateData){if(ye.title==="红色主题PPT"){console.log("应用Template7红色主题模板:",ye.title);try{if(X.value&&X.value.length>0){console.log("开始基于template_7.json生成动态多页结构..."),b.value=!0;const Ie=I9(X.value,Z.value);ze.value=!0,gt.value=0,Ne.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await tt(Ie,X.value,Z.value),b.value=!1,console.log("Template7动态多页结构生成完成,共",Re.value.length,"页")}else{const Ie=JSON.parse(JSON.stringify(ye.templateData));ze.value=!0,gt.value=0,Ne.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await tt(Ie,[],Z.value||"默认标题"),console.log("Template7默认模板加载成功,共",Re.value.length,"页")}Go();const se=X.value&&X.value.length>0?`红色主题模板应用完成!使用用户大纲数据 (${X.value.length}个章节)`:"红色主题模板应用完成!使用默认内容";Et.success(se),Re.value&&Re.value.length>0&&(localStorage.setItem("generatedPPT",JSON.stringify(Re.value)),console.log("Template7静态模板PPT数据已保存到本地存储:",Re.value.length,"张幻灯片")),ze.value=!0,gt.value=0,await yn(!0,!0),await Nt(),wr.value.forEach(Ie=>{Ie.isActive=Ie.id===r.value}),Yt(()=>{const Ie=_p.value;Ie&&(Ie.scrollLeft=0)})}catch(se){console.error("应用Template7静态模板失败:",se),Et.error("应用Template7静态模板失败: "+se.message)}}if(ye.title==="蓝色科技主题PPT"){console.log("应用Template8蓝色科技主题模板:",ye.title);try{if(X.value&&X.value.length>0){console.log("开始基于template_8.json生成动态多页结构..."),b.value=!0;const Ie=D9(X.value,Z.value);ze.value=!0,gt.value=0,Ne.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await tt(Ie,X.value,Z.value),b.value=!1,console.log("Template8动态多页结构生成完成,共",Re.value.length,"页")}else{const Ie=JSON.parse(JSON.stringify(ye.templateData));ze.value=!0,gt.value=0,Ne.value=!0,console.log("已启用PPT预览模式,开始逐页生成效果..."),await tt(Ie,[],Z.value||"默认标题"),console.log("Template8默认模板加载成功,共",Re.value.length,"页")}Go();const se=X.value&&X.value.length>0?`蓝色科技主题模板应用完成!使用用户大纲数据 (${X.value.length}个章节)`:"蓝色科技主题模板应用完成!使用默认内容";Et.success(se),Re.value&&Re.value.length>0&&(localStorage.setItem("generatedPPT",JSON.stringify(Re.value)),console.log("Template8静态模板PPT数据已保存到本地存储:",Re.value.length,"张幻灯片"))}catch(se){b.value=!1,console.error("应用Template8静态模板失败:",se),Et.error("应用Template8静态模板失败: "+se.message)}}}else if(X.value&&X.value.length>0){console.log("开始生成PPT数据...");const se=A2(X.value,Z.value);console.log("生成的AIPPT数据:",se);const Ie=await mi(se,Z.value);console.log("AI填充后的AIPPT数据:",Ie),await C2(Ie,!0),console.log("模板应用完成,PPT数据已加载"),await Yt(),Re.value&&Re.value.length>0&&(localStorage.setItem("generatedPPT",JSON.stringify(Re.value)),console.log("PPT数据已保存到本地存储:",Re.value.length,"张幻灯片")),Et.success("模板应用完成,内容已填充!"),await Nt(),wr.value.forEach(Ue=>{Ue.isActive=Ue.id===r.value}),ze.value=!0,Yt(()=>{const Ue=_p.value;Ue&&(Ue.scrollLeft=0,console.log("缩略图条已滚动到第一页"))})}else await C2(),Et.success("模板应用完成!"),ze.value=!0}}catch(ye){console.error("应用模板失败:",ye),Et.error("应用模板失败: "+ye.message)}finally{y.value=!1,w.value=!1}},Bo=()=>{const ye=Re.value[gt.value]||null;return console.log("获取当前PPT幻灯片:",ye),console.log("当前索引:",gt.value),console.log("总幻灯片数:",Re.value.length),ye},Al=()=>{const ye=Re.value[gt.value]||null;if(!ye)return null;if(b.value&&ye.elements){const se=JSON.parse(JSON.stringify(ye));return se.elements=se.elements.map(Ie=>({...Ie,content:Ie.textType==="itemContent"&&Ie.content&&Ie.content.includes("待AI填充")?`<p style="text-align: center;"><span style="font-size: 16px; color: ${Ie.defaultColor};">正在生成...</span></p>`:Ie.content})),se}return ye},Xs=()=>{const ye=Al();if(!ye)return"#ffffff";if(ye.background?.type==="gradient"){const se=ye.background.gradient;if(se.type==="linear")return`linear-gradient(135deg, ${se.colors.map(Ue=>`${Ue.color} ${Ue.pos}%`).join(", ")})`;if(se.type==="radial")return`radial-gradient(circle, ${se.colors.map(Ue=>`${Ue.color} ${Ue.pos}%`).join(", ")})`}return ye.background?.color||"#667eea"},_m=ye=>{if(!ye)return"#667eea";if(ye.background){if(ye.background.type==="gradient"){const se=ye.background.gradient;if(se.type==="linear")return`linear-gradient(135deg, ${se.colors.map(Ue=>`${Ue.color} ${Ue.pos}%`).join(", ")})`;if(se.type==="radial")return`radial-gradient(circle, ${se.colors.map(Ue=>`${Ue.color} ${Ue.pos}%`).join(", ")})`}else if(ye.background.color)return ye.background.color}return ye.elements&&ye.elements.length>0&&ye.elements.find(Ie=>Ie.type==="shape"&&Ie.fill==="#ffffff"||Ie.type==="shape"&&Ie.fill==="white")?"#ffffff":"#667eea"},b2=ye=>{const Ue=parseFloat(getComputedStyle(document.documentElement).fontSize)/192,Ze=1105*Ue/960,lt=603*Ue/540,at={position:"absolute",left:(ye.left||ye.x||0)*Ze+"px",top:(ye.top||ye.y||0)*lt+"px",width:(ye.width||100)*Ze+"px",height:(ye.height||50)*lt+"px",zIndex:ye.zIndex||1};if(ye.defaultColor&&(at.color=ye.defaultColor),ye.defaultFontName&&(at.fontFamily=ye.defaultFontName),ye.opacity!==void 0&&(at.opacity=ye.opacity),ye.type==="shape"&&ye.fill&&(at.backgroundColor=ye.fill,at.borderRadius=ye.viewBox?"8px":"0"),ye.type==="text"&&ye.content){const wt=ye.content.match(/text-align:\s*([^;]+)/);wt&&(at.textAlign=wt[1].trim()),ye.textType==="item"&&ye.content.includes("目录项")&&(at.textAlign="center")}return at},q0=()=>{Re.value.length>0&&(Re.value=[...Re.value])};qn(()=>{window.addEventListener("resize",q0)}),yl(()=>{window.removeEventListener("resize",q0)});const XC=ye=>{const Ue=parseFloat(getComputedStyle(document.documentElement).fontSize)/192,Ze=1105*Ue,lt=603*Ue,at=960,wt=540,mt=Ze/at,T=lt/wt;return{position:"absolute",left:(ye.left||ye.x)*mt+"px",top:(ye.top||ye.y)*T+"px",width:ye.width*mt+"px",height:ye.height*T+"px",zIndex:ye.zIndex||1}},h9=ye=>({text:"文本",image:"图片",shape:"形状"})[ye]||ye,g9=ye=>({width:"100%",height:"100%",backgroundColor:ye.fill,borderRadius:ye.viewBox?"8px":"0",opacity:ye.opacity||1}),w2=ye=>{Bt.value=ye,console.log("选中PPT元素:",ye)},v9=ye=>{console.log("PPT预览模式下不允许文字编辑"),Et.info("PPT预览模式下不允许编辑文字,只能更换图片")},m9=ye=>{an.value=ye.target.innerHTML},y9=ye=>{const se=Bo();se.elements[ye]&&(se.elements[ye].content=an.value,console.log("文本编辑保存成功"),Et.success("文本编辑已保存"),ae()),Lt.value=-1,an.value="",console.log("保存PPT元素编辑:",ye)},JC=(ye,se)=>{if(ye.detail>=2)return;const Ue=Bo().elements[se];if(Ue.type==="text"){console.log("PPT预览模式下,文字元素不允许拖拽");return}if(Lt.value===se&&Ue.type==="text"&&an.value!=="")return;Bt.value!==se&&w2(se);const Ze=ye.clientX,lt=ye.clientY,at=Ue.left,wt=Ue.top,mt=I=>{const P=I.clientX-Ze,$=I.clientY-lt;Ue.left=at+P,Ue.top=wt+$},T=()=>{document.removeEventListener("mousemove",mt),document.removeEventListener("mouseup",T),ae(),console.log("拖拽完成,已自动保存")};document.addEventListener("mousemove",mt),document.addEventListener("mouseup",T),ye.preventDefault()},Dm=(ye,se,Ie)=>{Bt.value!==se&&w2(se);const Ze=Bo().elements[se];if(Ze.type==="text"){console.log("PPT预览模式下,文字元素不允许调整大小");return}const lt=ye.clientX,at=ye.clientY,wt=Ze.width,mt=Ze.height,T=Ze.left,I=Ze.top,P=V=>{const J=V.clientX-lt,Te=V.clientY-at;switch(Ie){case"se":Ze.width=Math.max(20,wt+J),Ze.height=Math.max(20,mt+Te);break;case"sw":Ze.width=Math.max(20,wt-J),Ze.height=Math.max(20,mt+Te),Ze.left=T+(wt-Ze.width);break;case"ne":Ze.width=Math.max(20,wt+J),Ze.height=Math.max(20,mt-Te),Ze.top=I+(mt-Ze.height);break;case"nw":Ze.width=Math.max(20,wt-J),Ze.height=Math.max(20,mt-Te),Ze.left=T+(wt-Ze.width),Ze.top=I+(mt-Ze.height);break}},$=()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",$),ae(),console.log("缩放完成,已自动保存")};document.addEventListener("mousemove",P),document.addEventListener("mouseup",$),ye.preventDefault()},b9=(ye,se=null,Ie=null)=>new Promise((Ue,Ze)=>{const lt=new FileReader;lt.onload=()=>{const at=new Image;at.onload=()=>{try{const wt=document.createElement("canvas"),mt=wt.getContext("2d");let T,I;if(se&&Ie?(T=se,I=Ie):(T=at.width,I=at.height),wt.width=T,wt.height=I,mt.imageSmoothingEnabled=!0,mt.imageSmoothingQuality="high",se&&Ie){const $=at.width/at.height,V=se/Ie;let J,Te,Xe,st;$>V?(Te=at.height,J=at.height*V,Xe=(at.width-J)/2,st=0):(J=at.width,Te=at.width/V,Xe=0,st=(at.height-Te)/2),mt.drawImage(at,Xe,st,J,Te,0,0,T,I)}else mt.drawImage(at,0,0);const P=wt.toDataURL("image/png",1);console.log("高质量图片转换成功:",{fileName:ye.name,fileSize:ye.size,originalSize:`${at.width}x${at.height}`,canvasSize:`${T}x${I}`,targetSize:se&&Ie?`${se}x${Ie}`:"none",base64Length:P.length,format:"PNG"}),Ue(P)}catch(wt){console.error("Canvas转换失败,使用原始方法:",wt),Ue(lt.result)}},at.onerror=()=>{console.error("图片加载失败,使用原始方法"),Ue(lt.result)},at.src=lt.result},lt.onerror=()=>{Ze(new Error("图片读取失败: "+lt.error?.message))},lt.readAsDataURL(ye)}),ex=async ye=>{console.log("更换PPT图片被触发,索引:",ye);const se=document.createElement("input");se.type="file",se.accept="image/*",se.onchange=async Ie=>{const Ue=Ie.target.files[0];if(Ue)try{if(Ue.size>5242880){Et.error("图片大小不能超过5MB");return}Et.info("正在处理图片...");const at=Bo().elements[ye],wt=at.width,mt=at.height;console.log("图片目标尺寸:",{targetWidth:wt,targetHeight:mt});const T=await b9(Ue,wt,mt);if(console.log("图片转换为高质量base64成功,长度:",T.length),console.log("Base64数据预览:",T.substring(0,100)+"..."),at&&at.type==="image"){at.src=T,console.log("图片更换成功,使用base64数据"),Et.success("图片更换成功"),ae();try{console.log("开始保存图片更换后的PPT数据到后端..."),await yn(!1),console.log("图片更换后的PPT数据已保存到后端");const I=wr.value.find(P=>P.id===r.value);I&&(I.ppt_json_content=JSON.stringify(Re.value),console.log("已更新历史记录列表中的PPT数据"))}catch(I){console.error("保存图片更换后的PPT数据失败:",I),Et.warning("图片更换成功,但保存到后端失败")}}}catch(Ze){console.error("图片处理过程中发生错误:",Ze),Et.error("图片处理失败: "+Ze.message)}},se.click()},w9=ye=>{const se=ye.target.files[0];if(!se)return;if(!se.type.startsWith("image/")){Et.warning("请选择图片文件"),ye.target.value="";return}const Ie=5*1024*1024;if(se.size>Ie){Et.warning("图片大小不能超过5MB"),ye.target.value="";return}try{const Ue=URL.createObjectURL(se);if(Ht.value!==null&&Re.value.length>0){const Ze=Bo();Ze&&Ze.elements[Ht.value]&&(Ze.elements[Ht.value].src=Ue,console.log("图片已更换:",Ue),Et.success("图片更换成功"))}Ht.value=null}catch(Ue){console.error("图片更换失败:",Ue),Et.error("图片更换失败,请重试")}finally{ye.target.value=""}},A2=(ye,se)=>{try{console.log("开始转换大纲为AIPPT.json格式"),console.log("输入大纲数据:",ye),console.log("标题:",se);const Ie=[];Ie.push({type:"cover",data:{title:se||"安全培训大纲",text:"基于AI生成的培训大纲,包含相关内容"}}),console.log("已添加封面页");const Ue=ye.map((lt,at)=>lt.title);console.log("目录项:",Ue),Ie.push({type:"contents",data:{items:Ue}}),console.log("已添加目录页"),ye.forEach((lt,at)=>{if(console.log(`处理章节 ${at+1}:`,lt.title),console.log("章节内容:",lt),Ie.push({type:"transition",data:{title:lt.title,text:lt.content||`本章将介绍${lt.title}的相关内容`}}),console.log(`已添加章节 ${at+1} 的过渡页`),lt.sections&<.sections.length>0)lt.sections.forEach((wt,mt)=>{console.log(`处理小节 ${mt+1}:`,wt.title),console.log("小节内容:",wt);let T=[];for(wt.subsections&&wt.subsections.length>0?wt.subsections.forEach((I,P)=>{T.push({title:"",text:""})}):T.push({title:"",text:""});T.length<4;)T.push({title:"",text:""});T=T.slice(0,4),Ie.push({type:"content",data:{title:wt.title,items:T}}),console.log(`已添加小节 ${mt+1} 的内容页`)});else{const wt=[{title:"",text:""},{title:"",text:""},{title:"",text:""},{title:"",text:""}];Ie.push({type:"content",data:{title:lt.title,items:wt}}),console.log(`已添加章节 ${at+1} 的空内容页`)}}),Ie.push({type:"end"}),console.log("转换完成,生成的AIPPT.json格式数据:"),console.log(JSON.stringify(Ie,null,2));const Ze={};return Ie.forEach(lt=>{Ze[lt.type]=(Ze[lt.type]||0)+1}),console.log("幻灯片类型统计:",Ze),console.log("总幻灯片数量:",Ie.length),Ie}catch(Ie){return console.error("转换大纲为AIPPT.json格式失败:",Ie),[]}},C2=async(ye=null,se=!1)=>{try{console.log("开始加载template5数据..."),console.log("template5.json数据加载成功:",h0e);let Ie;ye?(Ie=ye,console.log("使用传入的AIPPT数据:",Ie)):X.value&&X.value.length>0?(Ie=A2(X.value,Z.value),console.log("根据大纲生成的AIPPT数据:",Ie)):(Ie=FYt,console.log("加载默认AIPPT.json数据:",Ie));const Ue=Ie.map((Ze,lt)=>{const at=h0e.find(wt=>wt.type===Ze.type);if(at){const wt=JSON.parse(JSON.stringify(at));switch(wt.id=`generated-slide-${lt}`,Ze.type){case"cover":wt.elements.forEach(mt=>{mt.textType==="title"?mt.content=`<p style="text-align: center;"><strong><span style="font-size: 48px; color: ${mt.defaultColor}; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);">${Ze.data.title}</span></strong></p>`:mt.textType==="content"&&(mt.content=`<p style="text-align: center;"><span style="font-size: 24px; color: ${mt.defaultColor};">${Ze.data.text}</span></p>`)});break;case"contents":if(Ze.data.items){let mt=0;wt.elements.forEach(T=>{if(T.textType==="item"&&mt<Ze.data.items.length){const I=Ze.data.items[mt];T.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${T.defaultColor};">${mt+1}. ${I}</span></p>`,mt++}})}break;case"content":if(wt.elements.forEach(mt=>{mt.textType==="title"&&(mt.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: ${mt.defaultColor};">${Ze.data.title}</span></strong></p>`)}),Ze.data.items&&Array.isArray(Ze.data.items)){let mt=0;wt.elements.forEach(T=>{if(T.textType==="itemTitle"&&mt<Ze.data.items.length){const I=Ze.data.items[mt];T.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: ${T.defaultColor};">${I.title}</span></strong></p>`}else if(T.textType==="itemContent"&&mt<Ze.data.items.length){const I=Ze.data.items[mt];T.content=`<p style="text-align: center;"><span style="font-size: 14px; color: ${T.defaultColor};">${I.text}</span></p>`,mt++}})}break;case"transition":wt.elements.forEach(mt=>{mt.textType==="title"?mt.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: ${mt.defaultColor};">${Ze.data.title}</span></strong></p>`:mt.textType==="content"&&(mt.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${mt.defaultColor};">${Ze.data.text}</span></p>`)});break;case"end":wt.elements.forEach(mt=>{mt.textType==="title"?mt.content=`<p style="text-align: center;"><strong><span style="font-size: 40px; color: ${mt.defaultColor};">谢谢聆听</span></strong></p>`:mt.textType==="content"&&(mt.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${mt.defaultColor};">感谢您的时间与关注</span></p>`)});break}return wt}else return console.warn(`未找到类型为 ${Ze.type} 的模板,使用默认模板`),{id:`generated-slide-${lt}`,type:Ze.type,elements:[{id:`title-${lt}`,type:"text",content:`<h1 style="text-align: center; font-size: 48px; color: #1F2937;">${Ze.data.title||"标题"}</h1>`,left:100,top:150,width:760,height:100,defaultColor:"#1F2937",defaultFontName:"Arial",zIndex:1}],background:{color:"#ffffff"}}});return Re.value=Ue,console.log("已设置生成的PPT数据:",Re.value.length,"张幻灯片"),Ne.value=!0,gt.value=0,console.log("AIPPT数据与template5模板结合完成:",Re.value),console.log("PPT预览模式已启用:",Ne.value),console.log("当前PPT幻灯片索引:",gt.value),console.log("生成的PPT数据长度:",Re.value.length),await Yt(),console.log("Vue响应式更新完成"),se?(console.log("需要保存步骤信息到后端"),await yn(!0,!0)):console.log("跳过保存步骤信息,仅加载PPT数据"),Promise.resolve()}catch(Ie){return console.error("加载AIPPT.json或template5.json失败:",Ie),A9(),Promise.reject(Ie)}},A9=()=>{Re.value=[{id:"slide-1",background:"#ffffff",elements:[{id:"title-1",type:"text",textType:"title",content:'<p style="text-align: center;"><strong><span style="font-size: 48px; color: #1F2937;">犯罪心理学研究</span></strong></p>',x:100,y:100,width:600,height:100,defaultColor:"#1F2937",defaultFontName:"Arial",zIndex:1},{id:"content-1",type:"text",textType:"content",content:'<p style="text-align: center;"><span style="font-size: 20px; color: #6B7280;">探索犯罪心理的成因、特征及干预策略</span></p>',x:100,y:250,width:600,height:50,defaultColor:"#6B7280",defaultFontName:"Arial",zIndex:1}]}],Ne.value=!0,gt.value=0,console.log("默认PPT数据生成完成:",Re.value)},C9=ye=>{Fe.value=ye,console.log("选择下载选项:",Gt.value[ye].title)},x9=()=>{ze.value=!1,Fe.value=0,Re.value=[],gt.value=0,Bt.value=-1,Lt.value=-1,an.value="",Kt.value=1,Ht.value=null,ie.value=0,Kn(),po(),console.log("已回到模板选择页面,PPT预览状态已清理,模板预览已重新加载")},tx=ye=>{if(!ye)return ye;console.log("原始AI回复:",ye),console.log("原始文本长度:",ye.length),console.log("原始文本字符码:",Array.from(ye).map(se=>se.charCodeAt(0)));try{if(ye.includes("%")){const se=decodeURIComponent(ye);return console.log("URL解码后:",se),se}if(ye.includes("??")){const se=ye.replace(/\?\?/g,"");return console.log("清理问号后:",se),se}if(ye.includes("\\u")){const se=ye.replace(/\\u[\dA-F]{4}/gi,Ie=>String.fromCharCode(parseInt(Ie.replace(/\\u/g,""),16)));return console.log("Unicode解码后:",se),se}if(ye.includes("&")){const se=document.createElement("textarea");se.innerHTML=ye;const Ie=se.value;return console.log("HTML解码后:",Ie),Ie}return console.log("无需特殊处理,直接返回"),ye}catch(se){return console.warn("字符编码处理失败:",se),ye}},S9=ye=>{if(!ye)return ye;const se={br:{},strong:{},em:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},ul:{},li:{},code:{}},Ie=document.createElement("div");Ie.innerHTML=ye;const Ue=lt=>{if(lt.nodeType===Node.TEXT_NODE)return lt.textContent;if(lt.nodeType===Node.ELEMENT_NODE){const at=lt.tagName.toLowerCase();if(se[at]){const wt=document.createElement(at);for(let mt of lt.childNodes){const T=Ue(mt);T&&(typeof T=="string"?wt.appendChild(document.createTextNode(T)):wt.appendChild(T))}return wt.outerHTML}else{let wt="";for(let mt of lt.childNodes)wt+=Ue(mt)||"";return wt}}return""};let Ze="";for(let lt of Ie.childNodes)Ze+=Ue(lt)||"";return Ze},nx=ye=>{if(!ye)return ye;console.log("开始转换Markdown:",ye);let se=ye;se=se.replace(/<\/?[^>]*>/g,""),console.log("清理HTML标签后:",se),se=se.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>"),se=se.replace(/\*(.*?)\*/g,"<em>$1</em>"),se=se.replace(/^#{1,6}\s*(.+?)$/gm,(Ue,Ze)=>{console.log("标题匹配:",Ue,"内容:",Ze);const lt=(Ue.match(/#/g)||[]).length,at=Math.min(lt,6),wt=`<h${at}>${Ze.trim()}</h${at}>`;return console.log("标题转换结果:",wt),wt}),se=se.replace(/^- (.*?)$/gm,(Ue,Ze)=>Ue.startsWith(" - ")||Ue.startsWith(" - ")?" "+Ze:" "+Ze),se=se.replace(/^\d+\. (.*?)$/gm,(Ue,Ze)=>Ue.startsWith(" ")||Ue.startsWith(" ")?" "+Ze:" "+Ze),se=se.replace(/\n/g,"<br>"),se=se.replace(/<br>#{1,6}\s*(.+?)(?=<br>|$)/g,(Ue,Ze)=>{console.log("<br>标签后标题匹配:",Ue,"内容:",Ze);const lt=(Ue.match(/#/g)||[]).length,at=Math.min(lt,6),wt=`<br><h${at}>${Ze.trim()}</h${at}>`;return console.log("<br>标签后标题转换结果:",wt),wt}),se=se.replace(/```(.*?)```/gs,"<code>$1</code>"),se=se.replace(/`(.*?)`/g,"<code>$1</code>"),se=se.replace(/<\/?[^>]*$/g,""),console.log("Markdown转换后:",se);const Ie=S9(se);return console.log("最终清理后:",Ie),Ie},E9=async ye=>{try{if(navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext)try{await navigator.clipboard.writeText(ye),Et.success("复制成功!");return}catch(Ie){console.warn("Clipboard API 失败,使用降级方案:",Ie)}const se=document.createElement("textarea");se.value=ye,se.style.position="fixed",se.style.left="-999999px",se.style.top="-999999px",document.body.appendChild(se),se.focus(),se.select();try{if(document.execCommand("copy"))Et.success("复制成功!");else throw new Error("execCommand 复制失败")}catch(Ie){console.error("传统复制方法也失败:",Ie),Et.error("复制失败,请手动选择文本复制")}finally{document.body.removeChild(se)}}catch(se){console.error("复制失败:",se),Et.error("复制失败,请手动选择文本复制")}},k9=ye=>{E9(ye.content)},rx=K(null),T9=K(null),_p=K(null),_9=()=>{console.log("重置幻灯片位置到首页"),ie.value=0,gt.value=0,Ht.value=null,Bt.value=-1,Lt.value=-1,Yt(()=>{const ye=document.querySelector(".thumbnail-strip");ye&&(ye.scrollLeft=0)}),console.log("页面位置已重置到首页")},D9=(ye,se)=>{console.log("开始基于template_8.json生成动态多页结构:",ye.length,"个章节");const Ie=[],Ue=JSON.parse(JSON.stringify(S1[0]));Ue.id="template8-dynamic-cover",console.log("封面页背景信息:",Ue.background),console.log("封面页元素数量:",Ue.elements?.length);const Ze=Ue.elements.find(wt=>wt.id==="title-text");Ze&&(Ze.content=`<p style="text-align: center;"><strong><span style="font-size: 40px; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);">${se}</span></strong></p>`),Ie.push(Ue);const lt=JSON.parse(JSON.stringify(S1[1]));lt.id="template8-dynamic-contents",ye.forEach((wt,mt)=>{const T=lt.elements.find(I=>I.id===`item-${mt+1}`);T&&(T.content=`<p style="text-align: center;"><span style="font-size: 18px; color: #333333;">${wt.title}</span></p>`)}),Ie.push(lt),ye.forEach((wt,mt)=>{const T=JSON.parse(JSON.stringify(S1[2]));T.id=`template8-dynamic-transition-${mt}`;const I=T.elements.find($=>$.id==="transition-title");I&&(I.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: #47acc5;">${wt.title}</span></strong></p>`);const P=T.elements.find($=>$.id==="transition-content");if(P&&(P.content=`<p style="text-align: center;"><span style="font-size: 16px; color: #666666;">${wt.content||`本章将介绍${wt.title}的相关内容`}</span></p>`),Ie.push(T),wt.sections&&wt.sections.length>0)wt.sections.forEach(($,V)=>{const J=JSON.parse(JSON.stringify(S1[3]));J.id=`template8-dynamic-content-${mt}-${V}`;const Te=J.elements.find(Xe=>Xe.id==="content-title");Te&&(Te.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #47acc5;">${$.title}</span></strong></p>`),$.content&&Array.isArray($.content)&&$.content.forEach((Xe,st)=>{const Ke=J.elements.find(jt=>jt.id===`itemTitle-${st+1}`),bt=J.elements.find(jt=>jt.id===`itemContent-${st+1}`);Ke&&Xe.title&&(Ke.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: #333333;">${Xe.title}</span></strong></p>`),bt&&Xe.content&&(bt.content=`<p style="text-align: center;"><span style="font-size: 14px; color: #666666;">${Xe.content}</span></p>`)}),Ie.push(J)});else{const $=JSON.parse(JSON.stringify(S1[3]));$.id=`template8-dynamic-content-${mt}-default`;const V=$.elements.find(J=>J.id==="content-title");V&&(V.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #47acc5;">${wt.title}</span></strong></p>`),Ie.push($)}});const at=JSON.parse(JSON.stringify(S1[4]));return at.id="template8-dynamic-end",Ie.push(at),console.log("基于template_8.json的动态多页结构生成完成,共",Ie.length,"页"),Ie},I9=(ye,se)=>{console.log("开始基于template_7.json生成动态多页结构:",ye.length,"个章节");const Ie=[],Ue=JSON.parse(JSON.stringify(bg[0]));Ue.id="template7-dynamic-cover",console.log("封面页背景信息:",Ue.background),console.log("封面页元素数量:",Ue.elements?.length);const Ze=Ue.elements.find(mt=>mt.id==="title-text");Ze&&(Ze.content=`<p style="text-align: center;"><strong><span style="font-size: 40px; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);">${se}</span></strong></p>`),Ie.push(Ue);const lt=JSON.parse(JSON.stringify(bg[1]));lt.id="template7-dynamic-contents",ye.forEach((mt,T)=>{const I=lt.elements.find(P=>P.id===`item-${T+1}`);I&&(I.content=`<p><span style="font-size: 18px; color: #333333;">${mt.title}</span></p>`)});for(let mt=ye.length;mt<6;mt++){const T=lt.elements.find(I=>I.id===`item-${mt+1}`);T&&(T.content='<p><span style="font-size: 18px; color: #333333;"></span></p>',T.opacity=0)}const at=Math.min(ye.length,6);if(console.log(`目录页实际显示${at}个目录项`),at===2){const mt=lt.elements.find(I=>I.id==="item-1"),T=lt.elements.find(I=>I.id==="item-2");mt&&(mt.top=250),T&&(T.top=300)}else if(at===3){const mt=lt.elements.find(P=>P.id==="item-1"),T=lt.elements.find(P=>P.id==="item-2"),I=lt.elements.find(P=>P.id==="item-3");mt&&(mt.top=220),T&&(T.top=270),I&&(I.top=320)}else if(at!==4){if(at===5){const mt=lt.elements.find(V=>V.id==="item-1"),T=lt.elements.find(V=>V.id==="item-2"),I=lt.elements.find(V=>V.id==="item-3"),P=lt.elements.find(V=>V.id==="item-4"),$=lt.elements.find(V=>V.id==="item-5");mt&&(mt.top=180),T&&(T.top=230),I&&(I.top=280),P&&(P.top=330),$&&($.top=380)}else if(at===6){const mt=lt.elements.find(J=>J.id==="item-1"),T=lt.elements.find(J=>J.id==="item-2"),I=lt.elements.find(J=>J.id==="item-3"),P=lt.elements.find(J=>J.id==="item-4"),$=lt.elements.find(J=>J.id==="item-5"),V=lt.elements.find(J=>J.id==="item-6");mt&&(mt.top=160),T&&(T.top=210),I&&(I.top=260),P&&(P.top=310),$&&($.top=360),V&&(V.top=410)}}Ie.push(lt),ye.forEach((mt,T)=>{const I=JSON.parse(JSON.stringify(bg[2]));I.id=`template7-dynamic-transition-${T}`;const P=I.elements.find($=>$.id==="transition-title");if(P&&(P.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: #e74c3c;">${mt.title}</span></strong></p>`),Ie.push(I),mt.sections&&mt.sections.length>0)mt.sections.forEach(($,V)=>{const J=JSON.parse(JSON.stringify(bg[3]));J.id=`template7-dynamic-content-${T}-${V}`;const Te=J.elements.find(Ke=>Ke.id==="content-title");Te&&(Te.textType="title",Te.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #e74c3c;">${$.title}</span></strong></p>`);let Xe=$.subsections||[];if(Xe.length===0){const Ke=Math.floor(Math.random()*3)+2,bt=["待AI生成子小节1","待AI生成子小节2","待AI生成子小节3","待AI生成子小节4"];Xe=[];for(let jt=0;jt<Ke;jt++)Xe.push({title:bt[jt]||`要点${jt+1}`,content:"待AI填充"});$.subsections=Xe}const st=Math.min(Xe.length,4);console.log(`章节${T+1}小节${V+1}有${Xe.length}个子小节,实际显示${st}个`);for(let Ke=0;Ke<st;Ke++){const bt=Xe[Ke],jt=J.elements.find(On=>On.id===`itemTitle-${Ke+1}`);jt&&(jt.textType="itemTitle",jt.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: #333333;">${bt.title}</span></strong></p>`,console.log(`填充子小节标题${Ke+1}: ${bt.title}`));const An=J.elements.find(On=>On.id===`itemContent-${Ke+1}`);An&&(An.textType="itemContent",An.content=`<p style="text-align: center;"><span style="font-size: 14px; color: #666666;">${bt.content||"待AI填充"}</span></p>`,console.log(`填充子小节内容${Ke+1}: ${bt.content||"待AI填充"}`))}for(let Ke=st;Ke<4;Ke++)J.elements=J.elements.filter(bt=>bt.id!==`itemTitle-${Ke+1}`&&bt.id!==`itemContent-${Ke+1}`&&bt.id!==`item-bg-${Ke+1}`&&bt.id!==`item-icon-${Ke+1}`);if(st===2){const Ke=J.elements.find(Fn=>Fn.id==="item-bg-1"),bt=J.elements.find(Fn=>Fn.id==="item-bg-2");Ke&&(Ke.top=190),bt&&(bt.top=290);const jt=J.elements.find(Fn=>Fn.id==="itemTitle-1"),An=J.elements.find(Fn=>Fn.id==="itemContent-1"),On=J.elements.find(Fn=>Fn.id==="item-icon-1");jt&&(jt.top=200),An&&(An.top=230),On&&(On.top=205);const xn=J.elements.find(Fn=>Fn.id==="itemTitle-2"),Mn=J.elements.find(Fn=>Fn.id==="itemContent-2"),Wn=J.elements.find(Fn=>Fn.id==="item-icon-2");xn&&(xn.top=300),Mn&&(Mn.top=330),Wn&&(Wn.top=305);const En=J.elements.find(Fn=>Fn.id==="content-side-decoration");En&&(En.top=40)}else if(st===3){const Ke=J.elements.find(ir=>ir.id==="item-bg-1"),bt=J.elements.find(ir=>ir.id==="item-bg-2"),jt=J.elements.find(ir=>ir.id==="item-bg-3");Ke&&(Ke.top=140),bt&&(bt.top=240),jt&&(jt.top=340);const An=J.elements.find(ir=>ir.id==="itemTitle-1"),On=J.elements.find(ir=>ir.id==="itemContent-1"),xn=J.elements.find(ir=>ir.id==="item-icon-1");An&&(An.top=150),On&&(On.top=180),xn&&(xn.top=155);const Mn=J.elements.find(ir=>ir.id==="itemTitle-2"),Wn=J.elements.find(ir=>ir.id==="itemContent-2"),En=J.elements.find(ir=>ir.id==="item-icon-2");Mn&&(Mn.top=250),Wn&&(Wn.top=280),En&&(En.top=255);const Fn=J.elements.find(ir=>ir.id==="itemTitle-3"),rr=J.elements.find(ir=>ir.id==="itemContent-3"),zr=J.elements.find(ir=>ir.id==="item-icon-3");Fn&&(Fn.top=350),rr&&(rr.top=380),zr&&(zr.top=355);const Xo=J.elements.find(ir=>ir.id==="content-side-decoration");Xo&&(Xo.top=40)}else if(st===4){const Ke=J.elements.find(Mn=>Mn.id==="item-bg-1"),bt=J.elements.find(Mn=>Mn.id==="item-bg-2"),jt=J.elements.find(Mn=>Mn.id==="item-bg-3"),An=J.elements.find(Mn=>Mn.id==="item-bg-4");Ke&&(Ke.top=120),bt&&(bt.top=220),jt&&(jt.top=320),An&&(An.top=420),[{id:"itemTitle-1",top:130},{id:"itemContent-1",top:160},{id:"item-icon-1",top:135},{id:"itemTitle-2",top:230},{id:"itemContent-2",top:260},{id:"item-icon-2",top:235},{id:"itemTitle-3",top:330},{id:"itemContent-3",top:360},{id:"item-icon-3",top:335},{id:"itemTitle-4",top:430},{id:"itemContent-4",top:460},{id:"item-icon-4",top:435}].forEach(({id:Mn,top:Wn})=>{const En=J.elements.find(Fn=>Fn.id===Mn);En&&(En.top=Wn)});const xn=J.elements.find(Mn=>Mn.id==="content-side-decoration");xn&&(xn.top=100)}Ie.push(J)});else{const $=JSON.parse(JSON.stringify(bg[3]));$.id=`template7-dynamic-content-${T}-default`;const V=$.elements.find(Ke=>Ke.id==="content-title");V&&(V.textType="title",V.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: #e74c3c;">${mt.title}</span></strong></p>`);const J=Math.floor(Math.random()*3)+2,Te=["主要内容","详细说明","补充内容","总结要点"],Xe=["待AI填充","待AI填充","待AI填充","待AI填充"],st=[];for(let Ke=0;Ke<J;Ke++)st.push({title:Te[Ke]||`要点${Ke+1}`,content:Xe[Ke]||"待AI填充"});for(let Ke=0;Ke<J;Ke++){const bt=st[Ke],jt=$.elements.find(On=>On.id===`itemTitle-${Ke+1}`);jt&&(jt.textType="itemTitle",jt.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: #333333;">${bt.title}</span></strong></p>`);const An=$.elements.find(On=>On.id===`itemContent-${Ke+1}`);An&&(An.textType="itemContent",An.content=`<p style="text-align: center;"><span style="font-size: 14px; color: #666666;">${bt.content}</span></p>`)}for(let Ke=J;Ke<4;Ke++)$.elements=$.elements.filter(bt=>bt.id!==`itemTitle-${Ke+1}`&&bt.id!==`itemContent-${Ke+1}`&&bt.id!==`item-bg-${Ke+1}`&&bt.id!==`item-icon-${Ke+1}`);if(J===2){const Ke=$.elements.find(Fn=>Fn.id==="item-bg-1"),bt=$.elements.find(Fn=>Fn.id==="item-bg-2");Ke&&(Ke.top=190),bt&&(bt.top=290);const jt=$.elements.find(Fn=>Fn.id==="itemTitle-1"),An=$.elements.find(Fn=>Fn.id==="itemContent-1"),On=$.elements.find(Fn=>Fn.id==="item-icon-1");jt&&(jt.top=200),An&&(An.top=230),On&&(On.top=205);const xn=$.elements.find(Fn=>Fn.id==="itemTitle-2"),Mn=$.elements.find(Fn=>Fn.id==="itemContent-2"),Wn=$.elements.find(Fn=>Fn.id==="item-icon-2");xn&&(xn.top=300),Mn&&(Mn.top=330),Wn&&(Wn.top=305);const En=$.elements.find(Fn=>Fn.id==="content-side-decoration");En&&(En.top=40)}else if(J===3){const Ke=$.elements.find(ir=>ir.id==="item-bg-1"),bt=$.elements.find(ir=>ir.id==="item-bg-2"),jt=$.elements.find(ir=>ir.id==="item-bg-3");Ke&&(Ke.top=140),bt&&(bt.top=240),jt&&(jt.top=340);const An=$.elements.find(ir=>ir.id==="itemTitle-1"),On=$.elements.find(ir=>ir.id==="itemContent-1"),xn=$.elements.find(ir=>ir.id==="item-icon-1");An&&(An.top=150),On&&(On.top=180),xn&&(xn.top=155);const Mn=$.elements.find(ir=>ir.id==="itemTitle-2"),Wn=$.elements.find(ir=>ir.id==="itemContent-2"),En=$.elements.find(ir=>ir.id==="item-icon-2");Mn&&(Mn.top=250),Wn&&(Wn.top=280),En&&(En.top=255);const Fn=$.elements.find(ir=>ir.id==="itemTitle-3"),rr=$.elements.find(ir=>ir.id==="itemContent-3"),zr=$.elements.find(ir=>ir.id==="item-icon-3");Fn&&(Fn.top=350),rr&&(rr.top=380),zr&&(zr.top=355);const Xo=$.elements.find(ir=>ir.id==="content-side-decoration");Xo&&(Xo.top=40)}else if(J===4){const Ke=$.elements.find(Mn=>Mn.id==="item-bg-1"),bt=$.elements.find(Mn=>Mn.id==="item-bg-2"),jt=$.elements.find(Mn=>Mn.id==="item-bg-3"),An=$.elements.find(Mn=>Mn.id==="item-bg-4");Ke&&(Ke.top=120),bt&&(bt.top=220),jt&&(jt.top=320),An&&(An.top=420),[{id:"itemTitle-1",top:130},{id:"itemContent-1",top:160},{id:"item-icon-1",top:135},{id:"itemTitle-2",top:230},{id:"itemContent-2",top:260},{id:"item-icon-2",top:235},{id:"itemTitle-3",top:330},{id:"itemContent-3",top:360},{id:"item-icon-3",top:335},{id:"itemTitle-4",top:430},{id:"itemContent-4",top:460},{id:"item-icon-4",top:435}].forEach(({id:Mn,top:Wn})=>{const En=$.elements.find(Fn=>Fn.id===Mn);En&&(En.top=Wn)});const xn=$.elements.find(Mn=>Mn.id==="content-side-decoration");xn&&(xn.top=100)}Ie.push($)}});const wt=JSON.parse(JSON.stringify(bg[4]));return wt.id="template7-dynamic-end",Ie.push(wt),console.log("基于template_7.json的动态多页结构生成完成,共",Ie.length,"页"),Ie},O9=()=>{t.value.length>2e3&&(t.value=t.value.substring(0,2e3),Et.warning("消息长度不能超过2000字"))},M9=async()=>{try{console.log("开始获取安全培训功能卡片...");const ye=await zn.getFunctionCard({function_type:1});console.log("功能卡片响应:",ye),ye.statusCode===200?(A.value=ye.data,console.log("功能卡片数据已设置:",A.value)):console.error("获取功能卡片失败:",ye.statusCode)}catch(ye){console.error("获取功能卡片失败:",ye)}},P9=async()=>{try{console.log("开始获取安全培训热点问题...");const ye=await zn.getHotQuestion({question_type:1});console.log("热点问题响应:",ye),ye.statusCode===200?(S.value=ye.data,console.log("热点问题数据已设置:",S.value)):console.error("获取热点问题失败:",ye.statusCode)}catch(ye){console.error("获取热点问题失败:",ye)}},ox=ye=>{switch(ye){case".doc":case".docx":return wq;default:return"📎"}},Im=ye=>{if(ye===0)return"0 B";const se=1024,Ie=["B","KB","MB","GB"],Ue=Math.floor(Math.log(ye)/Math.log(se));return parseFloat((ye/Math.pow(se,Ue)).toFixed(2))+" "+Ie[Ue]},ix=()=>{W.value&&(W.value=null)},N9=()=>{if(W.value){Et.warning("只能上传一个文件,请先删除当前文件");return}rx.value?.click()},R9=ye=>{if(ye.size>z.maxSize)throw new Error("文件大小不能超过20MB");const se="."+ye.name.split(".").pop().toLowerCase();if(!z.allowedTypes.includes(se))throw new Error("只支持.docx格式的Word文档。如果是.doc格式,请先另存为.docx格式。");return se},B9=async ye=>{try{if(console.log("开始读取Word文件:",ye.name,"文件大小:",ye.size),ye.size===0)throw new Error("Word文件为空");console.log("正在导入mammoth库...");const se=await Lf(()=>Promise.resolve().then(()=>KE),void 0);console.log("mammoth库导入成功");const Ie=await ye.arrayBuffer();console.log("文件转换为ArrayBuffer成功,大小:",Ie.byteLength),console.log("开始提取文本内容...");const Ue=await se.extractRawText({arrayBuffer:Ie});return console.log("Word文件读取完成,内容长度:",Ue.value.length),Ue.value}catch(se){throw console.error("Word文件读取失败,详细错误:",se),console.error("错误堆栈:",se.stack),se.message.includes("Invalid file format")?new Error("Word文件格式无效或已损坏"):se.message.includes("File is empty")?new Error("Word文件为空"):new Error(`Word文件读取失败: ${se.message}`)}},L9=(ye,se)=>{if(!se)return F9(ye);const Ie=`
- 📄 文件信息:
- 文件名:${se.name}
- 文件大小:${Im(se.size)}
- 文件类型:${se.type}
- 📝 文件内容:
- ${se.content}
- ---
- `;return ye.replace(/<word>.*?<\/word>/gs,Ie).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},F9=ye=>{const se=ye.match(/<filename>(.*?)<\/filename>/),Ie=se?se[1]:"未知文件",Ue=ye.match(/<filesize>(.*?)<\/filesize>/),Ze=Ue?parseInt(Ue[1]):0,lt=ye.match(/<word>(.*?)<\/word>/s),at=lt?lt[1].trim():"无内容",wt=`
- 📄 文件信息:
- 文件名:${Ie}
- 文件大小:${Im(Ze)}
- 文件类型:${Ie.endsWith(".docx")?".docx":Ie.endsWith(".doc")?".doc":"未知"}
- 📝 文件内容:
- ${at}
- ---
- `;return ye.replace(/<word>.*?<\/word>/gs,wt).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},U9=async ye=>{const se=ye.target.files[0];if(se)try{const Ie=R9(se);B.value=!0,console.log("开始读取文件内容:",se.name);const Ue=await B9(se);W.value={file:se,name:se.name,size:se.size,type:Ie,icon:ox(Ie),content:Ue};const Ze=Ue.length;console.log("文件内容提取完成,字符数:",Ze),Et.success(`文件读取成功,提取了${Ze}个字符的内容`)}catch(Ie){console.error("文件读取失败:",Ie),Et.error(Ie.message||"文件读取失败,请重试")}finally{B.value=!1,ye.target.value=""}},z9=()=>{console.log("点击语音按钮"),j.value?j9():$9()},$9=()=>{console.log("开始语音输入"),U()||Et.error("语音识别启动失败,请检查麦克风权限")},j9=()=>{console.log("停止语音输入"),F(),q.value.trim()&&(t.value=q.value)},ax=async()=>{try{if(!X.value||X.value.length===0){Et.warning("暂无大纲内容可复制");return}let ye=`${Z.value||"安全培训大纲"}
- `;if(X.value.forEach((Ie,Ue)=>{ye+=`${Ie.title}
- `,Ie.sections&&Ie.sections.length>0&&Ie.sections.forEach((Ze,lt)=>{ye+=` ${Ze.title}
- `,Ze.subsections&&Ze.subsections.length>0&&Ze.subsections.forEach((at,wt)=>{ye+=` ${at.title}
- `,at.subsubsections&&at.subsubsections.length>0&&(at.subsubsections.forEach((mt,T)=>{ye+=` - ${mt.title}
- `,mt.content&&(ye+=` ${mt.content}
- `)}),ye+=`
- `)})})}),navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext)try{await navigator.clipboard.writeText(ye),Et.success("复制成功");return}catch(Ie){console.warn("Clipboard API 失败,使用降级方案:",Ie)}const se=document.createElement("textarea");se.value=ye,se.style.position="fixed",se.style.left="-999999px",se.style.top="-999999px",document.body.appendChild(se),se.focus(),se.select();try{if(document.execCommand("copy"))Et.success("大纲已复制到剪贴板");else throw new Error("execCommand 复制失败")}catch(Ie){console.error("传统复制方法也失败:",Ie),Et.error("复制失败,请手动选择文本复制")}finally{document.body.removeChild(se)}}catch(ye){console.error("复制大纲失败:",ye),Et.error("复制失败,请手动选择文本复制")}},H9=async()=>{try{if(!X.value||X.value.length===0){Et.warning("暂无大纲内容可下载");return}let ye=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${Z.value||"安全培训大纲"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .outline-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- h1, h2, h3, h4, h5, h6 {
- color: #000;
- font-weight: bold;
- font-family: "Microsoft YaHei", Arial, sans-serif;
- margin-top: 20px;
- margin-bottom: 15px;
- }
- h1 {
- font-size: 20px;
- border-bottom: 2px solid #000;
- padding-bottom: 10px;
- }
- h2 {
- font-size: 18px;
- margin-top: 20px;
- margin-bottom: 12px;
- }
- h3 {
- font-size: 16px;
- margin-top: 15px;
- margin-bottom: 8px;
- }
- h4 {
- font-size: 14px;
- margin-top: 12px;
- margin-bottom: 6px;
- }
- ul, li {
- color: #000;
- font-family: "Microsoft YaHei", Arial, sans-serif;
- }
- li {
- margin-bottom: 4px;
- }
- .stats {
- background: #f8f9fa;
- padding: 20px;
- border-radius: 8px;
- margin-top: 30px;
- border: 1px solid #ddd;
- }
- .stats h3 {
- color: #2c3e50;
- margin-top: 0;
- font-size: 16px;
- }
- .stats p {
- margin: 8px 0;
- color: #555;
- font-size: 14px;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="outline-title">${Z.value||"安全培训大纲"}</div>
- </div>
- `;X.value.forEach((Ze,lt)=>{ye+=`<h2>${Ze.title}</h2>`,Ze.sections&&Ze.sections.length>0&&Ze.sections.forEach((at,wt)=>{ye+=`<h3>${at.title}</h3>`,at.subsections&&at.subsections.length>0&&at.subsections.forEach((mt,T)=>{ye+=`<h4>${mt.title}</h4>`,mt.subsubsections&&mt.subsubsections.length>0&&(ye+="<ul>",mt.subsubsections.forEach((I,P)=>{ye+=`<li><strong>${I.title}</strong>`,I.content&&(ye+=`<br>${I.content}`),ye+="</li>"}),ye+="</ul>")})})}),te.value&&(ye+=`
- <div class="stats">
- <h3>大纲统计信息</h3>
- <p><strong>总章节数:</strong>${te.value.totalChapters||"未知"}章</p>
- <p><strong>总小节数:</strong>${te.value.totalSections||"未知"}小节</p>
- <p><strong>预计PPT页数:</strong>${te.value.estimatedPages||"未知"}</p>
- <p><strong>预计讲解时长:</strong>${te.value.estimatedTime||"未知"}</p>
- </div>
- `),ye+=`
- </body>
- </html>
- `;const se=new Blob([ye],{type:"application/msword"}),Ie=URL.createObjectURL(se),Ue=document.createElement("a");Ue.href=Ie,Ue.download=`${Z.value||"安全培训大纲"}.doc`,document.body.appendChild(Ue),Ue.click(),document.body.removeChild(Ue),URL.revokeObjectURL(Ie),Et.success("下载成功")}catch(ye){console.error("下载大纲失败:",ye),Et.error("下载失败,请重试")}};return(ye,se)=>(L(),G("div",GYt,[He(Q5),x("div",{class:oe(["history-sidebar",{disabled:w.value}])},[x("div",KYt,[se[24]||(se[24]=x("span",{class:"section-title"},"历史记录",-1)),x("img",{src:oC,alt:"新建任务",class:oe(["new-chat-btn",{disabled:w.value}]),onClick:At},null,2)]),x("div",YYt,[m.value&&fr.value===0?(L(),G("div",QYt,se[25]||(se[25]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在加载历史记录...",-1)]))):fr.value>0?(L(!0),G(Rt,{key:1},un(wr.value,(Ie,Ue)=>(L(),G("div",{key:Ue,class:oe(["history-item",{active:Ie.isActive,disabled:w.value}]),onClick:()=>tn(Ie),style:rn({cursor:Ie.isActive||w.value?"default":"pointer"})},[x("div",XYt,[x("img",{src:Xt(Ie),alt:"培训图标",class:"history-icon-img"},null,8,JYt)]),x("div",eQt,[x("div",tQt,je(Ie.title),1),x("div",nQt,[x("span",rQt,je(Ie.time),1)])]),x("div",{class:oe(["delete-btn",{"always-visible":Ie.isActive}]),onClick:en(Ze=>Fr(Ie,Ue),["stop"])},se[26]||(se[26]=[x("img",{src:kc,alt:"删除",class:"delete-icon"},null,-1)]),10,oQt)],14,ZYt))),128)):(L(),G("div",iQt,se[27]||(se[27]=[x("img",{src:iC,alt:"暂无数据",class:"empty-icon"},null,-1),x("div",{class:"empty-text"},"暂无数据",-1)])))])],2),x("div",aQt,[se[85]||(se[85]=x("div",{class:"work-header"},[x("h2",null,"安全培训")],-1)),x("div",sQt,[d.value==="step1"?(L(),G("div",lQt,[E.value?(L(),G("div",vQt,[x("div",mQt,[(L(!0),G(Rt,null,un(D.value,(Ie,Ue)=>(L(),G("div",{key:Ue,class:oe(["message-item",Ie.type])},[Ie.type==="user"?(L(),G("div",yQt,[x("div",bQt,[Ie.file?(L(),G("div",wQt,[x("div",AQt,[x("div",CQt,[Ie.file.type===".doc"||Ie.file.type===".docx"?(L(),G("img",{key:0,src:Ie.file.icon,alt:"文档图标",class:"file-icon-img"},null,8,xQt)):(L(),G("span",SQt,je(Ie.file.icon),1))]),x("div",EQt,[x("div",kQt,je(Ie.file.name),1),x("div",TQt,je(Im(Ie.file.size)),1)])])])):xe("",!0),Ie.content?(L(),G("div",_Qt,je(Ie.content),1)):xe("",!0)]),x("div",DQt,[x("button",{class:"action-btn copy-btn",onClick:Ze=>k9(Ie)},se[33]||(se[33]=[x("img",{src:jv,alt:"复制",class:"action-icon"},null,-1),bn(" 复制 ",-1)]),8,IQt),se[34]||(se[34]=x("button",{class:"action-btn edit-btn"},[x("img",{src:aC,alt:"编辑",class:"action-icon"}),bn(" 编辑 ")],-1))])])):Ie.type==="ai"?(L(),G("div",OQt,[se[36]||(se[36]=x("div",{class:"ai-avatar-small"},[x("img",{src:C_,alt:"AI",class:"ai-icon"})],-1)),x("div",{class:"message-content","data-message-index":Ue},[x("div",PQt,[Ie.displayContent.length===0?(L(),G("div",NQt,se[35]||(se[35]=[x("div",{class:"thinking-animation"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1),x("span",null,"AI正在思考中...",-1)]))):(L(),G("div",{key:1,innerHTML:Ie.displayContent,class:"ai-content"},null,8,RQt))])],8,MQt)])):xe("",!0)],2))),128))])])):(L(),G("div",uQt,[se[32]||(se[32]=x("div",{class:"ai-intro"},[x("div",{class:"ai-avatar"},[x("img",{src:C_,alt:"AI头像",class:"ai-avatar-img"})]),x("div",{class:"ai-greeting"},[x("h3",null,"快速生成专业安全培训材料"),x("p",null,"输入培训主题,一键生成培训大纲与PPT模板")])],-1)),x("div",cQt,[(L(!0),G(Rt,null,un(A.value,(Ie,Ue)=>(L(),G("div",{key:Ie.id||Ue,class:"function-card",onClick:Ze=>xo(Ie.function_title)},[x("div",fQt,[x("div",pQt,[x("img",{src:yo(Ie.function_title),alt:Ie.function_title,class:"card-icon-img"},null,8,hQt)]),x("h4",null,je(Ie.function_title),1)]),x("div",gQt,[x("p",null,je(Ie.function_content),1)])],8,dQt))),128)),A.value.length===0?(L(),G("div",{key:0,class:"function-card",onClick:se[0]||(se[0]=Ie=>xo("safety-training"))},se[28]||(se[28]=[x("div",{class:"card-header"},[x("div",{class:"card-icon"},[x("img",{src:x_,alt:"安全培训课程",class:"card-icon-img"})]),x("h4",null,"安全培训课程")],-1),x("div",{class:"card-description"},[x("p",null,"施工安全培训,操作规范学习")],-1)]))):xe("",!0),A.value.length===0?(L(),G("div",{key:1,class:"function-card",onClick:se[1]||(se[1]=Ie=>xo("safety-assessment"))},se[29]||(se[29]=[x("div",{class:"card-header"},[x("div",{class:"card-icon"},[x("img",{src:S_,alt:"安全评估",class:"card-icon-img"})]),x("h4",null,"安全评估测试")],-1),x("div",{class:"card-description"},[x("p",null,"安全知识测评,能力水平评估")],-1)]))):xe("",!0),A.value.length===0?(L(),G("div",{key:2,class:"function-card",onClick:se[2]||(se[2]=Ie=>xo("safety-regulations"))},se[30]||(se[30]=[x("div",{class:"card-header"},[x("div",{class:"card-icon"},[x("img",{src:E_,alt:"安全法规",class:"card-icon-img"})]),x("h4",null,"安全法规查询")],-1),x("div",{class:"card-description"},[x("p",null,"安全法律法规,标准规范查询")],-1)]))):xe("",!0),A.value.length===0?(L(),G("div",{key:3,class:"function-card",onClick:se[3]||(se[3]=Ie=>xo("emergency-procedures"))},se[31]||(se[31]=[x("div",{class:"card-header"},[x("div",{class:"card-icon"},[x("img",{src:k_,alt:"应急程序",class:"card-icon-img"})]),x("h4",null,"应急处理程序")],-1),x("div",{class:"card-description"},[x("p",null,"事故应急预案,处理流程指导")],-1)]))):xe("",!0)])]))])):xe("",!0),d.value==="step2"?(L(),G("div",BQt,[m.value?(L(),G("div",LQt,se[37]||(se[37]=[x("div",{class:"loading-content"},[x("div",{class:"loading-spinner"}),x("div",{class:"loading-text"},"正在加载历史记录"),x("div",{class:"loading-subtitle"},"请稍候,正在为您准备数据...")],-1)]))):xe("",!0),x("div",FQt,[x("div",UQt,[x("div",zQt,[x("div",$Qt,[Ee.value!=="title"?(L(),G("h3",{key:0,class:oe(["outline-title",{disabled:h.value||g.value}]),onClick:se[4]||(se[4]=Ie=>!h.value&&!g.value&&to(null,"title",null,Z.value||"安全培训大纲"))},je(Z.value||"安全培训大纲"),3)):(L(),G("div",jQt,[cn(x("textarea",{"onUpdate:modelValue":se[5]||(se[5]=Ie=>me.value=Ie),class:"edit-textarea title-edit-textarea",onKeyup:$r(Po,["esc"]),onKeydown:$r(en(pr,["ctrl"]),["enter"]),onBlur:pr,ref:"titleEditInput",autofocus:""},null,40,HQt),[[qr,me.value]])]))]),x("div",WQt,[x("button",{class:"action-btn exam-btn",onClick:se[6]||(se[6]=(...Ie)=>ye.generateExam&&ye.generateExam(...Ie)),disabled:g.value||!X.value.length},se[38]||(se[38]=[x("img",{src:Oke,alt:"考试",class:"action-icon"},null,-1),bn(" 生成考题 ",-1)]),8,VQt),x("button",{class:"action-btn",onClick:ax,disabled:h.value},se[39]||(se[39]=[x("img",{src:l3,alt:"复制",class:"action-icon"},null,-1),bn(" 复制 ",-1)]),8,qQt),x("button",{class:"action-btn",onClick:H9,disabled:h.value},se[40]||(se[40]=[x("img",{src:Aq,alt:"下载",class:"action-icon"},null,-1),bn(" 下载 ",-1)]),8,GQt)])]),x("div",{class:oe(["outline-content",{disabled:h.value}])},[h.value?(L(),G("div",KQt,se[41]||(se[41]=[x("div",{class:"generating-content"},[x("p",null,"AI正在生成新大纲,请稍候...")],-1)]))):xe("",!0),g.value?(L(),G("div",YQt,se[42]||(se[42]=[x("div",{class:"generating-content"},[x("p",null,"AI正在生成考试题目,请稍候...")],-1)]))):xe("",!0),X.value&&X.value.length>0?(L(),G("div",QQt,[(L(!0),G(Rt,null,un(X.value,(Ie,Ue)=>(L(),G(Rt,{key:Ue},[Ie&&Ie.sections?(L(),G("div",{key:0,class:oe(["outline-chapter",{dragging:De.value===Ue,"drag-over":pe.value===Ue&&De.value!==Ue}]),draggable:"true",onDragstart:Ze=>va(Ze,Ue),onDragend:aa,onDragover:Ze=>Ci(Ze,Ue),onDragleave:xi,onDrop:Ze=>is(Ze,Ue)},[x("div",XQt,[Ee.value!=="chapter"||Q.value!==Ue?(L(),G("h4",{key:0,class:oe(["chapter-title",{disabled:g.value}]),onClick:Ze=>!g.value&&to(Ie,"chapter",Ue,Dr(Ie.title))},je(sa(Ie.title,Ue)),11,JQt)):(L(),G("div",eZt,[x("div",tZt,[cn(x("textarea",{"onUpdate:modelValue":se[7]||(se[7]=Ze=>me.value=Ze),class:"edit-textarea chapter-edit-textarea",onKeyup:$r(Po,["esc"]),onKeydown:$r(en(pr,["ctrl"]),["enter"]),onBlur:pr,ref_for:!0,ref:"chapterEditInput",autofocus:""},null,40,nZt),[[qr,me.value]]),x("div",rZt,[x("button",{class:"edit-option-btn",onClick:Ze=>Oi("section",Ue)},se[43]||(se[43]=[x("img",{src:X8,alt:"添加小节",class:"edit-icon"},null,-1)]),8,oZt),X.value.length>2?(L(),G("button",{key:0,class:"edit-option-btn delete-btn",onClick:Ze=>ni("chapter",Ue)},se[44]||(se[44]=[x("img",{src:kc,alt:"删除",class:"edit-icon"},null,-1)]),8,iZt)):xe("",!0)])])]))]),x("div",aZt,[(L(!0),G(Rt,null,un(Ie.sections,(Ze,lt)=>(L(),G(Rt,{key:lt},[Ze&&Ze.title!=="内容要点"&&Ze.title!=="概述"&&Ze.title!=="内容详情"?(L(),G("div",sZt,[x("div",lZt,[Ee.value!=="section"||Q.value!==`${Ue}-${lt}`?(L(),G("div",{key:0,class:oe(["section-title",{disabled:g.value}]),onClick:at=>!g.value&&to(Ze,"section",`${Ue}-${lt}`,Ze.title)},je(Ze.title),11,uZt)):(L(),G("div",cZt,[x("div",dZt,[cn(x("textarea",{"onUpdate:modelValue":se[8]||(se[8]=at=>me.value=at),class:"edit-textarea section-edit-textarea",onKeyup:$r(Po,["esc"]),onKeydown:$r(en(pr,["ctrl"]),["enter"]),onBlur:pr,ref_for:!0,ref:"sectionEditInput",autofocus:""},null,40,fZt),[[qr,me.value]]),x("div",pZt,[x("button",{class:"edit-option-btn",onClick:at=>Oi("subsection",`${Ue}-${lt}`)},se[45]||(se[45]=[x("img",{src:X8,alt:"添加子标题",class:"edit-icon"},null,-1)]),8,hZt),Ie.sections.length>1?(L(),G("button",{key:0,class:"edit-option-btn delete-btn",onClick:at=>ni("section",`${Ue}-${lt}`)},se[46]||(se[46]=[x("img",{src:kc,alt:"删除",class:"edit-icon"},null,-1)]),8,gZt)):xe("",!0)])])]))]),Ze&&Ze.subsections&&Ze.subsections.length>0?(L(),G("div",vZt,[(L(!0),G(Rt,null,un(Ze.subsections,(at,wt)=>(L(),G(Rt,{key:wt},[at&&at.title!=="内容要点"&&at.title!=="概述"&&at.title!=="内容详情"&&!at.title.includes("总章节数")&&!at.title.includes("总小节数")&&!at.title.includes("预计PPT页数")&&!at.title.includes("预计讲解时长")?(L(),G("div",mZt,[x("div",yZt,[Ee.value!=="subsection"||Q.value!==`${Ue}-${lt}-${wt}`?(L(),G("div",{key:0,class:oe(["subsection-title",{disabled:g.value}]),onClick:mt=>!g.value&&to(at,"subsection",`${Ue}-${lt}-${wt}`,at.title)},je(at.title),11,bZt)):(L(),G("div",wZt,[x("div",AZt,[cn(x("textarea",{"onUpdate:modelValue":se[9]||(se[9]=mt=>me.value=mt),class:"edit-textarea subsection-edit-textarea",onKeyup:$r(Po,["esc"]),onKeydown:$r(en(pr,["ctrl"]),["enter"]),onBlur:pr,ref_for:!0,ref:"subsectionEditInput",autofocus:""},null,40,CZt),[[qr,me.value]]),x("div",xZt,[x("button",{class:"edit-option-btn delete-btn",onClick:mt=>ni("subsection",`${Ue}-${lt}-${wt}`)},se[47]||(se[47]=[x("img",{src:kc,alt:"删除",class:"edit-icon"},null,-1)]),8,SZt)])])]))]),at.subsubsections&&at.subsubsections.length>0?(L(),G("div",EZt,[(L(!0),G(Rt,null,un(at.subsubsections,(mt,T)=>(L(),G("div",{key:T,class:"subsubsection-item"},[x("div",kZt,[Ee.value!=="subsubsection"||Q.value!==`${Ue}-${lt}-${wt}-${T}`?(L(),G("div",{key:0,class:oe(["subsubsection-title",{disabled:g.value}]),onClick:I=>!g.value&&to(mt,"subsubsection",`${Ue}-${lt}-${wt}-${T}`,mt.title)},je(mt.title),11,TZt)):(L(),G("div",_Zt,[x("div",DZt,[cn(x("textarea",{"onUpdate:modelValue":se[10]||(se[10]=I=>me.value=I),class:"edit-textarea subsubsection-edit-textarea",onKeyup:$r(Po,["esc"]),onKeydown:$r(en(pr,["ctrl"]),["enter"]),onBlur:pr,ref_for:!0,ref:"subsubsectionEditInput",autofocus:""},null,40,IZt),[[qr,me.value]]),se[48]||(se[48]=x("div",{class:"edit-options-inline"},null,-1))])]))])]))),128))])):xe("",!0)])):xe("",!0)],64))),128))])):xe("",!0)])):xe("",!0)],64))),128))])],42,ZQt)):xe("",!0)],64))),128)),X.value.length<6?(L(),G("div",OZt,[x("button",{class:"add-chapter-btn",onClick:se[11]||(se[11]=Ie=>Oi("chapter",null))},se[49]||(se[49]=[x("img",{src:X8,alt:"添加章节",class:"add-icon"},null,-1),x("span",null,"添加新章节",-1)]))])):xe("",!0)])):(L(),G("div",MZt,se[50]||(se[50]=[ki('<div class="outline-chapter" data-v-a91572ba><h4 data-v-a91572ba>第一章 安全生产基本原则</h4><div class="outline-section" data-v-a91572ba><div class="section-item" data-v-a91572ba>1.1 安全生产的重要性</div><div class="section-item" data-v-a91572ba>1.2 安全生产相关法规</div><div class="section-subsection" data-v-a91572ba><div class="subsection-item" data-v-a91572ba>1.2.1 《中华人民共和国安全生产法》解读</div><div class="subsection-item" data-v-a91572ba>1.2.2 建筑工程安全管理规范</div></div></div></div><div class="outline-chapter" data-v-a91572ba><h4 data-v-a91572ba>第二章 施工现场安全管理</h4><div class="outline-section" data-v-a91572ba><div class="section-item" data-v-a91572ba>2.1 安全责任制度</div><div class="section-item" data-v-a91572ba>2.2 安全教育培训</div><div class="section-item" data-v-a91572ba>2.3 安全检查与隐患排查</div></div></div><div class="outline-chapter" data-v-a91572ba><h4 data-v-a91572ba>第三章 常见安全隐患及防范措施</h4><div class="outline-section" data-v-a91572ba><div class="section-item" data-v-a91572ba>3.1 高空作业安全</div><div class="section-subsection" data-v-a91572ba><div class="subsection-item" data-v-a91572ba>3.1.1 脚手架搭设及使用安全规范</div></div><div class="section-item" data-v-a91572ba>3.2 用电安全</div><div class="section-item" data-v-a91572ba>3.3 消防安全</div></div></div><div class="outline-chapter" data-v-a91572ba><h4 data-v-a91572ba>第四章 安全事故案例分析</h4><div class="outline-section" data-v-a91572ba><div class="section-item" data-v-a91572ba>4.1 典型事故分析与教训</div></div></div><div class="outline-chapter" data-v-a91572ba><h4 data-v-a91572ba>第五章 总结与展望</h4></div>',5)])))],2)]),x("div",PZt,[x("div",NZt,[se[55]||(se[55]=x("div",{class:"section-header"},[x("img",{src:OYt,alt:"统计",class:"section-icon"}),x("h5",null,"大纲统计信息")],-1)),x("div",RZt,[x("div",BZt,[se[51]||(se[51]=x("span",{class:"stat-label"},"总章节数:",-1)),x("span",LZt,je(te.value.totalChapters||0)+"章",1)]),x("div",FZt,[se[52]||(se[52]=x("span",{class:"stat-label"},"总小节数:",-1)),x("span",UZt,je(te.value.totalSections||0)+"小节",1)]),x("div",zZt,[se[53]||(se[53]=x("span",{class:"stat-label"},"预计PPT页数:",-1)),x("span",$Zt,je(te.value.estimatedPages||"0页"),1)]),x("div",jZt,[se[54]||(se[54]=x("span",{class:"stat-label"},"预计讲解时长:",-1)),x("span",HZt,je(te.value.estimatedTime||"0分钟"),1)])])]),se[63]||(se[63]=ki('<div class="sidebar-section" data-v-a91572ba><div class="section-header" data-v-a91572ba><img src="'+MYt+'" alt="提示" class="section-icon" data-v-a91572ba><h5 data-v-a91572ba>大纲编辑提示</h5></div><div class="section-content" data-v-a91572ba><ul class="tip-list" data-v-a91572ba><li data-v-a91572ba>点击标题文本可直接在白色区域编辑内容</li><li data-v-a91572ba>悬停在章节上将显示编辑选项</li><li data-v-a91572ba>编辑完成后系统会自动保存更改</li><li data-v-a91572ba>如果内容较多,滚动白色区域可浏览更多大纲内容</li><li data-v-a91572ba>章节顺序可以通过拖拽调整</li></ul></div></div>',1)),x("div",WZt,[se[59]||(se[59]=x("div",{class:"section-header"},[x("h5",null,"大纲评价")],-1)),x("div",VZt,[se[58]||(se[58]=x("p",{class:"evaluation-question"},"这个大纲对您的需求满意度如何?",-1)),x("div",qZt,[x("button",{class:oe(["eval-btn satisfied",{active:Ur()==="satisfied"}]),onClick:se[12]||(se[12]=Ie=>Hr("satisfied")),disabled:h.value},se[56]||(se[56]=[x("img",{src:Qy,alt:"满意",class:"eval-icon"},null,-1),bn(" 满意 ",-1)]),10,GZt),x("button",{class:oe(["eval-btn unsatisfied",{active:Ur()==="unsatisfied"}]),onClick:se[13]||(se[13]=Ie=>Hr("unsatisfied")),disabled:h.value},se[57]||(se[57]=[x("img",{src:Zy,alt:"不满意",class:"eval-icon"},null,-1),bn(" 不满意 ",-1)]),10,KZt)])])]),x("div",YZt,[x("button",{class:"action-btn secondary",onClick:Sr,disabled:h.value||g.value},[x("img",{src:Ej,alt:"刷新",class:oe(["action-icon",{rotating:h.value}])},null,2),se[60]||(se[60]=bn(" 生成新大纲 ",-1))],8,QZt),R.value?xe("",!0):(L(),G("button",{key:0,class:"action-btn primary",onClick:ne,disabled:h.value||g.value},se[61]||(se[61]=[bn(" 继续创作 ",-1),x("img",{src:kj,alt:"箭头",class:"action-icon"},null,-1)]),8,ZZt)),N.value&&R.value?(L(),G("button",{key:1,class:"action-btn primary",onClick:Ge,style:{background:"#EA580C",color:"#fff"}},se[62]||(se[62]=[bn(" 修改PPT模板 ",-1),x("img",{src:kj,alt:"箭头",class:"action-icon"},null,-1)]))):xe("",!0)])])])])):xe("",!0),d.value==="step3"?(L(),G("div",{key:2,class:oe(["step3-content",{disabled:y.value}])},[m.value?(L(),G("div",XZt,se[64]||(se[64]=[x("div",{class:"loading-content"},[x("div",{class:"loading-spinner"}),x("div",{class:"loading-text"},"正在加载历史记录"),x("div",{class:"loading-subtitle"},"请稍候,正在为您准备数据...")],-1)]))):xe("",!0),x("div",JZt,[y.value?(L(),G("div",eXt,se[65]||(se[65]=[x("div",{class:"applying-content"},[x("p",null,"AI正在填充内容并应用模板,请稍候...")],-1)]))):xe("",!0),x("div",tXt,[x("div",nXt,[x("div",rXt,[se[66]||(se[66]=x("h3",{class:"preview-title"},"预览效果",-1)),x("span",oXt,"已保存于 "+je(Un.value),1)]),x("div",iXt,[ze.value?xe("",!0):(L(),G("div",aXt,[x("button",{class:"carousel-btn prev",onClick:Ot},se[67]||(se[67]=[x("img",{src:PYt,alt:"上一页",class:"carousel-icon"},null,-1)])),x("div",sXt,[Re.value&&Re.value.length>0?(L(),G("div",lXt,[x("div",{class:"slide-content",style:rn({background:Xs()})},[(L(!0),G(Rt,null,un(Bo().elements,(Ie,Ue)=>(L(),G("div",{key:Ie.id,class:"slide-element",style:rn(XC(Ie))},[Ie.type==="text"?(L(),G("div",{key:0,innerHTML:Ie.content},null,8,uXt)):Ie.type==="image"&&Ie.src?(L(),G("img",{key:1,src:Ie.src,alt:Ie.id},null,8,cXt)):xe("",!0)],4))),128))],4)])):(L(),G("img",{key:1,src:vn.value,alt:`第${ie.value+1}页`,class:"slide-image"},null,8,dXt))]),x("button",{class:"carousel-btn next",onClick:ln},se[68]||(se[68]=[x("img",{src:NYt,alt:"下一页",class:"carousel-icon"},null,-1)]))])),ze.value?(L(),G("div",fXt,[x("div",pXt,[ze.value&&Re.value.length>0?(L(),G("div",{key:0,class:"slide-preview",style:rn({transform:`scale(${Kt.value})`,background:Xs()})},[x("div",hXt,je(Re.value.length)+"页, 当前第"+je(gt.value+1)+"页 ",1),se[69]||(se[69]=x("div",{class:"ppt-preview-tip"},[x("p",null,"💡 点击背景图片、素材图片可更换")],-1)),(L(!0),G(Rt,null,un(Al().elements,(Ie,Ue)=>(L(),G("div",{key:Ie.id,class:oe(["preview-element",{selected:Bt.value===Ue}]),style:rn(XC(Ie)),onClick:en(Ze=>w2(Ue),["stop"]),onDblclick:Ze=>v9(),onMousedown:Ze=>JC(Ze,Ue)},[Bt.value===Ue?(L(),G("div",{key:0,class:"resize-handle resize-handle-nw",onMousedown:en(Ze=>Dm(Ze,Ue,"nw"),["stop"])},null,40,vXt)):xe("",!0),Bt.value===Ue?(L(),G("div",{key:1,class:"resize-handle resize-handle-ne",onMousedown:en(Ze=>Dm(Ze,Ue,"ne"),["stop"])},null,40,mXt)):xe("",!0),Bt.value===Ue?(L(),G("div",{key:2,class:"resize-handle resize-handle-sw",onMousedown:en(Ze=>Dm(Ze,Ue,"sw"),["stop"])},null,40,yXt)):xe("",!0),Bt.value===Ue?(L(),G("div",{key:3,class:"resize-handle resize-handle-se",onMousedown:en(Ze=>Dm(Ze,Ue,"se"),["stop"])},null,40,bXt)):xe("",!0),Bt.value===Ue?(L(),G("div",{key:4,class:"drag-handle",onMousedown:en(Ze=>JC(Ze,Ue),["stop"])},je(h9(Ie.type)),41,wXt)):xe("",!0),Ie.type==="image"&&Ie.src?(L(),G("img",{key:5,src:Ie.src,alt:Ie.id,style:rn({opacity:Ie.opacity||1}),onClick:Ze=>ex(Ue),onMousedown:se[14]||(se[14]=en(()=>{},["stop"]))},null,44,AXt)):Ie.type==="text"?(L(),G(Rt,{key:6},[Lt.value===Ue?(L(),G("div",{key:0,class:"inline-editor",contenteditable:"true",innerHTML:an.value,style:rn({color:Ie.defaultColor,fontFamily:Ie.defaultFontName,opacity:Ie.opacity||1}),onInput:m9,onBlur:Ze=>y9(Ue),onMousedown:se[15]||(se[15]=en(()=>{},["stop"])),onKeydown:se[16]||(se[16]=en(()=>{},["stop"]))},null,44,CXt)):(L(),G("div",{key:1,innerHTML:Ie.content,style:rn({color:Ie.defaultColor,fontFamily:Ie.defaultFontName,opacity:Ie.opacity||1})},null,12,xXt))],64)):Ie.type==="shape"?(L(),G("div",{key:7,class:"shape",style:rn(g9(Ie))},null,4)):xe("",!0)],46,gXt))),128))],4)):ze.value&&Re.value.length===0?(L(),G("div",SXt,[x("div",EXt,[x("div",{class:"slide-content",contenteditable:"true",onInput:Tr},[x("h2",kXt,je(Be.value.title||"点击编辑标题"),1),x("div",TXt,[x("p",null,je(Be.value.content||"点击编辑内容"),1)])],32)])])):xe("",!0)])])):xe("",!0)]),x("div",_Xt,[ze.value?xe("",!0):(L(),G("div",DXt,[x("div",IXt,[bn(" 第"+je(ie.value+1)+"页/共"+je(pt.value.length)+"页 ",1),x("div",OXt,[(L(!0),G(Rt,null,un(pt.value,(Ie,Ue)=>(L(),G("div",{key:Ue,class:oe(["progress-dot",{active:Ue===ie.value}]),onClick:Ze=>fn(Ue)},null,10,MXt))),128))])]),x("div",{class:"thumbnail-strip",onWheel:sr,ref_key:"thumbnailStrip",ref:_p},[(L(!0),G(Rt,null,un(pt.value,(Ie,Ue)=>(L(),G("div",{key:Ue,class:oe(["thumbnail-item",{active:Ue===ie.value}]),onClick:Ze=>fn(Ue)},[x("img",{src:Ie,alt:`第${Ue+1}页`,class:"thumbnail-image"},null,8,NXt),x("div",RXt,je(Ue+1),1)],10,PXt))),128))],544)])),ze.value&&Re.value.length>0?(L(),G("div",BXt,[x("div",LXt,[bn(" 第"+je(gt.value+1)+"页/共"+je(Re.value.length)+"页 ",1),x("div",FXt,[(L(!0),G(Rt,null,un(Re.value,(Ie,Ue)=>(L(),G("div",{key:Ue,class:oe(["progress-dot",{active:Ue===gt.value}]),onClick:Ze=>Cn(Ue)},null,10,UXt))),128))])]),x("div",{class:"thumbnail-strip",onWheel:sr,ref_key:"thumbnailStrip",ref:_p},[(L(!0),G(Rt,null,un(Re.value,(Ie,Ue)=>(L(),G("div",{key:Ue,class:oe(["thumbnail-item",{active:Ue===gt.value}]),onClick:Ze=>Cn(Ue)},[x("div",{class:"thumbnail-preview",style:rn({background:_m(Ie)})},[x("div",$Xt,[(L(!0),G(Rt,null,un(Ie.elements,Ze=>(L(),G("div",{key:Ze.id,class:"thumbnail-element",style:rn(b2(Ze))},[Ze.type==="text"?(L(),G("div",{key:0,innerHTML:Ze.content},null,8,jXt)):Ze.type==="image"&&Ze.src?(L(),G("img",{key:1,src:Ze.src,alt:Ze.id},null,8,HXt)):xe("",!0)],4))),128))])],4),x("div",WXt,je(Ue+1),1)],10,zXt))),128))],544)])):xe("",!0)])])]),x("div",VXt,[ze.value?xe("",!0):(L(),G("div",{key:0,class:oe(["template-content",{disabled:y.value}])},[x("h4",qXt,"模板样式 ("+je(Dt.value.length)+")",1),x("div",GXt,[(L(!0),G(Rt,null,un(Dt.value,(Ie,Ue)=>(L(),G("div",{key:Ue,class:oe(["template-item",{active:ue.value===Ue}]),onClick:Ze=>{Pi(Ue),_9()}},[x("div",YXt,[x("img",{src:Ie.thumbnail,alt:Ie.title,class:"template-img"},null,8,QXt)]),x("div",ZXt,[x("h5",XXt,je(Ie.title),1),x("div",JXt,[x("span",eJt,je(Ie.updateTime),1),x("span",tJt,je(Ie.pageCount)+"页",1)]),Ie.description?(L(),G("div",nJt,je(Ie.description),1)):xe("",!0)])],10,KXt))),128))]),y.value?(L(),G("div",rJt,se[70]||(se[70]=[x("div",{class:"applying-content"},[x("p",null,"AI正在填充内容并应用模板,请稍候...")],-1)]))):xe("",!0)],2)),ze.value?(L(),G("div",{key:1,class:oe(["download-content",{disabled:b.value||g.value}])},[se[75]||(se[75]=x("h4",{class:"sidebar-title"},"下载选项",-1)),b.value?(L(),G("div",oJt,se[71]||(se[71]=[x("div",{class:"applying-content"},[x("p",null,"AI正在生成培训讲义,请稍候...")],-1)]))):xe("",!0),g.value?(L(),G("div",iJt,se[72]||(se[72]=[x("div",{class:"applying-content"},[x("p",null,"AI正在生成考试题目,请稍候...")],-1)]))):xe("",!0),x("div",aJt,[(L(!0),G(Rt,null,un(Gt.value,(Ie,Ue)=>(L(),G("div",{key:Ue,class:oe(["download-option",{active:Fe.value===Ue}]),onClick:Ze=>C9(Ue)},[x("div",lJt,[x("img",{src:Ie.icon,alt:Ie.title,class:"option-img"},null,8,uJt)]),x("div",cJt,[x("h5",dJt,je(Ie.title),1),x("p",fJt,je(Ie.description),1)]),Fe.value===Ue?(L(),G("div",pJt,se[73]||(se[73]=[x("img",{src:RYt,alt:"选中",class:"check-icon"},null,-1)]))):xe("",!0)],10,sJt))),128))]),x("div",hJt,[x("button",{class:"action-btn secondary",onClick:x9}," 重新挑选模板 "),x("button",{class:"action-btn primary",onClick:ur,disabled:ar.value},[se[74]||(se[74]=x("img",{src:BYt,alt:"下载",class:"download-icon"},null,-1)),bn(" "+je(ar.value?"生成中...":"立即下载"),1)],8,gJt)])],2)):xe("",!0)])]),ze.value?xe("",!0):(L(),G("div",vJt,[x("button",{class:"action-btn secondary",onClick:$t}," 返回编辑大纲 "),x("button",{class:"action-btn primary",onClick:uo,disabled:y.value},[y.value?(L(),G("span",bJt,"正在处理中...")):(L(),G("span",yJt,"应用此模板"))],8,mJt)]))],2)):xe("",!0)]),d.value==="step1"&&!E.value&&!W.value?(L(),G("div",wJt,[(L(!0),G(Rt,null,un(S.value,(Ie,Ue)=>(L(),G("div",{key:Ie.id||Ue,class:"question-tag",onClick:Ze=>Rr(Ie.question)},[x("img",{src:Kr(Ie.question),alt:"问题",class:"question-icon"},null,8,CJt),bn(" "+je(Ie.question),1)],8,AJt))),128)),S.value.length===0?(L(),G("div",{key:0,class:"question-tag",onClick:se[17]||(se[17]=Ie=>Rr("施工现场安全培训的主要内容有哪些?"))},se[76]||(se[76]=[x("img",{src:lk,alt:"问题",class:"question-icon"},null,-1),bn(" 施工现场安全培训的主要内容有哪些? ",-1)]))):xe("",!0),S.value.length===0?(L(),G("div",{key:1,class:"question-tag",onClick:se[18]||(se[18]=Ie=>Rr("高空作业安全防护措施有哪些要求?"))},se[77]||(se[77]=[x("img",{src:uk,alt:"问题",class:"question-icon"},null,-1),bn(" 高空作业安全防护措施有哪些要求? ",-1)]))):xe("",!0),S.value.length===0?(L(),G("div",{key:2,class:"question-tag",onClick:se[19]||(se[19]=Ie=>Rr("《建设工程安全生产管理条例》"))},se[78]||(se[78]=[x("img",{src:ck,alt:"文档",class:"question-icon"},null,-1),bn(" 《建设工程安全生产管理条例》 ",-1)]))):xe("",!0)])):xe("",!0),d.value==="step1"?(L(),G("div",xJt,[x("div",SJt,[W.value?(L(),G("div",EJt,[x("div",kJt,[x("div",TJt,[W.value.type===".doc"||W.value.type===".docx"?(L(),G("img",{key:0,src:W.value.icon,alt:"文档图标",class:"file-icon-img"},null,8,_Jt)):(L(),G("span",DJt,je(W.value.icon),1))]),x("div",IJt,[x("div",OJt,je(W.value.name),1),x("div",MJt,je(Im(W.value.size)),1)]),x("button",{class:"remove-file-btn",onClick:ix},se[79]||(se[79]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0),x("div",PJt,[x("button",{class:"attach-btn",onClick:N9,disabled:_.value||H.value},se[80]||(se[80]=[x("div",{class:"icon-container"},[x("img",{src:bq,alt:"附件",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}})],-1)]),8,NJt),cn(x("input",{type:"text",placeholder:"请在此处发送消息 (Enter键可立即发送)",class:"message-input","onUpdate:modelValue":se[20]||(se[20]=Ie=>t.value=Ie),onKeyup:$r(zo,["enter"]),onInput:O9,disabled:_.value||H.value,maxlength:"2000"},null,40,RJt),[[qr,t.value]]),x("button",{class:oe(["voice-btn",{recording:C(j)}]),onClick:z9,disabled:_.value||H.value},[x("div",LJt,[se[81]||(se[81]=x("img",{src:rp,alt:"语音",class:"action-icon",style:{width:"20px",height:"20px","max-width":"20px","max-height":"20px"}},null,-1)),C(j)?(L(),G("div",FJt)):xe("",!0)])],10,BJt),se[82]||(se[82]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:zo,disabled:_.value||H.value||!t.value.trim()},[x("img",{src:t.value.trim()&&!_.value&&!H.value?C(ip):C(op),alt:"发送",class:"send-icon"},null,8,zJt)],8,UJt)])])])):xe("",!0),x("input",{ref_key:"fileInput",ref:rx,type:"file",accept:".docx",style:{display:"none"},onChange:U9},null,544),x("input",{ref_key:"imageInput",ref:T9,type:"file",accept:"image/*",style:{display:"none"},onChange:w9},null,544),He(h0,{visible:l.value,title:"删除历史记录",message:re.value,onConfirm:kn,onCancel:Ye,onClose:Ye},null,8,["visible","message"]),O.value?(L(),G("div",$Jt,se[83]||(se[83]=[x("div",{class:"copy-toast",style:{background:"rgba(0, 0, 0, 0.8)",color:"white",padding:"16px 24px","border-radius":"8px","font-size":"16px","font-weight":"500","box-shadow":"0 4px 12px rgba(0, 0, 0, 0.3)"}}," 已复制大纲 ",-1)]))):xe("",!0),M.value?(L(),G("div",{key:3,class:"wps-modal-overlay",onClick:se[23]||(se[23]=Ie=>M.value=!1),style:{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",background:"rgba(0, 0, 0, 0.8)",display:"flex","justify-content":"center","align-items":"center","z-index":"9999"}},[x("div",{class:"wps-modal",onClick:se[22]||(se[22]=en(()=>{},["stop"])),style:{width:"98%",height:"95%","max-width":"none","max-height":"none",background:"white","border-radius":"8px","box-shadow":"0 10px 30px rgba(0, 0, 0, 0.3)",display:"flex","flex-direction":"column",overflow:"hidden"}},[x("div",jJt,[se[84]||(se[84]=x("h3",{style:{margin:"0","font-size":"18px","font-weight":"600",color:"#333"}},null,-1)),x("button",{class:"wps-modal-close",onClick:se[21]||(se[21]=Ie=>M.value=!1),style:{background:"none",border:"none","font-size":"24px",color:"#666",cursor:"pointer",padding:"0",width:"30px",height:"30px",display:"flex","align-items":"center","justify-content":"center"}},"×")]),x("div",HJt,[x("div",WJt,[x("iframe",{src:k.value,frameborder:"0",allowfullscreen:"",class:"wps-iframe",title:"WPS AI PPT",onError:Oe,style:{width:"100%",height:"calc(100% - 30px)",border:"none"}},null,40,VJt),R.value?xe("",!0):(L(),G("div",qJt," 蜀安AI PPT "))])])])])):xe("",!0)])]))}},KJt=Zo(GJt,[["__scopeId","data-v-a91572ba"]]),YJt={name:"TemplateEditor",data(){return{currentTemplateType:"cover",currentTemplateId:"cover-1",selectedElementIndex:-1,zoom:.6,showJSONEditor:!1,jsonContent:"",editingElementIndex:-1,editingHtml:"",isExportingImages:!1,currentSlide:{id:"cover-1",name:"封面模板1",type:"cover",background:{type:"color",color:"#ffffff"},elements:[]},availableTemplates:[],templateLibrary:{},gridSnap:!1,undoStack:[],redoStack:[],lastKeyUndoTs:0,outlineData:null,generatedPPT:[],isGenerating:!1,isPPTPreviewMode:!1,currentPPTPreviewIndex:0,selectedPPTElementIndex:-1,editingPPTElementIndex:-1,editingPPTHtml:""}},async mounted(){console.log("TemplateEditor组件已挂载,控制台输出测试"),await this.loadTemplateLibrary(),this.refreshAvailableTemplates(),this.loadDefaultTemplate(),this.$nextTick(()=>{this.fitPreviewToContainer(),window.addEventListener("resize",this.fitPreviewToContainer)}),document.addEventListener("keydown",this.handleKeydown),document.addEventListener("keydown",this.handleUndoHotkeys)},beforeUnmount(){document.removeEventListener("keydown",this.handleKeydown),document.removeEventListener("keydown",this.handleUndoHotkeys),document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd),window.removeEventListener("resize",this.fitPreviewToContainer)},methods:{async loadTemplateLibrary(){try{const e=["/mocks/template_7.json","/src/assets/mocks/template_7.json","/assets/mocks/template_7.json","./src/assets/mocks/template_7.json"];let t=null;for(const n of e)try{const r=await fetch(n);if(r.ok){const o=r.headers.get("content-type");if(o&&o.includes("application/json")){t=await r.json(),console.log(`成功从 ${n} 加载模板库`);break}else console.warn(`${n} 返回的不是JSON格式`)}}catch(r){console.warn(`无法从 ${n} 加载模板库:`,r.message)}t?(this.templateLibrary=t.reduce((n,r)=>(n[r.id]=r,n),{}),console.log("模板库加载成功,包含模板:",Object.keys(this.templateLibrary))):(console.warn("所有路径都无法加载模板库,使用默认模板"),this.createDefaultTemplateLibrary())}catch(e){console.error("加载模板库失败:",e),this.createDefaultTemplateLibrary()}},createDefaultTemplateLibrary(){this.templateLibrary={"cover-1":{id:"cover-1",name:"默认封面模板",type:"cover",background:{type:"color",color:"#ffffff"},elements:[{id:"title-1",type:"text",left:100,top:200,width:760,height:80,content:'<p style="text-align: center;"><strong><span style="font-size: 48px; color: #2d3748;">标题</span></strong></p>',defaultColor:"#2d3748",defaultFontName:"微软雅黑",textType:"title",opacity:1},{id:"subtitle-1",type:"text",left:200,top:300,width:560,height:40,content:'<p style="text-align: center;"><span style="font-size: 20px; color: #6c757d;">副标题</span></p>',defaultColor:"#6c757d",defaultFontName:"微软雅黑",textType:"content",opacity:1}]},"content-1":{id:"content-1",name:"默认内容模板",type:"content",background:{type:"color",color:"#ffffff"},elements:[{id:"title-2",type:"text",left:100,top:50,width:760,height:60,content:'<p style="text-align: center;"><strong><span style="font-size: 28px; color: #2d3748;">内容标题</span></strong></p>',defaultColor:"#2d3748",defaultFontName:"微软雅黑",textType:"title",opacity:1}]}},console.log("已创建默认模板库")},refreshAvailableTemplates(){const e=Object.values(this.templateLibrary);this.availableTemplates=e.filter(t=>t.type===this.currentTemplateType).map(t=>({id:t.id,name:t.name||t.id})),this.availableTemplates.length&&!this.availableTemplates.find(t=>t.id===this.currentTemplateId)&&(this.currentTemplateId=this.availableTemplates[0].id)},loadDefaultTemplate(){const e=this.templateLibrary[this.currentTemplateId];e?this.currentSlide=JSON.parse(JSON.stringify(e)):this.createNewTemplate()},createNewTemplate(){this.currentSlide={id:`${this.currentTemplateType}-${Date.now()}`,name:`新建${this.getTemplateTypeName(this.currentTemplateType)}模板`,type:this.currentTemplateType,background:{type:"color",color:"#ffffff"},elements:[]}},loadTemplate(){const e=this.templateLibrary[this.currentTemplateId];e&&(this.currentSlide=JSON.parse(JSON.stringify(e)),this.selectedElementIndex=-1,this.$nextTick(this.fitPreviewToContainer))},newTemplate(){this.createNewTemplate(),this.selectedElementIndex=-1},saveTemplate(){this.templateLibrary[this.currentSlide.id]=JSON.parse(JSON.stringify(this.currentSlide)),console.log("模板已保存:",this.currentSlide.id),alert("模板保存成功!")},exportJSON(){const e={id:this.currentSlide.id,name:this.currentSlide.name,type:this.currentSlide.type,background:this.currentSlide.background,elements:this.currentSlide.elements},t=JSON.stringify(e,null,2),n=new Blob([t],{type:"application/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=`${this.currentSlide.id}.json`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r),console.log("模板已导出:",this.currentSlide.id),alert("模板导出成功!")},exportTemplateLibrary(){const e=Object.values(this.templateLibrary),t=JSON.stringify(e,null,2),n=new Blob([t],{type:"application/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=`template-library-${new Date().getTime()}.json`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r),console.log("模板库已导出"),alert("模板库导出成功!")},importJSON(){const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=t=>{const n=t.target.files[0];if(n){const r=new FileReader;r.onload=o=>{try{const i=JSON.parse(o.target.result);this.currentSlide=this.normalizeTemplateData(i),this.templateLibrary[this.currentSlide.id]=this.currentSlide,console.log("模板已导入:",this.currentSlide.id),alert(`模板导入成功!
- 模板ID: ${this.currentSlide.id}
- 模板名称: ${this.currentSlide.name}`)}catch(i){console.error("导入失败:",i),alert("导入失败:JSON格式错误")}},r.readAsText(n)}},e.click()},normalizeTemplateData(e){const t={id:e.id||`template-${Date.now()}`,name:e.name||"未命名模板",type:e.type||"content",background:e.background||{type:"color",color:"#ffffff"},elements:e.elements||[]};return t.background.type||(t.background.type="color"),!t.background.color&&t.background.type==="color"&&(t.background.color="#ffffff"),!t.background.gradient&&t.background.type==="gradient"&&(t.background.gradient={type:"linear",colors:[{color:"#ffffff",pos:0},{color:"#f0f0f0",pos:100}]}),Array.isArray(t.elements)||(t.elements=[]),t},onTemplateTypeChange(){this.refreshAvailableTemplates(),this.availableTemplates.length>0&&(this.currentTemplateId=this.availableTemplates[0].id),this.loadTemplate()},onTemplateIdChange(){this.loadTemplate()},fitPreviewToContainer(){const e=this.$refs.previewContainer;if(!e)return;const t=960,n=540,r=40,o=e.clientWidth-r,i=e.clientHeight-r,a=Math.max(.1,Math.min(o/t,i/n));this.zoom=parseFloat(a.toFixed(2))},selectElement(e){this.selectedElementIndex=e},onPreviewClick(){if(this.isPPTPreviewMode){if(this.editingPPTElementIndex!==-1){this.savePPTInlineEdit(this.editingPPTElementIndex);return}this.editingPPTElementIndex=-1}else{if(this.editingElementIndex!==-1){this.saveInlineEdit(this.editingElementIndex);return}this.deselectElement()}},deselectElement(){this.selectedElementIndex=-1},addElement(){const e={id:`element-${Date.now()}`,type:"text",left:100,top:100,width:200,height:50,content:"新文本元素",defaultColor:"#000000",defaultFontName:"微软雅黑",opacity:1};this.currentSlide.elements.push(e),this.selectedElementIndex=this.currentSlide.elements.length-1},addImageElement(){const e={id:`image-${Date.now()}`,type:"image",left:100,top:100,width:200,height:150,src:"https://images.unsplash.com/photo-1557682250-33bd709cbe85?w=200&h=150&fit=crop&crop=center",opacity:1};this.currentSlide.elements.push(e),this.selectedElementIndex=this.currentSlide.elements.length-1},addShapeElement(){const e={id:`shape-${Date.now()}`,type:"shape",left:100,top:100,width:100,height:100,fill:"#007bff",opacity:1};this.currentSlide.elements.push(e),this.selectedElementIndex=this.currentSlide.elements.length-1},deleteElement(e){this.currentSlide.elements.splice(e,1),this.selectedElementIndex=-1},updateElement(){},updateSlide(){},updateSlideBackground(){},zoomIn(){this.zoom=Math.min(this.zoom+.1,2)},zoomOut(){this.zoom=Math.max(this.zoom-.1,.1)},handleWheel(e){e.preventDefault();const t=e.deltaY>0?-.1:.1;this.zoom=Math.max(.1,Math.min(2,this.zoom+t))},getElementStyle(e){return{position:"absolute",left:e.left+"px",top:e.top+"px",width:e.width+"px",height:e.height+"px",transform:e.rotate?`rotate(${e.rotate}deg)`:"none"}},getShapeStyle(e){return{width:"100%",height:"100%",backgroundColor:e.fill,borderRadius:e.viewBox?"8px":"0",opacity:e.opacity||1}},getGradientStyle(e){return e.type==="linear"?`linear-gradient(to right, ${e.colors.map(n=>`${n.color} ${n.pos}%`).join(", ")})`:e.type==="radial"?`radial-gradient(circle, ${e.colors.map(n=>`${n.color} ${n.pos}%`).join(", ")})`:"#ffffff"},getElementTypeName(e){return{text:"文本",image:"图片",shape:"形状"}[e]||e},getTemplateTypeName(e){return{cover:"封面",contents:"目录",transition:"过渡",content:"内容",end:"结束"}[e]||e},addGradientColor(){this.currentSlide.background||(this.currentSlide.background={type:"gradient"}),this.currentSlide.background.gradient||(this.currentSlide.background.gradient={type:"linear",colors:[]}),this.currentSlide.background.gradient.colors.push({color:"#ffffff",pos:0})},removeGradientColor(e){this.currentSlide.background&&this.currentSlide.background.gradient&&this.currentSlide.background.gradient.colors&&this.currentSlide.background.gradient.colors.splice(e,1)},applyJSON(){try{const e=JSON.parse(this.jsonContent);this.currentSlide=e,this.templateLibrary[e.id]=e,this.showJSONEditor=!1,console.log("JSON更改已应用:",e.id),alert("JSON更改已应用!")}catch(e){console.error("JSON解析失败:",e),alert("JSON格式错误,请检查语法")}},openJSONEditor(){this.jsonContent=JSON.stringify(this.currentSlide,null,2),this.showJSONEditor=!0},copyElement(e){const t=this.currentSlide.elements[e],n=JSON.parse(JSON.stringify(t));n.id=`${t.id}-copy-${Date.now()}`,n.left+=20,n.top+=20,this.currentSlide.elements.push(n),this.selectedElementIndex=this.currentSlide.elements.length-1,console.log("元素已复制:",n.id)},moveElementUp(e){if(e>0){const t=this.currentSlide.elements[e];this.currentSlide.elements[e]=this.currentSlide.elements[e-1],this.currentSlide.elements[e-1]=t,this.selectedElementIndex=e-1}},moveElementDown(e){if(e<this.currentSlide.elements.length-1){const t=this.currentSlide.elements[e];this.currentSlide.elements[e]=this.currentSlide.elements[e+1],this.currentSlide.elements[e+1]=t,this.selectedElementIndex=e+1}},resetZoom(){this.zoom=.6},startInlineEdit(){},onInlineInput(){},saveInlineEdit(e){const t=this.currentSlide.elements[e];!t||t.type!=="text"||(this.pushUndoState(),t.content=this.editingHtml,this.editingElementIndex=-1,this.editingHtml="")},fitToScreen(){this.zoom=.4},isDragging:!1,isResizing:!1,dragStartX:0,dragStartY:0,dragStartLeft:0,dragStartTop:0,resizeStartWidth:0,resizeStartHeight:0,resizeDirection:"",startDrag(e,t){this.selectedElementIndex!==t&&this.selectElement(t),this.pushUndoState(),this.isDragging=!0,this.dragStartX=e.clientX,this.dragStartY=e.clientY,this.dragStartLeft=this.currentSlide.elements[t].left,this.dragStartTop=this.currentSlide.elements[t].top,document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.onDragEnd),e.preventDefault()},onDragMove(e){if(!this.isDragging)return;const t=(e.clientX-this.dragStartX)/this.zoom,n=(e.clientY-this.dragStartY)/this.zoom,r=this.currentSlide.elements[this.selectedElementIndex];let o=this.dragStartLeft+t,i=this.dragStartTop+n;this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.left=o,r.top=i},onDragEnd(){this.isDragging=!1,document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd)},startResize(e,t,n){this.selectedElementIndex!==t&&this.selectElement(t),this.pushUndoState(),this.isResizing=!0,this.resizeDirection=n,this.dragStartX=e.clientX,this.dragStartY=e.clientY,this.resizeStartWidth=this.currentSlide.elements[t].width,this.resizeStartHeight=this.currentSlide.elements[t].height,this.dragStartLeft=this.currentSlide.elements[t].left,this.dragStartTop=this.currentSlide.elements[t].top,document.addEventListener("mousemove",this.onResizeMove),document.addEventListener("mouseup",this.onResizeEnd),e.preventDefault()},onResizeMove(e){if(!this.isResizing)return;const t=(e.clientX-this.dragStartX)/this.zoom,n=(e.clientY-this.dragStartY)/this.zoom,r=this.currentSlide.elements[this.selectedElementIndex];let o,i;switch(this.resizeDirection){case"se":o=Math.max(20,this.resizeStartWidth+t),i=Math.max(20,this.resizeStartHeight+n),this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.width=o,r.height=i;break;case"sw":o=Math.max(20,this.resizeStartWidth-t),i=Math.max(20,this.resizeStartHeight+n),this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.width=o,r.height=i,r.left=this.dragStartLeft+(this.resizeStartWidth-r.width);break;case"ne":o=Math.max(20,this.resizeStartWidth+t),i=Math.max(20,this.resizeStartHeight-n),this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.width=o,r.height=i,r.top=this.dragStartTop+(this.resizeStartHeight-r.height);break;case"nw":o=Math.max(20,this.resizeStartWidth-t),i=Math.max(20,this.resizeStartHeight-n),this.gridSnap&&(o=this.snapToGrid(o,20),i=this.snapToGrid(i,20)),r.width=o,r.height=i,r.left=this.dragStartLeft+(this.resizeStartWidth-r.width),r.top=this.dragStartTop+(this.resizeStartHeight-r.height);break}},onResizeEnd(){this.isResizing=!1,document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd)},handleKeydown(e){if(this.isPPTPreviewMode){if(this.selectedPPTElementIndex===-1)return;const t=this.getCurrentPPTSlide(),n=t.elements[this.selectedPPTElementIndex],r=e.shiftKey?10:1;switch(e.key){case"ArrowLeft":e.preventDefault(),n.left-=r;break;case"ArrowRight":e.preventDefault(),n.left+=r;break;case"ArrowUp":e.preventDefault(),n.top-=r;break;case"ArrowDown":e.preventDefault(),n.top+=r;break;case"Delete":case"Backspace":e.preventDefault(),t.elements.splice(this.selectedPPTElementIndex,1),this.selectedPPTElementIndex=-1;break;case"Escape":e.preventDefault(),this.selectedPPTElementIndex=-1;break}}else{if(this.selectedElementIndex===-1)return;const t=this.currentSlide.elements[this.selectedElementIndex],n=e.shiftKey?10:1;switch(e.key){case"ArrowLeft":e.preventDefault(),this.pushUndoState(),t.left-=n;break;case"ArrowRight":e.preventDefault(),this.pushUndoState(),t.left+=n;break;case"ArrowUp":e.preventDefault(),this.pushUndoState(),t.top-=n;break;case"ArrowDown":e.preventDefault(),this.pushUndoState(),t.top+=n;break;case"Delete":case"Backspace":e.preventDefault(),this.pushUndoState(),this.deleteElement(this.selectedElementIndex);break;case"Escape":e.preventDefault(),this.deselectElement();break}}},handleUndoHotkeys(e){const t=(e.ctrlKey||e.metaKey)&&!e.shiftKey&&e.key.toLowerCase()==="z",n=(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.key.toLowerCase()==="z";t?(e.preventDefault(),this.undo()):n&&(e.preventDefault(),this.redo())},pushUndoState(){const e=JSON.parse(JSON.stringify({currentSlide:this.currentSlide,selectedElementIndex:this.selectedElementIndex}));this.undoStack.push(e),this.redoStack=[],this.undoStack.length>50&&this.undoStack.shift()},undo(){if(!this.undoStack.length)return;const e=this.undoStack.pop(),t=JSON.parse(JSON.stringify({currentSlide:this.currentSlide,selectedElementIndex:this.selectedElementIndex}));this.redoStack.push(t),this.currentSlide=JSON.parse(JSON.stringify(e.currentSlide)),this.selectedElementIndex=e.selectedElementIndex},redo(){if(!this.redoStack.length)return;const e=this.redoStack.pop(),t=JSON.parse(JSON.stringify({currentSlide:this.currentSlide,selectedElementIndex:this.selectedElementIndex}));this.undoStack.push(t),this.currentSlide=JSON.parse(JSON.stringify(e.currentSlide)),this.selectedElementIndex=e.selectedElementIndex},snapToGrid(e,t=10){return Math.round(e/t)*t},enableGridSnap(){this.gridSnap=!0},disableGridSnap(){this.gridSnap=!1},toggleGridSnap(){this.gridSnap=!this.gridSnap},importOutline(){const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=t=>{const n=t.target.files[0];if(n){const r=new FileReader;r.onload=o=>{try{const i=JSON.parse(o.target.result);this.outlineData=i,console.log("大纲已导入:",i),alert(`大纲导入成功!
- 包含 ${i.length} 个页面`)}catch(i){console.error("大纲导入失败:",i),alert("导入失败:JSON格式错误")}},r.readAsText(n)}},e.click()},async generatePPT(){if(!this.outlineData){alert("请先导入大纲");return}this.isGenerating=!0;try{this.generatedPPT=[];for(let e=0;e<this.outlineData.length;e++){const t=this.outlineData[e],n=this.matchTemplate(t),r=this.fillTemplateContent(n,t);this.generatedPPT.push(r)}console.log("PPT生成完成:",this.generatedPPT),alert(`PPT生成成功!
- 共生成 ${this.generatedPPT.length} 页幻灯片`),this.exportGeneratedPPT()}catch(e){console.error("PPT生成失败:",e),alert("PPT生成失败:"+e.message)}finally{this.isGenerating=!1}},matchTemplate(e){const t=Object.values(this.templateLibrary);let n=t.filter(r=>r.type===e.type);if(e.type==="contents"&&e.data.items){const r=e.data.items.length;r<=4?n=n.filter(o=>o.variant==="4-items"||!o.variant):r<=6?n=n.filter(o=>o.variant==="6-items"||!o.variant):n=n.filter(o=>o.variant==="6-items"||!o.variant)}return n.length===0&&(n=t.filter(r=>r.type===e.type)),n.length===0&&(n=[t[0]]),JSON.parse(JSON.stringify(n[0]))},fillTemplateContent(e,t){try{const n=JSON.parse(JSON.stringify(e));switch(n.id=`generated-slide-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,t||(console.warn("大纲项为空,使用默认值"),t={type:"content",data:{}}),t.data||(console.warn(`大纲项 ${t.type} 缺少data字段,使用空对象`),t.data={}),console.log(`正在填充 ${t.type} 页面,数据:`,t.data),t.type){case"cover":this.fillCoverTemplate(n,t.data);break;case"contents":this.fillContentsTemplate(n,t.data);break;case"transition":this.fillTransitionTemplate(n,t.data);break;case"content":this.fillContentTemplate(n,t.data);break;case"end":this.fillEndTemplate(n,t.data);break;default:console.warn(`未知页面类型: ${t.type},使用content模板`),this.fillContentTemplate(n,t.data)}return n}catch(n){throw console.error("填充模板内容时发生错误:",n),console.error("模板:",e),console.error("大纲项:",t),new Error(`填充 ${t?.type||"未知"} 页面失败: ${n.message}`)}},fillCoverTemplate(e,t){t||(t={}),e.elements.forEach(n=>{n.textType==="title"?n.content=`<p style="text-align: center;"><strong><span style="font-size: 48px; color: ${n.defaultColor};">${t.title||"标题"}</span></strong></p>`:n.textType==="content"&&(n.content=`<p style="text-align: center;"><span style="font-size: 20px; color: ${n.defaultColor};">${t.text||"副标题"}</span></p>`)})},fillContentsTemplate(e,t){if(!t||!t.items)return;let n=0;e.elements.forEach(r=>{if(r.textType==="item"&&n<t.items.length){const o=t.items[n];r.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${r.defaultColor};">${o}</span></p>`,n++}})},fillTransitionTemplate(e,t){t||(t={}),e.elements.forEach(n=>{n.textType==="title"?n.content=`<p style="text-align: center;"><strong><span style="font-size: 32px; color: ${n.defaultColor};">${t.title||"章节标题"}</span></strong></p>`:n.textType==="content"&&(n.content=`<p style="text-align: center;"><span style="font-size: 16px; color: ${n.defaultColor};">${t.text||"章节介绍"}</span></p>`)})},fillContentTemplate(e,t){if(t||(t={}),e.elements.forEach(n=>{n.textType==="title"&&(n.content=`<p style="text-align: center;"><strong><span style="font-size: 28px; color: ${n.defaultColor};">${t.title||"内容标题"}</span></strong></p>`)}),t.items&&Array.isArray(t.items)){let n=0;e.elements.forEach(r=>{if(r.textType==="itemTitle"&&n<t.items.length){const o=t.items[n];r.content=`<p style="text-align: center;"><strong><span style="font-size: 18px; color: ${r.defaultColor};">${o&&o.title||`要点${n+1}`}</span></strong></p>`}else if(r.textType==="itemContent"&&n<t.items.length){const o=t.items[n];r.content=`<p style="text-align: center;"><span style="font-size: 14px; color: ${r.defaultColor};">${o&&o.text||"详细说明"}</span></p>`,n++}})}},fillEndTemplate(e,t){t||(t={}),e.elements.forEach(n=>{n.textType==="title"?n.content=`<p style="text-align: center;"><strong><span style="font-size: 40px; color: ${n.defaultColor};">${t.title||"谢谢聆听"}</span></strong></p>`:n.textType==="content"&&(n.content=`<p style="text-align: center;"><span style="font-size: 18px; color: ${n.defaultColor};">${t.text||"感谢您的时间与关注"}</span></p>`)})},async exportGeneratedPPT(){if(this.generatedPPT.length===0){alert("没有生成的PPT可导出");return}try{const e=(await Lf(async()=>{const{default:r}=await import("./pptxgen.es-C5rj3hyV.js");return{default:r}},__vite__mapDeps([0,1]))).default,t=new e;t.author="模板编辑器",t.company="AI PPT Generator",t.subject="自动生成的PPT",t.title="生成的演示文稿";for(let r=0;r<this.generatedPPT.length;r++){const o=this.generatedPPT[r];console.log(`正在转换第 ${r+1} 页:`,o.type),await this.convertSlideToPptx(t,o)}const n=`generated-ppt-${new Date().getTime()}.pptx`;await t.writeFile({fileName:n}),console.log("PPTX文件已生成并下载"),alert(`成功导出PPTX文件!
- 文件名: ${n}`)}catch(e){console.error("导出PPTX失败:",e),alert("导出PPTX失败: "+e.message)}},async convertSlideToPptx(e,t){const n=e.addSlide();if(t.background){if(t.background.type==="solid"){const r=this.convertColorForPptx(t.background.color||"#FFFFFF");n.background={color:r}}else if(t.background.type==="gradient"&&t.background.gradient){const r=t.background.gradient.colors[0]?.color||"#FFFFFF",o=this.convertColorForPptx(r);n.background={color:o}}}for(const r of t.elements)await this.addElementToPptxSlide(n,r)},async addElementToPptxSlide(e,t){try{const o=t.left/960*10,i=t.top/540*5.625,a=t.width/960*10,s=t.height/540*5.625;switch(t.type){case"text":this.addTextToPptx(e,t,o,i,a,s);break;case"image":await this.addImageToPptx(e,t,o,i,a,s);break;case"shape":this.addShapeToPptx(e,t,o,i,a,s);break}}catch(n){console.warn(`添加元素失败 ${t.type}:`,n)}},addTextToPptx(e,t,n,r,o,i){const a=this.extractTextFromHtml(t.content),s=this.extractStyleFromHtml(t.content),l=s.color||t.defaultColor||"#000000",u=t.opacity!==void 0?Math.round(t.opacity*100):100;t.content&&t.content.includes("text-align: center")&&console.log(`文本对齐调试 ${t.id||"unknown"}:`,{content:t.content,extractedAlign:s.align,finalAlign:s.align||"left"}),e.addText(a,{x:n,y:r,w:o,h:i,fontSize:s.fontSize||16,color:this.convertColorForPptx(l),fontFace:t.defaultFontName||"微软雅黑",align:s.align||"left",valign:"middle",bold:s.bold||!1,wrap:!0,transparency:100-u})},async addImageToPptx(e,t,n,r,o,i){if(t.src)try{const s=100-(t.opacity!==void 0?Math.round(t.opacity*100):100);if(t.src.startsWith("data:image"))e.addImage({data:t.src,x:n,y:r,w:o,h:i,transparency:s});else{const l=await this.convertImageToBase64(t.src);e.addImage({data:l,x:n,y:r,w:o,h:i,transparency:s})}}catch(a){console.warn("添加图片失败:",a),e.addText("图片加载失败",{x:n,y:r,w:o,h:i,fontSize:12,color:"999999",align:"center",valign:"middle"})}},addShapeToPptx(e,t,n,r,o,i){const a=t.fill||t.color||"#007bff";let s=0;if(a.startsWith("rgba(")){const u=a.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/);if(u){const d=parseFloat(u[4]);s=Math.round((1-d)*100)}}else t.opacity!==void 0&&(s=100-Math.round(t.opacity*100));const l=this.convertColorForPptx(a);t.id&&t.id.includes("overlay")&&console.log(`Overlay元素调试 ${t.id}:`,{originalFill:t.fill,fillColor:a,convertedColor:l,opacity:t.opacity,transparency:s,alphaFromRgba:a.startsWith("rgba(")?parseFloat(a.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/)?.[4]||"1"):null}),e.addShape("rect",{x:n,y:r,w:o,h:i,fill:{type:"solid",color:l,transparency:s},line:{width:0}})},extractTextFromHtml(e){if(!e)return"";const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""},extractStyleFromHtml(e){if(!e)return{};const t={},n=e.match(/font-size:\s*(\d+)px/);n&&(t.fontSize=parseInt(n[1]));const r=e.match(/color:\s*(#[0-9a-fA-F]{6}|#[0-9a-fA-F]{3}|rgb\([^)]+\)|rgba\([^)]+\))/);return r&&(t.color=r[1]),e.includes("text-align: center")?t.align="center":e.includes("text-align: right")?t.align="right":t.align="left",(e.includes("<strong>")||e.includes("<b>"))&&(t.bold=!0),t},async convertImageToBase64(e){return new Promise((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>{const o=document.createElement("canvas"),i=o.getContext("2d");o.width=r.width,o.height=r.height,i.drawImage(r,0,0);try{const a=o.toDataURL("image/png");t(a)}catch(a){n(a)}},r.onerror=()=>{n(new Error("图片加载失败"))},r.src=e})},getCurrentPPTSlide(){return this.generatedPPT.length===0||this.currentPPTPreviewIndex>=this.generatedPPT.length?{elements:[],background:{type:"color",color:"#ffffff"}}:this.generatedPPT[this.currentPPTPreviewIndex]},getCurrentPPTSlideBackground(){const e=this.getCurrentPPTSlide();return e.background?.type==="gradient"?this.getGradientStyle(e.background.gradient):e.background?.color||"#ffffff"},selectPPTElement(e){this.selectedPPTElementIndex=e,console.log("选择PPT元素被触发,索引:",e),console.log("当前selectedPPTElementIndex:",this.selectedPPTElementIndex)},handleDoubleClick(e){console.log("双击事件被触发,索引:",e),console.log("当前editingPPTElementIndex:",this.editingPPTElementIndex),console.log("当前editingPPTHtml:",this.editingPPTHtml),this.startPPTInlineEdit(e)},startPPTInlineEdit(e){console.log("开始PPT内联编辑被触发,索引:",e);const n=this.getCurrentPPTSlide().elements[e];console.log("获取到的元素:",n),n&&n.type==="text"?(console.log("元素类型正确,开始编辑模式"),this.editingPPTElementIndex=e,this.editingPPTHtml=n.content,console.log("设置编辑内容:",this.editingPPTHtml),console.log("设置editingPPTElementIndex为:",this.editingPPTElementIndex),this.$nextTick(()=>{console.log("nextTick执行,查找编辑器元素");const r=document.querySelector(".inline-editor");if(console.log("找到编辑器元素:",r),console.log("编辑器元素的HTML:",r?r.outerHTML:"null"),r){r.focus(),console.log("编辑器已聚焦");const o=document.createRange(),i=window.getSelection();o.selectNodeContents(r),o.collapse(!1),i.removeAllRanges(),i.addRange(o),r.style.direction="ltr",r.style.textAlign="left",r.style.unicodeBidi="normal",console.log("文字编辑模式已启动"),console.log("当前selection:",i.toString())}else console.log("未找到编辑器元素"),console.log("页面中所有.inline-editor元素:",document.querySelectorAll(".inline-editor"))})):console.log("元素类型不正确或元素不存在:",n)},onPPTInlineInput(e){const t=window.getSelection(),r=t.getRangeAt(0).startOffset;this.editingPPTHtml=e.target.innerHTML,this.$nextTick(()=>{const o=document.querySelector(".inline-editor");if(o&&t.rangeCount>0)try{const i=document.createRange(),a=[],s=document.createTreeWalker(o,NodeFilter.SHOW_TEXT,null,!1);let l;for(;l=s.nextNode();)a.push(l);if(a.length>0){const u=a[a.length-1],d=u.textContent.length,c=Math.min(r,d);i.setStart(u,c),i.setEnd(u,c),t.removeAllRanges(),t.addRange(i)}}catch{const a=document.createRange();a.selectNodeContents(o),a.collapse(!1),t.removeAllRanges(),t.addRange(a)}})},savePPTInlineEdit(e){const n=this.getCurrentPPTSlide().elements[e];n&&n.type==="text"&&(n.content=this.editingPPTHtml),this.editingPPTElementIndex=-1},changePPTImage(e){console.log("更换PPT图片被触发,索引:",e);const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=n=>{const r=n.target.files[0];if(r){const o=new FileReader;o.onload=i=>{const s=this.getCurrentPPTSlide().elements[e];s&&s.type==="image"&&(s.src=i.target.result,console.log("图片更换成功"))},o.readAsDataURL(r)}},t.click()},previousPPTSlide(){this.currentPPTPreviewIndex>0&&(this.currentPPTPreviewIndex--,this.editingPPTElementIndex=-1)},nextPPTSlide(){this.currentPPTPreviewIndex<this.generatedPPT.length-1&&(this.currentPPTPreviewIndex++,this.editingPPTElementIndex=-1)},exitPPTPreviewMode(){this.isPPTPreviewMode=!1,this.currentPPTPreviewIndex=0,this.editingPPTElementIndex=-1},async previewPPT(){if(!this.outlineData){alert("请先导入大纲");return}this.isGenerating=!0;try{this.generatedPPT=[];for(let e=0;e<this.outlineData.length;e++){const t=this.outlineData[e],n=this.matchTemplate(t),r=this.fillTemplateContent(n,t);this.generatedPPT.push(r)}console.log("PPT预览生成完成:",this.generatedPPT),this.enterPPTPreviewMode()}catch(e){console.error("PPT预览生成失败:",e),alert("PPT预览生成失败:"+e.message)}finally{this.isGenerating=!1}},enterPPTPreviewMode(){this.generatedPPT.length>0&&(this.isPPTPreviewMode=!0,this.currentPPTPreviewIndex=0,this.editingPPTElementIndex=-1)},async exportModifiedPPT(){try{const e=(await Lf(async()=>{const{default:r}=await import("./pptxgen.es-C5rj3hyV.js");return{default:r}},__vite__mapDeps([0,1]))).default,t=new e;t.author="模板编辑器",t.company="AI PPT Generator",t.subject="修改后的PPT",t.title="修改后的演示文稿";for(let r=0;r<this.generatedPPT.length;r++){const o=this.generatedPPT[r];console.log(`正在转换修改后的第 ${r+1} 页:`,o.type),await this.convertSlideToPptx(t,o)}const n=`modified-ppt-${new Date().getTime()}.pptx`;await t.writeFile({fileName:n}),console.log("修改后的PPTX文件已生成并下载"),alert(`成功导出修改后的PPTX文件!
- 文件名: ${n}`)}catch(e){console.error("导出修改后的PPTX失败:",e),alert("导出修改后的PPTX失败: "+e.message)}},startPPTDrag(e,t){if(e.detail>=2)return;const r=this.getCurrentPPTSlide().elements[t];this.editingPPTElementIndex===t&&r.type==="text"&&this.editingPPTHtml!==""||(this.selectedPPTElementIndex!==t&&this.selectPPTElement(t),this.isDragging=!0,this.dragStartX=e.clientX,this.dragStartY=e.clientY,this.dragStartLeft=r.left,this.dragStartTop=r.top,document.addEventListener("mousemove",this.onPPTDragMove),document.addEventListener("mouseup",this.onPPTDragEnd),e.preventDefault())},onPPTDragMove(e){if(!this.isDragging)return;const t=e.clientX-this.dragStartX,n=e.clientY-this.dragStartY,o=this.getCurrentPPTSlide().elements[this.selectedPPTElementIndex];let i=this.dragStartLeft+t,a=this.dragStartTop+n;this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.left=i,o.top=a},onPPTDragEnd(){this.isDragging=!1,document.removeEventListener("mousemove",this.onPPTDragMove),document.removeEventListener("mouseup",this.onPPTDragEnd)},startPPTResize(e,t,n){this.selectedPPTElementIndex!==t&&this.selectPPTElement(t),this.isResizing=!0,this.resizeDirection=n,this.dragStartX=e.clientX,this.dragStartY=e.clientY,this.resizeStartWidth=this.getCurrentPPTSlide().elements[t].width,this.resizeStartHeight=this.getCurrentPPTSlide().elements[t].height,this.dragStartLeft=this.getCurrentPPTSlide().elements[t].left,this.dragStartTop=this.getCurrentPPTSlide().elements[t].top,document.addEventListener("mousemove",this.onPPTResizeMove),document.addEventListener("mouseup",this.onPPTResizeEnd),e.preventDefault()},onPPTResizeMove(e){if(!this.isResizing)return;const t=e.clientX-this.dragStartX,n=e.clientY-this.dragStartY,o=this.getCurrentPPTSlide().elements[this.selectedPPTElementIndex];let i,a;switch(this.resizeDirection){case"se":i=Math.max(20,this.resizeStartWidth+t),a=Math.max(20,this.resizeStartHeight+n),this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.width=i,o.height=a;break;case"sw":i=Math.max(20,this.resizeStartWidth-t),a=Math.max(20,this.resizeStartHeight+n),this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.width=i,o.height=a,o.left=this.dragStartLeft+(this.resizeStartWidth-o.width);break;case"ne":i=Math.max(20,this.resizeStartWidth+t),a=Math.max(20,this.resizeStartHeight-n),this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.width=i,o.height=a,o.top=this.dragStartTop+(this.resizeStartHeight-o.height);break;case"nw":i=Math.max(20,this.resizeStartWidth-t),a=Math.max(20,this.resizeStartHeight-n),this.gridSnap&&(i=this.snapToGrid(i,20),a=this.snapToGrid(a,20)),o.width=i,o.height=a,o.left=this.dragStartLeft+(this.resizeStartWidth-o.width),o.top=this.dragStartTop+(this.resizeStartHeight-o.height);break}},onPPTResizeEnd(){this.isResizing=!1,document.removeEventListener("mousemove",this.onPPTResizeMove),document.removeEventListener("mouseup",this.onPPTResizeEnd)},async exportAllTemplatesAsImages(){if(Object.keys(this.templateLibrary).length===0){alert("没有模板可导出");return}if(!this.isExportingImages){this.isExportingImages=!0;try{console.log("正在生成高清图片,请稍候...");const t=document.createElement("div");t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="960px",t.style.height="540px",t.style.overflow="hidden",document.body.appendChild(t);const n=Object.values(this.templateLibrary),r=[];for(let d=0;d<n.length;d++){const c=n[d],f=this.generateTemplateImage(c,t,d);r.push(f)}const o=await Promise.all(r);document.body.removeChild(t);const i=await Lf(()=>import("./jszip.min-DXNZmKaK.js").then(d=>d.j),[]),a=new i.default;o.forEach((d,c)=>{const p=`${n[c].id||`template-${c+1}`}.png`;a.file(p,d,{binary:!0})});const s=await a.generateAsync({type:"blob"}),l=URL.createObjectURL(s),u=document.createElement("a");u.href=l,u.download=`templates-hd-images-${new Date().getTime()}.zip`,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(l),console.log(`成功导出 ${o.length} 个模板的高清图片`),alert(`成功导出 ${o.length} 个模板的高清图片!
- 文件名: templates-hd-images-${new Date().getTime()}.zip`)}catch(e){console.error("导出高清图片失败:",e),alert("导出高清图片失败: "+e.message)}finally{this.isExportingImages=!1}}},async generateTemplateImage(e,t,n){return new Promise((r,o)=>{try{const i=document.createElement("div");i.style.width="960px",i.style.height="540px",i.style.position="relative",i.style.overflow="hidden",i.style.borderRadius="12px",e.background?e.background.type==="gradient"&&e.background.gradient?i.style.background=this.getGradientStyle(e.background.gradient):i.style.background=e.background.color||"#ffffff":i.style.background="#ffffff",e.elements&&Array.isArray(e.elements)&&e.elements.forEach(a=>{const s=this.createElementFromTemplate(a);s&&i.appendChild(s)}),t.appendChild(i),Lf(()=>import("./html2canvas.esm-B0tyYwQk.js"),[]).then(a=>{a.default(i,{width:960,height:540,scale:2,useCORS:!0,allowTaint:!0,backgroundColor:null,logging:!1}).then(s=>{s.toBlob(l=>{t.removeChild(i),l?r(l):o(new Error("图片生成失败"))},"image/png",1)}).catch(s=>{t.removeChild(i),o(s)})}).catch(a=>{t.removeChild(i),o(a)})}catch(i){o(i)}})},createElementFromTemplate(e){const t=document.createElement("div");switch(t.style.position="absolute",t.style.left=e.left+"px",t.style.top=e.top+"px",t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",e.rotate&&(t.style.transform=`rotate(${e.rotate}deg)`),e.type){case"text":t.innerHTML=e.content||"",t.style.color=e.defaultColor||"#000000",t.style.fontFamily=e.defaultFontName||"微软雅黑",t.style.opacity=e.opacity||1,t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.textAlign="center",t.style.padding="10px",t.style.boxSizing="border-box";break;case"image":if(e.src){const n=document.createElement("img");n.src=e.src,n.style.width="100%",n.style.height="100%",n.style.objectFit="cover",n.style.opacity=e.opacity||1,n.style.border="none",n.style.outline="none",t.appendChild(n)}break;case"shape":t.style.backgroundColor=e.fill||"#007bff",t.style.opacity=e.opacity||1,t.style.border="none",t.style.outline="none",e.viewBox&&(t.style.borderRadius="8px");break}return t},convertColorForPptx(e){if(!e)return"FFFFFF";if(/^[0-9A-Fa-f]{6}$/.test(e))return e.toUpperCase();if(e.startsWith("#")){const i=e.substring(1);if(i.length===3)return(i[0]+i[0]+i[1]+i[1]+i[2]+i[2]).toUpperCase();if(i.length===6)return i.toUpperCase()}const t=e.match(/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/);if(t){const i=parseInt(t[1]).toString(16).padStart(2,"0"),a=parseInt(t[2]).toString(16).padStart(2,"0"),s=parseInt(t[3]).toString(16).padStart(2,"0");return(i+a+s).toUpperCase()}const n=e.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*[\d.]+\s*\)/);if(n){const i=parseInt(n[1]).toString(16).padStart(2,"0"),a=parseInt(n[2]).toString(16).padStart(2,"0"),s=parseInt(n[3]).toString(16).padStart(2,"0");return(i+a+s).toUpperCase()}const r={white:"FFFFFF",black:"000000",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",orange:"FFA500",purple:"800080",pink:"FFC0CB",gray:"808080",grey:"808080"},o=e.toLowerCase();return r[o]?r[o]:(console.warn(`无法识别的颜色格式: ${e},使用默认黑色`),"000000")}}},QJt={class:"template-editor"},ZJt={class:"toolbar"},XJt={class:"toolbar-left"},JJt=["disabled"],een=["disabled"],ten={class:"toolbar-right"},nen=["value"],ren={class:"main-content1"},oen={class:"editor-panel"},ien={class:"panel-header"},aen={class:"add-element-buttons"},sen={class:"element-list"},len=["onClick"],uen={class:"element-header"},cen={class:"element-type"},den={class:"element-id"},fen={class:"element-actions"},pen=["onClick"],hen=["onClick"],gen=["onClick"],ven=["onClick"],men={key:0,class:"element-properties"},yen={class:"property-group"},ben={class:"property-row"},wen=["onUpdate:modelValue"],Aen={class:"property-row"},Cen=["onUpdate:modelValue"],xen={class:"property-row"},Sen=["onUpdate:modelValue"],Een={class:"property-row"},ken=["onUpdate:modelValue"],Ten={class:"property-row"},_en=["onUpdate:modelValue"],Den={key:0,class:"property-group"},Ien={class:"property-row"},Oen=["onUpdate:modelValue"],Men={class:"property-row"},Pen=["onUpdate:modelValue"],Nen={class:"property-row"},Ren=["onUpdate:modelValue"],Ben={class:"property-row"},Len=["onUpdate:modelValue"],Fen={key:1,class:"property-group"},Uen={class:"property-row"},zen=["onUpdate:modelValue"],$en={class:"property-row"},jen=["onUpdate:modelValue"],Hen={key:2,class:"property-group"},Wen={class:"property-row"},Ven=["onUpdate:modelValue"],qen={class:"property-row"},Gen=["onUpdate:modelValue"],Ken={class:"preview-panel"},Yen={class:"panel-header"},Qen={class:"preview-controls"},Zen={class:"zoom-level"},Xen={key:0,class:"ppt-preview-controls"},Jen=["disabled"],etn={class:"ppt-slide-info"},ttn=["disabled"],ntn=["onClick","onMousedown"],rtn=["onMousedown"],otn=["onMousedown"],itn=["onMousedown"],atn=["onMousedown"],stn=["onMousedown"],ltn=["src","alt"],utn=["innerHTML","onBlur"],ctn=["innerHTML"],dtn=["onClick","onMousedown"],ftn=["onMousedown"],ptn=["onMousedown"],htn=["onMousedown"],gtn=["onMousedown"],vtn=["onMousedown"],mtn=["src","alt","onClick"],ytn=["innerHTML","onBlur"],btn=["innerHTML","onDblclick","onClick"],wtn={class:"properties-panel"},Atn={class:"slide-properties"},Ctn={class:"property-group"},xtn={class:"property-row"},Stn={key:0,class:"property-row"},Etn={key:1,class:"property-group"},ktn={class:"property-row"},Ttn={class:"gradient-colors"},_tn=["onUpdate:modelValue"],Dtn=["onUpdate:modelValue"],Itn=["onClick"],Otn={class:"property-group"},Mtn={class:"property-row"},Ptn={class:"property-row"},Ntn={class:"property-row"},Rtn={key:0,class:"json-editor-modal"},Btn={class:"json-editor-content"},Ltn={class:"json-editor-header"},Ftn={class:"json-editor-actions"};function Utn(e,t,n,r,o,i){return L(),G("div",QJt,[t[104]||(t[104]=x("div",{class:"header"},[x("h1",null,"模板编辑器工作台"),x("p",null,"可视化编辑PPT模板,支持实时预览和JSON导出"),x("div",{class:"usage-tips"},[x("span",null,"💡 使用提示:"),x("span",null,"• 拖拽元素移动位置"),x("span",null,"• 拖拽四角手柄缩放大小"),x("span",null,"• 方向键精确调整位置"),x("span",null,"• Delete键删除选中元素"),x("span",null,"• Esc键取消选择")])],-1)),x("div",ZJt,[x("div",XJt,[x("button",{onClick:t[0]||(t[0]=(...a)=>i.loadTemplate&&i.loadTemplate(...a)),class:"btn btn-primary"},"加载模板"),x("button",{onClick:t[1]||(t[1]=(...a)=>i.newTemplate&&i.newTemplate(...a)),class:"btn btn-secondary"},"新建模板"),x("button",{onClick:t[2]||(t[2]=(...a)=>i.saveTemplate&&i.saveTemplate(...a)),class:"btn btn-success"},"保存模板"),x("button",{onClick:t[3]||(t[3]=(...a)=>i.exportJSON&&i.exportJSON(...a)),class:"btn btn-info"},"导出JSON"),x("button",{onClick:t[4]||(t[4]=(...a)=>i.exportTemplateLibrary&&i.exportTemplateLibrary(...a)),class:"btn btn-warning"},"导出模板库"),x("button",{onClick:t[5]||(t[5]=(...a)=>i.exportAllTemplatesAsImages&&i.exportAllTemplatesAsImages(...a)),class:"btn btn-success",disabled:o.isExportingImages},je(o.isExportingImages?"生成中...":"导出高清图片"),9,JJt),x("button",{onClick:t[6]||(t[6]=(...a)=>i.importJSON&&i.importJSON(...a)),class:"btn btn-dark"},"导入JSON"),x("button",{onClick:t[7]||(t[7]=(...a)=>i.toggleGridSnap&&i.toggleGridSnap(...a)),class:oe(["btn",o.gridSnap?"btn-success":"btn-outline"])},"网格对齐",2),t[70]||(t[70]=x("div",{class:"toolbar-divider"},null,-1)),x("button",{onClick:t[8]||(t[8]=(...a)=>i.importOutline&&i.importOutline(...a)),class:"btn btn-purple"},"导入大纲"),o.outlineData&&!o.isGenerating?(L(),G("button",{key:0,onClick:t[9]||(t[9]=(...a)=>i.previewPPT&&i.previewPPT(...a)),class:"btn btn-info"}," 预览PPT ")):xe("",!0),x("button",{onClick:t[10]||(t[10]=(...a)=>i.generatePPT&&i.generatePPT(...a)),class:"btn btn-gradient",disabled:!o.outlineData||o.isGenerating},je(o.isGenerating?"生成中...":"生成PPTX"),9,een),o.generatedPPT.length>0&&!o.isPPTPreviewMode?(L(),G("button",{key:1,onClick:t[11]||(t[11]=(...a)=>i.enterPPTPreviewMode&&i.enterPPTPreviewMode(...a)),class:"btn btn-success"}," PPT预览 ")):xe("",!0)]),x("div",ten,[cn(x("select",{"onUpdate:modelValue":t[12]||(t[12]=a=>o.currentTemplateType=a),onChange:t[13]||(t[13]=(...a)=>i.onTemplateTypeChange&&i.onTemplateTypeChange(...a)),class:"template-type-select"},t[71]||(t[71]=[ki('<option value="cover" data-v-de93f008>封面页</option><option value="contents" data-v-de93f008>目录页</option><option value="transition" data-v-de93f008>过渡页</option><option value="content" data-v-de93f008>内容页</option><option value="end" data-v-de93f008>结束页</option>',5)]),544),[[_2,o.currentTemplateType]]),cn(x("select",{"onUpdate:modelValue":t[14]||(t[14]=a=>o.currentTemplateId=a),onChange:t[15]||(t[15]=(...a)=>i.onTemplateIdChange&&i.onTemplateIdChange(...a)),class:"template-id-select"},[(L(!0),G(Rt,null,un(o.availableTemplates,a=>(L(),G("option",{key:a.id,value:a.id},je(a.name),9,nen))),128))],544),[[_2,o.currentTemplateId]])])]),x("div",ren,[x("div",oen,[x("div",ien,[t[72]||(t[72]=x("h3",null,"元素编辑",-1)),x("div",aen,[x("button",{onClick:t[16]||(t[16]=(...a)=>i.addElement&&i.addElement(...a)),class:"btn btn-sm btn-primary"},"添加文本"),x("button",{onClick:t[17]||(t[17]=(...a)=>i.addImageElement&&i.addImageElement(...a)),class:"btn btn-sm btn-info"},"添加图片"),x("button",{onClick:t[18]||(t[18]=(...a)=>i.addShapeElement&&i.addShapeElement(...a)),class:"btn btn-sm btn-secondary"},"添加形状")])]),x("div",sen,[(L(!0),G(Rt,null,un(o.currentSlide.elements,(a,s)=>(L(),G("div",{key:a.id,class:oe(["element-item",{active:o.selectedElementIndex===s}]),onClick:l=>i.selectElement(s)},[x("div",uen,[x("span",cen,je(i.getElementTypeName(a.type)),1),x("span",den,je(a.id),1),x("div",fen,[x("button",{onClick:en(l=>i.copyElement(s),["stop"]),class:"btn-action",title:"复制"},"📋",8,pen),x("button",{onClick:en(l=>i.moveElementUp(s),["stop"]),class:"btn-action",title:"上移"},"⬆️",8,hen),x("button",{onClick:en(l=>i.moveElementDown(s),["stop"]),class:"btn-action",title:"下移"},"⬇️",8,gen),x("button",{onClick:en(l=>i.deleteElement(s),["stop"]),class:"btn-delete",title:"删除"},"×",8,ven)])]),o.selectedElementIndex===s?(L(),G("div",men,[x("div",yen,[t[78]||(t[78]=x("h4",null,"位置和尺寸",-1)),x("div",ben,[t[73]||(t[73]=x("label",null,"X坐标:",-1)),cn(x("input",{type:"number","onUpdate:modelValue":l=>a.left=l,onInput:t[19]||(t[19]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,wen),[[qr,a.left,void 0,{number:!0}]])]),x("div",Aen,[t[74]||(t[74]=x("label",null,"Y坐标:",-1)),cn(x("input",{type:"number","onUpdate:modelValue":l=>a.top=l,onInput:t[20]||(t[20]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Cen),[[qr,a.top,void 0,{number:!0}]])]),x("div",xen,[t[75]||(t[75]=x("label",null,"宽度:",-1)),cn(x("input",{type:"number","onUpdate:modelValue":l=>a.width=l,onInput:t[21]||(t[21]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Sen),[[qr,a.width,void 0,{number:!0}]])]),x("div",Een,[t[76]||(t[76]=x("label",null,"高度:",-1)),cn(x("input",{type:"number","onUpdate:modelValue":l=>a.height=l,onInput:t[22]||(t[22]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,ken),[[qr,a.height,void 0,{number:!0}]])]),x("div",Ten,[t[77]||(t[77]=x("label",null,"旋转:",-1)),cn(x("input",{type:"number","onUpdate:modelValue":l=>a.rotate=l,onInput:t[23]||(t[23]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,_en),[[qr,a.rotate,void 0,{number:!0}]])])]),a.type==="text"?(L(),G("div",Den,[t[84]||(t[84]=x("h4",null,"文本属性",-1)),x("div",Ien,[t[79]||(t[79]=x("label",null,"内容:",-1)),cn(x("textarea",{"onUpdate:modelValue":l=>a.content=l,onInput:t[24]||(t[24]=(...l)=>i.updateElement&&i.updateElement(...l)),rows:"3"},null,40,Oen),[[qr,a.content]])]),x("div",Men,[t[81]||(t[81]=x("label",null,"字体:",-1)),cn(x("select",{"onUpdate:modelValue":l=>a.defaultFontName=l,onChange:t[25]||(t[25]=(...l)=>i.updateElement&&i.updateElement(...l))},t[80]||(t[80]=[ki('<option value="微软雅黑" data-v-de93f008>微软雅黑</option><option value="宋体" data-v-de93f008>宋体</option><option value="黑体" data-v-de93f008>黑体</option><option value="Arial" data-v-de93f008>Arial</option><option value="Times New Roman" data-v-de93f008>Times New Roman</option>',5)]),40,Pen),[[_2,a.defaultFontName]])]),x("div",Nen,[t[82]||(t[82]=x("label",null,"颜色:",-1)),cn(x("input",{type:"color","onUpdate:modelValue":l=>a.defaultColor=l,onInput:t[26]||(t[26]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Ren),[[qr,a.defaultColor]])]),x("div",Ben,[t[83]||(t[83]=x("label",null,"透明度:",-1)),cn(x("input",{type:"range","onUpdate:modelValue":l=>a.opacity=l,min:"0",max:"1",step:"0.1",onInput:t[27]||(t[27]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Len),[[qr,a.opacity,void 0,{number:!0}]]),x("span",null,je(a.opacity||1),1)])])):xe("",!0),a.type==="image"?(L(),G("div",Fen,[t[87]||(t[87]=x("h4",null,"图片属性",-1)),x("div",Uen,[t[85]||(t[85]=x("label",null,"图片URL:",-1)),cn(x("input",{type:"text","onUpdate:modelValue":l=>a.src=l,onInput:t[28]||(t[28]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,zen),[[qr,a.src]])]),x("div",$en,[t[86]||(t[86]=x("label",null,"透明度:",-1)),cn(x("input",{type:"range","onUpdate:modelValue":l=>a.opacity=l,min:"0",max:"1",step:"0.1",onInput:t[29]||(t[29]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,jen),[[qr,a.opacity,void 0,{number:!0}]]),x("span",null,je(a.opacity||1),1)])])):xe("",!0),a.type==="shape"?(L(),G("div",Hen,[t[90]||(t[90]=x("h4",null,"形状属性",-1)),x("div",Wen,[t[88]||(t[88]=x("label",null,"填充颜色:",-1)),cn(x("input",{type:"color","onUpdate:modelValue":l=>a.fill=l,onInput:t[30]||(t[30]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Ven),[[qr,a.fill]])]),x("div",qen,[t[89]||(t[89]=x("label",null,"透明度:",-1)),cn(x("input",{type:"range","onUpdate:modelValue":l=>a.opacity=l,min:"0",max:"1",step:"0.1",onInput:t[31]||(t[31]=(...l)=>i.updateElement&&i.updateElement(...l))},null,40,Gen),[[qr,a.opacity,void 0,{number:!0}]]),x("span",null,je(a.opacity||1),1)])])):xe("",!0)])):xe("",!0)],10,len))),128))])]),x("div",Ken,[x("div",Yen,[x("h3",null,je(o.isPPTPreviewMode?"PPT预览":"模板预览"),1),x("div",Qen,[x("button",{onClick:t[32]||(t[32]=(...a)=>i.zoomOut&&i.zoomOut(...a)),class:"btn btn-sm"},"-"),x("span",Zen,je(Math.round(o.zoom*100))+"%",1),x("button",{onClick:t[33]||(t[33]=(...a)=>i.zoomIn&&i.zoomIn(...a)),class:"btn btn-sm"},"+"),x("button",{onClick:t[34]||(t[34]=(...a)=>i.resetZoom&&i.resetZoom(...a)),class:"btn btn-sm"},"重置"),x("button",{onClick:t[35]||(t[35]=(...a)=>i.fitToScreen&&i.fitToScreen(...a)),class:"btn btn-sm"},"适应屏幕"),x("button",{onClick:t[36]||(t[36]=(...a)=>i.openJSONEditor&&i.openJSONEditor(...a)),class:"btn btn-sm btn-info"},"JSON编辑"),o.isPPTPreviewMode&&o.generatedPPT.length>0?(L(),G("div",Xen,[x("button",{onClick:t[37]||(t[37]=(...a)=>i.previousPPTSlide&&i.previousPPTSlide(...a)),class:"btn btn-sm",disabled:o.currentPPTPreviewIndex===0},"上一页",8,Jen),x("span",etn,je(o.currentPPTPreviewIndex+1)+" / "+je(o.generatedPPT.length),1),x("button",{onClick:t[38]||(t[38]=(...a)=>i.nextPPTSlide&&i.nextPPTSlide(...a)),class:"btn btn-sm",disabled:o.currentPPTPreviewIndex===o.generatedPPT.length-1},"下一页",8,ttn),x("button",{onClick:t[39]||(t[39]=(...a)=>i.exportModifiedPPT&&i.exportModifiedPPT(...a)),class:"btn btn-sm btn-success"},"导出修改版"),x("button",{onClick:t[40]||(t[40]=(...a)=>i.exitPPTPreviewMode&&i.exitPPTPreviewMode(...a)),class:"btn btn-sm btn-warning"},"退出预览")])):xe("",!0)])]),x("div",{class:"preview-container",ref:"previewContainer",onClick:t[49]||(t[49]=(...a)=>i.onPreviewClick&&i.onPreviewClick(...a)),onWheel:t[50]||(t[50]=(...a)=>i.handleWheel&&i.handleWheel(...a))},[o.isPPTPreviewMode?xe("",!0):(L(),G("div",{key:0,class:"slide-preview",style:rn({transform:`scale(${o.zoom})`,background:o.currentSlide.background?.type==="gradient"?i.getGradientStyle(o.currentSlide.background.gradient):o.currentSlide.background?.color||"#ffffff"})},[(L(!0),G(Rt,null,un(o.currentSlide.elements,(a,s)=>(L(),G("div",{key:a.id,class:oe(["preview-element",{selected:o.selectedElementIndex===s}]),style:rn(i.getElementStyle(a)),onClick:en(l=>i.selectElement(s),["stop"]),onMousedown:l=>i.startDrag(l,s)},[o.selectedElementIndex===s?(L(),G("div",{key:0,class:"resize-handle resize-handle-nw",onMousedown:en(l=>i.startResize(l,s,"nw"),["stop"])},null,40,rtn)):xe("",!0),o.selectedElementIndex===s?(L(),G("div",{key:1,class:"resize-handle resize-handle-ne",onMousedown:en(l=>i.startResize(l,s,"ne"),["stop"])},null,40,otn)):xe("",!0),o.selectedElementIndex===s?(L(),G("div",{key:2,class:"resize-handle resize-handle-sw",onMousedown:en(l=>i.startResize(l,s,"sw"),["stop"])},null,40,itn)):xe("",!0),o.selectedElementIndex===s?(L(),G("div",{key:3,class:"resize-handle resize-handle-se",onMousedown:en(l=>i.startResize(l,s,"se"),["stop"])},null,40,atn)):xe("",!0),o.selectedElementIndex===s?(L(),G("div",{key:4,class:"drag-handle",onMousedown:en(l=>i.startDrag(l,s),["stop"])},null,40,stn)):xe("",!0),a.type==="image"&&a.src?(L(),G("img",{key:5,src:a.src,alt:a.id,style:rn({opacity:a.opacity||1})},null,12,ltn)):a.type==="text"?(L(),G(Rt,{key:6},[o.editingElementIndex===s?(L(),G("div",{key:0,class:"inline-editor",contenteditable:"true",innerHTML:o.editingHtml,style:rn({color:a.defaultColor,fontFamily:a.defaultFontName,opacity:a.opacity||1}),onInput:t[41]||(t[41]=(...l)=>i.onInlineInput&&i.onInlineInput(...l)),onBlur:l=>i.saveInlineEdit(s),onMousedown:t[42]||(t[42]=en(()=>{},["stop"])),onKeydown:t[43]||(t[43]=en(()=>{},["stop"]))},null,44,utn)):(L(),G("div",{key:1,innerHTML:a.content,style:rn({color:a.defaultColor,fontFamily:a.defaultFontName,opacity:a.opacity||1})},null,12,ctn))],64)):a.type==="shape"?(L(),G("div",{key:7,class:"shape",style:rn(i.getShapeStyle(a))},null,4)):xe("",!0)],46,ntn))),128))],4)),o.isPPTPreviewMode&&o.generatedPPT.length>0?(L(),G("div",{key:1,class:"slide-preview",style:rn({transform:`scale(${o.zoom})`,background:i.getCurrentPPTSlideBackground()})},[t[91]||(t[91]=x("div",{class:"ppt-preview-tip"},[x("p",null,"💡 双击文字可编辑,点击图片可更换,拖拽移动位置,四角手柄缩放大小")],-1)),(L(!0),G(Rt,null,un(i.getCurrentPPTSlide().elements,(a,s)=>(L(),G("div",{key:a.id,class:oe(["preview-element ppt-element",{selected:o.selectedPPTElementIndex===s}]),style:rn(i.getElementStyle(a)),onClick:en(l=>i.selectPPTElement(s),["stop"]),onMousedown:l=>i.startPPTDrag(l,s)},[o.selectedPPTElementIndex===s?(L(),G("div",{key:0,class:"resize-handle resize-handle-nw",onMousedown:en(l=>i.startPPTResize(l,s,"nw"),["stop"])},null,40,ftn)):xe("",!0),o.selectedPPTElementIndex===s?(L(),G("div",{key:1,class:"resize-handle resize-handle-ne",onMousedown:en(l=>i.startPPTResize(l,s,"ne"),["stop"])},null,40,ptn)):xe("",!0),o.selectedPPTElementIndex===s?(L(),G("div",{key:2,class:"resize-handle resize-handle-sw",onMousedown:en(l=>i.startPPTResize(l,s,"sw"),["stop"])},null,40,htn)):xe("",!0),o.selectedPPTElementIndex===s?(L(),G("div",{key:3,class:"resize-handle resize-handle-se",onMousedown:en(l=>i.startPPTResize(l,s,"se"),["stop"])},null,40,gtn)):xe("",!0),o.selectedPPTElementIndex===s?(L(),G("div",{key:4,class:"drag-handle",onMousedown:en(l=>i.startPPTDrag(l,s),["stop"])},null,40,vtn)):xe("",!0),a.type==="image"&&a.src?(L(),G("img",{key:5,src:a.src,alt:a.id,style:rn({opacity:a.opacity||1}),onClick:en(l=>i.changePPTImage(s),["stop"]),onMousedown:t[44]||(t[44]=en(()=>{},["stop"]))},null,44,mtn)):a.type==="text"?(L(),G(Rt,{key:6},[o.editingPPTElementIndex===s?(L(),G("div",{key:0,class:"inline-editor",contenteditable:"true",innerHTML:o.editingPPTHtml,style:rn({color:a.defaultColor,fontFamily:a.defaultFontName,opacity:a.opacity||1}),onInput:t[45]||(t[45]=(...l)=>i.onPPTInlineInput&&i.onPPTInlineInput(...l)),onBlur:l=>i.savePPTInlineEdit(s),onMousedown:t[46]||(t[46]=en(()=>{},["stop"])),onKeydown:t[47]||(t[47]=en(()=>{},["stop"]))},null,44,ytn)):(L(),G("div",{key:1,innerHTML:a.content,style:rn({color:a.defaultColor,fontFamily:a.defaultFontName,opacity:a.opacity||1}),onDblclick:en(l=>i.handleDoubleClick(s),["stop"]),onClick:en(l=>i.selectPPTElement(s),["stop"]),onMousedown:t[48]||(t[48]=en(()=>{},["stop"]))},null,44,btn))],64)):a.type==="shape"?(L(),G("div",{key:7,class:"shape",style:rn(i.getShapeStyle(a))},null,4)):xe("",!0)],46,dtn))),128))],4)):xe("",!0)],544)]),x("div",wtn,[t[102]||(t[102]=x("div",{class:"panel-header"},[x("h3",null,"幻灯片属性")],-1)),x("div",Atn,[x("div",Ctn,[t[97]||(t[97]=x("h4",null,"背景设置",-1)),x("div",xtn,[t[93]||(t[93]=x("label",null,"背景类型:",-1)),cn(x("select",{"onUpdate:modelValue":t[51]||(t[51]=a=>o.currentSlide.background.type=a),onChange:t[52]||(t[52]=(...a)=>i.updateSlideBackground&&i.updateSlideBackground(...a))},t[92]||(t[92]=[x("option",{value:"color"},"纯色",-1),x("option",{value:"gradient"},"渐变",-1)]),544),[[_2,o.currentSlide.background.type]])]),o.currentSlide.background&&o.currentSlide.background.type==="color"?(L(),G("div",Stn,[t[94]||(t[94]=x("label",null,"背景颜色:",-1)),cn(x("input",{type:"color","onUpdate:modelValue":t[53]||(t[53]=a=>o.currentSlide.background.color=a),onInput:t[54]||(t[54]=(...a)=>i.updateSlideBackground&&i.updateSlideBackground(...a))},null,544),[[qr,o.currentSlide.background.color]])])):xe("",!0),o.currentSlide.background&&o.currentSlide.background.type==="gradient"?(L(),G("div",Etn,[x("div",ktn,[t[96]||(t[96]=x("label",null,"渐变类型:",-1)),cn(x("select",{"onUpdate:modelValue":t[55]||(t[55]=a=>o.currentSlide.background.gradient.type=a),onChange:t[56]||(t[56]=(...a)=>i.updateSlideBackground&&i.updateSlideBackground(...a))},t[95]||(t[95]=[x("option",{value:"linear"},"线性渐变",-1),x("option",{value:"radial"},"径向渐变",-1)]),544),[[_2,o.currentSlide.background.gradient.type]])]),x("div",Ttn,[(L(!0),G(Rt,null,un(o.currentSlide.background.gradient&&o.currentSlide.background.gradient.colors||[],(a,s)=>(L(),G("div",{key:s,class:"gradient-color-item"},[cn(x("input",{type:"color","onUpdate:modelValue":l=>a.color=l,onInput:t[57]||(t[57]=(...l)=>i.updateSlideBackground&&i.updateSlideBackground(...l))},null,40,_tn),[[qr,a.color]]),cn(x("input",{type:"number","onUpdate:modelValue":l=>a.pos=l,min:"0",max:"100",onInput:t[58]||(t[58]=(...l)=>i.updateSlideBackground&&i.updateSlideBackground(...l))},null,40,Dtn),[[qr,a.pos,void 0,{number:!0}]]),x("button",{onClick:l=>i.removeGradientColor(s),class:"btn-delete"},"×",8,Itn)]))),128)),x("button",{onClick:t[59]||(t[59]=(...a)=>i.addGradientColor&&i.addGradientColor(...a)),class:"btn btn-sm"},"添加颜色")])])):xe("",!0)]),x("div",Otn,[t[101]||(t[101]=x("h4",null,"模板信息",-1)),x("div",Mtn,[t[98]||(t[98]=x("label",null,"模板名称:",-1)),cn(x("input",{type:"text","onUpdate:modelValue":t[60]||(t[60]=a=>o.currentSlide.name=a),onInput:t[61]||(t[61]=(...a)=>i.updateSlide&&i.updateSlide(...a))},null,544),[[qr,o.currentSlide.name]])]),x("div",Ptn,[t[99]||(t[99]=x("label",null,"模板ID:",-1)),cn(x("input",{type:"text","onUpdate:modelValue":t[62]||(t[62]=a=>o.currentSlide.id=a),onInput:t[63]||(t[63]=(...a)=>i.updateSlide&&i.updateSlide(...a))},null,544),[[qr,o.currentSlide.id]])]),x("div",Ntn,[t[100]||(t[100]=x("label",null,"模板类型:",-1)),cn(x("input",{type:"text","onUpdate:modelValue":t[64]||(t[64]=a=>o.currentSlide.type=a),onInput:t[65]||(t[65]=(...a)=>i.updateSlide&&i.updateSlide(...a))},null,544),[[qr,o.currentSlide.type]])])])])])]),o.showJSONEditor?(L(),G("div",Rtn,[x("div",Btn,[x("div",Ltn,[t[103]||(t[103]=x("h3",null,"JSON编辑器",-1)),x("button",{onClick:t[66]||(t[66]=a=>o.showJSONEditor=!1),class:"btn-close"},"×")]),cn(x("textarea",{"onUpdate:modelValue":t[67]||(t[67]=a=>o.jsonContent=a),class:"json-textarea",placeholder:"在这里编辑JSON内容..."},null,512),[[qr,o.jsonContent]]),x("div",Ftn,[x("button",{onClick:t[68]||(t[68]=(...a)=>i.applyJSON&&i.applyJSON(...a)),class:"btn btn-primary"},"应用更改"),x("button",{onClick:t[69]||(t[69]=a=>o.showJSONEditor=!1),class:"btn btn-secondary"},"取消")])])])):xe("",!0)])}const ztn=Zo(YJt,[["render",Utn],["__scopeId","data-v-de93f008"]]),$tn="/assets/13-CcUgOE0U.png",jtn="/assets/4-DHzSAirS.png",Htn="/assets/5-CIylGsDd.png",Wtn={key:0,class:"mobile-toast"},Vtn={class:"toast-message"},qtn={__name:"MobileToast",props:{visible:{type:Boolean,default:!1},message:{type:String,default:""},duration:{type:Number,default:2e3}},emits:["close"],setup(e,{emit:t}){const n=e,r=t;let o=K(null);return St(()=>n.visible,i=>{o.value&&(clearTimeout(o.value),o.value=null),i&&n.duration>0&&(o.value=setTimeout(()=>{r("close"),o.value=null},n.duration))}),(i,a)=>(L(),yt(Ki,{name:"toast"},{default:rt(()=>[e.visible?(L(),G("div",Wtn,[x("div",Vtn,je(e.message),1)])):xe("",!0)]),_:1}))}},m2=Zo(qtn,[["__scopeId","data-v-a2a75a91"]]),Gtn={key:0,class:"modal-overlay"},Ktn={class:"modal-body"},Ytn={class:"feedback-type-section"},Qtn={class:"type-buttons"},Ztn={class:"feedback-content-section"},Xtn={class:"textarea-container"},Jtn={class:"char-count"},enn={class:"upload-section"},tnn={key:1,class:"uploaded-images"},nnn=["src","alt"],rnn={class:"image-actions"},onn=["onClick"],inn={key:0,class:"upload-progress"},ann={class:"progress-bar"},snn={class:"progress-text"},lnn={class:"contact-section"},unn={class:"modal-footer"},cnn=["src"],dnn={__name:"MobileFeedbackModal",props:{visible:{type:Boolean,default:!1}},emits:["close","submit"],setup(e,{emit:t}){const n=e,r=t,o=K("function"),i=K(""),a=K(""),s=K(null),l=K([]);K(!1);const u=K(!1),d=K(""),c=ee(()=>i.value.trim()?yve:bve),f=A=>{d.value=A,u.value=!0},p=()=>{u.value=!1},v=A=>{o.value=A},h=()=>{o.value="function",i.value="",a.value="",l.value=[],r("close")},g=()=>{s.value?.click()},y=async A=>{const S=Array.from(A.target.files);if(l.value.length+S.length>3){f("最多只能上传3张图片");return}const E=5*1024*1024,D=S.filter(_=>_.size>E?(f(`图片 ${_.name} 超过5MB限制`),!1):!0);if(D.length!==0){for(const _ of D)await m(_);A.target.value=""}},m=async A=>{try{console.log("开始上传图片:",A.name);const S={file:A,url:URL.createObjectURL(A),uploading:!0,progress:0,error:!1};l.value.push(S);const E=new FormData;E.append("image",A),console.log("FormData 已创建:",E),console.log("开始调用后端API...");const D=await zn.uploadImage(E);if(console.log("后端API响应:",D),D.statusCode===200){const _=D.fileUrl||D.fileURL;console.log("上传成功:",_);const M=l.value.findIndex(O=>O.file===A);M!==-1&&(l.value[M]={...S,url:_,uploading:!1,progress:100}),f(`图片 ${A.name} 上传成功`)}else throw new Error(D.message||"上传失败")}catch(S){console.error("图片上传失败:",S);const E=l.value.findIndex(D=>D.file===A);E!==-1&&(l.value[E].error=!0,l.value[E].uploading=!1),f(`图片 ${A.name} 上传失败: ${S.message}`)}},b=A=>{l.value.splice(A,1)},w=()=>{if(!i.value.trim()){f("请填写反馈内容");return}const A=l.value.filter(D=>!D.uploading&&!D.error);let S="";A.length>0&&(S=A.map(D=>D.url).join(","));const E={type:o.value,content:i.value,contact:a.value,feedback_img:S};console.log("提交反馈数据:",E),r("submit",E),o.value="function",i.value="",a.value="",l.value=[]};return St(()=>n.visible,A=>{if(A){const S=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${S}px`}else document.body.style.overflow="",document.body.style.paddingRight=""}),yl(()=>{document.body.style.overflow="",document.body.style.paddingRight=""}),(A,S)=>e.visible?(L(),G("div",Gtn,[x("div",{class:"modal-content",onClick:S[6]||(S[6]=en(()=>{},["stop"]))},[x("div",{class:"modal-header"},[S[8]||(S[8]=x("h2",{class:"modal-title"},"意见反馈",-1)),x("button",{class:"close-btn",onClick:h},S[7]||(S[7]=[x("span",{class:"close-icon"},"×",-1)]))]),x("div",Ktn,[x("div",Ytn,[S[9]||(S[9]=x("h3",{class:"section-title"},"请选择反馈类型",-1)),x("div",Qtn,[x("button",{class:oe(["type-btn",{active:o.value==="function"}]),onClick:S[0]||(S[0]=E=>v("function"))}," 功能建议 ",2),x("button",{class:oe(["type-btn",{active:o.value==="interface"}]),onClick:S[1]||(S[1]=E=>v("interface"))}," 界面优化 ",2),x("button",{class:oe(["type-btn",{active:o.value==="experience"}]),onClick:S[2]||(S[2]=E=>v("experience"))}," 体验问题 ",2),x("button",{class:oe(["type-btn",{active:o.value==="other"}]),onClick:S[3]||(S[3]=E=>v("other"))}," 其他 ",2)])]),x("div",Ztn,[S[10]||(S[10]=x("h3",{class:"section-title"},"反馈内容",-1)),x("div",Xtn,[cn(x("textarea",{class:"feedback-textarea",placeholder:"请详细描述您的问题或建议...","onUpdate:modelValue":S[4]||(S[4]=E=>i.value=E),maxlength:"200"},null,512),[[qr,i.value]]),x("div",Jtn,je(i.value.length)+"/200",1)])]),x("div",enn,[l.value.length===0?(L(),G("div",{key:0,class:"upload-area",onClick:g},S[11]||(S[11]=[x("div",{class:"upload-icon"},[x("img",{src:fE,alt:"上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 上传截图(选填,最多3张,每张不超过5M) ",-1)]))):xe("",!0),l.value.length>0?(L(),G("div",tnn,[(L(!0),G(Rt,null,un(l.value,(E,D)=>(L(),G("div",{key:D,class:"image-item"},[x("img",{src:E.url,alt:`截图${D+1}`,class:"preview-img"},null,8,nnn),x("div",rnn,[x("button",{class:"delete-btn",onClick:_=>b(D)},S[12]||(S[12]=[x("span",{class:"delete-icon"},"×",-1)]),8,onn)]),E.uploading?(L(),G("div",inn,[x("div",ann,[x("div",{class:"progress-fill",style:rn({width:E.progress+"%"})},null,4)]),x("span",snn,je(E.progress)+"%",1)])):xe("",!0)]))),128)),l.value.length<3?(L(),G("div",{key:0,class:"continue-upload",onClick:g},S[13]||(S[13]=[x("div",{class:"upload-icon"},[x("img",{src:fE,alt:"继续上传",class:"upload-img"})],-1),x("div",{class:"upload-text"}," 继续上传 ",-1)]))):xe("",!0)])):xe("",!0),x("input",{ref_key:"fileInput",ref:s,type:"file",accept:"image/*",multiple:"",style:{display:"none"},onChange:y},null,544)]),x("div",lnn,[cn(x("input",{type:"text",class:"contact-input",placeholder:"请留下您的联系方式(选填)","onUpdate:modelValue":S[5]||(S[5]=E=>a.value=E)},null,512),[[qr,a.value]])])]),x("div",unn,[x("button",{class:"submit-btn",onClick:w},[x("img",{src:c.value,alt:"提交反馈",class:"submit-icon"},null,8,cnn)])])]),He(m2,{visible:u.value,message:d.value,onClose:p},null,8,["visible","message"])])):xe("",!0)}},fnn=Zo(dnn,[["__scopeId","data-v-badc5e32"]]),pnn={class:"mobile-container"},hnn={class:"mobile-header"},gnn={class:"mobile-username"},vnn={key:0,class:"mobile-dropdown-menu"},mnn={class:"mobile-main-content"},ynn={class:"mobile-search-container"},bnn={class:"mobile-search-box"},wnn=["disabled"],Ann={class:"mobile-icon-container"},Cnn=["src"],xnn={key:0,class:"mobile-recording-indicator"},Snn=["disabled"],Enn=["src"],knn={class:"mobile-cards-container"},Tnn={class:"mobile-common-questions-card"},_nn={class:"mobile-questions-content"},Dnn={class:"mobile-questions-list"},Inn=["onClick"],Onn={__name:"m-Index",setup(e){const t=Yl(),{isListening:n,isProcessing:r,transcript:o,error:i,startListening:a,stopListening:s}=O0(),l=K(""),u=K(!1),d=K(!1),c=K([]),f=K(null),p=K(!1),v=async()=>{try{const W=await zn.getRecommendQuestion({limit:5});c.value=W.data,console.log("推荐问题数据结构:",c.value)}catch(W){console.error("获取推荐问题失败:",W)}},h=()=>{v()},g=()=>{if(console.log("点击语音按钮"),r.value){Et.info("语音正在转写,请稍候...");return}n.value?m():y()},y=()=>{console.log("开始语音输入"),a()||Et.error("语音识别启动失败,请检查麦克风权限")},m=()=>{console.log("停止语音输入"),s(),Et.info("语音转写中,请稍候...")},b=async()=>{if(!l.value.trim()){Et.warning("请输入搜索内容");return}if(!d.value){d.value=!0;try{console.log("搜索内容:",l.value),t.push({path:"/mobile/chat",query:{autoMessage:l.value}})}finally{d.value=!1}}},w=()=>{u.value=!0},A=()=>{u.value=!1},S=async W=>{try{console.log("收到反馈数据:",W),console.log("feedback_img字段值:",W.feedback_img);let B=W.feedback_img||"";console.log("处理后的feedbackImg:",B);const z={feedback_type:E(W.type),feedback_content:W.content,feedback_user_phone:W.contact||"",feedback_img:B};console.log(z,"feedbackPayload");const j=await zn.submitFeedback(z);console.log(j,"response"),Et.success("反馈提交成功!感谢您的宝贵意见"),A()}catch(B){console.error("提交反馈失败:",B),Et.error("提交反馈失败,请重试")}},E=W=>({function:1,interface:2,experience:3,other:4})[W]||1,D=W=>{console.log("点击问题:",W),t.push({path:"/mobile/chat",query:{autoMessage:W}})},_=()=>{t.push("/mobile/hazard-detection")},M=()=>{t.push("/mobile/safety-hazard")},O=()=>{t.push("/mobile/exam-workshop")},k=()=>{t.push("/mobile/ai-writing")},R=()=>{t.push("/mobile/policy-document")},N=()=>{if(console.log("=".repeat(60)),console.log('📱 用户点击"返回APP"按钮'),console.log("🌐 当前 URL:",window.location.href),console.log("🔍 检查 window.nativeClosePage:",typeof window.nativeClosePage),window.nativeClosePage&&typeof window.nativeClosePage=="function")try{console.log("✅ nativeClosePage 方法存在,准备调用..."),window.nativeClosePage(),console.log("✅ 已成功调用 nativeClosePage()"),sessionStorage.setItem("is_closing","true"),setTimeout(()=>{console.log("🔄 延迟尝试使用 window.close() 关闭页面");try{window.close(),console.log("✅ 已调用 window.close()")}catch(W){console.warn("⚠️ window.close() 调用失败:",W.message)}},100);return}catch(W){console.error("❌ 调用 nativeClosePage() 失败:",W),console.error("❌ 错误详情:",W.message)}try{console.log("🔄 尝试使用 window.close() 关闭页面"),window.close(),console.log("✅ 已调用 window.close()"),sessionStorage.setItem("is_closing","true"),setTimeout(()=>{console.warn("⚠️ window.close() 可能未生效,显示提示信息"),Et.info("如果页面未关闭,请使用 APP 的返回按钮")},500)}catch(W){console.error("❌ window.close() 调用失败:",W),console.error("❌ 错误详情:",W.message),console.warn("⚠️ 当前环境:",navigator.userAgent),Et.warning("无法自动关闭页面,请使用 APP 的返回按钮")}console.log("=".repeat(60))};return St(o,W=>{!W||n.value||(l.value=W)}),St(i,W=>{W&&(console.error("语音识别错误:",W),Et.error(W))}),qn(()=>{v();const W=Vve();f.value={username:W||"蜀道用户"},console.log("用户信息:",f.value)}),(W,B)=>(L(),G("div",pnn,[x("div",hnn,[B[5]||(B[5]=x("div",{class:"logo"},[x("img",{src:Qj,alt:"logo",class:"logo-img"})],-1)),x("div",{class:"mobile-user-info",onMouseenter:B[0]||(B[0]=z=>p.value=!0),onMouseleave:B[1]||(B[1]=z=>p.value=!1)},[B[4]||(B[4]=x("div",{class:"mobile-user-avatar"},[x("div",{class:"mobile-avatar-icon"})],-1)),x("span",gnn,je(f.value?.username||"用户"),1),p.value?(L(),G("div",vnn,[x("div",{class:"mobile-dropdown-item mobile-logout-item",onClick:N},B[3]||(B[3]=[x("span",null,"返回APP",-1)]))])):xe("",!0)],32)]),x("div",mnn,[B[15]||(B[15]=x("h1",{class:"mobile-main-title"},"蜀道安全管理AI智能助手",-1)),B[16]||(B[16]=x("p",{class:"mobile-sub-title"},"安全法规问答,智能识图提示,AI赋能筑造安心与高效",-1)),x("div",ynn,[x("div",bnn,[cn(x("input",{type:"text",placeholder:"请输入您想问的问题...",class:"mobile-search-input","onUpdate:modelValue":B[2]||(B[2]=z=>l.value=z),onKeyup:$r(b,["enter"])},null,544),[[qr,l.value]]),x("button",{class:oe(["mobile-voice-btn",{recording:C(n)}]),onClick:g,disabled:d.value},[x("div",Ann,[x("img",{src:C(rp),alt:"语音",class:"mobile-action-icon"},null,8,Cnn),C(n)?(L(),G("div",xnn)):xe("",!0)])],10,wnn),B[6]||(B[6]=x("div",{class:"mobile-divider"},null,-1)),x("button",{class:"mobile-send-btn",onClick:b,disabled:d.value||!l.value.trim()},[x("img",{src:l.value.trim()&&!d.value?C(ip):C(op),alt:"发送",class:"mobile-send-icon"},null,8,Enn)],8,Snn)])]),x("div",knn,[x("div",Tnn,[x("div",{class:"mobile-card-header"},[B[8]||(B[8]=x("div",{class:"mobile-card-title-section"},[x("img",{src:$tn,alt:"场景问题",class:"mobile-card-avatar"}),x("span",{class:"mobile-card-title"},"场景问题")],-1)),x("div",{class:"mobile-refresh-button",onClick:h},B[7]||(B[7]=[x("span",{class:"mobile-refresh-text"},"换一换",-1)]))]),x("div",_nn,[x("div",Dnn,[(L(!0),G(Rt,null,un(c.value,(z,j)=>(L(),G("div",{class:"mobile-question-item",onClick:q=>D(z.question),key:j},je(j+1)+". "+je(z.question),9,Inn))),128))])])]),x("div",{class:"mobile-services-grid"},[x("div",{class:"mobile-service-item",onClick:_},B[9]||(B[9]=[ki('<div class="mobile-service-icon" data-v-8636a91b><img src="'+jtn+'" alt="隐患提示" class="mobile-service-bg" data-v-8636a91b></div><div class="mobile-service-info mobile-service-info-large" data-v-8636a91b><div class="mobile-service-title mobile-service-title-large" data-v-8636a91b>隐患提示</div><div class="mobile-service-desc mobile-service-desc-large" data-v-8636a91b>图片智能识别,风险隐患提示</div></div>',2)])),x("div",{class:"mobile-service-item",onClick:M},B[10]||(B[10]=[ki('<div class="mobile-service-icon" data-v-8636a91b><img src="'+Htn+'" alt="安全培训" class="mobile-service-bg" data-v-8636a91b></div><div class="mobile-service-info mobile-service-info-large" data-v-8636a91b><div class="mobile-service-title mobile-service-title-large" data-v-8636a91b>安全培训</div><div class="mobile-service-desc mobile-service-desc-large" data-v-8636a91b>智能编排大纲,生成精美演示文稿</div></div>',2)]))]),x("div",{class:"mobile-four-services"},[x("div",{class:"mobile-service-item",onClick:O},B[11]||(B[11]=[ki('<div class="mobile-service-header" data-v-8636a91b><div class="mobile-service-icon" data-v-8636a91b><img src="'+hve+'" alt="考试工坊" class="mobile-icon-img" data-v-8636a91b></div><div class="mobile-service-title" data-v-8636a91b>考试工坊</div></div><div class="mobile-service-description" data-v-8636a91b>让组卷更省心,让出题更精准</div><div class="mobile-service-tag" style="color:#2563EB;" data-v-8636a91b>生成考题 ›</div>',3)])),x("div",{class:"mobile-service-item",onClick:k},B[12]||(B[12]=[ki('<div class="mobile-service-header" data-v-8636a91b><div class="mobile-service-icon" data-v-8636a91b><img src="'+vve+'" alt="AI写作" class="mobile-icon-img" data-v-8636a91b></div><div class="mobile-service-title" data-v-8636a91b>AI写作</div></div><div class="mobile-service-description" data-v-8636a91b>一键创作公文,让文案更专业</div><div class="mobile-service-tag" style="color:#16A34A;" data-v-8636a91b>开始创作 ›</div>',3)])),x("div",{class:"mobile-service-item",onClick:R},B[13]||(B[13]=[ki('<div class="mobile-service-header" data-v-8636a91b><div class="mobile-service-icon" data-v-8636a91b><img src="'+gve+'" alt="政策文件" class="mobile-icon-img" data-v-8636a91b></div><div class="mobile-service-title" data-v-8636a91b>政策文件</div></div><div class="mobile-service-description" data-v-8636a91b>汇集国家、行业及集团政策文件</div><div class="mobile-service-tag" style="color:#EA580C;" data-v-8636a91b>了解更多 ›</div>',3)])),x("div",{class:"mobile-service-item",onClick:w},B[14]||(B[14]=[ki('<div class="mobile-service-header" data-v-8636a91b><div class="mobile-service-icon" data-v-8636a91b><img src="'+mve+'" alt="意见反馈" class="mobile-icon-img" data-v-8636a91b></div><div class="mobile-service-title" data-v-8636a91b>意见反馈</div></div><div class="mobile-service-description" data-v-8636a91b>助力产品升级,期待您的反馈</div><div class="mobile-service-tag" style="color:#9333EA;" data-v-8636a91b>参与反馈 ›</div>',3)]))])])]),B[17]||(B[17]=x("div",{class:"mobile-footer"},[x("div",{class:"mobile-footer-info"},[x("span",null,"工信部备案号: 蜀ICP备20251411234号-1"),x("span",null,"川公网安备: 51010502011234号")])],-1)),He(fnn,{visible:u.value,onClose:A,onSubmit:S},null,8,["visible"])]))}},Mnn=Zo(Onn,[["__scopeId","data-v-8636a91b"]]),Pnn={class:"mobile-header"},Nnn={class:"page-title"},Rnn={__name:"MobileHeader",props:{title:{type:String,default:""},showMenu:{type:Boolean,default:!0}},setup(e){const t=Yl(),n=()=>{t.push("/")};return(r,o)=>(L(),G("header",Pnn,[x("button",{class:"back-button",onClick:n},o[1]||(o[1]=[x("img",{src:swe,alt:"回到首页",class:"back-icon"},null,-1)])),x("h1",Nnn,je(e.title),1),e.showMenu?(L(),G("button",{key:0,class:"hamburger-btn",onClick:o[0]||(o[0]=i=>r.$emit("menu"))},o[2]||(o[2]=[x("span",{class:"line"},null,-1),x("span",{class:"line"},null,-1),x("span",{class:"line"},null,-1)]))):xe("",!0)]))}},y2=Zo(Rnn,[["__scopeId","data-v-7dd50625"]]),m0e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA6CAYAAADoUOpSAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAWdSURBVGiB7VrNeds4EH0jkN+n2yodMBWsdDAT3pQKolSQpIJIFdiuwHYFUSqwXUF0o0Qe5A7CrSA6KiHB2cPCG5oGKJAED/tt3o0DcoBHAPMHEAbGfr+fHI/Hqed5b5l5AiBg5oCIJgDAzAciyojoACAriuI+iqLN0OOioRTvdrvFaDR6z8xzAJOWnx+IaMPM92EYrt2PbgDiSZJ8AHAOIHCkMgNw6foHOCMex/FcCHEOYO5KZw2ZlPJNFEWZC2UjF0q22+1SCPEVw5EGgEAIsd9ut0sXynrN+H6/n+R5fg7AajDMnBHRRhmygxL/a/AATC27vg7DcNV6wBX0Ip6m6S0zL068tinL8p6Z704t0ziOAyHEHHY2Yh2G4UfrwdbQmXiapufMfNHwyoOUctXVNdkYSSK6ODs7u+yivxNxC9K9l6JtX2VZrl6/fn3dVm9r4mo5fjM0H5j546tXr+7qDSqQWahAJmDmidrrH8MwfGjqU83+FfTxwEFKOWtr7b02LwOAclkmrOqk9/v9pCiKT3meL4UQE2YGABD988+Z+RbAy6Y+wzBcJ0kCAJ81zRPP864AvLNn0dKdJUkyBfBB11aW5aoeZOx2u0We59/UUtVGb2rWTyIMwzURXejamHkRx/HcRs8j2vrxK52QiO7q+yxN03MiuoWGsHJrd0R0LaW0nillyDa6thMr8fmYbV9s2ttSypfVPbbb7RaKdBUHIrr2PO9mNptZzbJhHHMVLD2D7/svbHVbz7jyrzqsq6TjOA6IqL4yHqSUs7Ozs8s+pAEgiqINET0zngDw48ePD7Z62iz19zohM99Xn9WSCyqiTEr5zlWMDQBFUdzo5KPR6K2tjjbEdeHkQeO6nkRyLhOLR4zH4wf8CnmrsA157Yjv9/sJ9Fb5if/d7XaL2nsb16QBQG0Xne+fqLGehBXxPM8Dnbzuikaj0Z/V57Is7zEcMp3weDy6Iy6lNCmrd/7kPWZujMj6oMH/BzbfO8nHK6gPJnOs3xlsQ9ZMJ1TFw1/KPO+mKAoAmJZl+WWI/W3q+xFCCCt3aUV8PB4f8jzXNT2xosrodEoTOyDQCX3fz2w+to7ckiT5Do1lbxMtuYKq/HzXNB3CMHxho6PNHtcaquPxeKoC4xw/f/6c6+REtLHVYU1cSvlFJxdCaCO6IUFEn3TyehTZBGvi4/FYGx8DmLdNCftA9aXtT0q5sdVjTVztY61iIYQ2XR0CQghdMQKoJUun0MqPSylNVc1pkiSDk0/T1Fh8lFK28iatiKs/ujY0L1VtbBBst9tlQ9Gx1WwDHSI39WdN7uvzEPs9SZLpaDQyrais7WwDHYhHUZQ1lYuEELdxHAdt9ZqgdGkrLgDAzKsuEWKnWF1VQS4MzRMhxK1tengKqsxkKlRe6ErZNuicpKjC39rQPFVnar2gDGagayOiu66nKEDP7Mz3/RUMER2AZZ/9rr41HUZmnud1PjcDehKfzWYHtd+1xq7B555Ew7eZlPJN3/ygdz4eRVFWlqVpyQVdzrOVWwwMzZcu0l1nNyIajowPvu+/tJ0hVb//Cj3xXkfDVTirwBRFsYJ+yU+KotAmFTqo+n2ga+vir01wRjyKooyItMe1zLxs4d603oCILlxWdJzW3DzPu4Fh1k05dBUNezvr47p0cEp8NpsdTLNuyqFrMOX2nYKUJriusj7Oug42pxxznVBKadLZGYPcbFTXv/6oy5tOSh8vENTlzPzXULcbf+M3/gcYZI+naXpVlqWTsjMRbVxFa1W0vvVkA3WVK3CkzpWeJ3DuzgZANoTS/wLxQfCbuEsQUeZQ1yAHkoMQL4riC8wl6DbITDec+mIQ4lEUZczswgU5qbboMNgeV2Xf1tepK7geMkYf1Lj5vn+Jbu4oU98OhkGJqyrsG5hL0Do8uKiinsLfTWJ0111CJoIAAAAASUVORK5CYII=",Bnn={class:"mobile-history-drawer"},Lnn={class:"drawer-tabbar"},Fnn=["onClick"],Unn={class:"icon-wrap"},znn=["src","alt"],$nn={class:"tab-label"},jnn={class:"drawer-header"},Hnn={class:"drawer-title"},Wnn={class:"drawer-content"},Vnn={key:0,class:"loading-state"},qnn=["onClick"],Gnn={class:"history-content"},Knn={class:"history-title"},Ynn={class:"history-time"},Qnn=["onClick"],Znn=["src"],Xnn={key:2,class:"empty-history"},Jnn={__name:"MobileHistoryDrawer",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"历史记录"},historyData:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1}},emits:["close","createNewTask","handleHistoryItem","deleteHistoryItem"],setup(e,{emit:t}){const n=Yl(),r=j_(),o=t,i=ee(()=>[{path:"/mobile/chat",label:"AI问答",icon:m0e,iconActive:m0e},{path:"/mobile/safety-hazard",label:"安全培训",icon:AF,iconActive:AF},{path:"/mobile/hazard-detection",label:"隐患提示",icon:wF,iconActive:wF},{path:"/mobile/ai-writing",label:"AI写作",icon:CF,iconActive:CF},{path:"/mobile/exam-workshop",label:"考试工坊",icon:xF,iconActive:xF}]),a=f=>r.path===f,s=f=>{r.path!==f&&n.push(f)},l=()=>{o("close")},u=()=>{o("createNewTask")},d=f=>{o("handleHistoryItem",f)},c=(f,p)=>{o("deleteHistoryItem",f,p)};return(f,p)=>cn((L(),G("div",Bnn,[x("div",Lnn,[(L(!0),G(Rt,null,un(i.value,v=>(L(),G("button",{key:v.path,class:oe(["tab-item",{active:a(v.path)}]),onClick:h=>s(v.path)},[x("div",Unn,[x("img",{src:a(v.path)?v.iconActive:v.icon,alt:v.label,class:"tab-icon"},null,8,znn)]),x("span",$nn,je(v.label),1)],10,Fnn))),128))]),x("div",jnn,[x("div",Hnn,je(e.title),1),x("div",{class:"header-actions"},[x("button",{class:"new-task-btn",onClick:u},"新建任务"),x("button",{class:"close-btn",onClick:l},"关闭")])]),x("div",Wnn,[e.loading?(L(),G("div",Vnn,p[0]||(p[0]=[x("div",{class:"loading-text"},"加载中...",-1)]))):e.historyData.length>0?(L(!0),G(Rt,{key:1},un(e.historyData,(v,h)=>(L(),G("div",{key:v.id,class:oe(["history-item",{active:v.isActive}]),onClick:g=>d(v)},[x("div",Gnn,[x("div",Knn,je(v.title),1),x("div",Ynn,je(v.time),1)]),x("div",{class:"delete-btn always-visible",onClick:en(g=>c(v,h),["stop"])},[x("img",{src:C(kc),alt:"删除",class:"delete-icon"},null,8,Znn)],8,Qnn)],10,qnn))),128)):(L(),G("div",Xnn,p[1]||(p[1]=[x("div",{class:"empty-text"},"暂无历史记录",-1)])))])],512)),[[kr,e.visible]])}},ZC=Zo(Jnn,[["__scopeId","data-v-98e1dd42"]]);var J8={exports:{}};/*!
- * Vditor v3.11.2 - A markdown editor written in TypeScript.
- *
- * MIT License
- *
- * Copyright (c) 2018-present B3log 开源, b3log.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- */var ern=J8.exports,y0e;function trn(){return y0e||(y0e=1,(function(e,t){(function(r,o){e.exports=o()})(ern,function(){return(()=>{var n={173:(a=>{var s=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},l=-1,u=1,d=0;s.Diff=function(c,f){return[c,f]},s.prototype.diff_main=function(c,f,p,v){typeof v>"u"&&(this.Diff_Timeout<=0?v=Number.MAX_VALUE:v=new Date().getTime()+this.Diff_Timeout*1e3);var h=v;if(c==null||f==null)throw new Error("Null input. (diff_main)");if(c==f)return c?[new s.Diff(d,c)]:[];typeof p>"u"&&(p=!0);var g=p,y=this.diff_commonPrefix(c,f),m=c.substring(0,y);c=c.substring(y),f=f.substring(y),y=this.diff_commonSuffix(c,f);var b=c.substring(c.length-y);c=c.substring(0,c.length-y),f=f.substring(0,f.length-y);var w=this.diff_compute_(c,f,g,h);return m&&w.unshift(new s.Diff(d,m)),b&&w.push(new s.Diff(d,b)),this.diff_cleanupMerge(w),w},s.prototype.diff_compute_=function(c,f,p,v){var h;if(!c)return[new s.Diff(u,f)];if(!f)return[new s.Diff(l,c)];var g=c.length>f.length?c:f,y=c.length>f.length?f:c,m=g.indexOf(y);if(m!=-1)return h=[new s.Diff(u,g.substring(0,m)),new s.Diff(d,y),new s.Diff(u,g.substring(m+y.length))],c.length>f.length&&(h[0][0]=h[2][0]=l),h;if(y.length==1)return[new s.Diff(l,c),new s.Diff(u,f)];var b=this.diff_halfMatch_(c,f);if(b){var w=b[0],A=b[1],S=b[2],E=b[3],D=b[4],_=this.diff_main(w,S,p,v),M=this.diff_main(A,E,p,v);return _.concat([new s.Diff(d,D)],M)}return p&&c.length>100&&f.length>100?this.diff_lineMode_(c,f,v):this.diff_bisect_(c,f,v)},s.prototype.diff_lineMode_=function(c,f,p){var v=this.diff_linesToChars_(c,f);c=v.chars1,f=v.chars2;var h=v.lineArray,g=this.diff_main(c,f,!1,p);this.diff_charsToLines_(g,h),this.diff_cleanupSemantic(g),g.push(new s.Diff(d,""));for(var y=0,m=0,b=0,w="",A="";y<g.length;){switch(g[y][0]){case u:b++,A+=g[y][1];break;case l:m++,w+=g[y][1];break;case d:if(m>=1&&b>=1){g.splice(y-m-b,m+b),y=y-m-b;for(var S=this.diff_main(w,A,!1,p),E=S.length-1;E>=0;E--)g.splice(y,0,S[E]);y=y+S.length}b=0,m=0,w="",A="";break}y++}return g.pop(),g},s.prototype.diff_bisect_=function(c,f,p){for(var v=c.length,h=f.length,g=Math.ceil((v+h)/2),y=g,m=2*g,b=new Array(m),w=new Array(m),A=0;A<m;A++)b[A]=-1,w[A]=-1;b[y+1]=0,w[y+1]=0;for(var S=v-h,E=S%2!=0,D=0,_=0,M=0,O=0,k=0;k<g&&!(new Date().getTime()>p);k++){for(var R=-k+D;R<=k-_;R+=2){var N=y+R,W;R==-k||R!=k&&b[N-1]<b[N+1]?W=b[N+1]:W=b[N-1]+1;for(var B=W-R;W<v&&B<h&&c.charAt(W)==f.charAt(B);)W++,B++;if(b[N]=W,W>v)_+=2;else if(B>h)D+=2;else if(E){var z=y+S-R;if(z>=0&&z<m&&w[z]!=-1){var j=v-w[z];if(W>=j)return this.diff_bisectSplit_(c,f,W,B,p)}}}for(var q=-k+M;q<=k-O;q+=2){var z=y+q,j;q==-k||q!=k&&w[z-1]<w[z+1]?j=w[z+1]:j=w[z-1]+1;for(var Y=j-q;j<v&&Y<h&&c.charAt(v-j-1)==f.charAt(h-Y-1);)j++,Y++;if(w[z]=j,j>v)O+=2;else if(Y>h)M+=2;else if(!E){var N=y+S-q;if(N>=0&&N<m&&b[N]!=-1){var W=b[N],B=y+W-N;if(j=v-j,W>=j)return this.diff_bisectSplit_(c,f,W,B,p)}}}}return[new s.Diff(l,c),new s.Diff(u,f)]},s.prototype.diff_bisectSplit_=function(c,f,p,v,h){var g=c.substring(0,p),y=f.substring(0,v),m=c.substring(p),b=f.substring(v),w=this.diff_main(g,y,!1,h),A=this.diff_main(m,b,!1,h);return w.concat(A)},s.prototype.diff_linesToChars_=function(c,f){var p=[],v={};p[0]="";function h(b){for(var w="",A=0,S=-1,E=p.length;S<b.length-1;){S=b.indexOf(`
- `,A),S==-1&&(S=b.length-1);var D=b.substring(A,S+1);(v.hasOwnProperty?v.hasOwnProperty(D):v[D]!==void 0)?w+=String.fromCharCode(v[D]):(E==g&&(D=b.substring(A),S=b.length),w+=String.fromCharCode(E),v[D]=E,p[E++]=D),A=S+1}return w}var g=4e4,y=h(c);g=65535;var m=h(f);return{chars1:y,chars2:m,lineArray:p}},s.prototype.diff_charsToLines_=function(c,f){for(var p=0;p<c.length;p++){for(var v=c[p][1],h=[],g=0;g<v.length;g++)h[g]=f[v.charCodeAt(g)];c[p][1]=h.join("")}},s.prototype.diff_commonPrefix=function(c,f){if(!c||!f||c.charAt(0)!=f.charAt(0))return 0;for(var p=0,v=Math.min(c.length,f.length),h=v,g=0;p<h;)c.substring(g,h)==f.substring(g,h)?(p=h,g=p):v=h,h=Math.floor((v-p)/2+p);return h},s.prototype.diff_commonSuffix=function(c,f){if(!c||!f||c.charAt(c.length-1)!=f.charAt(f.length-1))return 0;for(var p=0,v=Math.min(c.length,f.length),h=v,g=0;p<h;)c.substring(c.length-h,c.length-g)==f.substring(f.length-h,f.length-g)?(p=h,g=p):v=h,h=Math.floor((v-p)/2+p);return h},s.prototype.diff_commonOverlap_=function(c,f){var p=c.length,v=f.length;if(p==0||v==0)return 0;p>v?c=c.substring(p-v):p<v&&(f=f.substring(0,p));var h=Math.min(p,v);if(c==f)return h;for(var g=0,y=1;;){var m=c.substring(h-y),b=f.indexOf(m);if(b==-1)return g;y+=b,(b==0||c.substring(h-y)==f.substring(0,y))&&(g=y,y++)}},s.prototype.diff_halfMatch_=function(c,f){if(this.Diff_Timeout<=0)return null;var p=c.length>f.length?c:f,v=c.length>f.length?f:c;if(p.length<4||v.length*2<p.length)return null;var h=this;function g(_,M,O){for(var k=_.substring(O,O+Math.floor(_.length/4)),R=-1,N="",W,B,z,j;(R=M.indexOf(k,R+1))!=-1;){var q=h.diff_commonPrefix(_.substring(O),M.substring(R)),Y=h.diff_commonSuffix(_.substring(0,O),M.substring(0,R));N.length<Y+q&&(N=M.substring(R-Y,R)+M.substring(R,R+q),W=_.substring(0,O-Y),B=_.substring(O+q),z=M.substring(0,R-Y),j=M.substring(R+q))}return N.length*2>=_.length?[W,B,z,j,N]:null}var y=g(p,v,Math.ceil(p.length/4)),m=g(p,v,Math.ceil(p.length/2)),b;if(!y&&!m)return null;m?y?b=y[4].length>m[4].length?y:m:b=m:b=y;var w,A,S,E;c.length>f.length?(w=b[0],A=b[1],S=b[2],E=b[3]):(S=b[0],E=b[1],w=b[2],A=b[3]);var D=b[4];return[w,A,S,E,D]},s.prototype.diff_cleanupSemantic=function(c){for(var f=!1,p=[],v=0,h=null,g=0,y=0,m=0,b=0,w=0;g<c.length;)c[g][0]==d?(p[v++]=g,y=b,m=w,b=0,w=0,h=c[g][1]):(c[g][0]==u?b+=c[g][1].length:w+=c[g][1].length,h&&h.length<=Math.max(y,m)&&h.length<=Math.max(b,w)&&(c.splice(p[v-1],0,new s.Diff(l,h)),c[p[v-1]+1][0]=u,v--,v--,g=v>0?p[v-1]:-1,y=0,m=0,b=0,w=0,h=null,f=!0)),g++;for(f&&this.diff_cleanupMerge(c),this.diff_cleanupSemanticLossless(c),g=1;g<c.length;){if(c[g-1][0]==l&&c[g][0]==u){var A=c[g-1][1],S=c[g][1],E=this.diff_commonOverlap_(A,S),D=this.diff_commonOverlap_(S,A);E>=D?(E>=A.length/2||E>=S.length/2)&&(c.splice(g,0,new s.Diff(d,S.substring(0,E))),c[g-1][1]=A.substring(0,A.length-E),c[g+1][1]=S.substring(E),g++):(D>=A.length/2||D>=S.length/2)&&(c.splice(g,0,new s.Diff(d,A.substring(0,D))),c[g-1][0]=u,c[g-1][1]=S.substring(0,S.length-D),c[g+1][0]=l,c[g+1][1]=A.substring(D),g++),g++}g++}},s.prototype.diff_cleanupSemanticLossless=function(c){function f(D,_){if(!D||!_)return 6;var M=D.charAt(D.length-1),O=_.charAt(0),k=M.match(s.nonAlphaNumericRegex_),R=O.match(s.nonAlphaNumericRegex_),N=k&&M.match(s.whitespaceRegex_),W=R&&O.match(s.whitespaceRegex_),B=N&&M.match(s.linebreakRegex_),z=W&&O.match(s.linebreakRegex_),j=B&&D.match(s.blanklineEndRegex_),q=z&&_.match(s.blanklineStartRegex_);return j||q?5:B||z?4:k&&!N&&W?3:N||W?2:k||R?1:0}for(var p=1;p<c.length-1;){if(c[p-1][0]==d&&c[p+1][0]==d){var v=c[p-1][1],h=c[p][1],g=c[p+1][1],y=this.diff_commonSuffix(v,h);if(y){var m=h.substring(h.length-y);v=v.substring(0,v.length-y),h=m+h.substring(0,h.length-y),g=m+g}for(var b=v,w=h,A=g,S=f(v,h)+f(h,g);h.charAt(0)===g.charAt(0);){v+=h.charAt(0),h=h.substring(1)+g.charAt(0),g=g.substring(1);var E=f(v,h)+f(h,g);E>=S&&(S=E,b=v,w=h,A=g)}c[p-1][1]!=b&&(b?c[p-1][1]=b:(c.splice(p-1,1),p--),c[p][1]=w,A?c[p+1][1]=A:(c.splice(p+1,1),p--))}p++}},s.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,s.whitespaceRegex_=/\s/,s.linebreakRegex_=/[\r\n]/,s.blanklineEndRegex_=/\n\r?\n$/,s.blanklineStartRegex_=/^\r?\n\r?\n/,s.prototype.diff_cleanupEfficiency=function(c){for(var f=!1,p=[],v=0,h=null,g=0,y=!1,m=!1,b=!1,w=!1;g<c.length;)c[g][0]==d?(c[g][1].length<this.Diff_EditCost&&(b||w)?(p[v++]=g,y=b,m=w,h=c[g][1]):(v=0,h=null),b=w=!1):(c[g][0]==l?w=!0:b=!0,h&&(y&&m&&b&&w||h.length<this.Diff_EditCost/2&&y+m+b+w==3)&&(c.splice(p[v-1],0,new s.Diff(l,h)),c[p[v-1]+1][0]=u,v--,h=null,y&&m?(b=w=!0,v=0):(v--,g=v>0?p[v-1]:-1,b=w=!1),f=!0)),g++;f&&this.diff_cleanupMerge(c)},s.prototype.diff_cleanupMerge=function(c){c.push(new s.Diff(d,""));for(var f=0,p=0,v=0,h="",g="",y;f<c.length;)switch(c[f][0]){case u:v++,g+=c[f][1],f++;break;case l:p++,h+=c[f][1],f++;break;case d:p+v>1?(p!==0&&v!==0&&(y=this.diff_commonPrefix(g,h),y!==0&&(f-p-v>0&&c[f-p-v-1][0]==d?c[f-p-v-1][1]+=g.substring(0,y):(c.splice(0,0,new s.Diff(d,g.substring(0,y))),f++),g=g.substring(y),h=h.substring(y)),y=this.diff_commonSuffix(g,h),y!==0&&(c[f][1]=g.substring(g.length-y)+c[f][1],g=g.substring(0,g.length-y),h=h.substring(0,h.length-y))),f-=p+v,c.splice(f,p+v),h.length&&(c.splice(f,0,new s.Diff(l,h)),f++),g.length&&(c.splice(f,0,new s.Diff(u,g)),f++),f++):f!==0&&c[f-1][0]==d?(c[f-1][1]+=c[f][1],c.splice(f,1)):f++,v=0,p=0,h="",g="";break}c[c.length-1][1]===""&&c.pop();var m=!1;for(f=1;f<c.length-1;)c[f-1][0]==d&&c[f+1][0]==d&&(c[f][1].substring(c[f][1].length-c[f-1][1].length)==c[f-1][1]?(c[f][1]=c[f-1][1]+c[f][1].substring(0,c[f][1].length-c[f-1][1].length),c[f+1][1]=c[f-1][1]+c[f+1][1],c.splice(f-1,1),m=!0):c[f][1].substring(0,c[f+1][1].length)==c[f+1][1]&&(c[f-1][1]+=c[f+1][1],c[f][1]=c[f][1].substring(c[f+1][1].length)+c[f+1][1],c.splice(f+1,1),m=!0)),f++;m&&this.diff_cleanupMerge(c)},s.prototype.diff_xIndex=function(c,f){var p=0,v=0,h=0,g=0,y;for(y=0;y<c.length&&(c[y][0]!==u&&(p+=c[y][1].length),c[y][0]!==l&&(v+=c[y][1].length),!(p>f));y++)h=p,g=v;return c.length!=y&&c[y][0]===l?g:g+(f-h)},s.prototype.diff_prettyHtml=function(c){for(var f=[],p=/&/g,v=/</g,h=/>/g,g=/\n/g,y=0;y<c.length;y++){var m=c[y][0],b=c[y][1],w=b.replace(p,"&").replace(v,"<").replace(h,">").replace(g,"¶<br>");switch(m){case u:f[y]='<ins style="background:#e6ffe6;">'+w+"</ins>";break;case l:f[y]='<del style="background:#ffe6e6;">'+w+"</del>";break;case d:f[y]="<span>"+w+"</span>";break}}return f.join("")},s.prototype.diff_text1=function(c){for(var f=[],p=0;p<c.length;p++)c[p][0]!==u&&(f[p]=c[p][1]);return f.join("")},s.prototype.diff_text2=function(c){for(var f=[],p=0;p<c.length;p++)c[p][0]!==l&&(f[p]=c[p][1]);return f.join("")},s.prototype.diff_levenshtein=function(c){for(var f=0,p=0,v=0,h=0;h<c.length;h++){var g=c[h][0],y=c[h][1];switch(g){case u:p+=y.length;break;case l:v+=y.length;break;case d:f+=Math.max(p,v),p=0,v=0;break}}return f+=Math.max(p,v),f},s.prototype.diff_toDelta=function(c){for(var f=[],p=0;p<c.length;p++)switch(c[p][0]){case u:f[p]="+"+encodeURI(c[p][1]);break;case l:f[p]="-"+c[p][1].length;break;case d:f[p]="="+c[p][1].length;break}return f.join(" ").replace(/%20/g," ")},s.prototype.diff_fromDelta=function(c,f){for(var p=[],v=0,h=0,g=f.split(/\t/g),y=0;y<g.length;y++){var m=g[y].substring(1);switch(g[y].charAt(0)){case"+":try{p[v++]=new s.Diff(u,decodeURI(m))}catch{throw new Error("Illegal escape in diff_fromDelta: "+m)}break;case"-":case"=":var b=parseInt(m,10);if(isNaN(b)||b<0)throw new Error("Invalid number in diff_fromDelta: "+m);var w=c.substring(h,h+=b);g[y].charAt(0)=="="?p[v++]=new s.Diff(d,w):p[v++]=new s.Diff(l,w);break;default:if(g[y])throw new Error("Invalid diff operation in diff_fromDelta: "+g[y])}}if(h!=c.length)throw new Error("Delta length ("+h+") does not equal source text length ("+c.length+").");return p},s.prototype.match_main=function(c,f,p){if(c==null||f==null||p==null)throw new Error("Null input. (match_main)");return p=Math.max(0,Math.min(p,c.length)),c==f?0:c.length?c.substring(p,p+f.length)==f?p:this.match_bitap_(c,f,p):-1},s.prototype.match_bitap_=function(c,f,p){if(f.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var v=this.match_alphabet_(f),h=this;function g(W,B){var z=W/f.length,j=Math.abs(p-B);return h.Match_Distance?z+j/h.Match_Distance:j?1:z}var y=this.Match_Threshold,m=c.indexOf(f,p);m!=-1&&(y=Math.min(g(0,m),y),m=c.lastIndexOf(f,p+f.length),m!=-1&&(y=Math.min(g(0,m),y)));var b=1<<f.length-1;m=-1;for(var w,A,S=f.length+c.length,E,D=0;D<f.length;D++){for(w=0,A=S;w<A;)g(D,p+A)<=y?w=A:S=A,A=Math.floor((S-w)/2+w);S=A;var _=Math.max(1,p-A+1),M=Math.min(p+A,c.length)+f.length,O=Array(M+2);O[M+1]=(1<<D)-1;for(var k=M;k>=_;k--){var R=v[c.charAt(k-1)];if(D===0?O[k]=(O[k+1]<<1|1)&R:O[k]=(O[k+1]<<1|1)&R|((E[k+1]|E[k])<<1|1)|E[k+1],O[k]&b){var N=g(D,k-1);if(N<=y)if(y=N,m=k-1,m>p)_=Math.max(1,2*p-m);else break}}if(g(D+1,p)>y)break;E=O}return m},s.prototype.match_alphabet_=function(c){for(var f={},p=0;p<c.length;p++)f[c.charAt(p)]=0;for(var p=0;p<c.length;p++)f[c.charAt(p)]|=1<<c.length-p-1;return f},s.prototype.patch_addContext_=function(c,f){if(f.length!=0){if(c.start2===null)throw Error("patch not initialized");for(var p=f.substring(c.start2,c.start2+c.length1),v=0;f.indexOf(p)!=f.lastIndexOf(p)&&p.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)v+=this.Patch_Margin,p=f.substring(c.start2-v,c.start2+c.length1+v);v+=this.Patch_Margin;var h=f.substring(c.start2-v,c.start2);h&&c.diffs.unshift(new s.Diff(d,h));var g=f.substring(c.start2+c.length1,c.start2+c.length1+v);g&&c.diffs.push(new s.Diff(d,g)),c.start1-=h.length,c.start2-=h.length,c.length1+=h.length+g.length,c.length2+=h.length+g.length}},s.prototype.patch_make=function(c,f,p){var v,h;if(typeof c=="string"&&typeof f=="string"&&typeof p>"u")v=c,h=this.diff_main(v,f,!0),h.length>2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(c&&typeof c=="object"&&typeof f>"u"&&typeof p>"u")h=c,v=this.diff_text1(h);else if(typeof c=="string"&&f&&typeof f=="object"&&typeof p>"u")v=c,h=f;else if(typeof c=="string"&&typeof f=="string"&&p&&typeof p=="object")v=c,h=p;else throw new Error("Unknown call format to patch_make.");if(h.length===0)return[];for(var g=[],y=new s.patch_obj,m=0,b=0,w=0,A=v,S=v,E=0;E<h.length;E++){var D=h[E][0],_=h[E][1];switch(!m&&D!==d&&(y.start1=b,y.start2=w),D){case u:y.diffs[m++]=h[E],y.length2+=_.length,S=S.substring(0,w)+_+S.substring(w);break;case l:y.length1+=_.length,y.diffs[m++]=h[E],S=S.substring(0,w)+S.substring(w+_.length);break;case d:_.length<=2*this.Patch_Margin&&m&&h.length!=E+1?(y.diffs[m++]=h[E],y.length1+=_.length,y.length2+=_.length):_.length>=2*this.Patch_Margin&&m&&(this.patch_addContext_(y,A),g.push(y),y=new s.patch_obj,m=0,A=S,b=w);break}D!==u&&(b+=_.length),D!==l&&(w+=_.length)}return m&&(this.patch_addContext_(y,A),g.push(y)),g},s.prototype.patch_deepCopy=function(c){for(var f=[],p=0;p<c.length;p++){var v=c[p],h=new s.patch_obj;h.diffs=[];for(var g=0;g<v.diffs.length;g++)h.diffs[g]=new s.Diff(v.diffs[g][0],v.diffs[g][1]);h.start1=v.start1,h.start2=v.start2,h.length1=v.length1,h.length2=v.length2,f[p]=h}return f},s.prototype.patch_apply=function(c,f){if(c.length==0)return[f,[]];c=this.patch_deepCopy(c);var p=this.patch_addPadding(c);f=p+f+p,this.patch_splitMax(c);for(var v=0,h=[],g=0;g<c.length;g++){var y=c[g].start2+v,m=this.diff_text1(c[g].diffs),b,w=-1;if(m.length>this.Match_MaxBits?(b=this.match_main(f,m.substring(0,this.Match_MaxBits),y),b!=-1&&(w=this.match_main(f,m.substring(m.length-this.Match_MaxBits),y+m.length-this.Match_MaxBits),(w==-1||b>=w)&&(b=-1))):b=this.match_main(f,m,y),b==-1)h[g]=!1,v-=c[g].length2-c[g].length1;else{h[g]=!0,v=b-y;var A;if(w==-1?A=f.substring(b,b+m.length):A=f.substring(b,w+this.Match_MaxBits),m==A)f=f.substring(0,b)+this.diff_text2(c[g].diffs)+f.substring(b+m.length);else{var S=this.diff_main(m,A,!1);if(m.length>this.Match_MaxBits&&this.diff_levenshtein(S)/m.length>this.Patch_DeleteThreshold)h[g]=!1;else{this.diff_cleanupSemanticLossless(S);for(var E=0,D,_=0;_<c[g].diffs.length;_++){var M=c[g].diffs[_];M[0]!==d&&(D=this.diff_xIndex(S,E)),M[0]===u?f=f.substring(0,b+D)+M[1]+f.substring(b+D):M[0]===l&&(f=f.substring(0,b+D)+f.substring(b+this.diff_xIndex(S,E+M[1].length))),M[0]!==l&&(E+=M[1].length)}}}}}return f=f.substring(p.length,f.length-p.length),[f,h]},s.prototype.patch_addPadding=function(c){for(var f=this.Patch_Margin,p="",v=1;v<=f;v++)p+=String.fromCharCode(v);for(var v=0;v<c.length;v++)c[v].start1+=f,c[v].start2+=f;var h=c[0],g=h.diffs;if(g.length==0||g[0][0]!=d)g.unshift(new s.Diff(d,p)),h.start1-=f,h.start2-=f,h.length1+=f,h.length2+=f;else if(f>g[0][1].length){var y=f-g[0][1].length;g[0][1]=p.substring(g[0][1].length)+g[0][1],h.start1-=y,h.start2-=y,h.length1+=y,h.length2+=y}if(h=c[c.length-1],g=h.diffs,g.length==0||g[g.length-1][0]!=d)g.push(new s.Diff(d,p)),h.length1+=f,h.length2+=f;else if(f>g[g.length-1][1].length){var y=f-g[g.length-1][1].length;g[g.length-1][1]+=p.substring(0,y),h.length1+=y,h.length2+=y}return p},s.prototype.patch_splitMax=function(c){for(var f=this.Match_MaxBits,p=0;p<c.length;p++)if(!(c[p].length1<=f)){var v=c[p];c.splice(p--,1);for(var h=v.start1,g=v.start2,y="";v.diffs.length!==0;){var m=new s.patch_obj,b=!0;for(m.start1=h-y.length,m.start2=g-y.length,y!==""&&(m.length1=m.length2=y.length,m.diffs.push(new s.Diff(d,y)));v.diffs.length!==0&&m.length1<f-this.Patch_Margin;){var w=v.diffs[0][0],A=v.diffs[0][1];w===u?(m.length2+=A.length,g+=A.length,m.diffs.push(v.diffs.shift()),b=!1):w===l&&m.diffs.length==1&&m.diffs[0][0]==d&&A.length>2*f?(m.length1+=A.length,h+=A.length,b=!1,m.diffs.push(new s.Diff(w,A)),v.diffs.shift()):(A=A.substring(0,f-m.length1-this.Patch_Margin),m.length1+=A.length,h+=A.length,w===d?(m.length2+=A.length,g+=A.length):b=!1,m.diffs.push(new s.Diff(w,A)),A==v.diffs[0][1]?v.diffs.shift():v.diffs[0][1]=v.diffs[0][1].substring(A.length))}y=this.diff_text2(m.diffs),y=y.substring(y.length-this.Patch_Margin);var S=this.diff_text1(v.diffs).substring(0,this.Patch_Margin);S!==""&&(m.length1+=S.length,m.length2+=S.length,m.diffs.length!==0&&m.diffs[m.diffs.length-1][0]===d?m.diffs[m.diffs.length-1][1]+=S:m.diffs.push(new s.Diff(d,S))),b||c.splice(++p,0,m)}}},s.prototype.patch_toText=function(c){for(var f=[],p=0;p<c.length;p++)f[p]=c[p];return f.join("")},s.prototype.patch_fromText=function(c){var f=[];if(!c)return f;for(var p=c.split(`
- `),v=0,h=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;v<p.length;){var g=p[v].match(h);if(!g)throw new Error("Invalid patch string: "+p[v]);var y=new s.patch_obj;for(f.push(y),y.start1=parseInt(g[1],10),g[2]===""?(y.start1--,y.length1=1):g[2]=="0"?y.length1=0:(y.start1--,y.length1=parseInt(g[2],10)),y.start2=parseInt(g[3],10),g[4]===""?(y.start2--,y.length2=1):g[4]=="0"?y.length2=0:(y.start2--,y.length2=parseInt(g[4],10)),v++;v<p.length;){var m=p[v].charAt(0);try{var b=decodeURI(p[v].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+b)}if(m=="-")y.diffs.push(new s.Diff(l,b));else if(m=="+")y.diffs.push(new s.Diff(u,b));else if(m==" ")y.diffs.push(new s.Diff(d,b));else{if(m=="@")break;if(m!=="")throw new Error('Invalid patch mode "'+m+'" in: '+b)}v++}}return f},s.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},s.patch_obj.prototype.toString=function(){var c,f;this.length1===0?c=this.start1+",0":this.length1==1?c=this.start1+1:c=this.start1+1+","+this.length1,this.length2===0?f=this.start2+",0":this.length2==1?f=this.start2+1:f=this.start2+1+","+this.length2;for(var p=["@@ -"+c+" +"+f+` @@
- `],v,h=0;h<this.diffs.length;h++){switch(this.diffs[h][0]){case u:v="+";break;case l:v="-";break;case d:v=" ";break}p[h+1]=v+encodeURI(this.diffs[h][1])+`
- `}return p.join("").replace(/%20/g," ")},a.exports=s,a.exports.diff_match_patch=s,a.exports.DIFF_DELETE=l,a.exports.DIFF_INSERT=u,a.exports.DIFF_EQUAL=d}),408:((a,s,l)=>{l.d(s,{default:()=>te});var u=l(135),d=l(840),c=l(775),f=l(428),p=l(325),v=l(483),h=l(999),g=function(Z){Z===void 0&&(Z=document);var le=function(ve){var Pe=document.createElement("img");Pe.src=ve.getAttribute("data-src"),Pe.addEventListener("load",function(){!ve.getAttribute("style")&&!ve.getAttribute("class")&&!ve.getAttribute("width")&&!ve.getAttribute("height")&&Pe.naturalHeight>Pe.naturalWidth&&Pe.naturalWidth/Pe.naturalHeight<document.querySelector(".vditor-reset").clientWidth/(window.innerHeight-40)&&Pe.naturalHeight>window.innerHeight-40&&(ve.style.height=window.innerHeight-40+"px"),ve.src=Pe.src}),ve.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return Z.querySelectorAll("img").forEach(function(ve){ve.getAttribute("data-src")&&le(ve)}),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),Z.querySelectorAll("img").forEach(function(ve){window.vditorImageIntersectionObserver.observe(ve)})):(window.vditorImageIntersectionObserver=new IntersectionObserver(function(ve){ve.forEach(function(Pe){(typeof Pe.isIntersecting>"u"?Pe.intersectionRatio!==0:Pe.isIntersecting)&&Pe.target.getAttribute("data-src")&&le(Pe.target)})}),Z.querySelectorAll("img").forEach(function(ve){window.vditorImageIntersectionObserver.observe(ve)}))},y=l(472),m=l(280),b=l(637),w=l(825),A=l(11),S=l(194),E=l(436),D=l(229),_=l(145),M=l(538),O=l(413),k=l(106),R=l(673),N=function(Z){document.querySelectorAll(".vditor-anchor").forEach(function(le){Z===1&&le.classList.add("vditor-anchor--left"),le.onclick=function(){var ve=le.getAttribute("href").substr(1),Pe=document.getElementById("vditorAnchor-"+ve).offsetTop;document.querySelector("html").scrollTop=Pe}}),window.onhashchange=function(){var le=document.getElementById("vditorAnchor-"+decodeURIComponent(window.location.hash.substr(1)));le&&(document.querySelector("html").scrollTop=le.offsetTop)}},W=l(214),B=l(810),z=function(Z,le){if(le===void 0&&(le="zh_CN"),!(typeof speechSynthesis>"u"||typeof SpeechSynthesisUtterance>"u")){var ve=function(){var me=speechSynthesis.getVoices(),De,pe;return me.forEach(function(ie){ie.lang===le.replace("_","-")&&(De=ie),ie.default&&(pe=ie)}),De||(De=pe),De},Pe='<svg><use xlink:href="#vditor-icon-play"></use></svg>',Ae='<svg><use xlink:href="#vditor-icon-pause"></use></svg>';document.getElementById("vditorIconScript")||(Pe='<svg viewBox="0 0 32 32"><path d="M3.436 0l25.128 16-25.128 16v-32z"></path></svg>',Ae='<svg viewBox="0 0 32 32"><path d="M20.617 0h9.128v32h-9.128v-32zM2.255 32v-32h9.128v32h-9.128z"></path></svg>');var he=document.querySelector(".vditor-speech");he||(he=document.createElement("button"),he.className="vditor-speech",Z.insertAdjacentElement("beforeend",he),speechSynthesis.onvoiceschanged!==void 0&&(speechSynthesis.onvoiceschanged=ve));var Ee=ve(),Q=new SpeechSynthesisUtterance;Q.voice=Ee,Q.onend=Q.onerror=function(){he.style.display="none",speechSynthesis.cancel(),he.classList.remove("vditor-speech--current"),he.innerHTML=Pe},Z.addEventListener(window.ontouchstart!==void 0?"touchend":"click",function(me){var De=me.target;if(De.classList.contains("vditor-speech")||De.parentElement.classList.contains("vditor-speech")){he.classList.contains("vditor-speech--current")?speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),he.innerHTML=Ae):(speechSynthesis.pause(),he.innerHTML=Pe)):(Q.text=he.getAttribute("data-text"),speechSynthesis.speak(Q),he.classList.add("vditor-speech--current"),he.innerHTML=Ae),(0,B.Hc)(window.vditorSpeechRange),Z.focus();return}if(he.style.display="none",speechSynthesis.cancel(),he.classList.remove("vditor-speech--current"),he.innerHTML=Pe,getSelection().rangeCount!==0){var pe=getSelection().getRangeAt(0),ie=pe.toString().trim();if(ie){window.vditorSpeechRange=pe.cloneRange();var ue=pe.getBoundingClientRect();he.innerHTML=Pe,he.style.display="block",he.style.top=ue.top+ue.height+document.querySelector("html").scrollTop-20+"px",window.ontouchstart!==void 0?he.style.left=me.changedTouches[me.changedTouches.length-1].pageX+2+"px":he.style.left=me.clientX+2+"px",he.setAttribute("data-text",ie)}}})}},j=function(Z,le,ve,Pe){function Ae(he){return he instanceof ve?he:new ve(function(Ee){Ee(he)})}return new(ve||(ve=Promise))(function(he,Ee){function Q(pe){try{De(Pe.next(pe))}catch(ie){Ee(ie)}}function me(pe){try{De(Pe.throw(pe))}catch(ie){Ee(ie)}}function De(pe){pe.done?he(pe.value):Ae(pe.value).then(Q,me)}De((Pe=Pe.apply(Z,le||[])).next())})},q=function(Z,le){var ve={label:0,sent:function(){if(he[0]&1)throw he[1];return he[1]},trys:[],ops:[]},Pe,Ae,he,Ee;return Ee={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function Q(De){return function(pe){return me([De,pe])}}function me(De){if(Pe)throw new TypeError("Generator is already executing.");for(;Ee&&(Ee=0,De[0]&&(ve=0)),ve;)try{if(Pe=1,Ae&&(he=De[0]&2?Ae.return:De[0]?Ae.throw||((he=Ae.return)&&he.call(Ae),0):Ae.next)&&!(he=he.call(Ae,De[1])).done)return he;switch(Ae=0,he&&(De=[De[0]&2,he.value]),De[0]){case 0:case 1:he=De;break;case 4:return ve.label++,{value:De[1],done:!1};case 5:ve.label++,Ae=De[1],De=[0];continue;case 7:De=ve.ops.pop(),ve.trys.pop();continue;default:if(he=ve.trys,!(he=he.length>0&&he[he.length-1])&&(De[0]===6||De[0]===2)){ve=0;continue}if(De[0]===3&&(!he||De[1]>he[0]&&De[1]<he[3])){ve.label=De[1];break}if(De[0]===6&&ve.label<he[1]){ve.label=he[1],he=De;break}if(he&&ve.label<he[2]){ve.label=he[2],ve.ops.push(De);break}he[2]&&ve.ops.pop(),ve.trys.pop();continue}De=le.call(Z,ve)}catch(pe){De=[6,pe],Ae=0}finally{Pe=he=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}},Y=function(Z){var le,ve={anchor:0,cdn:_.g.CDN,customEmoji:{},emojiPath:"".concat(_.g.CDN,"/dist/images/emoji"),hljs:_.g.HLJS_OPTIONS,icon:"ant",lang:"zh_CN",markdown:_.g.MARKDOWN_OPTIONS,math:_.g.MATH_OPTIONS,mode:"light",speech:{enable:!1},render:{media:{enable:!0}},theme:_.g.THEME_OPTIONS};return Z.cdn&&(!((le=Z.theme)===null||le===void 0)&&le.path||(ve.theme.path="".concat(Z.cdn,"/dist/css/content-theme")),Z.emojiPath||(ve.emojiPath="".concat(Z.cdn,"/dist/images/emoji"))),(0,R.T)(ve,Z)},U=function(Z,le){var ve=Y(le);return(0,O.G)("".concat(ve.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){var Pe=(0,W.X)({autoSpace:ve.markdown.autoSpace,gfmAutoLink:ve.markdown.gfmAutoLink,codeBlockPreview:ve.markdown.codeBlockPreview,emojiSite:ve.emojiPath,emojis:ve.customEmoji,fixTermTypo:ve.markdown.fixTermTypo,footnotes:ve.markdown.footnotes,headingAnchor:ve.anchor!==0,inlineMathDigit:ve.math.inlineDigit,lazyLoadImage:ve.lazyLoadImage,linkBase:ve.markdown.linkBase,linkPrefix:ve.markdown.linkPrefix,listStyle:ve.markdown.listStyle,mark:ve.markdown.mark,mathBlockPreview:ve.markdown.mathBlockPreview,paragraphBeginningSpace:ve.markdown.paragraphBeginningSpace,sanitize:ve.markdown.sanitize,toc:ve.markdown.toc});return le?.renderers&&Pe.SetJSRenderers({renderers:{Md2HTML:le.renderers}}),Pe.SetHeadingID(!0),Pe.Md2HTML(Z)})},F=function(Z,le,ve){return j(void 0,void 0,void 0,function(){var Pe,Ae,he,Ee;return q(this,function(Q){switch(Q.label){case 0:return Pe=Y(ve),[4,U(le,Pe)];case 1:if(Ae=Q.sent(),Pe.transform&&(Ae=Pe.transform(Ae)),Z.innerHTML=Ae,Z.classList.add("vditor-reset"),Pe.i18n)return[3,5];if(["de_DE","en_US","es_ES","fr_FR","ja_JP","ko_KR","pt_BR","ru_RU","sv_SE","vi_VN","zh_CN","zh_TW"].includes(Pe.lang))return[3,2];throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");case 2:return he="vditorI18nScript",Ee=he+Pe.lang,document.querySelectorAll('head script[id^="'.concat(he,'"]')).forEach(function(me){me.id!==Ee&&document.head.removeChild(me)}),[4,(0,O.G)("".concat(Pe.cdn,"/dist/js/i18n/").concat(Pe.lang,".js"),Ee)];case 3:Q.sent(),Q.label=4;case 4:return[3,6];case 5:window.VditorI18n=Pe.i18n,Q.label=6;case 6:return Pe.icon?[4,(0,O.G)("".concat(Pe.cdn,"/dist/js/icons/").concat(Pe.icon,".js"),"vditorIconScript")]:[3,8];case 7:Q.sent(),Q.label=8;case 8:return(0,M.Z)(Pe.theme.current,Pe.theme.path),Pe.anchor===1&&Z.classList.add("vditor-reset--anchor"),(0,f.O)(Z,Pe.hljs),(0,h.s)(Pe.hljs,Z,Pe.cdn),(0,y.H)(Z,{cdn:Pe.cdn,math:Pe.math}),(0,b.i)(Z,Pe.cdn,Pe.mode),(0,w.J)(Z,Pe.cdn,Pe.mode),(0,A.K)(Z,Pe.cdn),(0,p.P)(Z,Pe.cdn),(0,v.v)(Z,Pe.cdn),(0,c.p)(Z,Pe.cdn,Pe.mode),(0,S.P)(Z,Pe.cdn,Pe.mode),(0,D.B)(Z,Pe.cdn),(0,u.Q)(Z,Pe.cdn),Pe.render.media.enable&&(0,m.Y)(Z),Pe.speech.enable&&z(Z),Pe.anchor!==0&&N(Pe.anchor),Pe.after&&Pe.after(),Pe.lazyLoadImage&&g(Z),Z.addEventListener("click",function(me){var De=(0,k.lG)(me.target,"SPAN");if(De&&(0,k.fb)(De,"vditor-toc")){var pe=Z.querySelector("#"+De.getAttribute("data-target-id"));pe&&window.scrollTo(window.scrollX,pe.offsetTop);return}}),[2]}})})},H=l(190),re=l(580),X=(function(){function Z(){}return Z.adapterRender=d,Z.previewImage=H.E,Z.codeRender=f.O,Z.graphvizRender=v.v,Z.highlightRender=h.s,Z.mathRender=y.H,Z.mermaidRender=b.i,Z.SMILESRender=w.J,Z.markmapRender=A.K,Z.flowchartRender=p.P,Z.chartRender=c.p,Z.abcRender=u.Q,Z.mindmapRender=S.P,Z.plantumlRender=D.B,Z.outlineRender=E.k,Z.mediaRender=m.Y,Z.speechRender=z,Z.lazyLoadImageRender=g,Z.md2html=U,Z.preview=F,Z.setCodeTheme=re.Y,Z.setContentTheme=M.Z,Z})();const te=X}),145:((a,s,l)=>{l.d(s,{H:()=>u,g:()=>d});var u="3.11.2",d=(function(){function c(){}return c.ZWSP="",c.DROP_EDITOR="application/editor",c.MOBILE_WIDTH=520,c.CLASS_MENU_DISABLED="vditor-menu--disabled",c.EDIT_TOOLBARS=["emoji","headings","bold","italic","strike","link","list","ordered-list","outdent","indent","check","line","quote","code","inline-code","insert-after","insert-before","upload","record","table"],c.CODE_THEME=["a11y-dark","agate","an-old-hope","androidstudio","arta","atom-one-dark","atom-one-dark-reasonable","base16/3024","base16/apathy","base16/apprentice","base16/ashes","base16/atelier-cave","base16/atelier-dune","base16/atelier-estuary","base16/atelier-forest","base16/atelier-heath","base16/atelier-lakeside","base16/atelier-plateau","base16/atelier-savanna","base16/atelier-seaside","base16/atelier-sulphurpool","base16/atlas","base16/bespin","base16/black-metal","base16/black-metal-bathory","base16/black-metal-burzum","base16/black-metal-dark-funeral","base16/black-metal-gorgoroth","base16/black-metal-immortal","base16/black-metal-khold","base16/black-metal-marduk","base16/black-metal-mayhem","base16/black-metal-nile","base16/black-metal-venom","base16/brewer","base16/bright","base16/brogrammer","base16/brush-trees-dark","base16/chalk","base16/circus","base16/classic-dark","base16/codeschool","base16/colors","base16/danqing","base16/darcula","base16/dark-violet","base16/darkmoss","base16/darktooth","base16/decaf","base16/default-dark","base16/dracula","base16/edge-dark","base16/eighties","base16/embers","base16/equilibrium-dark","base16/equilibrium-gray-dark","base16/espresso","base16/eva","base16/eva-dim","base16/flat","base16/framer","base16/gigavolt","base16/google-dark","base16/grayscale-dark","base16/green-screen","base16/gruvbox-dark-hard","base16/gruvbox-dark-medium","base16/gruvbox-dark-pale","base16/gruvbox-dark-soft","base16/hardcore","base16/harmonic16-dark","base16/heetch-dark","base16/helios","base16/hopscotch","base16/horizon-dark","base16/humanoid-dark","base16/ia-dark","base16/icy-dark","base16/ir-black","base16/isotope","base16/kimber","base16/london-tube","base16/macintosh","base16/marrakesh","base16/materia","base16/material","base16/material-darker","base16/material-palenight","base16/material-vivid","base16/mellow-purple","base16/mocha","base16/monokai","base16/nebula","base16/nord","base16/nova","base16/ocean","base16/oceanicnext","base16/onedark","base16/outrun-dark","base16/papercolor-dark","base16/paraiso","base16/pasque","base16/phd","base16/pico","base16/pop","base16/porple","base16/qualia","base16/railscasts","base16/rebecca","base16/ros-pine","base16/ros-pine-moon","base16/sandcastle","base16/seti-ui","base16/silk-dark","base16/snazzy","base16/solar-flare","base16/solarized-dark","base16/spacemacs","base16/summercamp","base16/summerfruit-dark","base16/synth-midnight-terminal-dark","base16/tango","base16/tender","base16/tomorrow-night","base16/twilight","base16/unikitty-dark","base16/vulcan","base16/windows-10","base16/windows-95","base16/windows-high-contrast","base16/windows-nt","base16/woodland","base16/xcode-dusk","base16/zenburn","codepen-embed","dark","devibeans","far","felipec","github-dark","github-dark-dimmed","gml","gradient-dark","hybrid","ir-black","isbl-editor-dark","kimbie-dark","lioshi","monokai","monokai-sublime","night-owl","nnfx-dark","nord","obsidian","panda-syntax-dark","paraiso-dark","pojoaque","qtcreator-dark","rainbow","shades-of-purple","srcery","stackoverflow-dark","sunburst","tomorrow-night-blue","tomorrow-night-bright","tokyo-night-dark","vs2015","xt256","ant-design","a11y-light","arduino-light","ascetic","atom-one-light","base16/atelier-cave-light","base16/atelier-dune-light","base16/atelier-estuary-light","base16/atelier-forest-light","base16/atelier-heath-light","base16/atelier-lakeside-light","base16/atelier-plateau-light","base16/atelier-savanna-light","base16/atelier-seaside-light","base16/atelier-sulphurpool-light","base16/brush-trees","base16/classic-light","base16/cupcake","base16/cupertino","base16/default-light","base16/dirtysea","base16/edge-light","base16/equilibrium-gray-light","base16/equilibrium-light","base16/fruit-soda","base16/github","base16/google-light","base16/grayscale-light","base16/gruvbox-light-hard","base16/gruvbox-light-medium","base16/gruvbox-light-soft","base16/harmonic16-light","base16/heetch-light","base16/humanoid-light","base16/horizon-light","base16/ia-light","base16/material-lighter","base16/mexico-light","base16/one-light","base16/papercolor-light","base16/ros-pine-dawn","base16/sagelight","base16/shapeshifter","base16/silk-light","base16/solar-flare-light","base16/solarized-light","base16/summerfruit-light","base16/synth-midnight-terminal-light","base16/tomorrow","base16/unikitty-light","base16/windows-10-light","base16/windows-95-light","base16/windows-high-contrast-light","brown-paper","base16/windows-nt-light","color-brewer","docco","foundation","github","googlecode","gradient-light","grayscale","idea","intellij-light","isbl-editor-light","kimbie-light","lightfair","magula","mono-blue","nnfx-light","panda-syntax-light","paraiso-light","purebasic","qtcreator-light","routeros","school-book","stackoverflow-light","tokyo-night-light","vs","xcode","default"],c.ALIAS_CODE_LANGUAGES=["abc","plantuml","mermaid","flowchart","echarts","mindmap","graphviz","math","markmap","smiles","js","ts","html","toml","c#","bat"],c.CDN="https://unpkg.com/vditor@".concat("3.11.2"),c.MARKDOWN_OPTIONS={autoSpace:!1,gfmAutoLink:!0,codeBlockPreview:!0,fixTermTypo:!1,footnotes:!0,linkBase:"",linkPrefix:"",listStyle:!1,mark:!1,mathBlockPreview:!0,paragraphBeginningSpace:!1,sanitize:!0,toc:!1},c.HLJS_OPTIONS={enable:!0,lineNumber:!1,defaultLang:"",style:"github"},c.MATH_OPTIONS={engine:"KaTeX",inlineDigit:!1,macros:{}},c.THEME_OPTIONS={current:"light",list:{"ant-design":"Ant Design",dark:"Dark",light:"Light",wechat:"WeChat"},path:"".concat(c.CDN,"/dist/css/content-theme")},c})()}),825:((a,s,l)=>{l.d(s,{J:()=>p});var u=l(145),d=l(413),c=l(840),f=l(494),p=function(v,h,g){v===void 0&&(v=document),h===void 0&&(h=u.g.CDN);var y=c.SMILESRenderAdapter.getElements(v);y.length>0&&(0,d.G)("".concat(h,"/dist/js/smiles-drawer/smiles-drawer.min.js?v=2.1.7"),"vditorAbcjsScript").then(function(){var m=new SmiDrawer({},{});y.forEach(function(b){var w=c.SMILESRenderAdapter.getCode(b).trim();if(!(b.getAttribute("data-processed")==="true"||w.trim()==="")){var A="smiles"+(0,f.Wb)();b.innerHTML='<svg id="'.concat(A,'"></svg>'),m.draw(w,"#"+A,g==="dark"?"dark":void 0),b.setAttribute("data-processed","true")}})})}}),135:((a,s,l)=>{l.d(s,{Q:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v){p===void 0&&(p=document),v===void 0&&(v=u.g.CDN);var h=c.abcRenderAdapter.getElements(p);h.length>0&&(0,d.G)("".concat(v,"/dist/js/abcjs/abcjs_basic.min.js"),"vditorAbcjsScript").then(function(){h.forEach(function(g){g.parentElement.classList.contains("vditor-wysiwyg__pre")||g.parentElement.classList.contains("vditor-ir__marker--pre")||g.getAttribute("data-processed")!=="true"&&(ABCJS.renderAbc(g,c.abcRenderAdapter.getCode(g).trim()),g.style.overflowX="auto",g.setAttribute("data-processed","true"))})})}}),840:((a,s,l)=>{l.r(s),l.d(s,{mathRenderAdapter:()=>u,SMILESRenderAdapter:()=>d,mermaidRenderAdapter:()=>c,markmapRenderAdapter:()=>f,mindmapRenderAdapter:()=>p,chartRenderAdapter:()=>v,abcRenderAdapter:()=>h,graphvizRenderAdapter:()=>g,flowchartRenderAdapter:()=>y,plantumlRenderAdapter:()=>m});var u={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-math")}},d={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-smiles")}},c={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-mermaid")}},f={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-markmap")}},p={getCode:function(b){return b.getAttribute("data-code")},getElements:function(b){return b.querySelectorAll(".language-mindmap")}},v={getCode:function(b){return b.innerText},getElements:function(b){return b.querySelectorAll(".language-echarts")}},h={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-abc")}},g={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-graphviz")}},y={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-flowchart")}},m={getCode:function(b){return b.textContent},getElements:function(b){return b.querySelectorAll(".language-plantuml")}}}),775:((a,s,l)=>{l.d(s,{p:()=>h});var u=l(145),d=l(413),c=l(840),f=l(494),p=function(g,y,m,b){function w(A){return A instanceof m?A:new m(function(S){S(A)})}return new(m||(m=Promise))(function(A,S){function E(M){try{_(b.next(M))}catch(O){S(O)}}function D(M){try{_(b.throw(M))}catch(O){S(O)}}function _(M){M.done?A(M.value):w(M.value).then(E,D)}_((b=b.apply(g,y||[])).next())})},v=function(g,y){var m={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},b,w,A,S;return S={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function E(_){return function(M){return D([_,M])}}function D(_){if(b)throw new TypeError("Generator is already executing.");for(;S&&(S=0,_[0]&&(m=0)),m;)try{if(b=1,w&&(A=_[0]&2?w.return:_[0]?w.throw||((A=w.return)&&A.call(w),0):w.next)&&!(A=A.call(w,_[1])).done)return A;switch(w=0,A&&(_=[_[0]&2,A.value]),_[0]){case 0:case 1:A=_;break;case 4:return m.label++,{value:_[1],done:!1};case 5:m.label++,w=_[1],_=[0];continue;case 7:_=m.ops.pop(),m.trys.pop();continue;default:if(A=m.trys,!(A=A.length>0&&A[A.length-1])&&(_[0]===6||_[0]===2)){m=0;continue}if(_[0]===3&&(!A||_[1]>A[0]&&_[1]<A[3])){m.label=_[1];break}if(_[0]===6&&m.label<A[1]){m.label=A[1],A=_;break}if(A&&m.label<A[2]){m.label=A[2],m.ops.push(_);break}A[2]&&m.ops.pop(),m.trys.pop();continue}_=y.call(g,m)}catch(M){_=[6,M],w=0}finally{b=A=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},h=function(g,y,m){g===void 0&&(g=document),y===void 0&&(y=u.g.CDN);var b=c.chartRenderAdapter.getElements(g);b.length>0&&(0,d.G)("".concat(y,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){b.forEach(function(w){return p(void 0,void 0,void 0,function(){var A,S,E;return v(this,function(D){switch(D.label){case 0:if(w.parentElement.classList.contains("vditor-wysiwyg__pre")||w.parentElement.classList.contains("vditor-ir__marker--pre"))return[2];if(A=c.chartRenderAdapter.getCode(w).trim(),!A)return[2];D.label=1;case 1:return D.trys.push([1,3,,4]),w.getAttribute("data-processed")==="true"?[2]:[4,(0,f.Qf)(A)];case 2:return S=D.sent(),echarts.init(w,m==="dark"?"dark":void 0).setOption(S),w.setAttribute("data-processed","true"),[3,4];case 3:return E=D.sent(),w.className="vditor-reset--error",w.innerHTML="echarts render error: <br>".concat(E),[3,4];case 4:return[2]}})})})})}}),428:((a,s,l)=>{l.d(s,{O:()=>c});var u=l(105),d=l(145),c=function(f,p){Array.from(f.querySelectorAll("pre > code")).filter(function(v,h){return!(v.parentElement.classList.contains("vditor-wysiwyg__pre")||v.parentElement.classList.contains("vditor-ir__marker--pre")||v.classList.contains("language-mermaid")||v.classList.contains("language-flowchart")||v.classList.contains("language-echarts")||v.classList.contains("language-mindmap")||v.classList.contains("language-plantuml")||v.classList.contains("language-markmap")||v.classList.contains("language-abc")||v.classList.contains("language-graphviz")||v.classList.contains("language-math")||v.classList.contains("language-smiles")||v.style.maxHeight.indexOf("px")>-1||f.classList.contains("vditor-preview")&&h>5)}).forEach(function(v){var h,g,y,m=v.innerText;if(v.classList.contains("highlight-chroma")){var b=v.cloneNode(!0);b.querySelectorAll(".highlight-ln").forEach(function(E){E.remove()}),m=b.innerText}else m.endsWith(`
- `)&&(m=m.substr(0,m.length-1));var w='<svg><use xlink:href="#vditor-icon-copy"></use></svg>';document.getElementById("vditorIconScript")||(w='<svg viewBox="0 0 32 32"><path d="M22.545-0h-17.455c-1.6 0-2.909 1.309-2.909 2.909v20.364h2.909v-20.364h17.455v-2.909zM26.909 5.818h-16c-1.6 0-2.909 1.309-2.909 2.909v20.364c0 1.6 1.309 2.909 2.909 2.909h16c1.6 0 2.909-1.309 2.909-2.909v-20.364c0-1.6-1.309-2.909-2.909-2.909zM26.909 29.091h-16v-20.364h16v20.364z"></path></svg>');var A=document.createElement("div");A.className="vditor-copy",A.innerHTML='<span aria-label="'.concat(((h=window.VditorI18n)===null||h===void 0?void 0:h.copy)||"复制",`"
- onmouseover="this.setAttribute('aria-label', '`).concat(((g=window.VditorI18n)===null||g===void 0?void 0:g.copy)||"复制",`')"
- class="vditor-tooltipped vditor-tooltipped__w"
- onclick="event.stopPropagation();this.previousElementSibling.select();document.execCommand('copy');this.setAttribute('aria-label', '`).concat(((y=window.VditorI18n)===null||y===void 0?void 0:y.copied)||"已复制",`');this.previousElementSibling.blur()">`).concat(w,"</span>");var S=document.createElement("textarea");S.value=(0,u.X)(m),A.insertAdjacentElement("afterbegin",S),p&&p.renderMenu&&p.renderMenu(v,A),v.before(A),v.style.maxHeight=window.outerHeight-40+"px",v.insertAdjacentHTML("afterend",'<span style="position: absolute">'.concat(d.g.ZWSP,"</span>"))})}}),325:((a,s,l)=>{l.d(s,{P:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v){v===void 0&&(v=u.g.CDN);var h=c.flowchartRenderAdapter.getElements(p);h.length!==0&&(0,d.G)("".concat(v,"/dist/js/flowchart.js/flowchart.min.js"),"vditorFlowchartScript").then(function(){h.forEach(function(g){if(g.getAttribute("data-processed")!=="true"){var y=flowchart.parse(c.flowchartRenderAdapter.getCode(g));g.innerHTML="",y.drawSVG(g),g.setAttribute("data-processed","true")}})})}}),483:((a,s,l)=>{l.d(s,{v:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v){v===void 0&&(v=u.g.CDN);var h=c.graphvizRenderAdapter.getElements(p);h.length!==0&&(0,d.G)("".concat(v,"/dist/js/graphviz/viz.js"),"vditorGraphVizScript").then(function(){h.forEach(function(g){var y=c.graphvizRenderAdapter.getCode(g);if(!(g.parentElement.classList.contains("vditor-wysiwyg__pre")||g.parentElement.classList.contains("vditor-ir__marker--pre"))&&!(g.getAttribute("data-processed")==="true"||y.trim()==="")){try{var m=new Blob(["importScripts('".concat(document.getElementById("vditorGraphVizScript").src.replace("viz.js","full.render.js"),"');")],{type:"application/javascript"}),b=window.URL||window.webkitURL,w=b.createObjectURL(m),A=new Worker(w);new Viz({worker:A}).renderSVGElement(y).then(function(S){g.innerHTML=S.outerHTML}).catch(function(S){g.innerHTML="graphviz render error: <br>".concat(S),g.className="vditor-reset--error"})}catch(S){console.error("graphviz error",S)}g.setAttribute("data-processed","true")}})})}}),999:((a,s,l)=>{l.d(s,{s:()=>f});var u=l(145),d=l(413),c=l(290),f=function(p,v,h){v===void 0&&(v=document),h===void 0&&(h=u.g.CDN);var g=p.style;u.g.CODE_THEME.includes(g)||(g="github");var y=document.getElementById("vditorHljsStyle"),m="".concat(h,"/dist/js/highlight.js/styles/").concat(g,".min.css");if(y&&y.getAttribute("href")!==m&&y.remove(),(0,c.c)("".concat(h,"/dist/js/highlight.js/styles/").concat(g,".min.css"),"vditorHljsStyle"),p.enable!==!1){var b=v.querySelectorAll("pre > code");b.length!==0&&(0,d.G)("".concat(h,"/dist/js/highlight.js/highlight.min.js?v=11.7.0"),"vditorHljsScript").then(function(){(0,d.G)("".concat(h,"/dist/js/highlight.js/third-languages.js?v=1.0.1"),"vditorHljsThirdScript").then(function(){v.querySelectorAll("pre > code").forEach(function(w){if(!(w.parentElement.classList.contains("vditor-ir__marker--pre")||w.parentElement.classList.contains("vditor-wysiwyg__pre"))&&!(w.classList.contains("language-mermaid")||w.classList.contains("language-flowchart")||w.classList.contains("language-echarts")||w.classList.contains("language-mindmap")||w.classList.contains("language-plantuml")||w.classList.contains("language-smiles")||w.classList.contains("language-abc")||w.classList.contains("language-graphviz")||w.classList.contains("language-math"))){p.defaultLang!==""&&w.className.indexOf("language-")===-1&&w.classList.add("language-"+p.defaultLang);var A=w.className.replace("language-","");if(window.hljs.getLanguage(A)||(A="plaintext"),w.innerHTML=window.hljs.highlight(w.textContent,{language:A,ignoreIllegals:!0}).value,w.classList.add("hljs"),!!p.lineNumber){w.classList.add("vditor-linenumber");var S=w.querySelector(".vditor-linenumber__temp");S||(S=document.createElement("div"),S.className="vditor-linenumber__temp",w.insertAdjacentElement("beforeend",S));var E=getComputedStyle(w).whiteSpace,D=!1;(E==="pre-wrap"||E==="pre-line")&&(D=!0);var _="",M=w.textContent.split(/\r\n|\r|\n/g);M.pop(),M.map(function(O){var k="";D&&(S.textContent=O||`
- `,k=' style="height:'.concat(S.getBoundingClientRect().height,'px"')),_+="<span".concat(k,"></span>")}),S.style.display="none",_='<span class="vditor-linenumber__rows">'.concat(_,"</span>"),w.insertAdjacentHTML("beforeend",_)}}})})})}}}),11:((a,s,l)=>{l.d(s,{K:()=>h});var u=l(145),d=l(413),c=l(840),f={},p=function(g,y){var m=g.transform(y),b=Object.keys(m.features).filter(function(D){return!f[D]});b.forEach(function(D){f[D]=!0});var w=g.getAssets(b),A=w.styles,S=w.scripts,E=window.markmap;return A&&E.loadCSS(A),S&&E.loadJS(S),m},v=function(g,y){var m=window.markmap,b=m.Transformer,w=m.Markmap,A=m.deriveOptions;m.globalCSS;var S=new b;g.innerHTML='<svg style="width:100%"></svg>';var E=g.firstChild,D=w.create(E,null),_=p(S,y),M=_.root,O=_.frontmatter,k=O?.markmap,R=A(k);D.setData(M,R),D.fit()},h=function(g,y){g===void 0&&(g=document),y===void 0&&(y=u.g.CDN);var m=c.markmapRenderAdapter.getElements(g);m.length!==0&&(0,d.G)("".concat(y,"/dist/js/markmap/markmap.min.js"),"vditorMarkerScript").then(function(){m.forEach(function(b){var w=c.markmapRenderAdapter.getCode(b);if(!(b.getAttribute("data-processed")==="true"||w.trim()==="")){var A=document.createElement("div");A.className="language-markmap",b.parentNode.appendChild(A),v(A,w),b.parentNode.childNodes[0].nodeName=="CODE"&&b.parentNode.removeChild(b.parentNode.childNodes[0])}})})}}),472:((a,s,l)=>{l.d(s,{H:()=>v});var u=l(145),d=l(413),c=l(290),f=l(105),p=l(840),v=function(h,g){h===void 0&&(h=document);var y=p.mathRenderAdapter.getElements(h);if(y.length!==0){var m={cdn:u.g.CDN,math:{engine:"KaTeX",inlineDigit:!1,macros:{}}};if(g&&g.math&&(g.math=Object.assign({},m.math,g.math)),g=Object.assign({},m,g),g.math.engine==="KaTeX")(0,c.c)("".concat(g.cdn,"/dist/js/katex/katex.min.css?v=0.16.9"),"vditorKatexStyle"),(0,d.G)("".concat(g.cdn,"/dist/js/katex/katex.min.js?v=0.16.9"),"vditorKatexScript").then(function(){(0,d.G)("".concat(g.cdn,"/dist/js/katex/mhchem.min.js?v=0.16.9"),"vditorKatexChemScript").then(function(){y.forEach(function(A){if(!(A.parentElement.classList.contains("vditor-wysiwyg__pre")||A.parentElement.classList.contains("vditor-ir__marker--pre"))&&!A.getAttribute("data-math")){var S=(0,f.X)(p.mathRenderAdapter.getCode(A));A.setAttribute("data-math",S);try{A.innerHTML=katex.renderToString(S,{displayMode:A.tagName==="DIV",output:"html",macros:g.math.macros})}catch(E){A.innerHTML=E.message,A.className="language-math vditor-reset--error"}A.addEventListener("copy",function(E){E.stopPropagation(),E.preventDefault();var D=E.currentTarget.closest(".language-math");E.clipboardData.setData("text/html",D.innerHTML),E.clipboardData.setData("text/plain",D.getAttribute("data-math"))})}})})});else if(g.math.engine==="MathJax"){var b=function(A){if(A.length!==0){var S=0,E=A[A.length-1],D=function(){var _=A[S++];_===E?_():_(D)};D()}};window.MathJax||(window.MathJax={loader:{paths:{mathjax:"".concat(g.cdn,"/dist/js/mathjax")}},startup:{typeset:!1},tex:{macros:g.math.macros}},Object.assign(window.MathJax,g.math.mathJaxOptions)),(0,d.J)("".concat(g.cdn,"/dist/js/mathjax/tex-svg-full.js"),"protyleMathJaxScript");var w=function(A,S){var E=(0,f.X)(A.textContent).trim(),D=window.MathJax.getMetricsFor(A);D.display=A.tagName==="DIV",window.MathJax.tex2svgPromise(E,D).then(function(_){A.innerHTML="",A.setAttribute("data-math",E),A.append(_),window.MathJax.startup.document.clear(),window.MathJax.startup.document.updateDocument();var M=_.querySelector('[data-mml-node="merror"]');M&&M.textContent.trim()!==""&&(A.innerHTML=M.textContent.trim(),A.className="vditor-reset--error"),S&&S()})};window.MathJax.startup.promise.then(function(){for(var A=[],S=function(D){var _=y[D];!_.parentElement.classList.contains("vditor-wysiwyg__pre")&&!_.parentElement.classList.contains("vditor-ir__marker--pre")&&!_.getAttribute("data-math")&&(0,f.X)(_.textContent).trim()&&A.push(function(M){D===y.length-1?w(_):w(_,M)})},E=0;E<y.length;E++)S(E);b(A)})}}}}),280:((a,s,l)=>{l.d(s,{Y:()=>p});var u=l(494),d=function(v,h){v.insertAdjacentHTML("afterend",'<video controls="controls" src="'.concat(h,'"></video>')),v.remove()},c=function(v,h){v.insertAdjacentHTML("afterend",'<audio controls="controls" src="'.concat(h,'"></audio>')),v.remove()},f=function(v,h){var g=h.match(/\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?/),y=h.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/),m=h.match(/\/\/v\.qq\.com\/x\/cover\/.*\/([^\/]+)\.html\??.*/),b=h.match(/(?:www\.|\/\/)coub\.com\/view\/(\w+)/),w=h.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/),A=h.match(/.+dailymotion.com\/(video|hub)\/(\w+)\?/),S=h.match(/(?:www\.|\/\/)bilibili\.com\/video\/(\w+)/),E=h.match(/(?:www\.|\/\/)ted\.com\/talks\/(\w+)/);if(g&&g[1].length===11)v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//www.youtube.com/embed/'.concat(g[1]+(g[2]?"?start="+g[2]:""),'"></iframe>')),v.remove();else if(y&&y[1])v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//player.youku.com/embed/'.concat(y[1],'"></iframe>')),v.remove();else if(m&&m[1])v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="https://v.qq.com/txp/iframe/player.html?vid='.concat(m[1],'"></iframe>')),v.remove();else if(b&&b[1])v.insertAdjacentHTML("afterend",`<iframe class="iframe__video"
- src="//coub.com/embed/`.concat(b[1],'?muted=false&autostart=false&originalSize=true&startWithHD=true"></iframe>')),v.remove();else if(w&&w[0])v.insertAdjacentHTML("afterend",`<iframe class="iframe__video"
- src="https://www.facebook.com/plugins/video.php?href=`.concat(encodeURIComponent(w[0]),'"></iframe>')),v.remove();else if(A&&A[2])v.insertAdjacentHTML("afterend",`<iframe class="iframe__video"
- src="https://www.dailymotion.com/embed/video/`.concat(A[2],'"></iframe>')),v.remove();else if(h.indexOf("bilibili.com")>-1&&(h.indexOf("bvid=")>-1||S&&S[1])){var D={bvid:(0,u.on)("bvid",h)||S&&S[1],page:"1",high_quality:"1",as_wide:"1",allowfullscreen:"true",autoplay:"0"};new URL(h.startsWith("http")?h:"https:"+h).search.split("&").forEach(function(O,k){if(O){k===0&&(O=O.substr(1));var R=O.split("=");D[R[0]]=R[1]}});var _="https://player.bilibili.com/player.html?",M=Object.keys(D);M.forEach(function(O,k){_+="".concat(O,"=").concat(D[O]),k<M.length-1&&(_+="&")}),v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="'.concat(_,'"></iframe>')),v.remove()}else E&&E[1]&&(v.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//embed.ted.com/talks/'.concat(E[1],'"></iframe>')),v.remove())},p=function(v){v&&v.querySelectorAll("a").forEach(function(h){var g=h.getAttribute("href");g&&(g.match(/^.+.(mp4|m4v|ogg|ogv|webm)$/)?d(h,g):g.match(/^.+.(mp3|wav|flac)$/)?c(h,g):f(h,g))})}}),637:((a,s,l)=>{l.d(s,{i:()=>h});var u=l(145),d=l(413),c=l(840),f=l(494),p=function(g,y,m,b){function w(A){return A instanceof m?A:new m(function(S){S(A)})}return new(m||(m=Promise))(function(A,S){function E(M){try{_(b.next(M))}catch(O){S(O)}}function D(M){try{_(b.throw(M))}catch(O){S(O)}}function _(M){M.done?A(M.value):w(M.value).then(E,D)}_((b=b.apply(g,y||[])).next())})},v=function(g,y){var m={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},b,w,A,S;return S={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function E(_){return function(M){return D([_,M])}}function D(_){if(b)throw new TypeError("Generator is already executing.");for(;S&&(S=0,_[0]&&(m=0)),m;)try{if(b=1,w&&(A=_[0]&2?w.return:_[0]?w.throw||((A=w.return)&&A.call(w),0):w.next)&&!(A=A.call(w,_[1])).done)return A;switch(w=0,A&&(_=[_[0]&2,A.value]),_[0]){case 0:case 1:A=_;break;case 4:return m.label++,{value:_[1],done:!1};case 5:m.label++,w=_[1],_=[0];continue;case 7:_=m.ops.pop(),m.trys.pop();continue;default:if(A=m.trys,!(A=A.length>0&&A[A.length-1])&&(_[0]===6||_[0]===2)){m=0;continue}if(_[0]===3&&(!A||_[1]>A[0]&&_[1]<A[3])){m.label=_[1];break}if(_[0]===6&&m.label<A[1]){m.label=A[1],A=_;break}if(A&&m.label<A[2]){m.label=A[2],m.ops.push(_);break}A[2]&&m.ops.pop(),m.trys.pop();continue}_=y.call(g,m)}catch(M){_=[6,M],w=0}finally{b=A=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},h=function(g,y,m){g===void 0&&(g=document),y===void 0&&(y=u.g.CDN);var b=c.mermaidRenderAdapter.getElements(g);b.length!==0&&(0,d.G)("".concat(y,"/dist/js/mermaid/mermaid.min.js?v=11.6.0"),"vditorMermaidScript").then(function(){var w={securityLevel:"loose",altFontFamily:"sans-serif",fontFamily:"sans-serif",startOnLoad:!1,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequence:{useMaxWidth:!0,diagramMarginX:8,diagramMarginY:8,boxMargin:8,showSequenceNumbers:!0},gantt:{leftPadding:75,rightPadding:20}};m==="dark"&&(w.theme="dark"),mermaid.initialize(w),b.forEach(function(A){return p(void 0,void 0,void 0,function(){var S,E,D,_,M;return v(this,function(O){switch(O.label){case 0:if(S=c.mermaidRenderAdapter.getCode(A),A.getAttribute("data-processed")==="true"||S.trim()==="")return[2];E="mermaid"+(0,f.Wb)(),O.label=1;case 1:return O.trys.push([1,3,,4]),[4,mermaid.render(E,A.textContent)];case 2:return D=O.sent(),A.innerHTML=D.svg,[3,4];case 3:return _=O.sent(),M=document.querySelector("#"+E),A.innerHTML="".concat(M.outerHTML,`<br>
- <div style="text-align: left"><small>`).concat(_.message.replace(/\n/,"<br>"),"</small></div>"),M.parentElement.remove(),[3,4];case 4:return A.setAttribute("data-processed","true"),[2]}})})})})}}),194:((a,s,l)=>{l.d(s,{P:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v,h){p===void 0&&(p=document),v===void 0&&(v=u.g.CDN);var g=c.mindmapRenderAdapter.getElements(p);g.length>0&&(0,d.G)("".concat(v,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){g.forEach(function(y){if(!(y.parentElement.classList.contains("vditor-wysiwyg__pre")||y.parentElement.classList.contains("vditor-ir__marker--pre"))){var m=c.mindmapRenderAdapter.getCode(y);if(m)try{if(y.getAttribute("data-processed")==="true")return;echarts.init(y,h==="dark"?"dark":void 0).setOption({series:[{data:[JSON.parse(decodeURIComponent(m))],initialTreeDepth:-1,itemStyle:{borderWidth:0,color:"#4285f4"},label:{backgroundColor:"#f6f8fa",borderColor:"#d1d5da",borderRadius:5,borderWidth:.5,color:"#586069",lineHeight:20,offset:[-5,0],padding:[0,5],position:"insideRight"},lineStyle:{color:"#d1d5da",width:1},roam:!0,symbol:function(b,w){var A;return!((A=w?.data)===null||A===void 0)&&A.children?"circle":"path://"},type:"tree"}],tooltip:{trigger:"item",triggerOn:"mousemove"}}),y.setAttribute("data-processed","true")}catch(b){y.className="vditor-reset--error",y.innerHTML="mindmap render error: <br>".concat(b)}}})})}}),436:((a,s,l)=>{l.d(s,{k:()=>c});var u=l(771),d=l(472),c=function(f,p,v){var h="",g=[];if(Array.from(f.children).forEach(function(w,A){if((0,u.W)(w)){if(v){var S=w.id.lastIndexOf("_");w.id=w.id.substring(0,S===-1?void 0:S)+"_"+A}g.push(w.id),h+=w.outerHTML.replace("<wbr>","")}}),h==="")return p.innerHTML="","";var y=document.createElement("div");if(v)v.lute.SetToC(!0),v.currentMode==="wysiwyg"&&!v.preview.element.contains(f)?y.innerHTML=v.lute.SpinVditorDOM("<p>[ToC]</p>"+h):v.currentMode==="ir"&&!v.preview.element.contains(f)?y.innerHTML=v.lute.SpinVditorIRDOM("<p>[ToC]</p>"+h):y.innerHTML=v.lute.HTML2VditorDOM("<p>[ToC]</p>"+h),v.lute.SetToC(v.options.preview.markdown.toc);else{p.classList.add("vditor-outline");var m=Lute.New();m.SetToC(!0),y.innerHTML=m.HTML2VditorDOM("<p>[ToC]</p>"+h)}var b=y.firstElementChild.querySelectorAll("li > span[data-target-id]");return b.forEach(function(w,A){if(w.nextElementSibling&&w.nextElementSibling.tagName==="UL"){var S="<svg class='vditor-outline__action'><use xlink:href='#vditor-icon-down'></use></svg>";document.getElementById("vditorIconScript")||(S='<svg class="vditor-outline__action" viewBox="0 0 32 32"><path d="M3.76 6.12l12.24 12.213 12.24-12.213 3.76 3.76-16 16-16-16 3.76-3.76z"></path></svg>'),w.innerHTML="".concat(S,"<span>").concat(w.innerHTML,"</span>")}else w.innerHTML="<svg></svg><span>".concat(w.innerHTML,"</span>");w.setAttribute("data-target-id",g[A])}),h=y.firstElementChild.innerHTML,b.length===0?(p.innerHTML="",h):(p.innerHTML=h,v&&(0,d.H)(p,{cdn:v.options.cdn,math:v.options.preview.math}),p.firstElementChild.addEventListener("click",function(w){for(var A=w.target;A&&!A.isEqualNode(p);){if(A.classList.contains("vditor-outline__action")){A.classList.contains("vditor-outline__action--close")?(A.classList.remove("vditor-outline__action--close"),A.parentElement.nextElementSibling.setAttribute("style","display:block")):(A.classList.add("vditor-outline__action--close"),A.parentElement.nextElementSibling.setAttribute("style","display:none")),w.preventDefault(),w.stopPropagation();break}else if(A.getAttribute("data-target-id")){w.preventDefault(),w.stopPropagation();var S=document.getElementById(A.getAttribute("data-target-id"));if(!S)return;if(v)if(v.options.height==="auto"){var E=S.offsetTop+v.element.offsetTop;v.options.toolbarConfig.pin||(E+=v.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,E)}else v.element.offsetTop<window.scrollY&&window.scrollTo(window.scrollX,v.element.offsetTop),v.preview.element.contains(f)?f.parentElement.scrollTop=S.offsetTop:f.scrollTop=S.offsetTop;else window.scrollTo(window.scrollX,S.offsetTop);break}A=A.parentElement}}),h)}}),229:((a,s,l)=>{l.d(s,{B:()=>f});var u=l(145),d=l(413),c=l(840),f=function(p,v){p===void 0&&(p=document),v===void 0&&(v=u.g.CDN);var h=c.plantumlRenderAdapter.getElements(p);h.length!==0&&(0,d.G)("".concat(v,"/dist/js/plantuml/plantuml-encoder.min.js"),"vditorPlantumlScript").then(function(){h.forEach(function(g){if(!(g.parentElement.classList.contains("vditor-wysiwyg__pre")||g.parentElement.classList.contains("vditor-ir__marker--pre"))){var y=c.plantumlRenderAdapter.getCode(g).trim();if(y)try{g.innerHTML='<object type="image/svg+xml" data="https://www.plantuml.com/plantuml/svg/~1'.concat(plantumlEncoder.encode(y),'"/>')}catch(m){g.className="vditor-reset--error",g.innerHTML="plantuml render error: <br>".concat(m)}}})})}}),214:((a,s,l)=>{l.d(s,{X:()=>u});var u=function(d){var c=Lute.New();return c.PutEmojis(d.emojis),c.SetEmojiSite(d.emojiSite),c.SetHeadingAnchor(d.headingAnchor),c.SetInlineMathAllowDigitAfterOpenMarker(d.inlineMathDigit),c.SetAutoSpace(d.autoSpace),c.SetToC(d.toc),c.SetFootnotes(d.footnotes),c.SetFixTermTypo(d.fixTermTypo),c.SetVditorCodeBlockPreview(d.codeBlockPreview),c.SetVditorMathBlockPreview(d.mathBlockPreview),c.SetSanitize(d.sanitize),c.SetChineseParagraphBeginningSpace(d.paragraphBeginningSpace),c.SetRenderListStyle(d.listStyle),c.SetLinkBase(d.linkBase),c.SetLinkPrefix(d.linkPrefix),c.SetMark(d.mark),c.SetGFMAutoLink(d.gfmAutoLink),d.lazyLoadImage&&c.SetImageLazyLoading(d.lazyLoadImage),c}}),190:((a,s,l)=>{l.d(s,{E:()=>u});var u=function(d,c,f){f===void 0&&(f="classic");var p=d.getBoundingClientRect(),v=36;document.body.insertAdjacentHTML("beforeend",'<div class="vditor vditor-img'.concat(f==="dark"?" vditor--dark":"",`">
- <div class="vditor-img__bar">
- <span class="vditor-img__btn" data-deg="0">
- <svg><use xlink:href="#vditor-icon-redo"></use></svg>
- `).concat(window.VditorI18n.spin,`
- </span>
- <span class="vditor-img__btn" onclick="this.parentElement.parentElement.outerHTML = '';document.body.style.overflow = ''">
- X `).concat(window.VditorI18n.close,`
- </span>
- </div>
- <div class="vditor-img__img" onclick="this.parentElement.outerHTML = '';document.body.style.overflow = ''">
- <img style="width: `).concat(d.width,"px;height:").concat(d.height,"px;transform: translate3d(").concat(p.left,"px, ").concat(p.top-v,'px, 0)" src="').concat(d.getAttribute("src"),`">
- </div>
- </div>`)),document.body.style.overflow="hidden";var h=document.querySelector(".vditor-img img"),g="translate3d(".concat(Math.max(0,window.innerWidth-d.naturalWidth)/2,"px, ").concat(Math.max(0,window.innerHeight-v-d.naturalHeight)/2,"px, 0)");setTimeout(function(){h.setAttribute("style","transition: transform .3s ease-in-out;transform: ".concat(g)),setTimeout(function(){h.parentElement.scrollTo((h.parentElement.scrollWidth-h.parentElement.clientWidth)/2,(h.parentElement.scrollHeight-h.parentElement.clientHeight)/2)},400)});var y=document.querySelector(".vditor-img__btn");y.addEventListener("click",function(){var m=parseInt(y.getAttribute("data-deg"),10)+90;m/90%2===1&&d.naturalWidth>h.parentElement.clientHeight?h.style.transform="translate3d(".concat(Math.max(0,window.innerWidth-d.naturalWidth)/2,"px, ").concat(d.naturalWidth/2-d.naturalHeight/2,"px, 0) rotateZ(").concat(m,"deg)"):h.style.transform="".concat(g," rotateZ(").concat(m,"deg)"),y.setAttribute("data-deg",m.toString()),setTimeout(function(){h.parentElement.scrollTo((h.parentElement.scrollWidth-h.parentElement.clientWidth)/2,(h.parentElement.scrollHeight-h.parentElement.clientHeight)/2)},400)})}}),580:((a,s,l)=>{l.d(s,{Y:()=>c});var u=l(145),d=l(290),c=function(f,p){p===void 0&&(p=u.g.CDN),u.g.CODE_THEME.includes(f)||(f="github");var v=document.getElementById("vditorHljsStyle"),h="".concat(p,"/dist/js/highlight.js/styles/").concat(f,".min.css");v?v.getAttribute("href")!==h&&(v.remove(),(0,d.c)(h,"vditorHljsStyle")):(0,d.c)(h,"vditorHljsStyle")}}),538:((a,s,l)=>{l.d(s,{Z:()=>d});var u=l(290),d=function(c,f){if(!(!c||!f)){var p=document.getElementById("vditorContentTheme"),v="".concat(f,"/").concat(c,".css");p?p.getAttribute("href")!==v&&(p.remove(),(0,u.c)(v,"vditorContentTheme")):(0,u.c)(v,"vditorContentTheme")}}}),413:((a,s,l)=>{l.d(s,{J:()=>u,G:()=>d});var u=function(c,f){if(document.getElementById(f))return!1;var p=new XMLHttpRequest;p.open("GET",c,!1),p.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),p.send("");var v=document.createElement("script");v.type="text/javascript",v.text=p.responseText,v.id=f,document.head.appendChild(v)},d=function(c,f){return new Promise(function(p,v){if(document.getElementById(f))return p(!0),!1;var h=document.createElement("script");h.src=c,h.async=!0,document.head.appendChild(h),h.onerror=function(g){v(g)},h.onload=function(){if(document.getElementById(f))return h.remove(),p(!0),!1;h.id=f,p(!0)}})}}),290:((a,s,l)=>{l.d(s,{c:()=>u});var u=function(d,c){if(!document.getElementById(c)){var f=document.createElement("link");f.id=c,f.rel="stylesheet",f.type="text/css",f.href=d,document.getElementsByTagName("head")[0].appendChild(f)}}}),105:((a,s,l)=>{l.d(s,{X:()=>u});var u=function(d){return d.replace(/\u00a0/g," ")}}),410:((a,s,l)=>{l.d(s,{G6:()=>u,vU:()=>d,pK:()=>c,Le:()=>f,yl:()=>p,ns:()=>v,i7:()=>h});var u=function(){return navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1},d=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},c=function(){try{return typeof localStorage<"u"}catch{return!1}},f=function(){return navigator.userAgent.indexOf("iPhone")>-1?"touchstart":"click"},p=function(g){return navigator.platform.toUpperCase().indexOf("MAC")>=0?!!(g.metaKey&&!g.ctrlKey):!!(!g.metaKey&&g.ctrlKey)},v=function(g){return/Mac/.test(navigator.platform)||navigator.platform==="iPhone"?g.indexOf("⇧")>-1&&d()&&(g=g.replace(";",":").replace("=","+").replace("-","_")):(g.startsWith("⌘")?g=g.replace("⌘","⌘+"):g.startsWith("⌥")&&g.substr(1,1)!=="⌘"?g=g.replace("⌥","⌥+"):g=g.replace("⇧⌘","⌘+⇧+").replace("⌥⌘","⌥+⌘+"),g=g.replace("⌘","Ctrl").replace("⇧","Shift").replace("⌥","Alt"),g.indexOf("Shift")>-1&&(g=g.replace(";",":").replace("=","+").replace("-","_"))),g},h=function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}}),494:((a,s,l)=>{l.d(s,{Wb:()=>u,on:()=>d,Qf:()=>c});var u=function(){return([1e7].toString()+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(f){return(parseInt(f,10)^window.crypto.getRandomValues(new Uint32Array(1))[0]&15>>parseInt(f,10)/4).toString(16)})},d=function(f,p){p===void 0&&(p=window.location.search);var v=p.substring(p.indexOf("?")),h=v.indexOf("#"),g=new URLSearchParams(v.substring(0,h>=0?h:void 0));return g.get(f)},c=function(f){return Function('"use strict";return ('.concat(f,")"))()}}),106:((a,s,l)=>{l.d(s,{JQ:()=>d,E2:()=>c,O9:()=>f,a1:()=>p,F9:()=>v,lG:()=>h,fb:()=>g,DX:()=>y});var u=l(771),d=function(m,b){for(var w=g(m,b),A=!1,S=!1;w&&!w.classList.contains("vditor-reset")&&!S;)A=g(w.parentElement,b),A?w=A:S=!0;return w||!1},c=function(m,b){for(var w=(0,u.S)(m,b),A=!1,S=!1;w&&!w.classList.contains("vditor-reset")&&!S;)A=(0,u.S)(w.parentElement,b),A?w=A:S=!0;return w||!1},f=function(m){var b=c(m,"UL"),w=c(m,"OL"),A=b;return w&&(!b||b&&w.contains(b))&&(A=w),A},p=function(m,b,w){if(!m)return!1;m.nodeType===3&&(m=m.parentElement);for(var A=m,S=!1;A&&!S&&!A.classList.contains("vditor-reset");)A.getAttribute(b)===w?S=!0:A=A.parentElement;return S&&A},v=function(m){if(!m)return!1;m.nodeType===3&&(m=m.parentElement);var b=m,w=!1,A=p(m,"data-block","0");if(A)return A;for(;b&&!w&&!b.classList.contains("vditor-reset");)b.tagName==="H1"||b.tagName==="H2"||b.tagName==="H3"||b.tagName==="H4"||b.tagName==="H5"||b.tagName==="H6"||b.tagName==="P"||b.tagName==="BLOCKQUOTE"||b.tagName==="OL"||b.tagName==="UL"?w=!0:b=b.parentElement;return w&&b},h=function(m,b){if(!m)return!1;m.nodeType===3&&(m=m.parentElement);for(var w=m,A=!1;w&&!A&&!w.classList.contains("vditor-reset");)w.nodeName===b?A=!0:w=w.parentElement;return A&&w},g=function(m,b){if(!m)return!1;m.nodeType===3&&(m=m.parentElement);for(var w=m,A=!1;w&&!A&&!w.classList.contains("vditor-reset");)w.classList.contains(b)?A=!0:w=w.parentElement;return A&&w},y=function(m){for(;m&&m.lastChild;)m=m.lastChild;return m}}),771:((a,s,l)=>{l.d(s,{S:()=>u,W:()=>d});var u=function(c,f){if(!c)return!1;c.nodeType===3&&(c=c.parentElement);for(var p=c,v=!1;p&&!v&&!p.classList.contains("vditor-reset");)p.nodeName.indexOf(f)===0?v=!0:p=p.parentElement;return v&&p},d=function(c){var f=u(c,"H");return f&&f.tagName.length===2&&f.tagName!=="HR"?f:!1}}),673:((a,s,l)=>{l.d(s,{T:()=>u});var u=function(){for(var d=[],c=0;c<arguments.length;c++)d[c]=arguments[c];for(var f={},p=function(h){for(var g in h)h.hasOwnProperty(g)&&(Object.prototype.toString.call(h[g])==="[object Object]"?f[g]=u(f[g],h[g]):f[g]=h[g])},v=0;v<d.length;v++)p(d[v]);return f}}),810:((a,s,l)=>{l.d(s,{zh:()=>f,Ny:()=>p,Gb:()=>v,Hc:()=>h,im:()=>g,$j:()=>y,ib:()=>m,oC:()=>b});var u=l(145),d=l(410),c=l(106),f=function(w){var A,S=w[w.currentMode].element;return getSelection().rangeCount>0&&(A=getSelection().getRangeAt(0),S.isEqualNode(A.startContainer)||S.contains(A.startContainer))?A:w[w.currentMode].range?w[w.currentMode].range:(S.focus(),A=S.ownerDocument.createRange(),A.setStart(S,0),A.collapse(!0),A)},p=function(w){var A=window.getSelection().getRangeAt(0);if(!w.contains(A.startContainer)&&!(0,c.fb)(A.startContainer,"vditor-panel--none"))return{left:0,top:0};var S=w.parentElement.getBoundingClientRect(),E;if(A.getClientRects().length===0)if(A.startContainer.nodeType===3){var D=A.startContainer.parentElement;if(D&&D.getClientRects().length>0)E=D.getClientRects()[0];else return{left:0,top:0}}else{var _=A.startContainer.children;if(_[A.startOffset]&&_[A.startOffset].getClientRects().length>0)E=_[A.startOffset].getClientRects()[0];else if(A.startContainer.childNodes.length>0){var M=A.cloneRange();A.selectNode(A.startContainer.childNodes[Math.max(0,A.startOffset-1)]),E=A.getClientRects()[0],A.setEnd(M.endContainer,M.endOffset),A.setStart(M.startContainer,M.startOffset)}else E=A.startContainer.getClientRects()[0];if(!E){for(var O=A.startContainer.childNodes[A.startOffset];!O.getClientRects||O.getClientRects&&O.getClientRects().length===0;)O=O.parentElement;E=O.getClientRects()[0]}}else E=A.getClientRects()[0];return{left:E.left-S.left,top:E.top-S.top}},v=function(w,A){if(!A){if(getSelection().rangeCount===0)return!1;A=getSelection().getRangeAt(0)}var S=A.commonAncestorContainer;return w.isEqualNode(S)||w.contains(S)},h=function(w){var A=window.getSelection();A.removeAllRanges(),A.addRange(w)},g=function(w,A,S){var E={end:0,start:0};if(!S){if(getSelection().rangeCount===0)return E;S=window.getSelection().getRangeAt(0)}if(v(A,S)){var D=S.cloneRange();w.childNodes[0]&&w.childNodes[0].childNodes[0]?D.setStart(w.childNodes[0].childNodes[0],0):D.selectNodeContents(w),D.setEnd(S.startContainer,S.startOffset),E.start=D.toString().length,E.end=E.start+S.toString().length}return E},y=function(w,A,S){var E=0,D=0,_=S.childNodes[D],M=!1,O=!1;w=Math.max(0,w),A=Math.max(0,A);var k=S.ownerDocument.createRange();for(k.setStart(_||S,0),k.collapse(!0);!O&&_;){var R=E+_.textContent.length;if(!M&&w>=E&&w<=R&&(w===0?k.setStart(_,0):_.childNodes[0].nodeType===3?k.setStart(_.childNodes[0],w-E):_.nextSibling?k.setStartBefore(_.nextSibling):k.setStartAfter(_),M=!0,w===A)){O=!0;break}M&&A>=E&&A<=R&&(A===0?k.setEnd(_,0):_.childNodes[0].nodeType===3?k.setEnd(_.childNodes[0],A-E):_.nextSibling?k.setEndBefore(_.nextSibling):k.setEndAfter(_),O=!0),E=R,_=S.childNodes[++D]}return!O&&S.childNodes[D-1]&&k.setStartBefore(S.childNodes[D-1]),h(k),k},m=function(w,A){var S=w.querySelector("wbr");if(S){if(!S.previousElementSibling)S.previousSibling?A.setStart(S.previousSibling,S.previousSibling.textContent.length):S.nextSibling?S.nextSibling.nodeType===3?A.setStart(S.nextSibling,0):A.setStartBefore(S.nextSibling):A.setStart(S.parentElement,0);else if(S.previousElementSibling.isSameNode(S.previousSibling))if(S.previousElementSibling.lastChild){A.setStartBefore(S),A.collapse(!0),h(A),(0,d.i7)()&&(S.previousElementSibling.tagName==="EM"||S.previousElementSibling.tagName==="STRONG"||S.previousElementSibling.tagName==="S")&&(A.insertNode(document.createTextNode(u.g.ZWSP)),A.collapse(!1)),S.remove();return}else A.setStartAfter(S.previousElementSibling);else A.setStart(S.previousSibling,S.previousSibling.textContent.length);A.collapse(!0),S.remove(),h(A)}},b=function(w,A){var S=document.createElement("div");S.innerHTML=w;var E=S.querySelectorAll("p");E.length===1&&!E[0].previousSibling&&!E[0].nextSibling&&A[A.currentMode].element.children.length>0&&S.firstElementChild.tagName==="P"&&(w=E[0].innerHTML.trim());var D=document.createElement("div");D.innerHTML=w;var _=f(A);if(_.toString()!==""&&(A[A.currentMode].preventInput=!0,document.execCommand("delete",!1,"")),D.firstElementChild&&D.firstElementChild.getAttribute("data-block")==="0"){D.lastElementChild.insertAdjacentHTML("beforeend","<wbr>");var M=(0,c.F9)(_.startContainer);if(!M)A[A.currentMode].element.insertAdjacentHTML("beforeend",D.innerHTML);else{var O=(0,c.lG)(_.startContainer,"LI");O&&D.firstElementChild.tagName==="UL"?O.insertAdjacentHTML("afterend",D.firstElementChild.innerHTML):M.insertAdjacentHTML("afterend",D.innerHTML)}m(A[A.currentMode].element,_)}else{var k=document.createElement("template");k.innerHTML=w,_.insertNode(k.content.cloneNode(!0)),_.collapse(!1),h(_)}}})},r={};function o(a){var s=r[a];if(s!==void 0)return s.exports;var l=r[a]={exports:{}};return n[a](l,l.exports,o),l.exports}o.d=(a,s)=>{for(var l in s)o.o(s,l)&&!o.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:s[l]})},o.o=(a,s)=>Object.prototype.hasOwnProperty.call(a,s),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var i={};return(()=>{o.d(i,{default:()=>mt});var a=o(408),s=o(145),l=o(105),u=function(T){return T.currentMode==="sv"?(0,l.X)("".concat(T.sv.element.textContent,`
- `).replace(/\n\n$/,`
- `)):T.currentMode==="wysiwyg"?T.lute.VditorDOM2Md(T.wysiwyg.element.innerHTML):T.currentMode==="ir"?T.lute.VditorIRDOM2Md(T.ir.element.innerHTML):""},d=o(413),c=(function(){function T(){this.element=document.createElement("div"),this.element.className="vditor-devtools",this.element.innerHTML='<div class="vditor-reset--error"></div><div style="height: 100%;"></div>'}return T.prototype.renderEchart=function(I){var P=this;I.devtools.element.style.display==="block"&&(0,d.G)("".concat(I.options.cdn,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then(function(){P.ASTChart||(P.ASTChart=echarts.init(I.devtools.element.lastElementChild));try{P.element.lastElementChild.style.display="block",P.element.firstElementChild.innerHTML="",P.ASTChart.setOption({series:[{data:JSON.parse(I.lute.RenderEChartsJSON(u(I))),initialTreeDepth:-1,label:{align:"left",backgroundColor:"rgba(68, 77, 86, .68)",borderRadius:3,color:"#d1d5da",fontSize:12,lineHeight:12,offset:[9,12],padding:[2,4,2,4],position:"top",verticalAlign:"middle"},lineStyle:{color:"#4285f4",type:"curve",width:1},orient:"vertical",roam:!0,type:"tree"}],toolbox:{bottom:25,emphasis:{iconStyle:{color:"#4285f4"}},feature:{restore:{show:!0},saveAsImage:{show:!0}},right:15,show:!0}}),P.ASTChart.resize()}catch($){P.element.lastElementChild.style.display="none",P.element.firstElementChild.innerHTML=$}})},T})(),f=o(410),p=function(T,I){I.forEach(function(P){if(T[P]){var $=T[P].children[0];$&&$.classList.contains("vditor-menu--current")&&$.classList.remove("vditor-menu--current")}})},v=function(T,I){I.forEach(function(P){if(T[P]){var $=T[P].children[0];$&&!$.classList.contains("vditor-menu--current")&&$.classList.add("vditor-menu--current")}})},h=function(T,I){I.forEach(function(P){if(T[P]){var $=T[P].children[0];$&&$.classList.contains(s.g.CLASS_MENU_DISABLED)&&$.classList.remove(s.g.CLASS_MENU_DISABLED)}})},g=function(T,I){I.forEach(function(P){if(T[P]){var $=T[P].children[0];$&&!$.classList.contains(s.g.CLASS_MENU_DISABLED)&&$.classList.add(s.g.CLASS_MENU_DISABLED)}})},y=function(T,I){I.forEach(function(P){T[P]&&T[P]&&(T[P].style.display="none")})},m=function(T,I){I.forEach(function(P){T[P]&&T[P]&&(T[P].style.display="block")})},b=function(T,I,P){I.includes("subToolbar")&&(T.toolbar.element.querySelectorAll(".vditor-hint").forEach(function($){P&&$.isEqualNode(P)||($.style.display="none")}),T.toolbar.elements.emoji&&(T.toolbar.elements.emoji.lastElementChild.style.display="none")),I.includes("hint")&&(T.hint.element.style.display="none"),T.wysiwyg.popover&&I.includes("popover")&&(T.wysiwyg.popover.style.display="none")},w=function(T,I,P,$){P.addEventListener((0,f.Le)(),function(V){V.preventDefault(),V.stopPropagation(),!P.classList.contains(s.g.CLASS_MENU_DISABLED)&&(T.toolbar.element.querySelectorAll(".vditor-hint--current").forEach(function(J){J.classList.remove("vditor-hint--current")}),I.style.display==="block"?I.style.display="none":(b(T,["subToolbar","hint","popover"],P.parentElement.parentElement),P.classList.contains("vditor-tooltipped")||P.classList.add("vditor-hint--current"),I.style.display="block",T.toolbar.element.getBoundingClientRect().right-P.getBoundingClientRect().right<250?I.classList.add("vditor-panel--left"):I.classList.remove("vditor-panel--left")))})},A=o(106),S=o(771),E=function(T,I,P,$){$&&console.log("".concat(T," - ").concat(P,": ").concat(I))},D=o(135),_=o(775),M=o(428),O=o(325),k=o(483),R=o(999),N=o(472),W=o(637),B=o(11),z=o(194),j=o(229),q=o(825),Y=function(T,I,P){P===void 0&&(P="sv");var $=document.createElement("div");$.innerHTML=T;var V=!1;$.childElementCount===1&&$.lastElementChild.style.fontFamily.indexOf("monospace")>-1&&(V=!0);var J=$.querySelectorAll("pre");if($.childElementCount===1&&J.length===1&&J[0].className!=="vditor-wysiwyg"&&J[0].className!=="vditor-sv"&&(V=!0),T.indexOf(`
- <p class="p1">`)===0&&(V=!0),$.childElementCount===1&&$.firstElementChild.tagName==="TABLE"&&$.querySelector(".line-number")&&$.querySelector(".line-content")&&(V=!0),V){var Te=I||T;return/\n/.test(Te)||J.length===1?P==="wysiwyg"?'<div class="vditor-wysiwyg__block" data-block="0" data-type="code-block"><pre><code>'.concat(Te.replace(/&/g,"&").replace(/</g,"<"),"<wbr></code></pre></div>"):"\n```\n"+Te.replace(/&/g,"&").replace(/</g,"<")+"\n```":P==="wysiwyg"?"<code>".concat(Te.replace(/&/g,"&").replace(/</g,"<"),"</code><wbr>"):"`".concat(Te,"`")}return!1},U=function(T,I){if(T){if(T.parentElement.getAttribute("data-type")==="html-block"){T.setAttribute("data-render","1");return}var P=T.firstElementChild.className.replace("language-","");if(P==="abc")(0,D.Q)(T,I.options.cdn);else if(P==="mermaid")(0,W.i)(T,I.options.cdn,I.options.theme);else if(P==="smiles")(0,q.J)(T,I.options.cdn,I.options.theme);else if(P==="markmap")(0,B.K)(T,I.options.cdn);else if(P==="flowchart")(0,O.P)(T,I.options.cdn);else if(P==="echarts")(0,_.p)(T,I.options.cdn,I.options.theme);else if(P==="mindmap")(0,z.P)(T,I.options.cdn,I.options.theme);else if(P==="plantuml")(0,j.B)(T,I.options.cdn);else if(P==="graphviz")(0,k.v)(T,I.options.cdn);else if(P==="math")(0,N.H)(T,{cdn:I.options.cdn,math:I.options.preview.math});else{var $=I.options.customRenders.find(function(V){if(V.language===P)return V.render(T,I),!0});$||((0,R.s)(Object.assign({},I.options.preview.hljs),T,I.options.cdn),(0,M.O)(T,I.options.preview.hljs))}T.setAttribute("data-render","1")}},F=o(810),H=function(T){if(T.currentMode!=="sv"){var I=T[T.currentMode].element,P=T.outline.render(T);P===""&&(P="[ToC]"),I.querySelectorAll('[data-type="toc-block"]').forEach(function($){$.innerHTML=P,(0,N.H)($,{cdn:T.options.cdn,math:T.options.preview.math})})}},re=function(T,I){var P=(0,A.lG)(T.target,"SPAN");if(P&&(0,A.fb)(P,"vditor-toc")){var $=I[I.currentMode].element.querySelector("#"+P.getAttribute("data-target-id"));if($)if(I.options.height==="auto"){var V=$.offsetTop+I.element.offsetTop;I.options.toolbarConfig.pin||(V+=I.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,V)}else I.element.offsetTop<window.scrollY&&window.scrollTo(window.scrollX,I.element.offsetTop),I[I.currentMode].element.scrollTop=$.offsetTop;return}},X=function(T,I,P,$){if(T.previousElementSibling&&T.previousElementSibling.classList.contains("vditor-toc")){if(P.key==="Backspace"&&(0,F.im)(T,I[I.currentMode].element,$).start===0)return T.previousElementSibling.remove(),Dr(I),!0;if(xi(I,P,$,T,T.previousElementSibling))return!0}if(T.nextElementSibling&&T.nextElementSibling.classList.contains("vditor-toc")){if(P.key==="Delete"&&(0,F.im)(T,I[I.currentMode].element,$).start>=T.textContent.trimRight().length)return T.nextElementSibling.remove(),Dr(I),!0;if(Ci(I,P,$,T,T.nextElementSibling))return!0}if(P.key==="Backspace"||P.key==="Delete"){var V=(0,A.fb)($.startContainer,"vditor-toc");if(V)return V.remove(),Dr(I),!0}},te=function(T,I,P,$){P===void 0&&(P=!1);var V=(0,A.F9)(I.startContainer);if(V&&!P&&V.getAttribute("data-type")!=="code-block"){if(yi(V.innerHTML)&&V.previousElementSibling||sa(V.innerHTML))return;for(var J=(0,F.im)(V,T.ir.element,I).start,Te=!0,Xe=J-1;Xe>V.textContent.substr(0,J).lastIndexOf(`
- `);Xe--)if(V.textContent.charAt(Xe)!==" "&&V.textContent.charAt(Xe)!==" "){Te=!1;break}J===0&&(Te=!1);for(var st=!0,Xe=J-1;Xe<V.textContent.length;Xe++)if(V.textContent.charAt(Xe)!==" "&&V.textContent.charAt(Xe)!==`
- `){st=!1;break}if(Te){typeof T.options.input=="function"&&T.options.input(u(T));return}if(st&&/^#{1,6} $/.test(V.textContent)&&(st=!1),st){var Ke=(0,A.fb)(I.startContainer,"vditor-ir__marker");if(!Ke){var bt=I.startContainer.previousSibling;bt&&bt.nodeType!==3&&bt.classList.contains("vditor-ir__node--expand")&&bt.classList.remove("vditor-ir__node--expand"),typeof T.options.input=="function"&&T.options.input(u(T));return}}}if(T.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach(function(So){So.classList.remove("vditor-ir__node--expand")}),V||(V=T.ir.element),!V.querySelector("wbr")){var jt=(0,A.fb)(I.startContainer,"vditor-ir__preview");jt?jt.previousElementSibling.insertAdjacentHTML("beforeend","<wbr>"):I.insertNode(document.createElement("wbr"))}V.querySelectorAll("[style]").forEach(function(So){So.removeAttribute("style")}),V.getAttribute("data-type")==="link-ref-defs-block"&&(V=T.ir.element);var An=V.isEqualNode(T.ir.element),On=(0,A.a1)(V,"data-type","footnotes-block"),xn="";if(An)xn=V.innerHTML;else{var Mn=(0,S.S)(I.startContainer,"BLOCKQUOTE"),Wn=(0,A.O9)(I.startContainer);if(Wn&&(V=Wn),Mn&&(!Wn||Wn&&!Mn.contains(Wn))&&(V=Mn),On&&(V=On),xn=V.outerHTML,V.tagName==="UL"||V.tagName==="OL"){var En=V.previousElementSibling,Fn=V.nextElementSibling;En&&(En.tagName==="UL"||En.tagName==="OL")&&(xn=En.outerHTML+xn,En.remove()),Fn&&(Fn.tagName==="UL"||Fn.tagName==="OL")&&(xn=xn+Fn.outerHTML,Fn.remove()),xn=xn.replace("<div><wbr><br></div>","<li><p><wbr><br></p></li>")}else V.previousElementSibling&&V.previousElementSibling.textContent.replace(s.g.ZWSP,"")!==""&&$&&$.inputType==="insertParagraph"&&(xn=V.previousElementSibling.outerHTML+xn,V.previousElementSibling.remove());V.innerText.startsWith("```")||(T.ir.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(So){So&&!V.isEqualNode(So)&&(xn+=So.outerHTML,So.remove())}),T.ir.element.querySelectorAll("[data-type='footnotes-block']").forEach(function(So){So&&!V.isEqualNode(So)&&(xn+=So.outerHTML,So.remove())}))}if(E("SpinVditorIRDOM",xn,"argument",T.options.debugger),xn=T.lute.SpinVditorIRDOM(xn),E("SpinVditorIRDOM",xn,"result",T.options.debugger),An)V.innerHTML=xn;else if(V.outerHTML=xn,On){var rr=(0,A.a1)(T.ir.element.querySelector("wbr"),"data-type","footnotes-def");if(rr){var zr=rr.textContent,Xo=zr.substring(1,zr.indexOf("]:")),ir=T.ir.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'.concat(Xo,'"]'));ir&&ir.setAttribute("aria-label",zr.substr(Xo.length+3).trim().substr(0,24))}}var Ni,Cl=T.ir.element.querySelectorAll("[data-type='link-ref-defs-block']");Cl.forEach(function(So,Ba){Ba===0?Ni=So:(Ni.insertAdjacentHTML("beforeend",So.innerHTML),So.remove())}),Cl.length>0&&T.ir.element.insertAdjacentElement("beforeend",Cl[0]);var ys,xl=T.ir.element.querySelectorAll("[data-type='footnotes-block']");xl.forEach(function(So,Ba){Ba===0?ys=So:(ys.insertAdjacentHTML("beforeend",So.innerHTML),So.remove())}),xl.length>0&&T.ir.element.insertAdjacentElement("beforeend",xl[0]),(0,F.ib)(T.ir.element,I),T.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(So){U(So,T)}),H(T),we(T,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},Z=function(T,I){if(T==="")return!1;if(T.indexOf("⇧")===-1&&T.indexOf("⌘")===-1&&T.indexOf("⌥")===-1)return!(0,f.yl)(I)&&!I.altKey&&!I.shiftKey&&I.code===T;if(T==="⇧Tab")return!!(!(0,f.yl)(I)&&!I.altKey&&I.shiftKey&&I.code==="Tab");var P=T.split("");if(T.startsWith("⌥")){var $=P.length===3?P[2]:P[1];return!!((P.length===3?(0,f.yl)(I):!(0,f.yl)(I))&&I.altKey&&!I.shiftKey&&I.code===(/^[0-9]$/.test($)?"Digit":"Key")+$)}T==="⌘Enter"&&(P=["⌘","Enter"]);var V=P.length>2&&P[0]==="⇧",J=V?P[2]:P[1];return V&&((0,f.vU)()||!/Mac/.test(navigator.platform))&&(J==="-"?J="_":J==="="&&(J="+")),!!((0,f.yl)(I)&&I.key.toLowerCase()===J.toLowerCase()&&!I.altKey&&(!V&&!I.shiftKey||V&&I.shiftKey))},le=function(T){var I=T.startContainer;if(I.nodeType===3&&I.nodeValue.length!==T.startOffset)return!1;for(var P=I.nextSibling;P&&P.textContent==="";)P=P.nextSibling;if(P){if(P&&P.nodeType!==3&&P.classList.contains("vditor-ir__node")&&!P.getAttribute("data-block"))return P}else{var $=(0,A.fb)(I,"vditor-ir__marker");if($&&!$.nextSibling){var V=I.parentElement.parentElement.nextSibling;if(V&&V.nodeType!==3&&V.classList.contains("vditor-ir__node"))return V}return!1}return!1},ve=function(T){var I=T.startContainer,P=I.previousSibling;return I.nodeType===3&&T.startOffset===0&&P&&P.nodeType!==3&&P.classList.contains("vditor-ir__node")&&!P.getAttribute("data-block")?P:!1},Pe=function(T,I){I.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach(function(Te){Te.classList.remove("vditor-ir__node--expand")});var P=(0,A.JQ)(T.startContainer,"vditor-ir__node"),$=!T.collapsed&&(0,A.JQ)(T.endContainer,"vditor-ir__node");if(!(!T.collapsed&&(!P||P!==$))){P&&(P.classList.add("vditor-ir__node--expand"),P.classList.remove("vditor-ir__node--hidden"),(0,F.Hc)(T));var V=le(T);if(V){V.classList.add("vditor-ir__node--expand"),V.classList.remove("vditor-ir__node--hidden");return}var J=ve(T);if(J){J.classList.add("vditor-ir__node--expand"),J.classList.remove("vditor-ir__node--hidden");return}}},Ae=function(T,I){if(T.ir.composingLock=I.isComposing,I.isComposing)return!1;I.key.indexOf("Arrow")===-1&&I.key!=="Meta"&&I.key!=="Control"&&I.key!=="Alt"&&I.key!=="Shift"&&I.key!=="CapsLock"&&I.key!=="Escape"&&!/^F\d{1,2}$/.test(I.key)&&T.undo.recordFirstPosition(T,I);var P=(0,F.zh)(T),$=P.startContainer;if(!to(I,T,$)||(pr(P,T,I),Kn(P),I.key!=="Enter"&&I.key!=="Tab"&&I.key!=="Backspace"&&I.key.indexOf("Arrow")===-1&&!(0,f.yl)(I)&&I.key!=="Escape"&&I.key!=="Delete"))return!1;var V=(0,A.a1)($,"data-newline","1");if(!(0,f.yl)(I)&&!I.altKey&&!I.shiftKey&&I.key==="Enter"&&V&&P.startOffset<V.textContent.length){var J=V.previousElementSibling;J&&(P.insertNode(document.createTextNode(J.textContent)),P.collapse(!1));var Te=V.nextSibling;Te&&(P.insertNode(document.createTextNode(Te.textContent)),P.collapse(!0))}var Xe=(0,A.lG)($,"P");if(Qe(I,T,Xe,P)||Mi(P,T,Xe,I)||fn(T,P,I,Xe))return!0;var st=(0,A.fb)($,"vditor-ir__marker--pre");if(st&&st.tagName==="PRE"){var Ke=st.firstChild;if(ln(T,I,st,P)||(Ke.getAttribute("data-type")==="math-block"||Ke.getAttribute("data-type")==="html-block")&&xi(T,I,P,Ke,st.parentElement)||Ci(T,I,P,Ke,st.parentElement))return!0}var bt=(0,A.a1)($,"data-type","code-block-info");if(bt){if(I.key==="Enter"||I.key==="Tab")return P.selectNodeContents(bt.nextElementSibling.firstChild),P.collapse(!0),I.preventDefault(),b(T,["hint"]),!0;if(I.key==="Backspace"){var jt=(0,F.im)(bt,T.ir.element).start;jt===1&&P.setStart($,0),jt===2&&(T.hint.recentLanguage="")}if(xi(T,I,P,bt,bt.parentElement))return b(T,["hint"]),!0}var An=(0,A.lG)($,"TD")||(0,A.lG)($,"TH");if(I.key.indexOf("Arrow")>-1&&An){var On=Wi(An);if(On&&xi(T,I,P,An,On))return!0;var xn=va(An);if(xn&&Ci(T,I,P,An,xn))return!0}if(Ot(T,I,P)||Cn(T,P,I)||xa(T,P,I))return!0;var Mn=(0,S.W)($);if(Mn){if(Z("⌘=",I)){var Wn=Mn.querySelector(".vditor-ir__marker--heading");return Wn&&Wn.textContent.trim().length>1&&ae(T,Wn.textContent.substr(1)),I.preventDefault(),!0}if(Z("⌘-",I)){var Wn=Mn.querySelector(".vditor-ir__marker--heading");return Wn&&Wn.textContent.trim().length<6&&ae(T,Wn.textContent.trim()+"# "),I.preventDefault(),!0}}var En=(0,A.F9)($);if(I.key==="Backspace"&&!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey&&P.toString()===""){if(sr(T,P,I,Xe))return!0;if(En&&En.previousElementSibling&&En.tagName!=="UL"&&En.tagName!=="OL"&&(En.previousElementSibling.getAttribute("data-type")==="code-block"||En.previousElementSibling.getAttribute("data-type")==="math-block")){var Fn=(0,F.im)(En,T.ir.element,P).start;if(Fn===0||Fn===1&&En.innerText.startsWith(s.g.ZWSP))return P.selectNodeContents(En.previousElementSibling.querySelector(".vditor-ir__marker--pre code")),P.collapse(!1),Pe(P,T),En.textContent.trim().replace(s.g.ZWSP,"")===""&&(En.remove(),we(T)),I.preventDefault(),!0}if(Mn){var rr=Mn.firstElementChild.textContent.length;(0,F.im)(Mn,T.ir.element).start===rr&&rr!==0&&(P.setStart(Mn.firstElementChild.firstChild,rr-1),P.collapse(!0),(0,F.Hc)(P))}}return(I.key==="ArrowUp"||I.key==="ArrowDown")&&En&&(En.querySelectorAll(".vditor-ir__node").forEach(function(zr){zr.contains($)||zr.classList.add("vditor-ir__node--hidden")}),Tr(I,En,P))?!0:(Po(P,I.key),En&&X(En,T,I,P)?(I.preventDefault(),!0):!1)},he=o(190),Ee=function(T,I){T.querySelectorAll("[data-type=footnotes-link]").forEach(function(P){for(var $=P.parentElement,V=$.nextSibling;V&&V.textContent.startsWith(" ");){var J=V;J.childNodes.forEach(function(Te){$.append(Te.cloneNode(!0))}),V=V.nextSibling,J.remove()}I&&I($)})},Q=function(T,I){var P,$=getSelection().getRangeAt(0).cloneRange(),V=$.startContainer;$.startContainer.nodeType!==3&&$.startContainer.tagName==="DIV"&&(V=$.startContainer.childNodes[$.startOffset-1]);var J=(0,A.a1)(V,"data-block","0");if(J&&I&&(I.inputType==="deleteContentBackward"||I.data===" ")){for(var Te=(0,F.im)(J,T.sv.element,$).start,Xe=!0,st=Te-1;st>J.textContent.substr(0,Te).lastIndexOf(`
- `);st--)if(J.textContent.charAt(st)!==" "&&J.textContent.charAt(st)!==" "){Xe=!1;break}if(Te===0&&(Xe=!1),Xe){Xt(T);return}if(I.inputType==="deleteContentBackward"){var Ke=(0,A.a1)(V,"data-type","code-block-open-marker")||(0,A.a1)(V,"data-type","code-block-close-marker");if(Ke){if(Ke.getAttribute("data-type")==="code-block-close-marker"){var bt=At(V,"code-block-open-marker");if(bt){bt.textContent=Ke.textContent,Xt(T);return}}if(Ke.getAttribute("data-type")==="code-block-open-marker"){var bt=At(V,"code-block-close-marker",!1);if(bt){bt.textContent=Ke.textContent,Xt(T);return}}}var jt=(0,A.a1)(V,"data-type","math-block-open-marker");if(jt){var An=jt.nextElementSibling.nextElementSibling;An&&An.getAttribute("data-type")==="math-block-close-marker"&&(An.remove(),Xt(T));return}J.querySelectorAll('[data-type="code-block-open-marker"]').forEach(function(En){En.textContent.length===1&&En.remove()}),J.querySelectorAll('[data-type="code-block-close-marker"]').forEach(function(En){En.textContent.length===1&&En.remove()});var On=(0,A.a1)(V,"data-type","heading-marker");if(On&&On.textContent.indexOf("#")===-1){Xt(T);return}}if((I.data===" "||I.inputType==="deleteContentBackward")&&((0,A.a1)(V,"data-type","padding")||(0,A.a1)(V,"data-type","li-marker")||(0,A.a1)(V,"data-type","task-marker")||(0,A.a1)(V,"data-type","blockquote-marker"))){Xt(T);return}}if(J&&J.textContent.trimRight()==="$$"){Xt(T);return}J||(J=T.sv.element),((P=J.firstElementChild)===null||P===void 0?void 0:P.getAttribute("data-type"))==="link-ref-defs-block"&&(J=T.sv.element),(0,A.a1)(V,"data-type","footnotes-link")&&(J=T.sv.element),J.textContent.indexOf(Lute.Caret)===-1&&$.insertNode(document.createTextNode(Lute.Caret)),J.querySelectorAll("[style]").forEach(function(En){En.removeAttribute("style")}),J.querySelectorAll("font").forEach(function(En){En.outerHTML=En.innerHTML});var xn=J.textContent,Mn=J.isEqualNode(T.sv.element);if(Mn)xn=J.textContent;else{J.previousElementSibling&&(xn=J.previousElementSibling.textContent+xn,J.previousElementSibling.remove()),J.previousElementSibling&&xn.indexOf(`---
- `)===0&&(xn=J.previousElementSibling.textContent+xn,J.previousElementSibling.remove());var Wn="";T.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(En,Fn){En&&!J.isEqualNode(En.parentElement)&&(Wn+=En.parentElement.textContent+`
- `,En.parentElement.remove())}),T.sv.element.querySelectorAll("[data-type='footnotes-link']").forEach(function(En,Fn){En&&!J.isEqualNode(En.parentElement)&&(Wn+=En.parentElement.textContent+`
- `,En.parentElement.remove())}),xn=Wn+xn}xn=tn(xn,T),Mn?J.innerHTML=xn:J.outerHTML=xn,T.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(En){T.sv.element.insertAdjacentElement("beforeend",En.parentElement)}),Ee(T.sv.element,function(En){T.sv.element.insertAdjacentElement("beforeend",En)}),(0,F.ib)(T.sv.element,$),Bn(T),Xt(T,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},me=function(T,I){var P,$,V,J,Te;if(T.sv.composingLock=I.isComposing,I.isComposing||(I.key.indexOf("Arrow")===-1&&I.key!=="Meta"&&I.key!=="Control"&&I.key!=="Alt"&&I.key!=="Shift"&&I.key!=="CapsLock"&&I.key!=="Escape"&&!/^F\d{1,2}$/.test(I.key)&&T.undo.recordFirstPosition(T,I),I.key!=="Enter"&&I.key!=="Tab"&&I.key!=="Backspace"&&I.key.indexOf("Arrow")===-1&&!(0,f.yl)(I)&&I.key!=="Escape"))return!1;var Xe=(0,F.zh)(T),st=Xe.startContainer;Xe.startContainer.nodeType!==3&&Xe.startContainer.tagName==="DIV"&&(st=Xe.startContainer.childNodes[Xe.startOffset-1]);var Ke=(0,A.a1)(st,"data-type","text"),bt=(0,A.a1)(st,"data-type","blockquote-marker");if(!bt&&Xe.startOffset===0&&Ke&&Ke.previousElementSibling&&Ke.previousElementSibling.getAttribute("data-type")==="blockquote-marker"&&(bt=Ke.previousElementSibling),bt&&I.key==="Enter"&&!(0,f.yl)(I)&&!I.altKey&&bt.nextElementSibling.textContent.trim()===""&&(0,F.im)(bt,T.sv.element,Xe).start===bt.textContent.length)return((P=bt.previousElementSibling)===null||P===void 0?void 0:P.getAttribute("data-type"))==="padding"&&bt.previousElementSibling.setAttribute("data-action","enter-remove"),bt.remove(),Xt(T),I.preventDefault(),!0;var jt=(0,A.a1)(st,"data-type","li-marker"),An=(0,A.a1)(st,"data-type","task-marker"),On=jt;if(On||An&&An.nextElementSibling.getAttribute("data-type")!=="task-marker"&&(On=An),!On&&Xe.startOffset===0&&Ke&&Ke.previousElementSibling&&(Ke.previousElementSibling.getAttribute("data-type")==="li-marker"||Ke.previousElementSibling.getAttribute("data-type")==="task-marker")&&(On=Ke.previousElementSibling),On){var xn=(0,F.im)(On,T.sv.element,Xe).start,Mn=On.getAttribute("data-type")==="task-marker",Wn=On;if(Mn&&(Wn=On.previousElementSibling.previousElementSibling.previousElementSibling),xn===On.textContent.length){if(I.key==="Enter"&&!(0,f.yl)(I)&&!I.altKey&&!I.shiftKey&&On.nextElementSibling.textContent.trim()==="")return(($=Wn.previousElementSibling)===null||$===void 0?void 0:$.getAttribute("data-type"))==="padding"?(Wn.previousElementSibling.remove(),Q(T)):(Mn&&(Wn.remove(),On.previousElementSibling.previousElementSibling.remove(),On.previousElementSibling.remove()),On.nextElementSibling.remove(),On.remove(),Xt(T)),I.preventDefault(),!0;if(I.key==="Tab")return I.shiftKey?Wn.previousElementSibling.getAttribute("data-type")==="padding"&&Wn.previousElementSibling.remove():Wn.insertAdjacentHTML("beforebegin",'<span data-type="padding">'.concat(Wn.textContent.replace(/\S/g," "),"</span>")),/^\d/.test(Wn.textContent)&&(Wn.textContent=Wn.textContent.replace(/^\d{1,}/,"1"),Xe.selectNodeContents(On.firstChild),Xe.collapse(!1)),Q(T),I.preventDefault(),!0}}if(xa(T,Xe,I))return!0;var En=(0,A.a1)(st,"data-block","0"),Fn=(0,S.S)(st,"SPAN");if(I.key==="Enter"&&!(0,f.yl)(I)&&!I.altKey&&!I.shiftKey&&En){var rr=!1,zr=En.textContent.match(/^\n+/);(0,F.im)(En,T.sv.element).start<=(zr?zr[0].length:0)&&(rr=!0);var Xo=`
- `;if(Fn){if(((V=Fn.previousElementSibling)===null||V===void 0?void 0:V.getAttribute("data-action"))==="enter-remove")return Fn.previousElementSibling.remove(),Xt(T),I.preventDefault(),!0;Xo+=Ct(Fn)}return Xe.insertNode(document.createTextNode(Xo)),Xe.collapse(!1),En&&En.textContent.trim()!==""&&!rr?Q(T):Xt(T),I.preventDefault(),!0}if(I.key==="Backspace"&&!(0,f.yl)(I)&&!I.altKey&&!I.shiftKey){if(Fn&&((J=Fn.previousElementSibling)===null||J===void 0?void 0:J.getAttribute("data-type"))==="newline"&&(0,F.im)(Fn,T.sv.element,Xe).start===1&&Fn.getAttribute("data-type").indexOf("code-block-")===-1)return Xe.setStart(Fn,0),Xe.extractContents(),Fn.textContent.trim()!==""?Q(T):Xt(T),I.preventDefault(),!0;if(En&&(0,F.im)(En,T.sv.element,Xe).start===0&&En.previousElementSibling){Xe.extractContents();var ir=En.previousElementSibling.lastElementChild;return ir.getAttribute("data-type")==="newline"&&(ir.remove(),ir=En.previousElementSibling.lastElementChild),ir.getAttribute("data-type")!=="newline"&&(ir.insertAdjacentHTML("afterend",En.innerHTML),En.remove()),En.textContent.trim()!==""&&!(!((Te=En.previousElementSibling)===null||Te===void 0)&&Te.querySelector('[data-type="code-block-open-marker"]'))?Q(T):(ir.getAttribute("data-type")!=="newline"&&(Xe.selectNodeContents(ir.lastChild),Xe.collapse(!1)),Xt(T)),I.preventDefault(),!0}}return!1},De=o(538),pe=function(T){T.options.theme==="dark"?T.element.classList.add("vditor--dark"):T.element.classList.remove("vditor--dark")},ie=function(T){T.element.innerHTML="",T.element.classList.add("vditor"),T.options.rtl&&T.element.setAttribute("dir","rtl"),pe(T),(0,De.Z)(T.options.preview.theme.current,T.options.preview.theme.path),typeof T.options.height=="number"?T.element.style.height=T.options.height+"px":T.element.style.height=T.options.height,typeof T.options.minHeight=="number"&&(T.element.style.minHeight=T.options.minHeight+"px"),typeof T.options.width=="number"?T.element.style.width=T.options.width+"px":T.element.style.width=T.options.width,T.element.appendChild(T.toolbar.element);var I=document.createElement("div");if(I.className="vditor-content",T.options.outline.position==="left"&&I.appendChild(T.outline.element),I.appendChild(T.wysiwyg.element.parentElement),I.appendChild(T.sv.element),I.appendChild(T.ir.element.parentElement),I.appendChild(T.preview.element),T.toolbar.elements.devtools&&I.appendChild(T.devtools.element),T.options.outline.position==="right"&&(T.outline.element.classList.add("vditor-outline--right"),I.appendChild(T.outline.element)),T.upload&&I.appendChild(T.upload.element),T.options.resize.enable&&I.appendChild(T.resize.element),I.appendChild(T.hint.element),I.appendChild(T.tip.element),T.element.appendChild(I),I.addEventListener("click",function(){b(T,["subToolbar"])}),T.toolbar.elements.export&&T.element.insertAdjacentHTML("beforeend",'<iframe id="vditorExportIframe" style="width: 100%;height: 0;border: 0"></iframe>'),vn(T,T.options.mode,ze(T)),document.execCommand("DefaultParagraphSeparator",!1,"p"),navigator.userAgent.indexOf("iPhone")>-1&&typeof window.visualViewport<"u"){var P=!1,$=function(V){P||(P=!0,requestAnimationFrame(function(){P=!1;var J=T.toolbar.element;J.style.transform="none",J.getBoundingClientRect().top<0&&(J.style.transform="translate(0, ".concat(-J.getBoundingClientRect().top,"px)"))}))};window.visualViewport.addEventListener("scroll",$),window.visualViewport.addEventListener("resize",$)}},ue=function(T){var I=window.innerWidth<=s.g.MOBILE_WIDTH?10:35;if(T.wysiwyg.element.parentElement.style.display!=="none"){var P=(T.wysiwyg.element.parentElement.clientWidth-T.options.preview.maxWidth)/2;T.wysiwyg.element.style.padding="10px ".concat(Math.max(I,P),"px")}if(T.ir.element.parentElement.style.display!=="none"){var P=(T.ir.element.parentElement.clientWidth-T.options.preview.maxWidth)/2;T.ir.element.style.padding="10px ".concat(Math.max(I,P),"px")}T.preview.element.style.display!=="block"?T.toolbar.element.style.paddingLeft=Math.max(5,parseInt(T[T.currentMode].element.style.paddingLeft||"0",10)+(T.options.outline.position==="left"?T.outline.element.offsetWidth:0))+"px":T.toolbar.element.style.paddingLeft=5+(T.options.outline.position==="left"?T.outline.element.offsetWidth:0)+"px"},Be=function(T){if(T.options.typewriterMode){var I=window.innerHeight;typeof T.options.height=="number"?(I=T.options.height,typeof T.options.minHeight=="number"&&(I=Math.max(I,T.options.minHeight)),I=Math.min(window.innerHeight,I)):I=T.element.clientHeight,T.element.classList.contains("vditor--fullscreen")&&(I=window.innerHeight),T[T.currentMode].element.style.setProperty("--editor-bottom",(I-T.toolbar.element.offsetHeight)/2+"px")}},Me;function Fe(){window.removeEventListener("resize",Me)}var ze=function(T){Be(T),Fe(),window.addEventListener("resize",Me=function(){ue(T),Be(T)});var I=(0,f.pK)()&&localStorage.getItem(T.options.cache.id);return(!T.options.cache.enable||!I)&&(T.options.value?I=T.options.value:T.originalInnerHTML?I=T.lute.HTML2Md(T.originalInnerHTML):T.options.cache.enable||(I="")),I||""},Ne=function(T){clearTimeout(T[T.currentMode].hlToolbarTimeoutId),T[T.currentMode].hlToolbarTimeoutId=window.setTimeout(function(){if(T[T.currentMode].element.getAttribute("contenteditable")!=="false"&&(0,F.Gb)(T[T.currentMode].element)){p(T.toolbar.elements,s.g.EDIT_TOOLBARS),h(T.toolbar.elements,s.g.EDIT_TOOLBARS);var I=(0,F.zh)(T),P=I.startContainer;I.startContainer.nodeType===3&&(P=I.startContainer.parentElement),P.classList.contains("vditor-reset")&&(P=P.childNodes[I.startOffset]);var $=T.currentMode==="sv"?(0,A.a1)(P,"data-type","heading"):(0,S.W)(P);$&&v(T.toolbar.elements,["headings"]);var V=T.currentMode==="sv"?(0,A.a1)(P,"data-type","blockquote"):(0,A.lG)(P,"BLOCKQUOTE");V&&v(T.toolbar.elements,["quote"]);var J=(0,A.a1)(P,"data-type","strong");J&&v(T.toolbar.elements,["bold"]);var Te=(0,A.a1)(P,"data-type","em");Te&&v(T.toolbar.elements,["italic"]);var Xe=(0,A.a1)(P,"data-type","s");Xe&&v(T.toolbar.elements,["strike"]);var st=(0,A.a1)(P,"data-type","a");st&&v(T.toolbar.elements,["link"]);var Ke=(0,A.lG)(P,"LI");Ke?(Ke.classList.contains("vditor-task")?v(T.toolbar.elements,["check"]):Ke.parentElement.tagName==="OL"?v(T.toolbar.elements,["ordered-list"]):Ke.parentElement.tagName==="UL"&&v(T.toolbar.elements,["list"]),h(T.toolbar.elements,["outdent","indent"])):g(T.toolbar.elements,["outdent","indent"]);var bt=(0,A.a1)(P,"data-type","code-block");bt&&(g(T.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),v(T.toolbar.elements,["code"]));var jt=(0,A.a1)(P,"data-type","code");jt&&(g(T.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),v(T.toolbar.elements,["inline-code"]));var An=(0,A.a1)(P,"data-type","table");An&&g(T.toolbar.elements,["headings","list","ordered-list","check","line","quote","code","table"])}},200)},Re=function(T,I){I===void 0&&(I={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),I.enableHint&&T.hint.render(T),clearTimeout(T.wysiwyg.afterRenderTimeoutId),T.wysiwyg.afterRenderTimeoutId=window.setTimeout(function(){if(!T.wysiwyg.composingLock){var P=u(T);typeof T.options.input=="function"&&I.enableInput&&T.options.input(P),T.options.counter.enable&&T.counter.render(T,P),T.options.cache.enable&&(0,f.pK)()&&(localStorage.setItem(T.options.cache.id,P),T.options.cache.after&&T.options.cache.after(P)),T.devtools&&T.devtools.renderEchart(T),I.enableAddUndoStack&&T.undo.addToUndoStack(T)}},T.options.undoDelay)},gt=function(T){for(var I=T.previousSibling;I;){if(I.nodeType!==3&&I.tagName==="A"&&!I.previousSibling&&I.innerHTML.replace(s.g.ZWSP,"")===""&&I.nextSibling)return I;I=I.previousSibling}return!1},Bt=function(T){for(var I=T.startContainer.nextSibling;I&&I.textContent==="";)I=I.nextSibling;return!!(I&&I.nodeType!==3&&(I.tagName==="CODE"||I.getAttribute("data-type")==="math-inline"||I.getAttribute("data-type")==="html-entity"||I.getAttribute("data-type")==="html-inline"))},Lt=function(T){for(var I="",P=T.nextSibling;P;)P.nodeType===3?I+=P.textContent:I+=P.outerHTML,P=P.nextSibling;return I},an=function(T){for(var I="",P=T.previousSibling;P;)P.nodeType===3?I=P.textContent+I:I=P.outerHTML+I,P=P.previousSibling;return I},Kt=function(T){for(var I=T;I&&!I.nextSibling;)I=I.parentElement;return I.nextSibling},Ht=function(T){var I=an(T.startContainer),P=Lt(T.startContainer),$=T.startContainer.textContent,V=T.startOffset,J="",Te="";return($.substr(0,V)!==""&&$.substr(0,V)!==s.g.ZWSP||I)&&(J="".concat(I).concat($.substr(0,V))),($.substr(V)!==""&&$.substr(V)!==s.g.ZWSP||P)&&(Te="".concat($.substr(V)).concat(P)),{afterHTML:Te,beforeHTML:J}},pt=function(T,I){Array.from(T.wysiwyg.element.childNodes).find(function(P){if(P.nodeType===3){var $=document.createElement("p");$.setAttribute("data-block","0"),$.textContent=P.textContent;var V=I.startContainer.nodeType===3?I.startOffset:P.textContent.length;return P.parentNode.insertBefore($,P),P.remove(),I.setStart($.firstChild,Math.min($.firstChild.textContent.length,V)),I.collapse(!0),(0,F.Hc)(I),!0}else if(!P.getAttribute("data-block"))return P.tagName==="P"?P.remove():(P.tagName==="DIV"?(I.insertNode(document.createElement("wbr")),P.outerHTML='<p data-block="0">'.concat(P.innerHTML,"</p>")):P.tagName==="BR"?P.outerHTML='<p data-block="0">'.concat(P.outerHTML,"<wbr></p>"):(I.insertNode(document.createElement("wbr")),P.outerHTML='<p data-block="0">'.concat(P.outerHTML,"</p>")),(0,F.ib)(T.wysiwyg.element,I),I=getSelection().getRangeAt(0)),!0})},Dt=function(T,I){var P=(0,F.zh)(T),$=(0,A.F9)(P.startContainer);$||($=P.startContainer.childNodes[P.startOffset]),!$&&T.wysiwyg.element.children.length===0&&($=T.wysiwyg.element),$&&!$.classList.contains("vditor-wysiwyg__block")&&(P.insertNode(document.createElement("wbr")),$.innerHTML.trim()==="<wbr>"&&($.innerHTML="<wbr><br>"),$.tagName==="BLOCKQUOTE"||$.classList.contains("vditor-reset")?$.innerHTML="<".concat(I,' data-block="0">').concat($.innerHTML.trim(),"</").concat(I,">"):$.outerHTML="<".concat(I,' data-block="0">').concat($.innerHTML.trim(),"</").concat(I,">"),(0,F.ib)(T.wysiwyg.element,P),H(T))},dt=function(T){var I=getSelection().getRangeAt(0),P=(0,A.F9)(I.startContainer);P||(P=I.startContainer.childNodes[I.startOffset]),P&&(I.insertNode(document.createElement("wbr")),P.outerHTML='<p data-block="0">'.concat(P.innerHTML,"</p>"),(0,F.ib)(T.wysiwyg.element,I)),T.wysiwyg.popover.style.display="none"},it=function(T,I,P){P===void 0&&(P=!0);var $=T.previousElementSibling,V=$.ownerDocument.createRange();$.tagName==="CODE"?($.style.display="inline-block",P?V.setStart($.firstChild,1):V.selectNodeContents($)):($.style.display="block",$.firstChild.firstChild||$.firstChild.appendChild(document.createTextNode("")),V.selectNodeContents($.firstChild)),P?V.collapse(!0):V.collapse(!1),(0,F.Hc)(V),!T.firstElementChild.classList.contains("language-mindmap")&&Bn(I)},de=function(T,I){if(T.wysiwyg.composingLock=I.isComposing,I.isComposing)return!1;I.key.indexOf("Arrow")===-1&&I.key!=="Meta"&&I.key!=="Control"&&I.key!=="Alt"&&I.key!=="Shift"&&I.key!=="CapsLock"&&I.key!=="Escape"&&!/^F\d{1,2}$/.test(I.key)&&T.undo.recordFirstPosition(T,I);var P=(0,F.zh)(T),$=P.startContainer;if(!to(I,T,$)||(pr(P,T,I),Kn(P),I.key!=="Enter"&&I.key!=="Tab"&&I.key!=="Backspace"&&I.key.indexOf("Arrow")===-1&&!(0,f.yl)(I)&&I.key!=="Escape"&&I.key!=="Delete"))return!1;var V=(0,A.F9)($),J=(0,A.lG)($,"P");if(Qe(I,T,J,P)||Mi(P,T,J,I)||Ot(T,I,P))return!0;var Te=(0,A.fb)($,"vditor-wysiwyg__block");if(Te){if(I.key==="Escape"&&Te.children.length===2)return T.wysiwyg.popover.style.display="none",Te.firstElementChild.style.display="none",T.wysiwyg.element.blur(),I.preventDefault(),!0;if(!(0,f.yl)(I)&&!I.shiftKey&&I.altKey&&I.key==="Enter"&&Te.getAttribute("data-type")==="code-block"){var Xe=T.wysiwyg.popover.querySelector(".vditor-input");return Xe.focus(),Xe.select(),I.preventDefault(),!0}if(Te.getAttribute("data-block")==="0"&&(ln(T,I,Te.firstElementChild,P)||Ci(T,I,P,Te.firstElementChild,Te)||Te.getAttribute("data-type")!=="yaml-front-matter"&&xi(T,I,P,Te.firstElementChild,Te)))return!0}if(fn(T,P,I,J))return!0;var st=(0,A.E2)($,"BLOCKQUOTE");if(st&&!I.shiftKey&&I.altKey&&I.key==="Enter"){(0,f.yl)(I)?P.setStartBefore(st):P.setStartAfter(st),(0,F.Hc)(P);var Ke=document.createElement("p");return Ke.setAttribute("data-block","0"),Ke.innerHTML=`
- `,P.insertNode(Ke),P.collapse(!0),(0,F.Hc)(P),Re(T),Bn(T),I.preventDefault(),!0}var bt=(0,S.W)($);if(bt){if(bt.tagName==="H6"&&$.textContent.length===P.startOffset&&!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey&&I.key==="Enter"){var jt=document.createElement("p");return jt.textContent=`
- `,jt.setAttribute("data-block","0"),$.parentElement.insertAdjacentElement("afterend",jt),P.setStart(jt,0),(0,F.Hc)(P),Re(T),Bn(T),I.preventDefault(),!0}if(Z("⌘=",I)){var An=parseInt(bt.tagName.substr(1),10)-1;return An>0&&(Dt(T,"h".concat(An)),Re(T)),I.preventDefault(),!0}if(Z("⌘-",I)){var An=parseInt(bt.tagName.substr(1),10)+1;return An<7&&(Dt(T,"h".concat(An)),Re(T)),I.preventDefault(),!0}I.key==="Backspace"&&!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey&&bt.textContent.length===1&&dt(T)}if(Cn(T,P,I))return!0;if(I.altKey&&I.key==="Enter"&&!(0,f.yl)(I)&&!I.shiftKey){var On=(0,A.lG)($,"A"),xn=(0,A.a1)($,"data-type","link-ref"),Mn=(0,A.a1)($,"data-type","footnotes-ref");if(On||xn||Mn||bt&&bt.tagName.length===2){var Wn=T.wysiwyg.popover.querySelector("input");Wn.focus(),Wn.select()}}if(tt(T,I))return!0;if(Z("⇧⌘U",I)){var En=T.wysiwyg.popover.querySelector('[data-type="up"]');if(En)return En.click(),I.preventDefault(),!0}if(Z("⇧⌘D",I)){var En=T.wysiwyg.popover.querySelector('[data-type="down"]');if(En)return En.click(),I.preventDefault(),!0}if(xa(T,P,I))return!0;if(!(0,f.yl)(I)&&I.shiftKey&&!I.altKey&&I.key==="Enter"&&$.parentElement.tagName!=="LI"&&$.parentElement.tagName!=="P")return["STRONG","STRIKE","S","I","EM","B"].includes($.parentElement.tagName)?P.insertNode(document.createTextNode(`
- `+s.g.ZWSP)):P.insertNode(document.createTextNode(`
- `)),P.collapse(!1),(0,F.Hc)(P),Re(T),Bn(T),I.preventDefault(),!0;if(I.key==="Backspace"&&!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey&&P.toString()===""){if(sr(T,P,I,J))return!0;if(V){if(V.previousElementSibling&&V.previousElementSibling.classList.contains("vditor-wysiwyg__block")&&V.previousElementSibling.getAttribute("data-block")==="0"&&V.tagName!=="UL"&&V.tagName!=="OL"){var Fn=(0,F.im)(V,T.wysiwyg.element,P).start;if(Fn===0&&P.startOffset===0||Fn===1&&V.innerText.startsWith(s.g.ZWSP))return it(V.previousElementSibling.lastElementChild,T,!1),V.innerHTML.trim().replace(s.g.ZWSP,"")===""&&(V.remove(),Re(T)),I.preventDefault(),!0}var rr=P.startOffset;if(P.toString()===""&&$.nodeType===3&&$.textContent.charAt(rr-2)===`
- `&&$.textContent.charAt(rr-1)!==s.g.ZWSP&&["STRONG","STRIKE","S","I","EM","B"].includes($.parentElement.tagName))return $.textContent=$.textContent.substring(0,rr-1)+s.g.ZWSP,P.setStart($,rr),P.collapse(!0),Re(T),I.preventDefault(),!0;$.textContent===s.g.ZWSP&&P.startOffset===1&&!$.previousSibling&&Bt(P)&&($.textContent=""),V.querySelectorAll("span.vditor-wysiwyg__block[data-type='math-inline']").forEach(function(Xo){Xo.firstElementChild.style.display="inline",Xo.lastElementChild.style.display="none"}),V.querySelectorAll("span.vditor-wysiwyg__block[data-type='html-entity']").forEach(function(Xo){Xo.firstElementChild.style.display="inline",Xo.lastElementChild.style.display="none"})}}if((0,f.vU)()&&P.startOffset===1&&$.textContent.indexOf(s.g.ZWSP)>-1&&$.previousSibling&&$.previousSibling.nodeType!==3&&$.previousSibling.tagName==="CODE"&&(I.key==="Backspace"||I.key==="ArrowLeft"))return P.selectNodeContents($.previousSibling),P.collapse(!1),I.preventDefault(),!0;if(Tr(I,V,P))return I.preventDefault(),!0;if(Po(P,I.key),I.key==="ArrowDown"){var zr=$.nextSibling;zr&&zr.nodeType!==3&&zr.getAttribute("data-type")==="math-inline"&&P.setStartAfter(zr)}return V&&X(V,T,I,P)?(I.preventDefault(),!0):!1},tt=function(T,I){if(Z("⇧⌘X",I)){var P=T.wysiwyg.popover.querySelector('[data-type="remove"]');return P&&P.click(),I.preventDefault(),!0}},ft=function(T){clearTimeout(T.wysiwyg.hlToolbarTimeoutId),T.wysiwyg.hlToolbarTimeoutId=window.setTimeout(function(){if(T.wysiwyg.element.getAttribute("contenteditable")!=="false"&&(0,F.Gb)(T.wysiwyg.element)){p(T.toolbar.elements,s.g.EDIT_TOOLBARS),h(T.toolbar.elements,s.g.EDIT_TOOLBARS);var I=getSelection().getRangeAt(0),P=I.startContainer;I.startContainer.nodeType===3?P=I.startContainer.parentElement:P=P.childNodes[I.startOffset>=P.childNodes.length?P.childNodes.length-1:I.startOffset];var $=(0,A.a1)(P,"data-type","footnotes-block");if($){T.wysiwyg.popover.innerHTML="",ke($,T),$e(T,"footnotes-block"),Mt(T,$);return}var V=(0,A.lG)(P,"LI");V?(V.classList.contains("vditor-task")?v(T.toolbar.elements,["check"]):V.parentElement.tagName==="OL"?v(T.toolbar.elements,["ordered-list"]):V.parentElement.tagName==="UL"&&v(T.toolbar.elements,["list"]),h(T.toolbar.elements,["outdent","indent"])):g(T.toolbar.elements,["outdent","indent"]),(0,A.lG)(P,"BLOCKQUOTE")&&v(T.toolbar.elements,["quote"]),((0,A.lG)(P,"B")||(0,A.lG)(P,"STRONG"))&&v(T.toolbar.elements,["bold"]),((0,A.lG)(P,"I")||(0,A.lG)(P,"EM"))&&v(T.toolbar.elements,["italic"]),((0,A.lG)(P,"STRIKE")||(0,A.lG)(P,"S"))&&v(T.toolbar.elements,["strike"]),T.wysiwyg.element.querySelectorAll(".vditor-comment--focus").forEach(function(Er){Er.classList.remove("vditor-comment--focus")});var J=(0,A.fb)(P,"vditor-comment");if(J){var Te=J.getAttribute("data-cmtids").split(" ");if(Te.length>1&&J.nextSibling.isSameNode(J.nextElementSibling)){var Xe=J.nextElementSibling.getAttribute("data-cmtids").split(" ");Te.find(function(Er){if(Xe.includes(Er))return Te=[Er],!0})}T.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(Er){Er.getAttribute("data-cmtids").indexOf(Te[0])>-1&&Er.classList.add("vditor-comment--focus")})}var st=(0,A.lG)(P,"A");st&&v(T.toolbar.elements,["link"]);var Ke=(0,A.lG)(P,"TABLE"),bt=(0,S.W)(P);(0,A.lG)(P,"CODE")?(0,A.lG)(P,"PRE")?(g(T.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),v(T.toolbar.elements,["code"])):(g(T.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),v(T.toolbar.elements,["inline-code"])):bt?(g(T.toolbar.elements,["bold"]),v(T.toolbar.elements,["headings"])):Ke&&g(T.toolbar.elements,["table"]);var jt=(0,A.fb)(P,"vditor-toc");if(jt){T.wysiwyg.popover.innerHTML="",ke(jt,T),$e(T,"vditor-toc"),Mt(T,jt);return}var An=(0,S.S)(P,"BLOCKQUOTE");if(An&&(T.wysiwyg.popover.innerHTML="",Nn(I,An,T),We(I,An,T),ke(An,T),$e(T,"blockquote"),Mt(T,An)),V&&(T.wysiwyg.popover.innerHTML="",Nn(I,V,T),We(I,V,T),ke(V,T),$e(T,"li"),Mt(T,V)),Ke){T.options.lang,T.options,T.wysiwyg.popover.innerHTML="";var On=function(){var Er=Ke.rows.length,Lo=Ke.rows[0].cells.length,Ip=parseInt(Ba.value,10)||Er,Op=parseInt(Jl.value,10)||Lo;if(!(Ip===Er&&Lo===Op)){if(Lo!==Op)for(var S2=Op-Lo,od=0;od<Ke.rows.length;od++)if(S2>0)for(var BQ=0;BQ<S2;BQ++)od===0?Ke.rows[od].lastElementChild.insertAdjacentHTML("afterend","<th> </th>"):Ke.rows[od].lastElementChild.insertAdjacentHTML("afterend","<td> </td>");else for(var V9=Lo-1;V9>=Op;V9--)Ke.rows[od].cells[V9].remove();if(Er!==Ip){var LQ=Ip-Er;if(LQ>0){for(var q9="<tr>",Pm=0;Pm<Op;Pm++)q9+="<td> </td>";for(var FQ=0;FQ<LQ;FQ++)Ke.querySelector("tbody")?Ke.querySelector("tbody").insertAdjacentHTML("beforeend",q9):Ke.querySelector("thead").insertAdjacentHTML("afterend",q9+"</tr>")}else for(var Pm=Er-1;Pm>=Ip;Pm--)Ke.rows[Pm].remove(),Ke.rows.length===1&&Ke.querySelector("tbody").remove()}typeof T.options.input=="function"&&T.options.input(u(T))}},xn=function(Er){Si(Ke,Er),Er==="right"?(Fn.classList.remove("vditor-icon--current"),rr.classList.remove("vditor-icon--current"),zr.classList.add("vditor-icon--current")):Er==="center"?(Fn.classList.remove("vditor-icon--current"),zr.classList.remove("vditor-icon--current"),rr.classList.add("vditor-icon--current")):(rr.classList.remove("vditor-icon--current"),zr.classList.remove("vditor-icon--current"),Fn.classList.add("vditor-icon--current")),(0,F.Hc)(I),Re(T)},Mn=(0,A.lG)(P,"TD"),Wn=(0,A.lG)(P,"TH"),En="left";Mn?En=Mn.getAttribute("align")||"left":Wn&&(En=Wn.getAttribute("align")||"center");var Fn=document.createElement("button");Fn.setAttribute("type","button"),Fn.setAttribute("aria-label",window.VditorI18n.alignLeft+"<"+(0,f.ns)("⇧⌘L")+">"),Fn.setAttribute("data-type","left"),Fn.innerHTML='<svg><use xlink:href="#vditor-icon-align-left"></use></svg>',Fn.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+(En==="left"?" vditor-icon--current":""),Fn.onclick=function(){xn("left")};var rr=document.createElement("button");rr.setAttribute("type","button"),rr.setAttribute("aria-label",window.VditorI18n.alignCenter+"<"+(0,f.ns)("⇧⌘C")+">"),rr.setAttribute("data-type","center"),rr.innerHTML='<svg><use xlink:href="#vditor-icon-align-center"></use></svg>',rr.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+(En==="center"?" vditor-icon--current":""),rr.onclick=function(){xn("center")};var zr=document.createElement("button");zr.setAttribute("type","button"),zr.setAttribute("aria-label",window.VditorI18n.alignRight+"<"+(0,f.ns)("⇧⌘R")+">"),zr.setAttribute("data-type","right"),zr.innerHTML='<svg><use xlink:href="#vditor-icon-align-right"></use></svg>',zr.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+(En==="right"?" vditor-icon--current":""),zr.onclick=function(){xn("right")};var Xo=document.createElement("button");Xo.setAttribute("type","button"),Xo.setAttribute("aria-label",window.VditorI18n.insertRowBelow+"<"+(0,f.ns)("⌘=")+">"),Xo.setAttribute("data-type","insertRow"),Xo.innerHTML='<svg><use xlink:href="#vditor-icon-insert-row"></use></svg>',Xo.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",Xo.onclick=function(){var Er=getSelection().getRangeAt(0).startContainer,Lo=(0,A.lG)(Er,"TD")||(0,A.lG)(Er,"TH");Lo&&Ve(T,I,Lo)};var ir=document.createElement("button");ir.setAttribute("type","button"),ir.setAttribute("aria-label",window.VditorI18n.insertRowAbove+"<"+(0,f.ns)("⇧⌘F")+">"),ir.setAttribute("data-type","insertRow"),ir.innerHTML='<svg><use xlink:href="#vditor-icon-insert-rowb"></use></svg>',ir.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",ir.onclick=function(){var Er=getSelection().getRangeAt(0).startContainer,Lo=(0,A.lG)(Er,"TD")||(0,A.lG)(Er,"TH");Lo&&ne(T,I,Lo)};var Ni=document.createElement("button");Ni.setAttribute("type","button"),Ni.setAttribute("aria-label",window.VditorI18n.insertColumnRight+"<"+(0,f.ns)("⇧⌘=")+">"),Ni.setAttribute("data-type","insertColumn"),Ni.innerHTML='<svg><use xlink:href="#vditor-icon-insert-column"></use></svg>',Ni.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",Ni.onclick=function(){var Er=getSelection().getRangeAt(0).startContainer,Lo=(0,A.lG)(Er,"TD")||(0,A.lG)(Er,"TH");Lo&&Oe(T,Ke,Lo)};var Cl=document.createElement("button");Cl.setAttribute("type","button"),Cl.setAttribute("aria-label",window.VditorI18n.insertColumnLeft+"<"+(0,f.ns)("⇧⌘G")+">"),Cl.setAttribute("data-type","insertColumn"),Cl.innerHTML='<svg><use xlink:href="#vditor-icon-insert-columnb"></use></svg>',Cl.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",Cl.onclick=function(){var Er=getSelection().getRangeAt(0).startContainer,Lo=(0,A.lG)(Er,"TD")||(0,A.lG)(Er,"TH");Lo&&Oe(T,Ke,Lo,"beforebegin")};var ys=document.createElement("button");ys.setAttribute("type","button"),ys.setAttribute("aria-label",window.VditorI18n["delete-row"]+"<"+(0,f.ns)("⌘-")+">"),ys.setAttribute("data-type","deleteRow"),ys.innerHTML='<svg><use xlink:href="#vditor-icon-delete-row"></use></svg>',ys.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",ys.onclick=function(){var Er=getSelection().getRangeAt(0).startContainer,Lo=(0,A.lG)(Er,"TD")||(0,A.lG)(Er,"TH");Lo&&Ge(T,I,Lo)};var xl=document.createElement("button");xl.setAttribute("type","button"),xl.setAttribute("aria-label",window.VditorI18n["delete-column"]+"<"+(0,f.ns)("⇧⌘-")+">"),xl.setAttribute("data-type","deleteColumn"),xl.innerHTML='<svg><use xlink:href="#vditor-icon-delete-column"></use></svg>',xl.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",xl.onclick=function(){var Er=getSelection().getRangeAt(0).startContainer,Lo=(0,A.lG)(Er,"TD")||(0,A.lG)(Er,"TH");Lo&&$t(T,I,Ke,Lo)};var So=document.createElement("span");So.setAttribute("aria-label",window.VditorI18n.row),So.className="vditor-tooltipped vditor-tooltipped__n";var Ba=document.createElement("input");So.appendChild(Ba),Ba.type="number",Ba.min="1",Ba.className="vditor-input",Ba.style.width="42px",Ba.style.textAlign="center",Ba.setAttribute("placeholder",window.VditorI18n.row),Ba.value=Ke.rows.length.toString(),Ba.oninput=function(){On()},Ba.onkeydown=function(Er){if(!Er.isComposing){if(Er.key==="Tab"){Jl.focus(),Jl.select(),Er.preventDefault();return}tt(T,Er)||qe(Er,I)}};var sx=document.createElement("span");sx.setAttribute("aria-label",window.VditorI18n.column),sx.className="vditor-tooltipped vditor-tooltipped__n";var Jl=document.createElement("input");sx.appendChild(Jl),Jl.type="number",Jl.min="1",Jl.className="vditor-input",Jl.style.width="42px",Jl.style.textAlign="center",Jl.setAttribute("placeholder",window.VditorI18n.column),Jl.value=Ke.rows[0].cells.length.toString(),Jl.oninput=function(){On()},Jl.onkeydown=function(Er){if(!Er.isComposing){if(Er.key==="Tab"){Ba.focus(),Ba.select(),Er.preventDefault();return}tt(T,Er)||qe(Er,I)}},Nn(I,Ke,T),We(I,Ke,T),ke(Ke,T),T.wysiwyg.popover.insertAdjacentElement("beforeend",Fn),T.wysiwyg.popover.insertAdjacentElement("beforeend",rr),T.wysiwyg.popover.insertAdjacentElement("beforeend",zr),T.wysiwyg.popover.insertAdjacentElement("beforeend",ir),T.wysiwyg.popover.insertAdjacentElement("beforeend",Xo),T.wysiwyg.popover.insertAdjacentElement("beforeend",Cl),T.wysiwyg.popover.insertAdjacentElement("beforeend",Ni),T.wysiwyg.popover.insertAdjacentElement("beforeend",ys),T.wysiwyg.popover.insertAdjacentElement("beforeend",xl),T.wysiwyg.popover.insertAdjacentElement("beforeend",So),T.wysiwyg.popover.insertAdjacentHTML("beforeend"," x "),T.wysiwyg.popover.insertAdjacentElement("beforeend",sx),$e(T,"table"),Mt(T,Ke)}var W9=(0,A.a1)(P,"data-type","link-ref");W9&&Tn(T,W9,I);var Om=(0,A.a1)(P,"data-type","footnotes-ref");if(Om){T.options.lang,T.options,T.wysiwyg.popover.innerHTML="";var So=document.createElement("span");So.setAttribute("aria-label",window.VditorI18n.footnoteRef+"<"+(0,f.ns)("⌥Enter")+">"),So.className="vditor-tooltipped vditor-tooltipped__n";var cf=document.createElement("input");So.appendChild(cf),cf.className="vditor-input",cf.setAttribute("placeholder",window.VditorI18n.footnoteRef+"<"+(0,f.ns)("⌥Enter")+">"),cf.style.width="120px",cf.value=Om.getAttribute("data-footnotes-label"),cf.oninput=function(){cf.value.trim()!==""&&Om.setAttribute("data-footnotes-label",cf.value),typeof T.options.input=="function"&&T.options.input(u(T))},cf.onkeydown=function(Lo){Lo.isComposing||tt(T,Lo)||qe(Lo,I)},ke(Om,T),T.wysiwyg.popover.insertAdjacentElement("beforeend",So),$e(T,"footnotes-ref"),Mt(T,Om)}var as=(0,A.fb)(P,"vditor-wysiwyg__block"),NQ=as?as.getAttribute("data-type").indexOf("block")>-1:!1;if(T.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview").forEach(function(Er){if(!as||as&&NQ&&!as.contains(Er)){var Lo=Er.previousElementSibling;Lo.style.display="none"}}),as&&NQ){if(T.wysiwyg.popover.innerHTML="",Nn(I,as,T),We(I,as,T),ke(as,T),as.getAttribute("data-type")==="code-block"){var lx=document.createElement("span");lx.setAttribute("aria-label",window.VditorI18n.language+"<"+(0,f.ns)("⌥Enter")+">"),lx.className="vditor-tooltipped vditor-tooltipped__n";var hc=document.createElement("input");lx.appendChild(hc);var x2=as.firstElementChild.firstElementChild;hc.className="vditor-input",hc.setAttribute("placeholder",window.VditorI18n.language+"<"+(0,f.ns)("⌥Enter")+">"),hc.value=x2.className.indexOf("language-")>-1?x2.className.split("-")[1].split(" ")[0]:"",hc.oninput=function(Er){hc.value.trim()!==""?x2.className="language-".concat(hc.value):(x2.className="",T.hint.recentLanguage=""),as.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(as.lastElementChild.innerHTML=as.firstElementChild.innerHTML,U(as.lastElementChild,T)),Re(T),Er.detail===1&&(I.setStart(x2.firstChild,0),I.collapse(!0),(0,F.Hc)(I))},hc.onkeydown=function(Er){if(!Er.isComposing&&!tt(T,Er)){if(Er.key==="Escape"&&T.hint.element.style.display==="block"){T.hint.element.style.display="none",Er.preventDefault();return}T.hint.select(Er,T),qe(Er,I)}},hc.onkeyup=function(Er){var Lo,Ip;if(!(Er.isComposing||Er.key==="Enter"||Er.key==="ArrowUp"||Er.key==="Escape"||Er.key==="ArrowDown")){var Op=[],S2=hc.value.substring(0,hc.selectionStart);(T.options.preview.hljs.langs||s.g.ALIAS_CODE_LANGUAGES.concat(((Ip=(Lo=window.hljs)===null||Lo===void 0?void 0:Lo.listLanguages())!==null&&Ip!==void 0?Ip:[]).sort())).forEach(function(od){od.indexOf(S2.toLowerCase())>-1&&Op.push({html:od,value:od})}),T.hint.genHTML(Op,S2,T),Er.preventDefault()}},T.wysiwyg.popover.insertAdjacentElement("beforeend",lx),$e(T,"code-block")}else $e(T,"block");Mt(T,as)}else as=void 0;if(bt){T.wysiwyg.popover.innerHTML="";var So=document.createElement("span");So.setAttribute("aria-label","ID<"+(0,f.ns)("⌥Enter")+">"),So.className="vditor-tooltipped vditor-tooltipped__n";var Dp=document.createElement("input");So.appendChild(Dp),Dp.className="vditor-input",Dp.setAttribute("placeholder","ID<"+(0,f.ns)("⌥Enter")+">"),Dp.style.width="120px",Dp.value=bt.getAttribute("data-id")||"",Dp.oninput=function(){bt.setAttribute("data-id",Dp.value),typeof T.options.input=="function"&&T.options.input(u(T))},Dp.onkeydown=function(Lo){Lo.isComposing||tt(T,Lo)||qe(Lo,I)},Nn(I,bt,T),We(I,bt,T),ke(bt,T),T.wysiwyg.popover.insertAdjacentElement("beforeend",So),$e(T,"heading"),Mt(T,bt)}if(st&&fe(T,st,I),!An&&!V&&!Ke&&!as&&!st&&!W9&&!Om&&!bt&&!jt){var Mm=(0,A.a1)(P,"data-block","0");Mm&&Mm.parentElement.isEqualNode(T.wysiwyg.element)?(T.wysiwyg.popover.innerHTML="",Nn(I,Mm,T),We(I,Mm,T),ke(Mm,T),$e(T,"block"),Mt(T,Mm)):T.wysiwyg.popover.style.display="none"}T.wysiwyg.element.querySelectorAll('span[data-type="backslash"] > span').forEach(function(Er){Er.style.display="none"});var RQ=(0,A.a1)(I.startContainer,"data-type","backslash");RQ&&(RQ.querySelector("span").style.display="inline")}},200)},Mt=function(T,I){var P=I,$=(0,A.lG)(I,"TABLE");$&&(P=$),T.wysiwyg.popover.style.left="0",T.wysiwyg.popover.style.display="block",T.wysiwyg.popover.style.top=Math.max(-8,P.offsetTop-21-T.wysiwyg.element.scrollTop)+"px",T.wysiwyg.popover.style.left=Math.min(P.offsetLeft,T.wysiwyg.element.clientWidth-T.wysiwyg.popover.clientWidth)+"px",T.wysiwyg.popover.setAttribute("data-top",(P.offsetTop-21).toString())},Tn=function(T,I,P){P===void 0&&(P=getSelection().getRangeAt(0)),T.wysiwyg.popover.innerHTML="";var $=function(){J.value.trim()!==""&&(I.tagName==="IMG"?I.setAttribute("alt",J.value):I.textContent=J.value),Xe.value.trim()!==""&&I.setAttribute("data-link-label",Xe.value),typeof T.options.input=="function"&&T.options.input(u(T))},V=document.createElement("span");V.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),V.className="vditor-tooltipped vditor-tooltipped__n";var J=document.createElement("input");V.appendChild(J),J.className="vditor-input",J.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),J.style.width="120px",J.value=I.getAttribute("alt")||I.textContent,J.oninput=function(){$()},J.onkeydown=function(st){tt(T,st)||qe(st,P)||be(T,I,st,Xe)};var Te=document.createElement("span");Te.setAttribute("aria-label",window.VditorI18n.linkRef),Te.className="vditor-tooltipped vditor-tooltipped__n";var Xe=document.createElement("input");Te.appendChild(Xe),Xe.className="vditor-input",Xe.setAttribute("placeholder",window.VditorI18n.linkRef),Xe.value=I.getAttribute("data-link-label"),Xe.oninput=function(){$()},Xe.onkeydown=function(st){tt(T,st)||qe(st,P)||be(T,I,st,J)},ke(I,T),T.wysiwyg.popover.insertAdjacentElement("beforeend",V),T.wysiwyg.popover.insertAdjacentElement("beforeend",Te),$e(T,"link-ref"),Mt(T,I)},Nn=function(T,I,P){var $=I.previousElementSibling;if(!(!$||!I.parentElement.isEqualNode(P.wysiwyg.element)&&I.tagName!=="LI")){var V=document.createElement("button");V.setAttribute("type","button"),V.setAttribute("data-type","up"),V.setAttribute("aria-label",window.VditorI18n.up+"<"+(0,f.ns)("⇧⌘U")+">"),V.innerHTML='<svg><use xlink:href="#vditor-icon-up"></use></svg>',V.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",V.onclick=function(){T.insertNode(document.createElement("wbr")),$.insertAdjacentElement("beforebegin",I),(0,F.ib)(P.wysiwyg.element,T),Re(P),ft(P),Bn(P)},P.wysiwyg.popover.insertAdjacentElement("beforeend",V)}},We=function(T,I,P){var $=I.nextElementSibling;if(!(!$||!I.parentElement.isEqualNode(P.wysiwyg.element)&&I.tagName!=="LI")){var V=document.createElement("button");V.setAttribute("type","button"),V.setAttribute("data-type","down"),V.setAttribute("aria-label",window.VditorI18n.down+"<"+(0,f.ns)("⇧⌘D")+">"),V.innerHTML='<svg><use xlink:href="#vditor-icon-down"></use></svg>',V.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",V.onclick=function(){T.insertNode(document.createElement("wbr")),$.insertAdjacentElement("afterend",I),(0,F.ib)(P.wysiwyg.element,T),Re(P),ft(P),Bn(P)},P.wysiwyg.popover.insertAdjacentElement("beforeend",V)}},ke=function(T,I){var P=document.createElement("button");P.setAttribute("type","button"),P.setAttribute("data-type","remove"),P.setAttribute("aria-label",window.VditorI18n.remove+"<"+(0,f.ns)("⇧⌘X")+">"),P.innerHTML='<svg><use xlink:href="#vditor-icon-trashcan"></use></svg>',P.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",P.onclick=function(){var $=(0,F.zh)(I);$.setStartAfter(T),(0,F.Hc)($),T.remove(),Re(I),ft(I),["H1","H2","H3","H4","H5","H6"].includes(T.tagName)&&H(I)},I.wysiwyg.popover.insertAdjacentElement("beforeend",P)},be=function(T,I,P,$){if(!P.isComposing){if(P.key==="Tab"){$.focus(),$.select(),P.preventDefault();return}if(!(0,f.yl)(P)&&!P.shiftKey&&P.altKey&&P.key==="Enter"){var V=(0,F.zh)(T);I.insertAdjacentHTML("afterend",s.g.ZWSP),V.setStartAfter(I.nextSibling),V.collapse(!0),(0,F.Hc)(V),P.preventDefault()}}},fe=function(T,I,P){T.wysiwyg.popover.innerHTML="";var $=function(){J.value.trim()!==""&&(I.innerHTML=J.value),I.setAttribute("href",Xe.value),I.setAttribute("title",Ke.value),Re(T)};I.querySelectorAll("[data-marker]").forEach(function(bt){bt.removeAttribute("data-marker")});var V=document.createElement("span");V.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),V.className="vditor-tooltipped vditor-tooltipped__n";var J=document.createElement("input");V.appendChild(J),J.className="vditor-input",J.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),J.style.width="120px",J.value=I.innerHTML||"",J.oninput=function(){$()},J.onkeydown=function(bt){tt(T,bt)||qe(bt,P)||be(T,I,bt,Xe)};var Te=document.createElement("span");Te.setAttribute("aria-label",window.VditorI18n.link),Te.className="vditor-tooltipped vditor-tooltipped__n";var Xe=document.createElement("input");Te.appendChild(Xe),Xe.className="vditor-input",Xe.setAttribute("placeholder",window.VditorI18n.link),Xe.value=I.getAttribute("href")||"",Xe.oninput=function(){$()},Xe.onkeydown=function(bt){tt(T,bt)||qe(bt,P)||be(T,I,bt,Ke)};var st=document.createElement("span");st.setAttribute("aria-label",window.VditorI18n.tooltipText),st.className="vditor-tooltipped vditor-tooltipped__n";var Ke=document.createElement("input");st.appendChild(Ke),Ke.className="vditor-input",Ke.setAttribute("placeholder",window.VditorI18n.tooltipText),Ke.style.width="60px",Ke.value=I.getAttribute("title")||"",Ke.oninput=function(){$()},Ke.onkeydown=function(bt){tt(T,bt)||qe(bt,P)||be(T,I,bt,J)},ke(I,T),T.wysiwyg.popover.insertAdjacentElement("beforeend",V),T.wysiwyg.popover.insertAdjacentElement("beforeend",Te),T.wysiwyg.popover.insertAdjacentElement("beforeend",st),$e(T,"a"),Mt(T,I)},Se=function(T,I){var P=T.target;I.wysiwyg.popover.innerHTML="";var $=function(){P.setAttribute("src",J.value),P.setAttribute("alt",Xe.value),P.setAttribute("title",Ke.value),typeof I.options.input=="function"&&I.options.input(u(I))},V=document.createElement("span");V.setAttribute("aria-label",window.VditorI18n.imageURL),V.className="vditor-tooltipped vditor-tooltipped__n";var J=document.createElement("input");V.appendChild(J),J.className="vditor-input",J.setAttribute("placeholder",window.VditorI18n.imageURL),J.value=P.getAttribute("src")||"",J.oninput=function(){$()},J.onkeydown=function(bt){tt(I,bt)};var Te=document.createElement("span");Te.setAttribute("aria-label",window.VditorI18n.alternateText),Te.className="vditor-tooltipped vditor-tooltipped__n";var Xe=document.createElement("input");Te.appendChild(Xe),Xe.className="vditor-input",Xe.setAttribute("placeholder",window.VditorI18n.alternateText),Xe.style.width="52px",Xe.value=P.getAttribute("alt")||"",Xe.oninput=function(){$()},Xe.onkeydown=function(bt){tt(I,bt)};var st=document.createElement("span");st.setAttribute("aria-label",window.VditorI18n.title),st.className="vditor-tooltipped vditor-tooltipped__n";var Ke=document.createElement("input");st.appendChild(Ke),Ke.className="vditor-input",Ke.setAttribute("placeholder",window.VditorI18n.title),Ke.value=P.getAttribute("title")||"",Ke.oninput=function(){$()},Ke.onkeydown=function(bt){tt(I,bt)},ke(P,I),I.wysiwyg.popover.insertAdjacentElement("beforeend",V),I.wysiwyg.popover.insertAdjacentElement("beforeend",Te),I.wysiwyg.popover.insertAdjacentElement("beforeend",st),$e(I,"image"),Mt(I,P)},qe=function(T,I){if(!(0,f.yl)(T)&&!T.shiftKey&&T.key==="Enter"||T.key==="Escape")return I&&(0,F.Hc)(I),T.preventDefault(),T.stopPropagation(),!0},$e=function(T,I){T.options.customWysiwygToolbar(I,T.wysiwyg.popover)},Le=function(T){T.currentMode==="wysiwyg"?ft(T):T.currentMode==="ir"&&Ne(T)},ot=function(T,I,P){P===void 0&&(P={enableAddUndoStack:!0,enableHint:!1,enableInput:!0});var $=T.wysiwyg.element;$.innerHTML=T.lute.Md2VditorDOM(I),$.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(V){U(V,T),V.previousElementSibling.setAttribute("style","display:none")}),Re(T,P)},vt=function(T,I,P){for(var $=T.startContainer.parentElement,V=!1,J="",Te="",Xe=Ht(T),st=Xe.beforeHTML,Ke=Xe.afterHTML;$&&!V;){var bt=$.tagName;if(bt==="STRIKE"&&(bt="S"),bt==="I"&&(bt="EM"),bt==="B"&&(bt="STRONG"),bt==="S"||bt==="STRONG"||bt==="EM"){var jt="",An="",On="";$.parentElement.getAttribute("data-block")!=="0"&&(An=an($),On=Lt($)),(st||An)&&(jt="".concat(An,"<").concat(bt,">").concat(st,"</").concat(bt,">"),st=jt),(P==="bold"&&bt==="STRONG"||P==="italic"&&bt==="EM"||P==="strikeThrough"&&bt==="S")&&(jt+="".concat(J).concat(s.g.ZWSP,"<wbr>").concat(Te),V=!0),(Ke||On)&&(Ke="<".concat(bt,">").concat(Ke,"</").concat(bt,">").concat(On),jt+=Ke),$.parentElement.getAttribute("data-block")!=="0"?($=$.parentElement,$.innerHTML=jt):($.outerHTML=jt,$=$.parentElement),J="<".concat(bt,">")+J,Te="</".concat(bt,">")+Te}else V=!0}(0,F.ib)(I.wysiwyg.element,T)},Ut=function(T,I,P){if(!(T.wysiwyg.composingLock&&P instanceof CustomEvent)){var $=!0,V=!0;T.wysiwyg.element.querySelector("wbr")&&T.wysiwyg.element.querySelector("wbr").remove();var J=(0,F.zh)(T),Te=I.getAttribute("data-type");if(I.classList.contains("vditor-menu--current"))if(Te==="strike"&&(Te="strikeThrough"),Te==="quote"){var Xe=(0,A.lG)(J.startContainer,"BLOCKQUOTE");Xe||(Xe=J.startContainer.childNodes[J.startOffset]),Xe&&($=!1,I.classList.remove("vditor-menu--current"),J.insertNode(document.createElement("wbr")),Xe.outerHTML=Xe.innerHTML.trim()===""?'<p data-block="0">'.concat(Xe.innerHTML,"</p>"):Xe.innerHTML,(0,F.ib)(T.wysiwyg.element,J))}else if(Te==="inline-code"){var st=(0,A.lG)(J.startContainer,"CODE");st||(st=J.startContainer.childNodes[J.startOffset]),st&&(st.outerHTML=st.innerHTML.replace(s.g.ZWSP,"")+"<wbr>",(0,F.ib)(T.wysiwyg.element,J))}else Te==="link"?(J.collapsed&&J.selectNode(J.startContainer.parentElement),document.execCommand("unlink",!1,"")):Te==="check"||Te==="list"||Te==="ordered-list"?(is(T,J,Te),(0,F.ib)(T.wysiwyg.element,J),$=!1,I.classList.remove("vditor-menu--current")):($=!1,I.classList.remove("vditor-menu--current"),J.toString()===""?vt(J,T,Te):document.execCommand(Te,!1,""));else{T.wysiwyg.element.childNodes.length===0&&(T.wysiwyg.element.innerHTML='<p data-block="0"><wbr></p>',(0,F.ib)(T.wysiwyg.element,J));var Ke=(0,A.F9)(J.startContainer);if(Te==="quote"){if(Ke||(Ke=J.startContainer.childNodes[J.startOffset]),Ke){$=!1,I.classList.add("vditor-menu--current"),J.insertNode(document.createElement("wbr"));var bt=(0,A.lG)(J.startContainer,"LI");bt&&Ke.contains(bt)?bt.innerHTML='<blockquote data-block="0">'.concat(bt.innerHTML,"</blockquote>"):Ke.outerHTML='<blockquote data-block="0">'.concat(Ke.outerHTML,"</blockquote>"),(0,F.ib)(T.wysiwyg.element,J)}}else if(Te==="check"||Te==="list"||Te==="ordered-list")is(T,J,Te,!1),(0,F.ib)(T.wysiwyg.element,J),$=!1,p(T.toolbar.elements,["check","list","ordered-list"]),I.classList.add("vditor-menu--current");else if(Te==="inline-code"){if(J.toString()===""){var jt=document.createElement("code");jt.textContent=s.g.ZWSP,J.insertNode(jt),J.setStart(jt.firstChild,1),J.collapse(!0),(0,F.Hc)(J)}else if(J.startContainer.nodeType===3){var jt=document.createElement("code");J.surroundContents(jt),J.insertNode(jt),(0,F.Hc)(J)}I.classList.add("vditor-menu--current")}else if(Te==="code"){var jt=document.createElement("div");jt.className="vditor-wysiwyg__block",jt.setAttribute("data-type","code-block"),jt.setAttribute("data-block","0"),jt.setAttribute("data-marker","```"),J.toString()===""?jt.innerHTML=`<pre><code><wbr>
- </code></pre>`:(jt.innerHTML="<pre><code>".concat(J.toString(),"<wbr></code></pre>"),J.deleteContents()),J.insertNode(jt),Ke&&(Ke.outerHTML=T.lute.SpinVditorDOM(Ke.outerHTML)),(0,F.ib)(T.wysiwyg.element,J),T.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(Xo){U(Xo,T)}),I.classList.add("vditor-menu--disabled")}else if(Te==="link"){if(J.toString()===""){var An=document.createElement("a");An.innerText=s.g.ZWSP,J.insertNode(An),J.setStart(An.firstChild,1),J.collapse(!0),fe(T,An,J);var On=T.wysiwyg.popover.querySelector("input");On.value="",On.focus(),V=!1}else{var jt=document.createElement("a");jt.setAttribute("href",""),jt.innerHTML=J.toString(),J.surroundContents(jt),J.insertNode(jt),(0,F.Hc)(J),fe(T,jt,J);var xn=T.wysiwyg.popover.querySelectorAll("input");xn[0].value=jt.innerText,xn[1].focus()}$=!1,I.classList.add("vditor-menu--current")}else if(Te==="table"){var Mn='<table data-block="0"><thead><tr><th>col1<wbr></th><th>col2</th><th>col3</th></tr></thead><tbody><tr><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td></tr></tbody></table>';if(J.toString().trim()==="")Ke&&Ke.innerHTML.trim().replace(s.g.ZWSP,"")===""?Ke.outerHTML=Mn:document.execCommand("insertHTML",!1,Mn),J.selectNode(T.wysiwyg.element.querySelector("wbr").previousSibling),T.wysiwyg.element.querySelector("wbr").remove(),(0,F.Hc)(J);else{Mn='<table data-block="0"><thead><tr>';var Wn=J.toString().split(`
- `),En=Wn[0].split(",").length>Wn[0].split(" ").length?",":" ";Wn.forEach(function(zr,Xo){Xo===0?(zr.split(En).forEach(function(ir,Ni){Ni===0?Mn+="<th>".concat(ir,"<wbr></th>"):Mn+="<th>".concat(ir,"</th>")}),Mn+="</tr></thead>"):(Xo===1?Mn+="<tbody><tr>":Mn+="<tr>",zr.split(En).forEach(function(ir){Mn+="<td>".concat(ir,"</td>")}),Mn+="</tr>")}),Mn+="</tbody></table>",document.execCommand("insertHTML",!1,Mn),(0,F.ib)(T.wysiwyg.element,J)}$=!1,I.classList.add("vditor-menu--disabled")}else if(Te==="line"){if(Ke){var Fn=`<hr data-block="0"><p data-block="0"><wbr>
- </p>`;Ke.innerHTML.trim()===""?Ke.outerHTML=Fn:Ke.insertAdjacentHTML("afterend",Fn),(0,F.ib)(T.wysiwyg.element,J)}}else if($=!1,I.classList.add("vditor-menu--current"),Te==="strike"&&(Te="strikeThrough"),J.toString()===""&&(Te==="bold"||Te==="italic"||Te==="strikeThrough")){var rr="strong";Te==="italic"?rr="em":Te==="strikeThrough"&&(rr="s");var jt=document.createElement(rr);jt.textContent=s.g.ZWSP,J.insertNode(jt),jt.previousSibling&&jt.previousSibling.textContent===s.g.ZWSP&&(jt.previousSibling.textContent=""),J.setStart(jt.firstChild,1),J.collapse(!0),(0,F.Hc)(J)}else document.execCommand(Te,!1,"")}$&&ft(T),V&&Re(T)}},Qt=(function(){function T(I,P){var $,V=this;this.element=document.createElement("div"),P.className&&($=this.element.classList).add.apply($,P.className.split(" "));var J=P.hotkey?" <".concat((0,f.ns)(P.hotkey),">"):"";P.level===2&&(J=P.hotkey?" <".concat((0,f.ns)(P.hotkey),">"):"");var Te=P.tip?P.tip+J:"".concat(window.VditorI18n[P.name]).concat(J),Xe=P.name==="upload"?"div":"button";if(P.level===2)this.element.innerHTML="<".concat(Xe,' data-type="').concat(P.name,'">').concat(Te,"</").concat(Xe,">");else{this.element.classList.add("vditor-toolbar__item");var st=document.createElement(Xe);st.setAttribute("data-type",P.name),st.className="vditor-tooltipped vditor-tooltipped__".concat(P.tipPosition),st.setAttribute("aria-label",Te),st.innerHTML=P.icon,this.element.appendChild(st)}P.prefix&&this.element.children[0].addEventListener((0,f.Le)(),function(Ke){Ke.preventDefault(),!V.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)&&(I.currentMode==="wysiwyg"?Ut(I,V.element.children[0],Ke):I.currentMode==="ir"?Ce(I,V.element.children[0],P.prefix||"",P.suffix||""):Ln(I,V.element.children[0],P.prefix||"",P.suffix||""))})}return T})(),Gt=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),vn=function(T,I,P){var $;if(typeof P!="string"?(b(T,["subToolbar","hint"]),P.preventDefault(),$=u(T)):$=P,!(T.currentMode===I&&typeof P!="string")){if(T.devtools&&T.devtools.renderEchart(T),T.options.preview.mode==="both"&&I==="sv"?T.preview.element.style.display="block":T.preview.element.style.display="none",h(T.toolbar.elements,s.g.EDIT_TOOLBARS),p(T.toolbar.elements,s.g.EDIT_TOOLBARS),g(T.toolbar.elements,["outdent","indent"]),I==="ir")y(T.toolbar.elements,["both"]),m(T.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),T.sv.element.style.display="none",T.wysiwyg.element.parentElement.style.display="none",T.ir.element.parentElement.style.display="block",T.lute.SetVditorIR(!0),T.lute.SetVditorWYSIWYG(!1),T.lute.SetVditorSV(!1),T.currentMode="ir",T.ir.element.innerHTML=T.lute.Md2VditorIRDOM($),we(T,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),ue(T),T.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(J){U(J,T)}),T.ir.element.querySelectorAll(".vditor-toc").forEach(function(J){(0,N.H)(J,{cdn:T.options.cdn,math:T.options.preview.math})});else if(I==="wysiwyg")y(T.toolbar.elements,["both"]),m(T.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),T.sv.element.style.display="none",T.wysiwyg.element.parentElement.style.display="block",T.ir.element.parentElement.style.display="none",T.lute.SetVditorIR(!1),T.lute.SetVditorWYSIWYG(!0),T.lute.SetVditorSV(!1),T.currentMode="wysiwyg",ue(T),ot(T,$,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),T.wysiwyg.element.querySelectorAll(".vditor-toc").forEach(function(J){(0,N.H)(J,{cdn:T.options.cdn,math:T.options.preview.math})}),T.wysiwyg.popover.style.display="none";else if(I==="sv"){m(T.toolbar.elements,["both"]),y(T.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),T.wysiwyg.element.parentElement.style.display="none",T.ir.element.parentElement.style.display="none",(T.options.preview.mode==="both"||T.options.preview.mode==="editor")&&(T.sv.element.style.display="block"),T.lute.SetVditorIR(!1),T.lute.SetVditorWYSIWYG(!1),T.lute.SetVditorSV(!0),T.currentMode="sv";var V=tn($,T);V==="<div data-block='0'></div>"&&(V=""),T.sv.element.innerHTML=V,Ee(T.sv.element),Xt(T,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),ue(T)}T.undo.resetIcon(T),typeof P!="string"&&(T[T.currentMode].element.focus(),Le(T)),H(T),Be(T),T.toolbar.elements["edit-mode"]&&(T.toolbar.elements["edit-mode"].querySelectorAll("button").forEach(function(J){J.classList.remove("vditor-menu--current")}),T.toolbar.elements["edit-mode"].querySelector('button[data-mode="'.concat(T.currentMode,'"]')).classList.add("vditor-menu--current")),T.outline.toggle(T,T.currentMode!=="sv"&&T.options.outline.enable,typeof P!="string")}},Un=(function(T){Gt(I,T);function I(P,$){var V=T.call(this,P,$)||this,J=document.createElement("div");return J.className="vditor-hint".concat($.level===2?"":" vditor-panel--arrow"),J.innerHTML='<button data-mode="wysiwyg">'.concat(window.VditorI18n.wysiwyg," <").concat((0,f.ns)("⌥⌘7"),`></button>
- <button data-mode="ir">`).concat(window.VditorI18n.instantRendering," <").concat((0,f.ns)("⌥⌘8"),`></button>
- <button data-mode="sv">`).concat(window.VditorI18n.splitView," <").concat((0,f.ns)("⌥⌘9"),"></button>"),V.element.appendChild(J),V._bindEvent(P,J,$),V}return I.prototype._bindEvent=function(P,$,V){var J=this.element.children[0];w(P,$,J,V.level),$.children.item(0).addEventListener((0,f.Le)(),function(Te){vn(P,"wysiwyg",Te),Te.preventDefault(),Te.stopPropagation()}),$.children.item(1).addEventListener((0,f.Le)(),function(Te){vn(P,"ir",Te),Te.preventDefault(),Te.stopPropagation()}),$.children.item(2).addEventListener((0,f.Le)(),function(Te){vn(P,"sv",Te),Te.preventDefault(),Te.stopPropagation()})},I})(Qt),wr=function(T,I){return(0,F.Gb)(T,I)?getSelection().toString():""},fr=function(T,I){I.addEventListener("focus",function(){T.options.focus&&T.options.focus(u(T)),b(T,["subToolbar","hint"])})},Nt=function(T,I){I.addEventListener("dblclick",function(P){P.target.tagName==="IMG"&&(T.options.image.preview?T.options.image.preview(P.target):T.options.image.isPreview&&(0,he.E)(P.target,T.options.lang,T.options.theme))})},_n=function(T,I){I.addEventListener("blur",function(P){if(T.currentMode==="ir"){var $=T.ir.element.querySelector(".vditor-ir__node--expand");$&&$.classList.remove("vditor-ir__node--expand")}else T.currentMode==="wysiwyg"&&!T.wysiwyg.selectPopover.contains(P.relatedTarget)&&T.wysiwyg.hideComment();T[T.currentMode].range=(0,F.zh)(T),T.options.blur&&T.options.blur(u(T))})},xt=function(T,I){I.addEventListener("dragstart",function(P){P.dataTransfer.setData(s.g.DROP_EDITOR,s.g.DROP_EDITOR)}),I.addEventListener("drop",function(P){P.dataTransfer.getData(s.g.DROP_EDITOR)?Dr(T):(P.dataTransfer.types.includes("Files")||P.dataTransfer.types.includes("text/html"))&&ar(T,P,{pasteCode:function($){document.execCommand("insertHTML",!1,$)}})})},Ft=function(T,I,P){I.addEventListener("copy",function($){return P($,T)})},Sn=function(T,I,P){I.addEventListener("cut",function($){P($,T),T.options.comment.enable&&T.currentMode==="wysiwyg"&&T.wysiwyg.getComments(T),document.execCommand("delete")})},Bn=function(T){if(T.currentMode==="wysiwyg"&&T.options.comment.enable&&T.options.comment.adjustTop(T.wysiwyg.getComments(T,!0)),!!T.options.typewriterMode){var I=T[T.currentMode].element,P=(0,F.Ny)(I).top;T.options.height==="auto"&&!T.element.classList.contains("vditor--fullscreen")&&window.scrollTo(window.scrollX,P+T.element.offsetTop+T.toolbar.element.offsetHeight-window.innerHeight/2+10),(T.options.height!=="auto"||T.element.classList.contains("vditor--fullscreen"))&&(I.scrollTop=P+I.scrollTop-I.clientHeight/2+10)}},Fr=function(T,I){I.addEventListener("keydown",function(P){if(!P.isComposing&&T.options.keydown&&T.options.keydown(P),!((T.options.hint.extend.length>1||T.toolbar.elements.emoji)&&T.hint.select(P,T))){if(T.options.comment.enable&&T.currentMode==="wysiwyg"&&(P.key==="Backspace"||Z("⌘X",P))&&T.wysiwyg.getComments(T),T.currentMode==="sv"){if(me(T,P))return}else if(T.currentMode==="wysiwyg"){if(de(T,P))return}else if(T.currentMode==="ir"&&Ae(T,P))return;if(T.options.ctrlEnter&&Z("⌘Enter",P)){T.options.ctrlEnter(u(T)),P.preventDefault();return}if(Z("⌘Z",P)&&!T.toolbar.elements.undo){T.undo.undo(T),P.preventDefault();return}if(Z("⌘Y",P)&&!T.toolbar.elements.redo){T.undo.redo(T),P.preventDefault();return}if(P.key==="Escape"){T.hint.element.style.display==="block"?T.hint.element.style.display="none":T.options.esc&&!P.isComposing&&T.options.esc(u(T)),P.preventDefault();return}if((0,f.yl)(P)&&P.altKey&&!P.shiftKey&&/^Digit[1-6]$/.test(P.code)){if(T.currentMode==="wysiwyg"){var $=P.code.replace("Digit","H");(0,A.lG)(getSelection().getRangeAt(0).startContainer,$)?dt(T):Dt(T,$),Re(T)}else T.currentMode==="sv"?yn(T,"#".repeat(parseInt(P.code.replace("Digit",""),10))+" "):T.currentMode==="ir"&&ae(T,"#".repeat(parseInt(P.code.replace("Digit",""),10))+" ");return P.preventDefault(),!0}if((0,f.yl)(P)&&P.altKey&&!P.shiftKey&&/^Digit[7-9]$/.test(P.code))return P.code==="Digit7"?vn(T,"wysiwyg",P):P.code==="Digit8"?vn(T,"ir",P):P.code==="Digit9"&&vn(T,"sv",P),!0;T.options.toolbar.find(function(V){if(!V.hotkey||V.toolbar){if(V.toolbar){var J=V.toolbar.find(function(Te){if(!Te.hotkey)return!1;if(Z(Te.hotkey,P))return T.toolbar.elements[Te.name].children[0].dispatchEvent(new CustomEvent((0,f.Le)())),P.preventDefault(),!0});return!!J}return!1}if(Z(V.hotkey,P))return T.toolbar.elements[V.name].children[0].dispatchEvent(new CustomEvent((0,f.Le)())),P.preventDefault(),!0})}})},kn=function(T,I){I.addEventListener("selectstart",function(P){I.onmouseup=function(){setTimeout(function(){var $=wr(T[T.currentMode].element);$.trim()?(T.currentMode==="wysiwyg"&&T.options.comment.enable&&(!(0,A.a1)(P.target,"data-type","footnotes-block")&&!(0,A.a1)(P.target,"data-type","link-ref-defs-block")?T.wysiwyg.showComment():T.wysiwyg.hideComment()),T.options.select&&T.options.select($)):(T.currentMode==="wysiwyg"&&T.options.comment.enable&&T.wysiwyg.hideComment(),typeof T.options.unSelect=="function"&&T.options.unSelect())})}})},Ye=function(T,I){var P=(0,F.zh)(T);P.extractContents(),P.insertNode(document.createTextNode(Lute.Caret)),P.insertNode(document.createTextNode(I));var $=(0,A.a1)(P.startContainer,"data-block","0");$||($=T.sv.element);var V=T.lute.SpinVditorSVDOM($.textContent);V="<div data-block='0'>"+V.replace(/<span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span><span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span></g,`<span data-type="newline"><br /><span style="display: none">
- </span></span><span data-type="newline"><br /><span style="display: none">
- </span></span></div><div data-block="0"><`)+"</div>",$.isEqualNode(T.sv.element)?$.innerHTML=V:$.outerHTML=V,Ee(T.sv.element),(0,F.ib)(T.sv.element,P),Bn(T)},At=function(T,I,P){P===void 0&&(P=!0);var $=T;for($.nodeType===3&&($=$.parentElement);$;){if($.getAttribute("data-type")===I)return $;P?$=$.previousElementSibling:$=$.nextElementSibling}return!1},tn=function(T,I){E("SpinVditorSVDOM",T,"argument",I.options.debugger);var P=I.lute.SpinVditorSVDOM(T);return T="<div data-block='0'>"+P.replace(/<span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span><span data-type="newline"><br \/><span style="display: none">\n<\/span><\/span></g,`<span data-type="newline"><br /><span style="display: none">
- </span></span><span data-type="newline"><br /><span style="display: none">
- </span></span></div><div data-block="0"><`)+"</div>",E("SpinVditorSVDOM",T,"result",I.options.debugger),T},Ct=function(T){var I=T.getAttribute("data-type"),P=T.previousElementSibling,$=I&&I!=="text"&&I!=="table"&&I!=="heading-marker"&&I!=="newline"&&I!=="yaml-front-matter-open-marker"&&I!=="yaml-front-matter-close-marker"&&I!=="code-block-info"&&I!=="code-block-close-marker"&&I!=="code-block-open-marker"?T.textContent:"",V=!1;for(I==="newline"&&(V=!0);P&&!V;){var J=P.getAttribute("data-type");if(J==="li-marker"||J==="blockquote-marker"||J==="task-marker"||J==="padding"){var Te=P.textContent;if(J==="li-marker"&&(I==="code-block-open-marker"||I==="code-block-info"))$=Te.replace(/\S/g," ")+$;else if(I==="code-block-close-marker"&&P.nextElementSibling.isSameNode(T)){var Xe=At(T,"code-block-open-marker");Xe&&Xe.previousElementSibling&&(P=Xe.previousElementSibling,$=Te+$)}else $=Te+$}else J==="newline"&&(V=!0);P=P.previousElementSibling}return $},Xt=function(T,I){I===void 0&&(I={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),I.enableHint&&T.hint.render(T),T.preview.render(T);var P=u(T);typeof T.options.input=="function"&&I.enableInput&&T.options.input(P),T.options.counter.enable&&T.counter.render(T,P),T.options.cache.enable&&(0,f.pK)()&&(localStorage.setItem(T.options.cache.id,P),T.options.cache.after&&T.options.cache.after(P)),T.devtools&&T.devtools.renderEchart(T),clearTimeout(T.sv.processTimeoutId),T.sv.processTimeoutId=window.setTimeout(function(){I.enableAddUndoStack&&!T.sv.composingLock&&T.undo.addToUndoStack(T)},T.options.undoDelay)},yn=function(T,I){var P=(0,F.zh)(T),$=(0,S.S)(P.startContainer,"SPAN");$&&$.textContent.trim()!==""&&(I=`
- `+I),P.collapse(!0),document.execCommand("insertHTML",!1,I)},Ln=function(T,I,P,$){var V=(0,F.zh)(T),J=I.getAttribute("data-type");T.sv.element.childNodes.length===0&&(T.sv.element.innerHTML=`<span data-type="p" data-block="0"><span data-type="text"><wbr></span></span><span data-type="newline"><br><span style="display: none">
- </span></span>`,(0,F.ib)(T.sv.element,V));var Te=(0,A.F9)(V.startContainer),Xe=(0,S.S)(V.startContainer,"SPAN");if(Te){if(J==="link"){var st=void 0;V.toString()===""?st="".concat(P).concat(Lute.Caret).concat($):st="".concat(P).concat(V.toString()).concat($.replace(")",Lute.Caret+")")),document.execCommand("insertHTML",!1,st);return}else if(J==="italic"||J==="bold"||J==="strike"||J==="inline-code"||J==="code"||J==="table"||J==="line"){var st=void 0;V.toString()===""?st="".concat(P).concat(Lute.Caret).concat(J==="code"?"":$):st="".concat(P).concat(V.toString()).concat(Lute.Caret).concat(J==="code"?"":$),J==="table"||J==="code"&&Xe&&Xe.textContent!==""?st=`
- `+st:J==="line"&&(st=`
- `.concat(P,`
- `).concat(Lute.Caret)),document.execCommand("insertHTML",!1,st);return}else if((J==="check"||J==="list"||J==="ordered-list"||J==="quote")&&Xe){var Ke="* ";J==="check"?Ke="* [ ] ":J==="ordered-list"?Ke="1. ":J==="quote"&&(Ke="> ");var bt=At(Xe,"newline");bt?bt.insertAdjacentText("afterend",Ke):Te.insertAdjacentText("afterbegin",Ke),Q(T);return}(0,F.ib)(T.sv.element,V),Xt(T)}},Zn=function(T){switch(T.currentMode){case"ir":return T.ir.element;case"wysiwyg":return T.wysiwyg.element;case"sv":return T.sv.element}},jr=function(T,I){T.options.upload.setHeaders&&(T.options.upload.headers=T.options.upload.setHeaders()),T.options.upload.headers&&Object.keys(T.options.upload.headers).forEach(function(P){I.setRequestHeader(P,T.options.upload.headers[P])})},yo=function(T,I,P,$){function V(J){return J instanceof P?J:new P(function(Te){Te(J)})}return new(P||(P=Promise))(function(J,Te){function Xe(bt){try{Ke($.next(bt))}catch(jt){Te(jt)}}function st(bt){try{Ke($.throw(bt))}catch(jt){Te(jt)}}function Ke(bt){bt.done?J(bt.value):V(bt.value).then(Xe,st)}Ke(($=$.apply(T,I||[])).next())})},Kr=function(T,I){var P={label:0,sent:function(){if(J[0]&1)throw J[1];return J[1]},trys:[],ops:[]},$,V,J,Te;return Te={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(Te[Symbol.iterator]=function(){return this}),Te;function Xe(Ke){return function(bt){return st([Ke,bt])}}function st(Ke){if($)throw new TypeError("Generator is already executing.");for(;Te&&(Te=0,Ke[0]&&(P=0)),P;)try{if($=1,V&&(J=Ke[0]&2?V.return:Ke[0]?V.throw||((J=V.return)&&J.call(V),0):V.next)&&!(J=J.call(V,Ke[1])).done)return J;switch(V=0,J&&(Ke=[Ke[0]&2,J.value]),Ke[0]){case 0:case 1:J=Ke;break;case 4:return P.label++,{value:Ke[1],done:!1};case 5:P.label++,V=Ke[1],Ke=[0];continue;case 7:Ke=P.ops.pop(),P.trys.pop();continue;default:if(J=P.trys,!(J=J.length>0&&J[J.length-1])&&(Ke[0]===6||Ke[0]===2)){P=0;continue}if(Ke[0]===3&&(!J||Ke[1]>J[0]&&Ke[1]<J[3])){P.label=Ke[1];break}if(Ke[0]===6&&P.label<J[1]){P.label=J[1],J=Ke;break}if(J&&P.label<J[2]){P.label=J[2],P.ops.push(Ke);break}J[2]&&P.ops.pop(),P.trys.pop();continue}Ke=I.call(T,P)}catch(bt){Ke=[6,bt],V=0}finally{$=J=0}if(Ke[0]&5)throw Ke[1];return{value:Ke[0]?Ke[1]:void 0,done:!0}}},xo=(function(){function T(){this.isUploading=!1,this.element=document.createElement("div"),this.element.className="vditor-upload"}return T})(),zo=function(T,I){T.tip.hide();var P=[],$="",V="";T.options.lang,T.options;for(var J=function(Ke,bt){var jt=I[bt],An=!0;jt.name||($+="<li>".concat(window.VditorI18n.nameEmpty,"</li>"),An=!1),jt.size>T.options.upload.max&&($+="<li>".concat(jt.name," ").concat(window.VditorI18n.over," ").concat(T.options.upload.max/1024/1024,"M</li>"),An=!1);var On=jt.name.lastIndexOf("."),xn=jt.name.substr(On),Mn=T.options.upload.filename(jt.name.substr(0,On))+xn;if(T.options.upload.accept){var Wn=T.options.upload.accept.split(",").some(function(En){var Fn=En.trim();if(Fn.indexOf(".")===0){if(xn.toLowerCase()===Fn.toLowerCase())return!0}else if(jt.type.split("/")[0]===Fn.split("/")[0])return!0;return!1});Wn||($+="<li>".concat(jt.name," ").concat(window.VditorI18n.fileTypeError,"</li>"),An=!1)}An&&(P.push(jt),V+="<li>".concat(Mn," ").concat(window.VditorI18n.uploading,' <a class="vditorCancelUpload" href="javascript:void(0)">').concat(window.VditorI18n.cancelUpload,"</a></li>"))},Te=I.length,Xe=0;Xe<Te;Xe++)J(Te,Xe);if(T.tip.show("<ul>".concat($).concat(V,"</ul>")),T.options.upload.cancel){var st=T.tip.element.querySelector(".vditorCancelUpload");st&&st.addEventListener("click",function(){T.options.upload.cancel(P),T.tip.hide(),T.upload.isUploading=!1})}return P},Sr=function(T,I){var P=Zn(I);P.focus();var $=JSON.parse(T),V="";$.code===1&&(V="".concat($.msg)),$.data.errFiles&&$.data.errFiles.length>0&&(V="<ul><li>".concat(V,"</li>"),$.data.errFiles.forEach(function(Te){var Xe=Te.lastIndexOf("."),st=I.options.upload.filename(Te.substr(0,Xe))+Te.substr(Xe);V+="<li>".concat(st," ").concat(window.VditorI18n.uploadError,"</li>")}),V+="</ul>"),V?I.tip.show(V):I.tip.hide();var J="";Object.keys($.data.succMap).forEach(function(Te){var Xe=$.data.succMap[Te],st=Te.lastIndexOf("."),Ke=Te.substr(st),bt=I.options.upload.filename(Te.substr(0,st))+Ke;Ke=Ke.toLowerCase(),Ke.indexOf(".wav")===0||Ke.indexOf(".mp3")===0||Ke.indexOf(".ogg")===0?I.currentMode==="wysiwyg"?J+=`<div class="vditor-wysiwyg__block" data-type="html-block"
- data-block="0"><pre><code><audio controls="controls" src="`.concat(Xe,'"></audio></code></pre><pre class="vditor-wysiwyg__preview" data-render="1"><audio controls="controls" src="').concat(Xe,`"></audio></pre></div>
- `):I.currentMode==="ir"?J+='<audio controls="controls" src="'.concat(Xe,`"></audio>
- `):J+="[".concat(bt,"](").concat(Xe,`)
- `):Ke.indexOf(".apng")===0||Ke.indexOf(".bmp")===0||Ke.indexOf(".gif")===0||Ke.indexOf(".ico")===0||Ke.indexOf(".cur")===0||Ke.indexOf(".jpg")===0||Ke.indexOf(".jpeg")===0||Ke.indexOf(".jfif")===0||Ke.indexOf(".pjp")===0||Ke.indexOf(".pjpeg")===0||Ke.indexOf(".png")===0||Ke.indexOf(".svg")===0||Ke.indexOf(".webp")===0?I.currentMode==="wysiwyg"?J+='<img alt="'.concat(bt,'" src="').concat(Xe,`">
- `):J+=".concat(Xe,`)
- `):I.currentMode==="wysiwyg"?J+='<a href="'.concat(Xe,'">').concat(bt,`</a>
- `):J+="[".concat(bt,"](").concat(Xe,`)
- `)}),(0,F.Hc)(I.upload.range),document.execCommand("insertHTML",!1,J),I.upload.range=getSelection().getRangeAt(0).cloneRange()},Yr=function(T,I,P){return yo(void 0,void 0,void 0,function(){var $,V,xn,J,Te,Te,Xe,st,Ke,bt,jt,An,On,xn,Mn,Wn;return Kr(this,function(En){switch(En.label){case 0:for($=[],V=T.options.upload.multiple===!0?I.length:1,xn=0;xn<V;xn++)J=I[xn],J instanceof DataTransferItem&&(J=J.getAsFile()),$.push(J);return T.options.upload.handler?[4,T.options.upload.handler($)]:[3,2];case 1:return Te=En.sent(),P&&(P.value=""),typeof Te=="string"?(T.tip.show(Te),[2]):[2];case 2:return!T.options.upload.url||!T.upload?(P&&(P.value=""),T.tip.show("please config: options.upload.url"),[2]):T.options.upload.file?[4,T.options.upload.file($)]:[3,4];case 3:$=En.sent(),En.label=4;case 4:if(T.options.upload.validate&&(Te=T.options.upload.validate($),typeof Te=="string"))return T.tip.show(Te),[2];if(Xe=Zn(T),T.upload.range=(0,F.zh)(T),st=zo(T,$),st.length===0)return P&&(P.value=""),[2];for(Ke=new FormData,bt=T.options.upload.extraData,jt=0,An=Object.keys(bt);jt<An.length;jt++)On=An[jt],Ke.append(On,bt[On]);for(xn=0,Mn=st.length;xn<Mn;xn++)Ke.append(T.options.upload.fieldName,st[xn]);return Wn=new XMLHttpRequest,T.upload.xhr=Wn,Wn.open("POST",T.options.upload.url),T.options.upload.token&&Wn.setRequestHeader("X-Upload-Token",T.options.upload.token),T.options.upload.withCredentials&&(Wn.withCredentials=!0),jr(T,Wn),T.upload.isUploading=!0,Xe.setAttribute("contenteditable","false"),Wn.onreadystatechange=function(){if(Wn.readyState===XMLHttpRequest.DONE){if(T.upload.isUploading=!1,Xe.setAttribute("contenteditable","true"),Wn.status>=200&&Wn.status<300)if(T.options.upload.success)T.options.upload.success(Xe,Wn.responseText);else{var Fn=Wn.responseText;T.options.upload.format&&(Fn=T.options.upload.format(I,Wn.responseText)),Sr(Fn,T)}else T.options.upload.error?T.options.upload.error(Wn.responseText):T.tip.show(Wn.responseText);P&&(P.value=""),T.upload.element.style.display="none",T.upload.xhr=void 0}},Wn.upload.onprogress=function(Fn){if(Fn.lengthComputable){var rr=Fn.loaded/Fn.total*100;T.upload.element.style.display="block";var zr=T.upload.element;zr.style.width=rr+"%"}},Wn.send(Ke),[2]}})})},vo=function(T,I,P){var $,V=(0,A.F9)(I.startContainer);if(V||(V=T.wysiwyg.element),P&&P.inputType!=="formatItalic"&&P.inputType!=="deleteByDrag"&&P.inputType!=="insertFromDrop"&&P.inputType!=="formatBold"&&P.inputType!=="formatRemove"&&P.inputType!=="formatStrikeThrough"&&P.inputType!=="insertUnorderedList"&&P.inputType!=="insertOrderedList"&&P.inputType!=="formatOutdent"&&P.inputType!=="formatIndent"&&P.inputType!==""||!P){var J=gt(I.startContainer);J&&J.remove(),T.wysiwyg.element.querySelectorAll("wbr").forEach(function(rr){rr.remove()}),I.insertNode(document.createElement("wbr")),V.querySelectorAll("[style]").forEach(function(rr){rr.removeAttribute("style")}),V.querySelectorAll(".vditor-comment").forEach(function(rr){rr.textContent.trim()===""&&(rr.classList.remove("vditor-comment","vditor-comment--focus"),rr.removeAttribute("data-cmtids"))}),($=V.previousElementSibling)===null||$===void 0||$.querySelectorAll(".vditor-comment").forEach(function(rr){rr.textContent.trim()===""&&(rr.classList.remove("vditor-comment","vditor-comment--focus"),rr.removeAttribute("data-cmtids"))});var Te="";V.getAttribute("data-type")==="link-ref-defs-block"&&(V=T.wysiwyg.element);var Xe=V.isEqualNode(T.wysiwyg.element),st=(0,A.a1)(V,"data-type","footnotes-block");if(Xe)Te=V.innerHTML;else{var Ke=(0,A.O9)(I.startContainer);if(Ke&&!st){var bt=(0,S.S)(I.startContainer,"BLOCKQUOTE");bt?V=(0,A.F9)(I.startContainer)||V:V=Ke}if(st&&(V=st),Te=V.outerHTML,V.tagName==="UL"||V.tagName==="OL"){var jt=V.previousElementSibling,An=V.nextElementSibling;jt&&(jt.tagName==="UL"||jt.tagName==="OL")&&(Te=jt.outerHTML+Te,jt.remove()),An&&(An.tagName==="UL"||An.tagName==="OL")&&(Te=Te+An.outerHTML,An.remove()),Te=Te.replace("<div><wbr><br></div>","<li><p><wbr><br></p></li>")}V.innerText.startsWith("```")||(T.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach(function(rr){rr&&!V.isEqualNode(rr)&&(Te+=rr.outerHTML,rr.remove())}),T.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']").forEach(function(rr){rr&&!V.isEqualNode(rr)&&(Te+=rr.outerHTML,rr.remove())}))}if(Te=Te.replace(/<\/(strong|b)><strong data-marker="\W{2}">/g,"").replace(/<\/(em|i)><em data-marker="\W{1}">/g,"").replace(/<\/(s|strike)><s data-marker="~{1,2}">/g,""),Te==='<p data-block="0">```<wbr></p>'&&T.hint.recentLanguage&&(Te='<p data-block="0">```<wbr></p>'.replace("```","```"+T.hint.recentLanguage)),E("SpinVditorDOM",Te,"argument",T.options.debugger),Te=T.lute.SpinVditorDOM(Te),E("SpinVditorDOM",Te,"result",T.options.debugger),Xe)V.innerHTML=Te;else if(V.outerHTML=Te,st){var On=(0,A.E2)(T.wysiwyg.element.querySelector("wbr"),"LI");if(On){var xn=T.wysiwyg.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'.concat(On.getAttribute("data-marker"),'"]'));xn&&xn.setAttribute("aria-label",On.textContent.trim().substr(0,24))}}var Mn,Wn=T.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']");Wn.forEach(function(rr,zr){zr===0?Mn=rr:(Mn.insertAdjacentHTML("beforeend",rr.innerHTML),rr.remove())}),Wn.length>0&&T.wysiwyg.element.insertAdjacentElement("beforeend",Wn[0]);var En,Fn=T.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']");Fn.forEach(function(rr,zr){zr===0?En=rr:(En.insertAdjacentHTML("beforeend",rr.innerHTML),rr.remove())}),Fn.length>0&&T.wysiwyg.element.insertAdjacentElement("beforeend",Fn[0]),(0,F.ib)(T.wysiwyg.element,I),T.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach(function(rr){U(rr,T)}),P&&(P.inputType==="deleteContentBackward"||P.inputType==="deleteContentForward")&&T.options.comment.enable&&(T.wysiwyg.triggerRemoveComment(T),T.options.comment.adjustTop(T.wysiwyg.getComments(T,!0)))}H(T),Re(T,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},Rr=function(T,I){return Object.defineProperty?Object.defineProperty(T,"raw",{value:I}):T.raw=I,T},Ur=function(T,I,P,$){function V(J){return J instanceof P?J:new P(function(Te){Te(J)})}return new(P||(P=Promise))(function(J,Te){function Xe(bt){try{Ke($.next(bt))}catch(jt){Te(jt)}}function st(bt){try{Ke($.throw(bt))}catch(jt){Te(jt)}}function Ke(bt){bt.done?J(bt.value):V(bt.value).then(Xe,st)}Ke(($=$.apply(T,I||[])).next())})},Hr=function(T,I){var P={label:0,sent:function(){if(J[0]&1)throw J[1];return J[1]},trys:[],ops:[]},$,V,J,Te;return Te={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(Te[Symbol.iterator]=function(){return this}),Te;function Xe(Ke){return function(bt){return st([Ke,bt])}}function st(Ke){if($)throw new TypeError("Generator is already executing.");for(;Te&&(Te=0,Ke[0]&&(P=0)),P;)try{if($=1,V&&(J=Ke[0]&2?V.return:Ke[0]?V.throw||((J=V.return)&&J.call(V),0):V.next)&&!(J=J.call(V,Ke[1])).done)return J;switch(V=0,J&&(Ke=[Ke[0]&2,J.value]),Ke[0]){case 0:case 1:J=Ke;break;case 4:return P.label++,{value:Ke[1],done:!1};case 5:P.label++,V=Ke[1],Ke=[0];continue;case 7:Ke=P.ops.pop(),P.trys.pop();continue;default:if(J=P.trys,!(J=J.length>0&&J[J.length-1])&&(Ke[0]===6||Ke[0]===2)){P=0;continue}if(Ke[0]===3&&(!J||Ke[1]>J[0]&&Ke[1]<J[3])){P.label=Ke[1];break}if(Ke[0]===6&&P.label<J[1]){P.label=J[1],J=Ke;break}if(J&&P.label<J[2]){P.label=J[2],P.ops.push(Ke);break}J[2]&&P.ops.pop(),P.trys.pop();continue}Ke=I.call(T,P)}catch(bt){Ke=[6,bt],V=0}finally{$=J=0}if(Ke[0]&5)throw Ke[1];return{value:Ke[0]?Ke[1]:void 0,done:!0}}},to=function(T,I,P){if(T.keyCode===229&&T.code===""&&T.key==="Unidentified"&&I.currentMode!=="sv"){var $=(0,A.F9)(P);if($&&$.textContent.trim()==="")return I[I.currentMode].composingLock=!0,!1}return!0},pr=function(T,I,P){if(!(P.key==="Enter"||P.key==="Tab"||P.key==="Backspace"||P.key.indexOf("Arrow")>-1||(0,f.yl)(P)||P.key==="Escape"||P.shiftKey||P.altKey)){var $=(0,A.lG)(T.startContainer,"P")||(0,A.lG)(T.startContainer,"LI");if($&&(0,F.im)($,I[I.currentMode].element,T).start===0){$.nodeValue&&($.nodeValue=$.nodeValue.replace(/\u2006/g,""));var V=document.createTextNode(s.g.ZWSP);T.insertNode(V),T.setStartAfter(V)}}},Po=function(T,I){if(I==="ArrowDown"||I==="ArrowUp"){var P=(0,A.a1)(T.startContainer,"data-type","math-inline")||(0,A.a1)(T.startContainer,"data-type","html-entity")||(0,A.a1)(T.startContainer,"data-type","html-inline");P&&(I==="ArrowDown"&&T.setStartAfter(P.parentElement),I==="ArrowUp"&&T.setStartBefore(P.parentElement))}},ni=function(T,I){var P=(0,F.zh)(T),$=(0,A.F9)(P.startContainer);$&&($.insertAdjacentHTML(I,'<p data-block="0">'.concat(s.g.ZWSP,`<wbr>
- </p>`)),(0,F.ib)(T[T.currentMode].element,P),Le(T),Dr(T))},Wi=function(T){var I=(0,A.lG)(T,"TABLE");return I&&I.rows[0].cells[0].isSameNode(T)?I:!1},va=function(T){var I=(0,A.lG)(T,"TABLE");return I&&I.lastElementChild.lastElementChild.lastElementChild.isSameNode(T)?I:!1},aa=function(T,I,P){P===void 0&&(P=!0);var $=T.previousElementSibling;return $||(T.parentElement.previousElementSibling?$=T.parentElement.previousElementSibling.lastElementChild:T.parentElement.parentElement.tagName==="TBODY"&&T.parentElement.parentElement.previousElementSibling?$=T.parentElement.parentElement.previousElementSibling.lastElementChild.lastElementChild:$=null),$&&(I.selectNodeContents($),P||I.collapse(!1),(0,F.Hc)(I)),$},Ci=function(T,I,P,$,V){var J=(0,F.im)($,T[T.currentMode].element,P);if(I.key==="ArrowDown"&&$.textContent.trimRight().substr(J.start).indexOf(`
- `)===-1||I.key==="ArrowRight"&&J.start>=$.textContent.trimRight().length){var Te=V.nextElementSibling;return!Te||Te&&(Te.tagName==="TABLE"||Te.getAttribute("data-type"))?(V.insertAdjacentHTML("afterend",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,F.ib)(T[T.currentMode].element,P)):(P.selectNodeContents(Te),P.collapse(!0),(0,F.Hc)(P)),I.preventDefault(),!0}return!1},xi=function(T,I,P,$,V){var J=(0,F.im)($,T[T.currentMode].element,P);if(I.key==="ArrowUp"&&$.textContent.substr(0,J.start).indexOf(`
- `)===-1||(I.key==="ArrowLeft"||I.key==="Backspace"&&P.toString()==="")&&J.start===0){var Te=V.previousElementSibling;return!Te||Te&&(Te.tagName==="TABLE"||Te.getAttribute("data-type"))?(V.insertAdjacentHTML("beforebegin",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,F.ib)(T[T.currentMode].element,P)):(P.selectNodeContents(Te),P.collapse(!1),(0,F.Hc)(P)),I.preventDefault(),!0}return!1},is=function(T,I,P,$){$===void 0&&($=!0);var V=(0,A.lG)(I.startContainer,"LI");if(T[T.currentMode].element.querySelectorAll("wbr").forEach(function(bt){bt.remove()}),I.insertNode(document.createElement("wbr")),$&&V){for(var J="",Te=0;Te<V.parentElement.childElementCount;Te++){var Xe=V.parentElement.children[Te].querySelector("input");Xe&&Xe.remove(),J+='<p data-block="0">'.concat(V.parentElement.children[Te].innerHTML.trimLeft(),"</p>")}V.parentElement.insertAdjacentHTML("beforebegin",J),V.parentElement.remove()}else if(V)if(P==="check")V.parentElement.querySelectorAll("li").forEach(function(bt){bt.insertAdjacentHTML("afterbegin",'<input type="checkbox" />'.concat(bt.textContent.indexOf(" ")===0?"":" ")),bt.classList.add("vditor-task")});else{V.querySelector("input")&&V.parentElement.querySelectorAll("li").forEach(function(bt){bt.querySelector("input").remove(),bt.classList.remove("vditor-task")});var Ke=void 0;P==="list"?(Ke=document.createElement("ul"),Ke.setAttribute("data-marker","*")):(Ke=document.createElement("ol"),Ke.setAttribute("data-marker","1.")),Ke.setAttribute("data-block","0"),Ke.setAttribute("data-tight",V.parentElement.getAttribute("data-tight")),Ke.innerHTML=V.parentElement.innerHTML,V.parentElement.parentNode.replaceChild(Ke,V.parentElement)}else{var st=(0,A.a1)(I.startContainer,"data-block","0");st||(T[T.currentMode].element.querySelector("wbr").remove(),st=T[T.currentMode].element.querySelector("p"),st.innerHTML="<wbr>"),P==="check"?(st.insertAdjacentHTML("beforebegin",'<ul data-block="0"><li class="vditor-task"><input type="checkbox" /> '.concat(st.innerHTML,"</li></ul>")),st.remove()):P==="list"?(st.insertAdjacentHTML("beforebegin",'<ul data-block="0"><li>'.concat(st.innerHTML,"</li></ul>")),st.remove()):P==="ordered-list"&&(st.insertAdjacentHTML("beforebegin",'<ol data-block="0"><li>'.concat(st.innerHTML,"</li></ol>")),st.remove())}},Oi=function(T,I,P){var $=I.previousElementSibling;if(I&&$){var V=[I];Array.from(P.cloneContents().children).forEach(function(st,Ke){st.nodeType!==3&&I&&st.textContent.trim()!==""&&I.getAttribute("data-node-id")===st.getAttribute("data-node-id")&&(Ke!==0&&V.push(I),I=I.nextElementSibling)}),T[T.currentMode].element.querySelectorAll("wbr").forEach(function(st){st.remove()}),P.insertNode(document.createElement("wbr"));var J=$.parentElement,Te="";V.forEach(function(st){var Ke=st.getAttribute("data-marker");Ke.length!==1&&(Ke="1".concat(Ke.slice(-1))),Te+='<li data-node-id="'.concat(st.getAttribute("data-node-id"),'" data-marker="').concat(Ke,'">').concat(st.innerHTML,"</li>"),st.remove()}),$.insertAdjacentHTML("beforeend","<".concat(J.tagName,' data-block="0">').concat(Te,"</").concat(J.tagName,">")),T.currentMode==="wysiwyg"?J.outerHTML=T.lute.SpinVditorDOM(J.outerHTML):J.outerHTML=T.lute.SpinVditorIRDOM(J.outerHTML),(0,F.ib)(T[T.currentMode].element,P);var Xe=(0,A.O9)(P.startContainer);Xe&&Xe.querySelectorAll(".vditor-".concat(T.currentMode,"__preview[data-render='2']")).forEach(function(st){U(st,T),T.currentMode==="wysiwyg"&&st.previousElementSibling.setAttribute("style","display:none")}),Dr(T),Le(T)}else T[T.currentMode].element.focus()},mi=function(T,I,P,$){var V=(0,A.lG)(I.parentElement,"LI");if(V){T[T.currentMode].element.querySelectorAll("wbr").forEach(function(jt){jt.remove()}),P.insertNode(document.createElement("wbr"));var J=I.parentElement,Te=J.cloneNode(),Xe=[I];Array.from(P.cloneContents().children).forEach(function(jt,An){jt.nodeType!==3&&I&&jt.textContent.trim()!==""&&I.getAttribute("data-node-id")===jt.getAttribute("data-node-id")&&(An!==0&&Xe.push(I),I=I.nextElementSibling)});var st=!1,Ke="";J.querySelectorAll("li").forEach(function(jt){st&&(Ke+=jt.outerHTML,!jt.nextElementSibling&&!jt.previousElementSibling?jt.parentElement.remove():jt.remove()),jt.isSameNode(Xe[Xe.length-1])&&(st=!0)}),Xe.reverse().forEach(function(jt){V.insertAdjacentElement("afterend",jt)}),Ke&&(Te.innerHTML=Ke,Xe[0].insertAdjacentElement("beforeend",Te)),T.currentMode==="wysiwyg"?$.outerHTML=T.lute.SpinVditorDOM($.outerHTML):$.outerHTML=T.lute.SpinVditorIRDOM($.outerHTML),(0,F.ib)(T[T.currentMode].element,P);var bt=(0,A.O9)(P.startContainer);bt&&bt.querySelectorAll(".vditor-".concat(T.currentMode,"__preview[data-render='2']")).forEach(function(jt){U(jt,T),T.currentMode==="wysiwyg"&&jt.previousElementSibling.setAttribute("style","display:none")}),Dr(T),Le(T)}else T[T.currentMode].element.focus()},Si=function(T,I){for(var P=getSelection().getRangeAt(0).startContainer.parentElement,$=T.rows[0].cells.length,V=T.rows.length,J=0,Te=0;Te<V;Te++)for(var Xe=0;Xe<$;Xe++)if(T.rows[Te].cells[Xe].isSameNode(P)){J=Xe;break}for(var st=0;st<V;st++)T.rows[st].cells[J].setAttribute("align",I)},yi=function(T){var I=T.trimRight().split(`
- `).pop();return I===""?!1:(I.replace(/ |-/g,"")===""||I.replace(/ |_/g,"")===""||I.replace(/ |\*/g,"")==="")&&I.replace(/ /g,"").length>2?!(I.indexOf("-")>-1&&I.trimLeft().indexOf(" ")===-1&&T.trimRight().split(`
- `).length>1||I.indexOf(" ")===0||I.indexOf(" ")===0):!1},sa=function(T){var I=T.trimRight().split(`
- `);return T=I.pop(),T.indexOf(" ")===0||T.indexOf(" ")===0||(T=T.trimLeft(),T===""||I.length===0)?!1:T.replace(/-/g,"")===""||T.replace(/=/g,"")===""},Dr=function(T,I){I===void 0&&(I={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),T.currentMode==="wysiwyg"?Re(T,I):T.currentMode==="ir"?we(T,I):T.currentMode==="sv"&&Xt(T,I)},Mi=function(T,I,P,$){var V,J=T.startContainer,Te=(0,A.lG)(J,"LI");if(Te){if(!(0,f.yl)($)&&!$.altKey&&$.key==="Enter"&&!$.shiftKey&&P&&Te.contains(P)&&P.nextElementSibling)return Te&&!Te.textContent.endsWith(`
- `)&&Te.insertAdjacentText("beforeend",`
- `),T.insertNode(document.createTextNode(`
- `)),T.collapse(!1),Dr(I),$.preventDefault(),!0;if(!(0,f.yl)($)&&!$.shiftKey&&!$.altKey&&$.key==="Backspace"&&!Te.previousElementSibling&&T.toString()===""&&(0,F.im)(Te,I[I.currentMode].element,T).start===0)return Te.nextElementSibling?(Te.parentElement.insertAdjacentHTML("beforebegin",'<p data-block="0"><wbr>'.concat(Te.innerHTML,"</p>")),Te.remove()):Te.parentElement.outerHTML='<p data-block="0"><wbr>'.concat(Te.innerHTML,"</p>"),(0,F.ib)(I[I.currentMode].element,T),Dr(I),$.preventDefault(),!0;if(!(0,f.yl)($)&&!$.shiftKey&&!$.altKey&&$.key==="Backspace"&&Te.textContent.trim().replace(s.g.ZWSP,"")===""&&T.toString()===""&&((V=Te.previousElementSibling)===null||V===void 0?void 0:V.tagName)==="LI")return Te.previousElementSibling.insertAdjacentText("beforeend",`
- `),T.selectNodeContents(Te.previousElementSibling),T.collapse(!1),Te.remove(),(0,F.ib)(I[I.currentMode].element,T),Dr(I),$.preventDefault(),!0;if(!(0,f.yl)($)&&!$.altKey&&$.key==="Tab"){var Xe=!1;if((T.startOffset===0&&(J.nodeType===3&&!J.previousSibling||J.nodeType!==3&&J.nodeName==="LI")||Te.classList.contains("vditor-task")&&T.startOffset===1&&J.previousSibling.nodeType!==3&&J.previousSibling.tagName==="INPUT")&&(Xe=!0),Xe||T.toString()!=="")return $.shiftKey?mi(I,Te,T,Te.parentElement):Oi(I,Te,T),$.preventDefault(),!0}}return!1},xa=function(T,I,P){if(T.options.tab&&P.key==="Tab")return P.shiftKey||(I.toString()===""?(I.insertNode(document.createTextNode(T.options.tab)),I.collapse(!1)):(I.extractContents(),I.insertNode(document.createTextNode(T.options.tab)),I.collapse(!1))),(0,F.Hc)(I),Dr(T),P.preventDefault(),!0},Qe=function(T,I,P,$){if(P){if(!(0,f.yl)(T)&&!T.altKey&&T.key==="Enter"){var V=String.raw(yr||(yr=Rr(["",""],["",""])),P.textContent).replace(/\\\|/g,"").trim(),J=V.split("|");if(V.startsWith("|")&&V.endsWith("|")&&J.length>3){var Te=J.map(function(){return"---"}).join("|");return Te=P.textContent+`
- `+Te.substring(3,Te.length-3)+`
- |<wbr>`,P.outerHTML=I.lute.SpinVditorDOM(Te),(0,F.ib)(I[I.currentMode].element,$),Dr(I),Bn(I),T.preventDefault(),!0}if(yi(P.innerHTML)&&P.previousElementSibling){var Xe="",st=P.innerHTML.trimRight().split(`
- `);return st.length>1&&(st.pop(),Xe='<p data-block="0">'.concat(st.join(`
- `),"</p>")),P.insertAdjacentHTML("afterend","".concat(Xe,`<hr data-block="0"><p data-block="0"><wbr>
- </p>`)),P.remove(),(0,F.ib)(I[I.currentMode].element,$),Dr(I),Bn(I),T.preventDefault(),!0}if(sa(P.innerHTML))return I.currentMode==="wysiwyg"?P.outerHTML=I.lute.SpinVditorDOM(P.innerHTML+`<p data-block="0"><wbr>
- </p>`):P.outerHTML=I.lute.SpinVditorIRDOM(P.innerHTML+`<p data-block="0"><wbr>
- </p>`),(0,F.ib)(I[I.currentMode].element,$),Dr(I),Bn(I),T.preventDefault(),!0}if($.collapsed&&P.previousElementSibling&&T.key==="Backspace"&&!(0,f.yl)(T)&&!T.altKey&&!T.shiftKey&&P.textContent.trimRight().split(`
- `).length>1&&(0,F.im)(P,I[I.currentMode].element,$).start===0){var Ke=(0,A.DX)(P.previousElementSibling);return Ke.textContent.endsWith(`
- `)||(Ke.textContent=Ke.textContent+`
- `),Ke.parentElement.insertAdjacentHTML("beforeend","<wbr>".concat(P.innerHTML)),P.remove(),(0,F.ib)(I[I.currentMode].element,$),!1}return!1}},Ve=function(T,I,P){for(var $="",V=0;V<P.parentElement.childElementCount;V++)$+='<td align="'.concat(P.parentElement.children[V].getAttribute("align"),'"> </td>');P.tagName==="TH"?P.parentElement.parentElement.insertAdjacentHTML("afterend","<tbody><tr>".concat($,"</tr></tbody>")):P.parentElement.insertAdjacentHTML("afterend","<tr>".concat($,"</tr>")),Dr(T)},ne=function(T,I,P){for(var $="",V=0;V<P.parentElement.childElementCount;V++)P.tagName==="TH"?$+='<th align="'.concat(P.parentElement.children[V].getAttribute("align"),'"> </th>'):$+='<td align="'.concat(P.parentElement.children[V].getAttribute("align"),'"> </td>');if(P.tagName==="TH"){P.parentElement.parentElement.insertAdjacentHTML("beforebegin","<thead><tr>".concat($,"</tr></thead>")),I.insertNode(document.createElement("wbr"));var J=P.parentElement.innerHTML.replace(/<th>/g,"<td>").replace(/<\/th>/g,"</td>");P.parentElement.parentElement.nextElementSibling.insertAdjacentHTML("afterbegin",J),P.parentElement.parentElement.remove(),(0,F.ib)(T.ir.element,I)}else P.parentElement.insertAdjacentHTML("beforebegin","<tr>".concat($,"</tr>"));Dr(T)},Oe=function(T,I,P,$){$===void 0&&($="afterend");for(var V=0,J=P.previousElementSibling;J;)V++,J=J.previousElementSibling;for(var Te=0;Te<I.rows.length;Te++)Te===0?I.rows[Te].cells[V].insertAdjacentHTML($,"<th> </th>"):I.rows[Te].cells[V].insertAdjacentHTML($,"<td> </td>");Dr(T)},Ge=function(T,I,P){if(P.tagName==="TD"){var $=P.parentElement.parentElement;P.parentElement.previousElementSibling?I.selectNodeContents(P.parentElement.previousElementSibling.lastElementChild):I.selectNodeContents($.previousElementSibling.lastElementChild.lastElementChild),$.childElementCount===1?$.remove():P.parentElement.remove(),I.collapse(!1),(0,F.Hc)(I),Dr(T)}},$t=function(T,I,P,$){for(var V=0,J=$.previousElementSibling;J;)V++,J=J.previousElementSibling;($.previousElementSibling||$.nextElementSibling)&&(I.selectNodeContents($.previousElementSibling||$.nextElementSibling),I.collapse(!0));for(var Te=0;Te<P.rows.length;Te++){var Xe=P.rows[Te].cells;if(Xe.length===1){P.remove(),Le(T);break}Xe[V].remove()}(0,F.Hc)(I),Dr(T)},Ot=function(T,I,P){var $=P.startContainer,V=(0,A.lG)($,"TD")||(0,A.lG)($,"TH");if(V){if(!(0,f.yl)(I)&&!I.altKey&&I.key==="Enter"){(!V.lastElementChild||V.lastElementChild&&(!V.lastElementChild.isSameNode(V.lastChild)||V.lastElementChild.tagName!=="BR"))&&V.insertAdjacentHTML("beforeend","<br>");var J=document.createElement("br");return P.insertNode(J),P.setStartAfter(J),Dr(T),Bn(T),I.preventDefault(),!0}if(I.key==="Tab"){if(I.shiftKey)return aa(V,P),I.preventDefault(),!0;var Te=V.nextElementSibling;return Te||(V.parentElement.nextElementSibling?Te=V.parentElement.nextElementSibling.firstElementChild:V.parentElement.parentElement.tagName==="THEAD"&&V.parentElement.parentElement.nextElementSibling?Te=V.parentElement.parentElement.nextElementSibling.firstElementChild.firstElementChild:Te=null),Te&&(P.selectNodeContents(Te),(0,F.Hc)(P)),I.preventDefault(),!0}var Xe=V.parentElement.parentElement.parentElement;if(I.key==="ArrowUp"){if(I.preventDefault(),V.tagName==="TH")return Xe.previousElementSibling?(P.selectNodeContents(Xe.previousElementSibling),P.collapse(!1),(0,F.Hc)(P)):ni(T,"beforebegin"),!0;for(var st=0,Ke=V.parentElement;st<Ke.cells.length&&!Ke.cells[st].isSameNode(V);st++);var bt=Ke.previousElementSibling;return bt||(bt=Ke.parentElement.previousElementSibling.firstChild),P.selectNodeContents(bt.cells[st]),P.collapse(!1),(0,F.Hc)(P),!0}if(I.key==="ArrowDown"){I.preventDefault();var Ke=V.parentElement;if(!Ke.nextElementSibling&&V.tagName==="TD")return Xe.nextElementSibling?(P.selectNodeContents(Xe.nextElementSibling),P.collapse(!0),(0,F.Hc)(P)):ni(T,"afterend"),!0;for(var st=0;st<Ke.cells.length&&!Ke.cells[st].isSameNode(V);st++);var Te=Ke.nextElementSibling;return Te||(Te=Ke.parentElement.nextElementSibling.firstChild),P.selectNodeContents(Te.cells[st]),P.collapse(!0),(0,F.Hc)(P),!0}if(T.currentMode==="wysiwyg"&&!(0,f.yl)(I)&&I.key==="Enter"&&!I.shiftKey&&I.altKey){var jt=T.wysiwyg.popover.querySelector(".vditor-input");return jt.focus(),jt.select(),I.preventDefault(),!0}if(!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey&&I.key==="Backspace"&&P.startOffset===0&&P.toString()===""){var An=aa(V,P,!1);return!An&&Xe&&(Xe.textContent.trim()===""?(Xe.outerHTML=`<p data-block="0"><wbr>
- </p>`,(0,F.ib)(T[T.currentMode].element,P)):(P.setStartBefore(Xe),P.collapse(!0)),Dr(T)),I.preventDefault(),!0}if(Z("⇧⌘F",I))return ne(T,P,V),I.preventDefault(),!0;if(Z("⌘=",I))return Ve(T,P,V),I.preventDefault(),!0;if(Z("⇧⌘G",I))return Oe(T,Xe,V,"beforebegin"),I.preventDefault(),!0;if(Z("⇧⌘=",I))return Oe(T,Xe,V),I.preventDefault(),!0;if(Z("⌘-",I))return Ge(T,P,V),I.preventDefault(),!0;if(Z("⇧⌘-",I))return $t(T,P,Xe,V),I.preventDefault(),!0;if(Z("⇧⌘L",I)){if(T.currentMode==="ir")return Si(Xe,"left"),Dr(T),I.preventDefault(),!0;var On=T.wysiwyg.popover.querySelector('[data-type="left"]');if(On)return On.click(),I.preventDefault(),!0}if(Z("⇧⌘C",I)){if(T.currentMode==="ir")return Si(Xe,"center"),Dr(T),I.preventDefault(),!0;var On=T.wysiwyg.popover.querySelector('[data-type="center"]');if(On)return On.click(),I.preventDefault(),!0}if(Z("⇧⌘R",I)){if(T.currentMode==="ir")return Si(Xe,"right"),Dr(T),I.preventDefault(),!0;var On=T.wysiwyg.popover.querySelector('[data-type="right"]');if(On)return On.click(),I.preventDefault(),!0}}return!1},ln=function(T,I,P,$){if(P.tagName==="PRE"&&Z("⌘A",I))return $.selectNodeContents(P.firstElementChild),I.preventDefault(),!0;if(T.options.tab&&I.key==="Tab"&&!I.shiftKey&&$.toString()==="")return $.insertNode(document.createTextNode(T.options.tab)),$.collapse(!1),Dr(T),I.preventDefault(),!0;if(I.key==="Backspace"&&!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey){var V=(0,F.im)(P,T[T.currentMode].element,$);if((V.start===0||V.start===1&&P.innerText===`
- `)&&$.toString()==="")return P.parentElement.outerHTML='<p data-block="0"><wbr>'.concat(P.firstElementChild.innerHTML,"</p>"),(0,F.ib)(T[T.currentMode].element,$),Dr(T),I.preventDefault(),!0}return!(0,f.yl)(I)&&!I.altKey&&I.key==="Enter"?(P.firstElementChild.textContent.endsWith(`
- `)||P.firstElementChild.insertAdjacentText("beforeend",`
- `),$.extractContents(),$.insertNode(document.createTextNode(`
- `)),$.collapse(!1),(0,F.Hc)($),(0,f.vU)()||(T.currentMode==="wysiwyg"?vo(T,$):te(T,$)),Bn(T),I.preventDefault(),!0):!1},fn=function(T,I,P,$){var V=I.startContainer,J=(0,A.lG)(V,"BLOCKQUOTE");if(J&&I.toString()===""){if(P.key==="Backspace"&&!(0,f.yl)(P)&&!P.shiftKey&&!P.altKey&&(0,F.im)(J,T[T.currentMode].element,I).start===0)return I.insertNode(document.createElement("wbr")),J.outerHTML=J.innerHTML,(0,F.ib)(T[T.currentMode].element,I),Dr(T),P.preventDefault(),!0;if($&&P.key==="Enter"&&!(0,f.yl)(P)&&!P.shiftKey&&!P.altKey&&$.parentElement.tagName==="BLOCKQUOTE"){var Te=!1;if($.innerHTML.replace(s.g.ZWSP,"")===`
- `||$.innerHTML.replace(s.g.ZWSP,"")===""?(Te=!0,$.remove()):$.innerHTML.endsWith(`
- `)&&(0,F.im)($,T[T.currentMode].element,I).start===$.textContent.length-1&&($.innerHTML=$.innerHTML.substr(0,$.innerHTML.length-2),Te=!0),Te)return J.insertAdjacentHTML("afterend",'<p data-block="0">'.concat(s.g.ZWSP,`<wbr>
- </p>`)),(0,F.ib)(T[T.currentMode].element,I),Dr(T),P.preventDefault(),!0}var Xe=(0,A.F9)(V);if(T.currentMode==="wysiwyg"&&Xe&&Z("⇧⌘;",P))return I.insertNode(document.createElement("wbr")),Xe.outerHTML='<blockquote data-block="0">'.concat(Xe.outerHTML,"</blockquote>"),(0,F.ib)(T.wysiwyg.element,I),Re(T),P.preventDefault(),!0;if(Ci(T,P,I,J,J)||xi(T,P,I,J,J))return!0}return!1},Cn=function(T,I,P){var $=I.startContainer,V=(0,A.lG)($,"LI");if(V&&V.classList.contains("vditor-task")){if(Z("⇧⌘J",P)){var J=V.firstElementChild;return J.checked?J.removeAttribute("checked"):J.setAttribute("checked","checked"),Dr(T),P.preventDefault(),!0}if(P.key==="Backspace"&&!(0,f.yl)(P)&&!P.shiftKey&&!P.altKey&&I.toString()===""&&I.startOffset===1&&($.nodeType===3&&$.previousSibling&&$.previousSibling.tagName==="INPUT"||$.nodeType!==3)){var Te=V.previousElementSibling;if(V.querySelector("input").remove(),Te){var Xe=(0,A.DX)(Te);Xe.parentElement.insertAdjacentHTML("beforeend","<wbr>"+V.innerHTML.trim()),V.remove()}else V.parentElement.insertAdjacentHTML("beforebegin",'<p data-block="0"><wbr>'.concat(V.innerHTML.trim()||`
- `,"</p>")),V.nextElementSibling?V.remove():V.parentElement.remove();return(0,F.ib)(T[T.currentMode].element,I),Dr(T),P.preventDefault(),!0}if(P.key==="Enter"&&!(0,f.yl)(P)&&!P.shiftKey&&!P.altKey){if(V.textContent.trim()==="")if((0,A.fb)(V.parentElement,"vditor-task")){var st=(0,A.O9)($);st&&mi(T,V,I,st)}else if(V.nextElementSibling){var Ke="",bt="",jt=!1;Array.from(V.parentElement.children).forEach(function(Mn){V.isSameNode(Mn)?jt=!0:jt?Ke+=Mn.outerHTML:bt+=Mn.outerHTML});var An=V.parentElement.tagName,On=V.parentElement.tagName==="OL"?"":' data-marker="'.concat(V.parentElement.getAttribute("data-marker"),'"'),xn="";bt&&(xn=V.parentElement.tagName==="UL"?"":' start="1"',bt="<".concat(An,' data-tight="true"').concat(On,' data-block="0">').concat(bt,"</").concat(An,">")),V.parentElement.outerHTML="".concat(bt,`<p data-block="0"><wbr>
- </p><`).concat(An,`
- data-tight="true"`).concat(On,' data-block="0"').concat(xn,">").concat(Ke,"</").concat(An,">")}else V.parentElement.insertAdjacentHTML("afterend",`<p data-block="0"><wbr>
- </p>`),V.parentElement.querySelectorAll("li").length===1?V.parentElement.remove():V.remove();else $.nodeType!==3&&I.startOffset===0&&$.firstChild.tagName==="INPUT"?I.setStart($.childNodes[1],1):(I.setEndAfter(V.lastChild),V.insertAdjacentHTML("afterend",'<li class="vditor-task" data-marker="'.concat(V.getAttribute("data-marker"),'"><input type="checkbox"> <wbr></li>')),document.querySelector("wbr").after(I.extractContents()));return(0,F.ib)(T[T.currentMode].element,I),Dr(T),Bn(T),P.preventDefault(),!0}}return!1},sr=function(T,I,P,$){if(I.startContainer.nodeType!==3){var V=I.startContainer.children[I.startOffset];if(V&&V.tagName==="HR")return I.selectNodeContents(V.previousElementSibling),I.collapse(!1),P.preventDefault(),!0}if($){var J=$.previousElementSibling;if(J&&(0,F.im)($,T[T.currentMode].element,I).start===0&&((0,f.vU)()&&J.tagName==="HR"||J.tagName==="TABLE")){if(J.tagName==="TABLE"){var Te=J.lastElementChild.lastElementChild.lastElementChild;Te.innerHTML=Te.innerHTML.trimLeft()+"<wbr>"+$.textContent.trim(),$.remove()}else J.remove();return(0,F.ib)(T[T.currentMode].element,I),Dr(T),P.preventDefault(),!0}}return!1},Kn=function(T){(0,f.vU)()&&T.startContainer.nodeType!==3&&T.startContainer.tagName==="HR"&&T.setStartBefore(T.startContainer)},Tr=function(T,I,P){var $,V;if(!(0,f.vU)())return!1;if(T.key==="ArrowUp"&&I&&(($=I.previousElementSibling)===null||$===void 0?void 0:$.tagName)==="TABLE"){var J=I.previousElementSibling;return P.selectNodeContents(J.rows[J.rows.length-1].lastElementChild),P.collapse(!1),T.preventDefault(),!0}return T.key==="ArrowDown"&&I&&((V=I.nextElementSibling)===null||V===void 0?void 0:V.tagName)==="TABLE"?(P.selectNodeContents(I.nextElementSibling.rows[0].cells[0]),P.collapse(!0),T.preventDefault(),!0):!1},ar=function(T,I,P){return Ur(void 0,void 0,void 0,function(){var $,V,J,Te,Xe,st,Ke,bt,jt,An,On,xn,Mn,En,Wn,En,Fn;return Hr(this,function(rr){switch(rr.label){case 0:return T[T.currentMode].element.getAttribute("contenteditable")!=="true"?[2]:(I.stopPropagation(),I.preventDefault(),"clipboardData"in I?($=I.clipboardData.getData("text/html"),V=I.clipboardData.getData("text/plain"),J=I.clipboardData.files):($=I.dataTransfer.getData("text/html"),V=I.dataTransfer.getData("text/plain"),I.dataTransfer.types.includes("Files")&&(J=I.dataTransfer.items)),Te={},Xe=function(zr,Xo){if(!Xo)return["",Lute.WalkContinue];if(T.options.upload.renderLinkDest)return T.options.upload.renderLinkDest(T,zr,Xo);var ir=zr.TokensStr();if(zr.__internal_object__.Parent.Type===34&&ir&&ir.indexOf("file://")===-1&&T.options.upload.linkToImgUrl){var Ni=new XMLHttpRequest;Ni.open("POST",T.options.upload.linkToImgUrl),T.options.upload.token&&Ni.setRequestHeader("X-Upload-Token",T.options.upload.token),T.options.upload.withCredentials&&(Ni.withCredentials=!0),jr(T,Ni),Ni.setRequestHeader("Content-Type","application/json; charset=utf-8"),Ni.onreadystatechange=function(){if(Ni.readyState===XMLHttpRequest.DONE){if(Ni.status===200){var Cl=Ni.responseText;T.options.upload.linkToImgFormat&&(Cl=T.options.upload.linkToImgFormat(Ni.responseText));var ys=JSON.parse(Cl);if(ys.code!==0){T.tip.show(ys.msg);return}var xl=ys.data.originalURL;if(T.currentMode==="sv")T.sv.element.querySelectorAll(".vditor-sv__marker--link").forEach(function(Ba){Ba.textContent===xl&&(Ba.textContent=ys.data.url)});else{var So=T[T.currentMode].element.querySelector('img[src="'.concat(xl,'"]'));So.src=ys.data.url,T.currentMode==="ir"&&(So.previousElementSibling.previousElementSibling.innerHTML=ys.data.url)}Dr(T)}else T.tip.show(Ni.responseText);T.options.upload.linkToImgCallback&&T.options.upload.linkToImgCallback(Ni.responseText)}},Ni.send(JSON.stringify({url:ir}))}return T.currentMode==="ir"?['<span class="vditor-ir__marker vditor-ir__marker--link">'.concat(Lute.EscapeHTMLStr(ir),"</span>"),Lute.WalkContinue]:T.currentMode==="wysiwyg"?["",Lute.WalkContinue]:['<span class="vditor-sv__marker--link">'.concat(Lute.EscapeHTMLStr(ir),"</span>"),Lute.WalkContinue]},($.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/ig,"").trim()==='<a href="'.concat(V,'">').concat(V,"</a>")||$.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/ig,"").trim()==='<!--StartFragment--><a href="'.concat(V,'">').concat(V,"</a><!--EndFragment-->"))&&($=""),st=new DOMParser().parseFromString($,"text/html"),st.body&&($=st.body.innerHTML),$=Lute.Sanitize($),T.wysiwyg.getComments(T),Ke=T[T.currentMode].element.scrollHeight,bt=Y($,V,T.currentMode),jt=T.currentMode==="sv"?(0,A.a1)(I.target,"data-type","code-block"):(0,A.lG)(I.target,"CODE"),jt?(T.currentMode==="sv"?document.execCommand("insertHTML",!1,V.replace(/&/g,"&").replace(/</g,"<")):(An=(0,F.im)(I.target,T[T.currentMode].element),jt.parentElement.tagName!=="PRE"&&(V+=s.g.ZWSP),jt.textContent=jt.textContent.substring(0,An.start)+V+jt.textContent.substring(An.end),(0,F.$j)(An.start+V.length,An.start+V.length,jt.parentElement),!((Fn=jt.parentElement)===null||Fn===void 0)&&Fn.nextElementSibling.classList.contains("vditor-".concat(T.currentMode,"__preview"))&&(jt.parentElement.nextElementSibling.innerHTML=jt.outerHTML,U(jt.parentElement.nextElementSibling,T))),[3,10]):[3,1]);case 1:return bt?(P.pasteCode(bt),[3,10]):[3,2];case 2:return $.trim()===""?[3,5]:(On=document.createElement("div"),On.innerHTML=$,T.options.upload.base64ToLink?[3,4]:[4,ur(T,On,("clipboardData"in I?I.clipboardData:I.dataTransfer).getData("text/rtf"))]);case 3:rr.sent(),rr.label=4;case 4:return On.querySelectorAll("[style]").forEach(function(zr){zr.removeAttribute("style")}),On.querySelectorAll(".vditor-copy").forEach(function(zr){zr.remove()}),T.currentMode==="ir"?(Te.HTML2VditorIRDOM={renderLinkDest:Xe},T.lute.SetJSRenderers({renderers:Te}),(0,F.oC)(T.lute.HTML2VditorIRDOM(On.innerHTML),T)):T.currentMode==="wysiwyg"?(Te.HTML2VditorDOM={renderLinkDest:Xe},T.lute.SetJSRenderers({renderers:Te}),(0,F.oC)(T.lute.HTML2VditorDOM(On.innerHTML),T)):(Te.Md2VditorSVDOM={renderLinkDest:Xe},T.lute.SetJSRenderers({renderers:Te}),Ye(T,T.lute.HTML2Md(On.innerHTML).trimRight())),T.outline.render(T),[3,10];case 5:return J.length>0?T.options.upload.url||T.options.upload.handler?[4,Yr(T,J)]:[3,7]:[3,9];case 6:return rr.sent(),[3,8];case 7:xn=new FileReader,"clipboardData"in I?(J=I.clipboardData.files,Mn=J[0]):I.dataTransfer.types.includes("Files")&&(J=I.dataTransfer.items,Mn=J[0].getAsFile()),Mn&&Mn.type.startsWith("image")&&(xn.readAsDataURL(Mn),xn.onload=function(){var zr="";T.currentMode==="wysiwyg"?zr+='<img alt="'.concat(Mn.name,'" src="').concat(xn.result.toString(),`">
- `):zr+=".concat(xn.result.toString(),`)
- `),document.execCommand("insertHTML",!1,zr)}),rr.label=8;case 8:return[3,10];case 9:V.trim()!==""&&J.length===0&&(En=(0,F.zh)(T),En.toString()!==""&&T.lute.IsValidLinkDest(V)&&(V="[".concat(En.toString(),"](").concat(V,")")),T.currentMode==="ir"?(Te.Md2VditorIRDOM={renderLinkDest:Xe},T.lute.SetJSRenderers({renderers:Te}),(0,F.oC)(Lute.Sanitize(T.lute.Md2VditorIRDOM(V)),T)):T.currentMode==="wysiwyg"?(Te.Md2VditorDOM={renderLinkDest:Xe},T.lute.SetJSRenderers({renderers:Te}),(0,F.oC)(Lute.Sanitize(T.lute.Md2VditorDOM(V)),T)):(Te.Md2VditorSVDOM={renderLinkDest:Xe},T.lute.SetJSRenderers({renderers:Te}),Ye(T,V)),T.outline.render(T)),rr.label=10;case 10:return T.currentMode!=="sv"&&(Wn=(0,A.F9)((0,F.zh)(T).startContainer),Wn&&(En=(0,F.zh)(T),T[T.currentMode].element.querySelectorAll("wbr").forEach(function(zr){zr.remove()}),En.insertNode(document.createElement("wbr")),T.currentMode==="wysiwyg"?Wn.outerHTML=T.lute.SpinVditorDOM(Wn.outerHTML):Wn.outerHTML=T.lute.SpinVditorIRDOM(Wn.outerHTML),(0,F.ib)(T[T.currentMode].element,En)),T[T.currentMode].element.querySelectorAll(".vditor-".concat(T.currentMode,"__preview[data-render='2']")).forEach(function(zr){U(zr,T)})),T.wysiwyg.triggerRemoveComment(T),Dr(T),T[T.currentMode].element.scrollHeight-Ke>Math.min(T[T.currentMode].element.clientHeight,window.innerHeight)/2&&Bn(T),[2]}})})},ur=function(T,I,P){return Ur(void 0,void 0,void 0,function(){var $,V,J,Te,Xe,st,Ke,bt,jt,Mn,An,On,xn,Mn,Wn,En;return Hr(this,function(Fn){switch(Fn.label){case 0:if(!P)return[2];if($=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,V=new RegExp("(?:("+$.source+"))([\\da-fA-F\\s]+)\\}","g"),J=P.match(V),Te=[],J)for(Xe=0,st=J;Xe<st.length;Xe++)Ke=st[Xe],bt=void 0,Ke.includes("\\pngblip")?bt="image/png":Ke.includes("\\jpegblip")&&(bt="image/jpeg"),bt&&Te.push({hex:Ke.replace($,"").replace(/[^\da-fA-F]/g,""),type:bt});for(jt=[],Lr(I,function(rr){if(rr.tagName==="V:SHAPE")return Lr(rr,function(zr){zr.tagName==="V:IMAGEDATA"&&jt.push({shape:rr,img:zr})}),!1}),Mn=0;Mn<jt.length;Mn++)An=document.createElement("img"),On="data:"+Te[Mn].type+";base64,"+btoa((Te[Mn].hex.match(/\w{2}/g)||[]).map(function(rr){return String.fromCharCode(parseInt(rr,16))}).join("")),An.src=On,An.title=jt[Mn].img.getAttribute("title"),jt[Mn].shape.parentNode.replaceChild(An,jt[Mn].shape);xn=I.querySelectorAll("img"),Mn=0,Fn.label=1;case 1:return Mn<xn.length?(Wn=xn[Mn].src||"",Wn?(En=xn[Mn],[4,T.options.upload.base64ToLink(Wn)]):[3,3]):[3,4];case 2:En.src=Fn.sent(),Fn.label=3;case 3:return Mn++,[3,1];case 4:return[2]}})})},Lr=function(T,I){var P=I(T);if(P!==!1)for(var $=0;$<T.children.length;$++)Lr(T.children[$],I)},yr,Ar=function(T){var I,P;T.hint.render(T);var $=(0,F.zh)(T).startContainer,V=(0,A.a1)($,"data-type","code-block-info");if(V)if(V.textContent.replace(s.g.ZWSP,"")===""&&T.hint.recentLanguage){V.textContent=s.g.ZWSP+T.hint.recentLanguage;var J=(0,F.zh)(T);J.selectNodeContents(V)}else{var Te=[],Xe=V.textContent.substring(0,(0,F.im)(V,T.ir.element).start).replace(s.g.ZWSP,"");(T.options.preview.hljs.langs||s.g.ALIAS_CODE_LANGUAGES.concat(((P=(I=window.hljs)===null||I===void 0?void 0:I.listLanguages())!==null&&P!==void 0?P:[]).sort())).forEach(function(st){st.indexOf(Xe.toLowerCase())>-1&&Te.push({html:st,value:st})}),T.hint.genHTML(Te,Xe,T)}},we=function(T,I){I===void 0&&(I={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),I.enableHint&&Ar(T),clearTimeout(T.ir.processTimeoutId),T.ir.processTimeoutId=window.setTimeout(function(){if(!T.ir.composingLock){var P=u(T);typeof T.options.input=="function"&&I.enableInput&&T.options.input(P),T.options.counter.enable&&T.counter.render(T,P),T.options.cache.enable&&(0,f.pK)()&&(localStorage.setItem(T.options.cache.id,P),T.options.cache.after&&T.options.cache.after(P)),T.devtools&&T.devtools.renderEchart(T),I.enableAddUndoStack&&T.undo.addToUndoStack(T)}},T.options.undoDelay)},ae=function(T,I){var P=(0,F.zh)(T),$=(0,A.F9)(P.startContainer)||P.startContainer;if($){var V=$.querySelector(".vditor-ir__marker--heading");V?V.innerHTML=I:($.insertAdjacentText("afterbegin",I),P.selectNodeContents($),P.collapse(!1)),te(T,P.cloneRange()),Ne(T)}},ce=function(T,I,P){var $=(0,A.a1)(T.startContainer,"data-type",P);if($){$.firstElementChild.remove(),$.lastElementChild.remove(),T.insertNode(document.createElement("wbr"));var V=document.createElement("div");V.innerHTML=I.lute.SpinVditorIRDOM($.outerHTML),$.outerHTML=V.firstElementChild.innerHTML.trim()}},Ce=function(T,I,P,$){var V=(0,F.zh)(T),J=I.getAttribute("data-type"),Te=V.startContainer;Te.nodeType===3&&(Te=Te.parentElement);var Xe=!0;if(I.classList.contains("vditor-menu--current"))if(J==="quote"){var st=(0,A.lG)(Te,"BLOCKQUOTE");st&&(V.insertNode(document.createElement("wbr")),st.outerHTML=st.innerHTML.trim()===""?'<p data-block="0">'.concat(st.innerHTML,"</p>"):st.innerHTML)}else if(J==="link"){var Ke=(0,A.a1)(V.startContainer,"data-type","a");if(Ke){var bt=(0,A.fb)(V.startContainer,"vditor-ir__link");bt?(V.insertNode(document.createElement("wbr")),Ke.outerHTML=bt.innerHTML):Ke.outerHTML=Ke.querySelector(".vditor-ir__link").innerHTML+"<wbr>"}}else J==="italic"?ce(V,T,"em"):J==="bold"?ce(V,T,"strong"):J==="strike"?ce(V,T,"s"):J==="inline-code"?ce(V,T,"code"):(J==="check"||J==="list"||J==="ordered-list")&&(is(T,V,J),Xe=!1,I.classList.remove("vditor-menu--current"));else{T.ir.element.childNodes.length===0&&(T.ir.element.innerHTML='<p data-block="0"><wbr></p>',(0,F.ib)(T.ir.element,V));var jt=(0,A.F9)(V.startContainer);if(J==="line"){if(jt){var An=`<hr data-block="0"><p data-block="0"><wbr>
- </p>`;jt.innerHTML.trim()===""?jt.outerHTML=An:jt.insertAdjacentHTML("afterend",An)}}else if(J==="quote")jt&&(V.insertNode(document.createElement("wbr")),jt.outerHTML='<blockquote data-block="0">'.concat(jt.outerHTML,"</blockquote>"),Xe=!1,I.classList.add("vditor-menu--current"));else if(J==="link"){var On=void 0;V.toString()===""?On="".concat(P,"<wbr>").concat($):On="".concat(P).concat(V.toString()).concat($.replace(")","<wbr>)")),document.execCommand("insertHTML",!1,On),Xe=!1,I.classList.add("vditor-menu--current")}else if(J==="italic"||J==="bold"||J==="strike"||J==="inline-code"||J==="code"||J==="table"){var On=void 0;V.toString()===""?On="".concat(P,"<wbr>").concat($):(J==="code"?On="".concat(P,`
- `).concat(V.toString(),"<wbr>").concat($):J==="table"?On="".concat(P).concat(V.toString(),"<wbr>").concat($):On="".concat(P).concat(V.toString()).concat($,"<wbr>"),V.deleteContents()),(J==="table"||J==="code")&&(On=`
- `+On+`
- `);var xn=document.createElement("span");xn.innerHTML=On,V.insertNode(xn),te(T,V),J==="table"&&(V.selectNodeContents(getSelection().getRangeAt(0).startContainer.parentElement),(0,F.Hc)(V))}else(J==="check"||J==="list"||J==="ordered-list")&&(is(T,V,J,!1),Xe=!1,p(T.toolbar.elements,["check","list","ordered-list"]),I.classList.add("vditor-menu--current"))}(0,F.ib)(T.ir.element,V),we(T),Xe&&Ne(T)},zt=function(T,I,P,$){function V(J){return J instanceof P?J:new P(function(Te){Te(J)})}return new(P||(P=Promise))(function(J,Te){function Xe(bt){try{Ke($.next(bt))}catch(jt){Te(jt)}}function st(bt){try{Ke($.throw(bt))}catch(jt){Te(jt)}}function Ke(bt){bt.done?J(bt.value):V(bt.value).then(Xe,st)}Ke(($=$.apply(T,I||[])).next())})},_t=function(T,I){var P={label:0,sent:function(){if(J[0]&1)throw J[1];return J[1]},trys:[],ops:[]},$,V,J,Te;return Te={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(Te[Symbol.iterator]=function(){return this}),Te;function Xe(Ke){return function(bt){return st([Ke,bt])}}function st(Ke){if($)throw new TypeError("Generator is already executing.");for(;Te&&(Te=0,Ke[0]&&(P=0)),P;)try{if($=1,V&&(J=Ke[0]&2?V.return:Ke[0]?V.throw||((J=V.return)&&J.call(V),0):V.next)&&!(J=J.call(V,Ke[1])).done)return J;switch(V=0,J&&(Ke=[Ke[0]&2,J.value]),Ke[0]){case 0:case 1:J=Ke;break;case 4:return P.label++,{value:Ke[1],done:!1};case 5:P.label++,V=Ke[1],Ke=[0];continue;case 7:Ke=P.ops.pop(),P.trys.pop();continue;default:if(J=P.trys,!(J=J.length>0&&J[J.length-1])&&(Ke[0]===6||Ke[0]===2)){P=0;continue}if(Ke[0]===3&&(!J||Ke[1]>J[0]&&Ke[1]<J[3])){P.label=Ke[1];break}if(Ke[0]===6&&P.label<J[1]){P.label=J[1],J=Ke;break}if(J&&P.label<J[2]){P.label=J[2],P.ops.push(Ke);break}J[2]&&P.ops.pop(),P.trys.pop();continue}Ke=I.call(T,P)}catch(bt){Ke=[6,bt],V=0}finally{$=J=0}if(Ke[0]&5)throw Ke[1];return{value:Ke[0]?Ke[1]:void 0,done:!0}}},mn=(function(){function T(I){var P=this;this.splitChar="",this.lastIndex=-1,this.fillEmoji=function($,V){P.element.style.display="none";var J=decodeURIComponent($.getAttribute("data-value")),Te=window.getSelection().getRangeAt(0);if(V.currentMode==="ir"){var Xe=(0,A.a1)(Te.startContainer,"data-type","code-block-info");if(Xe){Xe.textContent=s.g.ZWSP+J.trimRight(),Te.selectNodeContents(Xe),Te.collapse(!1),we(V),Xe.parentElement.querySelectorAll("code").forEach(function(jt){jt.className="language-"+J.trimRight()}),U(Xe.parentElement.querySelector(".vditor-ir__preview"),V),P.recentLanguage=J.trimRight();return}}if(V.currentMode==="wysiwyg"&&Te.startContainer.nodeType!==3){var st=Te.startContainer,Ke=void 0;if(st.classList.contains("vditor-input")?Ke=st:Ke=st.firstElementChild,Ke&&Ke.classList.contains("vditor-input")){Ke.value=J.trimRight(),Te.selectNodeContents(Ke),Te.collapse(!1),Ke.dispatchEvent(new CustomEvent("input",{detail:1})),P.recentLanguage=J.trimRight();return}}if(Te.setStart(Te.startContainer,P.lastIndex),Te.deleteContents(),V.options.hint.parse?V.currentMode==="sv"?(0,F.oC)(V.lute.SpinVditorSVDOM(J),V):V.currentMode==="wysiwyg"?(0,F.oC)(V.lute.SpinVditorDOM(J),V):(0,F.oC)(V.lute.SpinVditorIRDOM(J),V):(0,F.oC)(J,V),P.splitChar===":"&&J.indexOf(":")>-1&&V.currentMode!=="sv"&&Te.insertNode(document.createTextNode(" ")),Te.collapse(!1),(0,F.Hc)(Te),V.currentMode==="wysiwyg"){var bt=(0,A.fb)(Te.startContainer,"vditor-wysiwyg__block");bt&&bt.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(bt.lastElementChild.innerHTML=bt.firstElementChild.innerHTML,U(bt.lastElementChild,V))}else if(V.currentMode==="ir"){var bt=(0,A.fb)(Te.startContainer,"vditor-ir__marker--pre");bt&&bt.nextElementSibling.classList.contains("vditor-ir__preview")&&(bt.nextElementSibling.innerHTML=bt.innerHTML,U(bt.nextElementSibling,V))}Dr(V)},this.timeId=-1,this.element=document.createElement("div"),this.element.className="vditor-hint",this.recentLanguage="",I.push({key:":"})}return T.prototype.render=function(I){var P=this;if(window.getSelection().focusNode){var $,V=getSelection().getRangeAt(0);$=V.startContainer.textContent.substring(0,V.startOffset)||"";var J=this.getKey($,I.options.hint.extend);if(typeof J>"u")this.element.style.display="none",clearTimeout(this.timeId);else if(this.splitChar===":"){var Te=J===""?I.options.hint.emoji:I.lute.GetEmojis(),Xe=[];Object.keys(Te).forEach(function(st){st.indexOf(J.toLowerCase())===0&&(Te[st].indexOf(".")>-1?Xe.push({html:'<img src="'.concat(Te[st],'" title=":').concat(st,':"/> :').concat(st,":"),value:":".concat(st,":")}):Xe.push({html:'<span class="vditor-hint__emoji">'.concat(Te[st],"</span>").concat(st),value:Te[st]}))}),this.genHTML(Xe,J,I)}else I.options.hint.extend.forEach(function(st){st.key===P.splitChar&&(clearTimeout(P.timeId),P.timeId=window.setTimeout(function(){return zt(P,void 0,void 0,function(){var Ke;return _t(this,function(bt){switch(bt.label){case 0:return Ke=this.genHTML,[4,st.hint(J)];case 1:return Ke.apply(this,[bt.sent(),J,I]),[2]}})})},I.options.hint.delay))})}},T.prototype.genHTML=function(I,P,$){var V=this;if(I.length===0){this.element.style.display="none";return}var J=$[$.currentMode].element,Te=(0,F.Ny)(J),Xe=Te.left+($.options.outline.position==="left"?$.outline.element.offsetWidth:0),st=Te.top,Ke="";I.forEach(function(jt,An){if(!(An>7)){var On=jt.html;if(P!==""){var xn=On.lastIndexOf(">")+1,Mn=On.substr(xn),Wn=Mn.toLowerCase().indexOf(P.toLowerCase());Wn>-1&&(Mn=Mn.substring(0,Wn)+"<b>"+Mn.substring(Wn,Wn+P.length)+"</b>"+Mn.substring(Wn+P.length),On=On.substr(0,xn)+Mn)}Ke+='<button type="button" data-value="'.concat(encodeURIComponent(jt.value),` "
- `).concat(An===0?"class='vditor-hint--current'":"","> ").concat(On,"</button>")}}),this.element.innerHTML=Ke;var bt=parseInt(document.defaultView.getComputedStyle(J,null).getPropertyValue("line-height"),10);this.element.style.top="".concat(st+(bt||22),"px"),this.element.style.left="".concat(Xe,"px"),this.element.style.display="block",this.element.style.right="auto",this.element.querySelectorAll("button").forEach(function(jt){jt.addEventListener("click",function(An){V.fillEmoji(jt,$),An.preventDefault()})}),this.element.getBoundingClientRect().bottom>window.innerHeight&&(this.element.style.top="".concat(st-this.element.offsetHeight,"px")),this.element.getBoundingClientRect().right>window.innerWidth&&(this.element.style.left="auto",this.element.style.right="0")},T.prototype.select=function(I,P){if(this.element.querySelectorAll("button").length===0||this.element.style.display==="none")return!1;var $=this.element.querySelector(".vditor-hint--current");if(I.key==="ArrowDown")return I.preventDefault(),I.stopPropagation(),$.removeAttribute("class"),$.nextElementSibling?$.nextElementSibling.className="vditor-hint--current":this.element.children[0].className="vditor-hint--current",!0;if(I.key==="ArrowUp"){if(I.preventDefault(),I.stopPropagation(),$.removeAttribute("class"),$.previousElementSibling)$.previousElementSibling.className="vditor-hint--current";else{var V=this.element.children.length;this.element.children[V-1].className="vditor-hint--current"}return!0}else if(!(0,f.yl)(I)&&!I.shiftKey&&!I.altKey&&I.key==="Enter"&&!I.isComposing)return I.preventDefault(),I.stopPropagation(),this.fillEmoji($,P),!0;return!1},T.prototype.getKey=function(I,P){var $=this;this.lastIndex=-1,this.splitChar="",P.forEach(function(Ke){var bt=I.lastIndexOf(Ke.key);$.lastIndex<bt&&($.splitChar=Ke.key,$.lastIndex=bt)});var V;if(this.lastIndex===-1)return V;var J=I.split(this.splitChar),Te=J[J.length-1],Xe=32;if(J.length>1&&Te.trim()===Te)if(J.length===2&&J[0]===""&&J[1].length<Xe)V=J[1];else{var st=J[J.length-2].slice(-1);(0,l.X)(st)===" "&&Te.length<Xe&&(V=Te)}return V},T})(),wn=(function(){function T(I){this.composingLock=!1;var P=document.createElement("div");P.className="vditor-ir",P.innerHTML='<pre class="vditor-reset" placeholder="'.concat(I.options.placeholder,`"
- contenteditable="true" spellcheck="false"></pre>`),this.element=P.firstElementChild,this.bindEvent(I),fr(I,this.element),Nt(I,this.element),_n(I,this.element),Fr(I,this.element),kn(I,this.element),xt(I,this.element),Ft(I,this.element,this.copy),Sn(I,this.element,this.copy)}return T.prototype.copy=function(I,P){var $=getSelection().getRangeAt(0);if($.toString()!==""){I.stopPropagation(),I.preventDefault();var V=document.createElement("div");V.appendChild($.cloneContents()),I.clipboardData.setData("text/plain",P.lute.VditorIRDOM2Md(V.innerHTML).trim()),I.clipboardData.setData("text/html","")}},T.prototype.bindEvent=function(I){var P=this;this.element.addEventListener("paste",function($){ar(I,$,{pasteCode:function(V){document.execCommand("insertHTML",!1,V)}})}),this.element.addEventListener("scroll",function(){b(I,["hint"])}),this.element.addEventListener("compositionstart",function($){P.composingLock=!0}),this.element.addEventListener("compositionend",function($){(0,f.vU)()||te(I,getSelection().getRangeAt(0).cloneRange()),P.composingLock=!1}),this.element.addEventListener("input",function($){if(!($.inputType==="deleteByDrag"||$.inputType==="insertFromDrop")){if(P.preventInput){P.preventInput=!1,we(I,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0});return}P.composingLock||$.data==="‘"||$.data==="“"||$.data==="《"||te(I,getSelection().getRangeAt(0).cloneRange(),!1,$)}}),this.element.addEventListener("click",function($){if($.target.tagName==="INPUT"){$.target.checked?$.target.setAttribute("checked","checked"):$.target.removeAttribute("checked"),P.preventInput=!0,we(I);return}var V=(0,F.zh)(I),J=(0,A.fb)($.target,"vditor-ir__preview");if(J||(J=(0,A.fb)(V.startContainer,"vditor-ir__preview")),J&&(J.previousElementSibling.firstElementChild?V.selectNodeContents(J.previousElementSibling.firstElementChild):V.selectNodeContents(J.previousElementSibling),V.collapse(!0),(0,F.Hc)(V),Bn(I)),$.target.tagName==="IMG"){var Te=$.target.parentElement.querySelector(".vditor-ir__marker--link");Te&&(V.selectNode(Te),(0,F.Hc)(V))}var Xe=(0,A.a1)($.target,"data-type","a");if(Xe&&!Xe.classList.contains("vditor-ir__node--expand")){I.options.link.click?I.options.link.click(Xe.querySelector(":scope > .vditor-ir__marker--link")):I.options.link.isOpen&&window.open(Xe.querySelector(":scope > .vditor-ir__marker--link").textContent);return}if($.target.isEqualNode(P.element)&&P.element.lastElementChild&&V.collapsed){var st=P.element.lastElementChild.getBoundingClientRect();$.y>st.top+st.height&&(P.element.lastElementChild.tagName==="P"&&P.element.lastElementChild.textContent.trim().replace(s.g.ZWSP,"")===""?(V.selectNodeContents(P.element.lastElementChild),V.collapse(!1)):(P.element.insertAdjacentHTML("beforeend",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,F.ib)(P.element,V)))}V.toString()===""?Pe(V,I):setTimeout(function(){Pe((0,F.zh)(I),I)}),re($,I),Ne(I)}),this.element.addEventListener("keyup",function($){if(!($.isComposing||(0,f.yl)($))){if($.key==="Enter"&&Bn(I),Ne(I),($.key==="Backspace"||$.key==="Delete")&&I.ir.element.innerHTML!==""&&I.ir.element.childNodes.length===1&&I.ir.element.firstElementChild&&I.ir.element.firstElementChild.tagName==="P"&&I.ir.element.firstElementChild.childElementCount===0&&(I.ir.element.textContent===""||I.ir.element.textContent===`
- `)){I.ir.element.innerHTML="";return}var V=(0,F.zh)(I);$.key==="Backspace"?((0,f.vU)()&&V.startContainer.textContent===`
- `&&V.startOffset===1&&(V.startContainer.textContent="",Pe(V,I)),P.element.querySelectorAll(".language-math").forEach(function(Te){var Xe=Te.querySelector("br");Xe&&Xe.remove()})):$.key.indexOf("Arrow")>-1?(($.key==="ArrowLeft"||$.key==="ArrowRight")&&Ar(I),Pe(V,I)):$.keyCode===229&&$.code===""&&$.key==="Unidentified"&&Pe(V,I);var J=(0,A.fb)(V.startContainer,"vditor-ir__preview");if(J){if($.key==="ArrowUp"||$.key==="ArrowLeft")return J.previousElementSibling.firstElementChild?V.selectNodeContents(J.previousElementSibling.firstElementChild):V.selectNodeContents(J.previousElementSibling),V.collapse(!1),$.preventDefault(),!0;if(J.tagName==="SPAN"&&($.key==="ArrowDown"||$.key==="ArrowRight"))return J.parentElement.getAttribute("data-type")==="html-entity"?(J.parentElement.insertAdjacentText("afterend",s.g.ZWSP),V.setStart(J.parentElement.nextSibling,1)):V.selectNodeContents(J.parentElement.lastElementChild),V.collapse(!1),$.preventDefault(),!0}}})},T})(),Pn=function(T){if(T.currentMode==="sv")return T.lute.Md2HTML(u(T));if(T.currentMode==="wysiwyg")return T.lute.VditorDOM2HTML(T.wysiwyg.element.innerHTML);if(T.currentMode==="ir")return T.lute.VditorIRDOM2HTML(T.ir.element.innerHTML)},Cr=o(214),Ir=o(436),qo=(function(){function T(I){this.element=document.createElement("div"),this.element.className="vditor-outline",this.element.innerHTML='<div class="vditor-outline__title">'.concat(I,`</div>
- <div class="vditor-outline__content"></div>`)}return T.prototype.render=function(I){var P="";return I.preview.element.style.display==="block"?P=(0,Ir.k)(I.preview.previewElement,this.element.lastElementChild,I):P=(0,Ir.k)(I[I.currentMode].element,this.element.lastElementChild,I),P},T.prototype.toggle=function(I,P,$){var V;P===void 0&&(P=!0),$===void 0&&($=!0);var J=(V=I.toolbar.elements.outline)===null||V===void 0?void 0:V.firstElementChild;if(P&&window.innerWidth>=s.g.MOBILE_WIDTH?(this.element.style.display="block",this.render(I),J?.classList.add("vditor-menu--current")):(this.element.style.display="none",J?.classList.remove("vditor-menu--current")),$&&getSelection().rangeCount>0){var Te=getSelection().getRangeAt(0);I[I.currentMode].element.contains(Te.startContainer)&&(0,F.Hc)(Te)}ue(I)},T})(),Or=o(280),po=(function(){function T(I){var P=this;this.element=document.createElement("div"),this.element.className="vditor-preview",this.previewElement=document.createElement("div"),this.previewElement.className="vditor-reset",I.options.classes.preview&&this.previewElement.classList.add(I.options.classes.preview),this.previewElement.style.maxWidth=I.options.preview.maxWidth+"px",this.previewElement.addEventListener("copy",function(st){if(st.target.tagName!=="TEXTAREA"){var Ke=document.createElement("div");Ke.className="vditor-reset",Ke.appendChild(getSelection().getRangeAt(0).cloneContents()),P.copyToX(I,Ke,"default"),st.preventDefault()}}),this.previewElement.addEventListener("click",function(st){var Ke=(0,A.lG)(st.target,"SPAN");if(Ke&&(0,A.fb)(Ke,"vditor-toc")){var bt=P.previewElement.querySelector("#"+Ke.getAttribute("data-target-id"));bt&&(P.element.scrollTop=bt.offsetTop);return}if(st.target.tagName==="A"){I.options.link.click?I.options.link.click(st.target):I.options.link.isOpen&&window.open(st.target.getAttribute("href")),st.preventDefault();return}st.target.tagName==="IMG"&&(I.options.image.preview?I.options.image.preview(st.target):I.options.image.isPreview&&(0,he.E)(st.target,I.options.lang,I.options.theme))}),this.element.appendChild(this.previewElement);var $=I.options.preview.actions;if($.length!==0){var V=document.createElement("div");V.className="vditor-preview__action";for(var J=[],Te=0;Te<$.length;Te++){var Xe=$[Te];if(typeof Xe=="object"){J.push('<button type="button" data-type="'.concat(Xe.key,'" class="').concat(Xe.className,'"').concat(Xe.tooltip?' aria-label="'.concat(Xe.tooltip,'"'):"",'">').concat(Xe.text,"</button>"));continue}switch(Xe){case"desktop":J.push('<button type="button" class="vditor-preview__action--current" data-type="desktop">Desktop</button>');break;case"tablet":J.push('<button type="button" data-type="tablet">Tablet</button>');break;case"mobile":J.push('<button type="button" data-type="mobile">Mobile/Wechat</button>');break;case"mp-wechat":J.push('<button type="button" data-type="mp-wechat" class="vditor-tooltipped vditor-tooltipped__w" aria-label="复制到公众号"><svg><use xlink:href="#vditor-icon-mp-wechat"></use></svg></button>');break;case"zhihu":J.push('<button type="button" data-type="zhihu" class="vditor-tooltipped vditor-tooltipped__w" aria-label="复制到知乎"><svg><use xlink:href="#vditor-icon-zhihu"></use></svg></button>');break}}V.innerHTML=J.join(""),V.addEventListener((0,f.Le)(),function(st){var Ke=(0,S.S)(st.target,"BUTTON");if(Ke){var bt=Ke.getAttribute("data-type"),jt=$.find(function(An){return An?.key===bt});if(jt){jt.click(bt);return}if(bt==="mp-wechat"||bt==="zhihu"){P.copyToX(I,P.previewElement.cloneNode(!0),bt);return}bt==="desktop"?P.previewElement.style.width="auto":bt==="tablet"?P.previewElement.style.width="780px":P.previewElement.style.width="360px",P.previewElement.scrollWidth>P.previewElement.parentElement.clientWidth&&(P.previewElement.style.width="auto"),P.render(I),V.querySelectorAll("button").forEach(function(An){An.classList.remove("vditor-preview__action--current")}),Ke.classList.add("vditor-preview__action--current")}}),this.element.insertBefore(V,this.previewElement)}}return T.prototype.render=function(I,P){var $=this;if(clearTimeout(this.mdTimeoutId),this.element.style.display==="none"){this.element.getAttribute("data-type")==="renderPerformance"&&I.tip.hide();return}if(P){this.previewElement.innerHTML=P;return}if(u(I).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")===""){this.previewElement.innerHTML="";return}var V=new Date().getTime(),J=u(I);this.mdTimeoutId=window.setTimeout(function(){if(I.options.preview.url){var Te=new XMLHttpRequest;Te.open("POST",I.options.preview.url),Te.setRequestHeader("Content-Type","application/json;charset=UTF-8"),Te.onreadystatechange=function(){if(Te.readyState===XMLHttpRequest.DONE)if(Te.status===200){var st=JSON.parse(Te.responseText);if(st.code!==0){I.tip.show(st.msg);return}I.options.preview.transform&&(st.data=I.options.preview.transform(st.data)),$.previewElement.innerHTML=st.data,$.afterRender(I,V)}else{var Ke=I.lute.Md2HTML(J);I.options.preview.transform&&(Ke=I.options.preview.transform(Ke)),$.previewElement.innerHTML=Ke,$.afterRender(I,V)}},Te.send(JSON.stringify({markdownText:J}))}else{var Xe=I.lute.Md2HTML(J);I.options.preview.transform&&(Xe=I.options.preview.transform(Xe)),$.previewElement.innerHTML=Xe,$.afterRender(I,V)}},I.options.preview.delay)},T.prototype.afterRender=function(I,P){I.options.preview.parse&&I.options.preview.parse(this.element);var $=new Date().getTime()-P;new Date().getTime()-P>2600?(I.tip.show(window.VditorI18n.performanceTip.replace("${x}",$.toString())),I.preview.element.setAttribute("data-type","renderPerformance")):I.preview.element.getAttribute("data-type")==="renderPerformance"&&(I.tip.hide(),I.preview.element.removeAttribute("data-type"));var V=I.preview.element.querySelector(".vditor-comment--focus");V&&V.classList.remove("vditor-comment--focus"),(0,M.O)(I.preview.previewElement,I.options.preview.hljs),(0,R.s)(I.options.preview.hljs,I.preview.previewElement,I.options.cdn),(0,W.i)(I.preview.previewElement,I.options.cdn,I.options.theme),(0,B.K)(I.preview.previewElement,I.options.cdn),(0,q.J)(I.preview.previewElement,I.options.cdn,I.options.theme),(0,O.P)(I.preview.previewElement,I.options.cdn),(0,k.v)(I.preview.previewElement,I.options.cdn),(0,_.p)(I.preview.previewElement,I.options.cdn,I.options.theme),(0,z.P)(I.preview.previewElement,I.options.cdn,I.options.theme),(0,j.B)(I.preview.previewElement,I.options.cdn),(0,D.Q)(I.preview.previewElement,I.options.cdn),I.options.preview.render.media.enable&&(0,Or.Y)(I.preview.previewElement),I.options.customRenders.forEach(function(Xe){Xe.render(I.preview.previewElement,I)});var J=I.preview.element,Te=I.outline.render(I);Te===""&&(Te="[ToC]"),J.querySelectorAll('[data-type="toc-block"]').forEach(function(Xe){Xe.innerHTML=Te,(0,N.H)(Xe,{cdn:I.options.cdn,math:I.options.preview.math})}),(0,N.H)(I.preview.previewElement,{cdn:I.options.cdn,math:I.options.preview.math})},T.prototype.copyToX=function(I,P,$){$===void 0&&($="mp-wechat"),$!=="zhihu"?P.querySelectorAll(".katex-html .base").forEach(function(J){J.style.display="initial"}):P.querySelectorAll(".language-math").forEach(function(J){J.outerHTML='<img class="Formula-image" data-eeimg="true" src="//www.zhihu.com/equation?tex=" alt="'.concat(J.getAttribute("data-math"),'\\" style="display: block; margin: 0 auto; max-width: 100%;">')}),P.style.backgroundColor="#fff",P.querySelectorAll("code").forEach(function(J){J.style.backgroundImage="none"}),this.element.append(P);var V=P.ownerDocument.createRange();V.selectNode(P),(0,F.Hc)(V),document.execCommand("copy"),P.remove(),I.tip.show(["zhihu","mp-wechat"].includes($)?"已复制,可到".concat($==="zhihu"?"知乎":"微信公众号平台","进行粘贴"):"已复制到剪切板")},T})(),lo=(function(){function T(I){this.element=document.createElement("div"),this.element.className="vditor-resize vditor-resize--".concat(I.options.resize.position),this.element.innerHTML='<div><svg><use xlink:href="#vditor-icon-resize"></use></svg></div>',this.bindEvent(I)}return T.prototype.bindEvent=function(I){var P=this;this.element.addEventListener("mousedown",function($){var V=document,J=$.clientY,Te=I.element.offsetHeight,Xe=63+I.element.querySelector(".vditor-toolbar").clientHeight;V.ondragstart=function(){return!1},window.captureEvents&&window.captureEvents(),P.element.classList.add("vditor-resize--selected"),V.onmousemove=function(st){I.options.resize.position==="top"?I.element.style.height=Math.max(Xe,Te+(J-st.clientY))+"px":I.element.style.height=Math.max(Xe,Te+(st.clientY-J))+"px",I.options.typewriterMode&&(I.sv.element.style.paddingBottom=I.sv.element.parentElement.offsetHeight/2+"px")},V.onmouseup=function(){I.options.resize.after&&I.options.resize.after(I.element.offsetHeight-Te),window.captureEvents&&window.captureEvents(),V.onmousemove=null,V.onmouseup=null,V.ondragstart=null,V.onselectstart=null,V.onselect=null,P.element.classList.remove("vditor-resize--selected")}})},T})(),Go=(function(){function T(I){this.composingLock=!1,this.element=document.createElement("pre"),this.element.className="vditor-sv vditor-reset",this.element.setAttribute("placeholder",I.options.placeholder),this.element.setAttribute("contenteditable","true"),this.element.setAttribute("spellcheck","false"),this.bindEvent(I),fr(I,this.element),_n(I,this.element),Fr(I,this.element),kn(I,this.element),xt(I,this.element),Ft(I,this.element,this.copy),Sn(I,this.element,this.copy)}return T.prototype.copy=function(I,P){I.stopPropagation(),I.preventDefault(),I.clipboardData.setData("text/plain",wr(P[P.currentMode].element))},T.prototype.bindEvent=function(I){var P=this;this.element.addEventListener("paste",function($){ar(I,$,{pasteCode:function(V){document.execCommand("insertHTML",!1,V)}})}),this.element.addEventListener("scroll",function(){if(I.preview.element.style.display==="block"){var $=P.element.scrollTop,V=P.element.clientHeight,J=P.element.scrollHeight-parseFloat(P.element.style.paddingBottom||"0"),Te=I.preview.element;$/V>.5?Te.scrollTop=($+V)*Te.scrollHeight/J-V:Te.scrollTop=$*Te.scrollHeight/J}}),this.element.addEventListener("compositionstart",function($){P.composingLock=!0}),this.element.addEventListener("compositionend",function($){(0,f.vU)()||Q(I,$),P.composingLock=!1}),this.element.addEventListener("input",function($){if(!($.inputType==="deleteByDrag"||$.inputType==="insertFromDrop")&&!(P.composingLock||$.data==="‘"||$.data==="“"||$.data==="《")){if(P.preventInput){P.preventInput=!1,Xt(I,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0});return}Q(I,$)}}),this.element.addEventListener("keyup",function($){if(!($.isComposing||(0,f.yl)($))){if(($.key==="Backspace"||$.key==="Delete")&&I.sv.element.innerHTML!==""&&I.sv.element.childNodes.length===1&&I.sv.element.firstElementChild&&I.sv.element.firstElementChild.tagName==="DIV"&&I.sv.element.firstElementChild.childElementCount===2&&(I.sv.element.firstElementChild.textContent===""||I.sv.element.textContent===`
- `)){I.sv.element.innerHTML="";return}$.key==="Enter"&&Bn(I)}})},T})(),Pi=(function(){function T(){this.element=document.createElement("div"),this.element.className="vditor-tip"}return T.prototype.show=function(I,P){var $=this;P===void 0&&(P=6e3),this.element.className="vditor-tip vditor-tip--show",P===0?(this.element.innerHTML='<div class="vditor-tip__content">'.concat(I,`
- <div class="vditor-tip__close">X</div></div>`),this.element.querySelector(".vditor-tip__close").addEventListener("click",function(){$.hide()})):(this.element.innerHTML='<div class="vditor-tip__content">'.concat(I,"</div>"),setTimeout(function(){$.hide()},P)),this.element.removeAttribute("style"),setTimeout(function(){var V=$.element.getBoundingClientRect();V.top<46&&($.element.style.position="fixed",$.element.style.top="46px")},150)},T.prototype.hide=function(){this.element.className="vditor-messageElementtip",this.element.innerHTML=""},T})(),uo=function(T,I){if(I.options.preview.mode!==T){switch(I.options.preview.mode=T,T){case"both":I.sv.element.style.display="block",I.preview.element.style.display="block",I.preview.render(I),v(I.toolbar.elements,["both"]);break;case"editor":I.sv.element.style.display="block",I.preview.element.style.display="none",p(I.toolbar.elements,["both"]);break}I.devtools&&I.devtools.renderEchart(I)}},Bo=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),Al=(function(T){Bo(I,T);function I(P,$){var V=T.call(this,P,$)||this;return P.options.preview.mode==="both"&&V.element.children[0].classList.add("vditor-menu--current"),V.element.children[0].addEventListener((0,f.Le)(),function(J){var Te=V.element.firstElementChild;Te.classList.contains(s.g.CLASS_MENU_DISABLED)||(J.preventDefault(),P.currentMode==="sv"&&(P.options.preview.mode==="both"?uo("editor",P):uo("both",P)))}),V}return I})(Qt),Xs=(function(){function T(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__br"}return T})(),_m=o(580),b2=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),q0=(function(T){b2(I,T);function I(P,$){var V=T.call(this,P,$)||this,J=V.element.children[0],Te=document.createElement("div");Te.className="vditor-hint".concat($.level===2?"":" vditor-panel--arrow");var Xe="";return s.g.CODE_THEME.forEach(function(st){Xe+="<button>".concat(st,"</button>")}),Te.innerHTML='<div style="overflow: auto;max-height:'.concat(window.innerHeight/2,'px">').concat(Xe,"</div>"),Te.addEventListener((0,f.Le)(),function(st){st.target.tagName==="BUTTON"&&(b(P,["subToolbar"]),P.options.preview.hljs.style=st.target.textContent,(0,_m.Y)(st.target.textContent,P.options.cdn),st.preventDefault(),st.stopPropagation())}),V.element.appendChild(Te),w(P,Te,J,$.level),V}return I})(Qt),XC=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),h9=(function(T){XC(I,T);function I(P,$){var V=T.call(this,P,$)||this,J=V.element.children[0],Te=document.createElement("div");Te.className="vditor-hint".concat($.level===2?"":" vditor-panel--arrow");var Xe="";return Object.keys(P.options.preview.theme.list).forEach(function(st){Xe+='<button data-type="'.concat(st,'">').concat(P.options.preview.theme.list[st],"</button>")}),Te.innerHTML='<div style="overflow: auto;max-height:'.concat(window.innerHeight/2,'px">').concat(Xe,"</div>"),Te.addEventListener((0,f.Le)(),function(st){st.target.tagName==="BUTTON"&&(b(P,["subToolbar"]),P.options.preview.theme.current=st.target.getAttribute("data-type"),(0,De.Z)(P.options.preview.theme.current,P.options.preview.theme.path),st.preventDefault(),st.stopPropagation())}),V.element.appendChild(Te),w(P,Te,J,$.level),V}return I})(Qt),g9=(function(){function T(I){this.element=document.createElement("span"),this.element.className="vditor-counter vditor-tooltipped vditor-tooltipped__nw",this.render(I,"")}return T.prototype.render=function(I,P){var $=P.endsWith(`
- `)?P.length-1:P.length;if(I.options.counter.type==="text"&&I[I.currentMode]){var V=I[I.currentMode].element.cloneNode(!0);V.querySelectorAll(".vditor-wysiwyg__preview").forEach(function(J){J.remove()}),$=V.textContent.length}typeof I.options.counter.max=="number"?($>I.options.counter.max?this.element.className="vditor-counter vditor-counter--error":this.element.className="vditor-counter",this.element.innerHTML="".concat($,"/").concat(I.options.counter.max)):this.element.innerHTML="".concat($),this.element.setAttribute("aria-label",I.options.counter.type),I.options.counter.after&&I.options.counter.after($,{enable:I.options.counter.enable,max:I.options.counter.max,type:I.options.counter.type})},T})(),w2=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),v9=(function(T){w2(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V.element.children[0].innerHTML=$.icon,V.element.children[0].addEventListener((0,f.Le)(),function(J){J.preventDefault(),!J.currentTarget.classList.contains(s.g.CLASS_MENU_DISABLED)&&$.click(J,P)}),V}return I})(Qt),m9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),y9=(function(T){m9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V.element.firstElementChild.addEventListener((0,f.Le)(),function(J){var Te=V.element.firstElementChild;Te.classList.contains(s.g.CLASS_MENU_DISABLED)||(J.preventDefault(),Te.classList.contains("vditor-menu--current")?(Te.classList.remove("vditor-menu--current"),P.devtools.element.style.display="none",ue(P)):(Te.classList.add("vditor-menu--current"),P.devtools.element.style.display="block",ue(P),P.devtools.renderEchart(P)))}),V}return I})(Qt),JC=(function(){function T(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__divider"}return T})(),Dm=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),b9=(function(T){Dm(I,T);function I(P,$){var V=T.call(this,P,$)||this,J=document.createElement("div");J.className="vditor-panel vditor-panel--arrow";var Te="";return Object.keys(P.options.hint.emoji).forEach(function(Xe){var st=P.options.hint.emoji[Xe];st.indexOf(".")>-1?Te+='<button data-value=":'.concat(Xe,': " data-key=":').concat(Xe,`:"><img
- data-value=":`).concat(Xe,': " data-key=":').concat(Xe,':" class="vditor-emojis__icon" src="').concat(st,'"/></button>'):Te+='<button data-value="'.concat(st,` "
- data-key="`).concat(Xe,'"><span class="vditor-emojis__icon">').concat(st,"</span></button>")}),J.innerHTML='<div class="vditor-emojis" style="max-height: '.concat(P.options.height==="auto"?"auto":P.options.height-80,'px">').concat(Te,`</div><div class="vditor-emojis__tail">
- <span class="vditor-emojis__tip"></span><span>`).concat(P.options.hint.emojiTail||"",`</span>
- </div>`),V.element.appendChild(J),w(P,J,V.element.firstElementChild,$.level),V.bindEvent(P),V}return I.prototype.bindEvent=function(P){var $=this;this.element.lastElementChild.addEventListener((0,f.Le)(),function(V){var J=(0,S.S)(V.target,"BUTTON");if(J){V.preventDefault();var Te=J.getAttribute("data-value"),Xe=(0,F.zh)(P),st=Te;if(P.currentMode==="wysiwyg"?st=P.lute.SpinVditorDOM(Te):P.currentMode==="ir"&&(st=P.lute.SpinVditorIRDOM(Te)),Te.indexOf(":")>-1&&P.currentMode!=="sv"){var Ke=document.createElement("div");Ke.innerHTML=st,st=Ke.firstElementChild.firstElementChild.outerHTML+" ",(0,F.oC)(st,P)}else Xe.extractContents(),Xe.insertNode(document.createTextNode(Te)),(0,A.F9)(Xe.startContainer)||pt(P,Xe);Xe.collapse(!1),(0,F.Hc)(Xe),$.element.lastElementChild.style.display="none",Dr(P)}}),this.element.lastElementChild.addEventListener("mouseover",function(V){var J=(0,S.S)(V.target,"BUTTON");J&&($.element.querySelector(".vditor-emojis__tip").innerHTML=J.getAttribute("data-key"))})},I})(Qt),ex=function(T,I,P){var $=document.createElement("a");"download"in $?($.download=P,$.style.display="none",$.href=URL.createObjectURL(new Blob([I])),document.body.appendChild($),$.click(),$.remove()):T.tip.show(window.VditorI18n.downloadTip,0)},w9=function(T){var I=u(T);ex(T,I,I.substr(0,10)+".md")},A2=function(T){T.tip.show(window.VditorI18n.generate,3800);var I=document.querySelector("#vditorExportIframe");I.contentDocument.open(),I.contentDocument.write('<link rel="stylesheet" href="'.concat(T.options.cdn,`/dist/index.css"/>
- <script src="`).concat(T.options.cdn,`/dist/method.min.js"><\/script>
- <div id="preview" style="width: 800px"></div>
- <script>
- window.addEventListener("message", (e) => {
- if(!e.data) {
- return;
- }
- Vditor.preview(document.getElementById('preview'), e.data, {
- cdn: "`).concat(T.options.cdn,`",
- markdown: {
- theme: `).concat(JSON.stringify(T.options.preview.theme),`
- },
- hljs: {
- style: "`).concat(T.options.preview.hljs.style,`"
- }
- });
- setTimeout(() => {
- window.print();
- }, 3600);
- }, false);
- <\/script>`)),I.contentDocument.close(),setTimeout(function(){I.contentWindow.postMessage(u(T),"*")},200)},C2=function(T){var I=Pn(T),P='<html><head><link rel="stylesheet" type="text/css" href="'.concat(T.options.cdn,`/dist/index.css"/>
- <script src="`).concat(T.options.cdn,"/dist/js/i18n/").concat(T.options.lang,`.js"><\/script>
- <script src="`).concat(T.options.cdn,`/dist/method.min.js"><\/script></head>
- <body><div class="vditor-reset" id="preview">`).concat(I,`</div>
- <script>
- const previewElement = document.getElementById('preview')
- Vditor.setContentTheme('`).concat(T.options.preview.theme.current,"', '").concat(T.options.preview.theme.path,`');
- Vditor.codeRender(previewElement);
- Vditor.highlightRender(`).concat(JSON.stringify(T.options.preview.hljs),", previewElement, '").concat(T.options.cdn,`');
- Vditor.mathRender(previewElement, {
- cdn: '`).concat(T.options.cdn,`',
- math: `).concat(JSON.stringify(T.options.preview.math),`,
- });
- Vditor.mermaidRender(previewElement, '`).concat(T.options.cdn,"', '").concat(T.options.theme,`');
- Vditor.SMILESRender(previewElement, '`).concat(T.options.cdn,"', '").concat(T.options.theme,`');
- Vditor.markmapRender(previewElement, '`).concat(T.options.cdn,`');
- Vditor.flowchartRender(previewElement, '`).concat(T.options.cdn,`');
- Vditor.graphvizRender(previewElement, '`).concat(T.options.cdn,`');
- Vditor.chartRender(previewElement, '`).concat(T.options.cdn,"', '").concat(T.options.theme,`');
- Vditor.mindmapRender(previewElement, '`).concat(T.options.cdn,"', '").concat(T.options.theme,`');
- Vditor.abcRender(previewElement, '`).concat(T.options.cdn,`');
- `).concat(T.options.preview.render.media.enable?"Vditor.mediaRender(previewElement);":"",`
- Vditor.speechRender(previewElement);
- <\/script>
- <script src="`).concat(T.options.cdn,"/dist/js/icons/").concat(T.options.icon,'.js"><\/script></body></html>');ex(T,P,I.substr(0,10)+".html")},A9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),C9=(function(T){A9(I,T);function I(P,$){var V=T.call(this,P,$)||this,J=V.element.children[0],Te=document.createElement("div");return Te.className="vditor-hint".concat($.level===2?"":" vditor-panel--arrow"),Te.innerHTML=`<button data-type="markdown">Markdown</button>
- <button data-type="pdf">PDF</button>
- <button data-type="html">HTML</button>`,Te.addEventListener((0,f.Le)(),function(Xe){var st=Xe.target;if(st.tagName==="BUTTON"){switch(st.getAttribute("data-type")){case"markdown":w9(P);break;case"pdf":A2(P);break;case"html":C2(P);break}b(P,["subToolbar"]),Xe.preventDefault(),Xe.stopPropagation()}}),V.element.appendChild(Te),w(P,Te,J,$.level),V}return I})(Qt),x9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),tx=(function(T){x9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V._bindEvent(P,$),V}return I.prototype._bindEvent=function(P,$){this.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault(),P.element.className.includes("vditor--fullscreen")?($.level||(this.innerHTML=$.icon),P.element.style.zIndex="",document.body.style.overflow="",P.element.classList.remove("vditor--fullscreen"),Object.keys(P.toolbar.elements).forEach(function(J){var Te=P.toolbar.elements[J].firstChild;Te&&(Te.className=Te.className.replace("__s","__n"),P.options.toolbar.forEach(function(Xe){typeof Xe!="string"&&Xe.tipPosition&&Xe.name===Te.dataset.type&&(Te.className="vditor-tooltipped vditor-tooltipped__".concat(Xe.tipPosition))}))}),P.counter&&(P.counter.element.className=P.counter.element.className.replace("__s","__n"))):($.level||(this.innerHTML='<svg><use xlink:href="#vditor-icon-contract"></use></svg>'),P.element.style.zIndex=P.options.fullscreen.index.toString(),document.body.style.overflow="hidden",P.element.classList.add("vditor--fullscreen"),Object.keys(P.toolbar.elements).forEach(function(J){var Te=P.toolbar.elements[J].firstChild;Te&&(Te.className=Te.className.replace("__n","__s"))}),P.counter&&(P.counter.element.className=P.counter.element.className.replace("__n","__s"))),P.devtools&&P.devtools.renderEchart(P),$.click&&$.click(V,P),ue(P),Be(P)})},I})(Qt),S9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),nx=(function(T){S9(I,T);function I(P,$){var V=T.call(this,P,$)||this,J=document.createElement("div");return J.className="vditor-hint vditor-panel--arrow",J.innerHTML='<button data-tag="h1" data-value="# ">'.concat(window.VditorI18n.heading1," ").concat((0,f.ns)("<⌥⌘1>"),`</button>
- <button data-tag="h2" data-value="## ">`).concat(window.VditorI18n.heading2," <").concat((0,f.ns)("⌥⌘2"),`></button>
- <button data-tag="h3" data-value="### ">`).concat(window.VditorI18n.heading3," <").concat((0,f.ns)("⌥⌘3"),`></button>
- <button data-tag="h4" data-value="#### ">`).concat(window.VditorI18n.heading4," <").concat((0,f.ns)("⌥⌘4"),`></button>
- <button data-tag="h5" data-value="##### ">`).concat(window.VditorI18n.heading5," <").concat((0,f.ns)("⌥⌘5"),`></button>
- <button data-tag="h6" data-value="###### ">`).concat(window.VditorI18n.heading6," <").concat((0,f.ns)("⌥⌘6"),"></button>"),V.element.appendChild(J),V._bindEvent(P,J),V}return I.prototype._bindEvent=function(P,$){var V=this.element.children[0];V.addEventListener((0,f.Le)(),function(Te){Te.preventDefault(),clearTimeout(P.wysiwyg.afterRenderTimeoutId),clearTimeout(P.ir.processTimeoutId),clearTimeout(P.sv.processTimeoutId),!V.classList.contains(s.g.CLASS_MENU_DISABLED)&&(V.blur(),V.classList.contains("vditor-menu--current")?(P.currentMode==="wysiwyg"?(dt(P),Re(P)):P.currentMode==="ir"&&ae(P,""),V.classList.remove("vditor-menu--current")):(b(P,["subToolbar"]),$.style.display="block"))});for(var J=0;J<6;J++)$.children.item(J).addEventListener((0,f.Le)(),function(Te){Te.preventDefault(),P.currentMode==="wysiwyg"?(Dt(P,Te.target.getAttribute("data-tag")),Re(P),V.classList.add("vditor-menu--current")):P.currentMode==="ir"?(ae(P,Te.target.getAttribute("data-value")),V.classList.add("vditor-menu--current")):yn(P,Te.target.getAttribute("data-value")),$.style.display="none"})},I})(Qt),E9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),k9=(function(T){E9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V.element.children[0].addEventListener((0,f.Le)(),function(J){J.preventDefault(),P.tip.show(`<div style="margin-bottom:14px;font-size: 14px;line-height: 22px;min-width:300px;max-width: 360px;display: flex;">
- <div style="margin-top: 14px;flex: 1">
- <div>Markdown 使用指南</div>
- <ul style="list-style: none">
- <li><a href="https://ld246.com/article/1583308420519" target="_blank">语法速查手册</a></li>
- <li><a href="https://ld246.com/article/1583129520165" target="_blank">基础语法</a></li>
- <li><a href="https://ld246.com/article/1583305480675" target="_blank">扩展语法</a></li>
- <li><a href="https://ld246.com/article/1582778815353" target="_blank">键盘快捷键</a></li>
- </ul>
- </div>
- <div style="margin-top: 14px;flex: 1">
- <div>Vditor 支持</div>
- <ul style="list-style: none">
- <li><a href="https://github.com/Vanessa219/vditor/issues" target="_blank">Issues</a></li>
- <li><a href="https://ld246.com/tag/vditor" target="_blank">官方讨论区</a></li>
- <li><a href="https://ld246.com/article/1549638745630" target="_blank">开发手册</a></li>
- <li><a href="https://ld246.com/guide/markdown" target="_blank">演示地址</a></li>
- </ul>
- </div></div>`,0)}),V}return I})(Qt),rx=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),T9=(function(T){rx(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V.element.children[0].addEventListener((0,f.Le)(),function(J){if(J.preventDefault(),!(V.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||P.currentMode==="sv")){var Te=(0,F.zh)(P),Xe=(0,A.lG)(Te.startContainer,"LI");Xe&&Oi(P,Xe,Te)}}),V}return I})(Qt),_p=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),_9=(function(T){_p(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V.element.children[0].addEventListener((0,f.Le)(),function(J){J.preventDefault(),P.tip.show(`<div style="max-width: 520px; font-size: 14px;line-height: 22px;margin-bottom: 14px;">
- <p style="text-align: center;margin: 14px 0">
- <em>下一代的 Markdown 编辑器,为未来而构建</em>
- </p>
- <div style="display: flex;margin-bottom: 14px;flex-wrap: wrap;align-items: center">
- <img src="https://unpkg.com/vditor/dist/images/logo.png" style="margin: 0 auto;height: 68px"/>
- <div> </div>
- <div style="flex: 1;min-width: 250px">
- Vditor 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。
- 它使用 TypeScript 实现,支持原生 JavaScript 以及 Vue、React、Angular 和 Svelte 等框架。
- </div>
- </div>
- <div style="display: flex;flex-wrap: wrap;">
- <ul style="list-style: none;flex: 1;min-width:148px">
- <li>
- 项目地址:<a href="https://b3log.org/vditor" target="_blank">b3log.org/vditor</a>
- </li>
- <li>
- 开源协议:MIT
- </li>
- </ul>
- <ul style="list-style: none;margin-right: 18px">
- <li>
- 组件版本:Vditor v`.concat(s.H," / Lute v").concat(Lute.Version,`
- </li>
- <li>
- 赞助捐赠:<a href="https://ld246.com/sponsor" target="_blank">https://ld246.com/sponsor</a>
- </li>
- </ul>
- </div>
- </div>`),0)}),V}return I})(Qt),D9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),I9=(function(T){D9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V.element.children[0].addEventListener((0,f.Le)(),function(J){J.preventDefault(),!(V.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||P.currentMode==="sv")&&ni(P,"afterend")}),V}return I})(Qt),O9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),M9=(function(T){O9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V.element.children[0].addEventListener((0,f.Le)(),function(J){J.preventDefault(),!(V.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||P.currentMode==="sv")&&ni(P,"beforebegin")}),V}return I})(Qt),P9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),ox=(function(T){P9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V.element.children[0].addEventListener((0,f.Le)(),function(J){if(J.preventDefault(),!(V.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)||P.currentMode==="sv")){var Te=(0,F.zh)(P),Xe=(0,A.lG)(Te.startContainer,"LI");Xe&&mi(P,Xe,Te,Xe.parentElement)}}),V}return I})(Qt),Im=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),ix=(function(T){Im(I,T);function I(P,$){var V=T.call(this,P,$)||this;return P.options.outline&&V.element.firstElementChild.classList.add("vditor-menu--current"),V.element.children[0].addEventListener((0,f.Le)(),function(J){J.preventDefault();var Te=P.toolbar.elements.outline.firstElementChild;Te.classList.contains(s.g.CLASS_MENU_DISABLED)||(P.options.outline.enable=!V.element.firstElementChild.classList.contains("vditor-menu--current"),P.outline.toggle(P,P.options.outline.enable))}),V}return I})(Qt),N9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),R9=(function(T){N9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V._bindEvent(P),V}return I.prototype._bindEvent=function(P){var $=this;this.element.children[0].addEventListener((0,f.Le)(),function(V){V.preventDefault();var J=$.element.firstElementChild;if(!J.classList.contains(s.g.CLASS_MENU_DISABLED)){var Te=s.g.EDIT_TOOLBARS.concat(["both","edit-mode","devtools"]);J.classList.contains("vditor-menu--current")?(J.classList.remove("vditor-menu--current"),P.currentMode==="sv"?(P.sv.element.style.display="block",P.options.preview.mode==="both"?P.preview.element.style.display="block":P.preview.element.style.display="none"):(P[P.currentMode].element.parentElement.style.display="block",P.preview.element.style.display="none"),h(P.toolbar.elements,Te),P.outline.render(P)):(g(P.toolbar.elements,Te),P.preview.element.style.display="block",P.currentMode==="sv"?P.sv.element.style.display="none":P[P.currentMode].element.parentElement.style.display="none",P.preview.render(P),J.classList.add("vditor-menu--current"),b(P,["subToolbar","hint","popover"]),setTimeout(function(){P.outline.render(P)},P.options.preview.delay+10)),ue(P)}})},I})(Qt),B9=(function(){function T(I){this.SAMPLE_RATE=5e3,this.isRecording=!1,this.readyFlag=!1,this.leftChannel=[],this.rightChannel=[],this.recordingLength=0;var P;if(typeof AudioContext<"u")P=new AudioContext;else if(webkitAudioContext)P=new webkitAudioContext;else return;this.DEFAULT_SAMPLE_RATE=P.sampleRate;var $=P.createGain(),V=P.createMediaStreamSource(I);V.connect($),this.recorder=P.createScriptProcessor(2048,2,1),this.recorder.onaudioprocess=null,$.connect(this.recorder),this.recorder.connect(P.destination),this.readyFlag=!0}return T.prototype.cloneChannelData=function(I,P){this.leftChannel.push(new Float32Array(I)),this.rightChannel.push(new Float32Array(P)),this.recordingLength+=2048},T.prototype.startRecordingNewWavFile=function(){this.readyFlag&&(this.isRecording=!0,this.leftChannel.length=this.rightChannel.length=0,this.recordingLength=0)},T.prototype.stopRecording=function(){this.isRecording=!1},T.prototype.buildWavFileBlob=function(){for(var I=this.mergeBuffers(this.leftChannel),P=this.mergeBuffers(this.rightChannel),$=new Float32Array(I.length),V=0;V<I.length;++V)$[V]=.5*(I[V]+P[V]);this.DEFAULT_SAMPLE_RATE>this.SAMPLE_RATE&&($=this.downSampleBuffer($,this.SAMPLE_RATE));var J=44+$.length*2,Te=new ArrayBuffer(J),Xe=new DataView(Te);this.writeUTFBytes(Xe,0,"RIFF"),Xe.setUint32(4,J,!0),this.writeUTFBytes(Xe,8,"WAVE"),this.writeUTFBytes(Xe,12,"fmt "),Xe.setUint32(16,16,!0),Xe.setUint16(20,1,!0),Xe.setUint16(22,1,!0),Xe.setUint32(24,this.SAMPLE_RATE,!0),Xe.setUint32(28,this.SAMPLE_RATE*2,!0),Xe.setUint16(32,2,!0),Xe.setUint16(34,16,!0);var st=$.length*2;this.writeUTFBytes(Xe,36,"data"),Xe.setUint32(40,st,!0);for(var Ke=$.length,bt=44,jt=1,An=0;An<Ke;An++)Xe.setInt16(bt,$[An]*(32767*jt),!0),bt+=2;return new Blob([Xe],{type:"audio/wav"})},T.prototype.downSampleBuffer=function(I,P){if(P===this.DEFAULT_SAMPLE_RATE||P>this.DEFAULT_SAMPLE_RATE)return I;for(var $=this.DEFAULT_SAMPLE_RATE/P,V=Math.round(I.length/$),J=new Float32Array(V),Te=0,Xe=0;Te<J.length;){for(var st=Math.round((Te+1)*$),Ke=0,bt=0,jt=Xe;jt<st&&jt<I.length;jt++)Ke+=I[jt],bt++;J[Te]=Ke/bt,Te++,Xe=st}return J},T.prototype.mergeBuffers=function(I){for(var P=new Float32Array(this.recordingLength),$=0,V=I.length,J=0;J<V;++J){var Te=I[J];P.set(Te,$),$+=Te.length}return P},T.prototype.writeUTFBytes=function(I,P,$){for(var V=$.length,J=0;J<V;J++)I.setUint8(P+J,$.charCodeAt(J))},T})(),L9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),F9=(function(T){L9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return V._bindEvent(P),V}return I.prototype._bindEvent=function(P){var $=this,V;this.element.children[0].addEventListener((0,f.Le)(),function(J){if(J.preventDefault(),!$.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)){var Te=P[P.currentMode].element;if(!V){navigator.mediaDevices.getUserMedia({audio:!0}).then(function(st){V=new B9(st),V.recorder.onaudioprocess=function(Ke){if(V.isRecording){var bt=Ke.inputBuffer.getChannelData(0),jt=Ke.inputBuffer.getChannelData(1);V.cloneChannelData(bt,jt)}},V.startRecordingNewWavFile(),P.tip.show(window.VditorI18n.recording),Te.setAttribute("contenteditable","false"),$.element.children[0].classList.add("vditor-menu--current")}).catch(function(){P.tip.show(window.VditorI18n["record-tip"])});return}if(V.isRecording){V.stopRecording(),P.tip.hide();var Xe=new File([V.buildWavFileBlob()],"record".concat(new Date().getTime(),".wav"),{type:"video/webm"});Yr(P,[Xe]),$.element.children[0].classList.remove("vditor-menu--current")}else P.tip.show(window.VditorI18n.recording),Te.setAttribute("contenteditable","false"),V.startRecordingNewWavFile(),$.element.children[0].classList.add("vditor-menu--current")}})},I})(Qt),U9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),z9=(function(T){U9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return g({redo:V.element},["redo"]),V.element.children[0].addEventListener((0,f.Le)(),function(J){J.preventDefault(),!V.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)&&P.undo.redo(P)}),V}return I})(Qt),$9=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),j9=(function(T){$9(I,T);function I(P,$){var V=T.call(this,P,$)||this;return g({undo:V.element},["undo"]),V.element.children[0].addEventListener((0,f.Le)(),function(J){J.preventDefault(),!V.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)&&P.undo.undo(P)}),V}return I})(Qt),ax=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),H9=(function(T){ax(I,T);function I(P,$){var V=T.call(this,P,$)||this,J='<input type="file"';return P.options.upload.multiple&&(J+=' multiple="multiple"'),P.options.upload.accept&&(J+=' accept="'.concat(P.options.upload.accept,'"')),V.element.children[0].innerHTML="".concat($.icon||'<svg><use xlink:href="#vditor-icon-upload"></use></svg>').concat(J,">"),V._bindEvent(P),V}return I.prototype._bindEvent=function(P){var $=this;this.element.children[0].addEventListener((0,f.Le)(),function(V){if($.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)){V.stopPropagation(),V.preventDefault();return}}),this.element.querySelector("input").addEventListener("change",function(V){if($.element.firstElementChild.classList.contains(s.g.CLASS_MENU_DISABLED)){V.stopPropagation(),V.preventDefault();return}V.target.files.length!==0&&Yr(P,V.target.files,V.target)})},I})(Qt),ye=(function(){function T(I){var P=this,$=I.options;this.elements={},this.element=document.createElement("div"),this.element.className="vditor-toolbar",$.toolbar.forEach(function(V,J){var Te=P.genItem(I,V,J);if(P.element.appendChild(Te),V.toolbar){var Xe=document.createElement("div");Xe.className="vditor-hint vditor-panel--arrow",Xe.addEventListener((0,f.Le)(),function(st){Xe.style.display="none"}),V.toolbar.forEach(function(st,Ke){st.level=2,Xe.appendChild(P.genItem(I,st,J+Ke))}),Te.appendChild(Xe),w(I,Xe,Te.children[0])}}),I.options.toolbarConfig.hide&&this.element.classList.add("vditor-toolbar--hide"),I.options.toolbarConfig.pin&&this.element.classList.add("vditor-toolbar--pin"),I.options.counter.enable&&(I.counter=new g9(I),this.element.appendChild(I.counter.element))}return T.prototype.updateConfig=function(I,P){I.options.toolbarConfig=Object.assign({hide:!1,pin:!1},P),I.options.toolbarConfig.hide?this.element.classList.add("vditor-toolbar--hide"):this.element.classList.remove("vditor-toolbar--hide"),I.options.toolbarConfig.pin?this.element.classList.add("vditor-toolbar--pin"):this.element.classList.remove("vditor-toolbar--pin")},T.prototype.genItem=function(I,P,$){var V;switch(P.name){case"bold":case"italic":case"more":case"strike":case"line":case"quote":case"list":case"ordered-list":case"check":case"code":case"inline-code":case"link":case"table":V=new Qt(I,P);break;case"emoji":V=new b9(I,P);break;case"headings":V=new nx(I,P);break;case"|":V=new JC;break;case"br":V=new Xs;break;case"undo":V=new j9(I,P);break;case"redo":V=new z9(I,P);break;case"help":V=new k9(I,P);break;case"both":V=new Al(I,P);break;case"preview":V=new R9(I,P);break;case"fullscreen":V=new tx(I,P);break;case"upload":V=new H9(I,P);break;case"record":V=new F9(I,P);break;case"info":V=new _9(I,P);break;case"edit-mode":V=new Un(I,P);break;case"devtools":V=new y9(I,P);break;case"outdent":V=new ox(I,P);break;case"indent":V=new T9(I,P);break;case"outline":V=new ix(I,P);break;case"insert-after":V=new I9(I,P);break;case"insert-before":V=new M9(I,P);break;case"code-theme":V=new q0(I,P);break;case"content-theme":V=new h9(I,P);break;case"export":V=new C9(I,P);break;default:V=new v9(I,P);break}if(V){var J=P.name;return(J==="br"||J==="|")&&(J=J+$),this.elements[J]=V.element,V.element}},T})(),se=o(173),Ie=(function(){function T(){this.stackSize=50,this.resetStack(),this.dmp=new se}return T.prototype.clearStack=function(I){this.resetStack(),this.resetIcon(I)},T.prototype.resetIcon=function(I){I.toolbar&&(this[I.currentMode].undoStack.length>1?h(I.toolbar.elements,["undo"]):g(I.toolbar.elements,["undo"]),this[I.currentMode].redoStack.length!==0?h(I.toolbar.elements,["redo"]):g(I.toolbar.elements,["redo"]))},T.prototype.undo=function(I){if(I[I.currentMode].element.getAttribute("contenteditable")!=="false"&&!(this[I.currentMode].undoStack.length<2)){var P=this[I.currentMode].undoStack.pop();P&&(this[I.currentMode].redoStack.push(P),this.renderDiff(P,I),this[I.currentMode].hasUndo=!0,b(I,["hint"]))}},T.prototype.redo=function(I){if(I[I.currentMode].element.getAttribute("contenteditable")!=="false"){var P=this[I.currentMode].redoStack.pop();P&&(this[I.currentMode].undoStack.push(P),this.renderDiff(P,I,!0))}},T.prototype.recordFirstPosition=function(I,P){if(getSelection().rangeCount!==0&&!(this[I.currentMode].undoStack.length!==1||this[I.currentMode].undoStack[0].length===0||this[I.currentMode].redoStack.length>0)&&!((0,f.vU)()&&P.key==="Backspace")&&!(0,f.G6)()){var $=this.addCaret(I);$.replace("<wbr>","").replace(" vditor-ir__node--expand","")===this[I.currentMode].undoStack[0][0].diffs[0][1].replace("<wbr>","")&&(this[I.currentMode].undoStack[0][0].diffs[0][1]=$,this[I.currentMode].lastText=$)}},T.prototype.addToUndoStack=function(I){var P=this.addCaret(I,!0),$=this.dmp.diff_main(P,this[I.currentMode].lastText,!0),V=this.dmp.patch_make(P,this[I.currentMode].lastText,$);V.length===0&&this[I.currentMode].undoStack.length>0||(this[I.currentMode].lastText=P,this[I.currentMode].undoStack.push(V),this[I.currentMode].undoStack.length>this.stackSize&&this[I.currentMode].undoStack.shift(),this[I.currentMode].hasUndo&&(this[I.currentMode].redoStack=[],this[I.currentMode].hasUndo=!1,g(I.toolbar.elements,["redo"])),this[I.currentMode].undoStack.length>1&&h(I.toolbar.elements,["undo"]))},T.prototype.renderDiff=function(I,P,$){$===void 0&&($=!1);var V;if($){var J=this.dmp.patch_deepCopy(I).reverse();J.forEach(function(Xe){Xe.diffs.forEach(function(st){st[0]=-st[0]})}),V=this.dmp.patch_apply(J,this[P.currentMode].lastText)[0]}else V=this.dmp.patch_apply(I,this[P.currentMode].lastText)[0];if(this[P.currentMode].lastText=V,P[P.currentMode].element.innerHTML=V,P.currentMode!=="sv"&&(P[P.currentMode].element.querySelectorAll(".vditor-".concat(P.currentMode,"__preview")).forEach(function(Xe){Xe.parentElement.querySelector(".language-echarts")&&(P.currentMode==="ir"?Xe.parentElement.outerHTML=P.lute.SpinVditorIRDOM(Xe.parentElement.outerHTML):Xe.parentElement.outerHTML=P.lute.SpinVditorDOM(Xe.parentElement.outerHTML))}),P[P.currentMode].element.querySelectorAll(".vditor-".concat(P.currentMode,"__preview[data-render='2']")).forEach(function(Xe){U(Xe,P)})),P[P.currentMode].element.querySelector("wbr"))(0,F.ib)(P[P.currentMode].element,P[P.currentMode].element.ownerDocument.createRange()),Bn(P);else{var Te=getSelection().getRangeAt(0);Te.setEndBefore(P[P.currentMode].element),Te.collapse(!1)}H(P),Dr(P,{enableAddUndoStack:!1,enableHint:!1,enableInput:!0}),Le(P),P[P.currentMode].element.querySelectorAll(".vditor-".concat(P.currentMode,"__preview[data-render='2']")).forEach(function(Xe){U(Xe,P)}),this[P.currentMode].undoStack.length>1?h(P.toolbar.elements,["undo"]):g(P.toolbar.elements,["undo"]),this[P.currentMode].redoStack.length!==0?h(P.toolbar.elements,["redo"]):g(P.toolbar.elements,["redo"])},T.prototype.resetStack=function(){this.ir={hasUndo:!1,lastText:"",redoStack:[],undoStack:[]},this.sv={hasUndo:!1,lastText:"",redoStack:[],undoStack:[]},this.wysiwyg={hasUndo:!1,lastText:"",redoStack:[],undoStack:[]}},T.prototype.addCaret=function(I,P){P===void 0&&(P=!1);var $;if(getSelection().rangeCount!==0&&!I[I.currentMode].element.querySelector("wbr")){var V=getSelection().getRangeAt(0);if(I[I.currentMode].element.contains(V.startContainer)){$=V.cloneRange();var J=document.createElement("span");J.className="vditor-wbr",V.insertNode(J)}}var Te=I[I.currentMode].element.cloneNode(!0);Te.querySelectorAll(".vditor-".concat(I.currentMode,"__preview[data-render='1']")).forEach(function(st){st.firstElementChild&&(st.firstElementChild.classList.contains("language-echarts")||st.firstElementChild.classList.contains("language-plantuml")||st.firstElementChild.classList.contains("language-mindmap")?(st.firstElementChild.removeAttribute("_echarts_instance_"),st.firstElementChild.removeAttribute("data-processed"),st.firstElementChild.innerHTML=st.previousElementSibling.firstElementChild.innerHTML,st.setAttribute("data-render","2")):st.firstElementChild.classList.contains("language-math")&&(st.setAttribute("data-render","2"),st.firstElementChild.textContent=st.firstElementChild.getAttribute("data-math"),st.firstElementChild.removeAttribute("data-math")))});var Xe=Te.innerHTML;return I[I.currentMode].element.querySelectorAll(".vditor-wbr").forEach(function(st){st.remove()}),P&&$&&(0,F.Hc)($),Xe.replace('<span class="vditor-wbr"></span>',"<wbr>")},T})(),Ue=o(673),Ze=(function(){function T(I){this.defaultOptions={rtl:!1,after:void 0,cache:{enable:!0},cdn:s.g.CDN,classes:{preview:""},comment:{enable:!1},counter:{enable:!1,type:"markdown"},customRenders:[],debugger:!1,fullscreen:{index:90},height:"auto",hint:{delay:200,emoji:{"+1":"👍","-1":"👎",confused:"😕",eyes:"👀️",heart:"❤️",rocket:"🚀️",smile:"😄",tada:"🎉️"},emojiPath:"".concat(s.g.CDN,"/dist/images/emoji"),extend:[],parse:!0},icon:"ant",lang:"zh_CN",mode:"ir",outline:{enable:!1,position:"left"},placeholder:"",preview:{actions:["desktop","tablet","mobile","mp-wechat","zhihu"],delay:1e3,hljs:s.g.HLJS_OPTIONS,markdown:s.g.MARKDOWN_OPTIONS,math:s.g.MATH_OPTIONS,maxWidth:800,mode:"both",theme:s.g.THEME_OPTIONS,render:{media:{enable:!0}}},link:{isOpen:!0},image:{isPreview:!0},resize:{enable:!1,position:"bottom"},theme:"classic",toolbar:["emoji","headings","bold","italic","strike","link","|","list","ordered-list","check","outdent","indent","|","quote","line","code","inline-code","insert-before","insert-after","|","upload","record","table","|","undo","redo","|","fullscreen","edit-mode",{name:"more",toolbar:["both","code-theme","content-theme","export","outline","preview","devtools","info","help"]}],toolbarConfig:{hide:!1,pin:!1},typewriterMode:!1,undoDelay:800,upload:{extraData:{},fieldName:"file[]",filename:function(P){return P.replace(/\W/g,"")},linkToImgUrl:"",max:10*1024*1024,multiple:!0,url:"",withCredentials:!1},value:"",width:"auto"},this.options=I}return T.prototype.merge=function(){var I,P,$,V,J,Te,Xe,st,Ke;this.options&&(this.options.toolbar?this.options.toolbar=this.mergeToolbar(this.options.toolbar):this.options.toolbar=this.mergeToolbar(this.defaultOptions.toolbar),!((P=(I=this.options.preview)===null||I===void 0?void 0:I.theme)===null||P===void 0)&&P.list&&(this.defaultOptions.preview.theme.list=this.options.preview.theme.list),!((J=(V=($=this.options.preview)===null||$===void 0?void 0:$.render)===null||V===void 0?void 0:V.media)===null||J===void 0)&&J.enable&&(this.defaultOptions.preview.render.media.enable=this.options.preview.render.media.enable),!((Te=this.options.hint)===null||Te===void 0)&&Te.emoji&&(this.defaultOptions.hint.emoji=this.options.hint.emoji),this.options.comment&&(this.defaultOptions.comment=this.options.comment),this.options.cdn&&(!((st=(Xe=this.options.preview)===null||Xe===void 0?void 0:Xe.theme)===null||st===void 0)&&st.path||(this.defaultOptions.preview.theme.path="".concat(this.options.cdn,"/dist/css/content-theme")),!((Ke=this.options.hint)===null||Ke===void 0)&&Ke.emojiPath||(this.defaultOptions.hint.emojiPath="".concat(this.options.cdn,"/dist/images/emoji"))));var bt=(0,Ue.T)(this.defaultOptions,this.options);if(bt.cache.enable&&!bt.cache.id)throw new Error("need options.cache.id, see https://ld246.com/article/1549638745630#options");return bt},T.prototype.mergeToolbar=function(I){var P=this,$=[{icon:'<svg><use xlink:href="#vditor-icon-export"></use></svg>',name:"export",tipPosition:"ne"},{hotkey:"⌘E",icon:'<svg><use xlink:href="#vditor-icon-emoji"></use></svg>',name:"emoji",tipPosition:"ne"},{hotkey:"⌘H",icon:'<svg><use xlink:href="#vditor-icon-headings"></use></svg>',name:"headings",tipPosition:"ne"},{hotkey:"⌘B",icon:'<svg><use xlink:href="#vditor-icon-bold"></use></svg>',name:"bold",prefix:"**",suffix:"**",tipPosition:"ne"},{hotkey:"⌘I",icon:'<svg><use xlink:href="#vditor-icon-italic"></use></svg>',name:"italic",prefix:"*",suffix:"*",tipPosition:"ne"},{hotkey:"⌘D",icon:'<svg><use xlink:href="#vditor-icon-strike"></use></svg>',name:"strike",prefix:"~~",suffix:"~~",tipPosition:"ne"},{hotkey:"⌘K",icon:'<svg><use xlink:href="#vditor-icon-link"></use></svg>',name:"link",prefix:"[",suffix:"](https://)",tipPosition:"n"},{name:"|"},{hotkey:"⌘L",icon:'<svg><use xlink:href="#vditor-icon-list"></use></svg>',name:"list",prefix:"* ",tipPosition:"n"},{hotkey:"⌘O",icon:'<svg><use xlink:href="#vditor-icon-ordered-list"></use></svg>',name:"ordered-list",prefix:"1. ",tipPosition:"n"},{hotkey:"⌘J",icon:'<svg><use xlink:href="#vditor-icon-check"></use></svg>',name:"check",prefix:"* [ ] ",tipPosition:"n"},{hotkey:"⇧⌘I",icon:'<svg><use xlink:href="#vditor-icon-outdent"></use></svg>',name:"outdent",tipPosition:"n"},{hotkey:"⇧⌘O",icon:'<svg><use xlink:href="#vditor-icon-indent"></use></svg>',name:"indent",tipPosition:"n"},{name:"|"},{hotkey:"⌘;",icon:'<svg><use xlink:href="#vditor-icon-quote"></use></svg>',name:"quote",prefix:"> ",tipPosition:"n"},{hotkey:"⇧⌘H",icon:'<svg><use xlink:href="#vditor-icon-line"></use></svg>',name:"line",prefix:"---",tipPosition:"n"},{hotkey:"⌘U",icon:'<svg><use xlink:href="#vditor-icon-code"></use></svg>',name:"code",prefix:"```",suffix:"\n```",tipPosition:"n"},{hotkey:"⌘G",icon:'<svg><use xlink:href="#vditor-icon-inline-code"></use></svg>',name:"inline-code",prefix:"`",suffix:"`",tipPosition:"n"},{hotkey:"⇧⌘B",icon:'<svg><use xlink:href="#vditor-icon-before"></use></svg>',name:"insert-before",tipPosition:"n"},{hotkey:"⇧⌘E",icon:'<svg><use xlink:href="#vditor-icon-after"></use></svg>',name:"insert-after",tipPosition:"n"},{name:"|"},{icon:'<svg><use xlink:href="#vditor-icon-upload"></use></svg>',name:"upload",tipPosition:"n"},{icon:'<svg><use xlink:href="#vditor-icon-record"></use></svg>',name:"record",tipPosition:"n"},{hotkey:"⌘M",icon:'<svg><use xlink:href="#vditor-icon-table"></use></svg>',name:"table",prefix:"| col1",suffix:` | col2 | col3 |
- | --- | --- | --- |
- | | | |
- | | | |`,tipPosition:"n"},{name:"|"},{hotkey:"⌘Z",icon:'<svg><use xlink:href="#vditor-icon-undo"></use></svg>',name:"undo",tipPosition:"nw"},{hotkey:"⌘Y",icon:'<svg><use xlink:href="#vditor-icon-redo"></use></svg>',name:"redo",tipPosition:"nw"},{name:"|"},{icon:'<svg><use xlink:href="#vditor-icon-more"></use></svg>',name:"more",tipPosition:"e"},{hotkey:"⌘'",icon:'<svg><use xlink:href="#vditor-icon-fullscreen"></use></svg>',name:"fullscreen",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-edit"></use></svg>',name:"edit-mode",tipPosition:"nw"},{hotkey:"⌘P",icon:'<svg><use xlink:href="#vditor-icon-both"></use></svg>',name:"both",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-preview"></use></svg>',name:"preview",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-align-center"></use></svg>',name:"outline",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-theme"></use></svg>',name:"content-theme",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-code-theme"></use></svg>',name:"code-theme",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-bug"></use></svg>',name:"devtools",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-info"></use></svg>',name:"info",tipPosition:"nw"},{icon:'<svg><use xlink:href="#vditor-icon-help"></use></svg>',name:"help",tipPosition:"nw"},{name:"br"}],V=[];return I.forEach(function(J){var Te=J;$.forEach(function(Xe){typeof J=="string"&&Xe.name===J&&(Te=Xe),typeof J=="object"&&Xe.name===J.name&&(Te=Object.assign({},Xe,J))}),J.toolbar&&(Te.toolbar=P.mergeToolbar(J.toolbar)),V.push(Te)}),V},T})(),lt=(function(){function T(I){var P=this;this.composingLock=!1,this.commentIds=[];var $=document.createElement("div");$.className="vditor-wysiwyg",$.innerHTML='<pre class="vditor-reset" placeholder="'.concat(I.options.placeholder,`"
- contenteditable="true" spellcheck="false"></pre>
- <div class="vditor-panel vditor-panel--none"></div>
- <div class="vditor-panel vditor-panel--none">
- <button type="button" aria-label="`).concat(window.VditorI18n.comment,`" class="vditor-icon vditor-tooltipped vditor-tooltipped__n">
- <svg><use xlink:href="#vditor-icon-comment"></use></svg>
- </button>
- </div>`),this.element=$.firstElementChild,this.popover=$.firstElementChild.nextElementSibling,this.selectPopover=$.lastElementChild,this.bindEvent(I),fr(I,this.element),Nt(I,this.element),_n(I,this.element),Fr(I,this.element),kn(I,this.element),xt(I,this.element),Ft(I,this.element,this.copy),Sn(I,this.element,this.copy),I.options.comment.enable&&(this.selectPopover.querySelector("button").onclick=function(){var V=Lute.NewNodeID(),J=getSelection().getRangeAt(0),Te=J.cloneRange(),Xe=J.extractContents(),st,Ke,bt=!1,jt=!1;Xe.childNodes.forEach(function(xn,Mn){var Wn=!1;if(xn.nodeType===3?Wn=!0:xn.classList.contains("vditor-comment")?xn.classList.contains("vditor-comment")&&xn.setAttribute("data-cmtids",xn.getAttribute("data-cmtids")+" "+V):Wn=!0,Wn)if(xn.nodeType!==3&&xn.getAttribute("data-block")==="0"&&Mn===0&&Te.startOffset>0)xn.innerHTML='<span class="vditor-comment" data-cmtids="'.concat(V,'">').concat(xn.innerHTML,"</span>"),st=xn;else if(xn.nodeType!==3&&xn.getAttribute("data-block")==="0"&&Mn===Xe.childNodes.length-1&&Te.endOffset<Te.endContainer.textContent.length)xn.innerHTML='<span class="vditor-comment" data-cmtids="'.concat(V,'">').concat(xn.innerHTML,"</span>"),Ke=xn;else if(xn.nodeType!==3&&xn.getAttribute("data-block")==="0")Mn===0?bt=!0:Mn===Xe.childNodes.length-1&&(jt=!0),xn.innerHTML='<span class="vditor-comment" data-cmtids="'.concat(V,'">').concat(xn.innerHTML,"</span>");else{var En=document.createElement("span");En.classList.add("vditor-comment"),En.setAttribute("data-cmtids",V),xn.parentNode.insertBefore(En,xn),En.appendChild(xn)}});var An=(0,A.F9)(Te.startContainer);An&&(st?(An.insertAdjacentHTML("beforeend",st.innerHTML),st.remove()):An.textContent.trim().replace(s.g.ZWSP,"")===""&&bt&&An.remove());var On=(0,A.F9)(Te.endContainer);On&&(Ke?(On.insertAdjacentHTML("afterbegin",Ke.innerHTML),Ke.remove()):On.textContent.trim().replace(s.g.ZWSP,"")===""&&jt&&On.remove()),J.insertNode(Xe),I.options.comment.add(V,J.toString(),P.getComments(I,!0)),Re(I,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),P.hideComment()})}return T.prototype.getComments=function(I,P){var $=this;if(P===void 0&&(P=!1),I.currentMode==="wysiwyg"&&I.options.comment.enable){this.commentIds=[],this.element.querySelectorAll(".vditor-comment").forEach(function(J){$.commentIds=$.commentIds.concat(J.getAttribute("data-cmtids").split(" "))}),this.commentIds=Array.from(new Set(this.commentIds));var V=[];if(P)return this.commentIds.forEach(function(J){V.push({id:J,top:$.element.querySelector('.vditor-comment[data-cmtids="'.concat(J,'"]')).offsetTop})}),V}else return[]},T.prototype.triggerRemoveComment=function(I){var P=function(J,Te){var Xe=new Set(Te);return J.filter(function(st){return!Xe.has(st)})};if(I.currentMode==="wysiwyg"&&I.options.comment.enable&&I.wysiwyg.commentIds.length>0){var $=JSON.parse(JSON.stringify(this.commentIds));this.getComments(I);var V=P($,this.commentIds);V.length>0&&I.options.comment.remove(V)}},T.prototype.showComment=function(){var I=(0,F.Ny)(this.element);this.selectPopover.setAttribute("style","left:".concat(I.left,"px;display:block;top:").concat(Math.max(-8,I.top-21),"px"))},T.prototype.hideComment=function(){this.selectPopover.setAttribute("style","display:none")},T.prototype.unbindListener=function(){window.removeEventListener("scroll",this.scrollListener)},T.prototype.copy=function(I,P){var $=getSelection().getRangeAt(0);if($.toString()!==""){I.stopPropagation(),I.preventDefault();var V=(0,A.lG)($.startContainer,"CODE"),J=(0,A.lG)($.endContainer,"CODE");if(V&&J&&J.isSameNode(V)){var Te="";V.parentElement.tagName==="PRE"?Te=$.toString():Te="`"+$.toString()+"`",I.clipboardData.setData("text/plain",Te),I.clipboardData.setData("text/html","");return}var Xe=(0,A.lG)($.startContainer,"A"),st=(0,A.lG)($.endContainer,"A");if(Xe&&st&&st.isSameNode(Xe)){var Ke=Xe.getAttribute("title")||"";Ke&&(Ke=' "'.concat(Ke,'"')),I.clipboardData.setData("text/plain","[".concat($.toString(),"](").concat(Xe.getAttribute("href")).concat(Ke,")")),I.clipboardData.setData("text/html","");return}var bt=document.createElement("div");bt.appendChild($.cloneContents()),I.clipboardData.setData("text/plain",P.lute.VditorDOM2Md(bt.innerHTML).trim()),I.clipboardData.setData("text/html","")}},T.prototype.bindEvent=function(I){var P=this;this.unbindListener(),window.addEventListener("scroll",this.scrollListener=function(){if(b(I,["hint"]),!(P.popover.style.display!=="block"||P.selectPopover.style.display!=="block")){var $=parseInt(P.popover.getAttribute("data-top"),10);if(I.options.height!=="auto"){if(I.options.toolbarConfig.pin&&I.toolbar.element.getBoundingClientRect().top===0){var V=Math.max(window.scrollY-I.element.offsetTop-8,Math.min($-I.wysiwyg.element.scrollTop,P.element.clientHeight-21))+"px";P.popover.style.display==="block"&&(P.popover.style.top=V),P.selectPopover.style.display==="block"&&(P.selectPopover.style.top=V)}return}else if(!I.options.toolbarConfig.pin)return;var J=Math.max($,window.scrollY-I.element.offsetTop-8)+"px";P.popover.style.display==="block"&&(P.popover.style.top=J),P.selectPopover.style.display==="block"&&(P.selectPopover.style.top=J)}}),this.element.addEventListener("scroll",function(){if(b(I,["hint"]),I.options.comment&&I.options.comment.enable&&I.options.comment.scroll&&I.options.comment.scroll(I.wysiwyg.element.scrollTop),P.popover.style.display==="block"){var $=parseInt(P.popover.getAttribute("data-top"),10)-I.wysiwyg.element.scrollTop,V=-8;I.options.toolbarConfig.pin&&I.toolbar.element.getBoundingClientRect().top===0&&(V=window.scrollY-I.element.offsetTop+V);var J=Math.max(V,Math.min($,P.element.clientHeight-21))+"px";P.popover.style.top=J,P.selectPopover.style.top=J}}),this.element.addEventListener("paste",function($){ar(I,$,{pasteCode:function(V){var J=(0,F.zh)(I),Te=document.createElement("template");Te.innerHTML=V,J.insertNode(Te.content.cloneNode(!0));var Xe=(0,A.a1)(J.startContainer,"data-block","0");Xe?Xe.outerHTML=I.lute.SpinVditorDOM(Xe.outerHTML):I.wysiwyg.element.innerHTML=I.lute.SpinVditorDOM(I.wysiwyg.element.innerHTML),(0,F.ib)(I.wysiwyg.element,J)}})}),this.element.addEventListener("compositionstart",function(){P.composingLock=!0}),this.element.addEventListener("compositionend",function($){var V=(0,S.W)(getSelection().getRangeAt(0).startContainer);if(V&&V.textContent===""){H(I);return}(0,f.vU)()||vo(I,getSelection().getRangeAt(0).cloneRange(),$),P.composingLock=!1}),this.element.addEventListener("input",function($){if(!($.inputType==="deleteByDrag"||$.inputType==="insertFromDrop")){if(P.preventInput){P.preventInput=!1,Re(I);return}if(P.composingLock||$.data==="‘"||$.data==="“"||$.data==="《"){Re(I);return}var V=getSelection().getRangeAt(0),J=(0,A.F9)(V.startContainer);if(J||(pt(I,V),J=(0,A.F9)(V.startContainer)),!!J){for(var Te=(0,F.im)(J,I.wysiwyg.element,V).start,Xe=!0,st=Te-1;st>J.textContent.substr(0,Te).lastIndexOf(`
- `);st--)if(J.textContent.charAt(st)!==" "&&J.textContent.charAt(st)!==" "){Xe=!1;break}Te===0&&(Xe=!1);for(var Ke=!0,st=Te-1;st<J.textContent.length;st++)if(J.textContent.charAt(st)!==" "&&J.textContent.charAt(st)!==`
- `){Ke=!1;break}Ke&&/^#{1,6} $/.test(J.textContent)&&(Ke=!1);var bt=(0,S.W)(getSelection().getRangeAt(0).startContainer);if(bt&&bt.textContent===""&&(H(I),bt.remove()),Xe&&J.getAttribute("data-type")!=="code-block"||Ke||sa(J.innerHTML)||yi(J.innerHTML)&&J.previousElementSibling){typeof I.options.input=="function"&&I.options.input(u(I));return}$.inputType==="insertParagraph"&&P.element.innerHTML==="<p><br></p><p><br></p>"&&J.previousElementSibling.remove(),vo(I,V,$)}}}),this.element.addEventListener("click",function($){if($.target.tagName==="INPUT"){var V=$.target;V.checked?V.setAttribute("checked","checked"):V.removeAttribute("checked"),P.preventInput=!0,getSelection().rangeCount>0&&(0,F.Hc)(getSelection().getRangeAt(0)),Re(I);return}if($.target.tagName==="IMG"&&!$.target.parentElement.classList.contains("vditor-wysiwyg__preview")){$.target.getAttribute("data-type")==="link-ref"?Tn(I,$.target):Se($,I);return}var J=(0,A.lG)($.target,"A");if(J){I.options.link.click?I.options.link.click(J):I.options.link.isOpen&&window.open(J.getAttribute("href")),$.preventDefault();return}var Te=(0,F.zh)(I);if($.target.isEqualNode(P.element)&&P.element.lastElementChild&&Te.collapsed){var Xe=P.element.lastElementChild.getBoundingClientRect();$.y>Xe.top+Xe.height&&(P.element.lastElementChild.tagName==="P"&&P.element.lastElementChild.textContent.trim().replace(s.g.ZWSP,"")===""?(Te.selectNodeContents(P.element.lastElementChild),Te.collapse(!1)):(P.element.insertAdjacentHTML("beforeend",'<p data-block="0">'.concat(s.g.ZWSP,"<wbr></p>")),(0,F.ib)(P.element,Te)))}ft(I);var st=(0,A.fb)($.target,"vditor-wysiwyg__preview");st||(st=(0,A.fb)((0,F.zh)(I).startContainer,"vditor-wysiwyg__preview")),st&&it(st,I),re($,I)}),this.element.addEventListener("keyup",function($){if(!($.isComposing||(0,f.yl)($))){$.key==="Enter"&&Bn(I),($.key==="Backspace"||$.key==="Delete")&&I.wysiwyg.element.innerHTML!==""&&I.wysiwyg.element.childNodes.length===1&&I.wysiwyg.element.firstElementChild&&I.wysiwyg.element.firstElementChild.tagName==="P"&&I.wysiwyg.element.firstElementChild.childElementCount===0&&(I.wysiwyg.element.textContent===""||I.wysiwyg.element.textContent===`
- `)&&(I.wysiwyg.element.innerHTML="");var V=(0,F.zh)(I);if($.key==="Backspace"&&(0,f.vU)()&&V.startContainer.textContent===`
- `&&V.startOffset===1&&(V.startContainer.textContent=""),pt(I,V),ft(I),!($.key!=="ArrowDown"&&$.key!=="ArrowRight"&&$.key!=="Backspace"&&$.key!=="ArrowLeft"&&$.key!=="ArrowUp")){($.key==="ArrowLeft"||$.key==="ArrowRight")&&I.hint.render(I);var J=(0,A.fb)(V.startContainer,"vditor-wysiwyg__preview");if(!J&&V.startContainer.nodeType!==3&&V.startOffset>0){var Te=V.startContainer;Te.classList.contains("vditor-wysiwyg__block")&&(J=Te.lastElementChild)}if(J){var Xe=J.previousElementSibling;if(Xe.style.display==="none"){$.key==="ArrowDown"||$.key==="ArrowRight"?it(J,I):it(J,I,!1);return}var st=J.previousElementSibling;if(st.tagName==="PRE"&&(st=st.firstElementChild),$.key==="ArrowDown"||$.key==="ArrowRight"){var Te=J.parentElement,Ke=Kt(Te);if(Ke&&Ke.nodeType!==3){var bt=Ke.querySelector(".vditor-wysiwyg__preview");if(bt){it(bt,I);return}}if(Ke.nodeType===3){for(;Ke.textContent.length===0&&Ke.nextSibling;)Ke=Ke.nextSibling;V.setStart(Ke,1)}else V.setStart(Ke.firstChild,0)}else V.selectNodeContents(st),V.collapse(!1)}}}})},T})(),at=(function(){var T=function(I,P){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var J in V)Object.prototype.hasOwnProperty.call(V,J)&&($[J]=V[J])},T(I,P)};return function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");T(I,P);function $(){this.constructor=I}I.prototype=P===null?Object.create(P):($.prototype=P.prototype,new $)}})(),wt=(function(T){at(I,T);function I(P,$){var V=T.call(this)||this;if(V.isDestroyed=!1,V.version=s.H,typeof P=="string"){if($?$.cache?$.cache.id||($.cache.id="vditor".concat(P)):$.cache={id:"vditor".concat(P)}:$={cache:{id:"vditor".concat(P)}},!document.getElementById(P))return V.showErrorTip("Failed to get element by id: ".concat(P)),V;P=document.getElementById(P)}var J=new Ze($),Te=J.merge();if(Te.i18n)window.VditorI18n=Te.i18n,V.init(P,Te);else if(["de_DE","en_US","es_ES","fr_FR","ja_JP","ko_KR","pt_BR","ru_RU","sv_SE","vi_VN","zh_CN","zh_TW"].includes(Te.lang)){var Xe="vditorI18nScript",st=Xe+Te.lang;document.querySelectorAll('head script[id^="'.concat(Xe,'"]')).forEach(function(Ke){Ke.id!==st&&document.head.removeChild(Ke)}),(0,d.G)("".concat(Te.cdn,"/dist/js/i18n/").concat(Te.lang,".js"),st).then(function(){V.init(P,Te)}).catch(function(Ke){V.showErrorTip("GET ".concat(Te.cdn,"/dist/js/i18n/").concat(Te.lang,".js net::ERR_ABORTED 404 (Not Found)"))})}else throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");return V}return I.prototype.showErrorTip=function(P){var $=new Pi;document.body.appendChild($.element),$.show(P,0)},I.prototype.updateToolbarConfig=function(P){this.vditor.toolbar.updateConfig(this.vditor,P)},I.prototype.setTheme=function(P,$,V,J){this.vditor.options.theme=P,pe(this.vditor),$&&(this.vditor.options.preview.theme.current=$,(0,De.Z)($,J||this.vditor.options.preview.theme.path)),V&&(this.vditor.options.preview.hljs.style=V,(0,_m.Y)(V,this.vditor.options.cdn))},I.prototype.getValue=function(){return u(this.vditor)},I.prototype.getCurrentMode=function(){return this.vditor.currentMode},I.prototype.focus=function(){this.vditor.currentMode==="sv"?this.vditor.sv.element.focus():this.vditor.currentMode==="wysiwyg"?this.vditor.wysiwyg.element.focus():this.vditor.currentMode==="ir"&&this.vditor.ir.element.focus()},I.prototype.blur=function(){this.vditor.currentMode==="sv"?this.vditor.sv.element.blur():this.vditor.currentMode==="wysiwyg"?this.vditor.wysiwyg.element.blur():this.vditor.currentMode==="ir"&&this.vditor.ir.element.blur()},I.prototype.disabled=function(){b(this.vditor,["subToolbar","hint","popover"]),g(this.vditor.toolbar.elements,s.g.EDIT_TOOLBARS.concat(["undo","redo","fullscreen","edit-mode"])),this.vditor[this.vditor.currentMode].element.setAttribute("contenteditable","false")},I.prototype.enable=function(){h(this.vditor.toolbar.elements,s.g.EDIT_TOOLBARS.concat(["undo","redo","fullscreen","edit-mode"])),this.vditor.undo.resetIcon(this.vditor),this.vditor[this.vditor.currentMode].element.setAttribute("contenteditable","true")},I.prototype.getSelection=function(){if(this.vditor.currentMode==="wysiwyg")return wr(this.vditor.wysiwyg.element);if(this.vditor.currentMode==="sv")return wr(this.vditor.sv.element);if(this.vditor.currentMode==="ir")return wr(this.vditor.ir.element)},I.prototype.renderPreview=function(P){this.vditor.preview.render(this.vditor,P)},I.prototype.getCursorPosition=function(){return(0,F.Ny)(this.vditor[this.vditor.currentMode].element)},I.prototype.isUploading=function(){return this.vditor.upload.isUploading},I.prototype.clearCache=function(){this.vditor.options.cache.enable&&(0,f.pK)()&&localStorage.removeItem(this.vditor.options.cache.id)},I.prototype.disabledCache=function(){this.vditor.options.cache.enable=!1},I.prototype.enableCache=function(){if(!this.vditor.options.cache.id)throw new Error("need options.cache.id, see https://ld246.com/article/1549638745630#options");this.vditor.options.cache.enable=!0},I.prototype.html2md=function(P){return this.vditor.lute.HTML2Md(P)},I.prototype.exportJSON=function(P){return this.vditor.lute.RenderJSON(P)},I.prototype.getHTML=function(){return Pn(this.vditor)},I.prototype.tip=function(P,$){this.vditor.tip.show(P,$)},I.prototype.setPreviewMode=function(P){uo(P,this.vditor)},I.prototype.deleteValue=function(){window.getSelection().isCollapsed||document.execCommand("delete",!1)},I.prototype.updateValue=function(P){document.execCommand("insertHTML",!1,P)},I.prototype.insertValue=function(P,$){$===void 0&&($=!0);var V=(0,F.zh)(this.vditor);V.collapse(!0);var J=document.createElement("template");J.innerHTML=P,V.insertNode(J.content.cloneNode(!0)),V.collapse(!1),this.vditor.currentMode==="sv"?(this.vditor.sv.preventInput=!0,$&&Q(this.vditor)):this.vditor.currentMode==="wysiwyg"?$&&vo(this.vditor,getSelection().getRangeAt(0)):this.vditor.currentMode==="ir"&&(this.vditor.ir.preventInput=!0,$&&te(this.vditor,getSelection().getRangeAt(0),!0))},I.prototype.insertMD=function(P){this.vditor.currentMode==="ir"?(0,F.oC)(this.vditor.lute.Md2VditorIRDOM(P),this.vditor):this.vditor.currentMode==="wysiwyg"?(0,F.oC)(this.vditor.lute.Md2VditorDOM(P),this.vditor):Ye(this.vditor,P),this.vditor.outline.render(this.vditor),Dr(this.vditor)},I.prototype.setValue=function(P,$){var V=this;$===void 0&&($=!1),this.vditor.currentMode==="sv"?(this.vditor.sv.element.innerHTML="<div data-block='0'>".concat(this.vditor.lute.SpinVditorSVDOM(P),"</div>"),Xt(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})):this.vditor.currentMode==="wysiwyg"?ot(this.vditor,P,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}):(this.vditor.ir.element.innerHTML=this.vditor.lute.Md2VditorIRDOM(P),this.vditor.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach(function(J){U(J,V.vditor)}),we(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})),this.vditor.outline.render(this.vditor),P||(b(this.vditor,["emoji","headings","submenu","hint"]),this.vditor.wysiwyg.popover&&(this.vditor.wysiwyg.popover.style.display="none"),this.clearCache()),$&&this.clearStack()},I.prototype.insertEmptyBlock=function(P){ni(this.vditor,P)},I.prototype.clearStack=function(){this.vditor.undo.clearStack(this.vditor),this.vditor.undo.addToUndoStack(this.vditor)},I.prototype.destroy=function(){this.vditor.element.innerHTML=this.vditor.originalInnerHTML,this.vditor.element.classList.remove("vditor"),this.vditor.element.removeAttribute("style");var P=document.getElementById("vditorIconScript");P&&P.remove(),this.clearCache(),Fe(),this.vditor.wysiwyg.unbindListener(),this.vditor.options.after=void 0,this.isDestroyed=!0},I.prototype.getCommentIds=function(){return this.vditor.currentMode!=="wysiwyg"?[]:this.vditor.wysiwyg.getComments(this.vditor,!0)},I.prototype.hlCommentIds=function(P){if(this.vditor.currentMode==="wysiwyg"){var $=function(V){V.classList.remove("vditor-comment--hover"),P.forEach(function(J){V.getAttribute("data-cmtids").indexOf(J)>-1&&V.classList.add("vditor-comment--hover")})};this.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(V){$(V)}),this.vditor.preview.element.style.display!=="none"&&this.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(V){$(V)})}},I.prototype.unHlCommentIds=function(P){if(this.vditor.currentMode==="wysiwyg"){var $=function(V){P.forEach(function(J){V.getAttribute("data-cmtids").indexOf(J)>-1&&V.classList.remove("vditor-comment--hover")})};this.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(V){$(V)}),this.vditor.preview.element.style.display!=="none"&&this.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(V){$(V)})}},I.prototype.removeCommentIds=function(P){var $=this;if(this.vditor.currentMode==="wysiwyg"){var V=function(J,Te){var Xe=J.getAttribute("data-cmtids").split(" ");Xe.find(function(st,Ke){if(st===Te)return Xe.splice(Ke,1),!0}),Xe.length===0?(J.outerHTML=J.innerHTML,(0,F.zh)($.vditor).collapse(!0)):J.setAttribute("data-cmtids",Xe.join(" "))};P.forEach(function(J){$.vditor.wysiwyg.element.querySelectorAll(".vditor-comment").forEach(function(Te){V(Te,J)}),$.vditor.preview.element.style.display!=="none"&&$.vditor.preview.element.querySelectorAll(".vditor-comment").forEach(function(Te){V(Te,J)})}),Re(this.vditor,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1})}},I.prototype.init=function(P,$){var V=this;this.isDestroyed||(this.vditor={currentMode:$.mode,element:P,hint:new mn($.hint.extend),lute:void 0,options:$,originalInnerHTML:P.innerHTML,outline:new qo(window.VditorI18n.outline),tip:new Pi},this.vditor.sv=new Go(this.vditor),this.vditor.undo=new Ie,this.vditor.wysiwyg=new lt(this.vditor),this.vditor.ir=new wn(this.vditor),this.vditor.toolbar=new ye(this.vditor),$.resize.enable&&(this.vditor.resize=new lo(this.vditor)),this.vditor.toolbar.elements.devtools&&(this.vditor.devtools=new c),($.upload.url||$.upload.handler)&&(this.vditor.upload=new xo),(0,d.G)($._lutePath||"".concat($.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then(function(){V.vditor.lute=(0,Cr.X)({autoSpace:V.vditor.options.preview.markdown.autoSpace,gfmAutoLink:V.vditor.options.preview.markdown.gfmAutoLink,codeBlockPreview:V.vditor.options.preview.markdown.codeBlockPreview,emojiSite:V.vditor.options.hint.emojiPath,emojis:V.vditor.options.hint.emoji,fixTermTypo:V.vditor.options.preview.markdown.fixTermTypo,footnotes:V.vditor.options.preview.markdown.footnotes,headingAnchor:!1,inlineMathDigit:V.vditor.options.preview.math.inlineDigit,linkBase:V.vditor.options.preview.markdown.linkBase,linkPrefix:V.vditor.options.preview.markdown.linkPrefix,listStyle:V.vditor.options.preview.markdown.listStyle,mark:V.vditor.options.preview.markdown.mark,mathBlockPreview:V.vditor.options.preview.markdown.mathBlockPreview,paragraphBeginningSpace:V.vditor.options.preview.markdown.paragraphBeginningSpace,sanitize:V.vditor.options.preview.markdown.sanitize,toc:V.vditor.options.preview.markdown.toc}),V.vditor.preview=new po(V.vditor),ie(V.vditor),$.after&&$.after(),$.icon&&(0,d.J)("".concat($.cdn,"/dist/js/icons/").concat($.icon,".js"),"vditorIconScript")}))},I})(a.default);const mt=wt})(),i=i.default,i})()})})(J8)),J8.exports}var nrn=trn();const rrn=xu(nrn),orn={class:"mobile-chat"},irn={class:"mobile-content"},arn={key:0,class:"initial-content"},srn={class:"ai-intro"},lrn={class:"ai-avatar"},urn=["src"],crn={class:"function-cards"},drn=["onClick"],frn={class:"card-header"},prn={class:"card-icon"},hrn=["src","alt"],grn={class:"card-description"},vrn={class:"card-header"},mrn={class:"card-icon"},yrn=["src"],brn={class:"card-header"},wrn={class:"card-icon"},Arn=["src"],Crn={class:"card-header"},xrn={class:"card-icon"},Srn=["src"],Ern={class:"card-header"},krn={class:"card-icon"},Trn=["src"],_rn={key:1,class:"chat-messages"},Drn={key:0,class:"user-message"},Irn={class:"message-content"},Orn={key:0,class:"message-text"},Mrn={class:"message-actions"},Prn=["onClick"],Nrn=["src"],Rrn=["onClick"],Brn=["src"],Lrn={key:1,class:"ai-message"},Frn={key:0,class:"web-search-capsule-outer"},Urn={class:"ai-message-main"},zrn={class:"ai-avatar-small"},$rn=["src"],jrn=["data-message-index"],Hrn={class:"ai-response-content"},Wrn=["data-message-index"],Vrn={class:"stats-left"},qrn=["innerHTML"],Grn={key:0,class:"progress-capsule-inline"},Krn={class:"progress-bar-mini"},Yrn={class:"progress-percentage"},Qrn={key:1,class:"stats-right"},Zrn={key:1,class:"question-summary"},Xrn={key:2,class:"report-loading"},Jrn={key:3,class:"reports-list"},eon={key:0,class:"report-loading"},ton={key:4},non={key:5,class:"ai-text"},ron={key:0,class:"ai-markdown-content"},oon=["innerHTML"],ion={class:"divider"},aon={class:"message-actions"},son={class:"left-actions"},lon=["onClick"],uon=["src"],con=["onClick","disabled"],don=["src"],fon=["onClick","title"],pon=["src"],hon={class:"right-actions"},gon=["onClick","title"],von=["src"],mon=["onClick","title"],yon=["src"],bon={class:"related-questions-loading"},won={class:"related-questions"},Aon=["onClick"],Con={class:"chat-input-section"},xon={class:"input-container"},Son={class:"input-box"},Eon=["title","disabled"],kon={class:"icon-container"},Ton=["src"],_on=["disabled"],Don=["disabled"],Ion={class:"icon-container"},Oon=["src"],Mon={key:0,class:"recording-indicator"},Pon=["disabled"],Non=["src"],Ron={class:"web-search-modal-header"},Bon={class:"web-search-modal-content"},Lon={key:0,class:"search-results"},Fon={class:"search-count"},Uon=["onClick"],zon={class:"result-header"},$on={class:"result-index"},jon={class:"result-title"},Hon={class:"result-content"},Won={class:"result-footer"},Von={class:"result-url"},qon={key:0,class:"result-score"},Gon={class:"web-preview-header"},Kon={class:"web-preview-content"},Yon=["src"],Qon={key:1,class:"iframe-error"},Zon={class:"file-preview-header"},Xon={class:"header-left"},Jon={class:"header-text"},ein={key:0,class:"file-name"},tin={class:"file-preview-content"},nin={key:0,class:"file-loading"},rin={key:1,class:"file-error"},oin=["src"],iin={key:3,class:"file-empty"},ain={__name:"m-Chat",setup(e){const t=Yl(),n=j_(),r=()=>{t.go(-1)},o=()=>{!f.value&&!ze.value&&(i.value=!0)},i=K(!1),a=K([]),s=K(0),l=K(!1),u=K(!1),d=K([]),c=K(""),f=K(!1),p=K(0),v=K(!1),h=K(null),g=K(""),y=K(!1),m=K(null),b=K(!1),w=K(""),A=K(""),S=K(!1),E=K(""),D=K(""),_=K(!1),M=K(""),O=K({}),k=K({}),{isSupported:R,isListening:N,transcript:W,error:B,startListening:z,stopListening:j}=O0(),q=K(null),Y=K(null),U=K([]),F=K(!1),H=K(!1),re=K(""),X=K(2e3),te=K([]);K([]);const Z=K(!0),le=K({});K(!1),K(new Set);const ve=K({}),Pe=K({}),Ae=K([]),he=K(!1),Ee=K(null),Q=K(!1);let me=null;const De=K({}),pe=K(""),ie=K("知识库文件"),ue=K(new Map),Be=new Map,Me=new Map;let Fe=0;const ze=ee(()=>{const Qe=d.value.some(Ve=>Ve.type==="ai"&&Ve.isTyping);return console.log("hasTypingMessage计算:",Qe,"聊天消息:",d.value.map(Ve=>({type:Ve.type,isTyping:Ve.isTyping}))),Qe}),Ne=ee(()=>g.value==="history"?`确定要删除历史记录"${h.value?.item?.title||""}"吗?删除后将无法恢复。`:g.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),Re=ee(()=>g.value==="history"?"删除历史记录":g.value==="message"?"删除消息":"删除确认"),gt=Qe=>{if(Qe===0)return"0 Bytes";const Ve=1024,ne=["Bytes","KB","MB","GB"],Oe=Math.floor(Math.log(Qe)/Math.log(Ve));return parseFloat((Qe/Math.pow(Ve,Oe)).toFixed(2))+" "+ne[Oe]},Bt=(Qe,Ve)=>{if(!Ve)return Lt(Qe);const ne=`
- 📄 文件信息:
- 文件名:${Ve.name}
- 文件大小:${gt(Ve.size)}
- 文件类型:${Ve.type}
- 📝 文件内容:
- ${Ve.content}
- ---
- `;return Qe.replace(/<word>.*?<\/word>/gs,ne).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},Lt=Qe=>{const Ve=Qe.match(/<filename>(.*?)<\/filename>/),ne=Ve?Ve[1]:"未知文件",Oe=Qe.match(/<filesize>(.*?)<\/filesize>/),Ge=Oe?parseInt(Oe[1]):0,$t=Qe.match(/<word>(.*?)<\/word>/s),Ot=$t?$t[1].trim():"无内容",ln=`
- 📄 文件信息:
- 文件名:${ne}
- 文件大小:${gt(Ge)}
- 文件类型:${ne.endsWith(".docx")?".docx":ne.endsWith(".doc")?".doc":"未知"}
- 📝 文件内容:
- ${Ot}
- ---
- `;return Qe.replace(/<word>.*?<\/word>/gs,ln).replace(/<filename>.*?<\/filename>/g,"").replace(/<filesize>.*?<\/filesize>/g,"")},an=Qe=>new Promise(Ve=>{try{console.log("开始使用Vditor渲染,内容长度:",Qe.length),console.log("原始内容:",Qe);const ne=document.createElement("div");ne.style.display="none",document.body.appendChild(ne),rrn.preview(ne,Qe,{mode:"light",markdown:{toc:!1,mark:!1,footnotes:!1,autoSpace:!1,fixTermTypo:!1,chinesePunct:!1,linkBase:"",linkPrefix:"",listStyle:!1,paragraphBeginningSpace:!1},theme:{current:"light",path:"https://cdn.jsdelivr.net/npm/vditor@3.10.9/dist/css/content-theme"},after:()=>{let Oe=ne.innerHTML;Oe=pt(Oe),console.log("Vditor渲染完成,HTML长度:",Oe.length),console.log("HTML预览:",Oe.substring(0,200)+"..."),document.body.removeChild(ne),Yt(()=>{Yr()}),Ve(Oe)}})}catch(ne){console.error("Vditor渲染错误:",ne);const Oe=Qe.replace(/\n/g,"<br>");Ve(Oe)}}),Kt=Qe=>{if(!Qe)return Qe;let Ve=Qe;const ne={"\\alpha":"α","\\beta":"β","\\gamma":"γ","\\delta":"δ","\\epsilon":"ε","\\varepsilon":"ε","\\zeta":"ζ","\\eta":"η","\\theta":"θ","\\iota":"ι","\\kappa":"κ","\\lambda":"λ","\\mu":"μ","\\nu":"ν","\\xi":"ξ","\\pi":"π","\\rho":"ρ","\\sigma":"σ","\\tau":"τ","\\upsilon":"υ","\\phi":"φ","\\chi":"χ","\\psi":"ψ","\\omega":"ω","\\Gamma":"Γ","\\Delta":"Δ","\\Theta":"Θ","\\Lambda":"Λ","\\Xi":"Ξ","\\Pi":"Π","\\Sigma":"Σ","\\Upsilon":"Υ","\\Phi":"Φ","\\Psi":"Ψ","\\Omega":"Ω"};for(const[Oe,Ge]of Object.entries(ne)){const $t=new RegExp(Oe.replace(/\\/g,"\\\\"),"g");Ve=Ve.replace($t,Ge)}return Ve=Ve.replace(/\\frac\{([^}]+)\}\{([^}]+)\}/g,"$1/$2"),Ve=Ve.replace(/\\sqrt\{([^}]+)\}/g,"√$1"),Ve=Ve.replace(/\\int/g,"∫"),Ve=Ve.replace(/\\sum/g,"∑"),Ve=Ve.replace(/\\prod/g,"∏"),Ve=Ve.replace(/\\partial/g,"∂"),Ve=Ve.replace(/\\nabla/g,"∇"),Ve=Ve.replace(/\\infty/g,"∞"),Ve=Ve.replace(/\\pm/g,"±"),Ve=Ve.replace(/\\times/g,"×"),Ve=Ve.replace(/\\div/g,"÷"),Ve=Ve.replace(/\\leq/g,"≤"),Ve=Ve.replace(/\\geq/g,"≥"),Ve=Ve.replace(/\\neq/g,"≠"),Ve=Ve.replace(/\\approx/g,"≈"),Ve=Ve.replace(/\\equiv/g,"≡"),Ve=Ve.replace(/\\propto/g,"∝"),Ve=Ve.replace(/\\in/g,"∈"),Ve=Ve.replace(/\\notin/g,"∉"),Ve=Ve.replace(/\\subset/g,"⊂"),Ve=Ve.replace(/\\supset/g,"⊃"),Ve=Ve.replace(/\\cup/g,"∪"),Ve=Ve.replace(/\\cap/g,"∩"),Ve=Ve.replace(/\\emptyset/g,"∅"),Ve=Ve.replace(/\\land/g,"∧"),Ve=Ve.replace(/\\lor/g,"∨"),Ve=Ve.replace(/\\neg/g,"¬"),Ve=Ve.replace(/\\rightarrow/g,"→"),Ve=Ve.replace(/\\leftarrow/g,"←"),Ve=Ve.replace(/\\leftrightarrow/g,"↔"),Ve=Ve.replace(/\\forall/g,"∀"),Ve=Ve.replace(/\\exists/g,"∃"),console.log("LaTeX转换:",Qe,"→",Ve),Ve},Ht=Qe=>{if(!Qe)return Qe;console.log("原始AI回复:",Qe),console.log("原始文本长度:",Qe.length),console.log("原始文本字符码:",Array.from(Qe).map(Ve=>Ve.charCodeAt(0)));try{if(Qe.includes("%")){const ne=decodeURIComponent(Qe);console.log("URL解码后:",ne),Qe=ne}if(Qe.includes("??")){const ne=Qe.replace(/\?\?/g,"");console.log("清理问号后:",ne),Qe=ne}if(Qe.includes("\\u")){const ne=Qe.replace(/\\u[\dA-F]{4}/gi,Oe=>String.fromCharCode(parseInt(Oe.replace(/\\u/g,""),16)));console.log("Unicode解码后:",ne),Qe=ne}if(Qe.includes("&")){console.log("检测到&符号,可能包含HTML实体");const ne=document.createElement("textarea");ne.innerHTML=Qe;const Oe=ne.value;console.log("HTML解码后:",Oe),Oe!==Qe?(console.log("HTML实体解码成功,内容已变化"),Qe=Oe):console.log("HTML实体解码未生效,可能不是HTML实体")}if(Qe.includes("�")){console.log("检测到替换字符,尝试修复");const ne=Qe.replace(/\uFFFD/g,"");console.log("修复替换字符后:",ne),Qe=ne}const Ve=Kt(Qe);return console.log("LaTeX转换后:",Ve),console.log("最终处理结果:",Ve),Ve}catch(Ve){return console.error("处理AI回复时出错:",Ve),Qe}},pt=Qe=>{if(!Qe)return Qe;console.log("开始处理规范引用,HTML长度:",Qe.length);const Ve=Qe.replace(/<file>(.*?)<\/file>/g,(ne,Oe)=>{if(console.log("发现文件引用:",Oe),/^<span\s+class="standard-reference"/i.test(Oe))return ne;const Ge=Oe.match(/^([《「『【]?[\s\S]*?[》」』】]?)[\s]*\(([^)]+)\)$/);if(Ge){const $t=Ge[1],Ot=Ge[2];return console.log("标准格式规范:",{standardName:$t,standardNumber:Ot}),`<span class="standard-reference" data-standard="${Oe}" data-name="${$t}" data-number="${Ot}" title="点击查看标准详情" style="background-color: #EAEAEE; color: #616161; font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; cursor: pointer; display: inline-block; margin: 4px 2px; border: 1px solid #EAEAEE; font-weight: 500; transition: all 0.2s ease; line-height: 1.4;">${Oe}</span>`}return console.log("普通文件引用格式:",Oe),`<span class="standard-reference" data-reference="${Oe}" title="点击查看详情" style="background-color: #EAEAEE; color: #616161; font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; cursor: pointer; display: inline-block; margin: 4px 2px; border: 1px solid #EAEAEE; font-weight: 500; transition: all 0.2s ease; line-height: 1.4;">${Oe}</span>`});return console.log("规范引用处理完成"),Ve},Dt=Qe=>{if(!Qe)return"";const Ve=new Date(Qe),ne=new Date,Oe=ne-Ve;return Oe<1440*60*1e3&&Ve.getDate()===ne.getDate()?Ve.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):Oe<2880*60*1e3&&Ve.getDate()===ne.getDate()-1?"昨天 "+Ve.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"}):Ve.toLocaleDateString("zh-CN",{month:"2-digit",day:"2-digit"})},dt=Qe=>{if(!Qe)return"新对话";const Ve=Qe.replace(/<[^>]*>/g,"").trim();return Ve.length>30?Ve.substring(0,30)+"...":Ve},it=Qe=>{if(!Qe)return null;if(typeof Qe=="number"){const Ve=Qe<1e12?Qe*1e3:Qe;return new Date(Ve)}if(typeof Qe=="string"){let Ve=new Date(Qe);if(!isNaN(Ve))return Ve;const ne=Qe.replace(/-/g,"/").replace("T"," ");if(Ve=new Date(ne),!isNaN(Ve))return Ve}return new Date(Qe)},de=Qe=>{const Ve=it(Qe);if(!Ve||isNaN(Ve))return"未知时间";const ne=new Date,Oe=Ve.toDateString()===ne.toDateString(),Ge=new Date(ne.getFullYear(),ne.getMonth(),ne.getDate()-1),$t=Ve.toDateString()===Ge.toDateString();if(Oe)return Ve.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if($t)return"昨天 "+Ve.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const Ot=Ve.getMonth()+1,ln=Ve.getDate(),fn=Ve.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Ot}月${ln}日 ${fn}`},tt=async()=>{try{console.log("📋 开始获取移动端AI问答历史记录列表..."),l.value=!0;const Qe=performance.now(),Ve=await zn.getHistoryRecord({ai_conversation_id:0,business_type:0}),ne=performance.now();console.log(`📋 移动端AI问答历史记录API调用耗时: ${(ne-Qe).toFixed(2)}ms`),console.log("📋 移动端历史记录列表响应:",Ve),Ve.statusCode===200?(s.value=Ve.total||0,a.value=Ve.data.map(Oe=>({id:Oe.id,title:dt(Oe.content),time:de(Oe.updated_at),businessType:Oe.business_type,isActive:!1,rawData:Oe})),p.value&&a.value.forEach(Oe=>{Oe.isActive=Oe.id===p.value}),console.log(`✅ 移动端AI问答历史记录列表已设置: ${a.value.length}条记录,总数: ${s.value}`)):console.error("❌ 获取移动端历史记录列表失败:",Ve.statusCode)}catch(Qe){console.error("❌ 获取移动端历史记录列表失败:",Qe)}finally{l.value=!1}},ft=Qe=>{try{let Ve=Mg(Qe);return Ve=pt(Ve),Yt(()=>{Yr()}),Ve}catch(Ve){return console.error("Markdown渲染失败:",Ve),Qe.replace(/\n/g,"<br>")}},Mt=Qe=>{try{if(!Qe||typeof Qe!="string"||!Qe.trim())return null;const Ve=JSON.parse(Qe);if(!Array.isArray(Ve))return null;const ne=Ve.filter(Oe=>Oe&&typeof Oe=="object"&&Oe.title&&Oe.content);return ne.length>0?ne:null}catch(Ve){return console.error("解析搜索来源失败:",Ve),null}},Tn=Qe=>{switch(parseInt(Qe)){case 2:return"like";case 3:return"dislike";default:return null}},Nn=Qe=>{switch(Qe){case"like":return 2;case"dislike":return 3;default:return 0}},We=async Qe=>{try{const Ve=await zn.getHistoryRecord({ai_conversation_id:Qe,business_type:0});if(Ve.statusCode===200){if(!Ve.data||!Array.isArray(Ve.data))return console.error("响应数据格式错误"),!1;const ne=await Promise.all(Ve.data.map(async(Ge,$t)=>{const Ot=Tn(Ge.user_feedback);let ln=null,fn=Ge.content,Cn=null;if(Ge.type==="ai"&&$t>0){const yr=Ve.data[$t-1];if(yr&&yr.type==="user")if(yr.content.includes("</filesize>")){const Ar=yr.content.split("</filesize>")[1];Cn=Ar?Ar.trim():yr.content}else Cn=yr.content}if(Ge.type==="user"&&Ge.content.includes("</filesize>")){const yr=Ge.content.match(/<filename>(.*?)<\/filename>/),Ar=Ge.content.match(/<filesize>(.*?)<\/filesize>/),we=Ge.content.match(/<word>(.*?)<\/word>/s);if(yr&&Ar){const ae=yr[1],ce=parseInt(Ar[1]),Ce=we?we[1].trim():"";ln={name:ae,size:ce,type:ae.endsWith(".docx")?".docx":ae.endsWith(".doc")?".doc":".docx",icon:getFileIcon(ae.endsWith(".docx")?".docx":ae.endsWith(".doc")?".doc":".docx"),content:Ce};const zt=Ge.content.split("</filesize>")[1];fn=zt?zt.trim():""}}let sr=fn||"",Kn=[],Tr=Ge.summary||"";if(Ge.type==="ai")try{const yr=Ge.content||"";if(yr.trim().startsWith("[")||yr.trim().startsWith("{"))try{const Ar=JSON.parse(yr);if(Ar.reports&&Array.isArray(Ar.reports))Kn=Ar.reports,Ar.webSearchRaw&&(Ge.webSearchRaw=Ar.webSearchRaw),Ar.webSearchSummary&&(Ge.webSearchSummary=Ar.webSearchSummary,Ge.hasWebSearchResults=Ar.hasWebSearchResults||!1),Ar.summary&&(Tr=Ar.summary);else if(Array.isArray(Ar))Kn=Ar;else throw new Error("Not an array or valid format")}catch{let we=yr.replace(/\\n/g,`
- `).replace(/\\t/g," ").replace(/\\r/g,"\r");sr=ft(we)}else{let Ar=yr.replace(/\\n/g,`
- `).replace(/\\t/g," ").replace(/\\r/g,"\r");sr=ft(Ar)}}catch(yr){console.error("历史记录处理失败:",yr),sr=Ge.content||""}let ar=0,ur=0,Lr=100;if(Kn.length>0){const yr=Kn.filter(Ar=>Ar.type!=="category_title");ar=yr.length,ur=yr.filter(Ar=>Ar.status==="completed").length,Lr=ar>0?Math.round(ur/ar*100):100}return{type:Ge.type,content:fn,displayContent:sr,reports:Kn,summary:Tr,totalFiles:ar,completedCount:ur,progress:Lr,file:ln,isTyping:!1,id:Ge.id,ai_message_id:Ge.type==="ai"?Ge.id:void 0,userFeedback:Ot,userQuestion:Cn,searchSources:Ge.type==="ai"&&Ge.search_source?Mt(Ge.search_source):null,rawData:Ge,webSearchRaw:Ge.webSearchRaw||null,webSearchSummary:Ge.webSearchSummary||null,hasWebSearchResults:Ge.hasWebSearchResults||!1,webSearchTotal:Ge.webSearchRaw?.total||0,showStats:ar>0,currentStatus:"completed",statusMessage:ar>0?Ge.webSearchRaw?.total>0?` <span class="ai-name">蜀道安全管理AI智能助手</span>已为您分析 <span class="file-count">${ar}</span> 个知识库文件,以及 <span class="file-count">${Ge.webSearchRaw.total}</span> 个相关网络资源`:` <span class="ai-name">蜀道安全管理AI智能助手</span>已为您分析 <span class="file-count">${ar}</span> 个知识库文件`:""}}));d.value=ne,p.value=Qe;const Oe=ne.filter(Ge=>Ge.type==="ai").pop();return ne.forEach((Ge,$t)=>{if(Ge.type==="ai"&&Ge.rawData){if(Ge.rawData.search_source)try{const Ot=JSON.parse(Ge.rawData.search_source);Array.isArray(Ot)&&Ot.length>0&&(le.value[Ge.id]=Ot)}catch(Ot){console.error("解析搜索结果失败:",Ot)}if(Ge.reports&&Ge.reports.length>0&&(De.value[$t]||(De.value[$t]={}),Ge.reports.filter(ln=>ln.type==="category_title").map(ln=>ln.category).forEach(ln=>{De.value[$t][ln]=!0})),Ge===Oe){let Ot=[];if(Ge.rawData.guess_you_want)try{Ot=Ge.rawData.guess_you_want.trim().split(`
- `).map(ln=>ln.trim()).filter(ln=>ln.length>0).filter((ln,fn,Cn)=>Cn.indexOf(ln)===fn).slice(0,3)}catch(ln){console.error("解析guess_you_want失败:",ln)}if(Ot.length===0&&Ge.rawData.relate_question)try{const ln=JSON.parse(Ge.rawData.relate_question);Array.isArray(ln)&&ln.length>0&&(Ot=ln.slice(0,3))}catch(ln){console.error("解析relate_question失败:",ln)}Ot.length>0&&(Ae.value=Ot,Ee.value=Ge.ai_message_id||Ge.id,console.log("✅ 从历史记录恢复推荐问题:",Ot),console.log("✅ relatedQuestionsMessageId:",Ee.value))}}}),!0}}catch(Ve){return console.error("加载历史记录失败:",Ve),pr("加载历史记录失败,请稍后重试",2e3),!1}},ke=()=>{Me.forEach((Qe,Ve)=>{clearInterval(Qe)}),Me.clear(),Be.forEach((Qe,Ve)=>{clearInterval(Qe)}),Be.clear()},be=async Qe=>{if(f.value)return;q.value&&(Gt(),q.value=null),ke(),a.value.forEach(ne=>{ne.isActive=ne.id===Qe.id}),i.value=!1,d.value=[],Ae.value=[],Ee.value=null,await We(Qe.id)?(u.value=!0,await Yt(),Hr()):pr("加载历史记录失败",2e3)},fe=()=>{console.log("开始新建对话"),q.value&&(Gt(),q.value=null),i.value=!1,d.value=[],p.value=0,c.value="",le.value={},ve.value={},Ae.value=[],Ee.value=null,a.value.forEach(Qe=>{Qe.isActive=!1}),u.value=!1,console.log("新建对话完成")},Se=async(Qe,Ve)=>{try{console.log("开始删除移动端历史记录:",Qe);const ne=await zn.deleteHistoryRecord({ai_conversation_id:Qe.id});ne.statusCode===200?(a.value.splice(Ve,1),s.value=Math.max(0,s.value-1),Qe.isActive&&(console.log("删除激活的历史记录,执行新建任务"),fe()),console.log("✅ 移动端历史记录删除成功"),pr("删除成功")):console.error("❌ 删除移动端历史记录失败:",ne)}catch(ne){console.error("❌ 删除移动端历史记录失败:",ne)}},qe=async Qe=>{!Qe||!Qe.trim()||(console.log("移动端自动发送消息:",Qe),u.value=!0,d.value.length===0&&a.value.forEach(Ve=>{Ve.isActive=!1}),c.value=Qe,await Ur())},$e=()=>window.location.origin+"/tts/voice",Le=async()=>{const Qe=$e();try{console.log("开始测试TTS服务连接..."),console.log("使用代理地址:",Qe);const Ve="测试",ne=new AbortController,Oe=setTimeout(()=>ne.abort(),8e3),Ge={"Content-Type":"application/json"},$t=Xf(),Ot=Iv();if($t&&Ot){const fn=Ot.charAt(0).toUpperCase()+Ot.slice(1).toLowerCase();Ge.Authorization=`${fn} ${$t}`}const ln=await fetch(Qe,{method:"POST",headers:Ge,body:JSON.stringify({text:Ve}),signal:ne.signal});if(clearTimeout(Oe),console.log("TTS连接测试结果:",{status:ln.status,statusText:ln.statusText,headers:Object.fromEntries(ln.headers.entries()),url:Qe}),ln.ok){const fn=await ln.blob();return console.log("TTS服务连接正常,测试音频大小:",fn.size,"bytes"),{success:!0,message:"TTS服务连接正常"}}else return{success:!1,message:`TTS服务响应错误: ${ln.status} ${ln.statusText}`}}catch(Ve){console.error("TTS连接测试失败:",Ve);let ne="TTS服务连接失败";return Ve.name==="AbortError"?ne="TTS服务连接超时":Ve.message.includes("Failed to fetch")?ne="无法连接到TTS服务,请检查网络或服务状态":ne=`TTS服务连接失败: ${Ve.message}`,{success:!1,message:ne}}},ot=async(Qe,Ve=0)=>{const ne=$e(),Oe=2;try{console.log(`开始调用TTS接口,文本长度: ${Qe.length}, 重试次数: ${Ve}`),console.log("TTS接口地址:",ne);const Ge=new AbortController,$t=setTimeout(()=>Ge.abort(),15e3),Ot={"Content-Type":"application/json"},ln=Xf(),fn=Iv();if(ln&&fn){const ar=fn.charAt(0).toUpperCase()+fn.slice(1).toLowerCase();Ot.Authorization=`${ar} ${ln}`}const Cn=await fetch(ne,{method:"POST",headers:Ot,body:JSON.stringify({text:Qe}),signal:Ge.signal});if(clearTimeout($t),console.log("TTS接口响应状态:",Cn.status,Cn.statusText),!Cn.ok){const ar=await Cn.text().catch(()=>"无法读取错误信息");throw new Error(`TTS接口调用失败: ${Cn.status} ${Cn.statusText} - ${ar}`)}const sr=Cn.headers.get("content-type");console.log("响应Content-Type:",sr),(!sr||!sr.includes("audio"))&&console.warn("响应可能不是音频格式:",sr);const Kn=await Cn.blob();if(console.log("TTS接口调用成功,音频大小:",Kn.size,"bytes"),console.log("音频类型:",Kn.type),Kn.size===0)throw new Error("TTS接口返回的音频数据为空");return URL.createObjectURL(Kn)}catch(Ge){if(console.error(`TTS接口调用失败 (重试${Ve}/${Oe}):`,Ge),Ve<Oe&&(Ge.name==="AbortError"||Ge.message.includes("Failed to fetch")||Ge.message.includes("NetworkError")))return console.log(`准备重试TTS请求,等待${(Ve+1)*1e3}ms...`),await new Promise(ln=>setTimeout(ln,(Ve+1)*1e3)),ot(Qe,Ve+1);let $t="语音合成失败";Ge.name==="AbortError"?$t="语音合成请求超时,请检查网络连接或稍后重试":Ge.message.includes("Failed to fetch")?$t="无法连接到语音合成服务,请检查网络连接或联系管理员":Ge.message.includes("CORS")?$t="跨域请求被阻止,请联系管理员配置服务器":Ge.message.includes("NetworkError")?$t="网络错误,请检查网络连接":Ge.message.includes("TTS接口调用失败")?$t=Ge.message:$t=`语音合成失败: ${Ge.message}`;const Ot=new Error($t);throw Ot.originalError=Ge,Ot}},vt=Qe=>{if(!Qe)return"";let Ve=Qe.replace(/<[^>]*>/g,"");return Ve=Ve.replace(/\s+/g," ").trim(),Ve=Ve.replace(/[^\u4e00-\u9fa5a-zA-Z0-9\s,。!?、;:""''()【】《》]/g,""),Ve},Ut=Qe=>{if(Qe.length<=60)return[Qe];const Ve=[];let ne="",Oe=!0;const Ge=Qe.split(/[。!?]/);for(const $t of Ge){if($t.trim().length===0)continue;const Ot=$t+($t.match(/[。!?]$/)?"":"。"),ln=Oe?60:200;if(ne.length+Ot.length<=ln)ne+=Ot;else if(ne.length>0)Ve.push(ne.trim()),ne=Ot,Oe=!1;else{const fn=Oe?60:200;Ve.push(Ot.substring(0,fn)),ne=Ot.substring(fn),Oe=!1}}return ne.trim().length>0&&Ve.push(ne.trim()),Ve},Qt=Qe=>new Promise((Ve,ne)=>{const Oe=new Audio(Qe);Y.value=Oe,Oe.onended=()=>{console.log("音频播放完成"),Y.value=null,Ve()},Oe.onerror=Ge=>{console.error("音频播放失败:",Ge),Y.value=null,ne(Ge)},Oe.onloadstart=()=>{console.log("开始加载音频")},Oe.oncanplay=()=>{console.log("音频可以播放")},Oe.play().catch(Ge=>{console.error("音频播放启动失败:",Ge),Y.value=null,ne(Ge)})}),Gt=()=>{try{Y.value&&(Y.value.pause(),Y.value.currentTime=0,Y.value=null),U.value=[],F.value=!1,window.speechSynthesis&&window.speechSynthesis.cancel(),console.log("所有音频播放已停止")}catch(Qe){console.warn("停止音频播放时出错:",Qe)}},vn=async(Qe,Ve)=>{if(console.log(`开始优化播放 ${Qe.length} 个音频片段`),q.value!==Ve){console.log("朗读被中断,停止处理");return}try{console.log("立即预加载并播放第一块");const ne=Qe[0],Oe=await ot(ne);if(q.value!==Ve){URL.revokeObjectURL(Oe);return}console.log("开始播放第一块,同时预加载后续块");const $t=Qe.slice(1).map(async(ln,fn)=>{try{console.log(`预加载第 ${fn+2}/${Qe.length} 块音频`);const Cn=await ot(ln);return{index:fn+1,audioUrl:Cn,chunk:ln}}catch(Cn){return console.error(`第 ${fn+2} 块音频预加载失败:`,Cn),{index:fn+1,audioUrl:null,chunk:ln,error:Cn}}});if(console.log("播放第 1/1 块音频"),await Qt(Oe),URL.revokeObjectURL(Oe),q.value!==Ve){console.log("朗读被中断,清理预加载的音频"),(await Promise.allSettled($t)).forEach(fn=>{fn.status==="fulfilled"&&fn.value.audioUrl&&URL.revokeObjectURL(fn.value.audioUrl)});return}console.log("等待所有音频预加载完成...");const Ot=await Promise.allSettled($t);if(q.value!==Ve){console.log("朗读被中断,停止播放队列"),Ot.forEach(ln=>{ln.status==="fulfilled"&&ln.value.audioUrl&&URL.revokeObjectURL(ln.value.audioUrl)});return}console.log("开始播放剩余音频片段"),F.value=!0;for(const ln of Ot){if(q.value!==Ve){console.log("朗读被中断,停止播放队列");break}if(ln.status==="fulfilled"&&ln.value.audioUrl)try{console.log(`播放第 ${ln.value.index+1}/${Qe.length} 块音频`),await Qt(ln.value.audioUrl),URL.revokeObjectURL(ln.value.audioUrl)}catch(fn){console.error(`第 ${ln.value.index+1} 块音频播放失败:`,fn)}else console.warn(`第 ${ln.value.index+1} 块音频预加载失败,跳过播放`)}F.value=!1,console.log("音频队列播放完成")}catch(ne){console.error("音频队列播放失败:",ne),F.value=!1}},Un=async Qe=>{if(q.value===Qe.id)Gt(),q.value=null;else{q.value&&(Gt(),q.value=null);const Ve=Qe.displayContent||Qe.content;if(Ve&&Ve.trim())try{const ne=vt(Ve);if(console.log("清理后的文本:",ne),ne.length===0){pr("文本内容为空,无法进行语音合成");return}if(q.value=Qe.id,ne.length<=60){console.log("文本较短,直接合成语音");const Oe=await ot(ne);await Qt(Oe),URL.revokeObjectURL(Oe)}else{console.log("文本较长,使用并行预加载分块处理");const Oe=Ut(ne);console.log(`文本分为 ${Oe.length} 块`),await vn(Oe,Qe.id)}}catch(ne){console.error("语音合成失败:",ne),pr("语音合成失败,请稍后重试")}finally{q.value=null,F.value=!1}}},wr=Qe=>q.value===Qe,fr=Qe=>{console.log("点击网络搜索胶囊,数据:",Qe),m.value=Qe,y.value=!0},Nt=Qe=>{A.value=Qe.title,w.value=Qe.url||Qe.link,b.value=!0},_n=Qe=>{if(!Qe)return"";try{const Ve=new URL(Qe);return Ve.hostname+Ve.pathname}catch{return Qe}},xt=()=>{w.value&&(window.open(w.value,"_blank"),b.value=!1)},Ft=async Qe=>{console.log("移动端打开文件预览:",Qe),M.value="",_.value=!1,!Qe||!Qe.filePath&&!Qe.fileName?(M.value="文件路径为空",E.value="",D.value=""):(E.value=Qe.filePath,D.value=Qe.fileName||"",Qe.filePath&&(_.value=!0,setTimeout(()=>{_.value=!1},500))),S.value=!0},Sn=()=>{Z.value=!Z.value,console.log("联网搜索状态:",Z.value?"已启用":"已关闭"),Z.value?pr("联网搜索已启用"):pr("联网搜索已关闭")},Bn=(Qe,Ve)=>{De.value[Qe]||(De.value[Qe]={}),De.value[Qe][Ve.category]=Ve.expanded},Fr=(Qe,Ve)=>Ve?De.value[Qe]?De.value[Qe][Ve]!==!1:(De.value[Qe]={},!0):!0,kn=Qe=>!Qe||Qe.length===0?!1:Qe.every(Ve=>Ve.type==="category_title"),Ye=(Qe,Ve)=>{if(Ve===100)return"completed";switch(Qe){case"querying_kb":case"web_searching":return"searching";case"analyzing_files":case"analyzing_web":return"analyzing";case"deep_thinking":return"thinking";case"outputting":return"analyzing";case"completed":return"completed";case"error":return"error";default:return"idle"}},At=(Qe,Ve,ne=null)=>{const Ge={querying_kb:{message:'🔍 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析知识库……',progress:10},web_searching:{message:'🌐 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您联网分析……',progress:15},data_retrieved:{message:null,progress:30},analyzing_files:{message:'😊 <span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析文件内容……',progress:45},analyzing_web:{message:'🤔 <span class="ai-name">蜀道安全管理AI智能助手</span>正在分析联网数据……',progress:70},deep_thinking:{message:'❓ <span class="ai-name">蜀道安全管理AI智能助手</span>正在深度思考中,请您稍等片刻……',progress:75},outputting:{message:'😄 <span class="ai-name">蜀道安全管理AI智能助手</span>正在整理分析中!',progress:90},completed:{message:null,progress:100}}[Ve];if(Ge){if(Qe.currentStatus=Ve,Ve==="data_retrieved"){const $t=Qe.totalFiles||0,Ot=Qe.webSearchTotal||0;Ot>0?Qe.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${$t}</span> 个知识库文件,以及 <span class="file-count">${Ot}</span> 个相关网络资源`:Qe.statusMessage=`<span class="ai-name">蜀道安全管理AI智能助手</span>正在为您分析 <span class="file-count">${$t}</span> 个知识库文件`}else if(Ve==="completed"){const $t=Qe.totalFiles||0,Ot=Qe.webSearchTotal||0;Ot>0?Qe.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${$t}</span> 个知识库文件,以及 <span class="file-count">${Ot}</span> 个相关网络资源`:Qe.statusMessage=`✅ <span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${$t}</span> 个知识库文件`}else Qe.statusMessage=ne||Ge.message;Qe.progress=Ge.progress}},tn=(Qe,Ve,ne,Oe=50)=>new Promise(Ge=>{const $t=`${Qe.file_index}_${Ve}`;Be.has($t)&&(clearInterval(Be.get($t)),Be.delete($t)),Qe._typewriterStates||(Qe._typewriterStates={});let Ot=0;Qe._typewriterStates[Ve]={currentIndex:0,isTyping:!0};const ln=setInterval(()=>{if(Ot<ne.length){const fn=Math.max(1,Math.floor(Oe/10));Ot=Math.min(Ot+fn,ne.length),Qe.report[Ve]=ne.substring(0,Ot),Qe._typewriterStates[Ve].currentIndex=Ot}else clearInterval(ln),Be.delete($t),Qe._typewriterStates[Ve].isTyping=!1,Qe.report[Ve]=ne,Ge()},1e3/60);Be.set($t,ln)}),Ct=(Qe,Ve)=>{const ne=d.value[Ve];if(!ne)return;console.log("🔍 SSE事件完整数据:",{type:Qe.type,conversation_id:Qe.conversation_id,message_id:Qe.message_id,ai_conversation_id:Qe.ai_conversation_id,ai_message_id:Qe.ai_message_id,allKeys:Object.keys(Qe)});const Oe=Qe.conversation_id||Qe.ai_conversation_id;Oe&&p.value===0&&(p.value=Oe,console.log("✅ SSE收到conversation_id并赋值:",Oe));const Ge=Qe.message_id||Qe.ai_message_id;switch(Ge&&(ne.ai_message_id||(ne.ai_message_id=Ge,console.log("✅ SSE收到message_id并赋值:",Ge),console.log(" - aiMessage.id (前端临时ID):",ne.id),console.log(" - aiMessage.ai_message_id (后端ID):",ne.ai_message_id),ne.rawData||(ne.rawData={}),ne.rawData.id=Ge,console.log(" - aiMessage.rawData.id:",ne.rawData.id))),Qe.type){case"intent":if(At(ne,"querying_kb"),Qe.is_professional_question===!1){const Kn=Qe.summary||"抱歉,我暂时无法回答您的问题。";if(ne.summary=Kn,ne.isTyping=!1,ne.ai_message_id&&wd(ne.ai_message_id,Kn).catch(ar=>console.error("回写AI消息失败:",ar)),me&&(xh(me),me=null),f.value=!1,ue.value.clear(),Q.value=!0,p.value&&p.value!==0){a.value.forEach(yr=>{yr.isActive=!1});const ar=d.value.find(yr=>yr.type==="user"),ur=ar?ar.content.substring(0,20)+"...":"新对话",Lr=a.value.findIndex(yr=>yr.id===p.value);if(Lr===-1){const yr={id:p.value,title:ur,time:Dt(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:p.value,content:ar?.content||"",updated_at:new Date().toISOString()}};a.value.unshift(yr),console.log("✅ 非专业问题:已在列表最前面插入新历史记录")}else{const yr=a.value.splice(Lr,1)[0];yr.isActive=!0,yr.time=Dt(new Date().toISOString()),a.value.unshift(yr),console.log("✅ 非专业问题:已将历史记录移到最前面")}s.value=a.value.length}const Tr=d.value.filter(ar=>ar.type==="user").pop();Tr&&ne.ai_message_id&&Kn&&Kr(Tr.content,Kn,ne.ai_message_id);return}if(Qe.summary){const Kn=Qe.summary;ne._fullSummary=Kn,ne.summary="",tn({file_index:"summary",report:ne,_typewriterStates:{}},"summary",Kn,50).catch(Tr=>{console.error("问题总结打字机效果失败:",Tr),ne.summary=Kn})}break;case"documents":ne.totalFiles=Qe.total,ne.completedCount=0,Z.value?At(ne,"web_searching"):At(ne,"data_retrieved"),Yt(()=>{aa()});break;case"category_title":ne.reports.length===0&&ne.progress>=30&&At(ne,"analyzing_files");const $t={type:"category_title",category:Qe.category,number:Qe.number,count:Qe.count,source_file:`【${Qe.number}、${Qe.category}】(共${Qe.count}个文件)`,file_index:-1,status:"category"};ne.reports.push($t),De.value[Ve]||(De.value[Ve]={}),De.value[Ve][Qe.category]=!0,ne.currentCategory=Qe.category;break;case"report_start":console.log("🔍 [DEBUG] report_start 数据:",{file_index:Qe.file_index,source_file:Qe.source_file,file_path:Qe.file_path,metadata:Qe.metadata,完整data:Qe});const Ot={file_index:Qe.file_index,total_files:ne.totalFiles,source_file:Qe.source_file,file_path:Qe.file_path,similarity:Qe.similarity,metadata:{...Qe.metadata,_displayCategory:ne.currentCategory},report:{display_name:"",summary:"",analysis:"",clauses:""},status:"streaming"};ne.reports.push(Ot),ue.value.set(Qe.file_index,ne.reports.length-1);break;case"report_chunk":break;case"report":ne.reports.filter(Kn=>Kn.status==="completed").length===0&&At(ne,"deep_thinking");const ln=Qe.data||Qe;console.log("🔍 [DEBUG] report 数据:",{file_index:ln.file_index,source_file:ln.source_file,file_path:ln.file_path,metadata:ln.metadata,完整reportData:ln});const fn=ue.value.get(ln.file_index);let Cn;if(fn!==void 0){const Kn=ne.reports[fn].metadata?._displayCategory,Tr=ln.report?.summary||"",ar=ln.report?.analysis||"",ur=ln.report?.clauses||"",Lr=ln.report?.display_name||"";ne.reports[fn]={...ln,report:{display_name:Lr,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...ln.metadata,_displayCategory:Kn||ne.currentCategory},_fullContent:{display_name:Lr,summary:Tr,analysis:ar,clauses:ur}},Cn=ne.reports[fn],ue.value.delete(ln.file_index)}else{const Kn=ln.report?.summary||"",Tr=ln.report?.analysis||"",ar=ln.report?.clauses||"",ur=ln.report?.display_name||"",Lr={...ln,report:{display_name:ur,summary:"",analysis:"",clauses:""},status:"completed",metadata:{...ln.metadata,_displayCategory:ne.currentCategory},_fullContent:{display_name:ur,summary:Kn,analysis:Tr,clauses:ar}};ne.reports.push(Lr),Cn=Lr}Cn._fullContent&&!Cn._typewriterCompleted&&(Cn._typewriterStarted=!0,tn(Cn,"summary",Cn._fullContent.summary||"",200).then(()=>tn(Cn,"analysis",Cn._fullContent.analysis||"",200)).then(()=>{if(Cn._fullContent.clauses)return tn(Cn,"clauses",Cn._fullContent.clauses||"",200)}).then(()=>{Cn._typewriterCompleted=!0}).catch(Kn=>{console.error("报告打字机效果失败:",Kn),Cn.report.summary=Cn._fullContent.summary||"",Cn.report.analysis=Cn._fullContent.analysis||"",Cn.report.clauses=Cn._fullContent.clauses||"",Cn._typewriterCompleted=!0}),console.log("📝 [DEBUG] 报告打字机已启动:",{file_index:Cn.file_index,summary_length:Cn._fullContent.summary?.length||0,analysis_length:Cn._fullContent.analysis?.length||0,clauses_length:Cn._fullContent.clauses?.length||0})),ne.completedCount=ne.reports.filter(Kn=>Kn.status==="completed"&&Kn.type!=="category_title").length;const sr=ne.totalFiles>0?ne.completedCount/ne.totalFiles:0;if(sr>=1)At(ne,"outputting");else if(sr>=.5)At(ne,"deep_thinking");else{const Kn=30+Math.round(sr*30);ne.progress=Kn}break;case"web_search_raw":if(Qe.results&&Qe.results.length>0){ne.webSearchRaw={results:Qe.results||[],keywords:Qe.keywords||[],total:Qe.total||0},ne.webSearchTotal=Qe.total||0;const Kn=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${ne.totalFiles||0}</span> 个知识库文件,以及 <span class="file-count">${ne.webSearchTotal}</span> 个相关网络资源`;At(ne,"data_retrieved",Kn),console.log(`[网络搜索] 收到原始数据: ${Qe.total} 条结果`)}else{const Kn=`<span class="ai-name">蜀道安全管理AI智能助手</span>已为您检索到 <span class="file-count">${ne.totalFiles||0}</span> 个知识库文件`;At(ne,"data_retrieved",Kn),console.log("[网络搜索] 无搜索结果,仅使用知识库")}break;case"web_search_summary":if(Qe.has_results&&Qe.summary){if(ne._webSearchSummaryCompleted){console.log("[网络搜索] 总结已完成,跳过重复打字机");break}if(ne._fullWebSearchSummary=Qe.summary,ne.webSearchSummary="",ne.hasWebSearchResults=!0,tn({file_index:"web_search_summary",report:ne,_typewriterStates:{}},"webSearchSummary",Qe.summary,200).then(()=>{ne._webSearchSummaryCompleted=!0}).catch(Tr=>{console.error("网络搜索总结打字机效果失败:",Tr),ne.webSearchSummary=Qe.summary,ne._webSearchSummaryCompleted=!0}),console.log("[网络搜索] 收到AI总结,长度:",Qe.summary.length),At(ne,"outputting"),ne.ai_message_id){const Tr={reports:ne.reports||[],webSearchRaw:ne.webSearchRaw||null,webSearchSummary:ne._fullWebSearchSummary||Qe.summary,hasWebSearchResults:!0,summary:ne.summary||ne._fullSummary||""},ar=JSON.stringify(Tr);ne.summary||ne._fullSummary,wd(ne.ai_message_id,ar).then(ur=>{console.log("[网络搜索] AI消息保存成功,更新为完成状态"),At(ne,"completed"),ne.isTyping=!1,f.value=!1,ue.value.clear(),Q.value=!0}).catch(ur=>{console.error("[网络搜索] AI消息保存失败:",ur),At(ne,"completed"),ne.isTyping=!1,f.value=!1})}else At(ne,"completed"),ne.isTyping=!1,f.value=!1}break;case"error":pr(Qe.message||"发生错误",2e3),f.value=!1;break;case"completed":console.log("[SSE] 收到completed事件"),f.value=!1,ue.value.clear(),ne.isTyping=!1,ne.progress<100&&At(ne,"completed"),pr("报告生成完成",2e3);break;case"interrupted":f.value=!1,ue.value.clear(),ne.isTyping=!1,pr(Qe.message||"报告生成已中断",2e3);break}},Xt=Qe=>{console.error("❌ SSE连接异常断开:",Qe),me&&(xh(me),me=null),f.value=!1,ue.value.clear(),d.value.forEach(Ve=>{Ve.type==="ai"&&Ve.isTyping&&(Ve.isTyping=!1)}),Q.value=!0,pr("连接已断开",2e3)},yn=()=>{if(f.value=!1,d.value.forEach(ne=>{if(ne.type==="ai"&&ne.isTyping&&(ne.showStats&&ne.reports&&ne.reports.length>0&&(ne.progress=100,console.log("✅ SSE完成,设置进度为100%"),console.log("📊 导出按钮条件检查:",{progress:ne.progress,hasReports:!!ne.reports,reportsLength:ne.reports?.length,showStats:ne.showStats})),(ne.progress>=100||!ne.showStats)&&(ne.isTyping=!1),ne.ai_message_id)){const Oe={reports:ne.reports||[],webSearchRaw:ne.webSearchRaw||null,webSearchSummary:ne._fullWebSearchSummary||ne.webSearchSummary||null,hasWebSearchResults:ne.hasWebSearchResults||!1,summary:ne.summary||ne._fullSummary||""},Ge=ne.reports&&ne.reports.length>0?JSON.stringify(Oe):ne.content;Ge&&(ne.summary||ne._fullSummary,wd(ne.ai_message_id,Ge).catch($t=>console.error("回写AI消息失败:",$t)))}}),Q.value=!0,console.log("📝 AI回复完成,准备更新历史记录"),console.log(" - ai_conversation_id:",p.value),p.value&&p.value!==0){console.log("✅ 开始更新历史记录列表"),a.value.forEach($t=>{$t.isActive=!1});const ne=d.value.find($t=>$t.type==="user"),Oe=ne?ne.content.substring(0,20)+"...":"新对话";console.log("📝 生成的标题:",Oe);const Ge=a.value.findIndex($t=>$t.id===p.value);if(console.log("🔍 检查是否已存在,索引:",Ge),Ge===-1){const $t={id:p.value,title:Oe,time:Dt(new Date().toISOString()),businessType:0,isActive:!0,rawData:{id:p.value,content:ne?.content||"",updated_at:new Date().toISOString()}};console.log("📦 准备插入的新项:",$t),a.value.unshift($t),console.log("✅ 已在列表最前面插入新历史记录并设为高亮"),console.log("📊 更新后的历史记录数量:",a.value.length)}else{console.log("🔄 历史记录已存在,将其移到最前面");const $t=a.value.splice(Ge,1)[0];$t.isActive=!0,$t.time=Dt(new Date().toISOString()),a.value.unshift($t),console.log("✅ 已将现有历史记录移到最前面并设为高亮")}s.value=a.value.length,console.log("📊 最终历史记录总数:",s.value)}else console.warn("⚠️ ai_conversation_id 为 0 或未设置,跳过历史记录更新");console.log("🎯 准备获取AI相关推荐问题");const Qe=d.value.filter(ne=>ne.type==="user").pop(),Ve=d.value.filter(ne=>ne.type==="ai").pop();if(Qe&&Ve&&Ve.ai_message_id){console.log("📝 找到最后一条用户消息和AI消息"),console.log(" - 用户消息:",Qe.content),console.log(" - AI消息ID:",Ve.ai_message_id);let ne="";Ve.summary?ne=Ve.summary:Ve.content?ne=Ve.content:Ve.reports&&Ve.reports.length>0&&(ne=Ve.reports.filter(Ge=>Ge.report&&Ge.report.summary).map(Ge=>Ge.report.summary).slice(0,3).join(`
- `)),ne&&ne.trim()?(console.log("📝 AI回复内容长度:",ne.length),Kr(Qe.content,ne,Ve.ai_message_id)):console.warn("⚠️ AI回复内容为空,跳过推荐问题获取")}else console.warn("⚠️ 未找到有效的用户消息或AI消息,跳过推荐问题获取")},Ln=Qe=>{me&&(xh(me),me=null),f.value=!1,ue.value.clear(),d.value.forEach(Ve=>{if(Ve.type==="ai"&&Ve.isTyping&&(Ve.isTyping=!1,At(Ve,"completed"),(Ve.webSearchRaw||Ve.webSearchSummary)&&console.log("✅ 保留已接收的网络搜索数据"),Ve.ai_message_id)){const ne={reports:Ve.reports||[],webSearchRaw:Ve.webSearchRaw||null,webSearchSummary:Ve._fullWebSearchSummary||Ve.webSearchSummary||null,hasWebSearchResults:Ve.hasWebSearchResults||!1,summary:Ve.summary||Ve._fullSummary||""},Oe=Ve.reports&&Ve.reports.length>0?JSON.stringify(ne):Ve.content;Oe&&(Ve.summary||Ve._fullSummary,wd(Ve.ai_message_id,Oe).catch(Ge=>console.error("回写AI消息失败:",Ge)))}}),Q.value=!0,pr(Qe.message||"报告生成已中断",2e3)},Zn=async()=>{!me||p.value===void 0||p.value===null||(me&&(xh(me),me=null),f.value=!1,ue.value.clear(),d.value.forEach(Qe=>{if(Qe.type==="ai"&&Qe.isTyping&&(Qe.isTyping=!1,At(Qe,"completed"),(Qe.webSearchRaw||Qe.webSearchSummary)&&console.log("✅ 停止时保留已接收的网络搜索数据"),Qe.ai_message_id)){const Ve={reports:Qe.reports||[],webSearchRaw:Qe.webSearchRaw||null,webSearchSummary:Qe._fullWebSearchSummary||Qe.webSearchSummary||null,hasWebSearchResults:Qe.hasWebSearchResults||!1,summary:Qe.summary||Qe._fullSummary||""},ne=Qe.reports&&Qe.reports.length>0?JSON.stringify(Ve):Qe.content;ne&&(Qe.summary||Qe._fullSummary,wd(Qe.ai_message_id,ne).catch(Oe=>console.error("回写AI消息失败:",Oe)))}}),Q.value=!0,pr("已停止生成",2e3),Y4e(null,p.value).catch(Qe=>console.warn("停止请求失败:",Qe)))},jr=async Qe=>{f.value=!0,pe.value=Qe.question,d.value.push({id:Date.now(),type:"user",content:Qe.question,timestamp:new Date().toISOString()});const Ve=d.value.length;d.value.push({id:Date.now()+1,type:"ai",userQuestion:Qe.question,summary:"",totalFiles:0,webSearchTotal:0,progress:0,completedCount:0,reports:[],isTyping:!0,content:"",displayContent:"",timestamp:new Date().toISOString(),currentStatus:"querying_kb",statusMessage:"🔍 蜀道安全管理AI智能助手正在为您分析知识库……",showStats:!0,ai_message_id:null,rawData:null,userFeedback:null}),Yt(()=>{setTimeout(()=>{aa()},100)});try{const ne=new URLSearchParams({user_question:Qe.question,window_size:Qe.windowSize,n_results:2,ai_conversation_id:p.value,is_network_search_enabled:Z.value}),Ge=`${$V()}/report/complete-flow?${ne.toString()}`;me=fAe(Ge,{onMessage:$t=>Ct($t,Ve),onError:Xt,onComplete:yn,onInterrupted:Ln})}catch(ne){console.error("启动失败:",ne),pr(`启动失败: ${ne.message}`,2e3),f.value=!1}},yo=Qe=>{console.log("点击推荐问题:",Qe),Ae.value=[],Ee.value=null,c.value=Qe,Ur()},Kr=async(Qe,Ve,ne)=>{if(!Qe||!Ve||!ne){console.log("参数不完整,跳过相关推荐问题获取");return}try{console.log("开始获取AI回复相关推荐问题"),console.log("用户问题:",Qe),console.log("AI回复:",Ve.substring(0,100)+"..."),console.log("消息ID:",ne),he.value=!0;const Oe=`基于以下对话内容,直接生成3条相关的推荐问题。
- 【对话内容】
- 用户问题:${Qe}
- AI回复:${Ve}
- 【生成要求】
- - 直接输出3个问题,每个问题一行
- - 问题要与原问题相关但有所延伸
- - 问题要具体、实用,符合中文表达习惯
- - 不要包含任何编号、标题、说明文字
- - 不要重复上述指令内容`,Ge=await zn.guessYouWant({message:Oe,ai_message_id:ne});if(console.log("AI相关推荐问题响应:",Ge),Ge.statusCode===200&&Ge.data&&Ge.data.reply){const Ot=Ge.data.reply.trim().split(`
- `).map(ln=>ln.trim()).filter(ln=>ln.length>0).filter((ln,fn,Cn)=>Cn.indexOf(ln)===fn).slice(0,3);Ot.length>0?(Ae.value=Ot,Ee.value=ne,console.log("✅ AI相关推荐问题数据已设置:",Ae.value),console.log("✅ relatedQuestionsMessageId设置为:",Ee.value),console.log("✅ messageId类型:",typeof ne,"值:",ne),Yt(()=>{console.log("✅ DOM已更新,推荐问题应该显示了"),Hr()})):(console.log("解析推荐问题失败,使用默认问题"),Ae.value=[],Ee.value=null)}else console.error("获取AI相关推荐问题失败:",Ge.statusCode),Ae.value=[],Ee.value=null}catch(Oe){console.error("获取AI相关推荐问题失败:",Oe),Ae.value=[],Ee.value=null}finally{he.value=!1}},xo=()=>{q.value&&(Gt(),q.value=null)},zo=()=>{document.hidden&&q.value&&(Gt(),q.value=null)},Sr=async Qe=>{const Ve=Qe.target;if(Ve.classList.contains("standard-reference")){Qe.preventDefault(),Qe.stopPropagation();const ne=Ve.getAttribute("data-standard"),Oe=Ve.getAttribute("data-reference");console.log("点击的元素:",Ve),console.log("元素的HTML:",Ve.outerHTML),console.log("data-standard属性:",ne),console.log("data-reference属性:",Oe),console.log("所有data属性:",Ve.dataset),console.log("点击了标准引用:",ne||Oe);let Ge="";if(ne?Ge=ne:Oe&&(Ge=Oe),Ge)try{const $t=await zn.getFileLink({fileName:Ge});if(console.log("获取文件链接响应:",$t),$t.statusCode===200&&$t.data){const Ot=$t.data;console.log("获取到文件链接:",Ot),Ot?window.open(Ot,"_blank"):pr("暂无文件")}else pr("暂无文件")}catch($t){console.error("获取文件链接失败:",$t),pr("获取文件失败,请稍后重试")}}},Yr=()=>{const Qe=document.querySelectorAll(".standard-reference");console.log("找到规范引用元素数量:",Qe.length),Qe.forEach((Ve,ne)=>{Ve.removeEventListener("click",Sr),Ve.addEventListener("click",Sr),console.log(`绑定规范引用 ${ne+1}:`,Ve.textContent)})};qn(async()=>{try{console.log("🚀 移动端AI问答页面初始化,加载功能卡片..."),await to(),window.addEventListener("beforeunload",xo),window.addEventListener("unload",xo),document.addEventListener("visibilitychange",zo),document.addEventListener("click",Sr),console.log("✅ 移动端:添加 window 滚动监听"),window.addEventListener("scroll",()=>{console.log("🔄 移动端滚动事件触发!scrollY:",window.scrollY)},{once:!0}),window.addEventListener("scroll",aa);try{const Ve=await Le();Ve.success?console.log("✅ 移动端TTS服务连接正常"):console.warn("⚠️ 移动端TTS服务连接异常:",Ve.message)}catch(Ve){console.warn("⚠️ 移动端TTS服务连接测试失败:",Ve)}const Qe=n.query.autoMessage;Qe&&(console.log("检测到移动端自动发送消息:",Qe),t.replace({path:n.path,query:{...n.query,autoMessage:void 0}}),qe(Qe)),console.log("✅ 移动端AI问答页面初始化完成")}catch(Qe){console.error("❌ 移动端AI问答页面初始化失败:",Qe)}}),St(i,async Qe=>{Qe&&a.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await tt())}),St(W,Qe=>{!Qe||N.value||(c.value=Qe)}),St(B,Qe=>{Qe&&(console.error("语音识别错误:",Qe),pr(Qe))});const vo=Qe=>{const Ve=[ok,ik,ak,sk],ne=Ve[Fe%Ve.length];return Fe++,ne},Rr=Qe=>{console.log("点击功能卡片:",Qe),d.value=[],p.value=0,u.value=!0;const Ve=`请详细介绍${Qe}的相关内容`;c.value=Ve,Ur()},Ur=async()=>{if(!c.value.trim()||f.value)return;console.log("📤 移动端发送消息:",c.value),Ae.value=[],Ee.value=null,f.value=!0,u.value=!0,d.value.length===0&&(a.value.forEach(Ve=>{Ve.isActive=!1}),Pe.value={},ve.value={},le.value={});const Qe=c.value;c.value="",await jr({question:Qe,windowSize:3,nResults:10}),Hr()},Hr=()=>{Yt(()=>{const Qe=document.querySelector(".chat-messages");Qe&&(Qe.scrollTop=Qe.scrollHeight)})},to=async()=>{try{console.log("开始获取功能卡片...");const Qe=await zn.getFunctionCard({function_type:0});console.log("功能卡片响应:",Qe),Qe.statusCode===200?(te.value=Qe.data,console.log("功能卡片数据已设置:",te.value)):console.error("获取功能卡片失败:",Qe.statusCode)}catch(Qe){console.error("获取功能卡片失败:",Qe)}},pr=(Qe,Ve=2e3)=>{H.value=!1,Yt(()=>{re.value=Qe,X.value=Ve,H.value=!0})},Po=async Qe=>{try{await navigator.clipboard.writeText(Qe),pr("复制成功")}catch(Ve){console.error("复制失败:",Ve),pr("复制失败","error")}},ni=Qe=>{Po(Qe.content)},Wi=Qe=>{let Ve=Qe.summary||Qe.displayContent||Qe.content;if(Ve&&Ve.includes("<")){const ne=document.createElement("div");ne.innerHTML=Ve,Ve=ne.textContent||ne.innerText||Ve}!Ve&&Qe.reports&&Qe.reports.length>0&&(Ve=Qe.reports.filter(ne=>ne.type!=="category_title").map(ne=>ne.report||"").join(`
- `)),Qe.webSearchSummary&&(Ve=Ve?`${Ve}
- 【网络搜索总结】
- ${Qe.webSearchSummary}`:Qe.webSearchSummary),Ve&&Ve.trim()?Po(Ve):pr("暂无可复制的内容")},va=Qe=>{console.log("编辑用户消息:",Qe.content),c.value=Qe.content,Yt(()=>{const Ve=document.querySelector(".message-input");Ve&&(Ve.focus(),Ve.setSelectionRange(Ve.value.length,Ve.value.length))})},aa=()=>{console.log("📱 移动端 handleProgressCardScroll 被触发");const Qe=document.querySelector(".mobile-header"),Ve=Qe?Qe.getBoundingClientRect().bottom:60;console.log("📐 移动端 headerBottom:",Ve),console.log("📊 移动端 messageContentRefs 数量:",Object.keys(O.value).length),Object.keys(O.value).forEach(ne=>{const Oe=d.value[ne];if(!Oe||Oe.type!=="ai"||!Oe.showStats){console.log(`⏭️ 移动端跳过消息 ${ne}:`,{exists:!!Oe,type:Oe?.type,showStats:Oe?.showStats});return}console.log(`✅ 移动端处理消息 ${ne}`);const Ge=O.value[ne];if(!Ge){console.log(`❌ 移动端消息 ${ne} 没有找到 contentEl`);return}const $t=Ge.querySelector(".stats-card");if(!$t){console.log(`❌ 移动端消息 ${ne} 没有找到 .stats-card`);return}console.log(`✅ 移动端消息 ${ne} 找到进度卡片`);const Ot=$t.getBoundingClientRect(),ln=Ge.getBoundingClientRect();if(!k.value[ne]){k.value[ne]={initialLeft:Ot.left,initialWidth:Ot.width,isSticky:!1,offsetTop:Ot.top-ln.top,initialized:!1,isInitializing:!0,initStartTime:Date.now()},Yt(()=>{requestAnimationFrame(()=>{if(k.value[ne]){const Kn=Ge.querySelector(".stats-card");if(Kn){const ur=Kn.getBoundingClientRect();k.value[ne].initialLeft=ur.left,k.value[ne].initialWidth=ur.width}const Tr=Date.now()-k.value[ne].initStartTime,ar=Math.max(0,100-Tr);setTimeout(()=>{k.value[ne]&&(k.value[ne].initialized=!0,k.value[ne].isInitializing=!1)},ar)}})});return}if(!k.value[ne].initialized||k.value[ne].isInitializing||Date.now()-k.value[ne].initStartTime<100)return;const Cn=ln.top+k.value[ne].offsetTop,sr=Cn<=Ve&&ln.bottom>Ve+60;console.log(`📍 移动端消息 ${ne} 吸附判断:`,{naturalTop:Cn,headerBottom:Ve,"naturalTop <= headerBottom":Cn<=Ve,"contentRect.bottom":ln.bottom,"headerBottom + 60":Ve+60,shouldStick:sr,currentlySticky:k.value[ne].isSticky}),k.value[ne].isSticky!==sr&&(k.value[ne].initialLeft=Ot.left,k.value[ne].initialWidth=Ot.width),k.value[ne].isSticky=sr,k.value[ne].stickyTop=Ve})},Ci=()=>{if(console.log("点击语音按钮"),!R.value){pr("当前浏览器不支持语音识别");return}N.value?is():xi()},xi=()=>{console.log("开始语音输入"),z()||pr("语音识别启动失败,请检查麦克风权限")},is=()=>{console.log("停止语音输入"),j(),W.value.trim()&&(c.value=W.value)},Oi=async Qe=>{if(console.log("重新生成回复,消息索引:",Qe),Qe>0){const Ve=d.value[Qe-1];Ve&&Ve.type==="user"&&(console.log("重新发送用户消息:",Ve.content),c.value=Ve.content,await Ur())}},mi=async Qe=>{console.log("点赞消息:",Qe.id),Qe.userFeedback==="like"?Qe.userFeedback=null:Qe.userFeedback="like",d.value=[...d.value],await yi(Qe)},Si=async Qe=>{console.log("点踩消息:",Qe.id),Qe.userFeedback==="dislike"?Qe.userFeedback=null:Qe.userFeedback="dislike",d.value=[...d.value],await yi(Qe)},yi=async Qe=>{try{console.log("🔍 syncFeedbackToBackend 收到的message对象:",{id:Qe.id,ai_message_id:Qe.ai_message_id,rawData:Qe.rawData,rawData_id:Qe.rawData?.id});const Ve=Qe.ai_message_id||Qe.rawData&&Qe.rawData.id;if(!Ve){console.warn("❌ 消息缺少ID,无法同步反馈"),console.warn(" - message.ai_message_id:",Qe.ai_message_id),console.warn(" - message.rawData:",Qe.rawData);return}const ne=Nn(Qe.userFeedback);console.log("✅ 同步反馈到后端:",{messageId:Ve,feedback:ne});const Oe=await zn.likeAndDislike({id:Ve,user_feedback:ne});Oe.statusCode===200?(console.log("反馈同步成功"),pr(ne===2?"点赞成功":ne===3?"点踩成功":"已取消反馈")):(console.error("反馈同步失败:",Oe.msg),pr("反馈提交失败,请稍后重试","error"))}catch(Ve){console.error("同步反馈失败:",Ve),pr("反馈提交失败,请稍后重试","error")}},sa=async()=>{h.value&&(g.value==="history"?await Dr():g.value==="message"&&await Mi())},Dr=async()=>{const{item:Qe,index:Ve}=h.value;try{const ne=await zn.deleteHistoryRecord({ai_conversation_id:Qe.id});ne.statusCode===200?(a.value.splice(Ve,1),Qe.isActive&&(console.log("删除激活的历史记录,执行新建任务"),fe()),console.log("历史记录删除成功"),pr("删除成功")):(console.error("删除历史记录失败:",ne.msg),pr(ne.msg||"删除失败","error"))}catch(ne){console.error("删除历史记录失败:",ne),pr("删除失败,请稍后重试","error")}finally{v.value=!1,h.value=null,g.value=""}},Mi=async()=>{const{messageIndex:Qe}=h.value;try{const Ve=d.value[Qe];if(Ve&&Ve.id)try{const ne=await zn.deleteConversation({ai_message_id:Ve.id});ne.statusCode===200?(d.value.splice(Qe,1),Qe>0&&d.value.splice(Qe-1,1),console.log("删除成功"),pr("删除成功")):(console.error("删除失败:",ne.msg),pr("删除失败,请稍后重试","error"))}catch(ne){console.error("删除接口调用失败:",ne),pr("删除失败,请稍后重试","error")}else console.log("没有id,仅从前端删除"),d.value.splice(Qe,1),pr("删除成功")}catch(Ve){console.error("删除消息失败:",Ve),pr("删除失败,请稍后重试","error")}finally{v.value=!1,h.value=null,g.value=""}},xa=()=>{v.value=!1,h.value=null,g.value=""};return Jr(()=>{q.value&&(Gt(),q.value=null),window.removeEventListener("beforeunload",xo),window.removeEventListener("unload",xo),document.removeEventListener("visibilitychange",zo),window.removeEventListener("scroll",aa),document.removeEventListener("click",Sr)}),Db(async()=>{console.log("移动端页面重新激活,检查并重新渲染markdown内容"),await Yt();for(const Qe of d.value)if(Qe.type==="ai"&&Qe.content&&!Qe.isTyping)try{console.log("重新渲染AI消息markdown:",Qe.id);const Ve=Ht(Qe.content),ne=Bt(Ve,Qe.file),Oe=await an(ne);Qe.displayContent=Oe,setTimeout(()=>{Yr()},100)}catch(Ve){console.error("重新渲染markdown失败:",Ve)}d.value=[...d.value],console.log("移动端页面重新激活完成,markdown内容已重新渲染")}),(Qe,Ve)=>(L(),G("div",orn,[He(y2,{title:"AI问答",onBack:r,onMenu:o}),x("div",irn,[He(ZC,{visible:!f.value&&!ze.value&&i.value,title:"历史记录",historyData:a.value,loading:l.value,onClose:Ve[0]||(Ve[0]=ne=>i.value=!1),onCreateNewTask:fe,onHandleHistoryItem:be,onDeleteHistoryItem:Se},null,8,["visible","historyData","loading"]),u.value?(L(),G("div",_rn,[(L(!0),G(Rt,null,un(d.value,(ne,Oe)=>(L(),G("div",{key:Oe,class:oe(["message-item",ne.type])},[ne.type==="user"?(L(),G("div",Drn,[x("div",Irn,[ne.content?(L(),G("div",Orn,je(ne.content),1)):xe("",!0)]),x("div",Mrn,[x("button",{class:"action-btn copy-btn",onClick:Ge=>ni(ne),title:"复制"},[x("img",{src:C(jv),alt:"复制",class:"action-icon"},null,8,Nrn)],8,Prn),x("button",{class:"action-btn edit-btn",onClick:Ge=>va(ne),title:"编辑"},[x("img",{src:C(aC),alt:"编辑",class:"action-icon"},null,8,Brn)],8,Rrn)])])):ne.type==="ai"?(L(),G("div",Lrn,[ne.webSearchRaw&&ne.webSearchRaw.total>0?(L(),G("div",Frn,[He(uAe,{total:ne.webSearchRaw.total,results:ne.webSearchRaw.results,isExpanded:!1,onToggle:Ge=>fr(ne.webSearchRaw)},null,8,["total","results","onToggle"])])):xe("",!0),x("div",Urn,[x("div",zrn,[x("img",{src:C(rk),alt:"AI",class:"ai-icon"},null,8,$rn)]),x("div",{class:"message-content","data-message-index":Oe,ref_for:!0,ref:Ge=>O.value[Oe]=Ge},[x("div",Hrn,[ne.showStats?(L(),G("div",{key:0,class:oe(["stats-card",{"is-sticky":k.value[Oe]?.isSticky&&k.value[Oe]?.initialized&&!k.value[Oe]?.isInitializing}]),style:rn(k.value[Oe]?.isSticky&&k.value[Oe]?.initialized&&!k.value[Oe]?.isInitializing&&k.value[Oe]?.initialLeft>0&&k.value[Oe]?.initialWidth>0?{position:"fixed",top:"60px",left:k.value[Oe].initialLeft+"px",width:k.value[Oe].initialWidth+"px",zIndex:999}:{}),"data-message-index":Oe},[x("div",Vrn,[He(dAe,{status:Ye(ne.currentStatus,ne.progress),size:28,class:"stats-avatar"},null,8,["status"]),x("span",{innerHTML:ne.statusMessage,class:"status-text"},null,8,qrn)]),ne.progress<100?(L(),G("div",Grn,[x("div",Krn,[x("div",{class:"progress-fill",style:rn({width:ne.progress+"%"})},null,4),x("div",{class:"progress-dot",style:rn({left:ne.progress+"%"})},null,4)]),x("span",Yrn,je(ne.progress)+"%",1)])):xe("",!0),ne.progress===100&&ne.reports&&ne.reports.length>0?(L(),G("div",Qrn,[He(lAe,{reports:ne.reports.filter(Ge=>Ge.status==="completed"&&Ge.type!=="category_title"),disabled:!1,title:ie.value},null,8,["reports","title"])])):xe("",!0)],14,Wrn)):xe("",!0),ne.summary?(L(),G("div",Zrn,[He(py,{content:ne.summary,streaming:!1},null,8,["content"])])):xe("",!0),ne.isTyping&&(!ne.reports||ne.reports.length===0)&&ne.progress<100?(L(),G("div",Xrn,Ve[25]||(Ve[25]=[ki('<span class="loading-text" data-v-5c2e6b46>AI正在思考中...</span><div class="thinking-animation" data-v-5c2e6b46><span class="dot" data-v-5c2e6b46></span><span class="dot" data-v-5c2e6b46></span><span class="dot" data-v-5c2e6b46></span></div>',2)]))):xe("",!0),ne.reports&&ne.reports.length>0?(L(),G("div",Jrn,[(L(!0),G(Rt,null,un(ne.reports,(Ge,$t)=>(L(),G(Rt,{key:`${Ge.source_file}-${Ge.file_index}-${$t}`},[Ge.type==="category_title"?(L(),yt(aAe,{key:0,category:Ge.category,number:Ge.number,count:Ge.count,onToggle:Ot=>Bn(Oe,Ot)},null,8,["category","number","count","onToggle"])):!Ge.type||Ge.type!=="category_title"?cn((L(),yt(sAe,{key:1,report:Ge,onPreviewFile:Ft},null,8,["report"])),[[kr,Fr(Oe,Ge.metadata?._displayCategory||Ge.metadata?.primary_category)]]):xe("",!0)],64))),128)),ne.isTyping&&ne.progress<100&&kn(ne.reports)?(L(),G("div",eon,Ve[26]||(Ve[26]=[ki('<span class="loading-text" data-v-5c2e6b46>AI正在思考中...</span><div class="thinking-animation" data-v-5c2e6b46><span class="dot" data-v-5c2e6b46></span><span class="dot" data-v-5c2e6b46></span><span class="dot" data-v-5c2e6b46></span></div>',2)]))):xe("",!0)])):xe("",!0),ne.hasWebSearchResults&&ne.webSearchSummary?(L(),G("div",ton,[He(cAe,{summary:ne.webSearchSummary},null,8,["summary"])])):xe("",!0),!ne.reports||ne.reports.length===0?(L(),G("div",non,[ne.displayContent&&ne.displayContent.length>0?(L(),G("div",ron,[x("div",{innerHTML:ne.displayContent},null,8,oon)])):xe("",!0)])):xe("",!0)]),cn(x("div",ion,null,512),[[kr,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary)]]),cn(x("div",aon,[x("div",son,[x("button",{class:"action-btn copy-btn",onClick:Ge=>Wi(ne),title:"复制"},[x("img",{src:C(jv),alt:"复制",class:"action-icon"},null,8,uon)],8,lon),x("button",{class:"action-btn regenerate-btn",onClick:Ge=>Oi(Oe),disabled:ze.value,title:"重新生成"},[x("img",{src:C(yq),alt:"重新生成",class:"action-icon"},null,8,don)],8,con),x("button",{class:oe(["action-btn voice-btn",{speaking:wr(ne.id)}]),onClick:Ge=>Un(ne),title:wr(ne.id)?"停止朗读":"语音朗读"},[x("img",{src:C(o7),alt:"语音朗读",class:"action-icon"},null,8,pon)],10,fon)]),x("div",hon,[x("button",{class:oe(["action-btn thumbs-up-btn",{active:ne.userFeedback==="like"}]),onClick:Ge=>mi(ne),title:ne.userFeedback==="like"?"取消点赞":"点赞"},[x("img",{src:C(Qy),alt:"点赞",class:"action-icon"},null,8,von)],10,gon),x("button",{class:oe(["action-btn thumbs-down-btn",{active:ne.userFeedback==="dislike"}]),onClick:Ge=>Si(ne),title:ne.userFeedback==="dislike"?"取消点踩":"点踩"},[x("img",{src:C(Zy),alt:"踩",class:"action-icon"},null,8,yon)],10,mon)])],512),[[kr,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary)]])],8,jrn)]),cn(x("div",bon,Ve[27]||(Ve[27]=[x("div",{class:"thinking-animation"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1)]),512),[[kr,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary||ne.reports&&ne.reports.length>0)&&he.value&&(Ee.value===ne.id||Ee.value===ne.ai_message_id)&&Ae.value.length===0]]),cn(x("div",won,[(L(!0),G(Rt,null,un(Ae.value,(Ge,$t)=>(L(),G("div",{key:$t,class:"related-question-item",onClick:Ot=>yo(Ge)},[x("span",null,je(Ge),1),Ve[28]||(Ve[28]=x("svg",{class:"arrow-icon",viewBox:"0 0 16 16",fill:"none"},[x("path",{d:"M6 4L10 8L6 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],8,Aon))),128))],512),[[kr,!ne.isTyping&&(ne.displayContent&&ne.displayContent.length>0||ne.summary||ne.reports&&ne.reports.length>0)&&(Ee.value===ne.id||Ee.value===ne.ai_message_id)&&Ae.value.length>0]])])):xe("",!0)],2))),128))])):(L(),G("div",arn,[x("div",srn,[x("div",lrn,[x("img",{src:C(rk),alt:"AI头像",class:"ai-avatar-img"},null,8,urn)]),Ve[16]||(Ve[16]=x("div",{class:"ai-greeting"},[x("h3",null,"我是蜀道安全管理AI智能助手,您的得力帮手"),x("p",null,"我可以帮您处理这些事情")],-1))]),x("div",crn,[(L(!0),G(Rt,null,un(te.value,(ne,Oe)=>(L(),G("div",{key:ne.id||Oe,class:"function-card",onClick:Ge=>Rr(ne.function_title)},[x("div",frn,[x("div",prn,[x("img",{src:vo(ne.function_title),alt:ne.function_title,class:"card-icon-img"},null,8,hrn)]),x("h4",null,je(ne.function_title),1)]),x("div",grn,[x("p",null,je(ne.function_content),1)])],8,drn))),128)),te.value.length===0?(L(),G("div",{key:0,class:"function-card",onClick:Ve[1]||(Ve[1]=ne=>Rr("桥梁结构设计问题"))},[x("div",vrn,[x("div",mrn,[x("img",{src:C(ok),alt:"桥梁结构设计问题",class:"card-icon-img"},null,8,yrn)]),Ve[17]||(Ve[17]=x("h4",null,"桥梁结构设计问题",-1))]),Ve[18]||(Ve[18]=x("div",{class:"card-description"},[x("p",null,"各类桥梁结构设计,计算与分析")],-1))])):xe("",!0),te.value.length===0?(L(),G("div",{key:1,class:"function-card",onClick:Ve[2]||(Ve[2]=ne=>Rr("桥梁施工技术咨询"))},[x("div",brn,[x("div",wrn,[x("img",{src:C(ik),alt:"施工技术咨询",class:"card-icon-img"},null,8,Arn)]),Ve[19]||(Ve[19]=x("h4",null,"施工技术咨询",-1))]),Ve[20]||(Ve[20]=x("div",{class:"card-description"},[x("p",null,"桥梁施工方法,工艺与技术要点")],-1))])):xe("",!0),te.value.length===0?(L(),G("div",{key:2,class:"function-card",onClick:Ve[3]||(Ve[3]=ne=>Rr("材料与力学问题"))},[x("div",Crn,[x("div",xrn,[x("img",{src:C(ak),alt:"材料与力学问题",class:"card-icon-img"},null,8,Srn)]),Ve[21]||(Ve[21]=x("h4",null,"材料与力学问题",-1))]),Ve[22]||(Ve[22]=x("div",{class:"card-description"},[x("p",null,"建筑材料性能与结构力学分析")],-1))])):xe("",!0),te.value.length===0?(L(),G("div",{key:3,class:"function-card",onClick:Ve[4]||(Ve[4]=ne=>Rr("规范标准查询"))},[x("div",Ern,[x("div",krn,[x("img",{src:C(sk),alt:"规范标准查询",class:"card-icon-img"},null,8,Trn)]),Ve[23]||(Ve[23]=x("h4",null,"规范标准查询",-1))]),Ve[24]||(Ve[24]=x("div",{class:"card-description"},[x("p",null,"行业规范,标准解读与应用")],-1))])):xe("",!0)])])),x("div",Con,[x("div",xon,[x("div",Son,[x("button",{class:oe(["network-search-btn",{active:Z.value}]),onClick:Sn,title:Z.value?"关闭联网搜索":"启用联网搜索",disabled:f.value||ze.value},[x("div",kon,[x("img",{src:Z.value?C(pAe):C(hAe),alt:"联网搜索",class:"action-icon"},null,8,Ton)])],10,Eon),Ve[30]||(Ve[30]=x("div",{class:"divider"},null,-1)),cn(x("input",{type:"text",placeholder:"请在此处发送消息",class:"message-input","onUpdate:modelValue":Ve[5]||(Ve[5]=ne=>c.value=ne),onKeyup:$r(Ur,["enter"]),disabled:f.value||ze.value,maxlength:"2000"},null,40,_on),[[qr,c.value]]),x("button",{class:oe(["voice-btn",{recording:C(N)}]),onClick:Ci,disabled:f.value||ze.value},[x("div",Ion,[x("img",{src:C(rp),alt:"语音",class:"action-icon"},null,8,Oon),C(N)?(L(),G("div",Mon)):xe("",!0)])],10,Don),Ve[31]||(Ve[31]=x("div",{class:"divider"},null,-1)),f.value?(L(),G("button",{key:1,class:"send-btn stop-btn",onClick:Zn,title:"停止生成"},Ve[29]||(Ve[29]=[x("span",{class:"stop-text",style:{color:"#FF4D4F"}},"停止",-1)]))):(L(),G("button",{key:0,class:"send-btn",onClick:Ur,disabled:ze.value||!c.value.trim()},[x("img",{src:c.value.trim()?C(ip):C(op),alt:"发送",class:"send-icon"},null,8,Non)],8,Pon))])])])]),He(m2,{visible:H.value,message:re.value,duration:X.value,onClose:Ve[6]||(Ve[6]=ne=>H.value=!1)},null,8,["visible","message","duration"]),He(h0,{visible:v.value,title:Re.value,message:Ne.value,onConfirm:sa,onCancel:xa,onClose:xa},null,8,["visible","title","message"]),y.value?(L(),G("div",{key:0,class:"web-search-modal-overlay",onClick:Ve[9]||(Ve[9]=ne=>y.value=!1)},[x("div",{class:"web-search-modal",onClick:Ve[8]||(Ve[8]=en(()=>{},["stop"]))},[x("div",Ron,[Ve[32]||(Ve[32]=x("h3",null,"联网搜索结果",-1)),x("button",{class:"close-btn",onClick:Ve[7]||(Ve[7]=ne=>y.value=!1)},"✕")]),x("div",Bon,[m.value&&m.value.results?(L(),G("div",Lon,[x("div",Fon,"找到 "+je(m.value.total||m.value.results.length)+" 个相关结果",1),(L(!0),G(Rt,null,un(m.value.results,(ne,Oe)=>(L(),G("div",{key:Oe,class:"search-result-item",onClick:Ge=>Nt(ne)},[x("div",zon,[x("div",$on,je(Oe+1),1),x("div",jon,je(ne.title),1)]),x("div",Hon,je(ne.content||ne.snippet),1),x("div",Won,[x("span",Von,je(_n(ne.url||ne.link)),1),ne.score?(L(),G("span",qon,je((ne.score*100).toFixed(1))+"%",1)):xe("",!0)])],8,Uon))),128))])):xe("",!0)])])])):xe("",!0),b.value?(L(),G("div",{key:1,class:"web-preview-overlay",onClick:Ve[12]||(Ve[12]=ne=>b.value=!1)},[x("div",{class:"web-preview-modal",onClick:Ve[11]||(Ve[11]=en(()=>{},["stop"]))},[x("div",Gon,[x("h3",null,je(A.value),1),x("button",{class:"close-btn",onClick:Ve[10]||(Ve[10]=ne=>b.value=!1)},"✕")]),x("div",Kon,[w.value?(L(),G("iframe",{key:0,src:w.value,frameborder:"0",class:"preview-iframe"},null,8,Yon)):(L(),G("div",Qon,[Ve[33]||(Ve[33]=x("p",null,"无法加载网页预览",-1)),x("button",{class:"open-link-btn",onClick:xt},"在新标签页中打开")]))])])])):xe("",!0),S.value?(L(),G("div",{key:2,class:"file-preview-overlay",onClick:Ve[15]||(Ve[15]=ne=>S.value=!1)},[x("div",{class:"file-preview-modal",onClick:Ve[14]||(Ve[14]=en(()=>{},["stop"]))},[x("div",Zon,[x("div",Xon,[Ve[35]||(Ve[35]=x("svg",{class:"file-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},[x("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"})],-1)),x("div",Jon,[Ve[34]||(Ve[34]=x("h3",null,"文件预览",-1)),D.value?(L(),G("span",ein,je(D.value),1)):xe("",!0)])]),x("button",{class:"close-btn",onClick:Ve[13]||(Ve[13]=ne=>S.value=!1)},"✕")]),x("div",tin,[_.value?(L(),G("div",nin,Ve[36]||(Ve[36]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"加载中...",-1)]))):M.value?(L(),G("div",rin,[Ve[37]||(Ve[37]=x("svg",{class:"error-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},[x("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})],-1)),x("p",null,je(M.value),1)])):E.value?(L(),G("iframe",{key:2,src:E.value,frameborder:"0",class:"file-iframe"},null,8,oin)):(L(),G("div",iin,Ve[38]||(Ve[38]=[x("svg",{class:"empty-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},[x("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"})],-1),x("p",null,"暂无预览内容",-1)])))])])])):xe("",!0)]))}},sin=Zo(ain,[["__scopeId","data-v-5c2e6b46"]]),lin={class:"mobile-safety-hazard"},uin={class:"mobile-content"},cin={key:0,class:"initial-content"},din={class:"ai-intro"},fin={class:"ai-avatar"},pin=["src"],hin={class:"function-cards"},gin=["onClick"],vin={class:"card-header"},min={class:"card-icon"},yin=["src","alt"],bin={class:"card-description"},win={class:"card-header"},Ain={class:"card-icon"},Cin=["src"],xin={class:"card-header"},Sin={class:"card-icon"},Ein=["src"],kin={class:"card-header"},Tin={class:"card-icon"},_in=["src"],Din={class:"card-header"},Iin={class:"card-icon"},Oin=["src"],Min={key:1,class:"chat-messages"},Pin={key:0,class:"user-message"},Nin={class:"message-content"},Rin={key:0,class:"message-text"},Bin={class:"message-actions"},Lin=["onClick"],Fin=["src"],Uin=["onClick"],zin=["src"],$in={key:1,class:"ai-message"},jin={class:"ai-avatar-small"},Hin=["src"],Win={class:"message-content"},Vin={class:"ai-text"},qin={key:0,class:"typing-indicator"},Gin=["innerHTML"],Kin={class:"divider"},Yin={class:"message-actions"},Qin={class:"left-actions"},Zin=["onClick"],Xin=["src"],Jin=["onClick","disabled"],ean=["src"],tan=["onClick","title"],nan=["src"],ran={class:"right-actions"},oan=["onClick","title"],ian=["src"],aan=["onClick","title"],san=["src"],lan={key:2,class:"step2-content"},uan={key:0,class:"loading-overlay"},can={key:0,class:"generating-overlay-full"},dan={key:1,class:"generating-overlay-full"},fan={class:"outline-header"},pan={class:"outline-top-right"},han=["disabled"],gan=["src"],van=["disabled"],man=["src"],yan=["disabled"],ban=["src"],wan={class:"outline-content"},Aan={key:0,class:"outline-content-scrollable"},Can={key:0,class:"outline-chapter"},xan={class:"chapter-header"},San={class:"chapter-title"},Ean={class:"outline-section"},kan={key:0,class:"section-container"},Tan={class:"section-header"},_an={class:"section-title"},Dan={key:0,class:"section-subsection"},Ian={key:0,class:"subsection-container"},Oan={class:"subsection-header"},Man={class:"subsection-title"},Pan={key:0,class:"subsubsection-container"},Nan={class:"subsubsection-header"},Ran={class:"subsubsection-title"},Ban={key:0,class:"add-chapter-container"},Lan=["src"],Fan={key:1,class:"ai-outline-content"},Uan=["innerHTML"],zan={key:2,class:"default-outline"},$an={class:"outline-bottom-left"},jan=["disabled"],Han=["src"],Wan=["disabled"],Van=["src"],qan={class:"outline-bottom-right"},Gan=["disabled"],Kan=["src"],Yan=["disabled"],Qan=["src"],Zan={key:3,class:"chat-input-section"},Xan={class:"input-container"},Jan={class:"input-box"},esn=["disabled"],tsn=["disabled"],nsn={class:"icon-container"},rsn=["src"],osn={key:0,class:"recording-indicator"},isn=["disabled"],asn=["src"],ssn={__name:"m-SafetyHazard",setup(e){const t=Yl(),n=()=>{t.go(-1)},r=()=>{!B.value&&!z.value&&(o.value=!0)},o=K(!1),i=K([]),a=K(0),s=K(!1),l=K(!1),u=K([]),d=K(""),c=K(!1),f=K(0),p=K("step1"),v=K(!1),h=K(null),g=K(""),y=K(null),{isSupported:m,isListening:b,transcript:w,error:A,startListening:S,stopListening:E}=O0(),D=K(!1),_=K(""),M=K(2e3),O=K([]);let k=0;const R=K(""),N=K([]),W=K(""),B=K(!1),z=K(!1),j=K(null),q=K(""),Y=K(null),U=ee(()=>u.value.some(fe=>fe.type==="ai"&&fe.isTyping)),F=ee(()=>g.value==="history"?`确定要删除历史记录"${h.value?.item?.title||""}"吗?删除后将无法恢复。`:g.value==="message"?"确定要删除这条消息吗?删除后将无法恢复。":"确定要删除吗?删除后将无法恢复。"),H=ee(()=>g.value==="history"?"删除历史记录":g.value==="message"?"删除消息":"删除确认"),re=fe=>{if(!fe)return null;if(typeof fe=="number"){const Se=fe<1e12?fe*1e3:fe;return new Date(Se)}if(typeof fe=="string"){let Se=new Date(fe);if(!isNaN(Se))return Se;const qe=fe.replace(/-/g,"/").replace("T"," ");if(Se=new Date(qe),!isNaN(Se))return Se}return new Date(fe)},X=fe=>{const Se=re(fe);if(!Se||isNaN(Se))return"";const qe=new Date,$e=Se.toDateString()===qe.toDateString(),Le=new Date(qe.getFullYear(),qe.getMonth(),qe.getDate()-1),ot=Se.toDateString()===Le.toDateString();if($e)return Se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(ot)return"昨天 "+Se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const vt=Se.getMonth()+1,Ut=Se.getDate(),Qt=Se.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${vt}月${Ut}日 ${Qt}`},te=fe=>{try{let Se="安全培训大纲";const qe=fe.split(`
- `);for(let $e of qe){const Le=$e.trim();if(Le.includes("以下是为您准备的PPT大纲")){const ot=qe.indexOf($e)+1;if(ot<qe.length){const vt=qe[ot].trim();if(vt&&vt.length>0&&!vt.includes("以下")&&!vt.includes("大纲统计信息")){Se=vt;break}}}if(Le.startsWith("# ")){Se=Le.replace("# ","").trim();break}if(Le.startsWith("## ")){const ot=Le.replace("## ","").trim();if(ot&&!ot.includes("内容要点")&&!ot.includes("概述")&&!ot.includes("内容详情")){Se=ot;break}}Le.length>10&&!Le.includes("以下是")&&!Le.includes("大纲统计")&&!Le.includes("##")&&!Le.includes("###")&&Le.length<50&&!Se.includes("#")&&Se==="安全培训大纲"&&(Se=Le)}return console.log("提取的大纲标题:",Se),Se}catch(Se){return console.error("提取大纲标题失败:",Se),"安全培训大纲"}},Z=fe=>{if(!fe)return"新对话";const Se=fe.replace(/<[^>]*>/g,"").trim();return Se.length>30?Se.substring(0,30)+"...":Se},le=async()=>{try{console.log("📋 开始获取移动端安全培训历史记录列表..."),s.value=!0;const fe=performance.now(),Se=await zn.getHistoryRecord({ai_conversation_id:0,business_type:1}),qe=performance.now();console.log(`📋 移动端安全培训历史记录API调用耗时: ${(qe-fe).toFixed(2)}ms`),console.log("📋 移动端历史记录列表响应:",Se),Se.statusCode===200?(a.value=Se.total||0,i.value=Se.data.map($e=>({id:$e.id,title:Z($e.content),time:X($e.updated_at),businessType:$e.business_type,isActive:!1,rawData:$e})),f.value&&i.value.forEach($e=>{$e.isActive=$e.id===f.value}),console.log(`✅ 移动端安全培训历史记录列表已设置: ${i.value.length}条记录,总数: ${a.value}`)):console.error("❌ 获取移动端历史记录列表失败:",Se.statusCode)}catch(fe){console.error("❌ 获取移动端历史记录列表失败:",fe)}finally{s.value=!1}},ve=fe=>{if(!fe)return fe;console.log("开始转换Markdown:",fe);let Se=fe;const qe=/(?:^|<br>)#{1,6}\s*/.test(Se)||/\*\*.*?\*\*/.test(Se)||/^\s*[-*]\s+/.test(Se);console.log("Markdown格式检测结果:",qe);const $e=/<[^>]*>/.test(Se);return console.log("HTML标签检测结果:",$e),qe?(console.log("检测到Markdown格式,进行Markdown转换"),Se=Se.replace(/^#{6}\s*(.+)$/gm,"<h6>$1</h6>"),Se=Se.replace(/^#{5}\s*(.+)$/gm,"<h5>$1</h5>"),Se=Se.replace(/^#{4}\s*(.+)$/gm,"<h4>$1</h4>"),Se=Se.replace(/^#{3}\s*(.+)$/gm,"<h3>$1</h3>"),Se=Se.replace(/^#{2}\s*(.+)$/gm,"<h2>$1</h2>"),Se=Se.replace(/^#{1}\s*(.+)$/gm,"<h1>$1</h1>"),Se=Se.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>"),Se=Se.replace(/\*(.*?)\*/g,"<em>$1</em>"),Se=Se.replace(/^\s*[-*]\s+(.+)$/gm,"<li>$1</li>"),Se=Se.replace(/(<li>.*<\/li>)/s,"<ul>$1</ul>"),Se=Se.replace(/`(.*?)`/g,"<code>$1</code>"),console.log("Markdown转换完成:",Se)):console.log($e?"检测到HTML标签,跳过Markdown转换":"未检测到特殊格式,保持原文本"),Se=Se.replace(/\n/g,"<br>"),console.log("最终HTML:",Se),Se},Pe=fe=>{const Se=[x_,S_,E_,k_],qe=Se[k%Se.length];return k++,qe},Ae=fe=>{console.log("点击功能卡片:",fe),u.value=[],f.value=0,l.value=!0;const Se=`请详细介绍${fe}的相关内容`;d.value=Se,he()},he=async()=>{if(!d.value.trim()||c.value)return;console.log("开始发送消息:",d.value),c.value=!0,l.value=!0;const fe={type:"user",content:d.value,id:Date.now()};u.value.push(fe);const Se={type:"ai",content:"",displayContent:"",isTyping:!0,id:Date.now()+1,userFeedback:null};u.value.push(Se);const qe=d.value;d.value="",Ee();try{const $e=await zn.sendDeepseekMessage({ai_conversation_id:f.value,message:qe,business_type:1});if(console.log("AI回复响应:",$e),$e.statusCode===200){$e.data&&$e.data.ai_conversation_id&&(f.value=$e.data.ai_conversation_id),$e.data&&$e.data.ai_message_id&&(Y.value=$e.data.ai_message_id,console.log("设置AI消息ID:",Y.value));const Le=$e.data?$e.data.reply:$e.reply||"";console.log("AI回复内容:",Le);const ot=ve(Le),vt=[];let Ut="",Qt=!1,Gt="";for(let fr=0;fr<ot.length;fr++){const Nt=ot[fr];Nt==="<"?(Ut&&!Qt&&(vt.push({type:"text",content:Ut}),Ut=""),Qt=!0,Gt=Nt):Nt===">"?(Gt+=Nt,vt.push({type:"tag",content:Gt}),Qt=!1,Gt=""):Qt?Gt+=Nt:Ut+=Nt}Ut&&vt.push({type:"text",content:Ut}),Gt&&vt.push({type:"tag",content:Gt}),console.log("分割后的文本块:",vt);let vn=0,Un=0;const wr=setInterval(()=>{if(vn<vt.length){const fr=vt[vn];if(fr.type==="tag")console.log("显示HTML标签:",fr.content),Se.displayContent+=fr.content,vn++,Un=0;else if(Un<fr.content.length){const Nt=Se.displayContent+fr.content[Un];Se.displayContent=Nt,Un++}else vn++,Un=0;u.value=[...u.value],Ee()}else Se.isTyping=!1,Se.content=Le,clearInterval(wr),console.log("打字完成,最终displayContent:",Se.displayContent),u.value=[...u.value],console.log("打字完成,强制更新响应式数据"),W.value=Se.displayContent,R.value=te(Le)||"安全培训大纲",p.value="step2",le()},50)}else console.error("发送消息失败:",$e),Se.content="抱歉,我暂时无法回答您的问题,请稍后再试。",Se.displayContent="抱歉,我暂时无法回答您的问题,请稍后再试。",Se.isTyping=!1,u.value=[...u.value]}catch($e){console.error("发送消息失败:",$e),Se.content="抱歉,网络连接出现问题,请检查网络后重试。",Se.displayContent="抱歉,网络连接出现问题,请检查网络后重试。",Se.isTyping=!1,u.value=[...u.value]}finally{c.value=!1}},Ee=()=>{Yt(()=>{const fe=document.querySelector(".chat-messages");fe&&(fe.scrollTop=fe.scrollHeight)})},Q=async()=>{try{console.log("开始获取功能卡片...");const fe=await zn.getFunctionCard({function_type:1});console.log("功能卡片响应:",fe),fe.statusCode===200?(O.value=fe.data,console.log("功能卡片数据已设置:",O.value)):console.error("获取功能卡片失败:",fe.statusCode)}catch(fe){console.error("获取功能卡片失败:",fe)}},me=(fe,Se=2e3)=>{D.value=!1,Yt(()=>{_.value=fe,M.value=Se,D.value=!0})},De=async fe=>{try{await navigator.clipboard.writeText(fe),me("复制成功")}catch(Se){console.error("复制失败:",Se),me("复制失败")}},pe=fe=>{De(fe.content)},ie=fe=>{let Se=fe.displayContent||fe.content;if(Se&&Se.includes("<")){const qe=document.createElement("div");qe.innerHTML=Se,Se=qe.textContent||qe.innerText||Se}De(Se)},ue=fe=>{console.log("编辑用户消息:",fe.content),d.value=fe.content,Yt(()=>{const Se=document.querySelector(".message-input");Se&&(Se.focus(),Se.setSelectionRange(Se.value.length,Se.value.length))})},Be=()=>{if(console.log("点击语音按钮"),!m.value){me("当前浏览器不支持语音识别");return}b.value?Fe():Me()},Me=()=>{console.log("开始语音输入"),S()||me("语音识别启动失败,请检查麦克风权限")},Fe=()=>{console.log("停止语音输入"),E(),w.value.trim()&&(d.value=w.value)},ze=fe=>{if(y.value===fe.id){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}y.value=null}else{if(y.value)try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}const Se=fe.displayContent||fe.content;if(Se&&Se.trim()){const qe=Se.replace(/<[^>]*>/g,""),$e=new SpeechSynthesisUtterance(qe);$e.lang="zh-CN",$e.rate=.9,$e.pitch=1,$e.volume=1,$e.onend=()=>{y.value=null},$e.onerror=()=>{y.value=null};try{window.speechSynthesis&&window.speechSynthesis.speak($e)}catch{}y.value=fe.id}}},Ne=fe=>y.value===fe,Re=async fe=>{if(console.log("重新生成回复,消息索引:",fe),fe>0){const Se=u.value[fe-1];if(Se&&Se.type==="user"){console.log("重新发送用户消息:",Se.content),u.value.splice(fe,1);const qe={type:"ai",content:"",displayContent:"",isTyping:!0,id:Date.now()+1,userFeedback:null};u.value.push(qe),Ee();try{const $e=await zn.sendDeepseekMessage({ai_conversation_id:f.value,message:Se.content,business_type:1});if(console.log("重新生成AI回复响应:",$e),$e.statusCode===200){$e.data&&$e.data.ai_conversation_id&&(f.value=$e.data.ai_conversation_id),$e.data&&$e.data.ai_message_id&&(Y.value=$e.data.ai_message_id,console.log("重新生成设置AI消息ID:",Y.value));const Le=$e.data?$e.data.reply:$e.reply||"";console.log("重新生成AI回复内容:",Le);const ot=ve(Le),vt=[];let Ut="",Qt=!1,Gt="";for(let fr=0;fr<ot.length;fr++){const Nt=ot[fr];Nt==="<"?(Ut&&!Qt&&(vt.push({type:"text",content:Ut}),Ut=""),Qt=!0,Gt=Nt):Nt===">"?(Gt+=Nt,vt.push({type:"tag",content:Gt}),Qt=!1,Gt=""):Qt?Gt+=Nt:Ut+=Nt}Ut&&vt.push({type:"text",content:Ut}),Gt&&vt.push({type:"tag",content:Gt}),console.log("重新生成分割后的文本块:",vt);let vn=0,Un=0;const wr=setInterval(()=>{if(vn<vt.length){const fr=vt[vn];if(fr.type==="tag")console.log("显示HTML标签:",fr.content),qe.displayContent+=fr.content,vn++,Un=0;else if(Un<fr.content.length){const Nt=qe.displayContent+fr.content[Un];qe.displayContent=Nt,Un++}else vn++,Un=0;u.value=[...u.value],Ee()}else qe.isTyping=!1,qe.content=Le,clearInterval(wr),console.log("重新生成打字完成,最终displayContent:",qe.displayContent),u.value=[...u.value],console.log("重新生成打字完成,强制更新响应式数据"),W.value=qe.displayContent,R.value=te(Le)||"安全培训大纲",p.value="step2",le()},50)}else console.error("重新生成失败:",$e),qe.content="抱歉,重新生成失败,请稍后再试。",qe.displayContent="抱歉,重新生成失败,请稍后再试。",qe.isTyping=!1,u.value=[...u.value]}catch($e){console.error("重新生成失败:",$e),qe.content="抱歉,网络连接出现问题,请检查网络后重试。",qe.displayContent="抱歉,网络连接出现问题,请检查网络后重试。",qe.isTyping=!1,u.value=[...u.value]}}}},gt=async fe=>{console.log("点赞消息:",fe.id),fe.userFeedback==="like"?(fe.userFeedback=null,me("已取消点赞")):(fe.userFeedback="like",me("点赞成功")),u.value=[...u.value]},Bt=async fe=>{console.log("点踩消息:",fe.id),fe.userFeedback==="dislike"?(fe.userFeedback=null,me("已取消点踩")):(fe.userFeedback="dislike",me("点踩成功")),u.value=[...u.value]},Lt=(fe,Se)=>fe?fe.includes("第")?fe:`第${Se+1}章 ${fe}`:`第${Se+1}章`,an=async()=>{try{if(!W.value){me("暂无大纲内容可复制");return}const fe=document.createElement("div");fe.innerHTML=W.value;let Se="";const qe=(ot,vt=0)=>{for(const Ut of ot.childNodes)if(Ut.nodeType===Node.TEXT_NODE){const Qt=Ut.textContent?.trim();if(Qt){const Gt=" ".repeat(vt);Se+=`${Gt}${Qt}
- `}}else if(Ut.nodeType===Node.ELEMENT_NODE){const Qt=Ut.tagName?.toLowerCase();if(["h2","h3","h4","h5","h6"].includes(Qt)){const Gt=Ut.textContent?.trim();Gt&&!Gt.includes("安全培训大纲")&&(Se+=`${" ".repeat(vt)}${Gt}
- `);continue}qe(Ut,vt+1)}};qe(fe),Se=Se.replace(/\n\s*\n\s*\n/g,`
- `).replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n$/,"").trim();const $e=`${R.value||"安全培训大纲"}
- ${Se}`;if(navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext)try{await navigator.clipboard.writeText($e),me("复制成功");return}catch(ot){console.warn("Clipboard API 失败,使用降级方案:",ot)}const Le=document.createElement("textarea");Le.value=$e,Le.style.position="fixed",Le.style.left="-999999px",Le.style.top="-999999px",document.body.appendChild(Le),Le.focus(),Le.select();try{if(document.execCommand("copy"))me("大纲已复制到剪贴板");else throw new Error("execCommand 复制失败")}catch(ot){console.error("传统复制方法也失败:",ot),me("复制失败,请手动选择文本复制")}finally{document.body.removeChild(Le)}}catch(fe){console.error("复制大纲失败:",fe),ElMessage.error("复制失败,请手动选择文本复制")}},Kt=async()=>{try{if(!W.value){me("暂无大纲内容可下载");return}let fe=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${R.value||"安全培训大纲"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .outline-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- h1, h2, h3, h4, h5, h6 {
- color: #000;
- font-weight: bold;
- font-family: "Microsoft YaHei", Arial, sans-serif;
- margin-top: 20px;
- margin-bottom: 15px;
- }
- h1 {
- font-size: 20px;
- border-bottom: 2px solid #000;
- padding-bottom: 10px;
- }
- h2 {
- font-size: 18px;
- margin-top: 20px;
- margin-bottom: 12px;
- }
- h3 {
- font-size: 16px;
- margin-top: 15px;
- margin-bottom: 8px;
- }
- h4 {
- font-size: 14px;
- margin-top: 12px;
- margin-bottom: 6px;
- }
- ul, li {
- color: #000;
- font-family: "Microsoft YaHei", Arial, sans-serif;
- }
- li {
- margin-bottom: 4px;
- }
- .stats {
- background: #f8f9fa;
- padding: 20px;
- border-radius: 8px;
- margin-top: 30px;
- border: 1px solid #ddd;
- }
- .stats h3 {
- color: #2c3e50;
- margin-top: 0;
- font-size: 16px;
- }
- .stats p {
- margin: 8px 0;
- color: #555;
- font-size: 14px;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="outline-title">${R.value||"安全培训大纲"}</div>
- </div>
- `;const Se=document.createElement("div");Se.innerHTML=W.value,Se.querySelectorAll("h1").forEach(Ut=>{const Qt=Ut.textContent?.trim();Qt&&Qt.includes(R.value||"安全培训大纲")&&Ut.remove()});const $e=Se.innerHTML.replace(/<h[1-6][^>]*>\s*<\/h[1-6]>/gi,"");fe+=$e,fe+=`
- </body>
- </html>
- `;const Le=new Blob([fe],{type:"application/msword"}),ot=URL.createObjectURL(Le),vt=document.createElement("a");vt.href=ot,vt.download=`${R.value||"安全培训大纲"}.doc`,document.body.appendChild(vt),vt.click(),document.body.removeChild(vt),URL.revokeObjectURL(ot),me("下载成功")}catch(fe){console.error("下载大纲失败:",fe),me("下载失败,请重试")}},Ht=async()=>{try{if(!f.value){me("请先开始一个对话");return}B.value=!0;const Se=`${R.value||"安全培训大纲"}`;console.log("开始生成新大纲:",Se),console.log("ai_conversation_id:",f.value);const qe=await zn.sendDeepseekMessage({ai_conversation_id:f.value,message:Se,business_type:1});if(console.log("重新生成大纲响应:",qe),qe.statusCode===200){const $e=qe.data?qe.data.reply:qe.reply||"";console.log("重新生成大纲内容:",$e),qe.data&&qe.data.ai_message_id&&(Y.value=qe.data.ai_message_id,console.log("重新生成大纲设置AI消息ID:",Y.value));const Le=ve($e);W.value=Le;const ot=te($e)||"安全培训大纲";R.value=ot,console.log("重新生成大纲标题设置为:",ot),me("新大纲生成成功!"),j.value=null,q.value=""}else console.error("重新生成大纲失败:",qe),me("重新生成大纲失败,请重试")}catch(fe){console.error("重新生成大纲失败:",fe),me("重新生成大纲失败,请重试")}finally{B.value=!1}},pt=()=>{me("请前往电脑端选择模版")},Dt=()=>{if(console.log("发出评价状态 - outlineFeedback:",j.value,"evaluation:",q.value),j.value!==null)switch(j.value){case 2:return"like";case 3:return"dislike";case 0:return"";default:return""}return q.value},dt=async fe=>{try{console.log("设置评价:",fe);const Se=Dt();let qe;Se===fe?(qe=0,console.log("取消评价,发送0")):(qe=fe==="like"?2:3,console.log("设置新评价:",qe)),console.log("currentAiMessageId.value",Y.value);const $e=await zn.likeAndDislike({id:Y.value,user_feedback:qe});$e.statusCode===200?(console.log("点评成功"),qe===0?(q.value="",j.value=0,me("点评已取消")):(q.value=fe,j.value=qe,me("点评成功"))):(console.error("评价保存失败:",$e),me("评价保存失败,请重试"))}catch(Se){console.error("设置评价失败:",Se),me("评价设置失败,请重试")}},it=()=>{dt("like")},de=()=>{dt("dislike")},tt=(fe,Se)=>{console.log("添加新项目:",fe,Se),me("添加功能开发中...")},ft=()=>{console.log("新建安全培训任务"),o.value=!1,p.value="step1",l.value=!1,u.value=[],f.value=0,d.value="",R.value="",N.value=[],W.value="",j.value=null,q.value="",Y.value=null,i.value.forEach(fe=>{fe.isActive=!1})},Mt=async fe=>{if(fe.isActive)return;console.log("点击移动端安全培训历史记录:",fe),i.value.forEach(qe=>{qe.isActive=qe.id===fe.id}),o.value=!1,l.value=!0,p.value="step2",f.value=fe.id,console.log("开始加载历史对话详情,conversation_id:",fe.id);const Se=await zn.getHistoryRecord({ai_conversation_id:fe.id,business_type:1});console.log("历史对话详情响应:",Se),Se.statusCode===200&&Se.data&&Se.data.length>0?(u.value=[],console.log("历史对话数据详情:",Se.data),Se.data.forEach((qe,$e)=>{console.log(`处理第${$e+1}条消息:`,qe);const Le=qe.type;if(Le==="user")console.log("添加用户消息:",qe.content),u.value.push({type:"user",content:qe.content,id:qe.id||Date.now()+$e,timestamp:qe.created_at||qe.timestamp});else if(Le==="ai"){console.log("添加AI消息:",qe.content);const ot={type:"ai",content:qe.content,displayContent:ve(qe.content),isTyping:!1,id:qe.id||Date.now()+$e+1e3,timestamp:qe.created_at||qe.timestamp,userFeedback:null};u.value.push(ot),$e===Se.data.length-1&&(W.value=ot.displayContent,R.value=te(qe.content)||"安全培训大纲",console.log("历史记录大纲标题设置为:",R.value),qe.id&&(Y.value=qe.id,console.log("历史记录设置AI消息ID:",Y.value)),qe.user_feedback!==void 0&&(j.value=qe.user_feedback,console.log("历史记录设置评价状态:",j.value)))}else console.log("未知消息类型,跳过:",Le,qe)}),console.log("历史对话加载完成,消息数量:",u.value.length),Yt(()=>{Ee()})):(console.error("加载历史对话失败或无数据:",Se),u.value=[])},Tn=async(fe,Se)=>{try{console.log("开始删除移动端历史记录:",fe);const qe=await zn.deleteHistoryRecord({ai_conversation_id:fe.id});qe.statusCode===200?(i.value.splice(Se,1),a.value=Math.max(0,a.value-1),fe.isActive&&(console.log("删除激活的历史记录,执行新建任务"),ft()),console.log("✅ 移动端历史记录删除成功"),me("删除成功")):console.error("❌ 删除移动端历史记录失败:",qe)}catch(qe){console.error("❌ 删除移动端历史记录失败:",qe)}},Nn=async()=>{h.value&&(g.value==="history"?await We():g.value==="message"&&await ke())},We=async()=>{const{item:fe,index:Se}=h.value;try{const qe=await zn.deleteHistoryRecord({ai_conversation_id:fe.id});qe.statusCode===200?(i.value.splice(Se,1),fe.isActive&&(u.value=[],f.value=0,l.value=!1,p.value="step1"),console.log("历史记录删除成功"),me("删除成功")):(console.error("删除历史记录失败:",qe.msg),me(qe.msg||"删除失败"))}catch(qe){console.error("删除历史记录失败:",qe),me("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},ke=async()=>{const{messageIndex:fe}=h.value;try{const Se=u.value[fe];if(Se&&Se.id)try{const qe=await zn.deleteConversation({ai_message_id:Se.id});qe.statusCode===200?(u.value.splice(fe,1),fe>0&&u.value.splice(fe-1,1),console.log("删除成功"),me("删除成功")):(console.error("删除失败:",qe.msg),me("删除失败,请稍后重试"))}catch(qe){console.error("删除接口调用失败:",qe),me("删除失败,请稍后重试")}else console.log("没有id,仅从前端删除"),u.value.splice(fe,1),me("删除成功")}catch(Se){console.error("删除消息失败:",Se),me("删除失败,请稍后重试")}finally{v.value=!1,h.value=null,g.value=""}},be=()=>{v.value=!1,h.value=null,g.value=""};return qn(async()=>{try{console.log("🚀 移动端安全培训页面初始化,加载功能卡片..."),await Q(),console.log("✅ 移动端安全培训页面初始化完成")}catch(fe){console.error("❌ 移动端安全培训页面初始化失败:",fe)}}),Jr(()=>{if(y.value){try{window.speechSynthesis&&window.speechSynthesis.cancel()}catch{}y.value=null}}),St(o,async fe=>{fe&&i.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await le())}),St(w,fe=>{!fe||b.value||(d.value=fe)}),St(A,fe=>{fe&&(console.error("语音识别错误:",fe),me(fe))}),(fe,Se)=>(L(),G("div",lin,[He(y2,{title:"安全培训",onBack:n,onMenu:r}),x("div",uin,[He(ZC,{visible:!B.value&&!z.value&&o.value,title:"历史记录",historyData:i.value,loading:s.value,onClose:Se[0]||(Se[0]=qe=>o.value=!1),onCreateNewTask:ft,onHandleHistoryItem:Mt,onDeleteHistoryItem:Tn},null,8,["visible","historyData","loading"]),!l.value&&p.value==="step1"?(L(),G("div",cin,[x("div",din,[x("div",fin,[x("img",{src:C(C_),alt:"AI头像",class:"ai-avatar-img"},null,8,pin)]),Se[9]||(Se[9]=x("div",{class:"ai-greeting"},[x("h3",null,"快速生成专业安全培训材料"),x("p",null,"输入培训主题,一键生成培训大纲与PPT模板")],-1))]),x("div",hin,[(L(!0),G(Rt,null,un(O.value,(qe,$e)=>(L(),G("div",{key:qe.id||$e,class:"function-card",onClick:Le=>Ae(qe.function_title)},[x("div",vin,[x("div",min,[x("img",{src:Pe(qe.function_title),alt:qe.function_title,class:"card-icon-img"},null,8,yin)]),x("h4",null,je(qe.function_title),1)]),x("div",bin,[x("p",null,je(qe.function_content),1)])],8,gin))),128)),O.value.length===0?(L(),G("div",{key:0,class:"function-card",onClick:Se[1]||(Se[1]=qe=>Ae("安全培训课程"))},[x("div",win,[x("div",Ain,[x("img",{src:C(x_),alt:"安全培训课程",class:"card-icon-img"},null,8,Cin)]),Se[10]||(Se[10]=x("h4",null,"安全培训课程",-1))]),Se[11]||(Se[11]=x("div",{class:"card-description"},[x("p",null,"施工安全培训,操作规范学习")],-1))])):xe("",!0),O.value.length===0?(L(),G("div",{key:1,class:"function-card",onClick:Se[2]||(Se[2]=qe=>Ae("安全评估测试"))},[x("div",xin,[x("div",Sin,[x("img",{src:C(S_),alt:"安全评估",class:"card-icon-img"},null,8,Ein)]),Se[12]||(Se[12]=x("h4",null,"安全评估测试",-1))]),Se[13]||(Se[13]=x("div",{class:"card-description"},[x("p",null,"安全知识测评,能力水平评估")],-1))])):xe("",!0),O.value.length===0?(L(),G("div",{key:2,class:"function-card",onClick:Se[3]||(Se[3]=qe=>Ae("安全法规查询"))},[x("div",kin,[x("div",Tin,[x("img",{src:C(E_),alt:"安全法规",class:"card-icon-img"},null,8,_in)]),Se[14]||(Se[14]=x("h4",null,"安全法规查询",-1))]),Se[15]||(Se[15]=x("div",{class:"card-description"},[x("p",null,"安全法律法规,标准规范查询")],-1))])):xe("",!0),O.value.length===0?(L(),G("div",{key:3,class:"function-card",onClick:Se[4]||(Se[4]=qe=>Ae("应急处理程序"))},[x("div",Din,[x("div",Iin,[x("img",{src:C(k_),alt:"应急程序",class:"card-icon-img"},null,8,Oin)]),Se[16]||(Se[16]=x("h4",null,"应急处理程序",-1))]),Se[17]||(Se[17]=x("div",{class:"card-description"},[x("p",null,"事故应急预案,处理流程指导")],-1))])):xe("",!0)])])):l.value&&p.value==="step1"?(L(),G("div",Min,[(L(!0),G(Rt,null,un(u.value,(qe,$e)=>(L(),G("div",{key:$e,class:oe(["message-item",qe.type])},[qe.type==="user"?(L(),G("div",Pin,[x("div",Nin,[qe.content?(L(),G("div",Rin,je(qe.content),1)):xe("",!0)]),x("div",Bin,[x("button",{class:"action-btn copy-btn",onClick:Le=>pe(qe),title:"复制"},[x("img",{src:C(l3),alt:"复制",class:"action-icon"},null,8,Fin)],8,Lin),x("button",{class:"action-btn edit-btn",onClick:Le=>ue(qe),title:"编辑"},[x("img",{src:C(aC),alt:"编辑",class:"action-icon"},null,8,zin)],8,Uin)])])):qe.type==="ai"?(L(),G("div",$in,[x("div",jin,[x("img",{src:C(C_),alt:"AI",class:"ai-icon"},null,8,Hin)]),x("div",Win,[x("div",Vin,[qe.displayContent.length===0?(L(),G("div",qin,Se[18]||(Se[18]=[x("div",{class:"thinking-animation"},[x("span",{class:"dot"}),x("span",{class:"dot"}),x("span",{class:"dot"})],-1),x("span",null,"AI正在思考中...",-1)]))):(L(),G("div",{key:1,innerHTML:qe.displayContent,class:"ai-content"},null,8,Gin))]),cn(x("div",Kin,null,512),[[kr,!qe.isTyping&&qe.displayContent.length>0]]),cn(x("div",Yin,[x("div",Qin,[x("button",{class:"action-btn copy-btn",onClick:Le=>ie(qe),title:"复制"},[x("img",{src:C(l3),alt:"复制",class:"action-icon"},null,8,Xin)],8,Zin),x("button",{class:"action-btn regenerate-btn",onClick:Le=>Re($e),disabled:U.value,title:"重新生成"},[x("img",{src:C(Ej),alt:"重新生成",class:"action-icon"},null,8,ean)],8,Jin),x("button",{class:"action-btn voice-btn",onClick:Le=>ze(qe),title:Ne(qe.id)?"停止朗读":"语音朗读"},[x("img",{src:C(o7),alt:"语音朗读",class:"action-icon"},null,8,nan)],8,tan)]),x("div",ran,[x("button",{class:oe(["action-btn thumbs-up-btn",{active:qe.userFeedback==="like"}]),onClick:Le=>gt(qe),title:qe.userFeedback==="like"?"取消点赞":"点赞"},[x("img",{src:C(Qy),alt:"点赞",class:"action-icon"},null,8,ian)],10,oan),x("button",{class:oe(["action-btn thumbs-down-btn",{active:qe.userFeedback==="dislike"}]),onClick:Le=>Bt(qe),title:qe.userFeedback==="dislike"?"取消点踩":"点踩"},[x("img",{src:C(Zy),alt:"踩",class:"action-icon"},null,8,san)],10,aan)])],512),[[kr,!qe.isTyping&&qe.displayContent.length>0]])])])):xe("",!0)],2))),128))])):p.value==="step2"?(L(),G("div",lan,[s.value?(L(),G("div",uan,Se[19]||(Se[19]=[x("div",{class:"loading-content"},[x("div",{class:"loading-spinner"}),x("div",{class:"loading-text"},"正在加载培训大纲"),x("div",{class:"loading-subtitle"},"请稍候,正在为您准备数据...")],-1)]))):xe("",!0),x("div",{class:oe(["outline-container",{disabled:B.value||z.value}])},[B.value?(L(),G("div",can,Se[20]||(Se[20]=[x("div",{class:"generating-content"},[x("div",{class:"loading-spinner-small"}),x("p",null,"AI正在生成新大纲,请稍候...")],-1)]))):xe("",!0),z.value?(L(),G("div",dan,Se[21]||(Se[21]=[x("div",{class:"generating-content"},[x("div",{class:"loading-spinner-small"}),x("p",null,"AI正在生成考试题目,请稍候...")],-1)]))):xe("",!0),x("div",fan,[x("div",pan,[x("button",{class:"action-btn exam-btn",onClick:Se[5]||(Se[5]=(...qe)=>fe.generateExam&&fe.generateExam(...qe)),disabled:z.value||B.value||!W.value},[x("img",{src:C(Oke),alt:"考试",class:"action-icon"},null,8,gan),Se[22]||(Se[22]=bn(" 生成考题 ",-1))],8,han),x("button",{class:"action-btn",onClick:an,disabled:B.value||z.value},[x("img",{src:C(l3),alt:"复制",class:"action-icon"},null,8,man),Se[23]||(Se[23]=bn(" 复制 ",-1))],8,van),x("button",{class:"action-btn",onClick:Kt,disabled:B.value||z.value},[x("img",{src:C(Aq),alt:"下载",class:"action-icon"},null,8,ban),Se[24]||(Se[24]=bn(" 下载 ",-1))],8,yan)])]),x("div",wan,[N.value&&N.value.length>0?(L(),G("div",Aan,[(L(!0),G(Rt,null,un(N.value,(qe,$e)=>(L(),G(Rt,{key:$e},[qe&&qe.sections?(L(),G("div",Can,[x("div",xan,[x("h4",San,je(Lt(qe.title,$e)),1)]),x("div",Ean,[(L(!0),G(Rt,null,un(qe.sections,(Le,ot)=>(L(),G(Rt,{key:ot},[Le&&Le.title!=="内容要点"&&Le.title!=="概述"&&Le.title!=="内容详情"?(L(),G("div",kan,[x("div",Tan,[x("div",_an,je(Le.title),1)]),Le&&Le.subsections&&Le.subsections.length>0?(L(),G("div",Dan,[(L(!0),G(Rt,null,un(Le.subsections,(vt,Ut)=>(L(),G(Rt,{key:Ut},[vt&&vt.title!=="内容要点"&&vt.title!=="概述"&&vt.title!=="内容详情"&&!vt.title.includes("总章节数")&&!vt.title.includes("总小节数")&&!vt.title.includes("预计PPT页数")&&!vt.title.includes("预计讲解时长")?(L(),G("div",Ian,[x("div",Oan,[x("div",Man,je(vt.title),1)]),vt.subsubsections&&vt.subsubsections.length>0?(L(),G("div",Pan,[(L(!0),G(Rt,null,un(vt.subsubsections,(Qt,Gt)=>(L(),G("div",{key:Gt,class:"subsubsection-item"},[x("div",Nan,[x("div",Ran,je(Qt.title),1)])]))),128))])):xe("",!0)])):xe("",!0)],64))),128))])):xe("",!0)])):xe("",!0)],64))),128))])])):xe("",!0)],64))),128)),N.value.length<6?(L(),G("div",Ban,[x("button",{class:"add-chapter-btn",onClick:Se[6]||(Se[6]=qe=>tt("chapter",null))},[x("img",{src:C(X8),alt:"添加章节",class:"add-icon"},null,8,Lan),Se[25]||(Se[25]=x("span",null,"添加新章节",-1))])])):xe("",!0)])):W.value?(L(),G("div",Fan,[x("div",{class:"ai-outline-scrollable",innerHTML:W.value},null,8,Uan)])):(L(),G("div",zan,Se[26]||(Se[26]=[ki('<div class="outline-chapter" data-v-2df696e9><h4 data-v-2df696e9>第一章 安全生产基本原则</h4><div class="outline-section" data-v-2df696e9><div class="section-item" data-v-2df696e9>1.1 安全生产的重要性</div><div class="section-item" data-v-2df696e9>1.2 安全生产相关法规</div><div class="section-subsection" data-v-2df696e9><div class="subsection-item" data-v-2df696e9>1.2.1 《中华人民共和国安全生产法》解读</div><div class="subsection-item" data-v-2df696e9>1.2.2 建筑工程安全管理规范</div></div></div></div><div class="outline-chapter" data-v-2df696e9><h4 data-v-2df696e9>第二章 施工现场安全管理</h4><div class="outline-section" data-v-2df696e9><div class="section-item" data-v-2df696e9>2.1 安全责任制度</div><div class="section-item" data-v-2df696e9>2.2 安全教育培训</div><div class="section-item" data-v-2df696e9>2.3 安全检查与隐患排查</div></div></div><div class="outline-chapter" data-v-2df696e9><h4 data-v-2df696e9>第三章 常见安全隐患及防范措施</h4><div class="outline-section" data-v-2df696e9><div class="section-item" data-v-2df696e9>3.1 高空作业安全</div><div class="section-subsection" data-v-2df696e9><div class="subsection-item" data-v-2df696e9>3.1.1 脚手架搭设及使用安全规范</div></div><div class="section-item" data-v-2df696e9>3.2 用电安全</div><div class="section-item" data-v-2df696e9>3.3 消防安全</div></div></div><div class="outline-chapter" data-v-2df696e9><h4 data-v-2df696e9>第四章 安全事故案例分析</h4><div class="outline-section" data-v-2df696e9><div class="section-item" data-v-2df696e9>4.1 典型事故分析与教训</div></div></div><div class="outline-chapter" data-v-2df696e9><h4 data-v-2df696e9>第五章 总结与展望</h4></div>',5)])))]),x("div",$an,[x("button",{class:"action-btn regenerate-btn",onClick:Ht,disabled:B.value||z.value},[x("img",{src:C(Ej),alt:"重新生成",class:oe(["action-icon",{rotating:B.value}])},null,10,Han),bn(" "+je(B.value?"生成中...":"生成新大纲"),1)],8,jan),x("button",{class:"action-btn",onClick:pt,disabled:B.value||z.value},[Se[27]||(Se[27]=bn(" 选择PPT模版 ",-1)),x("img",{src:C(kj),alt:"箭头",class:"action-icon"},null,8,Van)],8,Wan)]),x("div",qan,[x("button",{class:oe(["action-btn like-btn",{active:Dt()==="like"}]),onClick:it,disabled:B.value||z.value},[x("img",{src:C(Qy),alt:"满意",class:"action-icon"},null,8,Kan)],10,Gan),x("button",{class:oe(["action-btn dislike-btn",{active:Dt()==="dislike"}]),onClick:de,disabled:B.value||z.value},[x("img",{src:C(Zy),alt:"不满意",class:"action-icon"},null,8,Qan)],10,Yan)])],2)])):xe("",!0),p.value==="step1"?(L(),G("div",Zan,[x("div",Xan,[x("div",Jan,[cn(x("input",{type:"text",placeholder:"请在此处发送消息",class:"message-input","onUpdate:modelValue":Se[7]||(Se[7]=qe=>d.value=qe),onKeyup:$r(he,["enter"]),disabled:c.value||U.value,maxlength:"2000"},null,40,esn),[[qr,d.value]]),x("button",{class:oe(["voice-btn",{recording:C(b)}]),onClick:Be,disabled:c.value||U.value},[x("div",nsn,[x("img",{src:C(rp),alt:"语音",class:"action-icon"},null,8,rsn),C(b)?(L(),G("div",osn)):xe("",!0)])],10,tsn),Se[28]||(Se[28]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:he,disabled:c.value||U.value||!d.value.trim()},[x("img",{src:d.value.trim()&&!c.value?C(ip):C(op),alt:"发送",class:"send-icon"},null,8,asn)],8,isn)])])])):xe("",!0)]),He(m2,{visible:D.value,message:_.value,duration:M.value,onClose:Se[8]||(Se[8]=qe=>D.value=!1)},null,8,["visible","message","duration"]),He(h0,{visible:v.value,title:H.value,message:F.value,onConfirm:Nn,onCancel:be,onClose:be},null,8,["visible","title","message"])]))}},lsn=Zo(ssn,[["__scopeId","data-v-2df696e9"]]),usn={class:"mobile-exam-workshop"},csn={class:"mobile-content"},dsn={key:0,class:"exam-workshop-main"},fsn={class:"config-section"},psn={class:"type-cards"},hsn={class:"type-cards-row"},gsn=["onClick"],vsn=["src","alt"],msn={class:"config-section"},ysn={class:"generation-methods"},bsn=["src"],wsn={class:"config-section"},Asn={class:"exam-config-container"},Csn={class:"config-main"},xsn={class:"config-form"},Ssn={class:"form-group"},Esn={class:"input-wrapper"},ksn=["disabled"],Tsn={class:"form-group"},_sn={class:"score-input"},Dsn=["disabled"],Isn={class:"question-types"},Osn={class:"type-header"},Msn={class:"type-name"},Psn={class:"progress-bar"},Nsn={class:"score-config"},Rsn={class:"config-item"},Bsn=["onUpdate:modelValue","onInput","disabled"],Lsn={class:"config-item"},Fsn=["onUpdate:modelValue","onInput","disabled"],Usn={class:"preview-panel"},zsn={class:"preview-header"},$sn=["src"],jsn={class:"preview-content"},Hsn={class:"preview-title"},Wsn={class:"question-breakdown"},Vsn={class:"breakdown-row"},qsn={class:"breakdown-left"},Gsn={class:"breakdown-right"},Ksn={class:"calculated-score-row"},Ysn={class:"calculated-value"},Qsn={class:"total-score-row"},Zsn={class:"total-value"},Xsn={class:"bottom-actions"},Jsn=["disabled"],eln=["disabled"],tln=["src"],nln={key:1,class:"generating-text"},rln={key:1,class:"exam-detail-main"},oln={class:"detail-header"},iln=["disabled"],aln=["disabled"],sln=["src"],lln={class:"dropdown-menu"},uln=["disabled"],cln=["disabled"],dln={class:"exam-info"},fln={class:"exam-title"},pln={class:"exam-stats"},hln={class:"total-score"},gln={class:"question-count"},vln={class:"generation-time"},mln={class:"question-sections"},yln={key:0,class:"question-section"},bln={class:"section-title"},wln={class:"section-score"},Aln={class:"section-controls"},Cln={class:"question-count-text"},xln=["src"],Sln={key:0,class:"section-content"},Eln={class:"question-header"},kln={class:"question-number"},Tln={class:"question-text"},_ln=["onClick","disabled"],Dln=["src"],Iln={class:"options"},Oln={class:"radio-wrapper"},Mln={key:0,class:"radio-dot"},Pln={class:"option-key"},Nln={class:"option-content"},Rln={class:"option-text"},Bln={key:1,class:"question-section"},Lln={class:"section-title"},Fln={class:"section-score"},Uln={class:"section-controls"},zln={class:"question-count-text"},$ln=["src"],jln={key:0,class:"section-content"},Hln={class:"question-header"},Wln={class:"question-number"},Vln={class:"question-text"},qln=["onClick","disabled"],Gln=["src"],Kln={class:"answer-section"},Yln={class:"answer-value"},Qln={key:2,class:"question-section"},Zln={class:"section-title"},Xln={class:"section-score"},Jln={class:"section-controls"},eun={class:"question-count-text"},tun=["src"],nun={key:0,class:"section-content"},run={class:"question-header"},oun={class:"question-number"},iun={class:"question-text"},aun=["onClick","disabled"],sun=["src"],lun={class:"options"},uun={class:"radio-wrapper"},cun={key:0,class:"radio-dot"},dun={class:"option-key"},fun={class:"option-content"},pun={class:"option-text"},hun={class:"answer-section"},gun={class:"answer-value"},vun={key:3,class:"question-section"},mun={class:"section-title"},yun={class:"section-score"},bun={class:"section-controls"},wun={class:"question-count-text"},Aun=["src"],Cun={key:0,class:"section-content"},xun={class:"question-header"},Sun={class:"question-number"},Eun={class:"question-text"},kun=["onClick","disabled"],Tun=["src"],_un={key:0,class:"answer-outline"},Dun={class:"outline-section"},Iun={class:"outline-section"},Oun={__name:"m-ExamWorkshop",setup(e){const t=Yl(),n=()=>{t.go(-1)},r=()=>{h.value||(o.value=!0)},o=K(!1),i=K(!1),a=K(""),s=(it,de=2e3)=>{a.value=it,i.value=!0,de>0&&setTimeout(()=>{i.value=!1},de)},l=()=>{i.value=!1},u=K([]),d=K(0),c=K(!1);qn(async()=>{R={questionTypes:JSON.parse(JSON.stringify(p.value)),totalScore:A.value,selectedProjectType:b.value,examName:w.value},console.log("初始配置已保存:",R),document.addEventListener("click",ue),console.log("🚀 移动端考试工坊页面初始化完成")}),yl(()=>{document.removeEventListener("click",ue)});const f={bridge:{name:"桥梁",icon:hke},tunnel:{name:"隧道",icon:gke},equipment:{name:"特种设备",icon:vke},"gas-station":{name:"加油站",icon:mke},highway:{name:"高速运营公路",icon:xj},comprehensive:{name:"综合",icon:yke}},p=K([{name:"单选题",scorePerQuestion:5,questionCount:5,romanNumeral:"一"},{name:"判断题",scorePerQuestion:3,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:8,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}]),v=K(!1),h=K(!1);K(!1);const g=K(0),y=K(!1),m=K("ai"),b=K("bridge"),w=K("桥梁工程施工技术考核"),A=K(100),S=K(""),E=K(null),D=K(""),_=K(null),M=K({single:!0,judge:!0,multiple:!0,short:!0}),O=K({}),k=K({title:"桥梁工程施工技术考核",totalScore:100,totalQuestions:37,singleChoice:{scorePerQuestion:2,totalScore:30,count:15,questions:[]},judge:{scorePerQuestion:2,totalScore:20,count:10,questions:[]},multiple:{scorePerQuestion:3,totalScore:30,count:10,questions:[]},short:{scorePerQuestion:10,totalScore:20,count:2,questions:[]}});let R=null;const N=ee(()=>p.value.reduce((it,de)=>it+de.scorePerQuestion*de.questionCount,0)),W=it=>{if(!it)return"新对话";const de=it.replace(/<[^>]*>/g,"").trim();return de.length>30?de.substring(0,30)+"...":de},B=()=>{console.log("新建考试工坊任务"),o.value=!1,m.value="ai",b.value="bridge",w.value="桥梁工程施工技术考核",A.value=100,v.value=!1,E.value=null,D.value="",g.value=0,R&&(p.value=JSON.parse(JSON.stringify(R.questionTypes)),A.value=R.totalScore,b.value=R.selectedProjectType,w.value=R.examName),u.value.forEach(it=>{it.isActive=!1})},z=async it=>{if(!it.isActive)if(console.log("点击移动端考试工坊历史记录:",it),u.value.forEach(de=>{de.isActive=de.id===it.id}),o.value=!1,g.value=it.id,S.value=it.time,it.rawData&&it.rawData.content)try{const de=JSON.parse(it.rawData.content);k.value=de,v.value=!0}catch(de){console.error("解析历史试卷数据失败:",de),v.value=!0}else v.value=!0},j=async(it,de)=>{try{console.log("开始删除移动端历史记录:",it);const tt=await zn.deleteHistoryRecord({ai_conversation_id:it.id});tt.statusCode===200?(u.value.splice(de,1),d.value=Math.max(0,d.value-1),it.isActive&&(console.log("删除激活的历史记录,执行新建任务"),B()),console.log("✅ 移动端历史记录删除成功"),s("删除成功")):console.error("❌ 删除移动端历史记录失败:",tt)}catch(tt){console.error("❌ 删除移动端历史记录失败:",tt)}},q=it=>{if(!it)return null;if(typeof it=="number"){const de=it<1e12?it*1e3:it;return new Date(de)}if(typeof it=="string"){let de=new Date(it);if(!isNaN(de))return de;const tt=it.replace(/-/g,"/").replace("T"," ");if(de=new Date(tt),!isNaN(de))return de}return new Date(it)},Y=it=>{const de=q(it);if(!de||isNaN(de))return"未知时间";const tt=new Date,ft=de.toDateString()===tt.toDateString(),Mt=new Date(tt.getFullYear(),tt.getMonth(),tt.getDate()-1),Tn=de.toDateString()===Mt.toDateString();if(ft)return de.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Tn)return"昨天 "+de.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const Nn=de.getMonth()+1,We=de.getDate(),ke=de.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Nn}月${We}日 ${ke}`},U=async()=>{try{console.log("📋 开始获取移动端考试工坊历史记录列表..."),c.value=!0;const it=performance.now(),de=await zn.getHistoryRecord({ai_conversation_id:0,business_type:3}),tt=performance.now();console.log("📋 移动端考试工坊历史记录API调用耗时: "+(tt-it).toFixed(2)+"ms"),console.log("📋 移动端历史记录列表响应:",de),de.statusCode===200?(d.value=de.total||0,u.value=de.data.map(ft=>({id:ft.id,title:W(ft.content),time:Y(ft.updated_at),businessType:ft.business_type,isActive:!1,rawData:ft})),g.value&&u.value.forEach(ft=>{ft.isActive=ft.id===g.value}),console.log("✅ 移动端考试工坊历史记录列表已设置: "+u.value.length+"条记录,总数: "+d.value)):console.error("❌ 获取移动端历史记录列表失败:",de.statusCode)}catch(it){console.error("❌ 获取移动端历史记录列表失败:",it)}finally{c.value=!1}},F=it=>{m.value=it,console.log("选择功能:",it)},H=it=>{b.value=it,console.log("选择工程类型:",f[it].name);const de=f[it].name;w.value=de+"工程施工技术考核",k.value&&(k.value.title=w.value)},re=()=>{w.value.length>32&&(w.value=w.value.slice(0,32))},X=()=>{A.value>1e3&&(A.value=1e3,console.warn("试卷总分不能超过1000分")),A.value<1&&(A.value=1)},te=it=>{it.scorePerQuestion>99&&(it.scorePerQuestion=99,console.warn(`${it.name}每题分数不能超过99分`)),it.scorePerQuestion<1&&(it.scorePerQuestion=1)},Z=it=>{it.questionCount>99&&(it.questionCount=99,console.warn(`${it.name}题目数量不能超过99题`)),it.questionCount<1&&(it.questionCount=1)},le=()=>{const it=f[b.value].name;w.value=it+"工程施工技术考核",A.value=100,p.value=[{name:"单选题",scorePerQuestion:2,questionCount:8,romanNumeral:"一"},{name:"判断题",scorePerQuestion:2,questionCount:5,romanNumeral:"二"},{name:"多选题",scorePerQuestion:3,questionCount:5,romanNumeral:"三"},{name:"简答题",scorePerQuestion:10,questionCount:2,romanNumeral:"四"}],console.log("清除设置")},ve=async()=>{if(!w.value.trim()){console.warn("请输入试卷名称");return}if(w.value.trim().length===0){console.warn("试卷名称不能为空");return}if(A.value>1e3){console.warn("试卷总分不能超过1000分");return}for(const de of p.value){if(de.scorePerQuestion>99){console.warn(`${de.name}每题分数不能超过99分`);return}if(de.questionCount>99){console.warn(`${de.name}题目数量不能超过99题`);return}}if(p.value.reduce((de,tt)=>de+tt.scorePerQuestion*tt.questionCount,0)!==A.value){s("总分不匹配!",3e3);return}console.log("开始生成试卷:",{function:m.value,projectType:f[b.value].name,examName:w.value,totalScore:A.value,questionTypes:p.value,pptContent:D.value});try{h.value=!0;const de=m.value==="ppt"?"ppt":"ai",tt=await Pe(de);console.log("发送给AI的考试生成提示词:",tt);const ft=await zn.sendDeepseekMessage({business_type:3,message:tt,exam_name:w.value,ai_conversation_id:g.value});if(ft.statusCode===200){const Mt=ft.data.reply,Tn=ft.data.ai_conversation_id;console.log("AI生成的考试试卷:",Mt),console.log("AI对话ID:",Tn),g.value=Tn;const Nn=Ae(Mt);k.value=Nn,k.value.title=w.value,k.value.totalScore=A.value,S.value=new Date().toLocaleString("zh-CN"),console.log("✅ 试卷已通过AI接口保存到数据库"),v.value=!0,console.log("✅ 移动端试卷生成完成!")}else throw new Error("AI接口调用失败")}catch(de){console.error("生成试卷失败:",de)}finally{h.value=!1}},Pe=async(it="ai")=>{const de=p.value.map(ft=>({name:ft.name,romanNumeral:ft.romanNumeral,questionCount:Number(ft.questionCount)||0,scorePerQuestion:Number(ft.scorePerQuestion)||0})),tt={mode:it,client:"mobile",projectType:f[b.value]?.name||"",examTitle:w.value,totalScore:A.value,questionTypes:de,pptContent:D.value||""};try{const ft=await zn.buildExamPrompt(tt);if(!ft?.data?.prompt)throw new Error(ft?.msg||"提示词构建失败");return ft.data.prompt}catch(ft){throw console.error("获取移动端提示词失败:",ft),ft}},Ae=it=>{try{const de=it.match(/\{[\s\S]*\}/);if(de){const tt=JSON.parse(de[0]);return he(tt),tt}else throw new Error("未找到有效的JSON数据")}catch(de){return console.error("解析AI回复失败:",de),Ee()}},he=it=>{it.singleChoice&&it.singleChoice.questions&&it.singleChoice.questions.forEach(de=>{de.selectedAnswer||(de.selectedAnswer=de.options&&de.options.length>0?de.options[0].key:"A")}),it.judge&&it.judge.questions&&it.judge.questions.forEach(de=>{de.selectedAnswer||(de.selectedAnswer=Math.random()>.5?"正确":"错误")}),it.multiple&&it.multiple.questions&&it.multiple.questions.forEach(de=>{(!de.selectedAnswers||!Array.isArray(de.selectedAnswers))&&(de.selectedAnswers=de.options&&de.options.length>1?[de.options[0].key,de.options[1].key]:[])}),it.short&&it.short.questions&&it.short.questions.forEach(de=>{de.outline||(de.outline={keyFactors:"请参考相关教材和标准规范",measures:"请结合实际工程案例进行解答"})})},Ee=()=>({title:w.value,totalScore:A.value,totalQuestions:p.value.reduce((it,de)=>it+de.questionCount,0),singleChoice:{scorePerQuestion:p.value[0].scorePerQuestion,totalScore:p.value[0].scorePerQuestion*p.value[0].questionCount,count:p.value[0].questionCount,questions:[]},judge:{scorePerQuestion:p.value[1].scorePerQuestion,totalScore:p.value[1].scorePerQuestion*p.value[1].questionCount,count:p.value[1].questionCount,questions:[]},multiple:{scorePerQuestion:p.value[2].scorePerQuestion,totalScore:p.value[2].scorePerQuestion*p.value[2].questionCount,count:p.value[2].questionCount,questions:[]},short:{scorePerQuestion:p.value[3].scorePerQuestion,totalScore:p.value[3].scorePerQuestion*p.value[3].questionCount,count:p.value[3].questionCount,questions:[]}}),Q=()=>{v.value=!1},me=it=>{M.value[it]=!M.value[it]},De=async(it,de)=>{try{console.log(`刷新${it}类型第${de+1}题`);const tt=`${it}_${de}`;O.value[tt]=!0;const ft=Lt(it,de),Mt=await zn.reProduceSingleQuestion({message:ft});if(Mt.statusCode===200){const Tn=Mt.data.reply;console.log("AI重新生成的题目:",Tn);const Nn=pt(Tn,it);if(console.log("解析后的新题目:",Nn),Nn)Dt(it,de,Nn),console.log("准备保存到后端,对话ID:",g.value),await dt(it,de,Nn),s("题目重新生成成功!"),await U(),g.value>0&&(u.value.forEach(We=>{We.isActive=We.id===g.value}),console.log("设置最新历史记录为激活状态,conversationId:",g.value));else throw new Error("解析新题目失败")}else throw new Error("AI接口调用失败")}catch(tt){console.error("刷新题目失败:",tt),s("重新生成题目失败,请重试")}finally{setTimeout(()=>{const tt=`${it}_${de}`;O.value[tt]=!1},1e3)}},pe=()=>{h.value||(y.value=!y.value)},ie=()=>{y.value=!1},ue=it=>{it.target.closest(".download-dropdown")||(y.value=!1)},Be=async()=>{try{ie(),h.value=!0,console.log("开始导出Word格式试卷(有答案)..."),await Fe(!0)}catch(it){console.error("导出考试文件失败:",it),s("导出失败,请重试")}finally{h.value=!1}},Me=async()=>{try{ie(),h.value=!0,console.log("开始导出Word格式试卷(无答案)..."),await Fe(!1)}catch(it){console.error("导出考试文件失败:",it),s("导出失败,请重试")}finally{h.value=!1}},Fe=async(it=!0)=>{try{const de=ze(k.value,it),tt=new Blob([de],{type:"application/msword"}),ft=URL.createObjectURL(tt),Mt=document.createElement("a"),Tn=it?`${k.value.title}_有答案_${S.value.replace(/[:\s]/g,"_")}.doc`:`${k.value.title}_无答案_${S.value.replace(/[:\s]/g,"_")}.doc`;Mt.setAttribute("href",ft),Mt.setAttribute("download",Tn),Mt.style.visibility="hidden",document.body.appendChild(Mt),Mt.click(),document.body.removeChild(Mt),s(`导出成功${it?"(含答案)":"(不含答案)"}`)}catch(de){console.error("模拟Word导出失败:",de),s("Word导出失败,请稍后重试")}},ze=(it,de=!0)=>{const tt=k.value;let ft=`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${tt.title||"试卷"}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotPromptForConvert/>
- <w:DoNotShowRevisions/>
- <w:DoNotPrintRevisions/>
- <w:DoNotShowComments/>
- <w:DoNotShowInsertionsAndDeletions/>
- <w:DoNotShowPropertyChanges/>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 14px;
- }
- .exam-title {
- font-size: 24px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- }
- .exam-info {
- font-size: 14px;
- color: #666;
- margin-bottom: 14px;
- }
- .section {
- margin-bottom: 14px;
- }
- .section-title {
- font-size: 18px;
- font-weight: bold;
- margin-bottom: 14px;
- color: #000;
- border-bottom: 2px solid #3e7bfa;
- padding-bottom: 5px;
- }
- .question {
- margin-bottom: 14px;
- padding: 10px;
- background-color: #f9f9f9;
- border-left: 4px solid #3e7bfa;
- }
- .question-header {
- display: flex;
- align-items: flex-start;
- gap: 8px;
- margin-bottom: 14px;
- }
- .question-number {
- font-weight: bold;
- color: #3e7bfa;
- flex-shrink: 0;
- }
- .question-text {
- flex: 1;
- }
- .options {
- margin-left: 12px;
- }
- .option {
- margin-bottom: 5px;
- }
- .answer {
- margin-top: 10px;
- padding: 8px;
- background: #e8f4fd;
- border-left: 3px solid #3e7bfa;
- font-weight: bold;
- color: #0066cc;
- }
- .outline-section {
- margin: 10px 0;
- padding: 8px;
- background: #f0f8ff;
- border-radius: 4px;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="exam-title">${tt.title||"考试试卷"}</div>
- <div class="exam-info">
- 总分:${tt.totalScore||0}分 | 总题数:${tt.totalQuestions||0}题 | 生成时间:${S.value}
- </div>
- </div>`;return tt.singleChoice&&tt.singleChoice.questions.length>0&&(ft+=`
- <div class="section">
- <div class="section-title">一、单选题(${tt.singleChoice.count}题,每题${tt.singleChoice.scorePerQuestion}分,共${tt.singleChoice.totalScore}分)</div>`,tt.singleChoice.questions.forEach((Mt,Tn)=>{ft+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Tn+1}.</span>
- <span class="question-text">${Mt.text}</span>
- </div>
- <div class="options">`,Mt.options.forEach(Nn=>{ft+=`
- <div class="option">${Nn.key}. ${Nn.text}</div>`}),ft+=`
- </div>
- ${de?`<div class="answer">正确答案:${Mt.selectedAnswer}</div>`:""}
- </div>`}),ft+=`
- </div>`),tt.judge&&tt.judge.questions.length>0&&(ft+=`
- <div class="section">
- <div class="section-title">二、判断题(${tt.judge.count}题,每题${tt.judge.scorePerQuestion}分,共${tt.judge.totalScore}分)</div>`,tt.judge.questions.forEach((Mt,Tn)=>{ft+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Tn+1}.</span>
- <span class="question-text">${Mt.text}</span>
- </div>
- ${de?`<div class="answer">正确答案:${Mt.selectedAnswer}</div>`:""}
- </div>`}),ft+=`
- </div>`),tt.multiple&&tt.multiple.questions.length>0&&(ft+=`
- <div class="section">
- <div class="section-title">三、多选题(${tt.multiple.count}题,每题${tt.multiple.scorePerQuestion}分,共${tt.multiple.totalScore}分)</div>`,tt.multiple.questions.forEach((Mt,Tn)=>{ft+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Tn+1}.</span>
- <span class="question-text">${Mt.text}</span>
- </div>
- <div class="options">`,Mt.options.forEach(Nn=>{ft+=`
- <div class="option">${Nn.key}. ${Nn.text}</div>`}),ft+=`
- </div>
- ${de?`<div class="answer">正确答案:${(Mt.selectedAnswers||[]).join(", ")}</div>`:""}
- </div>`}),ft+=`
- </div>`),tt.short&&tt.short.questions.length>0&&(ft+=`
- <div class="section">
- <div class="section-title">四、简答题(${tt.short.count}题,每题${tt.short.scorePerQuestion}分,共${tt.short.totalScore}分)</div>`,tt.short.questions.forEach((Mt,Tn)=>{ft+=`
- <div class="question">
- <div class="question-header">
- <span class="question-number">${Tn+1}.</span>
- <span class="question-text">${Mt.text}</span>
- </div>`,Mt.outline&&de&&(ft+=`
- <div class="outline-section">
- <strong>关键要点:</strong>${Bt(Mt.outline.keyFactors)}
- </div>
- <div class="outline-section">
- <strong>具体措施:</strong>${Bt(Mt.outline.measures)}
- </div>`),ft+=`
- </div>`}),ft+=`
- </div>`),ft+=`
- </body>
- </html>`,ft},Ne=async it=>{const de=it.target.files[0];if(!de)return;const tt=20*1024*1024;if(de.size>tt){console.error("文件大小不能超过20MB");return}if(!["application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"].includes(de.type)){console.error("请选择PPT文件(.ppt/.pptx)");return}try{E.value={name:de.name,size:de.size,icon:"📋"};const Mt=await Re(de);D.value=Mt;const Tn=de.name.replace(/\.[^/.]+$/,"");w.value=Tn+"培训考核",console.log("✅ PPT文件上传成功:",de.name)}catch(Mt){console.error("PPT文件处理失败:",Mt),E.value=null}},Re=async it=>new Promise((de,tt)=>{const ft=new FileReader;ft.onload=async Mt=>{try{console.log("开始解析PPT文件...");const Tn=Mt.target.result,Nn=await gt(Tn);de(Nn)}catch(Tn){console.error("PPT解析失败:",Tn),tt(Tn)}},ft.onerror=()=>{tt(new Error("文件读取失败"))},ft.readAsArrayBuffer(it)}),gt=async it=>"提取的文本内容:PPT培训课件主要包含以下内容:1. 安全培训概述- 培训目标和意义- 培训对象和要求- 培训计划和安排2. 基础知识- 安全规章制度- 危险源识别- 应急处理方法3. 操作技能- 标准化操作流程- 安全操作规范- 事故预防措施4. 考核要求- 理论知识考核- 实操技能考核- 综合评估标准此PPT内容涵盖了安全培训的各个方面,适合制作综合性的考试题目。",Bt=it=>it?it.toString().replace(/[\[\]]/g,"").replace(/[""]/g,"").replace(/['']/g,"").trim():"",Lt=(it,de)=>{const tt=f[b.value].name,ft=an(it),Mt=Kt(it),Tn=Ht(it,de);let Nn=`请基于以下${tt}工程的${ft}题目,重新生成一道相似主题的题目,要求如下:
- 当前题目参考:
- ${JSON.stringify(Tn,null,2)}
- 题目类型:${ft}
- 每题分值:${Mt}分
- 题目序号:第${de+1}题
- 请严格按照以下JSON格式返回,不要包含任何其他文字:
- `;return it==="single"?Nn+=`{
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A"},
- {"key": "B", "text": "选项B"},
- {"key": "C", "text": "选项C"},
- {"key": "D", "text": "选项D"}
- ],
- "selectedAnswer": "A"
- }`:it==="judge"?Nn+=`{
- "text": "题目内容",
- "selectedAnswer": "正确"
- }`:it==="multiple"?Nn+=`{
- "text": "题目内容",
- "options": [
- {"key": "A", "text": "选项A"},
- {"key": "B", "text": "选项B"},
- {"key": "C", "text": "选项C"},
- {"key": "D", "text": "选项D"}
- ],
- "selectedAnswers": ["A", "B"]
- }`:it==="short"&&(Nn+=`{
- "text": "题目内容",
- "outline": {
- "keyFactors": "关键要点内容",
- "measures": "具体措施内容"
- }
- }`),Nn},an=it=>({single:"单选题",judge:"判断题",multiple:"多选题",short:"简答题"})[it]||it,Kt=it=>k.value[it]?k.value[it].scorePerQuestion:5,Ht=(it,de)=>k.value[it]&&k.value[it].questions?k.value[it].questions[de]:null,pt=(it,de)=>{try{console.log("AI回复内容:",it),console.log("题目类型:",de);const tt=it.match(/\{[\s\S]*\}/);if(tt){const ft=JSON.parse(tt[0]);return console.log("解析后的题目数据:",ft),de==="short"&&ft.outline&&ft.outline.keyFactors&&(console.log("简答题keyFactors原始值:",ft.outline.keyFactors),Array.isArray(ft.outline.keyFactors)&&(ft.outline.keyFactors=ft.outline.keyFactors.join(" "),console.log("转换后的keyFactors:",ft.outline.keyFactors))),ft}else return console.error("未找到有效的JSON数据"),null}catch(tt){return console.error("解析AI回复失败:",tt),null}},Dt=(it,de,tt)=>{let ft;it==="single"?(ft={...tt},(!ft.selectedAnswer||ft.selectedAnswer==="")&&(ft.selectedAnswer=ft.options&&ft.options.length>0?ft.options[0].key:"A"),k.value.singleChoice.questions[de]=ft):it==="judge"?(ft={...tt},(!ft.selectedAnswer||ft.selectedAnswer==="")&&(ft.selectedAnswer=Math.random()>.5?"正确":"错误"),k.value.judge.questions[de]=ft):it==="multiple"?(ft={...tt},(!ft.selectedAnswers||!Array.isArray(ft.selectedAnswers))&&(ft.selectedAnswers=ft.options&&ft.options.length>1?[ft.options[0].key,ft.options[1].key]:[]),k.value.multiple.questions[de]=ft):it==="short"&&(ft={...tt},ft.outline||(ft.outline={keyFactors:"请参考相关教材和标准规范",measures:"请结合实际工程案例进行解答"}),k.value.short.questions[de]=ft),console.log(`更新${it}第${de+1}题:`,ft)},dt=async(it,de,tt)=>{console.log("对话id",g.value);try{if(!g.value){console.warn("没有找到对话ID,跳过保存");return}const ft=JSON.stringify(k.value);console.log("保存到 /re_modify_question 的内容:",ft);const Mt=await zn.reModifyQuestion({ai_conversation_id:g.value,content:ft});Mt.statusCode===200?console.log("修改已保存到后端"):console.error("保存到后端失败:",Mt)}catch(ft){console.error("保存到后端失败:",ft)}};return qn(async()=>{try{console.log("🚀 移动端考试工坊页面初始化完成")}catch(it){console.error("❌ 移动端考试工坊页面初始化失败:",it)}}),St(o,async it=>{it&&u.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await U())}),(it,de)=>(L(),G("div",usn,[He(y2,{title:"考试工坊",onBack:n,onMenu:r}),x("div",csn,[He(ZC,{visible:!h.value&&o.value,title:"历史记录",historyData:u.value,loading:c.value,onClose:de[0]||(de[0]=tt=>o.value=!1),onCreateNewTask:B,onHandleHistoryItem:z,onDeleteHistoryItem:j},null,8,["visible","historyData","loading"]),He(m2,{visible:i.value,message:a.value,onClose:l},null,8,["visible","message"]),v.value?xe("",!0):(L(),G("div",dsn,[x("div",fsn,[de[9]||(de[9]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"1"),x("h3",null,"选择试卷类型")],-1)),x("div",psn,[x("div",hsn,[(L(),G(Rt,null,un(f,(tt,ft)=>x("div",{key:ft,class:oe(["type-card",{active:b.value===ft}]),onClick:Mt=>h.value||E.value?null:H(ft),style:rn({cursor:h.value||E.value?"not-allowed":"pointer",opacity:h.value||E.value?"0.5":"1"})},[x("img",{src:tt.icon,alt:tt.name,class:"type-icon"},null,8,vsn),x("span",null,je(tt.name),1)],14,gsn)),64))])])]),x("div",msn,[de[11]||(de[11]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"2"),x("h3",null,"选择生成方式")],-1)),x("div",ysn,[x("div",{class:oe(["method-card",{active:m.value==="ai"}]),onClick:de[1]||(de[1]=tt=>h.value||E.value?null:F("ai")),style:rn({cursor:h.value||E.value?"not-allowed":"pointer",opacity:h.value||E.value?"0.5":"1"})},[x("img",{src:C(xj),alt:"智能生成试卷",class:"method-icon"},null,8,bsn),de[10]||(de[10]=x("div",{class:"method-content"},[x("h4",null,"智能生成试卷"),x("p",null,"基于AI技术,根据所选类型自动生成完整试卷")],-1))],6)])]),x("div",wsn,[de[24]||(de[24]=x("div",{class:"config-header"},[x("div",{class:"step-number"},"3"),x("h3",null,"试卷配置")],-1)),x("div",Asn,[x("div",Csn,[x("div",xsn,[x("div",Ssn,[de[12]||(de[12]=x("label",null,"试卷名称",-1)),x("div",Esn,[cn(x("input",{"onUpdate:modelValue":de[2]||(de[2]=tt=>w.value=tt),type:"text",placeholder:"请输入试卷名称",class:"config-input",maxlength:"32",onInput:re,disabled:h.value||E.value},null,40,ksn),[[qr,w.value]]),x("span",{class:oe(["char-count",{warning:w.value.length>=18}])},je(w.value.length)+"/32",3)])]),x("div",Tsn,[de[14]||(de[14]=x("label",null,"试卷总分",-1)),x("div",_sn,[cn(x("input",{"onUpdate:modelValue":de[3]||(de[3]=tt=>A.value=tt),type:"number",class:"config-input",min:"1",max:"1000",onInput:X,disabled:h.value||E.value},null,40,Dsn),[[qr,A.value]]),de[13]||(de[13]=x("span",{class:"unit"},"分",-1))])])]),de[19]||(de[19]=x("div",{class:"question-types-title"},"题型选择与分数分配",-1)),x("div",Isn,[(L(!0),G(Rt,null,un(p.value,(tt,ft)=>(L(),G("div",{class:"question-type",key:ft},[x("div",Osn,[x("span",Msn,je(tt.name),1),x("div",Psn,[x("div",{class:"progress-fill",style:rn({width:tt.scorePerQuestion*tt.questionCount/A.value*100+"%"})},null,4)])]),x("div",Nsn,[x("div",Rsn,[de[15]||(de[15]=x("span",null,"每题",-1)),cn(x("input",{"onUpdate:modelValue":Mt=>tt.scorePerQuestion=Mt,type:"number",class:"score-input-field",min:"1",max:"99",onInput:Mt=>te(tt),disabled:h.value||E.value},null,40,Bsn),[[qr,tt.scorePerQuestion]]),de[16]||(de[16]=x("span",null,"分",-1))]),x("div",Lsn,[de[17]||(de[17]=x("span",null,"一共",-1)),cn(x("input",{"onUpdate:modelValue":Mt=>tt.questionCount=Mt,type:"number",class:"count-input-field",min:"1",max:"99",onInput:Mt=>Z(tt),disabled:h.value||E.value},null,40,Fsn),[[qr,tt.questionCount]]),de[18]||(de[18]=x("span",null,"题",-1))])])]))),128))])]),x("div",Usn,[x("div",zsn,[x("img",{src:C(bke),alt:"预览",class:"preview-icon"},null,8,$sn),de[20]||(de[20]=x("h3",null,"预览",-1))]),x("div",jsn,[x("h4",Hsn,je(w.value||"试卷名称"),1),x("div",Wsn,[(L(!0),G(Rt,null,un(p.value,(tt,ft)=>(L(),G("div",{class:"breakdown-item",key:ft},[x("div",Vsn,[x("span",qsn,je(tt.romanNumeral)+"、"+je(tt.name)+" (每题"+je(tt.scorePerQuestion)+"分,共"+je(tt.scorePerQuestion*tt.questionCount)+"分)",1),x("span",Gsn,je(tt.questionCount)+"题",1)])]))),128))]),de[23]||(de[23]=x("div",{class:"divider"},null,-1)),x("div",Ksn,[de[21]||(de[21]=x("span",{class:"calculated-label"},"配置总分",-1)),x("span",Ysn,je(N.value)+"分",1)]),x("div",Qsn,[de[22]||(de[22]=x("span",{class:"total-label"},"试卷总分",-1)),x("span",Zsn,je(A.value)+"分",1)])])])]),x("div",Xsn,[x("button",{class:"clear-btn",onClick:le,disabled:h.value||E.value}," 一键清除 ",8,Jsn),x("button",{class:"generate-btn",onClick:ve,disabled:h.value},[h.value?(L(),G("span",nln,"生成中...")):(L(),G("img",{key:0,src:C(wke),alt:"生成试卷",class:"generate-icon"},null,8,tln))],8,eln)])])])),v.value?(L(),G("div",rln,[x("div",oln,[x("button",{class:"back-btn",onClick:Q,disabled:h.value},de[25]||(de[25]=[x("span",{class:"back-arrow"},"←",-1),bn(" 返回修改 ",-1)]),8,iln),x("div",{class:oe(["download-dropdown",{disabled:h.value,show:y.value}]),onClick:de[4]||(de[4]=en(()=>{},["stop"]))},[x("button",{class:"download-btn",disabled:h.value,onClick:pe},[x("img",{src:C(i7),alt:"下载Word",class:"download-icon"},null,8,sln)],8,aln),x("div",lln,[x("div",{class:"dropdown-item",onClick:Be,disabled:h.value},de[26]||(de[26]=[x("span",{class:"item-text"},"有答案",-1)]),8,uln),x("div",{class:"dropdown-item",onClick:Me,disabled:h.value},de[27]||(de[27]=[x("span",{class:"item-text"},"无答案",-1)]),8,cln)])],2)]),x("div",dln,[x("h1",fln,je(k.value.title),1),x("div",pln,[x("span",hln,"总分: "+je(k.value.totalScore)+"分",1),x("span",gln,"题量: "+je(k.value.totalQuestions)+"题",1)]),x("div",vln,"生成时间: "+je(S.value),1)]),x("div",mln,[k.value.singleChoice&&k.value.singleChoice.questions.length>0?(L(),G("div",yln,[x("div",{class:"section-header",onClick:de[5]||(de[5]=tt=>h.value?null:me("single")),style:rn({cursor:h.value?"not-allowed":"pointer"})},[x("div",bln,[de[28]||(de[28]=x("span",{class:"section-number"},"一",-1)),de[29]||(de[29]=x("span",{class:"section-name"},"单选题",-1)),x("span",wln,"(每题"+je(k.value.singleChoice.scorePerQuestion)+"分, 共"+je(k.value.singleChoice.totalScore)+"分)",1)]),x("div",Aln,[x("span",Cln,je(k.value.singleChoice.count)+"题",1),x("img",{src:C(Ih),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!M.value.single}])},null,10,xln)])],4),M.value.single?(L(),G("div",Sln,[(L(!0),G(Rt,null,un(k.value.singleChoice.questions,(tt,ft)=>(L(),G("div",{key:ft,class:"question-item"},[x("div",Eln,[x("span",kln,je(ft+1)+".",1),x("span",Tln,je(tt.text),1),x("button",{class:"refresh-btn",onClick:Mt=>De("single",ft),disabled:h.value},[x("img",{src:C(Oh),alt:"刷新",class:oe(["refresh-icon",{rotating:O.value["single_"+ft]}])},null,10,Dln)],8,_ln)]),x("div",Iln,[(L(!0),G(Rt,null,un(tt.options,Mt=>(L(),G("div",{key:Mt.key,class:"option"},[x("div",Oln,[x("div",{class:oe(["radio-circle",{selected:tt.selectedAnswer===Mt.key}])},[tt.selectedAnswer===Mt.key?(L(),G("div",Mln)):xe("",!0)],2)]),x("span",Pln,je(Mt.key)+".",1),x("div",Nln,[x("span",Rln,je(Mt.text),1)])]))),128))])]))),128))])):xe("",!0)])):xe("",!0),k.value.judge&&k.value.judge.questions.length>0?(L(),G("div",Bln,[x("div",{class:"section-header",onClick:de[6]||(de[6]=tt=>h.value?null:me("judge")),style:rn({cursor:h.value?"not-allowed":"pointer"})},[x("div",Lln,[de[30]||(de[30]=x("span",{class:"section-number"},"二",-1)),de[31]||(de[31]=x("span",{class:"section-name"},"判断题",-1)),x("span",Fln,"(每题"+je(k.value.judge.scorePerQuestion)+"分, 共"+je(k.value.judge.totalScore)+"分)",1)]),x("div",Uln,[x("span",zln,je(k.value.judge.count)+"题",1),x("img",{src:C(Ih),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!M.value.judge}])},null,10,$ln)])],4),M.value.judge?(L(),G("div",jln,[(L(!0),G(Rt,null,un(k.value.judge.questions,(tt,ft)=>(L(),G("div",{key:ft,class:"question-item"},[x("div",Hln,[x("span",Wln,je(ft+1)+".",1),x("span",Vln,je(tt.text),1),x("button",{class:"refresh-btn",onClick:Mt=>De("judge",ft),disabled:h.value},[x("img",{src:C(Oh),alt:"刷新",class:oe(["refresh-icon",{rotating:O.value["judge_"+ft]}])},null,10,Gln)],8,qln)]),x("div",Kln,[de[32]||(de[32]=x("span",{class:"answer-label"},"正确答案:",-1)),x("span",Yln,je(tt.selectedAnswer),1)])]))),128))])):xe("",!0)])):xe("",!0),k.value.multiple&&k.value.multiple.questions.length>0?(L(),G("div",Qln,[x("div",{class:"section-header",onClick:de[7]||(de[7]=tt=>h.value?null:me("multiple")),style:rn({cursor:h.value?"not-allowed":"pointer"})},[x("div",Zln,[de[33]||(de[33]=x("span",{class:"section-number"},"三",-1)),de[34]||(de[34]=x("span",{class:"section-name"},"多选题",-1)),x("span",Xln,"(每题"+je(k.value.multiple.scorePerQuestion)+"分, 共"+je(k.value.multiple.totalScore)+"分)",1)]),x("div",Jln,[x("span",eun,je(k.value.multiple.count)+"题",1),x("img",{src:C(Ih),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!M.value.multiple}])},null,10,tun)])],4),M.value.multiple?(L(),G("div",nun,[(L(!0),G(Rt,null,un(k.value.multiple.questions,(tt,ft)=>(L(),G("div",{key:ft,class:"question-item"},[x("div",run,[x("span",oun,je(ft+1)+".",1),x("span",iun,je(tt.text),1),x("button",{class:"refresh-btn",onClick:Mt=>De("multiple",ft),disabled:h.value},[x("img",{src:C(Oh),alt:"刷新",class:oe(["refresh-icon",{rotating:O.value["multiple_"+ft]}])},null,10,sun)],8,aun)]),x("div",lun,[(L(!0),G(Rt,null,un(tt.options,Mt=>(L(),G("div",{key:Mt.key,class:"option"},[x("div",uun,[x("div",{class:oe(["radio-circle",{selected:(tt.selectedAnswers||[]).includes(Mt.key)}])},[(tt.selectedAnswers||[]).includes(Mt.key)?(L(),G("div",cun)):xe("",!0)],2)]),x("span",dun,je(Mt.key)+".",1),x("div",fun,[x("span",pun,je(Mt.text),1)])]))),128))]),x("div",hun,[de[35]||(de[35]=x("span",{class:"answer-label"},"正确答案:",-1)),x("span",gun,je((tt.selectedAnswers||[]).join(", ")),1)])]))),128))])):xe("",!0)])):xe("",!0),k.value.short&&k.value.short.questions.length>0?(L(),G("div",vun,[x("div",{class:"section-header",onClick:de[8]||(de[8]=tt=>h.value?null:me("short")),style:rn({cursor:h.value?"not-allowed":"pointer"})},[x("div",mun,[de[36]||(de[36]=x("span",{class:"section-number"},"四",-1)),de[37]||(de[37]=x("span",{class:"section-name"},"简答题",-1)),x("span",yun,"(每题"+je(k.value.short.scorePerQuestion)+"分, 共"+je(k.value.short.totalScore)+"分)",1)]),x("div",bun,[x("span",wun,je(k.value.short.count)+"题",1),x("img",{src:C(Ih),alt:"收起/展开",class:oe(["toggle-icon",{expanded:!M.value.short}])},null,10,Aun)])],4),M.value.short?(L(),G("div",Cun,[(L(!0),G(Rt,null,un(k.value.short.questions,(tt,ft)=>(L(),G("div",{key:ft,class:"question-item"},[x("div",xun,[x("span",Sun,je(ft+1)+".",1),x("span",Eun,je(tt.text),1),x("button",{class:"refresh-btn",onClick:Mt=>De("short",ft),disabled:h.value},[x("img",{src:C(Oh),alt:"刷新",class:oe(["refresh-icon",{rotating:O.value["short_"+ft]}])},null,10,Tun)],8,kun)]),tt.outline?(L(),G("div",_un,[x("div",Dun,[de[38]||(de[38]=x("strong",null,"关键要点:",-1)),bn(je(Bt(tt.outline.keyFactors)),1)]),x("div",Iun,[de[39]||(de[39]=x("strong",null,"具体措施:",-1)),bn(je(Bt(tt.outline.measures)),1)])])):xe("",!0)]))),128))])):xe("",!0)])):xe("",!0)])])):xe("",!0),x("input",{ref_key:"fileInput",ref:_,type:"file",accept:".ppt,.pptx",onChange:Ne,style:{display:"none"}},null,544)])]))}},Mun=Zo(Oun,[["__scopeId","data-v-241be519"]]),Pun="/assets/6-XEd9sn-3.png",Nun="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAABACAYAAABGHBTIAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAARMSURBVGiB7ZpBbttGFIb/R1JBlxIQufCqDCAFXuoGVU6Q3iCMpb3tE0Q+Qe117Jg5QZsT2DeIloYVwMzKgJVC6jYi9bqQ5ZDDoTQkZxgX4AfYi8cZan79HPL9koCampqampqanwVV+WJ73p0b2c9eM7hPwByg8SKyPgZ+a17VGioT/HI4HTHjnewYM46+fGifVLGOSgR39qeHRPhz40IIxzdn7ZHptRgX3PXue7Dps8pYOwpfXPu7gcn1WCZPDgCwSXR2Dua3gHUIILF3I7shveR1YtThznDaJ8ZlvMaEV1/O2lcA0N2/90B0kXXcBEYdpvRN6iouZvJhxwdwFR9AvHmvl8WY4M5w2gfQj9eYcJxeAR8JlV53/94ztS5jgomTlyoEd9dM3u+MAfKTky1je9mI4JVD7CaKUcrJR+xoITjPrimXtQt2vVkTJN6ZyZ/4O+OsOatHUTUuaxfsWN8PATRjpXnawTQyl18OpyOti4Nmwa43axJZB/Ea8/JUpZm49ncDEm5qzPRmz7tzda5Rq2CZu+HymXKPbIWhD1Dwo8Ku7mZEm+A9786VuStLQnvenetKnLv2dwNmPk1W2dPpsjbBD05sdbc7+HYR2c5tw3ZuO4PpX+LxVWqKu6y35dQiuOvd9wD2EkXmI9Hd7uCfg/g4Av6QPn54Kd7AtLmsx+FUQKDgoW0U4F6qRNbvYmk114zLpQXLW0h+W/a8MpcfXqsUpQVvCwhFkQeLVLuam1KClQPC+hhHX1Vqj6SCRfmWs5Rg1YBQFBPBorDgvAEBAIicmUotju5gUUhwkYAAAARONSGyWhzdwaKQ4KIBoSg6g0VuwWUCwpJYcoOK/t02T2ewyC24bEAQWZKl9K2DrmCRS3CegKAK0eY9vEZXsMglWDUgZBGGYSDWFotI+c3SESyUBasGBOOUDBbqDisHhE38InlzZLVsygYLJcG6AkLgt+ZgDuJ/ha6QEsFC6auW7mB6iaTgq8l5+5Xa6syQXhMFk/PnL7bN2+pw3oBQGQWDxVbBpgNCUYoGi42CiwSEKikSLDL3sOvNmg07vEXiuUv+5Px5qU8zVuddvgEAO/r+qewX4N3Bt4vk43LzXs502ERAWImNPgPLE2B5EtmNS9ebNbfPzCZvsJAKLhMQNuE4YS+5Rdhd1YqTN1hIBesOCGtkfbNqL72JPMEiJTjLXR0t5OT9zjjuBhGOV3fbcuQJFinBptxdc3PWHi0ip7WInJbOnylJg4Vl98VxKcFE9m/CkJHugBD4rbmR0CG0nEzWa3GIZA8Lz13e/onEU4HI4m1jnPQsjMGxVpKsd53hNJBl2aeE4zguM0bxGhEHqXFiwQ7D08h2Dn9U2CXGZcNOvzdPCn78Fy99EoelLulrfzcAoZIfehqFcCLr+TNby3TL9n8iuwXemIc7w2kfTAfEy1LdUCUQzRkUWIg+3pz/+vfPXk5NTU1NTY0C/wGrbmPUzge2awAAAABJRU5ErkJggg==",Run="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAA8CAYAAAAwjLVlAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAArASURBVHic7Z1NbOLoGcf/hEIiEaOkVKhmRjOJqiVSldGs4r1kL3DKiZkeKq0UrXqpGja7x2zn2ojjamZynknOFXPoVtqOtdLm0tBKy0pbR22ZSg2zVT6a4BGVRYqDlpgaegB7XoMB82FI4vd3irENL+b9P+/zZcf1XuZ5DRSKw6hW1eX9+598MzHugVAo44QKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJoqAAojoYKgOJofjDOD2c9DKL+u+B8IbwzFQDj9gIAxMoFZPUSqeIR9orHECvyOIc5Fjgfi7UgB76QhVASr8014HwsACBbliCryphH052xCED7cTlfyHQ/455sHBfCBvs+hFIOidPUtZkEw0C7PpwvhIcHyXEPxzKbt6JgvQwAYP2QB9D5hsOcctHyuz65swLWy0Ao5bAlpu0aKoAxCGCDXcZq4F5P53C+EP6wsIqdvIDtvDCUcYSnAj2PwyqJsz3Dtib4TvCFLPjzLAAgNhPWjYOoyIjNhluOv1AvkZRedXzPbxfjPYy6M9t5ATtdrj3rYfTJL5RyWAsutTVyGonTPfDnRgFMu70ITwUgq5eDDdoCIxMA4/bi8Z2VrhekE2tBDks+Fo9OdgdeXhm313RiDYNmAbAepuv3Fkqi/necEAvrZQzbGjlF7iqAURP139X/5gtZ267vMBmZAAad/BqcL4THd1Yay+vNIx7kdCvaiYtqdwOQU4bnMl5YsMbkiqoJWiiJiPrnEJ4KAEDLCp4tS/givAoAeCFlRi7qkQgg3sHf74d6bLA8kH+YLUtYP3xp6djYzIJuzZJSBqniUU+fxZ+/dW82b0URmw1DVGQ8zBp9+4h/TneVREXGR4e87h+zHgbP52NgvQxk9RKJ072un/uz7OhiB87HGtwfsSLrrk3UPwegfs3N3KhQ47zpRuw3SmwXAOthuvq//bAauIdU8cjgOvSCrCqWz10ixJv9Xur7MwEg0nATmt+D9TD49MfL+nbibE+f/Izbiyd3V/QJtiWmkS1LfY/BDmIzC/rfpIFgGv48UL92Vw3bBbB5OzLQ+bJ6iUcnu2A9DDZvRw371oIchGvkCnE+Vs9w7clH+uukdQfq33ktyGGtsT9EBJeyeonYbFhfkcjgeVywHsbg75PxGWk8chUZrOete3dRvRx7qtRWAVgJ/rqROEtBKIkIT7VeKM4XAuthBk6PRggflS9kbUu3alZSq3Hor8+GDX4/457smCIm9w2yGg0LsyBdI8rMGY4jjxVKubHHcrYKgMwK9MNOXkCqeATWw+DJnZW2nzFo4BRl5nQLtt/wX4cNmXVKFY8N+15IGTyYCRusvGYZGbdXXzXIoDbUJlC2M70L1P34pJTRt5utfzNaYeyqYqsAIo3gpx+SUkbPGJD+bzOcL3Tl0oFmRAhLGPHfxRe+VX17600aT9+k8WAmjIh/rhGg1y0j52PxbP4BgHphSRPns/mY6SphZ3oXqFttUgCdrH9zYKytVqTYx42tAmD6jOrJCuAGu6y7J2a802GfHcRmwx3duq03X5v6teREYdyThmvDTHjBn2cN7sJ1oJv1JwNjMnDXrsVVCORtjgGmez5HVGQkTlMA6heq23Ku9Q+NCs4XAnzt92/nhRYBxJosnubidHJjNm9FARi/36fssv7eIY/5ub2kd5d8IX0y1oPpg67nkN+NFHVz4YsUh6jI+mQnXaKrkBUaSy/Q+uFLyKqCZ/MxgyUkc9+xmbAt6dNx0OwmbIlp8OfZDm7MpKllteJStkvvMm5vizDJjEyuIrecZ3YOiTapRUXGdl4wjJmc6KyXwWrgHpJSxphSvukrgKwqbd0gzc8lRfDrk12IjVTZBrtsel4zYuViaOO1Al846Jh5uagaK6ZWK7t2EpsJIx7ksJ0XLKVMGbcXa0EOUWYOH/7r87YiSEoZsN5pU0veLHrt99SEQa4K48RWAbwuS6bL/OatKD465JEtS9gS09i8HdV9RC0nbjV+GEXDFIlQEnvKu083XJhU8chyUoBMD5JB8MODZNcg2AxNhFodpdv4N29F9bF2azvRYjVyNSHTuuT3Dk8F9DFfhfQtYPMNMUIpZ/o669UmeT34+/C7z5GUMmDcXkNByAq9tiWMmi0xDb5wgKc2t/W2g1yBhFLOknifimndsHC+UM9p1fq9AJcQFRlPxTQSp3sQFdkQz1iJN0aBrSvAXvEYG+z7pvtYL4Nn8w+wfvhSXwp/Q/SS9/IZV53EWcrScay3njQYJAg2vF9TG4rV3imxImMnv6+7LWvBJewVjyzXR7LfS1gv8GC9jN4TlJKP8Nuf/Lz+/kprvDEubF0BxIrcdhUA6j/0RqP/JR7k9KYpqwg2Fa3GjRYEx2bDBrcp4p/TX7diKMg2FL6Q7cnnTkoZ/bdj3JM9t7Rky5JhdY4wc/qYh3VPxzCw/Z7gbjdRxGYX8O1ivK+Mj5YuvSl0qnf0CtmBq2VpeiVxmjK4QrGZ/gpsrOftPQ1m1p8vZHsW6LCwPQ0qlEQkpczQy/M7eeHaWn8tE0IG+qyH0be3xK/16nY/QXCz65OUXvV1rZpdoQ12GSn5qOcGNjIO2Tb53ZpvIBolI6kDbIlpQwZgUIRSbqBlNOKfAzPx1rfWfG9tH9vkX5OW2WpvS6eJEptdQGx2wfCaoUA0gCXUsmgaza0LJFaKiEkpg0jjwQWMexJrQa6n+zDiQc5QEBt352ozIyuEPTrZHcpdYUIph0cnuwO9x2pgse04uq1UZpPXjPXDlz0FepqLIKuXls5rFwRH/W99bbKq3gzrYQxFqU53fO3kBXDz9WN7cdNWA/f0lUhWL/GRhc7P8FTAUoA/LEYmAFlVsH7IIx7k+q7wJqWM7U8JsJN2LQrhqR8RefP2Wa2Ql6k3Bnqm29ZJNGu/wS7j6Zu0wd0ITwXw+M6KaW0m16GgKJRECKUcUsXjtqtJM7GZsKGYmThr/1QPrepPdr4CwMUI7hUYeSvEdl7Ay0IWm7cjllcDoZTDTl4YWupMe9aOneSU1gnVrkVBS3kCnTMkOUXG9IRxkvCFVpciKWXAnx+0uGDZsmTq9oiK3LUvp5cHEdRbHxb1ba2tvR0p+ajlZidZvRxJ7WQsvUBiRcb6Ia8/GCvinwPjntSb52RVweuyBKGUs+XBWFfJD5VVBdt5AfEgB/689WYcoSTqzwUSKzJeSK8Q8d/V04ztrk27yZoqHmOpEW+8Lks4KEt4IWW6Tm4rk1+7X4Fsc3khveoar8mqAr6QBeP2Ilepi7GfYLsfXO9lnnd+chFlZHRrPrtuhKcCV6Lfx4xqVV3ev//JN/TZoFeImzT5gavR7dmOiZqrCtCH41IcSm1ioghQAVAcSqVW/DdABUBxJt/9/f6jEkAFQHEmf9b+oAKgOI9a7Xfan1QAFGfhch3/5Z8//ErbpAKgOIparfYZPvhA1bapACgOwiUIi/Fn5CtUABSn8N//uaurcLkMnQ9UABQH4KpVUfvlX3+6/rp5DxUA5WZTgwrgV/v31n9vtnus/yaVQrEX13+qVfUX++9+/FW7I+gKQLmhuL50ocJ1mvwAXQEoNwmXq1arVXfhcn0mLMb/aOUUKgDKdaUK1ApwuU5Qwz+qteqfVBVf/u3dj896eZP/A75J+vzb84iOAAAAAElFTkSuQmCC",Bun="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAA8CAYAAAAwjLVlAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAmfSURBVHic7Zw/bNvYHce/pP5YtplcDilA7bzZGjqdtOaU+bQViDQUHaystmY740HKanmWbrtC3g6IorsCLSzc0kEHdGoYoC0KiOiQNqEsyRLJDs57eY8iJeqPTcV8H8AARVHkk/i+7/eXlt49eeJAIIgYNvD1407nFznsgQgEYSIEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg0QgCCSCMEIIg08bAHEDaJbBYxTcP0118x7fU8j4lpGgDANgw4pjmz3zFN2IYR6HqSonDnuG/EMxkAgKXrn8X3jLwAdp8/h6yqsA0D75898zxm//QUcjqNaa8H8/j402fLZcQzGdj9Pt4XiwuvlSqVkMznYR4dcYKRVZVOnGWY9nqBhXdX7FUqkFUVALjfyg+735/5DvsvXkBWVUx7PQzr9VsZJyHSAkhks/Rm+a3+myKeySD1USTKy5ecCOR0GnuVytLnvKpWcd1u+77/6PXr1QbrwajRwKjZnHuMrKrc75kqFhcK2+s7SPv7iGnanViQSMcAyadP6fao0eDekxSFu6Hufex+AL77CdNej95oWVWx/+IFJEXZ1FfZChK5HN2eJ8xtIrIWQFZVJLJZ+vrh99/T7et2G9Neb2ZVjmkadxw9VzrN7f/vN994XnNYryOeyUBWVcQ0DXvHxxicns4cM7m89B13PJMJbC3sfj/QcUFwBoOFx+wUCnSbWNRpr4dELkfjJfdCY+k6Hn60LOOLC4xbrU0NORCRFcAqLse6OKYJ8+gID87PISkKYl99NWMFFgXUy/j8QeKSTUGEDXyKTYgVIJbB0nVPN0pOpwHcuD53TSQFkMznqW867fVm/H9L12HpOg3i9o6PIafTsHSdC8p2y2Xqq7pXcj9sw8Co2cRuuYzByclnkSkJQjKfp9uTbpduS4pCV39L1+98XIsITQAkW3BVrfquarKqYq9SgW0YuKpWN3JdWVWRKpUAgJ7X7/ru/Y5pcmIhk9e9fxHjVouKzM1epRKKdVoHWVU5AbCijh8c0G273+diJGcwCH0BCE0AJPXnzoiw7ysvX9J02KZI5HL0JowajdDSiLeddbpLyILiBRsYp0ol7lh3WjkMQhPAVbVKJ/hMWpCZ/Jtc/YGb1TeZz1Pr4rXafjg8xG65TF8THzWmaVBqNbqfmHZJUbj9AJ8DV2q1mezQpNul7pSl6yt9Ry8RxTSNC0Y3jaXrXKDqXv3drFLfuEtCE4BtGDCPjmZEAICb/F7WYV2uqlUkslnflUtSFM8bt+x+gqyqVETsZwiOaW4sbSgpytwJuS7TXo8TwLzV3x0YE8Emnz71TRffNaEGwV4iAHCrkx/ggzFyMxzTpDfW7vc3msfmqr4uIQDrZaSG9XpofvSi1Z99b1iv09+diGYbguLQs0BuEbD7btM/J0EoWaUc0+RSdJt0u1h3yKs6u86KPWo0OAGw2atFxA8O6GS8brcDiZ69Frv6X7fb3PdgxWEbBp3srKUUAthydgqFpXLTzmCwUiHHr2DFWougRS2/jJRXEx7rhtj9/sznFjXukQlsGwZGjQYnAHaiy6qKnUIB41aLywoJAWA24GX33ZYViGcy9GbRIoyiUFfEMU0M63XsfPutp8vih93vryQAv4LVw2YTcjoduNnOj2Q+j1SphFGjEWiVlxQFqWIRiVwOHw4PfUUwbrUgq6rnRHbHBiSpQITBWoUwCbUXyD35zaMjOunZ927jusl8nmaDgE/BYzKf51okwoQEykHaEOaRKpVo1iuIu7VXqWCnULjpWVpQ4BvW6zOiYn9XtigW0zSuALkNhFoH8Mv2eGWHwmz7XZSvVmq1ldN9bPuwGyIAWVVn0qwEZzDA4OTE9/xk8gN8Q948hmdniB8c0OwWcV+CYun6TYV8MMDw7AyTy0ukSiUu87UtzXKhV4K9Al53YLxXqWy0YMIGfGTyrutmrEr84GChmzUvzTovNpBVlbZgAwjcW8+2awBAqljE5PIy8CJEAnFyf6/bbUy6XTw4P6fnj7wFID+CXysCEQFphQiTeCaz0d56lkm369kWHdM0WmgD/CfNvCCVTa9et9tL+dzjVguJbBbxTIbGR8ssQu5WD/bZC3dHaJiEWglehG0YoZTK7+qxRRJvuC0PWxOhY9rfX6p1I1UqcQHnKpPuqlqlnaskcbCK6+Luv3ILmZwzjKA49CzQNiGrKnbLZdiGwbkL7i5QN6QrdBkS2SwNSOOZDJ0UkqJwfjtBUpTA8ZDb9Rm3WitZUbcrtFsuY9LtLr04sN/HS8SbrLksS6SfCGORFAUPzs+RyOVmskAkt+73F3RCsK4O2WYftI9nMlBqNa6A9P7ZM/qAjKyqeHB+PjeT47Ye7tYFv/H4MW61eHEuGSeR56ABcM8IbAuRtwBsQxvBNgzudUzT5rYrBK0VuIVFYiA5nZ7JJDmmSeOjq1oNSjqNmKZRfzxVKtHJyfnaTLfrvEZCWVW5otS8VOuo2YTycWzLWLqdQoEKhjwMtIiYpi1Ve1mXSAuATCgCcXW8KqKbaDBjrzVqNiHt71Mfm8WdGXNMEx8OD2/aiT9OKOKuATeBNEmFktV+t1zG8OyMczdimkb/w4WbedkkYukm3W7gdGgyn+c6auc9d5HM55EqFiEpCt8kuGb9IwiRFoCl65j2eohpGsatlu9/PXBMc26A5haSH6RyahvGTVvAxxw7e5154xg1Grh+9Qq7z59z1sT9DPG41cJ1uz3jmlm67jnOIFXZwelpYFePtD7QcTebXEHMzaTbnbGwjmlieHYW6HrrEGkBAJ+6Kb1WJ+vtWzo5ggTBQQJN9jxsi/Ck2/WctG5sw8Dg5IRmZdgAmsXvPJNul7o+1tu3sN68wfjiYuF1g0x+YkVIHUCp1TC+uFiYgSLt4JKiwO73Yen6SsH2Kkjvnjxxbv0qAl/u83+Ki2naVvT7eGEDXz/udH4RWaCQua+TH9iObk8/HNu2AZEGFUQV234PCAEIIso0mfwXIAQgiCZv0u32ABACEESTv5ANIQBB5JAl6Y90O8yBCAQh8I+Hjx69Ii+EAASRwgG+k374wSKvhQAEkUGSpL9+2emcs/uEAARR4X8S8DsJ4DofhAAEUcAB8PsvXr/+u/sNIQDBfccC8IcvOx3PPu7Id4MK7i8S8B8LKD7udF75HSMsgOBeIgE/WrL823mTHxAWQHC/cBygLTnOd49++ulPQT4gBCD4XLEBvAPwTzjO32xJ+rNj2z/+5uef/73MSf4PW11UPSwoIFUAAAAASUVORK5CYII=",Lun={class:"mobile-hazard-detection"},Fun={class:"mobile-content"},Uun={key:0,class:"main-layout"},zun={class:"process-tabs"},$un={key:0,class:"hazard-system"},jun={class:"step-section"},Hun={class:"scenario-tags"},Wun=["onClick"],Vun={class:"step-section"},qun={key:0,class:"uploaded-image-container"},Gun=["src"],Kun={class:"image-overlay"},Yun={key:1,class:"upload-content"},Qun={key:2,class:"upload-status"},Zun={key:3,class:"upload-status"},Xun={class:"action-section"},Jun=["disabled"],ecn=["src"],tcn={key:1,class:"process-content"},ncn={key:1,class:"detail-layout"},rcn={class:"detail-header"},ocn={class:"header-left"},icn={class:"header-text"},acn={class:"main-title"},scn={class:"header-right"},lcn={class:"current-time"},ucn={class:"detail-content"},ccn={key:0,class:"loading-overlay"},dcn={class:"image-section"},fcn={class:"image-container"},pcn=["src"],hcn={key:1,class:"scanning-overlay"},gcn=["src"],vcn={class:"analysis-section"},mcn={class:"analysis-content"},ycn={class:"scene-info"},bcn={key:0,class:"analysis-prompt"},wcn={key:0,class:"streaming-analysis-text"},Acn={key:1},Ccn={class:"detection-count"},xcn={class:"hazards-section"},Scn={key:0,class:"hazards-loading-overlay"},Ecn={key:1,class:"hazard-item"},kcn={class:"hazard-number"},Tcn={class:"hazard-desc"},_cn=["onClick"],Dcn=["src"],Icn={class:"modal-hazard-info"},Ocn={class:"hazard-number"},Mcn={class:"hazard-description"},Pcn={class:"modal-body"},Ncn={key:0,class:"loading-overlay"},Rcn={key:1,class:"example-images"},Bcn={class:"example-panel correct-panel"},Lcn={class:"panel-image"},Fcn={key:0,class:"image-loading"},Ucn=["src"],zcn={key:2,class:"no-image-placeholder"},$cn={class:"example-panel error-panel"},jcn={class:"panel-image"},Hcn={key:0,class:"image-loading"},Wcn=["src"],Vcn={key:2,class:"no-image-placeholder"},qcn={class:"modal-body"},Gcn={class:"question-section"},Kcn={class:"answer-buttons"},Ycn={class:"question-section"},Qcn={class:"answer-buttons"},Zcn={class:"question-section"},Xcn={class:"star-rating"},Jcn=["onClick"],edn={key:0,class:"question-section"},tdn={class:"remark-input-container"},ndn=["disabled"],rdn={class:"char-count"},odn={key:0,class:"modal-footer"},idn={__name:"m-HazardDetection",setup(e){const t=Yl(),n=()=>{t.go(-1)},r=()=>{A.value||(c.value=!0)},o=K(!1),i=K(""),a=(be,fe=2e3)=>{i.value=be,o.value=!0,fe>0&&setTimeout(()=>{o.value=!1},fe)},s=()=>{o.value=!1},l=be=>a(be,2e3),u=be=>a(be,3e3),d=be=>a(be,2500),c=K(!1),f=K("detect"),p=K("tunnel"),v=K(null),h=K(""),g=K(null),y=K("main"),m=K(null),b=K(!1),w=K(!1),A=K(!1),S=K(null),E=K(""),D=K(!1),_=K(!1),M=K(!1),O=K(!1),k=K(""),R=K(!1),N=K(""),W=K(!1),B=K([]),z=K(0),j=K(!1),q=K(!1),Y=K(!1),U=K(!1),F=K(null),H=K({}),re=K(!1),X=K({correct:!1,error:!1}),te=K(!1),Z=K({sceneMatch:null,promptAccurate:null,rating:0,userRemark:""});K(!1);const le=K(null),ve=be=>{if(!be)return null;if(typeof be=="number"){const fe=be<1e12?be*1e3:be;return new Date(fe)}if(typeof be=="string"){let fe=new Date(be);if(!isNaN(fe))return fe;const Se=be.replace(/-/g,"/").replace("T"," ");if(fe=new Date(Se),!isNaN(fe))return fe}return new Date(be)},Pe=be=>{const fe=ve(be);if(!fe||isNaN(fe))return"";const Se=new Date,qe=fe.toDateString()===Se.toDateString(),$e=new Date(Se.getFullYear(),Se.getMonth(),Se.getDate()-1),Le=fe.toDateString()===$e.toDateString();if(qe)return fe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(Le)return"昨天 "+fe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const ot=fe.getMonth()+1,vt=fe.getDate(),Ut=fe.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${ot}月${vt}日 ${Ut}`},Ae=async()=>{try{console.log("📋 开始获取移动端隐患提示历史记录列表..."),j.value=!0;const be=performance.now(),fe=await zn.getHazardHistory({}),Se=performance.now();console.log(`📋 移动端隐患提示历史记录API调用耗时: ${(Se-be).toFixed(2)}ms`),console.log("📋 移动端历史记录列表响应:",fe),fe.statusCode===200||fe.code===200?(z.value=fe.total||0,B.value=fe.data.map(qe=>({id:qe.id,title:qe.title||"隐患提示记录",time:Pe(qe.created_at),businessType:"hazard",isActive:!1,effect_evaluation:qe.effect_evaluation||0,rawData:qe})),m.value?.id&&B.value.forEach(qe=>{qe.isActive=qe.id===m.value.id}),console.log(`✅ 移动端隐患提示历史记录列表已设置: ${B.value.length}条记录,总数: ${z.value}`)):console.error("❌ 获取移动端历史记录列表失败:",fe.statusCode)}catch(be){console.error("❌ 获取移动端历史记录列表失败:",be)}finally{j.value=!1}},he={tunnel:{name:"隧道工程",color:"#3366E6"},simple_supported_bridge:{name:"桥梁工程",color:"#22B850"},gas_station:{name:"加油站",color:"#FF4D4F"},special_equipment:{name:"特种设备",color:"#0080FF"},operate_highway:{name:"运营高速公路",color:"#722ED1"}},Ee={tunnel:{class:"tag-tunnel",background:"rgba(62, 123, 250, 0.1)",color:"#3366E6",text:"隧道"},simple_supported_bridge:{class:"tag-bridge",background:"rgba(34, 184, 80, 0.1)",color:"#22B850",text:"桥梁"},special_equipment:{class:"tag-equipment",background:"rgba(0, 128, 255, 0.1)",color:"#0080FF",text:"特种设备"},operate_highway:{class:"tag-highway",background:"rgba(114, 46, 209, 0.1)",color:"#722ED1",text:"运营高速公路"},gas_station:{class:"tag-gas-station",background:"rgba(255, 77, 79, 0.1)",color:"#FF4D4F",text:"加油站"}},Q=be=>Ee[be]?.class||"tag-tunnel";ee(()=>`确定要删除历史记录"${le.value?.item?.title||""}"吗?删除后将无法恢复。`);const me=ee(()=>m.value?.effect_evaluation>0?Z.value.userRemark&&Z.value.userRemark.trim()!=="":!0),De=()=>{console.log("createNewChat 被调用"),y.value="main",p.value="tunnel",v.value=null,h.value="",m.value=null,U.value=!1,F.value=null,b.value=!1,w.value=!1,A.value=!1,E.value="",H.value={},re.value=!1,X.value={correct:!1,error:!1},Y.value=!1,_.value=!1,M.value=!1,O.value=!1,k.value="",R.value=!1,N.value="",W.value=!1,g.value&&(g.value.value="",console.log("文件输入已清空")),B.value.length>0&&B.value.forEach(be=>{be.isActive=!1}),c.value=!1,console.log("新任务创建完成")},pe=async be=>{be.isActive||(console.log("点击移动端隐患提示历史记录:",be),c.value=!1,await an(be))},ie=be=>{try{console.log("selectScenario 被调用,场景:",be),p.value=be,console.log("选择场景:",he[be].name)}catch(fe){console.error("选择场景失败:",fe)}},ue=()=>{try{console.log("triggerFileUpload 被调用"),g.value?(g.value.click(),console.log("已触发文件选择器")):console.error("fileInput 引用为空")}catch(be){console.error("触发文件上传失败:",be)}},Be=async be=>{try{console.log("uploadFileToServer 被调用,文件:",be),b.value=!0;const fe=new FormData;fe.append("image",be),console.log("FormData 已创建:",fe),console.log("开始调用后端API...");const Se=await zn.uploadImage(fe);if(console.log("后端API响应:",Se),Se.statusCode===200)h.value=Se.fileUrl||Se.fileURL,console.log("上传成功:",h.value),l("图片上传成功!");else throw new Error(Se.message||"上传失败")}catch(fe){console.error("上传失败:",fe),u("图片上传失败: "+(fe.message||"未知错误")),v.value=null,h.value=""}finally{b.value=!1}},Me=()=>{try{console.log("reselectImage 被调用"),Fe(),ue(),console.log("重新选择图片完成")}catch(be){console.error("重新选择图片失败:",be)}},Fe=()=>{try{console.log("clearUploadedImage 被调用"),v.value=null,h.value="",g.value&&(g.value.value="",console.log("文件输入已清空")),console.log("上传图片已清除")}catch(be){console.error("清除上传图片失败:",be)}},ze=be=>new Promise(fe=>{const Se=document.createElement("canvas"),qe=Se.getContext("2d"),$e=new Image;$e.onload=()=>{Se.width=$e.naturalWidth,Se.height=$e.naturalHeight,qe.drawImage($e,0,0),Se.toBlob(Le=>{const ot=new File([Le],be.name,{type:be.type,lastModified:be.lastModified});fe(ot)},be.type)},$e.src=URL.createObjectURL(be)}),Ne=(be,fe=1920,Se=.8)=>new Promise((qe,$e)=>{const Le=document.createElement("canvas"),ot=Le.getContext("2d"),vt=new Image;vt.onload=()=>{try{let{width:Ut,height:Qt}=vt;Ut>fe&&(Qt=Qt*fe/Ut,Ut=fe),Le.width=Ut,Le.height=Qt,ot.drawImage(vt,0,0,Ut,Qt),Le.toBlob(Gt=>{if(Gt){const vn=new File([Gt],be.name,{type:"image/jpeg",lastModified:Date.now()});console.log(`图片压缩完成: ${be.size} -> ${vn.size} bytes`),qe(vn)}else $e(new Error("图片压缩失败"))},"image/jpeg",Se)}catch(Ut){$e(Ut)}},vt.onerror=()=>$e(new Error("图片加载失败")),vt.src=URL.createObjectURL(be)}),Re=async be=>{try{console.log("processFile 被调用,文件:",be);const fe=["image/jpeg","image/jpg","image/png"];if(console.log("文件类型:",be.type),!fe.includes(be.type)){console.log("不支持的文件类型:",be.type),u("只支持JPG、PNG格式的图片");return}let Se=be;if(be.size>5*1024*1024){console.log("文件过大,开始压缩:",be.size),a("图片较大,正在压缩...",2e3);try{Se=await Ne(be,1920,.8),console.log("压缩完成:",Se.size)}catch($e){console.error("压缩失败:",$e),u("图片压缩失败,请选择较小的图片");return}}const qe=await ze(Se);v.value=qe,console.log("选择文件:",qe.name),console.log("开始上传文件到服务器"),await Be(qe)}catch(fe){console.error("处理文件失败:",fe)}},gt=async be=>{try{console.log("handleFileUpload 被调用",be);const fe=be.target.files[0];console.log("选择的文件:",fe),fe?await Re(fe):console.log("没有选择文件")}catch(fe){console.error("文件上传处理失败:",fe)}},Bt=async()=>{try{if(console.log("startIdentification 被调用"),A.value){console.log("识别正在进行中,忽略重复点击"),d("识别正在进行中,请勿重复点击");return}if(!p.value){console.log("未选择场景"),d("请先选择场景");return}if(!h.value){console.log("未上传图片"),d("请先上传图片");return}try{console.log("检查最新识别记录是否已点评");const vn=await zn.getLatestRecognitionRecord({});if(vn.statusCode===200&&vn.data){const Un=vn.data;if(console.log("最新识别记录:",Un),Un.effect_evaluation===0||!Un.effect_evaluation){d("请先对上一次识别结果进行点评,再进行新的识别");return}}}catch(vn){console.error("检查最新识别记录失败:",vn)}console.log("开始识别:",{scenario:he[p.value].name,image:h.value}),A.value=!0,l("开始进行隐患提示,请稍候...");const be="",fe="蜀道用户",Se=new Date,qe=Se.getFullYear(),$e=String(Se.getMonth()+1).padStart(2,"0"),Le=String(Se.getDate()).padStart(2,"0"),ot=`${qe}/${$e}/${Le}`,vt=be.length>=4?be.slice(-4):be,Ut={scene_name:p.value,image:h.value,account:vt,username:fe,date:ot};console.log("发送隐患提示请求:",Ut);const Qt=await zn.hazardDetection(Ut);if(console.log("隐患提示响应:",Qt),Qt.code===200||Qt.statusCode===200){if(S.value=Qt.data,Qt.data.annotated_image&&(E.value=`${Qt.data.annotated_image}`),y.value="detail",_.value=!0,W.value=!0,setTimeout(()=>{_.value=!1,W.value=!1,Lt()},6e3),await Ae(),B.value.length>0){const vn=B.value[0];m.value=vn,B.value.forEach(Un=>{Un.isActive=Un.id===vn.id}),console.log("自动选中最新记录:",vn)}console.log("识别结果:",Qt.data),console.log("标注图片URL:",E.value)}else u(Qt.msg||"隐患提示失败")}catch(be){console.error("开始识别失败:",be),u("隐患提示失败: "+(be.msg||"未知错误"))}finally{A.value=!1}},Lt=()=>{try{console.log("开始整个分析文本流式输出效果"),R.value=!1,N.value="";const be=S.value?.scene_name,fe=be?he[be]?.name:"未知场景",Se=S.value?.labels||"",qe=Array.isArray(Se)?Se.join(""):Se,$e=`经过智能分析,发现场景:[${fe}][${qe}]`;R.value=!0;let Le=0;const ot=setInterval(()=>{Le<$e.length?(N.value=$e.substring(0,Le+1),Le++):(clearInterval(ot),R.value=!1,console.log("分析文本流式输出完成"))},100)}catch(be){console.error("开始分析文本流式输出失败:",be),R.value=!1}},an=async be=>{try{console.log("handleHistoryDetail 被调用,历史记录:",be),m.value=be,y.value="detail",q.value=!0,Y.value=!0,console.log("开始获取记录详情,ID:",be.id);const fe=await zn.getRecognitionRecordDetail({recognition_record_id:be.id});if(fe.statusCode===200||fe.code===200){const Se=fe.data;console.log("获取详情成功:",Se),S.value={scene_name:Se.tag_type||Kt(Se.labels),labels:Se.labels,total_detections:Se.labels&&Array.isArray(Se.labels)?Se.labels.length:0,third_scenes:Se.third_scenes||[]};const qe=Se.recognition_image_url||Se.original_image_url;E.value=qe;const $e=Se.tag_type||Kt(Se.labels);be.tagType=$e}else{console.error("获取详情失败:",fe.message),u("获取记录详情失败"),S.value={scene_name:be.tagType||"simple_supported_bridge",labels:be.labels,total_detections:0,third_scenes:[]};const Se=be.recognitionImageUrl||be.originalImageUrl;E.value=Se}B.value.forEach(Se=>{Se.isActive=Se.id===be.id}),console.log("历史记录状态已更新")}catch(fe){console.error("处理历史记录失败:",fe),u("获取记录详情失败")}finally{q.value=!1,Y.value=!1}},Kt=be=>{if(!be)return"gas_station";let fe="";return Array.isArray(be)?fe=be.join(" ").toLowerCase():fe=String(be).toLowerCase(),fe.includes("隧道")?"tunnel":fe.includes("桥梁")?"simple_supported_bridge":fe.includes("加油站")?"gas_station":fe.includes("设备")?"special_equipment":fe.includes("高速")?"operate_highway":"simple_supported_bridge"},Ht=()=>{const be=new Date,fe=be.getMonth()+1,Se=be.getDate(),qe=be.getHours().toString().padStart(2,"0"),$e=be.getMinutes().toString().padStart(2,"0");return`${fe}月${Se}日 ${qe}:${$e}`},pt=be=>{try{console.log("主图片加载失败")}catch(fe){console.error("处理主图片错误失败:",fe)}},Dt=()=>{try{console.log("openImagePreview 被调用"),D.value=!0,console.log("图片预览已打开")}catch(be){console.error("打开图片预览失败:",be)}},dt=()=>{try{console.log("closeImagePreview 被调用"),D.value=!1,console.log("图片预览已关闭")}catch(be){console.error("关闭图片预览失败:",be)}},it=async be=>{try{console.log("openExampleModal 被调用,隐患信息:",be),F.value=be,re.value=!0;const fe=await zn.getThirdSceneExampleImage({third_scene_name:be.description});if(console.log("获取示例图响应:",fe),fe.statusCode===200){const Se=fe.data;Se&&(Se.correct_example_image||Se.error_example_image)?(H.value={correctImageUrl:Se.correct_example_image||"",errorImageUrl:Se.error_example_image||""},X.value={correct:!!Se.correct_example_image,error:!!Se.error_example_image},U.value=!0,console.log("示例弹窗已打开,示例图数据:",H.value)):(d("暂无示例图"),console.log("没有找到示例图数据"))}else u("获取示例图失败: "+(fe.msg||"未知错误")),console.error("获取示例图失败:",fe.msg)}catch(fe){console.error("打开示例弹窗失败:",fe),u("获取示例图失败,请稍后重试")}finally{re.value=!1}},de=()=>{try{console.log("closeExampleModal 被调用"),U.value=!1,H.value={},F.value=null,re.value=!1,X.value={correct:!1,error:!1},console.log("示例弹窗已关闭")}catch(be){console.error("关闭示例弹窗失败:",be)}},tt=(be,fe)=>{console.log(`图片加载失败 (${fe}):`,be.target.src),fe==="correct"?(H.value.correctImageUrl="",X.value.correct=!1):fe==="error"&&(H.value.errorImageUrl="",X.value.error=!1)},ft=(be,fe)=>{const Se=be.target,qe=Se.naturalWidth/Se.naturalHeight;qe>1?(Se.setAttribute("data-orientation","landscape"),console.log(`图片加载完成 (${fe}): 横图, 宽高比: ${qe.toFixed(2)}`)):(Se.setAttribute("data-orientation","portrait"),console.log(`图片加载完成 (${fe}): 竖图, 宽高比: ${qe.toFixed(2)}`)),fe==="correct"?X.value.correct=!1:fe==="error"&&(X.value.error=!1)},Mt=async()=>{try{console.log("打开点评弹窗"),te.value=!0,m.value?.effect_evaluation>0?await Tn():Z.value={sceneMatch:null,promptAccurate:null,rating:0,userRemark:""}}catch(be){console.error("打开点评弹窗失败:",be)}},Tn=async()=>{try{if(!m.value?.id)return;console.log("📝 开始加载点评数据,记录ID:",m.value.id);try{const fe=await zn.getRecognitionRecordDetail({recognition_record_id:m.value.id});if(console.log("📝 详情接口响应:",fe),fe.statusCode===200||fe.code===200){const Se=fe.data;console.log("📝 移动端加载点评数据:",Se),console.log("📝 用户备注字段:",Se.user_remark),Z.value={sceneMatch:Se.scene_match===1,promptAccurate:Se.tip_accuracy===1,rating:Se.effect_evaluation||0,userRemark:Se.user_remark||""},console.log("📝 设置后的evaluationData:",Z.value)}else console.warn("📝 详情接口返回错误:",fe),Z.value={sceneMatch:null,promptAccurate:null,rating:m.value.effect_evaluation||0,userRemark:""}}catch(fe){console.error("📝 详情接口调用失败:",fe),Z.value={sceneMatch:null,promptAccurate:null,rating:m.value.effect_evaluation||0,userRemark:""}}m.value&&(m.value.effect_evaluation=Z.value.rating);const be=B.value.find(fe=>fe.id===m.value?.id);be&&(be.effect_evaluation=Z.value.rating)}catch(be){console.error("📝 加载点评数据失败:",be),Z.value={sceneMatch:null,promptAccurate:null,rating:m.value?.effect_evaluation||0,userRemark:""}}},Nn=()=>{try{console.log("关闭点评弹窗"),te.value=!1}catch(be){console.error("关闭点评弹窗失败:",be)}},We=async()=>{try{if(console.log("提交评价:",Z.value),Z.value.sceneMatch===null||Z.value.promptAccurate===null||Z.value.rating===0){d("请完成所有评价项目");return}const be=await zn.submitEvaluation({id:m.value?.id,scene_match:Z.value.sceneMatch?1:0,tip_accuracy:Z.value.promptAccurate?1:0,effect_evaluation:Z.value.rating,user_remark:Z.value.userRemark});if(be.statusCode===200||be.code===200){l("评价提交成功"),m.value&&(m.value.effect_evaluation=Z.value.rating);const fe=B.value.find(Se=>Se.id===m.value?.id);fe&&(fe.effect_evaluation=Z.value.rating),Nn()}else u("评价提交失败: "+(be.msg||"未知错误"))}catch(be){console.error("提交评价失败:",be),u("评价提交失败,请稍后重试")}},ke=async(be,fe)=>{try{console.log("开始删除移动端历史记录:",be);const Se=await zn.deleteRecognitionRecord({recognition_record_id:be.id});Se.statusCode===200?(B.value.splice(fe,1),z.value=Math.max(0,z.value-1),be.isActive&&(console.log("删除激活的历史记录,执行新建任务"),De()),console.log("✅ 移动端历史记录删除成功"),l("删除成功")):console.error("❌ 删除移动端历史记录删除失败:",Se)}catch(Se){console.error("❌ 删除移动端历史记录失败:",Se)}};return qn(async()=>{try{console.log("🚀 移动端隐患提示页面初始化完成")}catch(be){console.error("❌ 移动端隐患提示页面初始化失败:",be)}}),St(c,async be=>{be&&B.value.length===0&&(console.log("📋 历史记录抽屉打开,开始加载数据..."),await Ae())}),(be,fe)=>(L(),G("div",Lun,[He(y2,{title:"隐患提示",onBack:n,onMenu:r}),x("div",Fun,[He(ZC,{visible:!A.value&&c.value,title:"历史记录",historyData:B.value,loading:j.value,onClose:fe[0]||(fe[0]=Se=>c.value=!1),onCreateNewTask:De,onHandleHistoryItem:pe,onDeleteHistoryItem:ke},null,8,["visible","historyData","loading"]),y.value==="main"?(L(),G("div",Uun,[x("div",zun,[x("div",{class:oe(["tab-item",{active:f.value==="detect"}]),onClick:fe[1]||(fe[1]=Se=>f.value="detect")},fe[14]||(fe[14]=[x("span",null,"智能识别",-1)]),2),x("div",{class:oe(["tab-item",{active:f.value==="process"}]),onClick:fe[2]||(fe[2]=Se=>f.value="process")},fe[15]||(fe[15]=[x("span",null,"使用流程",-1)]),2)]),f.value==="detect"?(L(),G("div",$un,[fe[24]||(fe[24]=x("div",{class:"system-header"},[x("h3",null,"智能隐患提示系统"),x("p",null,"基于AI技术的工程安全智能隐患提示系统,实时检测分析,提供专业评估和预防建议")],-1)),x("div",jun,[fe[16]||(fe[16]=x("h4",null,"步骤一:选择场景",-1)),fe[17]||(fe[17]=x("p",{class:"step-description"},"请先选择您要识别的工程场景",-1)),x("div",Hun,[(L(),G(Rt,null,un(he,(Se,qe)=>x("div",{key:qe,class:oe(["scenario-tag",{active:p.value===qe,disabled:qe!=="gas_station"&&qe!=="simple_supported_bridge"&&qe!=="tunnel"&&qe!=="special_equipment"&&qe!=="operate_highway","identifying-disabled":A.value,compact:qe==="operate_highway"}]),onClick:$e=>!A.value&&(qe==="gas_station"||qe==="simple_supported_bridge"||qe==="tunnel"||qe==="special_equipment"||qe==="operate_highway")?ie(qe):null},je(Se.name),11,Wun)),64))])]),x("div",Vun,[fe[23]||(fe[23]=x("h4",null,"步骤二:上传需要识别的场景图片",-1)),x("div",{class:oe(["upload-area",{"drag-over":w.value}]),onClick:ue},[h.value?(L(),G("div",qun,[x("img",{src:h.value,alt:"已上传的图片",class:"uploaded-image"},null,8,Gun),x("div",Kun,[x("button",{class:"change-image-btn",onClick:en(Me,["stop"])},"更换图片")])])):(L(),G("div",Yun,[fe[18]||(fe[18]=x("img",{src:Ake,alt:"上传图标",class:"upload-icon"},null,-1)),fe[19]||(fe[19]=x("p",{class:"upload-text"},"点击上传图片",-1)),fe[20]||(fe[20]=x("p",{class:"upload-format"},"支持JPG、PNG格式",-1)),x("button",{class:"select-file-btn",onClick:en(ue,["stop"])},"选择图片文件")])),b.value?(L(),G("div",Qun,fe[21]||(fe[21]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在上传...",-1)]))):xe("",!0),A.value?(L(),G("div",Zun,fe[22]||(fe[22]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在识别隐患...",-1)]))):xe("",!0),x("input",{ref_key:"fileInput",ref:g,type:"file",accept:"image/*",onChange:gt,style:{display:"none"}},null,544)],2)]),x("div",Xun,[x("button",{class:oe(["start-identify-btn",{"btn-disabled":A.value}]),onClick:Bt,disabled:A.value},[x("img",{src:h.value?C(Ske):C(xke),alt:"开始识别",class:"btn-bg"},null,8,ecn)],10,Jun)])])):xe("",!0),f.value==="process"?(L(),G("div",tcn,fe[25]||(fe[25]=[ki('<div class="process-header" data-v-bfeec8ed><h3 data-v-bfeec8ed>使用流程</h3><p data-v-bfeec8ed>了解如何使用智能隐患识别系统</p></div><div class="process-steps" data-v-bfeec8ed><div class="step-item" data-v-bfeec8ed><div class="step-number" data-v-bfeec8ed>1</div><div class="step-text" data-v-bfeec8ed><h4 data-v-bfeec8ed>选择场景</h4><p data-v-bfeec8ed>从支持的五种工程场景中选择您要检测的场景类型</p></div></div><div class="step-item" data-v-bfeec8ed><div class="step-number" data-v-bfeec8ed>2</div><div class="step-text" data-v-bfeec8ed><h4 data-v-bfeec8ed>上传图片</h4><p data-v-bfeec8ed>上传您要识别的场景图片,支持JPG、PNG格式</p></div></div><div class="step-item" data-v-bfeec8ed><div class="step-number" data-v-bfeec8ed>3</div><div class="step-text" data-v-bfeec8ed><h4 data-v-bfeec8ed>开始识别</h4><p data-v-bfeec8ed>点击开始识别按钮,系统将自动检测场景中的隐患</p></div></div><div class="step-item" data-v-bfeec8ed><div class="step-number" data-v-bfeec8ed>4</div><div class="step-text" data-v-bfeec8ed><h4 data-v-bfeec8ed>查看结果</h4><p data-v-bfeec8ed>识别完成后可查看详细的分析结果和隐患列表</p></div></div></div>',2)]))):xe("",!0)])):xe("",!0),y.value==="detail"?(L(),G("div",ncn,[x("div",rcn,[x("div",ocn,[fe[26]||(fe[26]=x("img",{src:Pun,alt:"顶部图标",class:"header-icon"},null,-1)),x("div",icn,[x("span",acn,je(S.value?.scene_name?he[S.value.scene_name]?.name:"隐患提示结果"),1),x("span",{class:oe(["sub-title-tag",Q(S.value?.scene_name)])},je(S.value?.scene_name?he[S.value.scene_name]?.name:"未知场景"),3)])]),x("div",scn,[x("div",lcn,je(m.value?.time||Ht()),1)])]),x("div",ucn,[q.value||Y.value?(L(),G("div",ccn,[fe[27]||(fe[27]=x("div",{class:"loading-spinner"},null,-1)),x("p",null,je(q.value?"正在加载详情...":"正在加载图片..."),1)])):xe("",!0),x("div",dcn,[x("div",{class:"evaluation-status",onClick:Mt},[x("span",{class:oe(["status-badge",m.value?.effect_evaluation>0?"evaluated":"not-evaluated"])},je(m.value?.effect_evaluation>0?"已点评":"未点评"),3)]),x("div",fcn,[_.value?(L(),G("img",{key:0,src:h.value,alt:"用户上传图片",class:"original-image"},null,8,pcn)):xe("",!0),_.value?(L(),G("div",hcn,fe[28]||(fe[28]=[x("div",{class:"scanning-line"},null,-1)]))):xe("",!0),_.value?xe("",!0):(L(),G("img",{key:2,src:E.value,alt:"隐患提示图片",class:"main-image",onClick:Dt,style:{cursor:"pointer",transform:"none !important"},onError:pt},null,40,gcn))])]),x("div",vcn,[fe[30]||(fe[30]=x("div",{class:"analysis-header"},[x("img",{src:Nun,alt:"警告标志",class:"warning-icon"}),x("h3",null,"识别结果分析")],-1)),x("div",mcn,[x("p",ycn,[W.value?(L(),G("span",bcn," 蜀道安全管理AI智能助手正在为您分析图片,请稍候…… ")):(L(),G(Rt,{key:1},[R.value?(L(),G("span",wcn,je(N.value),1)):!R.value&&S.value?(L(),G("span",Acn,[fe[29]||(fe[29]=bn(" 经过智能分析,发现场景:",-1)),x("span",{class:oe(["scene-tags",Q(S.value?.scene_name)])},"["+je(S.value?.scene_name?he[S.value.scene_name]?.name:"未知场景")+"]",3),x("span",Ccn,"["+je(S.value.labels)+"]",1)])):xe("",!0)],64))])])]),x("div",xcn,[fe[32]||(fe[32]=x("div",{class:"hazards-header"},[x("h3",null,"该场景常见隐患有:")],-1)),x("div",{class:oe(["hazards-content",{"scanning-mode":_.value}])},[_.value?(L(),G("div",Scn,fe[31]||(fe[31]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在分析场景隐患...",-1)]))):(L(),G("div",Ecn,[(L(!0),G(Rt,null,un(S.value?.third_scenes||[],(Se,qe)=>(L(),G("div",{key:qe,class:"hazard-line"},[x("span",kcn,je(qe+1),1),x("span",Tcn,je(Se),1),x("button",{class:"example-btn",onClick:$e=>it({number:qe+1,description:Se})},"示例",8,_cn)]))),128))]))],2)])]),D.value?(L(),G("div",{key:0,class:"image-preview-overlay",onClick:dt},[x("img",{src:E.value,alt:"预览图片",class:"preview-image"},null,8,Dcn)])):xe("",!0),U.value?(L(),G("div",{key:1,class:"example-modal-overlay",onClick:de},[x("div",{class:"example-modal",onClick:fe[7]||(fe[7]=en(()=>{},["stop"]))},[x("div",{class:"modal-header"},[fe[33]||(fe[33]=x("span",{class:"modal-title"},"示例详情",-1)),x("img",{src:Sj,alt:"关闭",class:"close-icon",onClick:de})]),x("div",Icn,[x("div",Ocn,je(F.value?.number),1),x("span",Mcn,je(F.value?.description),1)]),x("div",Pcn,[re.value?(L(),G("div",Ncn,fe[34]||(fe[34]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载示例图...",-1)]))):(L(),G("div",Rcn,[x("div",Bcn,[x("div",Lcn,[X.value.correct?(L(),G("div",Fcn,fe[35]||(fe[35]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载图片...",-1)]))):xe("",!0),H.value.correctImageUrl?(L(),G("img",{key:1,src:H.value.correctImageUrl,alt:"正确示例图片",style:rn({display:X.value.correct?"none":"block"}),onError:fe[3]||(fe[3]=Se=>tt(Se,"correct")),onLoad:fe[4]||(fe[4]=Se=>ft(Se,"correct"))},null,44,Ucn)):xe("",!0),!H.value.correctImageUrl&&!X.value.correct?(L(),G("div",zcn,fe[36]||(fe[36]=[x("div",{class:"placeholder-text"},"暂无示例图",-1)]))):xe("",!0),fe[37]||(fe[37]=x("div",{class:"image-label correct-label"},[x("img",{src:Run,alt:"正确",class:"label-icon"})],-1))])]),x("div",$cn,[x("div",jcn,[X.value.error?(L(),G("div",Hcn,fe[38]||(fe[38]=[x("div",{class:"loading-spinner"},null,-1),x("p",null,"正在加载图片...",-1)]))):xe("",!0),H.value.errorImageUrl?(L(),G("img",{key:1,src:H.value.errorImageUrl,alt:"错误示例图片",style:rn({display:X.value.error?"none":"block"}),onError:fe[5]||(fe[5]=Se=>tt(Se,"error")),onLoad:fe[6]||(fe[6]=Se=>ft(Se,"error"))},null,44,Wcn)):xe("",!0),!H.value.errorImageUrl&&!X.value.error?(L(),G("div",Vcn,fe[39]||(fe[39]=[x("div",{class:"placeholder-text"},"暂无示例图",-1)]))):xe("",!0),fe[40]||(fe[40]=x("div",{class:"image-label error-label"},[x("img",{src:Bun,alt:"错误",class:"label-icon"})],-1))])])]))])])])):xe("",!0)])):xe("",!0),te.value?(L(),G("div",{key:2,class:"evaluation-modal-overlay",onClick:Nn},[x("div",{class:"evaluation-modal",onClick:fe[13]||(fe[13]=en(()=>{},["stop"]))},[x("div",{class:"modal-header"},[fe[41]||(fe[41]=x("span",{class:"modal-title"},"点评确认",-1)),x("img",{src:Sj,alt:"关闭",class:"close-icon",onClick:Nn})]),x("div",qcn,[x("div",Gcn,[fe[42]||(fe[42]=x("div",{class:"question-title"},"1.场景是否匹配?",-1)),x("div",Kcn,[x("button",{class:oe(["answer-btn",{active:Z.value.sceneMatch===!0,disabled:m.value?.effect_evaluation>0}]),onClick:fe[8]||(fe[8]=Se=>m.value?.effect_evaluation>0?null:Z.value.sceneMatch=!0)}," 是 ",2),x("button",{class:oe(["answer-btn",{active:Z.value.sceneMatch===!1,disabled:m.value?.effect_evaluation>0}]),onClick:fe[9]||(fe[9]=Se=>m.value?.effect_evaluation>0?null:Z.value.sceneMatch=!1)}," 否 ",2)])]),x("div",Ycn,[fe[43]||(fe[43]=x("div",{class:"question-title"},"2.提示是否准确?",-1)),x("div",Qcn,[x("button",{class:oe(["answer-btn",{active:Z.value.promptAccurate===!0,disabled:m.value?.effect_evaluation>0}]),onClick:fe[10]||(fe[10]=Se=>m.value?.effect_evaluation>0?null:Z.value.promptAccurate=!0)}," 是 ",2),x("button",{class:oe(["answer-btn",{active:Z.value.promptAccurate===!1,disabled:m.value?.effect_evaluation>0}]),onClick:fe[11]||(fe[11]=Se=>m.value?.effect_evaluation>0?null:Z.value.promptAccurate=!1)}," 否 ",2)])]),x("div",Zcn,[fe[44]||(fe[44]=x("div",{class:"question-title"},"3.效果评价",-1)),x("div",Xcn,[(L(),G(Rt,null,un(5,Se=>x("span",{key:Se,class:oe(["star",{active:Se<=Z.value.rating,disabled:m.value?.effect_evaluation>0}]),onClick:qe=>m.value?.effect_evaluation>0?null:Z.value.rating=Se}," ★ ",10,Jcn)),64))])]),me.value?(L(),G("div",edn,[fe[45]||(fe[45]=x("div",{class:"question-title"},"4.您的意见",-1)),x("div",tdn,[cn(x("textarea",{"onUpdate:modelValue":fe[12]||(fe[12]=Se=>Z.value.userRemark=Se),disabled:m.value?.effect_evaluation>0,class:oe(["remark-textarea",{disabled:m.value?.effect_evaluation>0}]),placeholder:"请输入您的意见或建议...",maxlength:"200",rows:"4"},null,10,ndn),[[qr,Z.value.userRemark]]),x("div",rdn,[x("span",{class:oe({"over-limit":Z.value.userRemark.length>200})},je(Z.value.userRemark.length)+"/200 ",3)])])])):xe("",!0)]),!m.value?.effect_evaluation||m.value.effect_evaluation===0?(L(),G("div",odn,[x("button",{class:"submit-btn",onClick:We},fe[46]||(fe[46]=[x("img",{src:Cke,alt:"提交反馈",class:"submit-icon"},null,-1)]))])):xe("",!0)])])):xe("",!0)]),He(m2,{visible:o.value,message:i.value,onClose:s},null,8,["visible","message"])]))}},adn=Zo(idn,[["__scopeId","data-v-bfeec8ed"]]),b0e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAW4SURBVHic7dy/T1tXFAfw77n3obQpIrYoSZhiBqiYoGuqKKSqVFWRKFGH/hhCUnVqh4Ytm8N/QJYuqRQztUuUH0srNWqI1M7AhIgrYakDOCniVUI0Eb7vdLCNMAbs5x/vvZOcz2b72e+gL+ce32fLhA5Y2+LU7ks3RZ4dAzjDAcYBgAiZTrz+a8AHUADgg2gpCNzTILBLo4NUaPeFqdUnrm1xqvQquAZDnwKYaLeQN9QCu2DewS60GmboANe2OFUq4Xsw3wCQauWkqh6Bc7vOzIYNMlSA+Rec1eC6ygfz3PAZO9vsE5oKcGWdM57l+0B5tqnuYkbBBXSpmW40jQ549pyveZYXoeFFhggZz/LiapGnGh17bID5DXeDwHehS2YcUob4fr7osscddOQSmi+6LIhudbwsFV7AM8Nn7dxhDx0a4GqRpwzx/e5WpcJg0PWR05Q7eH9dgJU3LIvQZTNp/JKj9w++sambgdbwE2h4SZSq7ARq1ASYL7qsXv5KtPH8C655U7O3hOrSKYbv9dDQUJp8YF8H9tggCw1PgvKlzAoC9rpvLb6aVEh7XWgAwMJNxFyQCqf8SRAqSyhZMx1rOSq88sd4IF0+5fJ6KG2McXqRWqjdl27KGGMvxl2Iag15dsyAWTtQLM4Y6N5PLA4wbgC9dCaZdqBgRMg0/EqFSjYNUDgNUDgNUDgv6hPee7yF+Ueb2N4Joj51KL0nDaYn+/HZR+m4SzlW5B0oITwA2N4JMP9oM+4yGoo8QAnhVUmoVWegcBqgcBqgcBqgcBqgcBqgcBqgcJFfiWnk9x9HQh3/4TfPOvr8Vo+3lvDlJ2l8PfVuqNdrl3ZghzjH+OmXrcjPqwF2kHMc+Tk1QOESNwPbFXamSacdKJwGKJwGKNxrNwO7vQ9MGu1A4TRA4TRA4RI3A9udSdJnWljagcJpgMJpgMIlbgaG3ce1S/rM1A4UTgMUTgMULnEzUPpMipp2oHAaoHAaoHCJm4G6DwxHO1A4DVA4DVC4xM1A6TMpatqBwmmAwmmAwiVuBuo+MBztQOE0QOE0QOESNwOlz6SoaQcKpwE2sL3jam6n++yRx6b7ol/QIg+w96Ss/5mNzVLN7fNjvUcee37snW6XUyf6AN8++j84iZZXd2puX53sR19v/d/Q12txdbI/qrL2RB7gxx/0RX3Kttz7za9ZRgfSHu5kz+HyhVNI93lI91lcvnAKd7LnMJCOfgml/PMg0h832d5x+Ormmohfw62anuzHdAzd1YwYZqDFt58PRH3atsw/2sSvf/4bdxmHirwDq/5Y3MYPP7/AxuZuHKdvyXdfDCTuV+xjCxAANv7Zxb3HW1he/Q9//f0qrjJCOdvfg+nJ/sTM8lgDVO2TtSlTdTRA4TRA4TRA4QwzCnEXoVrmawfKVjBksBR3FaplvgGoEHcVqkVES4ZLbjnuOlRrgsA9pbUtTpV2Ofrfy1dtKzkaMkNp8gEsxF2MCm1hdJAK5XehAT+MuRgVErtgHqhs5L0TJgfAj7MgFY6DXQAqAQ6lyQfRXKwVqaYRODc6WN497G3kPQ+3oV0ogb/rzGz1xl6A2oVCMM9Vuw8A6ODj+efBIoDxKGtSzWFGYeSMGdp/X9210JKjK9ClNIl8F9Clg3fWBTg6SAUGzURTk2pWwHR9/9JZdeinESOnKYeANcSkYL713hl6cNhDdTNwv3zRZUF0qytFqeYEPDN81h755vLYAAFgtchThvgugFRHC1ON+AyaGTlNueMOahggAKysc8YafkKETCcqUw0tlRxdOWzmHdRUgFWVJfUGtBu7xQfR3PAAzTY+tCxUgEC5G3tskGXQtbDPVUfyQTTnebhd+XSoaaEDrFpZ54yFmyBrpgFMtPo6b7gFBPzQO2FyYYOrajnA/VbWOWOMGzfGXgTzOMpLbAa61AIoX0EBgPL3j6jAJbfc85Z90Gpo+/0PkDm66wtLEb0AAAAASUVORK5CYII=",w0e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAATQSURBVHic7dsxbxNnGMDx//M6NLSCYE+tmZy5A2EtA/AJGtQPQBBSp0olQ2cnc5d0rVRhRoYKWLoShnarEqR26hBPMahSfcRVKdS+p0PsyCROcnfYuXvs5zc69uVR/nrfO58dYQzaO1ounWc5CFcUagpLAAK1cRx/CkRAEyUSYTuOedYTtitVab7vgSXrC9s7Wg7zrITA58CN9x1kJimbCg96sJk1ZuqA7R0tz33E1yj3gHKWX+qOEqHxX8x62pCpAnZeat3DTVSEsnGxKutJX5AoYLultTnhEf1zm5sshWZPuZlkNYbTnrDX0pU5YQuPd2YEanPC1t6uLp/23BMDvtrVeyLcx7fMPJQl8KjT0vpJTzp2C+20tI6wNvaxXGpxzOqly7Ix6mcjA+7t6rIEHk12LJeGKncWqtI4/PiRgP0Lli182yyaqKtcPXxhc+QcWBKe4vGKqNx/J/COdwJ2Wlr321+FttR5+e5FzcEW6lunGVH3NYuVRYlgaAWeC9TxeBbs38rsEzhYfTv5zeRSOliFAaDknyZYUw7zrEB/CxW4nes4LrX+x3iIb592dV9TCSX1m9RWlc6zHELget6DuGyCcCWor0CzFGoB8fd+ViksBfzWmWnSeaGa9xAuu1O/UuGKzQMa5wGN84DGzeU9wMCvD//k5x9avPm7N5bjffPL1bEcp+gKswLHGW+U77/4nVettxM7fl4KE3CS8QBetd7y8Ks/pi5iYQKehWmMOFMBYfoizlxAmK6IMxkQpifizAaE6Yg40wHBfsSZDwi2I3rAPqsRPeAQixE94CHWInrAESxF9IDHsBLRA57AQkQPeIqiR/SACRQ5ogdMqKgRZybgpeoH732MQcQiKcx3Yibtyx8/zXuEiZiZFTitPKBxUxvwt5/+ynuEM1GYf2759rOtvEdIpSjfO53aFTgrPKBxHtA4D2icBzTOAxrnAY3zgMZ5QOM8oHEe0DgPaJwHNM4DGucBjfOAxnlA4zygcR7QOA9onAc0zgMa5wGN84DGeUDjPKBxHtA4D2icBzSuMAHnL5TyHiGxIs1amIDX7lYL9Yc5zvyFEtfuVvMe40Bh/j/QZVOYFeiy8YDGeUDjPKBxQaGZ9xAus8hXoG3NILCd9xQuIyUK4luoWSJsh1h5nvcgLps45pm0d7Q89yHtvIdx6XWVxVBZlAjYzHsYl5KyWalKMwDEMU/ynselo/AA+m/k4zc0gCjPgVw6vf6uGQAqixIhbOQ6kUtMhEalKk0AGTzYv5jZAcp5DeYSibrK1UHAgzsxvgqNUDYG8WBoBQ50XugWsHSWM7lkFJoLn8ji8GNH7oV2lVv4BU0RRT3l5uEHjwSsVKWpyurZzOSS0pg7w1vnwMhPIxaq0ohjj1gYytrCZXk86kdHzoHDOi2tI6xNZCiXSByzeumyHHtxeWJAgL1dXZbAffztxVmLVFldqErjpCedGhCg3dJaSXgqUBvHZO5U213l1qhz3mGJAg70t9R7+GqclAhh4+LHsp70BakCwv5qPBeoq7KS9rXuWBHCRvcfvut/OpRY6oAD7ZbWSnBD4DbCjazHmXGbccyT+A2NtOEGMgcc1m5praQshcB1VZYQyuyfL32rZf8OCoDAtkAzVp73/uVx1mjD/gd/psDhup+w2wAAAABJRU5ErkJggg==",sdn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAUaSURBVHic7dy/axtnGAfw73OSjoI9yNgpOIHmMjs00lA6hTizhyhQTDLFgWbpUvsvsP0fOEuXBKJMCaZgZ/AchU6lgxRTz1UCiSC18Q0JhJOtp4N+VJZl6+58eu8e6flsPp30PubL897pkRAhAnxYzqJuF5CiGyB2wMi1HnKieH352AWoCmYXZFXAR29QP67QbL560Vem0CUdlrM4yiyBcAdE8xctZCwxlwB6jrpXChtm4AD5sJxFw/4V4GWAsmEWVX0V4XnrQYMMFCAf7K1qcMPELkAbND237vcZvgLkWtmBbW8BnWubGq4qPO+2n260Bp3A+3tLsDNlaHgmObAzZd7fLQw68dwA+d+/l0F4pltmHCgLSm01L1vnnHXWA60nrkVdlgqhwSt06fpGv4f6Bsj7uwVQamu4ValAGA9pZq7Ye/hUgM0blkxZt82kYRdePd97Y3P6GmjbrzW8JKJs653ACScCbF33HFMlqcByvTc1nS1Ut04p2IVVv0ZTeRfo7kDbXtXwJKDWKLP1F9CZtPwTX1EqmP+7sNmBGXs+3oJUMNT8JAidLZQfxFiNCoNwBwBIt0/BLG/KQialQ2qp6nbBAqVvxV2HCilFNyxwQztQKmLHAul7P7EYOQtgJ+46VHiWTl9EcwZ+pUIlmwYonAYonAYoXDruAs7yx08/9j1+8/c/R3LdsLQDhdMAhdMAhSM+2GPTi77bfIKPOy9x9OWz6aWHIj0xiSsL9/Hd4s/m1za94PvNp3i/+dT0skN19OUz3m0+AYNxdfGR0bWNb6Efdl6YXtKYjzsvja9pPMBR2Tb7ieN/05sY4TRA4TRA4TRA4TRA4TRA4WKZxKjoaAcKpwEKpwEKZ3yYfdYn3qPC9Cf32oHCaYDCaYDCJfZbaVH74bdtfPPt7IljXz/V8NcvhVDnJcXYdGBvKBc9lhRjE+Co0gCF0wCFG5sAv36qRXosKYx/GqGTmGiNTQeOKg1QOA1QuMROYqKenOgkxrCoJyc6iVGJpAEKpwEKl9gAo56c6CQmIjqJiVZiO1D5owEKpwEKp5OYhE5Y/EpsB477hMWvxAao/NEAhdMAhUtsgOM+YfFLJzER00mMCkQDFE4DFE4DFM54gOmJSdNLGhPH/2Y8wMsL90wvacyVhfvG1zQ+zL66+AgEwoedFyPz26HpiUlcXrgXy08u6y81Cac3McJpgMJpgMJpgMJZAKpxF6HCYlc7UDSqWiBU4i5DhcTsWmCqxl2HComsioVjfht3HSokPnpjIeNtx12HCql+XLFoKu+CuRR3LSog5hLN5qvNu1DGq5jLUYHRc6D9Rj5dLwLsxlmOCqjulYBWgDSVdwHaiLUgFUSRZvNVoHuUZnmPtQslYBeet97+qxOgdqEUtNHuPgCg3of5YK8MIGeyJOVblabnrnUfOD0L9by7upUmEbvwvNu9R08FSLP5KphWzBSlfOPGw+6ts63vpxE0M1dEgzXE5Fijme/7TsxOXQO78cHeKoC1YVSkfGrwCl26fubN5bkBAgDv7xZA1jOAstFWps7HLphWaGaueN5ZAwMEAK6VHdj2awBOBJWpwSrwvLv9rnm9fAXY1txSeVm7cVjYBWiDpufWB5/bFChAoNONqwCWgj5XnaUZHCzvcXOg4l/gADtL1soOMvY8wA9ANB/2dcYacwmMV0jXi0GDawsd4Ik6amUHmVQOlL4FbuRAlAXY0a22owoAIFTAVMUxv0XG2w4bWrf/AAL92Mq/AGO4AAAAAElFTkSuQmCC",ldn={class:"mobile-ai-writing"},udn={class:"mobile-content"},cdn={key:0,class:"ai-writing-card"},ddn={key:0,class:"card-loading-overlay"},fdn={class:"document-generation"},pdn={class:"input-area"},hdn={class:"input-actions"},gdn={class:"left-actions"},vdn=["disabled"],mdn={key:0,class:"file-preview-inline"},ydn={class:"file-info-inline"},bdn={class:"file-icon-inline"},wdn={class:"file-name-inline"},Adn={class:"right-actions"},Cdn=["disabled"],xdn={class:"icon-container"},Sdn={key:0,class:"recording-indicator"},Edn=["disabled"],kdn=["src"],Tdn={key:0,class:"generating-text"},_dn={class:"document-templates"},Ddn={class:"template-tabs"},Idn=["onClick"],Odn={class:"template-cards"},Mdn={class:"template-row"},Pdn=["src","alt"],Ndn={class:"template-info"},Rdn={class:"template-title"},Bdn={class:"template-desc"},Ldn=["onClick"],Fdn={key:1,class:"editor-view"},Udn={key:0,class:"editor-loading-overlay"},zdn={class:"editor-header"},$dn={class:"editor-title"},jdn={key:0,class:"editor-subtitle"},Hdn={key:1,class:"editor-subtitle"},Wdn={class:"editor-actions"},Vdn=["disabled"],qdn={class:"editor-container"},Gdn=["innerHTML"],Kdn={__name:"m-AIWriting",setup(e){const t=Yl(),n=K("main"),r=K(!1),o=K(!1),i=K(!1),{isSupported:a,isListening:s,transcript:l,error:u,startListening:d,stopListening:c}=O0(),f=K(""),p=K(""),v=K(null);K(!1);const h=K(null),g=K("all"),y=K([]),m=K(0),b=K(!1),w=K(0),A=K(!1),S=K(""),E=(ie,ue=2e3)=>{S.value=ie,A.value=!0,setTimeout(()=>{D()},ue)},D=()=>{A.value=!1},_=[{key:"all",name:"全部"},{key:"announcement",name:"公告"},{key:"notification",name:"通知"},{key:"summary",name:"总结"},{key:"meeting",name:"会议"},{key:"speech",name:"决定"}],M=[{id:1,name:"公告模板",image:b0e,category:"announcement",buttonClass:"announcement-btn"},{id:2,name:"通知模板",image:w0e,category:"notification",buttonClass:"notification-btn"},{id:3,name:"工作汇报模板",image:sdn,category:"summary",buttonClass:"report-btn"},{id:4,name:"会议纪要模版",image:b0e,category:"meeting",buttonClass:"announcement-btn"},{id:5,name:"决定模版",image:w0e,category:"speech",buttonClass:"notification-btn"}],O=ee(()=>g.value==="all"?M:M.filter(ie=>ie.category===g.value)),k=ie=>{switch(ie){case"公告模板":return"适用于各类信息公告";case"通知模板":return"适用于各类通知公文";case"工作汇报模板":return"适用于各类工作汇报";case"会议纪要模版":return"适用于正式会议的记录";case"决定模版":return"适用于各类专业的决定文稿";default:return"常用办公文档模板"}},R=ie=>({"announcement-btn":"icon-announcement","notification-btn":"icon-notification","report-btn":"icon-report"})[ie]||"icon-announcement",N=ee(()=>f.value&&f.value.trim().length>0),W=ie=>{g.value=ie},B=ie=>{let ue="";switch(ie){case"公告模板":ue='请帮我生成一份正式的公告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">发文单位:</span>、<span class="editable-highlight" contenteditable="true">公告编号:</span>、<span class="editable-highlight" contenteditable="true">公告主题:</span>、<span class="editable-highlight" contenteditable="true">发布背景:</span>、<span class="editable-highlight" contenteditable="true">公告核心条款:</span>、<span class="editable-highlight" contenteditable="true">发文日期:</span>等内容。请按照标准公告格式生成全文,包括标题、正文、落款等所有要素。';break;case"通知模板":ue='请帮我生成一份正式的通知,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">通知对象:</span>、<span class="editable-highlight" contenteditable="true">通知主题:</span>、<span class="editable-highlight" contenteditable="true">通知背景:</span>、<span class="editable-highlight" contenteditable="true">通知内容:</span>、<span class="editable-highlight" contenteditable="true">时间安排:</span>、<span class="editable-highlight" contenteditable="true">联系方式:</span>等内容。请按照标准通知格式生成全文,确保表达清楚、信息准确。';break;case"工作汇报模板":ue='请帮我生成一份正式的工作汇报,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">汇报主题:</span>、<span class="editable-highlight" contenteditable="true">汇报时间:</span>、<span class="editable-highlight" contenteditable="true">主要工作内容:</span>、<span class="editable-highlight" contenteditable="true">完成情况:</span>、<span class="editable-highlight" contenteditable="true">存在问题:</span>、<span class="editable-highlight" contenteditable="true">下步计划:</span>等内容。请按照标准工作汇报格式生成全文,确保内容全面、数据准确。';break;case"会议纪要模版":ue='请帮我生成一份正式的会议纪要,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">会议主题:</span>、<span class="editable-highlight" contenteditable="true">会议时间:</span>、<span class="editable-highlight" contenteditable="true">参会人员:</span>、<span class="editable-highlight" contenteditable="true">会议议程:</span>、<span class="editable-highlight" contenteditable="true">议题讨论:</span>、<span class="editable-highlight" contenteditable="true">决议事项:</span>、<span class="editable-highlight" contenteditable="true">后续安排:</span>等内容。请按照标准会议纪要格式生成全文,确保记录准确、要点清晰。';break;case"决定模版":ue='请帮我生成一份正式的决定,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">决定主题:</span>、<span class="editable-highlight" contenteditable="true">决定背景:</span>、<span class="editable-highlight" contenteditable="true">决定依据:</span>、<span class="editable-highlight" contenteditable="true">决定内容:</span>、<span class="editable-highlight" contenteditable="true">执行要求:</span>等内容。请按照标准决定文件格式生成全文,确保表述准确、要求明确。';break;default:ue='请帮我生成一份正式的文档,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">文档主题:</span>、<span class="editable-highlight" contenteditable="true">主要内容:</span>、<span class="editable-highlight" contenteditable="true">具体要求:</span>等内容。'}const Be=document.querySelector(".template-input-container");Be&&(Be.innerHTML=ue,f.value=ue.replace(/<[^>]*>/g,""),Yt(()=>{Be.querySelectorAll(".editable-highlight").forEach(Fe=>{Fe.style.backgroundColor="#3E7BFA10",Fe.style.color="#3E7BFA",Fe.style.padding="4px 8px",Fe.style.borderRadius="6px",Fe.style.fontWeight="500",Fe.style.cursor="text",Fe.style.border="1px solid transparent",Fe.style.display="inline-block",Fe.style.minWidth="20px",Fe.style.margin="6px 8px 6px 0",Fe.addEventListener("click",()=>{Fe.contentEditable="true",Fe.focus()}),Fe.addEventListener("blur",()=>{Fe.contentEditable="false"})})}))},z=ie=>{const ue=ie.target;f.value=ue.textContent||"",Yt(()=>{ue.querySelectorAll(".editable-highlight").forEach(Me=>{Me.style.backgroundColor="#3E7BFA10",Me.style.color="#3E7BFA",Me.style.padding="4px 8px",Me.style.borderRadius="6px",Me.style.fontWeight="500",Me.style.cursor="text",Me.style.border="1px solid transparent",Me.style.display="inline-block",Me.style.minWidth="20px",Me.style.margin="6px 8px 6px 0"})})},j=ie=>{ie.preventDefault();const ue=window.getSelection();ue.toString().trim()&&navigator.clipboard.writeText(ue.toString())},q=()=>{const ie=document.createElement("input");ie.type="file",ie.accept=".pdf,.doc,.docx,.txt,.jpg,.jpeg,.png",ie.onchange=ue=>{const Be=ue.target.files[0];Be&&(v.value={name:Be.name,size:Be.size,icon:Y(Be.type)})},ie.click()},Y=ie=>ie.includes("pdf")?"📄":ie.includes("word")||ie.includes("document")?"📝":ie.includes("image")?"🖼️":"📎",U=()=>{v.value=null},F=()=>{if(!a.value){E("当前浏览器不支持语音识别");return}s.value?c():d()};St(l,ie=>{if(!ie)return;const ue=document.querySelector(".template-input-container");ue&&(ue.textContent=ie,f.value=ie)}),St(u,ie=>{ie&&E(String(ie))});const H=async()=>{if(!N.value){console.log("请输入内容");return}n.value="editor",o.value=!0;try{console.log("开始调用AI写作API..."),console.log("对话ID:",w.value),console.log("消息内容:",f.value);const ie=await zn.sendDeepseekMessage({ai_conversation_id:w.value,message:f.value,business_type:2});if(console.log("AI写作API响应:",ie),ie.statusCode===200){ie.data&&ie.data.ai_conversation_id&&(w.value=ie.data.ai_conversation_id);const ue=ie.data.reply;if(ue)p.value=ue;else{const Be=re(f.value);p.value=Be}console.log("AI写作成功,文档内容已设置")}else{console.error("AI写作失败:",ie),E("生成失败,请重试");const ue=re(f.value);p.value=ue}o.value=!1}catch(ie){console.error("AI写作API调用失败:",ie),E("网络错误,请重试");const ue=re(f.value);p.value=ue,o.value=!1}},re=ie=>`
- <div class="document-content">
- <h1>总结报告</h1>
- <div class="content-body">
- <h2>一、工作总结</h2>
- <p>根据您的要求,以下是详细的总结报告内容:</p>
- <p>${ie}</p>
-
- <h2>二、主要成果</h2>
- <ul>
- <li>完成项目目标,达成率100%</li>
- <li>团队协作效率提升30%</li>
- <li>客户满意度达到95%</li>
- </ul>
-
- <h2>三、存在的问题</h2>
- <p>在执行过程中,我们发现了以下问题和不足:</p>
- <ul>
- <li>时间安排有待优化</li>
- <li>资源配置需要调整</li>
- <li>沟通机制需要完善</li>
- </ul>
-
- <h2>四、下阶段计划</h2>
- <p>基于前期工作总结,下阶段将重点关注以下几个方面:</p>
- <ul>
- <li>优化工作流程,提高效率</li>
- <li>加强团队协作,改善沟通</li>
- <li>完善制度体系,确保执行</li>
- </ul>
- </div>
- </div>
- `,X=async()=>{if(!p.value){E("没有可下载的内容");return}try{console.log("开始下载AI写作文档...");const ie=te(p.value),ue=Z(p.value,ie),Be=new Blob([ue],{type:"application/msword"}),Me=URL.createObjectURL(Be),Fe=document.createElement("a");Fe.href=Me,Fe.download=`${ie}.doc`,document.body.appendChild(Fe),Fe.click(),document.body.removeChild(Fe),URL.revokeObjectURL(Me),E("Word文档下载成功!"),console.log("✅ AI写作文档下载成功")}catch(ie){console.error("下载Word文档失败:",ie),E("下载失败,请重试")}},te=ie=>{const ue=ie.replace(/<[^>]*>/g,""),Be=ie.match(/<h1[^>]*>([^<]+)<\/h1>/i);if(Be)return Be[1].trim();const Me=ie.match(/<h2[^>]*>([^<]+)<\/h2>/i);if(Me)return Me[1].trim();const Fe=ie.match(/<h3[^>]*>([^<]+)<\/h3>/i);if(Fe)return Fe[1].trim();const ze=ue.trim().split(/[。!?]/)[0];return ze&&ze.length>0?ze.length>30?ze.substring(0,30)+"...":ze:`AI写作文档_${new Date().toLocaleDateString("zh-CN").replace(/\//g,"-")}`},Z=(ie,ue="AI生成的文档")=>`<!DOCTYPE html>
- <html xmlns:o="urn:schemas-microsoft-com:office:office"
- xmlns:w="urn:schemas-microsoft-com:office:word"
- xmlns="http://www.w3.org/TR/REC-html40">
- <head>
- <meta charset="utf-8">
- <meta name="ProgId" content="Word.Document">
- <meta name="Generator" content="Microsoft Word 15">
- <meta name="Originator" content="Microsoft Word 15">
- <title>${ue}</title>
- <!--[if gte mso 9]>
- <xml>
- <w:WordDocument>
- <w:View>Print</w:View>
- <w:Zoom>100</w:Zoom>
- <w:DoNotOptimizeForBrowser/>
- <w:ValidateAgainstSchemas/>
- <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
- <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
- <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
- <w:Compatibility>
- <w:BreakWrappedTables/>
- <w:SnapToGridInCell/>
- <w:WrapTextWithPunct/>
- <w:UseAsianBreakRules/>
- <w:DontGrowAutofit/>
- </w:Compatibility>
- </w:WordDocument>
- </xml>
- <![endif]-->
- <style>
- @page {
- size: 21cm 29.7cm;
- margin: 2.5cm 2cm 2.5cm 2cm;
- }
- body {
- font-family: "Microsoft YaHei", "宋体", Arial, sans-serif;
- font-size: 14px;
- line-height: 1.6;
- margin: 24px;
- color: #000;
- }
- .header {
- text-align: center;
- margin-bottom: 1.5cm;
- page-break-after: avoid;
- }
- h1 {
- font-size: 16pt;
- font-weight: bold;
- color: #000;
- margin-top: 24pt;
- margin-bottom: 12pt;
- text-align: center;
- }
- h2 {
- font-size: 14pt;
- font-weight: bold;
- color: #000;
- margin-top: 18pt;
- margin-bottom: 9pt;
- }
- h3 {
- font-size: 12pt;
- font-weight: bold;
- color: #000;
- margin-top: 14pt;
- margin-bottom: 7pt;
- }
- p {
- margin-bottom: 12pt;
- text-align: justify;
- text-indent: 2em;
- }
- ul, ol {
- margin-left: 20pt;
- margin-bottom: 12pt;
- }
- li {
- margin-bottom: 6pt;
- }
- strong, b {
- font-weight: bold;
- }
- em, i {
- font-style: italic;
- }
- table {
- border-collapse: collapse;
- width: 100%;
- margin: 12pt 0;
- }
- th, td {
- border: 1pt solid #000;
- padding: 6pt;
- text-align: left;
- }
- .no-indent {
- text-indent: 0;
- }
- </style>
- </head>
- <body>
- <div>
- ${ie}
- </div>
- </body>
- </html>`,le=ie=>{if(!ie)return"AI写作对话";const ue=ie.replace(/<[^>]*>/g,"").trim();return ue.length>30?ue.substring(0,30)+"...":ue},ve=()=>{o.value||(r.value=!0,Pe())},Pe=async()=>{try{console.log("📋 开始获取AI写作历史记录列表..."),b.value=!0;const ie=performance.now(),ue=await zn.getHistoryRecord({ai_conversation_id:0,business_type:2}),Be=performance.now();console.log(`📋 AI写作历史记录API调用耗时: ${(Be-ie).toFixed(2)}ms`),console.log("📋 AI写作历史记录列表响应:",ue),ue.statusCode===200?(m.value=ue.total||0,y.value=ue.data.map(Me=>({id:Me.id,title:le(Me.content),time:he(Me.updated_at),businessType:Me.business_type,isActive:!1,rawData:Me})),w.value&&y.value.forEach(Me=>{Me.isActive=Me.id===w.value}),console.log(`✅ AI写作历史记录列表已设置: ${y.value.length}条记录,总数: ${m.value}`)):console.error("❌ 获取AI写作历史记录列表失败:",ue.statusCode)}catch(ie){console.error("❌ 获取AI写作历史记录列表失败:",ie)}finally{b.value=!1}},Ae=ie=>{if(!ie)return null;if(typeof ie=="number"){const ue=ie<1e12?ie*1e3:ie;return new Date(ue)}if(typeof ie=="string"){let ue=new Date(ie);if(!isNaN(ue))return ue;const Be=ie.replace(/-/g,"/").replace("T"," ");if(ue=new Date(Be),!isNaN(ue))return ue}return new Date(ie)},he=ie=>{const ue=Ae(ie);if(!ue||isNaN(ue))return"未知时间";const Be=new Date,Me=ue.toDateString()===Be.toDateString(),Fe=new Date(Be.getFullYear(),Be.getMonth(),Be.getDate()-1),ze=ue.toDateString()===Fe.toDateString();if(Me)return ue.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});if(ze)return"昨天 "+ue.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});const Ne=ue.getMonth()+1,Re=ue.getDate(),gt=ue.toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});return`${Ne}月${Re}日 ${gt}`},Ee=()=>{t.go(-1)},Q=()=>{y.value.forEach(Be=>{Be.isActive=!1}),n.value="main",w.value=0;const ie='请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true">总结主题:</span>、<span class="editable-highlight" contenteditable="true">总结时间:</span>、<span class="editable-highlight" contenteditable="true">主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true">存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true">下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。',ue=document.querySelector(".template-input-container");ue&&(ue.innerHTML=ie,f.value=ie.replace(/<[^>]*>/g,""),Yt(()=>{ue.querySelectorAll(".editable-highlight").forEach(Me=>{Me.style.backgroundColor="#3E7BFA10",Me.style.color="#3E7BFA",Me.style.padding="4px 8px",Me.style.borderRadius="6px",Me.style.fontWeight="500",Me.style.cursor="text",Me.style.border="1px solid transparent",Me.style.display="inline-block",Me.style.minWidth="20px",Me.style.margin="6px 8px 6px 0",Me.addEventListener("click",()=>{Me.contentEditable="true",Me.focus()}),Me.addEventListener("blur",()=>{Me.contentEditable="false"})})})),p.value="",v.value=null,r.value=!1,console.log("✅ 新建任务完成,已重置对话ID为0,准备创建新对话")},me=async ie=>{try{console.log("开始获取AI写作对话消息,conversationId:",ie);const ue=await zn.getHistoryRecord({ai_conversation_id:ie,business_type:2});return console.log("AI写作对话消息响应:",ue),ue.statusCode===200?!ue.data||!Array.isArray(ue.data)?(console.error("历史记录数据格式不正确:",ue.data),!1):ue.data.map(Be=>{let Me=null;if(Be.content)try{typeof Be.content=="string"&&Be.content.startsWith("{")?Me=JSON.parse(Be.content):Me={hasDocument:!1,content:Be.content}}catch{console.log("消息内容不是JSON格式,使用原内容:",Be.content),Me={hasDocument:!1,content:Be.content}}return{type:Be.type,content:Be.content,time:he(Be.created_at),parsedContent:Me}}):(console.error("获取历史记录失败:",ue.statusCode),!1)}catch(ue){return console.error("获取历史记录失败:",ue),!1}},De=async ie=>{console.log("点击历史记录:",ie),y.value.forEach(Be=>{Be.isActive=Be.id===ie.id}),w.value=ie.id;const ue=await me(ie.id);if(ue&&ue.length>0){const Be=ue.find(Me=>Me.type==="ai");if(Be&&Be.parsedContent&&Be.parsedContent.documentContent)p.value=Be.parsedContent.documentContent.content,n.value="editor";else if(Be&&Be.parsedContent&&Be.parsedContent.content)p.value=Be.parsedContent.content,n.value="editor";else if(Be&&Be.content)p.value=Be.content,n.value="editor";else{const Me=document.querySelector(".template-input-container");Me&&(Me.innerHTML=`<p>${ie.rawData?.content||ie.title}</p>`,f.value=ie.rawData?.content||ie.title),n.value="main"}}else E("加载历史记录失败");r.value=!1},pe=async(ie,ue)=>{try{console.log("开始删除移动端历史记录:",ie);const Be=await zn.deleteHistoryRecord({ai_conversation_id:ie.id});Be.statusCode===200?(y.value.splice(ue,1),ie.isActive&&(console.log("删除激活的历史记录,执行新建任务"),Q()),console.log("✅ 移动端历史记录删除成功"),E("删除成功")):(console.error("❌ 删除移动端历史记录失败:",Be),E("删除失败"))}catch(Be){console.error("❌ 删除移动端历史记录失败:",Be),E("删除失败,请稍后重试")}};return qn(()=>{console.log("Mobile AI Writing Page Loaded"),Yt(()=>{const ie=document.querySelector(".template-input-container");if(ie){const ue=(ie.textContent||"").trim();ue&&(f.value=ue),ie.querySelectorAll(".editable-highlight").forEach(Me=>{Me.style.backgroundColor="#3E7BFA10",Me.style.color="#3E7BFA",Me.style.padding="4px 8px",Me.style.borderRadius="6px",Me.style.fontWeight="500",Me.style.cursor="text",Me.style.border="1px solid transparent",Me.style.display="inline-block",Me.style.minWidth="20px",Me.addEventListener("click",()=>{Me.contentEditable="true",Me.focus()}),Me.addEventListener("blur",()=>{Me.contentEditable="false"})})}})}),(ie,ue)=>(L(),G("div",ldn,[He(y2,{title:"AI写作",onBack:Ee,onMenu:ve}),x("div",udn,[He(ZC,{visible:!o.value&&r.value,title:"历史记录",historyData:y.value,loading:b.value,onClose:ue[0]||(ue[0]=Be=>r.value=!1),onCreateNewTask:Q,onHandleHistoryItem:De,onDeleteHistoryItem:pe},null,8,["visible","historyData","loading"]),n.value==="main"?(L(),G("div",cdn,[o.value?(L(),G("div",ddn,ue[1]||(ue[1]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在生成文档,请稍候...",-1)]))):xe("",!0),x("div",fdn,[ue[8]||(ue[8]=x("h3",null,"帮我写作",-1)),ue[9]||(ue[9]=x("p",{class:"subtitle"},"智能生成办公文档,提升办公效能,高效创作",-1)),x("div",pdn,[x("div",{class:"template-input-container",contenteditable:"true",onInput:z,onCopy:j,placeholder:"请在这里输入您的写作要求..."},ue[2]||(ue[2]=[ki(' 请帮我生成一份正式的总结报告,要求格式规范、语言严谨。具体内容包括<span class="editable-highlight" contenteditable="true" data-v-83600aec>总结主题:</span>、<span class="editable-highlight" contenteditable="true" data-v-83600aec>总结时间:</span>、<span class="editable-highlight" contenteditable="true" data-v-83600aec>主要业绩和成果:</span>、<span class="editable-highlight" contenteditable="true" data-v-83600aec>存在的问题和不足:</span>、<span class="editable-highlight" contenteditable="true" data-v-83600aec>下一阶段工作计划:</span>的内容。请按照标准工作总结格式生成全文,包含"工作总结、问题不足、未来计划"三部分的完整报告。 ',11)]),32),x("div",hdn,[x("div",gdn,[x("button",{class:"attachment-btn",onClick:q,disabled:i.value},ue[3]||(ue[3]=[x("img",{src:gAe,alt:"附件",class:"action-icon"},null,-1)]),8,vdn),v.value?(L(),G("div",mdn,[x("div",ydn,[x("span",bdn,je(v.value.icon),1),x("span",wdn,je(v.value.name),1),x("button",{class:"remove-file-inline",onClick:U},ue[4]||(ue[4]=[x("span",{class:"remove-icon"},"×",-1)]))])])):xe("",!0)]),x("div",Adn,[x("button",{class:oe(["voice-btn",{recording:C(s)}]),onClick:F,disabled:i.value},[x("div",xdn,[ue[5]||(ue[5]=x("img",{src:rp,alt:"语音",class:"voice-icon"},null,-1)),C(s)?(L(),G("div",Sdn)):xe("",!0)])],10,Cdn),ue[6]||(ue[6]=x("div",{class:"divider"},null,-1)),x("button",{class:"send-btn",onClick:H,disabled:o.value||i.value},[x("img",{src:N.value?C(ip):C(op),alt:"发送",class:"send-icon"},null,8,kdn),o.value?(L(),G("span",Tdn,"生成中...")):xe("",!0)],8,Edn)])]),ue[7]||(ue[7]=x("p",{class:"hint-text"},"提示:请输入关键字,AI将根据关键字生成文档",-1))])]),x("div",_dn,[x("div",Ddn,[(L(),G(Rt,null,un(_,Be=>x("div",{key:Be.key,class:oe(["tab-item",{active:g.value===Be.key}]),onClick:Me=>W(Be.key)},je(Be.name),11,Idn)),64))]),x("div",Odn,[(L(!0),G(Rt,null,un(O.value,Be=>(L(),G("div",{key:Be.id,class:oe(["template-card",Be.buttonClass])},[x("div",Mdn,[x("div",{class:oe(["template-icon",R(Be.buttonClass)])},[x("img",{src:Be.image,alt:Be.name,class:"template-icon-img"},null,8,Pdn)],2),x("div",Ndn,[x("div",Rdn,je(Be.name),1),x("div",Bdn,je(k(Be.name)),1)]),x("button",{class:oe(["use-template-btn",Be.buttonClass]),onClick:Me=>B(Be.name)}," 使用此模板 ",10,Ldn)])],2))),128))])])])):xe("",!0),n.value==="editor"?(L(),G("div",Fdn,[o.value?(L(),G("div",Udn,ue[10]||(ue[10]=[x("div",{class:"loading-spinner"},null,-1),x("div",{class:"loading-text"},"正在生成文档,请稍候...",-1)]))):xe("",!0),x("div",zdn,[x("div",$dn,[ue[11]||(ue[11]=x("h3",null,"文档预览",-1)),o.value?(L(),G("p",Hdn,"AI正在生成内容,请稍候...")):(L(),G("p",jdn,"编辑请去电脑端"))]),x("div",Wdn,[x("button",{class:"download-btn",onClick:X,disabled:o.value},ue[12]||(ue[12]=[x("img",{src:i7,alt:"下载Word",class:"download-icon"},null,-1)]),8,Vdn)])]),x("div",qdn,[x("div",{ref_key:"richEditor",ref:h,class:"rich-text-editor",innerHTML:p.value,contenteditable:"false"},null,8,Gdn)])])):xe("",!0)]),He(m2,{visible:A.value,message:S.value,duration:2e3,onClose:D},null,8,["visible","message"])]))}},Ydn=Zo(Kdn,[["__scopeId","data-v-83600aec"]]),Qdn={class:"mobile-policy-document"},Zdn={class:"main-content"},Xdn={class:"search-section"},Jdn={class:"search-box"},efn={class:"category-tabs"},tfn={key:0,class:"loading"},nfn={key:1,class:"no-data"},rfn={class:"doc-icon"},ofn=["src","alt"],ifn={class:"doc-content"},afn={class:"doc-header"},sfn={class:"doc-title"},lfn={class:"doc-date"},ufn={class:"doc-tags"},cfn={class:"doc-description"},dfn={class:"doc-footer"},ffn={class:"doc-info"},pfn={class:"info-item"},hfn={class:"info-item"},gfn={class:"doc-actions"},vfn=["onClick"],mfn={key:2,class:"load-more"},yfn={class:"preview-content"},bfn={class:"preview-header"},wfn={class:"preview-title"},Afn={class:"preview-body"},Cfn=["src"],xfn={key:1,class:"preview-placeholder"},Sfn={__name:"m-PolicyDocument",setup(e){const t=Yl(),n=K(""),r=K(0),o=K([]),i=K(!1),a=K(1),s=K(10),l=K(!0),u=K(null),d=K(!1),c=K(null);let f=null,p=null;const v=()=>{t.go(-1)},h=k=>{r.value=k,a.value=1,o.value=[],l.value=!0,g()},g=async(k=!1)=>{if(!i.value){i.value=!0;try{const R={page:a.value,pageSize:s.value,search:n.value,policy_type:r.value===0?"":r.value},N=await zn.getPolicyFile(R);if(N&&N.data){const W=N.data;k?o.value=[...o.value,...W]:o.value=W,l.value=W.length===s.value}}catch(R){console.error("获取政策文件失败:",R)}finally{i.value=!1}}},y=()=>{f&&clearTimeout(f),f=setTimeout(()=>{a.value=1,o.value=[],l.value=!0,g()},300)},m=()=>{n.value.trim()&&(a.value=1,o.value=[],l.value=!0,g())},b=async k=>{if(console.log("查看政策文件:",k),console.log("文件ID:",k.id,"文件所有字段:",Object.keys(k)),!k.policy_file_url){alert("文件链接不存在");return}if(!k.id)console.error("政策文件ID不存在,跳过次数更新");else{k.view_count=(k.view_count||0)+1;try{await zn.updatePolicyFileCount({policy_file_id:k.id,action_type:1}),console.log("查看次数更新成功")}catch(R){console.error("更新查看次数失败:",R),k.view_count=(k.view_count||1)-1}}c.value=k,d.value=!0},w=k=>({0:xd,1:Dke,2:Ike,3:xd,4:xd,5:xd})[k]||xd,A=k=>({0:"PDF",1:"Word",2:"Excel",3:"PPT",4:"TXT",5:"其他"})[k]||"文件",S=ee(()=>{if(!c.value||!c.value.policy_file_url)return"";const k=c.value.file_type,R=c.value.policy_file_url;return k===0||k===4||k===5?R:k===1||k===2||k===3?`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(R)}`:R}),E=ee(()=>c.value?.policy_name||"政策文件预览"),D=()=>{d.value=!1,c.value=null},_=k=>k?k.split(",").map(R=>R.trim()).filter(R=>R.length>0):["政策文件"],M=k=>{if(!k)return"";const R=new Date(k*1e3),N=R.getFullYear(),W=String(R.getMonth()+1).padStart(2,"0"),B=String(R.getDate()).padStart(2,"0");return`${N}-${W}-${B}`},O=k=>{p&&clearTimeout(p),p=setTimeout(()=>{const R=k.target,N=R.scrollTop,W=R.scrollHeight,B=R.clientHeight;N+B>=W-50&&l.value&&!i.value&&(a.value++,g(!0))},100)};return qn(()=>{g()}),yl(()=>{p&&clearTimeout(p),f&&clearTimeout(f)}),(k,R)=>(L(),G("div",Qdn,[He(y2,{title:"政策文件",showMenu:!1,onBack:v}),x("div",Zdn,[x("div",Xdn,[x("div",Jdn,[R[6]||(R[6]=x("div",{class:"search-icon-left"},[x("img",{src:Eke,alt:"搜索",class:"search-icon"})],-1)),cn(x("input",{type:"text",placeholder:"搜索政策文件...",class:"search-input","onUpdate:modelValue":R[0]||(R[0]=N=>n.value=N),maxlength:"100",onInput:y,onKeyup:$r(m,["enter"])},null,544),[[qr,n.value]])])]),x("div",efn,[x("button",{class:oe(["tab-btn",{active:r.value===0}]),onClick:R[1]||(R[1]=N=>h(0))},"全部政策",2),x("button",{class:oe(["tab-btn",{active:r.value===1}]),onClick:R[2]||(R[2]=N=>h(1))},"国家法规",2),x("button",{class:oe(["tab-btn",{active:r.value===2}]),onClick:R[3]||(R[3]=N=>h(2))},"行业法规",2),x("button",{class:oe(["tab-btn",{active:r.value===3}]),onClick:R[4]||(R[4]=N=>h(3))},"地方法规",2),x("button",{class:oe(["tab-btn",{active:r.value===4}]),onClick:R[5]||(R[5]=N=>h(4))},"内部条例",2)]),x("div",{class:"document-list",ref_key:"documentList",ref:u,onScroll:O},[i.value?(L(),G("div",tfn,R[7]||(R[7]=[x("div",{class:"loading-spinner"},null,-1),x("span",null,"加载中...",-1)]))):xe("",!0),!i.value&&o.value.length===0?(L(),G("div",nfn,R[8]||(R[8]=[x("span",null,"暂无数据",-1)]))):xe("",!0),(L(!0),G(Rt,null,un(o.value,(N,W)=>(L(),G("div",{key:N.id||W,class:"document-item"},[x("div",rfn,[x("img",{src:w(N.file_type),alt:A(N.file_type),class:"file-icon"},null,8,ofn)]),x("div",ifn,[x("div",afn,[x("h3",sfn,je(N.policy_name),1),x("span",lfn,je(M(N.publish_time)),1)]),x("div",ufn,[(L(!0),G(Rt,null,un(_(N.file_tag),(B,z)=>(L(),G("span",{key:z,class:"tag tag-blue"},[R[9]||(R[9]=x("img",{src:kke,alt:"标签图标",class:"tag-icon"},null,-1)),bn(" "+je(B),1)]))),128))]),x("p",cfn,je(N.policy_content),1),x("div",dfn,[x("div",ffn,[x("span",pfn,[R[10]||(R[10]=x("img",{src:Tke,alt:"部门",class:"info-icon"},null,-1)),bn(" "+je(N.policy_department),1)]),x("span",hfn,[R[11]||(R[11]=x("img",{src:_ke,alt:"次数",class:"info-icon"},null,-1)),bn(" "+je(N.view_count)+" 次查看 ",1)])]),x("div",gfn,[x("button",{class:"action-btn view-btn",onClick:B=>b(N)},"查看详情 >",8,vfn)])])])]))),128)),l.value&&!i.value?(L(),G("div",mfn,R[12]||(R[12]=[x("span",null,"上拉加载更多",-1)]))):xe("",!0)],544)]),d.value?(L(),G("div",{key:0,class:"preview-modal",onClick:en(D,["self"])},[x("div",yfn,[x("div",bfn,[x("h3",wfn,je(E.value),1),x("button",{class:"close-btn",onClick:D},"×")]),x("div",Afn,[S.value?(L(),G("iframe",{key:0,src:S.value,class:"preview-frame",frameborder:"0",allowfullscreen:""},null,8,Cfn)):(L(),G("div",xfn," 暂无可预览内容 "))])])])):xe("",!0)]))}},Efn=Zo(Sfn,[["__scopeId","data-v-1cc0209c"]]),kfn={name:"NotFound",data(){return{errorTitle:"认证失败",errorMessage:"无法验证您的访问权限",detailMessage:"票据验证失败或已过期,请重新从门户系统登录。",showDetails:!0,debugInfo:[],showDebug:!1}},mounted(){this.collectDebugInfo();const e=this.$route.query.reason;e==="ticket_failed"?(this.errorTitle="票据验证失败",this.errorMessage="无法验证您的访问票据",this.detailMessage="票据可能已过期或无效,请重新从统一认证门户登录。"):e==="ticket_not_found"?(this.errorTitle="缺少访问凭证",this.errorMessage="未检测到有效的访问票据",this.detailMessage="请从统一认证门户进入系统,不要直接访问此地址。"):e==="token_expired"?(this.errorTitle="登录已过期",this.errorMessage="您的登录状态已失效",this.detailMessage="令牌已过期,请重新从统一认证门户登录。"):e==="logout"?(this.errorTitle="已退出登录",this.errorMessage="您已成功退出系统",this.detailMessage="如需继续使用,请重新从统一认证门户登录。"):e==="no_permission"?(this.errorTitle="无访问权限",this.errorMessage="您没有访问此系统的权限",this.detailMessage="请联系系统管理员申请访问权限。"):e==="network_error"?(this.errorTitle="网络错误",this.errorMessage="无法连接到认证服务器",this.detailMessage="请检查网络连接后重试。"):e==="app_token_lost"?(this.errorTitle="APP 会话异常",this.errorMessage="检测到 APP 环境中登录状态丢失",this.detailMessage="这可能是 APP 返回操作导致的异常。请尝试重新打开此页面,或联系技术支持。"):e||(this.errorTitle="页面未找到",this.errorMessage="您访问的页面不存在",this.detailMessage="请检查URL是否正确,或返回首页。"),console.log("🚫 进入404页面,原因:",e||"未知")},methods:{collectDebugInfo(){const e=[];e.push({type:"info",time:new Date().toLocaleTimeString(),message:`当前 URL: ${window.location.href}`}),e.push({type:"info",time:new Date().toLocaleTimeString(),message:`用户代理: ${navigator.userAgent}`}),e.push({type:"info",time:new Date().toLocaleTimeString(),message:`是否移动设备: ${/Mobile|Android|iPhone|iPad/i.test(navigator.userAgent)}`});const t=!!localStorage.getItem("shudao_refresh_token");e.push({type:t?"success":"error",time:new Date().toLocaleTimeString(),message:`本地 Token: ${t?"存在":"不存在"}`});const n=!!localStorage.getItem("shudao_username");e.push({type:"info",time:new Date().toLocaleTimeString(),message:`用户名: ${n?localStorage.getItem("shudao_username"):"未保存"}`});const r=this.$route.query.reason;e.push({type:"warning",time:new Date().toLocaleTimeString(),message:`错误原因: ${r||"未指定"}`});const o=new URL(window.location.href),i=o.hash.includes("iamcaspticket")||o.search.includes("iamcaspticket");e.push({type:i?"warning":"info",time:new Date().toLocaleTimeString(),message:`URL 中票据参数: ${i?"存在 (异常!)":"已清理"}`});try{const a=sessionStorage.getItem("auth_debug_logs");a&&JSON.parse(a).forEach(l=>{e.push({type:l.level||"info",time:l.time||new Date().toLocaleTimeString(),message:l.message})})}catch(a){e.push({type:"error",time:new Date().toLocaleTimeString(),message:`读取认证日志失败: ${a.message}`})}this.debugInfo=e},toggleDebug(){this.showDebug=!this.showDebug},retry(){console.log("🔄 用户点击重新尝试"),localStorage.removeItem("shudao_refresh_token"),localStorage.removeItem("shudao_token_type"),localStorage.removeItem("shudao_username"),sessionStorage.removeItem("auth_debug_logs"),window.location.href=window.location.origin+window.location.pathname},contactSupport(){console.log("📞 用户请求联系支持");const t=`调试报告:
- ${this.debugInfo.map(n=>`[${n.time}] ${n.message}`).join(`
- `)}
- 请将此信息发送给技术支持。`;navigator.clipboard?navigator.clipboard.writeText(t).then(()=>{alert(`调试信息已复制到剪贴板!
- 请联系系统管理员并提供此信息。`)}).catch(()=>{alert(t)}):alert(t)}}},Tfn={class:"not-found-container"},_fn={class:"not-found-content"},Dfn={class:"error-title"},Ifn={class:"error-message"},Ofn={key:0,class:"error-details"},Mfn={class:"detail-text"},Pfn={key:1,class:"debug-info"},Nfn={key:0,class:"debug-content"},Rfn={class:"debug-time"},Bfn={class:"debug-message"},Lfn={class:"action-buttons"};function Ffn(e,t,n,r,o,i){return L(),G("div",Tfn,[x("div",_fn,[t[5]||(t[5]=ki('<div class="error-icon" data-v-f52e32e0><svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" data-v-f52e32e0><circle cx="100" cy="100" r="80" fill="none" stroke="#ff6b6b" stroke-width="4" data-v-f52e32e0></circle><line x1="70" y1="70" x2="130" y2="130" stroke="#ff6b6b" stroke-width="4" stroke-linecap="round" data-v-f52e32e0></line><line x1="130" y1="70" x2="70" y2="130" stroke="#ff6b6b" stroke-width="4" stroke-linecap="round" data-v-f52e32e0></line></svg></div><h1 class="error-code" data-v-f52e32e0>404</h1>',2)),x("h2",Dfn,je(o.errorTitle),1),x("p",Ifn,je(o.errorMessage),1),o.showDetails?(L(),G("div",Ofn,[x("p",Mfn,je(o.detailMessage),1)])):xe("",!0),o.debugInfo.length>0?(L(),G("div",Pfn,[x("div",{class:"debug-header",onClick:t[0]||(t[0]=(...a)=>i.toggleDebug&&i.toggleDebug(...a))},[x("span",null,"🐛 调试信息 (点击"+je(o.showDebug?"收起":"展开")+")",1)]),o.showDebug?(L(),G("div",Nfn,[(L(!0),G(Rt,null,un(o.debugInfo,(a,s)=>(L(),G("div",{class:oe(["debug-item",a.type]),key:s},[x("span",Rfn,je(a.time),1),x("span",Bfn,je(a.message),1)],2))),128))])):xe("",!0)])):xe("",!0),x("div",Lfn,[x("button",{class:"btn-primary",onClick:t[1]||(t[1]=(...a)=>i.retry&&i.retry(...a))},t[3]||(t[3]=[x("span",{class:"icon"},"🔄",-1),bn(" 重新尝试 ",-1)])),x("button",{class:"btn-secondary",onClick:t[2]||(t[2]=(...a)=>i.contactSupport&&i.contactSupport(...a))},t[4]||(t[4]=[x("span",{class:"icon"},"📞",-1),bn(" 联系支持 ",-1)]))]),t[6]||(t[6]=x("div",{class:"help-info"},[x("p",null,"如果问题持续存在,请尝试以下操作:"),x("ul",null,[x("li",null,"确认您有访问权限"),x("li",null,"检查网络连接"),x("li",null,"清除浏览器缓存后重试"),x("li",null,"联系系统管理员获取帮助")])],-1))])])}const Ufn=Zo(kfn,[["render",Ffn],["__scopeId","data-v-f52e32e0"]]),zfn=[{path:"/",name:"Index",component:Olt,beforeEnter:(e,t,n)=>{Z4()?(console.log("📱 检测到移动设备,重定向到 /mobile"),console.log("📍 原始 URL:",window.location.href),console.log("📍 原始查询参数:",e.query),n({path:"/mobile",query:e.query,replace:!0})):n()}},{path:"/mobile",name:"MobileIndex",component:Mnn},{path:"/mobile/chat",name:"MobileChat",component:sin},{path:"/mobile/safety-hazard",name:"MobileSafetyHazard",component:lsn},{path:"/mobile/exam-workshop",name:"MobileExamWorkshop",component:Mun},{path:"/mobile/hazard-detection",name:"MobileHazardDetection",component:adn},{path:"/mobile/ai-writing",name:"MobileAIWriting",component:Ydn},{path:"/mobile/policy-document",name:"MobilePolicyDocument",component:Efn},{path:"/chat",name:"Chat",component:smt},{path:"/ai-writing",name:"AIWriting",component:OHt},{path:"/admin",name:"Admin",component:gWt},{path:"/exam-workshop",name:"ExamWorkshop",component:lGt},{path:"/hazard-detection",name:"HazardDetection",component:rYt},{path:"/policy-document",name:"PolicyDocument",component:IYt},{path:"/safety-hazard",name:"SafetyHazard",component:KJt},{path:"/template-editor",name:"TemplateEditor",component:ztn},{path:"/404",name:"NotFound",component:Ufn},{path:"/:pathMatch(.*)*",redirect:"/404"}],A0e=c7e({history:zDe(),routes:zfn});var eE={exports:{}};/*!
- * Quill Editor v1.3.7
- * https://quilljs.com/
- * Copyright (c) 2014, Jason Chen
- * Copyright (c) 2013, salesforce.com
- */var $fn=eE.exports,C0e;function jfn(){return C0e||(C0e=1,(function(e,t){(function(r,o){e.exports=o()})(typeof self<"u"?self:$fn,function(){return(function(n){var r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=n,o.c=r,o.d=function(i,a,s){o.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=109)})([(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(17),a=o(18),s=o(19),l=o(45),u=o(46),d=o(47),c=o(48),f=o(49),p=o(12),v=o(32),h=o(33),g=o(31),y=o(1),m={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:i.default,Format:a.default,Leaf:s.default,Embed:c.default,Scroll:l.default,Block:d.default,Inline:u.default,Text:f.default,Attributor:{Attribute:p.default,Class:v.default,Style:h.default,Store:g.default}};r.default=m}),(function(n,r,o){var i=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,m){y.__proto__=m}||function(y,m){for(var b in m)m.hasOwnProperty(b)&&(y[b]=m[b])};return function(y,m){g(y,m);function b(){this.constructor=y}y.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=(function(g){i(y,g);function y(m){var b=this;return m="[Parchment] "+m,b=g.call(this,m)||this,b.message=m,b.name=b.constructor.name,b}return y})(Error);r.ParchmentError=a;var s={},l={},u={},d={};r.DATA_KEY="__blot";var c;(function(g){g[g.TYPE=3]="TYPE",g[g.LEVEL=12]="LEVEL",g[g.ATTRIBUTE=13]="ATTRIBUTE",g[g.BLOT=14]="BLOT",g[g.INLINE=7]="INLINE",g[g.BLOCK=11]="BLOCK",g[g.BLOCK_BLOT=10]="BLOCK_BLOT",g[g.INLINE_BLOT=6]="INLINE_BLOT",g[g.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",g[g.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",g[g.ANY=15]="ANY"})(c=r.Scope||(r.Scope={}));function f(g,y){var m=v(g);if(m==null)throw new a("Unable to create "+g+" blot");var b=m,w=g instanceof Node||g.nodeType===Node.TEXT_NODE?g:b.create(y);return new b(w,y)}r.create=f;function p(g,y){return y===void 0&&(y=!1),g==null?null:g[r.DATA_KEY]!=null?g[r.DATA_KEY].blot:y?p(g.parentNode,y):null}r.find=p;function v(g,y){y===void 0&&(y=c.ANY);var m;if(typeof g=="string")m=d[g]||s[g];else if(g instanceof Text||g.nodeType===Node.TEXT_NODE)m=d.text;else if(typeof g=="number")g&c.LEVEL&c.BLOCK?m=d.block:g&c.LEVEL&c.INLINE&&(m=d.inline);else if(g instanceof HTMLElement){var b=(g.getAttribute("class")||"").split(/\s+/);for(var w in b)if(m=l[b[w]],m)break;m=m||u[g.tagName]}return m==null?null:y&c.LEVEL&m.scope&&y&c.TYPE&m.scope?m:null}r.query=v;function h(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];if(g.length>1)return g.map(function(w){return h(w)});var m=g[0];if(typeof m.blotName!="string"&&typeof m.attrName!="string")throw new a("Invalid definition");if(m.blotName==="abstract")throw new a("Cannot register abstract class");if(d[m.blotName||m.attrName]=m,typeof m.keyName=="string")s[m.keyName]=m;else if(m.className!=null&&(l[m.className]=m),m.tagName!=null){Array.isArray(m.tagName)?m.tagName=m.tagName.map(function(w){return w.toUpperCase()}):m.tagName=m.tagName.toUpperCase();var b=Array.isArray(m.tagName)?m.tagName:[m.tagName];b.forEach(function(w){(u[w]==null||m.className==null)&&(u[w]=m)})}return m}r.register=h}),(function(n,r,o){var i=o(51),a=o(11),s=o(3),l=o(20),u="\0",d=function(c){Array.isArray(c)?this.ops=c:c!=null&&Array.isArray(c.ops)?this.ops=c.ops:this.ops=[]};d.prototype.insert=function(c,f){var p={};return c.length===0?this:(p.insert=c,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(p.attributes=f),this.push(p))},d.prototype.delete=function(c){return c<=0?this:this.push({delete:c})},d.prototype.retain=function(c,f){if(c<=0)return this;var p={retain:c};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(p.attributes=f),this.push(p)},d.prototype.push=function(c){var f=this.ops.length,p=this.ops[f-1];if(c=s(!0,{},c),typeof p=="object"){if(typeof c.delete=="number"&&typeof p.delete=="number")return this.ops[f-1]={delete:p.delete+c.delete},this;if(typeof p.delete=="number"&&c.insert!=null&&(f-=1,p=this.ops[f-1],typeof p!="object"))return this.ops.unshift(c),this;if(a(c.attributes,p.attributes)){if(typeof c.insert=="string"&&typeof p.insert=="string")return this.ops[f-1]={insert:p.insert+c.insert},typeof c.attributes=="object"&&(this.ops[f-1].attributes=c.attributes),this;if(typeof c.retain=="number"&&typeof p.retain=="number")return this.ops[f-1]={retain:p.retain+c.retain},typeof c.attributes=="object"&&(this.ops[f-1].attributes=c.attributes),this}}return f===this.ops.length?this.ops.push(c):this.ops.splice(f,0,c),this},d.prototype.chop=function(){var c=this.ops[this.ops.length-1];return c&&c.retain&&!c.attributes&&this.ops.pop(),this},d.prototype.filter=function(c){return this.ops.filter(c)},d.prototype.forEach=function(c){this.ops.forEach(c)},d.prototype.map=function(c){return this.ops.map(c)},d.prototype.partition=function(c){var f=[],p=[];return this.forEach(function(v){var h=c(v)?f:p;h.push(v)}),[f,p]},d.prototype.reduce=function(c,f){return this.ops.reduce(c,f)},d.prototype.changeLength=function(){return this.reduce(function(c,f){return f.insert?c+l.length(f):f.delete?c-f.delete:c},0)},d.prototype.length=function(){return this.reduce(function(c,f){return c+l.length(f)},0)},d.prototype.slice=function(c,f){c=c||0,typeof f!="number"&&(f=1/0);for(var p=[],v=l.iterator(this.ops),h=0;h<f&&v.hasNext();){var g;h<c?g=v.next(c-h):(g=v.next(f-h),p.push(g)),h+=l.length(g)}return new d(p)},d.prototype.compose=function(c){var f=l.iterator(this.ops),p=l.iterator(c.ops),v=[],h=p.peek();if(h!=null&&typeof h.retain=="number"&&h.attributes==null){for(var g=h.retain;f.peekType()==="insert"&&f.peekLength()<=g;)g-=f.peekLength(),v.push(f.next());h.retain-g>0&&p.next(h.retain-g)}for(var y=new d(v);f.hasNext()||p.hasNext();)if(p.peekType()==="insert")y.push(p.next());else if(f.peekType()==="delete")y.push(f.next());else{var m=Math.min(f.peekLength(),p.peekLength()),b=f.next(m),w=p.next(m);if(typeof w.retain=="number"){var A={};typeof b.retain=="number"?A.retain=m:A.insert=b.insert;var S=l.attributes.compose(b.attributes,w.attributes,typeof b.retain=="number");if(S&&(A.attributes=S),y.push(A),!p.hasNext()&&a(y.ops[y.ops.length-1],A)){var E=new d(f.rest());return y.concat(E).chop()}}else typeof w.delete=="number"&&typeof b.retain=="number"&&y.push(w)}return y.chop()},d.prototype.concat=function(c){var f=new d(this.ops.slice());return c.ops.length>0&&(f.push(c.ops[0]),f.ops=f.ops.concat(c.ops.slice(1))),f},d.prototype.diff=function(c,f){if(this.ops===c.ops)return new d;var p=[this,c].map(function(m){return m.map(function(b){if(b.insert!=null)return typeof b.insert=="string"?b.insert:u;var w=m===c?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")}),v=new d,h=i(p[0],p[1],f),g=l.iterator(this.ops),y=l.iterator(c.ops);return h.forEach(function(m){for(var b=m[1].length;b>0;){var w=0;switch(m[0]){case i.INSERT:w=Math.min(y.peekLength(),b),v.push(y.next(w));break;case i.DELETE:w=Math.min(b,g.peekLength()),g.next(w),v.delete(w);break;case i.EQUAL:w=Math.min(g.peekLength(),y.peekLength(),b);var A=g.next(w),S=y.next(w);a(A.insert,S.insert)?v.retain(w,l.attributes.diff(A.attributes,S.attributes)):v.push(S).delete(w);break}b-=w}}),v.chop()},d.prototype.eachLine=function(c,f){f=f||`
- `;for(var p=l.iterator(this.ops),v=new d,h=0;p.hasNext();){if(p.peekType()!=="insert")return;var g=p.peek(),y=l.length(g)-p.peekLength(),m=typeof g.insert=="string"?g.insert.indexOf(f,y)-y:-1;if(m<0)v.push(p.next());else if(m>0)v.push(p.next(m));else{if(c(v,p.next(1).attributes||{},h)===!1)return;h+=1,v=new d}}v.length()>0&&c(v,{},h)},d.prototype.transform=function(c,f){if(f=!!f,typeof c=="number")return this.transformPosition(c,f);for(var p=l.iterator(this.ops),v=l.iterator(c.ops),h=new d;p.hasNext()||v.hasNext();)if(p.peekType()==="insert"&&(f||v.peekType()!=="insert"))h.retain(l.length(p.next()));else if(v.peekType()==="insert")h.push(v.next());else{var g=Math.min(p.peekLength(),v.peekLength()),y=p.next(g),m=v.next(g);if(y.delete)continue;m.delete?h.push(m):h.retain(g,l.attributes.transform(y.attributes,m.attributes,f))}return h.chop()},d.prototype.transformPosition=function(c,f){f=!!f;for(var p=l.iterator(this.ops),v=0;p.hasNext()&&v<=c;){var h=p.peekLength(),g=p.peekType();if(p.next(),g==="delete"){c-=Math.min(h,c-v);continue}else g==="insert"&&(v<c||!f)&&(c+=h);v+=h}return c},n.exports=d}),(function(n,r){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):i.call(p)==="[object Array]"},u=function(p){if(!p||i.call(p)!=="[object Object]")return!1;var v=o.call(p,"constructor"),h=p.constructor&&p.constructor.prototype&&o.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!v&&!h)return!1;var g;for(g in p);return typeof g>"u"||o.call(p,g)},d=function(p,v){a&&v.name==="__proto__"?a(p,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):p[v.name]=v.newValue},c=function(p,v){if(v==="__proto__")if(o.call(p,v)){if(s)return s(p,v).value}else return;return p[v]};n.exports=function f(){var p,v,h,g,y,m,b=arguments[0],w=1,A=arguments.length,S=!1;for(typeof b=="boolean"&&(S=b,b=arguments[1]||{},w=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});w<A;++w)if(p=arguments[w],p!=null)for(v in p)h=c(b,v),g=c(p,v),b!==g&&(S&&g&&(u(g)||(y=l(g)))?(y?(y=!1,m=h&&l(h)?h:[]):m=h&&u(h)?h:{},d(b,{name:v,newValue:f(S,m,g)})):typeof g<"u"&&d(b,{name:v,newValue:g}));return b}}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var i=(function(){function O(k,R){for(var N=0;N<R.length;N++){var W=R[N];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(k,W.key,W)}}return function(k,R,N){return R&&O(k.prototype,R),N&&O(k,N),k}})(),a=function O(k,R,N){k===null&&(k=Function.prototype);var W=Object.getOwnPropertyDescriptor(k,R);if(W===void 0){var B=Object.getPrototypeOf(k);return B===null?void 0:O(B,R,N)}else{if("value"in W)return W.value;var z=W.get;return z===void 0?void 0:z.call(N)}},s=o(3),l=b(s),u=o(2),d=b(u),c=o(0),f=b(c),p=o(16),v=b(p),h=o(6),g=b(h),y=o(7),m=b(y);function b(O){return O&&O.__esModule?O:{default:O}}function w(O,k){if(!(O instanceof k))throw new TypeError("Cannot call a class as a function")}function A(O,k){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:O}function S(O,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);O.prototype=Object.create(k&&k.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(O,k):O.__proto__=k)}var E=1,D=(function(O){S(k,O);function k(){return w(this,k),A(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return i(k,[{key:"attach",value:function(){a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"attach",this).call(this),this.attributes=new f.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(N,W){var B=f.default.query(N,f.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,W)}},{key:"formatAt",value:function(N,W,B,z){this.format(B,z)}},{key:"insertAt",value:function(N,W,B){if(typeof W=="string"&&W.endsWith(`
- `)){var z=f.default.create(_.blotName);this.parent.insertBefore(z,N===0?this:this.next),z.insertAt(0,W.slice(0,-1))}else a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,N,W,B)}}]),k})(f.default.Embed);D.scope=f.default.Scope.BLOCK_BLOT;var _=(function(O){S(k,O);function k(R){w(this,k);var N=A(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,R));return N.cache={},N}return i(k,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(f.default.Leaf).reduce(function(N,W){return W.length()===0?N:N.insert(W.value(),M(W))},new d.default).insert(`
- `,M(this))),this.cache.delta}},{key:"deleteAt",value:function(N,W){a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"deleteAt",this).call(this,N,W),this.cache={}}},{key:"formatAt",value:function(N,W,B,z){W<=0||(f.default.query(B,f.default.Scope.BLOCK)?N+W===this.length()&&this.format(B,z):a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"formatAt",this).call(this,N,Math.min(W,this.length()-N-1),B,z),this.cache={})}},{key:"insertAt",value:function(N,W,B){if(B!=null)return a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,N,W,B);if(W.length!==0){var z=W.split(`
- `),j=z.shift();j.length>0&&(N<this.length()-1||this.children.tail==null?a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,Math.min(N,this.length()-1),j):this.children.tail.insertAt(this.children.tail.length(),j),this.cache={});var q=this;z.reduce(function(Y,U){return q=q.split(Y,!0),q.insertAt(0,U),U.length},N+j.length)}}},{key:"insertBefore",value:function(N,W){var B=this.children.head;a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertBefore",this).call(this,N,W),B instanceof v.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(N,W){a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"moveChildren",this).call(this,N,W),this.cache={}}},{key:"optimize",value:function(N){a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,N),this.cache={}}},{key:"path",value:function(N){return a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"path",this).call(this,N,!0)}},{key:"removeChild",value:function(N){a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"removeChild",this).call(this,N),this.cache={}}},{key:"split",value:function(N){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(W&&(N===0||N>=this.length()-E)){var B=this.clone();return N===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var z=a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"split",this).call(this,N,W);return this.cache={},z}}}]),k})(f.default.Block);_.blotName="block",_.tagName="P",_.defaultChild="break",_.allowedChildren=[g.default,f.default.Embed,m.default];function M(O){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return O==null||(typeof O.formats=="function"&&(k=(0,l.default)(k,O.formats())),O.parent==null||O.parent.blotName=="scroll"||O.parent.statics.scope!==O.statics.scope)?k:M(O.parent,k)}r.bubbleFormats=M,r.BlockEmbed=D,r.default=_}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},a=(function(){function q(Y,U){var F=[],H=!0,re=!1,X=void 0;try{for(var te=Y[Symbol.iterator](),Z;!(H=(Z=te.next()).done)&&(F.push(Z.value),!(U&&F.length===U));H=!0);}catch(le){re=!0,X=le}finally{try{!H&&te.return&&te.return()}finally{if(re)throw X}}return F}return function(Y,U){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return q(Y,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function q(Y,U){for(var F=0;F<U.length;F++){var H=U[F];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(Y,H.key,H)}}return function(Y,U,F){return U&&q(Y.prototype,U),F&&q(Y,F),Y}})();o(50);var l=o(2),u=M(l),d=o(14),c=M(d),f=o(8),p=M(f),v=o(9),h=M(v),g=o(0),y=M(g),m=o(15),b=M(m),w=o(3),A=M(w),S=o(10),E=M(S),D=o(34),_=M(D);function M(q){return q&&q.__esModule?q:{default:q}}function O(q,Y,U){return Y in q?Object.defineProperty(q,Y,{value:U,enumerable:!0,configurable:!0,writable:!0}):q[Y]=U,q}function k(q,Y){if(!(q instanceof Y))throw new TypeError("Cannot call a class as a function")}var R=(0,E.default)("quill"),N=(function(){s(q,null,[{key:"debug",value:function(U){U===!0&&(U="log"),E.default.level(U)}},{key:"find",value:function(U){return U.__quill||y.default.find(U)}},{key:"import",value:function(U){return this.imports[U]==null&&R.error("Cannot import "+U+". Are you sure it was registered?"),this.imports[U]}},{key:"register",value:function(U,F){var H=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof U!="string"){var X=U.attrName||U.blotName;typeof X=="string"?this.register("formats/"+X,U,F):Object.keys(U).forEach(function(te){H.register(te,U[te],F)})}else this.imports[U]!=null&&!re&&R.warn("Overwriting "+U+" with",F),this.imports[U]=F,(U.startsWith("blots/")||U.startsWith("formats/"))&&F.blotName!=="abstract"?y.default.register(F):U.startsWith("modules")&&typeof F.register=="function"&&F.register()}}]);function q(Y){var U=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(k(this,q),this.options=W(Y,F),this.container=this.options.container,this.container==null)return R.error("Invalid Quill container",Y);this.options.debug&&q.debug(this.options.debug);var H=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new p.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new b.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(p.default.events.EDITOR_CHANGE,function(X){X===p.default.events.TEXT_CHANGE&&U.root.classList.toggle("ql-blank",U.editor.isBlank())}),this.emitter.on(p.default.events.SCROLL_UPDATE,function(X,te){var Z=U.selection.lastRange,le=Z&&Z.length===0?Z.index:void 0;B.call(U,function(){return U.editor.update(null,te,le)},X)});var re=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+H+"<p><br></p></div>");this.setContents(re),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(q,[{key:"addContainer",value:function(U){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof U=="string"){var H=U;U=document.createElement("div"),U.classList.add(H)}return this.container.insertBefore(U,F),U}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(U,F,H){var re=this,X=z(U,F,H),te=a(X,4);return U=te[0],F=te[1],H=te[3],B.call(this,function(){return re.editor.deleteText(U,F)},H,U,-1*F)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(U),this.container.classList.toggle("ql-disabled",!U)}},{key:"focus",value:function(){var U=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=U,this.scrollIntoView()}},{key:"format",value:function(U,F){var H=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;return B.call(this,function(){var X=H.getSelection(!0),te=new u.default;if(X==null)return te;if(y.default.query(U,y.default.Scope.BLOCK))te=H.editor.formatLine(X.index,X.length,O({},U,F));else{if(X.length===0)return H.selection.format(U,F),te;te=H.editor.formatText(X.index,X.length,O({},U,F))}return H.setSelection(X,p.default.sources.SILENT),te},re)}},{key:"formatLine",value:function(U,F,H,re,X){var te=this,Z=void 0,le=z(U,F,H,re,X),ve=a(le,4);return U=ve[0],F=ve[1],Z=ve[2],X=ve[3],B.call(this,function(){return te.editor.formatLine(U,F,Z)},X,U,0)}},{key:"formatText",value:function(U,F,H,re,X){var te=this,Z=void 0,le=z(U,F,H,re,X),ve=a(le,4);return U=ve[0],F=ve[1],Z=ve[2],X=ve[3],B.call(this,function(){return te.editor.formatText(U,F,Z)},X,U,0)}},{key:"getBounds",value:function(U){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,H=void 0;typeof U=="number"?H=this.selection.getBounds(U,F):H=this.selection.getBounds(U.index,U.length);var re=this.container.getBoundingClientRect();return{bottom:H.bottom-re.top,height:H.height,left:H.left-re.left,right:H.right-re.left,top:H.top-re.top,width:H.width}}},{key:"getContents",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-U,H=z(U,F),re=a(H,2);return U=re[0],F=re[1],this.editor.getContents(U,F)}},{key:"getFormat",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof U=="number"?this.editor.getFormat(U,F):this.editor.getFormat(U.index,U.length)}},{key:"getIndex",value:function(U){return U.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(U){return this.scroll.leaf(U)}},{key:"getLine",value:function(U){return this.scroll.line(U)}},{key:"getLines",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof U!="number"?this.scroll.lines(U.index,U.length):this.scroll.lines(U,F)}},{key:"getModule",value:function(U){return this.theme.modules[U]}},{key:"getSelection",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return U&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-U,H=z(U,F),re=a(H,2);return U=re[0],F=re[1],this.editor.getText(U,F)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(U,F,H){var re=this,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return B.call(this,function(){return re.editor.insertEmbed(U,F,H)},X,U)}},{key:"insertText",value:function(U,F,H,re,X){var te=this,Z=void 0,le=z(U,0,H,re,X),ve=a(le,4);return U=ve[0],Z=ve[2],X=ve[3],B.call(this,function(){return te.editor.insertText(U,F,Z)},X,U,F.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(U,F,H){this.clipboard.dangerouslyPasteHTML(U,F,H)}},{key:"removeFormat",value:function(U,F,H){var re=this,X=z(U,F,H),te=a(X,4);return U=te[0],F=te[1],H=te[3],B.call(this,function(){return re.editor.removeFormat(U,F)},H,U)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(U){var F=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return B.call(this,function(){U=new u.default(U);var re=F.getLength(),X=F.editor.deleteText(0,re),te=F.editor.applyDelta(U),Z=te.ops[te.ops.length-1];Z!=null&&typeof Z.insert=="string"&&Z.insert[Z.insert.length-1]===`
- `&&(F.editor.deleteText(F.getLength()-1,1),te.delete(1));var le=X.compose(te);return le},H)}},{key:"setSelection",value:function(U,F,H){if(U==null)this.selection.setRange(null,F||q.sources.API);else{var re=z(U,F,H),X=a(re,4);U=X[0],F=X[1],H=X[3],this.selection.setRange(new m.Range(U,F),H),H!==p.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(U){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API,H=new u.default().insert(U);return this.setContents(H,F)}},{key:"update",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,F=this.scroll.update(U);return this.selection.update(U),F}},{key:"updateContents",value:function(U){var F=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return B.call(this,function(){return U=new u.default(U),F.editor.applyDelta(U,H)},H,!0)}}]),q})();N.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},N.events=p.default.events,N.sources=p.default.sources,N.version="1.3.7",N.imports={delta:u.default,parchment:y.default,"core/module":h.default,"core/theme":_.default};function W(q,Y){if(Y=(0,A.default)(!0,{container:q,modules:{clipboard:!0,keyboard:!0,history:!0}},Y),!Y.theme||Y.theme===N.DEFAULTS.theme)Y.theme=_.default;else if(Y.theme=N.import("themes/"+Y.theme),Y.theme==null)throw new Error("Invalid theme "+Y.theme+". Did you register it?");var U=(0,A.default)(!0,{},Y.theme.DEFAULTS);[U,Y].forEach(function(re){re.modules=re.modules||{},Object.keys(re.modules).forEach(function(X){re.modules[X]===!0&&(re.modules[X]={})})});var F=Object.keys(U.modules).concat(Object.keys(Y.modules)),H=F.reduce(function(re,X){var te=N.import("modules/"+X);return te==null?R.error("Cannot load "+X+" module. Are you sure you registered it?"):re[X]=te.DEFAULTS||{},re},{});return Y.modules!=null&&Y.modules.toolbar&&Y.modules.toolbar.constructor!==Object&&(Y.modules.toolbar={container:Y.modules.toolbar}),Y=(0,A.default)(!0,{},N.DEFAULTS,{modules:H},U,Y),["bounds","container","scrollingContainer"].forEach(function(re){typeof Y[re]=="string"&&(Y[re]=document.querySelector(Y[re]))}),Y.modules=Object.keys(Y.modules).reduce(function(re,X){return Y.modules[X]&&(re[X]=Y.modules[X]),re},{}),Y}function B(q,Y,U,F){if(this.options.strict&&!this.isEnabled()&&Y===p.default.sources.USER)return new u.default;var H=U==null?null:this.getSelection(),re=this.editor.delta,X=q();if(H!=null&&(U===!0&&(U=H.index),F==null?H=j(H,X,Y):F!==0&&(H=j(H,U,F,Y)),this.setSelection(H,p.default.sources.SILENT)),X.length()>0){var te,Z=[p.default.events.TEXT_CHANGE,X,re,Y];if((te=this.emitter).emit.apply(te,[p.default.events.EDITOR_CHANGE].concat(Z)),Y!==p.default.sources.SILENT){var le;(le=this.emitter).emit.apply(le,Z)}}return X}function z(q,Y,U,F,H){var re={};return typeof q.index=="number"&&typeof q.length=="number"?typeof Y!="number"?(H=F,F=U,U=Y,Y=q.length,q=q.index):(Y=q.length,q=q.index):typeof Y!="number"&&(H=F,F=U,U=Y,Y=0),(typeof U>"u"?"undefined":i(U))==="object"?(re=U,H=F):typeof U=="string"&&(F!=null?re[U]=F:H=U),H=H||p.default.sources.API,[q,Y,re,H]}function j(q,Y,U,F){if(q==null)return null;var H=void 0,re=void 0;if(Y instanceof u.default){var X=[q.index,q.index+q.length].map(function(ve){return Y.transformPosition(ve,F!==p.default.sources.USER)}),te=a(X,2);H=te[0],re=te[1]}else{var Z=[q.index,q.index+q.length].map(function(ve){return ve<Y||ve===Y&&F===p.default.sources.USER?ve:U>=0?ve+U:Math.max(Y,ve+U)}),le=a(Z,2);H=le[0],re=le[1]}return new m.Range(H,re-H)}r.expandConfig=W,r.overload=z,r.default=N}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),a=function g(y,m,b){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,m);if(w===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:g(A,m,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},s=o(7),l=c(s),u=o(0),d=c(u);function c(g){return g&&g.__esModule?g:{default:g}}function f(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function p(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function v(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var h=(function(g){v(y,g);function y(){return f(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"formatAt",value:function(b,w,A,S){if(y.compare(this.statics.blotName,A)<0&&d.default.query(A,d.default.Scope.BLOT)){var E=this.isolate(b,w);S&&E.wrap(A,S)}else a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,b,w,A,S)}},{key:"optimize",value:function(b){if(a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,b),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var w=this.parent.isolate(this.offset(),this.length());this.moveChildren(w),w.wrap(this)}}}],[{key:"compare",value:function(b,w){var A=y.order.indexOf(b),S=y.order.indexOf(w);return A>=0||S>=0?A-S:b===w?0:b<w?-1:1}}]),y})(d.default.Inline);h.allowedChildren=[h,d.default.Embed,l.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(0),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default.Text);r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function m(b,w){for(var A=0;A<w.length;A++){var S=w[A];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(b,S.key,S)}}return function(b,w,A){return w&&m(b.prototype,w),A&&m(b,A),b}})(),a=function m(b,w,A){b===null&&(b=Function.prototype);var S=Object.getOwnPropertyDescriptor(b,w);if(S===void 0){var E=Object.getPrototypeOf(b);return E===null?void 0:m(E,w,A)}else{if("value"in S)return S.value;var D=S.get;return D===void 0?void 0:D.call(A)}},s=o(54),l=c(s),u=o(10),d=c(u);function c(m){return m&&m.__esModule?m:{default:m}}function f(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function p(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function v(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var h=(0,d.default)("quill:events"),g=["selectionchange","mousedown","mouseup","click"];g.forEach(function(m){document.addEventListener(m,function(){for(var b=arguments.length,w=Array(b),A=0;A<b;A++)w[A]=arguments[A];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var E;(E=S.__quill.emitter).handleDOM.apply(E,w)}})})});var y=(function(m){v(b,m);function b(){f(this,b);var w=p(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return w.listeners={},w.on("error",h.error),w}return i(b,[{key:"emit",value:function(){h.log.apply(h,arguments),a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(A){for(var S=arguments.length,E=Array(S>1?S-1:0),D=1;D<S;D++)E[D-1]=arguments[D];(this.listeners[A.type]||[]).forEach(function(_){var M=_.node,O=_.handler;(A.target===M||M.contains(A.target))&&O.apply(void 0,[A].concat(E))})}},{key:"listenDOM",value:function(A,S,E){this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push({node:S,handler:E})}}]),b})(l.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},r.default=y}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});function i(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}var a=function s(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,s),this.quill=l,this.options=u};a.DEFAULTS={},r.default=a}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=["error","warn","log","info"],a="warn";function s(u){if(i.indexOf(u)<=i.indexOf(a)){for(var d,c=arguments.length,f=Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];(d=console)[u].apply(d,f)}}function l(u){return i.reduce(function(d,c){return d[c]=s.bind(console,c,u),d},{})}s.level=l.level=function(u){a=u},r.default=l}),(function(n,r,o){var i=Array.prototype.slice,a=o(52),s=o(53),l=n.exports=function(f,p,v){return v||(v={}),f===p?!0:f instanceof Date&&p instanceof Date?f.getTime()===p.getTime():!f||!p||typeof f!="object"&&typeof p!="object"?v.strict?f===p:f==p:c(f,p,v)};function u(f){return f==null}function d(f){return!(!f||typeof f!="object"||typeof f.length!="number"||typeof f.copy!="function"||typeof f.slice!="function"||f.length>0&&typeof f[0]!="number")}function c(f,p,v){var h,g;if(u(f)||u(p)||f.prototype!==p.prototype)return!1;if(s(f))return s(p)?(f=i.call(f),p=i.call(p),l(f,p,v)):!1;if(d(f)){if(!d(p)||f.length!==p.length)return!1;for(h=0;h<f.length;h++)if(f[h]!==p[h])return!1;return!0}try{var y=a(f),m=a(p)}catch{return!1}if(y.length!=m.length)return!1;for(y.sort(),m.sort(),h=y.length-1;h>=0;h--)if(y[h]!=m[h])return!1;for(h=y.length-1;h>=0;h--)if(g=y[h],!l(f[g],p[g],v))return!1;return typeof f==typeof p}}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(1),a=(function(){function s(l,u,d){d===void 0&&(d={}),this.attrName=l,this.keyName=u;var c=i.Scope.TYPE&i.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&i.Scope.LEVEL|c:this.scope=i.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return s.keys=function(l){return[].map.call(l.attributes,function(u){return u.name})},s.prototype.add=function(l,u){return this.canAdd(l,u)?(l.setAttribute(this.keyName,u),!0):!1},s.prototype.canAdd=function(l,u){var d=i.query(l,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},s.prototype.remove=function(l){l.removeAttribute(this.keyName)},s.prototype.value=function(l){var u=l.getAttribute(this.keyName);return this.canAdd(l,u)&&u?u:""},s})();r.default=a}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var i=(function(){function D(_,M){var O=[],k=!0,R=!1,N=void 0;try{for(var W=_[Symbol.iterator](),B;!(k=(B=W.next()).done)&&(O.push(B.value),!(M&&O.length===M));k=!0);}catch(z){R=!0,N=z}finally{try{!k&&W.return&&W.return()}finally{if(R)throw N}}return O}return function(_,M){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return D(_,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function D(_,M){for(var O=0;O<M.length;O++){var k=M[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}return function(_,M,O){return M&&D(_.prototype,M),O&&D(_,O),_}})(),s=function D(_,M,O){_===null&&(_=Function.prototype);var k=Object.getOwnPropertyDescriptor(_,M);if(k===void 0){var R=Object.getPrototypeOf(_);return R===null?void 0:D(R,M,O)}else{if("value"in k)return k.value;var N=k.get;return N===void 0?void 0:N.call(O)}},l=o(2),u=m(l),d=o(0),c=m(d),f=o(4),p=m(f),v=o(6),h=m(v),g=o(7),y=m(g);function m(D){return D&&D.__esModule?D:{default:D}}function b(D,_){if(!(D instanceof _))throw new TypeError("Cannot call a class as a function")}function w(D,_){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:D}function A(D,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);D.prototype=Object.create(_&&_.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(D,_):D.__proto__=_)}var S=(function(D){A(_,D);function _(){return b(this,_),w(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return _})(h.default);S.blotName="code",S.tagName="CODE";var E=(function(D){A(_,D);function _(){return b(this,_),w(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"delta",value:function(){var O=this,k=this.domNode.textContent;return k.endsWith(`
- `)&&(k=k.slice(0,-1)),k.split(`
- `).reduce(function(R,N){return R.insert(N).insert(`
- `,O.formats())},new u.default)}},{key:"format",value:function(O,k){if(!(O===this.statics.blotName&&k)){var R=this.descendant(y.default,this.length()-1),N=i(R,1),W=N[0];W?.deleteAt(W.length()-1,1),s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,O,k)}}},{key:"formatAt",value:function(O,k,R,N){if(k!==0&&!(c.default.query(R,c.default.Scope.BLOCK)==null||R===this.statics.blotName&&N===this.statics.formats(this.domNode))){var W=this.newlineIndex(O);if(!(W<0||W>=O+k)){var B=this.newlineIndex(O,!0)+1,z=W-B+1,j=this.isolate(B,z),q=j.next;j.format(R,N),q instanceof _&&q.formatAt(0,O-B+k-z,R,N)}}}},{key:"insertAt",value:function(O,k,R){if(R==null){var N=this.descendant(y.default,O),W=i(N,2),B=W[0],z=W[1];B.insertAt(z,k)}}},{key:"length",value:function(){var O=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
- `)?O:O+1}},{key:"newlineIndex",value:function(O){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(k)return this.domNode.textContent.slice(0,O).lastIndexOf(`
- `);var R=this.domNode.textContent.slice(O).indexOf(`
- `);return R>-1?O+R:-1}},{key:"optimize",value:function(O){this.domNode.textContent.endsWith(`
- `)||this.appendChild(c.default.create("text",`
- `)),s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,O);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===k.statics.formats(k.domNode)&&(k.optimize(O),k.moveChildren(this),k.remove())}},{key:"replace",value:function(O){s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"replace",this).call(this,O),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(k){var R=c.default.find(k);R==null?k.parentNode.removeChild(k):R instanceof c.default.Embed?R.remove():R.unwrap()})}}],[{key:"create",value:function(O){var k=s(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,O);return k.setAttribute("spellcheck",!1),k}},{key:"formats",value:function(){return!0}}]),_})(p.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",r.Code=S,r.default=E}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},a=(function(){function q(Y,U){var F=[],H=!0,re=!1,X=void 0;try{for(var te=Y[Symbol.iterator](),Z;!(H=(Z=te.next()).done)&&(F.push(Z.value),!(U&&F.length===U));H=!0);}catch(le){re=!0,X=le}finally{try{!H&&te.return&&te.return()}finally{if(re)throw X}}return F}return function(Y,U){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return q(Y,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function q(Y,U){for(var F=0;F<U.length;F++){var H=U[F];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(Y,H.key,H)}}return function(Y,U,F){return U&&q(Y.prototype,U),F&&q(Y,F),Y}})(),l=o(2),u=k(l),d=o(20),c=k(d),f=o(0),p=k(f),v=o(13),h=k(v),g=o(24),y=k(g),m=o(4),b=k(m),w=o(16),A=k(w),S=o(21),E=k(S),D=o(11),_=k(D),M=o(3),O=k(M);function k(q){return q&&q.__esModule?q:{default:q}}function R(q,Y,U){return Y in q?Object.defineProperty(q,Y,{value:U,enumerable:!0,configurable:!0,writable:!0}):q[Y]=U,q}function N(q,Y){if(!(q instanceof Y))throw new TypeError("Cannot call a class as a function")}var W=/^[ -~]*$/,B=(function(){function q(Y){N(this,q),this.scroll=Y,this.delta=this.getDelta()}return s(q,[{key:"applyDelta",value:function(U){var F=this,H=!1;this.scroll.update();var re=this.scroll.length();return this.scroll.batchStart(),U=j(U),U.reduce(function(X,te){var Z=te.retain||te.delete||te.insert.length||1,le=te.attributes||{};if(te.insert!=null){if(typeof te.insert=="string"){var ve=te.insert;ve.endsWith(`
- `)&&H&&(H=!1,ve=ve.slice(0,-1)),X>=re&&!ve.endsWith(`
- `)&&(H=!0),F.scroll.insertAt(X,ve);var Pe=F.scroll.line(X),Ae=a(Pe,2),he=Ae[0],Ee=Ae[1],Q=(0,O.default)({},(0,m.bubbleFormats)(he));if(he instanceof b.default){var me=he.descendant(p.default.Leaf,Ee),De=a(me,1),pe=De[0];Q=(0,O.default)(Q,(0,m.bubbleFormats)(pe))}le=c.default.attributes.diff(Q,le)||{}}else if(i(te.insert)==="object"){var ie=Object.keys(te.insert)[0];if(ie==null)return X;F.scroll.insertAt(X,ie,te.insert[ie])}re+=Z}return Object.keys(le).forEach(function(ue){F.scroll.formatAt(X,Z,ue,le[ue])}),X+Z},0),U.reduce(function(X,te){return typeof te.delete=="number"?(F.scroll.deleteAt(X,te.delete),X):X+(te.retain||te.insert.length||1)},0),this.scroll.batchEnd(),this.update(U)}},{key:"deleteText",value:function(U,F){return this.scroll.deleteAt(U,F),this.update(new u.default().retain(U).delete(F))}},{key:"formatLine",value:function(U,F){var H=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(re).forEach(function(X){if(!(H.scroll.whitelist!=null&&!H.scroll.whitelist[X])){var te=H.scroll.lines(U,Math.max(F,1)),Z=F;te.forEach(function(le){var ve=le.length();if(!(le instanceof h.default))le.format(X,re[X]);else{var Pe=U-le.offset(H.scroll),Ae=le.newlineIndex(Pe+Z)-Pe+1;le.formatAt(Pe,Ae,X,re[X])}Z-=ve})}}),this.scroll.optimize(),this.update(new u.default().retain(U).retain(F,(0,E.default)(re)))}},{key:"formatText",value:function(U,F){var H=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(re).forEach(function(X){H.scroll.formatAt(U,F,X,re[X])}),this.update(new u.default().retain(U).retain(F,(0,E.default)(re)))}},{key:"getContents",value:function(U,F){return this.delta.slice(U,U+F)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(U,F){return U.concat(F.delta())},new u.default)}},{key:"getFormat",value:function(U){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,H=[],re=[];F===0?this.scroll.path(U).forEach(function(te){var Z=a(te,1),le=Z[0];le instanceof b.default?H.push(le):le instanceof p.default.Leaf&&re.push(le)}):(H=this.scroll.lines(U,F),re=this.scroll.descendants(p.default.Leaf,U,F));var X=[H,re].map(function(te){if(te.length===0)return{};for(var Z=(0,m.bubbleFormats)(te.shift());Object.keys(Z).length>0;){var le=te.shift();if(le==null)return Z;Z=z((0,m.bubbleFormats)(le),Z)}return Z});return O.default.apply(O.default,X)}},{key:"getText",value:function(U,F){return this.getContents(U,F).filter(function(H){return typeof H.insert=="string"}).map(function(H){return H.insert}).join("")}},{key:"insertEmbed",value:function(U,F,H){return this.scroll.insertAt(U,F,H),this.update(new u.default().retain(U).insert(R({},F,H)))}},{key:"insertText",value:function(U,F){var H=this,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F=F.replace(/\r\n/g,`
- `).replace(/\r/g,`
- `),this.scroll.insertAt(U,F),Object.keys(re).forEach(function(X){H.scroll.formatAt(U,F.length,X,re[X])}),this.update(new u.default().retain(U).insert(F,(0,E.default)(re)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var U=this.scroll.children.head;return U.statics.blotName!==b.default.blotName||U.children.length>1?!1:U.children.head instanceof A.default}},{key:"removeFormat",value:function(U,F){var H=this.getText(U,F),re=this.scroll.line(U+F),X=a(re,2),te=X[0],Z=X[1],le=0,ve=new u.default;te!=null&&(te instanceof h.default?le=te.newlineIndex(Z)-Z+1:le=te.length()-Z,ve=te.delta().slice(Z,Z+le-1).insert(`
- `));var Pe=this.getContents(U,F+le),Ae=Pe.diff(new u.default().insert(H).concat(ve)),he=new u.default().retain(U).concat(Ae);return this.applyDelta(he)}},{key:"update",value:function(U){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,re=this.delta;if(F.length===1&&F[0].type==="characterData"&&F[0].target.data.match(W)&&p.default.find(F[0].target)){var X=p.default.find(F[0].target),te=(0,m.bubbleFormats)(X),Z=X.offset(this.scroll),le=F[0].oldValue.replace(y.default.CONTENTS,""),ve=new u.default().insert(le),Pe=new u.default().insert(X.value()),Ae=new u.default().retain(Z).concat(ve.diff(Pe,H));U=Ae.reduce(function(he,Ee){return Ee.insert?he.insert(Ee.insert,te):he.push(Ee)},new u.default),this.delta=re.compose(U)}else this.delta=this.getDelta(),(!U||!(0,_.default)(re.compose(U),this.delta))&&(U=re.diff(this.delta,H));return U}}]),q})();function z(q,Y){return Object.keys(Y).reduce(function(U,F){return q[F]==null||(Y[F]===q[F]?U[F]=Y[F]:Array.isArray(Y[F])?Y[F].indexOf(q[F])<0&&(U[F]=Y[F].concat([q[F]])):U[F]=[Y[F],q[F]]),U},{})}function j(q){return q.reduce(function(Y,U){if(U.insert===1){var F=(0,E.default)(U.attributes);return delete F.image,Y.insert({image:U.attributes.image},F)}if(U.attributes!=null&&(U.attributes.list===!0||U.attributes.bullet===!0)&&(U=(0,E.default)(U),U.attributes.list?U.attributes.list="ordered":(U.attributes.list="bullet",delete U.attributes.bullet)),typeof U.insert=="string"){var H=U.insert.replace(/\r\n/g,`
- `).replace(/\r/g,`
- `);return Y.insert(H,U.attributes)}return Y.push(U)},new u.default)}r.default=B}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var i=(function(){function D(_,M){var O=[],k=!0,R=!1,N=void 0;try{for(var W=_[Symbol.iterator](),B;!(k=(B=W.next()).done)&&(O.push(B.value),!(M&&O.length===M));k=!0);}catch(z){R=!0,N=z}finally{try{!k&&W.return&&W.return()}finally{if(R)throw N}}return O}return function(_,M){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return D(_,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function D(_,M){for(var O=0;O<M.length;O++){var k=M[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}return function(_,M,O){return M&&D(_.prototype,M),O&&D(_,O),_}})(),s=o(0),l=y(s),u=o(21),d=y(u),c=o(11),f=y(c),p=o(8),v=y(p),h=o(10),g=y(h);function y(D){return D&&D.__esModule?D:{default:D}}function m(D){if(Array.isArray(D)){for(var _=0,M=Array(D.length);_<D.length;_++)M[_]=D[_];return M}else return Array.from(D)}function b(D,_){if(!(D instanceof _))throw new TypeError("Cannot call a class as a function")}var w=(0,g.default)("quill:selection"),A=function D(_){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;b(this,D),this.index=_,this.length=M},S=(function(){function D(_,M){var O=this;b(this,D),this.emitter=M,this.scroll=_,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new A(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){O.mouseDown||setTimeout(O.update.bind(O,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(k,R){k===v.default.events.TEXT_CHANGE&&R.length()>0&&O.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(O.hasFocus()){var k=O.getNativeRange();k!=null&&k.start.node!==O.cursor.textNode&&O.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{O.setNativeRange(k.start.node,k.start.offset,k.end.node,k.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(k,R){if(R.range){var N=R.range,W=N.startNode,B=N.startOffset,z=N.endNode,j=N.endOffset;O.setNativeRange(W,B,z,j)}}),this.update(v.default.sources.SILENT)}return a(D,[{key:"handleComposition",value:function(){var M=this;this.root.addEventListener("compositionstart",function(){M.composing=!0}),this.root.addEventListener("compositionend",function(){if(M.composing=!1,M.cursor.parent){var O=M.cursor.restore();if(!O)return;setTimeout(function(){M.setNativeRange(O.startNode,O.startOffset,O.endNode,O.endOffset)},1)}})}},{key:"handleDragging",value:function(){var M=this;this.emitter.listenDOM("mousedown",document.body,function(){M.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){M.mouseDown=!1,M.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(M,O){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[M])){this.scroll.update();var k=this.getNativeRange();if(!(k==null||!k.native.collapsed||l.default.query(M,l.default.Scope.BLOCK))){if(k.start.node!==this.cursor.textNode){var R=l.default.find(k.start.node,!1);if(R==null)return;if(R instanceof l.default.Leaf){var N=R.split(k.start.offset);R.parent.insertBefore(this.cursor,N)}else R.insertBefore(this.cursor,k.start.node);this.cursor.attach()}this.cursor.format(M,O),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(M){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=this.scroll.length();M=Math.min(M,k-1),O=Math.min(M+O,k-1)-M;var R=void 0,N=this.scroll.leaf(M),W=i(N,2),B=W[0],z=W[1];if(B==null)return null;var j=B.position(z,!0),q=i(j,2);R=q[0],z=q[1];var Y=document.createRange();if(O>0){Y.setStart(R,z);var U=this.scroll.leaf(M+O),F=i(U,2);if(B=F[0],z=F[1],B==null)return null;var H=B.position(z,!0),re=i(H,2);return R=re[0],z=re[1],Y.setEnd(R,z),Y.getBoundingClientRect()}else{var X="left",te=void 0;return R instanceof Text?(z<R.data.length?(Y.setStart(R,z),Y.setEnd(R,z+1)):(Y.setStart(R,z-1),Y.setEnd(R,z),X="right"),te=Y.getBoundingClientRect()):(te=B.domNode.getBoundingClientRect(),z>0&&(X="right")),{bottom:te.top+te.height,height:te.height,left:te[X],right:te[X],top:te.top,width:0}}}},{key:"getNativeRange",value:function(){var M=document.getSelection();if(M==null||M.rangeCount<=0)return null;var O=M.getRangeAt(0);if(O==null)return null;var k=this.normalizeNative(O);return w.info("getNativeRange",k),k}},{key:"getRange",value:function(){var M=this.getNativeRange();if(M==null)return[null,null];var O=this.normalizedToRange(M);return[O,M]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(M){var O=this,k=[[M.start.node,M.start.offset]];M.native.collapsed||k.push([M.end.node,M.end.offset]);var R=k.map(function(B){var z=i(B,2),j=z[0],q=z[1],Y=l.default.find(j,!0),U=Y.offset(O.scroll);return q===0?U:Y instanceof l.default.Container?U+Y.length():U+Y.index(j,q)}),N=Math.min(Math.max.apply(Math,m(R)),this.scroll.length()-1),W=Math.min.apply(Math,[N].concat(m(R)));return new A(W,N-W)}},{key:"normalizeNative",value:function(M){if(!E(this.root,M.startContainer)||!M.collapsed&&!E(this.root,M.endContainer))return null;var O={start:{node:M.startContainer,offset:M.startOffset},end:{node:M.endContainer,offset:M.endOffset},native:M};return[O.start,O.end].forEach(function(k){for(var R=k.node,N=k.offset;!(R instanceof Text)&&R.childNodes.length>0;)if(R.childNodes.length>N)R=R.childNodes[N],N=0;else if(R.childNodes.length===N)R=R.lastChild,N=R instanceof Text?R.data.length:R.childNodes.length+1;else break;k.node=R,k.offset=N}),O}},{key:"rangeToNative",value:function(M){var O=this,k=M.collapsed?[M.index]:[M.index,M.index+M.length],R=[],N=this.scroll.length();return k.forEach(function(W,B){W=Math.min(N-1,W);var z=void 0,j=O.scroll.leaf(W),q=i(j,2),Y=q[0],U=q[1],F=Y.position(U,B!==0),H=i(F,2);z=H[0],U=H[1],R.push(z,U)}),R.length<2&&(R=R.concat(R)),R}},{key:"scrollIntoView",value:function(M){var O=this.lastRange;if(O!=null){var k=this.getBounds(O.index,O.length);if(k!=null){var R=this.scroll.length()-1,N=this.scroll.line(Math.min(O.index,R)),W=i(N,1),B=W[0],z=B;if(O.length>0){var j=this.scroll.line(Math.min(O.index+O.length,R)),q=i(j,1);z=q[0]}if(!(B==null||z==null)){var Y=M.getBoundingClientRect();k.top<Y.top?M.scrollTop-=Y.top-k.top:k.bottom>Y.bottom&&(M.scrollTop+=k.bottom-Y.bottom)}}}}},{key:"setNativeRange",value:function(M,O){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M,R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:O,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(w.info("setNativeRange",M,O,k,R),!(M!=null&&(this.root.parentNode==null||M.parentNode==null||k.parentNode==null))){var W=document.getSelection();if(W!=null)if(M!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||N||M!==B.startContainer||O!==B.startOffset||k!==B.endContainer||R!==B.endOffset){M.tagName=="BR"&&(O=[].indexOf.call(M.parentNode.childNodes,M),M=M.parentNode),k.tagName=="BR"&&(R=[].indexOf.call(k.parentNode.childNodes,k),k=k.parentNode);var z=document.createRange();z.setStart(M,O),z.setEnd(k,R),W.removeAllRanges(),W.addRange(z)}}else W.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(M){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof O=="string"&&(k=O,O=!1),w.info("setRange",M),M!=null){var R=this.rangeToNative(M);this.setNativeRange.apply(this,m(R).concat([O]))}else this.setNativeRange(null);this.update(k)}},{key:"update",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,O=this.lastRange,k=this.getRange(),R=i(k,2),N=R[0],W=R[1];if(this.lastRange=N,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,f.default)(O,this.lastRange)){var B;!this.composing&&W!=null&&W.native.collapsed&&W.start.node!==this.cursor.textNode&&this.cursor.restore();var z=[v.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(O),M];if((B=this.emitter).emit.apply(B,[v.default.events.EDITOR_CHANGE].concat(z)),M!==v.default.sources.SILENT){var j;(j=this.emitter).emit.apply(j,z)}}}}]),D})();function E(D,_){try{_.parentNode}catch{return!1}return _ instanceof Text&&(_=_.parentNode),D.contains(_)}r.Range=A,r.default=S}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(0),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(){return d(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return i(h,[{key:"insertInto",value:function(y,m){y.children.length===0?a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertInto",this).call(this,y,m):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),h})(l.default.Embed);p.blotName="break",p.tagName="BR",r.default=p}),(function(n,r,o){var i=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var v in p)p.hasOwnProperty(v)&&(f[v]=p[v])};return function(f,p){c(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(44),s=o(30),l=o(1),u=(function(c){i(f,c);function f(p){var v=c.call(this,p)||this;return v.build(),v}return f.prototype.appendChild=function(p){this.insertBefore(p)},f.prototype.attach=function(){c.prototype.attach.call(this),this.children.forEach(function(p){p.attach()})},f.prototype.build=function(){var p=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var h=d(v);p.insertBefore(h,p.children.head||void 0)}catch(g){if(g instanceof l.ParchmentError)return;throw g}})},f.prototype.deleteAt=function(p,v){if(p===0&&v===this.length())return this.remove();this.children.forEachAt(p,v,function(h,g,y){h.deleteAt(g,y)})},f.prototype.descendant=function(p,v){var h=this.children.find(v),g=h[0],y=h[1];return p.blotName==null&&p(g)||p.blotName!=null&&g instanceof p?[g,y]:g instanceof f?g.descendant(p,y):[null,-1]},f.prototype.descendants=function(p,v,h){v===void 0&&(v=0),h===void 0&&(h=Number.MAX_VALUE);var g=[],y=h;return this.children.forEachAt(v,h,function(m,b,w){(p.blotName==null&&p(m)||p.blotName!=null&&m instanceof p)&&g.push(m),m instanceof f&&(g=g.concat(m.descendants(p,b,y))),y-=w}),g},f.prototype.detach=function(){this.children.forEach(function(p){p.detach()}),c.prototype.detach.call(this)},f.prototype.formatAt=function(p,v,h,g){this.children.forEachAt(p,v,function(y,m,b){y.formatAt(m,b,h,g)})},f.prototype.insertAt=function(p,v,h){var g=this.children.find(p),y=g[0],m=g[1];if(y)y.insertAt(m,v,h);else{var b=h==null?l.create("text",v):l.create(v,h);this.appendChild(b)}},f.prototype.insertBefore=function(p,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(h){return p instanceof h}))throw new l.ParchmentError("Cannot insert "+p.statics.blotName+" into "+this.statics.blotName);p.insertInto(this,v)},f.prototype.length=function(){return this.children.reduce(function(p,v){return p+v.length()},0)},f.prototype.moveChildren=function(p,v){this.children.forEach(function(h){p.insertBefore(h,v)})},f.prototype.optimize=function(p){if(c.prototype.optimize.call(this,p),this.children.length===0)if(this.statics.defaultChild!=null){var v=l.create(this.statics.defaultChild);this.appendChild(v),v.optimize(p)}else this.remove()},f.prototype.path=function(p,v){v===void 0&&(v=!1);var h=this.children.find(p,v),g=h[0],y=h[1],m=[[this,p]];return g instanceof f?m.concat(g.path(y,v)):(g!=null&&m.push([g,y]),m)},f.prototype.removeChild=function(p){this.children.remove(p)},f.prototype.replace=function(p){p instanceof f&&p.moveChildren(this),c.prototype.replace.call(this,p)},f.prototype.split=function(p,v){if(v===void 0&&(v=!1),!v){if(p===0)return this;if(p===this.length())return this.next}var h=this.clone();return this.parent.insertBefore(h,this.next),this.children.forEachAt(p,this.length(),function(g,y,m){g=g.split(y,v),h.appendChild(g)}),h},f.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},f.prototype.update=function(p,v){var h=this,g=[],y=[];p.forEach(function(m){m.target===h.domNode&&m.type==="childList"&&(g.push.apply(g,m.addedNodes),y.push.apply(y,m.removedNodes))}),y.forEach(function(m){if(!(m.parentNode!=null&&m.tagName!=="IFRAME"&&document.body.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var b=l.find(m);b!=null&&(b.domNode.parentNode==null||b.domNode.parentNode===h.domNode)&&b.detach()}}),g.filter(function(m){return m.parentNode==h.domNode}).sort(function(m,b){return m===b?0:m.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(m){var b=null;m.nextSibling!=null&&(b=l.find(m.nextSibling));var w=d(m);(w.next!=b||w.next==null)&&(w.parent!=null&&w.parent.removeChild(h),h.insertBefore(w,b||void 0))})},f})(s.default);function d(c){var f=l.find(c);if(f==null)try{f=l.create(c)}catch{f=l.create(l.Scope.INLINE),[].slice.call(c.childNodes).forEach(function(v){f.domNode.appendChild(v)}),c.parentNode&&c.parentNode.replaceChild(f.domNode,c),f.attach()}return f}r.default=u}),(function(n,r,o){var i=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var v in p)p.hasOwnProperty(v)&&(f[v]=p[v])};return function(f,p){c(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(12),s=o(31),l=o(17),u=o(1),d=(function(c){i(f,c);function f(p){var v=c.call(this,p)||this;return v.attributes=new s.default(v.domNode),v}return f.formats=function(p){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return p.tagName.toLowerCase()},f.prototype.format=function(p,v){var h=u.query(p);h instanceof a.default?this.attributes.attribute(h,v):v&&h!=null&&(p!==this.statics.blotName||this.formats()[p]!==v)&&this.replaceWith(p,v)},f.prototype.formats=function(){var p=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(p[this.statics.blotName]=v),p},f.prototype.replaceWith=function(p,v){var h=c.prototype.replaceWith.call(this,p,v);return this.attributes.copy(h),h},f.prototype.update=function(p,v){var h=this;c.prototype.update.call(this,p,v),p.some(function(g){return g.target===h.domNode&&g.type==="attributes"})&&this.attributes.build()},f.prototype.wrap=function(p,v){var h=c.prototype.wrap.call(this,p,v);return h instanceof f&&h.statics.scope===this.statics.scope&&this.attributes.move(h),h},f})(l.default);r.default=d}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(30),s=o(1),l=(function(u){i(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.value=function(c){return!0},d.prototype.index=function(c,f){return this.domNode===c||this.domNode.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(f,1):-1},d.prototype.position=function(c,f){var p=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return c>0&&(p+=1),[this.parent.domNode,p]},d.prototype.value=function(){var c;return c={},c[this.statics.blotName]=this.statics.value(this.domNode)||!0,c},d.scope=s.Scope.INLINE_BLOT,d})(a.default);r.default=l}),(function(n,r,o){var i=o(11),a=o(3),s={attributes:{compose:function(u,d,c){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var f=a(!0,{},d);c||(f=Object.keys(f).reduce(function(v,h){return f[h]!=null&&(v[h]=f[h]),v},{}));for(var p in u)u[p]!==void 0&&d[p]===void 0&&(f[p]=u[p]);return Object.keys(f).length>0?f:void 0},diff:function(u,d){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var c=Object.keys(u).concat(Object.keys(d)).reduce(function(f,p){return i(u[p],d[p])||(f[p]=d[p]===void 0?null:d[p]),f},{});return Object.keys(c).length>0?c:void 0},transform:function(u,d,c){if(typeof u!="object")return d;if(typeof d=="object"){if(!c)return d;var f=Object.keys(d).reduce(function(p,v){return u[v]===void 0&&(p[v]=d[v]),p},{});return Object.keys(f).length>0?f:void 0}}},iterator:function(u){return new l(u)},length:function(u){return typeof u.delete=="number"?u.delete:typeof u.retain=="number"?u.retain:typeof u.insert=="string"?u.insert.length:1}};function l(u){this.ops=u,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(u){u||(u=1/0);var d=this.ops[this.index];if(d){var c=this.offset,f=s.length(d);if(u>=f-c?(u=f-c,this.index+=1,this.offset=0):this.offset+=u,typeof d.delete=="number")return{delete:u};var p={};return d.attributes&&(p.attributes=d.attributes),typeof d.retain=="number"?p.retain=u:typeof d.insert=="string"?p.insert=d.insert.substr(c,u):p.insert=d.insert,p}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var u=this.offset,d=this.index,c=this.next(),f=this.ops.slice(this.index);return this.offset=u,this.index=d,[c].concat(f)}else return[]},n.exports=s}),(function(n,r){var o=(function(){function i(h,g){return g!=null&&h instanceof g}var a;try{a=Map}catch{a=function(){}}var s;try{s=Set}catch{s=function(){}}var l;try{l=Promise}catch{l=function(){}}function u(h,g,y,m,b){typeof g=="object"&&(y=g.depth,m=g.prototype,b=g.includeNonEnumerable,g=g.circular);var w=[],A=[],S=typeof Buffer<"u";typeof g>"u"&&(g=!0),typeof y>"u"&&(y=1/0);function E(D,_){if(D===null)return null;if(_===0)return D;var M,O;if(typeof D!="object")return D;if(i(D,a))M=new a;else if(i(D,s))M=new s;else if(i(D,l))M=new l(function(Y,U){D.then(function(F){Y(E(F,_-1))},function(F){U(E(F,_-1))})});else if(u.__isArray(D))M=[];else if(u.__isRegExp(D))M=new RegExp(D.source,v(D)),D.lastIndex&&(M.lastIndex=D.lastIndex);else if(u.__isDate(D))M=new Date(D.getTime());else{if(S&&Buffer.isBuffer(D))return Buffer.allocUnsafe?M=Buffer.allocUnsafe(D.length):M=new Buffer(D.length),D.copy(M),M;i(D,Error)?M=Object.create(D):typeof m>"u"?(O=Object.getPrototypeOf(D),M=Object.create(O)):(M=Object.create(m),O=m)}if(g){var k=w.indexOf(D);if(k!=-1)return A[k];w.push(D),A.push(M)}i(D,a)&&D.forEach(function(Y,U){var F=E(U,_-1),H=E(Y,_-1);M.set(F,H)}),i(D,s)&&D.forEach(function(Y){var U=E(Y,_-1);M.add(U)});for(var R in D){var N;O&&(N=Object.getOwnPropertyDescriptor(O,R)),!(N&&N.set==null)&&(M[R]=E(D[R],_-1))}if(Object.getOwnPropertySymbols)for(var W=Object.getOwnPropertySymbols(D),R=0;R<W.length;R++){var B=W[R],z=Object.getOwnPropertyDescriptor(D,B);z&&!z.enumerable&&!b||(M[B]=E(D[B],_-1),z.enumerable||Object.defineProperty(M,B,{enumerable:!1}))}if(b)for(var j=Object.getOwnPropertyNames(D),R=0;R<j.length;R++){var q=j[R],z=Object.getOwnPropertyDescriptor(D,q);z&&z.enumerable||(M[q]=E(D[q],_-1),Object.defineProperty(M,q,{enumerable:!1}))}return M}return E(h,y)}u.clonePrototype=function(g){if(g===null)return null;var y=function(){};return y.prototype=g,new y};function d(h){return Object.prototype.toString.call(h)}u.__objToStr=d;function c(h){return typeof h=="object"&&d(h)==="[object Date]"}u.__isDate=c;function f(h){return typeof h=="object"&&d(h)==="[object Array]"}u.__isArray=f;function p(h){return typeof h=="object"&&d(h)==="[object RegExp]"}u.__isRegExp=p;function v(h){var g="";return h.global&&(g+="g"),h.ignoreCase&&(g+="i"),h.multiline&&(g+="m"),g}return u.__getRegExpFlags=v,u})();typeof n=="object"&&n.exports&&(n.exports=o)}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function M(O,k){var R=[],N=!0,W=!1,B=void 0;try{for(var z=O[Symbol.iterator](),j;!(N=(j=z.next()).done)&&(R.push(j.value),!(k&&R.length===k));N=!0);}catch(q){W=!0,B=q}finally{try{!N&&z.return&&z.return()}finally{if(W)throw B}}return R}return function(O,k){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return M(O,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function M(O,k){for(var R=0;R<k.length;R++){var N=k[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(O,N.key,N)}}return function(O,k,R){return k&&M(O.prototype,k),R&&M(O,R),O}})(),s=function M(O,k,R){O===null&&(O=Function.prototype);var N=Object.getOwnPropertyDescriptor(O,k);if(N===void 0){var W=Object.getPrototypeOf(O);return W===null?void 0:M(W,k,R)}else{if("value"in N)return N.value;var B=N.get;return B===void 0?void 0:B.call(R)}},l=o(0),u=w(l),d=o(8),c=w(d),f=o(4),p=w(f),v=o(16),h=w(v),g=o(13),y=w(g),m=o(25),b=w(m);function w(M){return M&&M.__esModule?M:{default:M}}function A(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")}function S(M,O){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:M}function E(M,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);M.prototype=Object.create(O&&O.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(M,O):M.__proto__=O)}function D(M){return M instanceof p.default||M instanceof f.BlockEmbed}var _=(function(M){E(O,M);function O(k,R){A(this,O);var N=S(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,k));return N.emitter=R.emitter,Array.isArray(R.whitelist)&&(N.whitelist=R.whitelist.reduce(function(W,B){return W[B]=!0,W},{})),N.domNode.addEventListener("DOMNodeInserted",function(){}),N.optimize(),N.enable(),N}return a(O,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(R,N){var W=this.line(R),B=i(W,2),z=B[0],j=B[1],q=this.line(R+N),Y=i(q,1),U=Y[0];if(s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,R,N),U!=null&&z!==U&&j>0){if(z instanceof f.BlockEmbed||U instanceof f.BlockEmbed){this.optimize();return}if(z instanceof y.default){var F=z.newlineIndex(z.length(),!0);if(F>-1&&(z=z.split(F+1),z===U)){this.optimize();return}}else if(U instanceof y.default){var H=U.newlineIndex(0);H>-1&&U.split(H+1)}var re=U.children.head instanceof h.default?null:U.children.head;z.moveChildren(U,re),z.remove()}this.optimize()}},{key:"enable",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",R)}},{key:"formatAt",value:function(R,N,W,B){this.whitelist!=null&&!this.whitelist[W]||(s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,R,N,W,B),this.optimize())}},{key:"insertAt",value:function(R,N,W){if(!(W!=null&&this.whitelist!=null&&!this.whitelist[N])){if(R>=this.length())if(W==null||u.default.query(N,u.default.Scope.BLOCK)==null){var B=u.default.create(this.statics.defaultChild);this.appendChild(B),W==null&&N.endsWith(`
- `)&&(N=N.slice(0,-1)),B.insertAt(0,N,W)}else{var z=u.default.create(N,W);this.appendChild(z)}else s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,R,N,W);this.optimize()}}},{key:"insertBefore",value:function(R,N){if(R.statics.scope===u.default.Scope.INLINE_BLOT){var W=u.default.create(this.statics.defaultChild);W.appendChild(R),R=W}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,R,N)}},{key:"leaf",value:function(R){return this.path(R).pop()||[null,-1]}},{key:"line",value:function(R){return R===this.length()?this.line(R-1):this.descendant(D,R)}},{key:"lines",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,W=function B(z,j,q){var Y=[],U=q;return z.children.forEachAt(j,q,function(F,H,re){D(F)?Y.push(F):F instanceof u.default.Container&&(Y=Y.concat(B(F,H,U))),U-=re}),Y};return W(this,R,N)}},{key:"optimize",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,R,N),R.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,R,N))}},{key:"path",value:function(R){return s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,R).slice(1)}},{key:"update",value:function(R){if(this.batch!==!0){var N=c.default.sources.USER;typeof R=="string"&&(N=R),Array.isArray(R)||(R=this.observer.takeRecords()),R.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,N,R),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"update",this).call(this,R.concat([])),R.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,N,R)}}}]),O})(u.default.Scroll);_.blotName="scroll",_.className="ql-editor",_.tagName="DIV",_.defaultChild="block",_.allowedChildren=[p.default,f.BlockEmbed,b.default],r.default=_}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},a=(function(){function te(Z,le){var ve=[],Pe=!0,Ae=!1,he=void 0;try{for(var Ee=Z[Symbol.iterator](),Q;!(Pe=(Q=Ee.next()).done)&&(ve.push(Q.value),!(le&&ve.length===le));Pe=!0);}catch(me){Ae=!0,he=me}finally{try{!Pe&&Ee.return&&Ee.return()}finally{if(Ae)throw he}}return ve}return function(Z,le){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return te(Z,le);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function te(Z,le){for(var ve=0;ve<le.length;ve++){var Pe=le[ve];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(Z,Pe.key,Pe)}}return function(Z,le,ve){return le&&te(Z.prototype,le),ve&&te(Z,ve),Z}})(),l=o(21),u=M(l),d=o(11),c=M(d),f=o(3),p=M(f),v=o(2),h=M(v),g=o(20),y=M(g),m=o(0),b=M(m),w=o(5),A=M(w),S=o(10),E=M(S),D=o(9),_=M(D);function M(te){return te&&te.__esModule?te:{default:te}}function O(te,Z,le){return Z in te?Object.defineProperty(te,Z,{value:le,enumerable:!0,configurable:!0,writable:!0}):te[Z]=le,te}function k(te,Z){if(!(te instanceof Z))throw new TypeError("Cannot call a class as a function")}function R(te,Z){if(!te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:te}function N(te,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);te.prototype=Object.create(Z&&Z.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(te,Z):te.__proto__=Z)}var W=(0,E.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=(function(te){N(Z,te),s(Z,null,[{key:"match",value:function(ve,Pe){return Pe=X(Pe),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ae){return!!Pe[Ae]!==ve[Ae]&&Pe[Ae]!==null})?!1:Pe.key===(ve.which||ve.keyCode)}}]);function Z(le,ve){k(this,Z);var Pe=R(this,(Z.__proto__||Object.getPrototypeOf(Z)).call(this,le,ve));return Pe.bindings={},Object.keys(Pe.options.bindings).forEach(function(Ae){Ae==="list autofill"&&le.scroll.whitelist!=null&&!le.scroll.whitelist.list||Pe.options.bindings[Ae]&&Pe.addBinding(Pe.options.bindings[Ae])}),Pe.addBinding({key:Z.keys.ENTER,shiftKey:null},F),Pe.addBinding({key:Z.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Pe.addBinding({key:Z.keys.BACKSPACE},{collapsed:!0},q),Pe.addBinding({key:Z.keys.DELETE},{collapsed:!0},Y)):(Pe.addBinding({key:Z.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},q),Pe.addBinding({key:Z.keys.DELETE},{collapsed:!0,suffix:/^.?$/},Y)),Pe.addBinding({key:Z.keys.BACKSPACE},{collapsed:!1},U),Pe.addBinding({key:Z.keys.DELETE},{collapsed:!1},U),Pe.addBinding({key:Z.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q),Pe.listen(),Pe}return s(Z,[{key:"addBinding",value:function(ve){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},he=X(ve);if(he==null||he.key==null)return W.warn("Attempted to add invalid keyboard binding",he);typeof Pe=="function"&&(Pe={handler:Pe}),typeof Ae=="function"&&(Ae={handler:Ae}),he=(0,p.default)(he,Pe,Ae),this.bindings[he.key]=this.bindings[he.key]||[],this.bindings[he.key].push(he)}},{key:"listen",value:function(){var ve=this;this.quill.root.addEventListener("keydown",function(Pe){if(!Pe.defaultPrevented){var Ae=Pe.which||Pe.keyCode,he=(ve.bindings[Ae]||[]).filter(function(Kt){return Z.match(Pe,Kt)});if(he.length!==0){var Ee=ve.quill.getSelection();if(!(Ee==null||!ve.quill.hasFocus())){var Q=ve.quill.getLine(Ee.index),me=a(Q,2),De=me[0],pe=me[1],ie=ve.quill.getLeaf(Ee.index),ue=a(ie,2),Be=ue[0],Me=ue[1],Fe=Ee.length===0?[Be,Me]:ve.quill.getLeaf(Ee.index+Ee.length),ze=a(Fe,2),Ne=ze[0],Re=ze[1],gt=Be instanceof b.default.Text?Be.value().slice(0,Me):"",Bt=Ne instanceof b.default.Text?Ne.value().slice(Re):"",Lt={collapsed:Ee.length===0,empty:Ee.length===0&&De.length()<=1,format:ve.quill.getFormat(Ee),offset:pe,prefix:gt,suffix:Bt},an=he.some(function(Kt){if(Kt.collapsed!=null&&Kt.collapsed!==Lt.collapsed||Kt.empty!=null&&Kt.empty!==Lt.empty||Kt.offset!=null&&Kt.offset!==Lt.offset)return!1;if(Array.isArray(Kt.format)){if(Kt.format.every(function(Ht){return Lt.format[Ht]==null}))return!1}else if(i(Kt.format)==="object"&&!Object.keys(Kt.format).every(function(Ht){return Kt.format[Ht]===!0?Lt.format[Ht]!=null:Kt.format[Ht]===!1?Lt.format[Ht]==null:(0,c.default)(Kt.format[Ht],Lt.format[Ht])}))return!1;return Kt.prefix!=null&&!Kt.prefix.test(Lt.prefix)||Kt.suffix!=null&&!Kt.suffix.test(Lt.suffix)?!1:Kt.handler.call(ve,Ee,Lt)!==!0});an&&Pe.preventDefault()}}}})}}]),Z})(_.default);z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},z.DEFAULTS={bindings:{bold:re("bold"),italic:re("italic"),underline:re("underline"),indent:{key:z.keys.TAB,format:["blockquote","indent","list"],handler:function(Z,le){if(le.collapsed&&le.offset!==0)return!0;this.quill.format("indent","+1",A.default.sources.USER)}},outdent:{key:z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(Z,le){if(le.collapsed&&le.offset!==0)return!0;this.quill.format("indent","-1",A.default.sources.USER)}},"outdent backspace":{key:z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(Z,le){le.format.indent!=null?this.quill.format("indent","-1",A.default.sources.USER):le.format.list!=null&&this.quill.format("list",!1,A.default.sources.USER)}},"indent code-block":H(!0),"outdent code-block":H(!1),"remove tab":{key:z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(Z){this.quill.deleteText(Z.index-1,1,A.default.sources.USER)}},tab:{key:z.keys.TAB,handler:function(Z){this.quill.history.cutoff();var le=new h.default().retain(Z.index).delete(Z.length).insert(" ");this.quill.updateContents(le,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Z.index+1,A.default.sources.SILENT)}},"list empty enter":{key:z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(Z,le){this.quill.format("list",!1,A.default.sources.USER),le.format.indent&&this.quill.format("indent",!1,A.default.sources.USER)}},"checklist enter":{key:z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(Z){var le=this.quill.getLine(Z.index),ve=a(le,2),Pe=ve[0],Ae=ve[1],he=(0,p.default)({},Pe.formats(),{list:"checked"}),Ee=new h.default().retain(Z.index).insert(`
- `,he).retain(Pe.length()-Ae-1).retain(1,{list:"unchecked"});this.quill.updateContents(Ee,A.default.sources.USER),this.quill.setSelection(Z.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(Z,le){var ve=this.quill.getLine(Z.index),Pe=a(ve,2),Ae=Pe[0],he=Pe[1],Ee=new h.default().retain(Z.index).insert(`
- `,le.format).retain(Ae.length()-he-1).retain(1,{header:null});this.quill.updateContents(Ee,A.default.sources.USER),this.quill.setSelection(Z.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(Z,le){var ve=le.prefix.length,Pe=this.quill.getLine(Z.index),Ae=a(Pe,2),he=Ae[0],Ee=Ae[1];if(Ee>ve)return!0;var Q=void 0;switch(le.prefix.trim()){case"[]":case"[ ]":Q="unchecked";break;case"[x]":Q="checked";break;case"-":case"*":Q="bullet";break;default:Q="ordered"}this.quill.insertText(Z.index," ",A.default.sources.USER),this.quill.history.cutoff();var me=new h.default().retain(Z.index-Ee).delete(ve+1).retain(he.length()-2-Ee).retain(1,{list:Q});this.quill.updateContents(me,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Z.index-ve,A.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(Z){var le=this.quill.getLine(Z.index),ve=a(le,2),Pe=ve[0],Ae=ve[1],he=new h.default().retain(Z.index+Pe.length()-Ae-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(he,A.default.sources.USER)}},"embed left":j(z.keys.LEFT,!1),"embed left shift":j(z.keys.LEFT,!0),"embed right":j(z.keys.RIGHT,!1),"embed right shift":j(z.keys.RIGHT,!0)}};function j(te,Z){var le,ve=te===z.keys.LEFT?"prefix":"suffix";return le={key:te,shiftKey:Z,altKey:null},O(le,ve,/^$/),O(le,"handler",function(Ae){var he=Ae.index;te===z.keys.RIGHT&&(he+=Ae.length+1);var Ee=this.quill.getLeaf(he),Q=a(Ee,1),me=Q[0];return me instanceof b.default.Embed?(te===z.keys.LEFT?Z?this.quill.setSelection(Ae.index-1,Ae.length+1,A.default.sources.USER):this.quill.setSelection(Ae.index-1,A.default.sources.USER):Z?this.quill.setSelection(Ae.index,Ae.length+1,A.default.sources.USER):this.quill.setSelection(Ae.index+Ae.length+1,A.default.sources.USER),!1):!0}),le}function q(te,Z){if(!(te.index===0||this.quill.getLength()<=1)){var le=this.quill.getLine(te.index),ve=a(le,1),Pe=ve[0],Ae={};if(Z.offset===0){var he=this.quill.getLine(te.index-1),Ee=a(he,1),Q=Ee[0];if(Q!=null&&Q.length()>1){var me=Pe.formats(),De=this.quill.getFormat(te.index-1,1);Ae=y.default.attributes.diff(me,De)||{}}}var pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Z.prefix)?2:1;this.quill.deleteText(te.index-pe,pe,A.default.sources.USER),Object.keys(Ae).length>0&&this.quill.formatLine(te.index-pe,pe,Ae,A.default.sources.USER),this.quill.focus()}}function Y(te,Z){var le=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Z.suffix)?2:1;if(!(te.index>=this.quill.getLength()-le)){var ve={},Pe=0,Ae=this.quill.getLine(te.index),he=a(Ae,1),Ee=he[0];if(Z.offset>=Ee.length()-1){var Q=this.quill.getLine(te.index+1),me=a(Q,1),De=me[0];if(De){var pe=Ee.formats(),ie=this.quill.getFormat(te.index,1);ve=y.default.attributes.diff(pe,ie)||{},Pe=De.length()}}this.quill.deleteText(te.index,le,A.default.sources.USER),Object.keys(ve).length>0&&this.quill.formatLine(te.index+Pe-1,le,ve,A.default.sources.USER)}}function U(te){var Z=this.quill.getLines(te),le={};if(Z.length>1){var ve=Z[0].formats(),Pe=Z[Z.length-1].formats();le=y.default.attributes.diff(Pe,ve)||{}}this.quill.deleteText(te,A.default.sources.USER),Object.keys(le).length>0&&this.quill.formatLine(te.index,1,le,A.default.sources.USER),this.quill.setSelection(te.index,A.default.sources.SILENT),this.quill.focus()}function F(te,Z){var le=this;te.length>0&&this.quill.scroll.deleteAt(te.index,te.length);var ve=Object.keys(Z.format).reduce(function(Pe,Ae){return b.default.query(Ae,b.default.Scope.BLOCK)&&!Array.isArray(Z.format[Ae])&&(Pe[Ae]=Z.format[Ae]),Pe},{});this.quill.insertText(te.index,`
- `,ve,A.default.sources.USER),this.quill.setSelection(te.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(Z.format).forEach(function(Pe){ve[Pe]==null&&(Array.isArray(Z.format[Pe])||Pe!=="link"&&le.quill.format(Pe,Z.format[Pe],A.default.sources.USER))})}function H(te){return{key:z.keys.TAB,shiftKey:!te,format:{"code-block":!0},handler:function(le){var ve=b.default.query("code-block"),Pe=le.index,Ae=le.length,he=this.quill.scroll.descendant(ve,Pe),Ee=a(he,2),Q=Ee[0],me=Ee[1];if(Q!=null){var De=this.quill.getIndex(Q),pe=Q.newlineIndex(me,!0)+1,ie=Q.newlineIndex(De+me+Ae),ue=Q.domNode.textContent.slice(pe,ie).split(`
- `);me=0,ue.forEach(function(Be,Me){te?(Q.insertAt(pe+me,ve.TAB),me+=ve.TAB.length,Me===0?Pe+=ve.TAB.length:Ae+=ve.TAB.length):Be.startsWith(ve.TAB)&&(Q.deleteAt(pe+me,ve.TAB.length),me-=ve.TAB.length,Me===0?Pe-=ve.TAB.length:Ae-=ve.TAB.length),me+=Be.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(Pe,Ae,A.default.sources.SILENT)}}}}function re(te){return{key:te[0].toUpperCase(),shortKey:!0,handler:function(le,ve){this.quill.format(te,!ve.format[te],A.default.sources.USER)}}}function X(te){if(typeof te=="string"||typeof te=="number")return X({key:te});if((typeof te>"u"?"undefined":i(te))==="object"&&(te=(0,u.default)(te,!1)),typeof te.key=="string")if(z.keys[te.key.toUpperCase()]!=null)te.key=z.keys[te.key.toUpperCase()];else if(te.key.length===1)te.key=te.key.toUpperCase().charCodeAt(0);else return null;return te.shortKey&&(te[B]=te.shortKey,delete te.shortKey),te}r.default=z,r.SHORTKEY=B}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function y(m,b){var w=[],A=!0,S=!1,E=void 0;try{for(var D=m[Symbol.iterator](),_;!(A=(_=D.next()).done)&&(w.push(_.value),!(b&&w.length===b));A=!0);}catch(M){S=!0,E=M}finally{try{!A&&D.return&&D.return()}finally{if(S)throw E}}return w}return function(m,b){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return y(m,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function y(m,b,w){m===null&&(m=Function.prototype);var A=Object.getOwnPropertyDescriptor(m,b);if(A===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,b,w)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(w)}},s=(function(){function y(m,b){for(var w=0;w<b.length;w++){var A=b[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(m,A.key,A)}}return function(m,b,w){return b&&y(m.prototype,b),w&&y(m,w),m}})(),l=o(0),u=f(l),d=o(7),c=f(d);function f(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function v(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function h(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var g=(function(y){h(m,y),s(m,null,[{key:"value",value:function(){}}]);function m(b,w){p(this,m);var A=v(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return A.selection=w,A.textNode=document.createTextNode(m.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return s(m,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(w,A){if(this._length!==0)return a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,w,A);for(var S=this,E=0;S!=null&&S.statics.scope!==u.default.Scope.BLOCK_BLOT;)E+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=m.CONTENTS.length,S.optimize(),S.formatAt(E,m.CONTENTS.length,w,A),this._length=0)}},{key:"index",value:function(w,A){return w===this.textNode?0:a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,w,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var w=this.textNode,A=this.selection.getNativeRange(),S=void 0,E=void 0,D=void 0;if(A!=null&&A.start.node===w&&A.end.node===w){var _=[w,A.start.offset,A.end.offset];S=_[0],E=_[1],D=_[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==m.CONTENTS){var M=this.textNode.data.split(m.CONTENTS).join("");this.next instanceof c.default?(S=this.next.domNode,this.next.insertAt(0,M),this.textNode.data=m.CONTENTS):(this.textNode.data=M,this.parent.insertBefore(u.default.create(this.textNode),this),this.textNode=document.createTextNode(m.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var O=[E,D].map(function(R){return Math.max(0,Math.min(S.data.length,R-1))}),k=i(O,2);return E=k[0],D=k[1],{startNode:S,startOffset:E,endNode:S,endOffset:D}}}}},{key:"update",value:function(w,A){var S=this;if(w.some(function(D){return D.type==="characterData"&&D.target===S.textNode})){var E=this.restore();E&&(A.range=E)}}},{key:"value",value:function(){return""}}]),m})(u.default.Embed);g.blotName="cursor",g.className="ql-cursor",g.tagName="span",g.CONTENTS="\uFEFF",r.default=g}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(0),a=u(i),s=o(4),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(){return d(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default.Container);p.allowedChildren=[l.default,s.BlockEmbed,p],r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var i=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),a=function g(y,m,b){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,m);if(w===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:g(A,m,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},s=o(0),l=u(s);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function c(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function f(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var p=(function(g){f(y,g);function y(){return d(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"value",value:function(b){var w=a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,b);return w.startsWith("rgb(")?(w=w.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+w.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):w}}]),y})(l.default.Attributor.Style),v=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),h=new p("color","color",{scope:l.default.Scope.INLINE});r.ColorAttributor=p,r.ColorClass=v,r.ColorStyle=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var i=(function(){function h(g,y){for(var m=0;m<y.length;m++){var b=y[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,m){return y&&h(g.prototype,y),m&&h(g,m),g}})(),a=function h(g,y,m){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,y);if(b===void 0){var w=Object.getPrototypeOf(g);return w===null?void 0:h(w,y,m)}else{if("value"in b)return b.value;var A=b.get;return A===void 0?void 0:A.call(m)}},s=o(6),l=u(s);function u(h){return h&&h.__esModule?h:{default:h}}function d(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function c(h,g){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:h}function f(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);h.prototype=Object.create(g&&g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(h,g):h.__proto__=g)}var p=(function(h){f(g,h);function g(){return d(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"format",value:function(m,b){if(m!==this.statics.blotName||!b)return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,m,b);b=this.constructor.sanitize(b),this.domNode.setAttribute("href",b)}}],[{key:"create",value:function(m){var b=a(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,m);return m=this.sanitize(m),b.setAttribute("href",m),b.setAttribute("rel","noopener noreferrer"),b.setAttribute("target","_blank"),b}},{key:"formats",value:function(m){return m.getAttribute("href")}},{key:"sanitize",value:function(m){return v(m,this.PROTOCOL_WHITELIST)?m:this.SANITIZED_URL}}]),g})(l.default);p.blotName="link",p.tagName="A",p.SANITIZED_URL="about:blank",p.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(h,g){var y=document.createElement("a");y.href=h;var m=y.href.slice(0,y.href.indexOf(":"));return g.indexOf(m)>-1}r.default=p,r.sanitize=v}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},a=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),s=o(23),l=c(s),u=o(107),d=c(u);function c(g){return g&&g.__esModule?g:{default:g}}function f(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}var p=0;function v(g,y){g.setAttribute(y,g.getAttribute(y)!=="true")}var h=(function(){function g(y){var m=this;f(this,g),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){m.togglePicker()}),this.label.addEventListener("keydown",function(b){switch(b.keyCode){case l.default.keys.ENTER:m.togglePicker();break;case l.default.keys.ESCAPE:m.escape(),b.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(g,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(m){var b=this,w=document.createElement("span");return w.tabIndex="0",w.setAttribute("role","button"),w.classList.add("ql-picker-item"),m.hasAttribute("value")&&w.setAttribute("data-value",m.getAttribute("value")),m.textContent&&w.setAttribute("data-label",m.textContent),w.addEventListener("click",function(){b.selectItem(w,!0)}),w.addEventListener("keydown",function(A){switch(A.keyCode){case l.default.keys.ENTER:b.selectItem(w,!0),A.preventDefault();break;case l.default.keys.ESCAPE:b.escape(),A.preventDefault();break}}),w}},{key:"buildLabel",value:function(){var m=document.createElement("span");return m.classList.add("ql-picker-label"),m.innerHTML=d.default,m.tabIndex="0",m.setAttribute("role","button"),m.setAttribute("aria-expanded","false"),this.container.appendChild(m),m}},{key:"buildOptions",value:function(){var m=this,b=document.createElement("span");b.classList.add("ql-picker-options"),b.setAttribute("aria-hidden","true"),b.tabIndex="-1",b.id="ql-picker-options-"+p,p+=1,this.label.setAttribute("aria-controls",b.id),this.options=b,[].slice.call(this.select.options).forEach(function(w){var A=m.buildItem(w);b.appendChild(A),w.selected===!0&&m.selectItem(A)}),this.container.appendChild(b)}},{key:"buildPicker",value:function(){var m=this;[].slice.call(this.select.attributes).forEach(function(b){m.container.setAttribute(b.name,b.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var m=this;this.close(),setTimeout(function(){return m.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=this.container.querySelector(".ql-selected");if(m!==w&&(w?.classList.remove("ql-selected"),m!=null&&(m.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(m.parentNode.children,m),m.hasAttribute("data-value")?this.label.setAttribute("data-value",m.getAttribute("data-value")):this.label.removeAttribute("data-value"),m.hasAttribute("data-label")?this.label.setAttribute("data-label",m.getAttribute("data-label")):this.label.removeAttribute("data-label"),b))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":i(Event))==="object"){var A=document.createEvent("Event");A.initEvent("change",!0,!0),this.select.dispatchEvent(A)}this.close()}}},{key:"update",value:function(){var m=void 0;if(this.select.selectedIndex>-1){var b=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];m=this.select.options[this.select.selectedIndex],this.selectItem(b)}else this.selectItem(null);var w=m!=null&&m!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",w)}}]),g})();r.default=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(0),a=W(i),s=o(5),l=W(s),u=o(4),d=W(u),c=o(16),f=W(c),p=o(25),v=W(p),h=o(24),g=W(h),y=o(35),m=W(y),b=o(6),w=W(b),A=o(22),S=W(A),E=o(7),D=W(E),_=o(55),M=W(_),O=o(42),k=W(O),R=o(23),N=W(R);function W(B){return B&&B.__esModule?B:{default:B}}l.default.register({"blots/block":d.default,"blots/block/embed":u.BlockEmbed,"blots/break":f.default,"blots/container":v.default,"blots/cursor":g.default,"blots/embed":m.default,"blots/inline":w.default,"blots/scroll":S.default,"blots/text":D.default,"modules/clipboard":M.default,"modules/history":k.default,"modules/keyboard":N.default}),a.default.register(d.default,f.default,g.default,w.default,S.default,D.default),r.default=l.default}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(1),a=(function(){function s(l){this.domNode=l,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(l){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?u=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?u=document.createElement(l):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return i.create(l)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},s.prototype.deleteAt=function(l,u){var d=this.isolate(l,u);d.remove()},s.prototype.formatAt=function(l,u,d,c){var f=this.isolate(l,u);if(i.query(d,i.Scope.BLOT)!=null&&c)f.wrap(d,c);else if(i.query(d,i.Scope.ATTRIBUTE)!=null){var p=i.create(this.statics.scope);f.wrap(p),p.format(d,c)}},s.prototype.insertAt=function(l,u,d){var c=d==null?i.create("text",u):i.create(u,d),f=this.split(l);this.parent.insertBefore(c,f)},s.prototype.insertInto=function(l,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var d=null;l.children.insertBefore(this,u),u!=null&&(d=u.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=d)&&l.domNode.insertBefore(this.domNode,d),this.parent=l,this.attach()},s.prototype.isolate=function(l,u){var d=this.split(l);return d.split(u),d},s.prototype.length=function(){return 1},s.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},s.prototype.optimize=function(l){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},s.prototype.replaceWith=function(l,u){var d=typeof l=="string"?i.create(l,u):l;return d.replace(this),d},s.prototype.split=function(l,u){return l===0?this:this.next},s.prototype.update=function(l,u){},s.prototype.wrap=function(l,u){var d=typeof l=="string"?i.create(l,u):l;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},s.blotName="abstract",s})();r.default=a}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(12),a=o(32),s=o(33),l=o(1),u=(function(){function d(c){this.attributes={},this.domNode=c,this.build()}return d.prototype.attribute=function(c,f){f?c.add(this.domNode,f)&&(c.value(this.domNode)!=null?this.attributes[c.attrName]=c:delete this.attributes[c.attrName]):(c.remove(this.domNode),delete this.attributes[c.attrName])},d.prototype.build=function(){var c=this;this.attributes={};var f=i.default.keys(this.domNode),p=a.default.keys(this.domNode),v=s.default.keys(this.domNode);f.concat(p).concat(v).forEach(function(h){var g=l.query(h,l.Scope.ATTRIBUTE);g instanceof i.default&&(c.attributes[g.attrName]=g)})},d.prototype.copy=function(c){var f=this;Object.keys(this.attributes).forEach(function(p){var v=f.attributes[p].value(f.domNode);c.format(p,v)})},d.prototype.move=function(c){var f=this;this.copy(c),Object.keys(this.attributes).forEach(function(p){f.attributes[p].remove(f.domNode)}),this.attributes={}},d.prototype.values=function(){var c=this;return Object.keys(this.attributes).reduce(function(f,p){return f[p]=c.attributes[p].value(c.domNode),f},{})},d})();r.default=u}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(12);function s(u,d){var c=u.getAttribute("class")||"";return c.split(/\s+/).filter(function(f){return f.indexOf(d+"-")===0})}var l=(function(u){i(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(c){return(c.getAttribute("class")||"").split(/\s+/).map(function(f){return f.split("-").slice(0,-1).join("-")})},d.prototype.add=function(c,f){return this.canAdd(c,f)?(this.remove(c),c.classList.add(this.keyName+"-"+f),!0):!1},d.prototype.remove=function(c){var f=s(c,this.keyName);f.forEach(function(p){c.classList.remove(p)}),c.classList.length===0&&c.removeAttribute("class")},d.prototype.value=function(c){var f=s(c,this.keyName)[0]||"",p=f.slice(this.keyName.length+1);return this.canAdd(c,p)?p:""},d})(a.default);r.default=l}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(12);function s(u){var d=u.split("-"),c=d.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return d[0]+c}var l=(function(u){i(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(c){return(c.getAttribute("style")||"").split(";").map(function(f){var p=f.split(":");return p[0].trim()})},d.prototype.add=function(c,f){return this.canAdd(c,f)?(c.style[s(this.keyName)]=f,!0):!1},d.prototype.remove=function(c){c.style[s(this.keyName)]="",c.getAttribute("style")||c.removeAttribute("style")},d.prototype.value=function(c){var f=c.style[s(this.keyName)];return this.canAdd(c,f)?f:""},d})(a.default);r.default=l}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function l(u,d){for(var c=0;c<d.length;c++){var f=d[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,d,c){return d&&l(u.prototype,d),c&&l(u,c),u}})();function a(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var s=(function(){function l(u,d){a(this,l),this.quill=u,this.options=d,this.modules={}}return i(l,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(c){d.modules[c]==null&&d.addModule(c)})}},{key:"addModule",value:function(d){var c=this.quill.constructor.import("modules/"+d);return this.modules[d]=new c(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),l})();s.DEFAULTS={modules:{}},s.themes={default:s},r.default=s}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function y(m,b){for(var w=0;w<b.length;w++){var A=b[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(m,A.key,A)}}return function(m,b,w){return b&&y(m.prototype,b),w&&y(m,w),m}})(),a=function y(m,b,w){m===null&&(m=Function.prototype);var A=Object.getOwnPropertyDescriptor(m,b);if(A===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,b,w)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(w)}},s=o(0),l=c(s),u=o(7),d=c(u);function c(y){return y&&y.__esModule?y:{default:y}}function f(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function v(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var h="\uFEFF",g=(function(y){v(m,y);function m(b){f(this,m);var w=p(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return w.contentNode=document.createElement("span"),w.contentNode.setAttribute("contenteditable",!1),[].slice.call(w.domNode.childNodes).forEach(function(A){w.contentNode.appendChild(A)}),w.leftGuard=document.createTextNode(h),w.rightGuard=document.createTextNode(h),w.domNode.appendChild(w.leftGuard),w.domNode.appendChild(w.contentNode),w.domNode.appendChild(w.rightGuard),w}return i(m,[{key:"index",value:function(w,A){return w===this.leftGuard?0:w===this.rightGuard?1:a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,w,A)}},{key:"restore",value:function(w){var A=void 0,S=void 0,E=w.data.split(h).join("");if(w===this.leftGuard)if(this.prev instanceof d.default){var D=this.prev.length();this.prev.insertAt(D,E),A={startNode:this.prev.domNode,startOffset:D+E.length}}else S=document.createTextNode(E),this.parent.insertBefore(l.default.create(S),this),A={startNode:S,startOffset:E.length};else w===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,E),A={startNode:this.next.domNode,startOffset:E.length}):(S=document.createTextNode(E),this.parent.insertBefore(l.default.create(S),this.next),A={startNode:S,startOffset:E.length}));return w.data=h,A}},{key:"update",value:function(w,A){var S=this;w.forEach(function(E){if(E.type==="characterData"&&(E.target===S.leftGuard||E.target===S.rightGuard)){var D=S.restore(E.target);D&&(A.range=D)}})}}]),m})(l.default.Embed);r.default=g}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var i=o(0),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},u=new a.default.Attributor.Attribute("align","align",l),d=new a.default.Attributor.Class("align","ql-align",l),c=new a.default.Attributor.Style("align","text-align",l);r.AlignAttribute=u,r.AlignClass=d,r.AlignStyle=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var i=o(0),a=l(i),s=o(26);function l(c){return c&&c.__esModule?c:{default:c}}var u=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),d=new s.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});r.BackgroundClass=u,r.BackgroundStyle=d}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var i=o(0),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},u=new a.default.Attributor.Attribute("direction","dir",l),d=new a.default.Attributor.Class("direction","ql-direction",l),c=new a.default.Attributor.Style("direction","direction",l);r.DirectionAttribute=u,r.DirectionClass=d,r.DirectionStyle=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var i=(function(){function y(m,b){for(var w=0;w<b.length;w++){var A=b[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(m,A.key,A)}}return function(m,b,w){return b&&y(m.prototype,b),w&&y(m,w),m}})(),a=function y(m,b,w){m===null&&(m=Function.prototype);var A=Object.getOwnPropertyDescriptor(m,b);if(A===void 0){var S=Object.getPrototypeOf(m);return S===null?void 0:y(S,b,w)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(w)}},s=o(0),l=u(s);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function c(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function f(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var p={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new l.default.Attributor.Class("font","ql-font",p),h=(function(y){f(m,y);function m(){return d(this,m),c(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"value",value:function(w){return a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,w).replace(/["']/g,"")}}]),m})(l.default.Attributor.Style),g=new h("font","font-family",p);r.FontStyle=g,r.FontClass=v}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var i=o(0),a=s(i);function s(d){return d&&d.__esModule?d:{default:d}}var l=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),u=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=l,r.SizeStyle=u}),(function(n,r,o){n.exports={align:{"":o(76),center:o(77),right:o(78),justify:o(79)},background:o(80),blockquote:o(81),bold:o(82),clean:o(83),code:o(58),"code-block":o(58),color:o(84),direction:{"":o(85),rtl:o(86)},float:{center:o(87),full:o(88),left:o(89),right:o(90)},formula:o(91),header:{1:o(92),2:o(93)},italic:o(94),image:o(95),indent:{"+1":o(96),"-1":o(97)},link:o(98),list:{ordered:o(99),bullet:o(100),check:o(101)},script:{sub:o(102),super:o(103)},strike:o(104),underline:o(105),video:o(106)}}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var i=(function(){function b(w,A){for(var S=0;S<A.length;S++){var E=A[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,A,S){return A&&b(w.prototype,A),S&&b(w,S),w}})(),a=o(0),s=f(a),l=o(5),u=f(l),d=o(9),c=f(d);function f(b){return b&&b.__esModule?b:{default:b}}function p(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function v(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:b}function h(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}var g=(function(b){h(w,b);function w(A,S){p(this,w);var E=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,A,S));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(u.default.events.EDITOR_CHANGE,function(D,_,M,O){D!==u.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||O===u.default.sources.USER?E.record(_,M):E.transform(_))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return i(w,[{key:"change",value:function(S,E){if(this.stack[S].length!==0){var D=this.stack[S].pop();this.stack[E].push(D),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(D[S],u.default.sources.USER),this.ignoreChange=!1;var _=m(D[S]);this.quill.setSelection(_)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,E){if(S.ops.length!==0){this.stack.redo=[];var D=this.quill.getContents().diff(E),_=Date.now();if(this.lastRecorded+this.options.delay>_&&this.stack.undo.length>0){var M=this.stack.undo.pop();D=D.compose(M.undo),S=M.redo.compose(S)}else this.lastRecorded=_;this.stack.undo.push({redo:S,undo:D}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),w})(c.default);g.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(b){var w=b.ops[b.ops.length-1];return w==null?!1:w.insert!=null?typeof w.insert=="string"&&w.insert.endsWith(`
- `):w.attributes!=null?Object.keys(w.attributes).some(function(A){return s.default.query(A,s.default.Scope.BLOCK)!=null}):!1}function m(b){var w=b.reduce(function(S,E){return S+=E.delete||0,S},0),A=b.length()-w;return y(b)&&(A-=1),A}r.default=g,r.getLastChangeIndex=m}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var i=(function(){function F(H,re){for(var X=0;X<re.length;X++){var te=re[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(H,te.key,te)}}return function(H,re,X){return re&&F(H.prototype,re),X&&F(H,X),H}})(),a=function F(H,re,X){H===null&&(H=Function.prototype);var te=Object.getOwnPropertyDescriptor(H,re);if(te===void 0){var Z=Object.getPrototypeOf(H);return Z===null?void 0:F(Z,re,X)}else{if("value"in te)return te.value;var le=te.get;return le===void 0?void 0:le.call(X)}},s=o(3),l=_(s),u=o(2),d=_(u),c=o(8),f=_(c),p=o(23),v=_(p),h=o(34),g=_(h),y=o(59),m=_(y),b=o(60),w=_(b),A=o(28),S=_(A),E=o(61),D=_(E);function _(F){return F&&F.__esModule?F:{default:F}}function M(F,H){if(!(F instanceof H))throw new TypeError("Cannot call a class as a function")}function O(F,H){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:F}function k(F,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);F.prototype=Object.create(H&&H.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(F,H):F.__proto__=H)}var R=[!1,"center","right","justify"],N=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],W=[!1,"serif","monospace"],B=["1","2","3",!1],z=["small",!1,"large","huge"],j=(function(F){k(H,F);function H(re,X){M(this,H);var te=O(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,re,X)),Z=function le(ve){if(!document.body.contains(re.root))return document.body.removeEventListener("click",le);te.tooltip!=null&&!te.tooltip.root.contains(ve.target)&&document.activeElement!==te.tooltip.textbox&&!te.quill.hasFocus()&&te.tooltip.hide(),te.pickers!=null&&te.pickers.forEach(function(Pe){Pe.container.contains(ve.target)||Pe.close()})};return re.emitter.listenDOM("click",document.body,Z),te}return i(H,[{key:"addModule",value:function(X){var te=a(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"addModule",this).call(this,X);return X==="toolbar"&&this.extendToolbar(te),te}},{key:"buildButtons",value:function(X,te){X.forEach(function(Z){var le=Z.getAttribute("class")||"";le.split(/\s+/).forEach(function(ve){if(ve.startsWith("ql-")&&(ve=ve.slice(3),te[ve]!=null))if(ve==="direction")Z.innerHTML=te[ve][""]+te[ve].rtl;else if(typeof te[ve]=="string")Z.innerHTML=te[ve];else{var Pe=Z.value||"";Pe!=null&&te[ve][Pe]&&(Z.innerHTML=te[ve][Pe])}})})}},{key:"buildPickers",value:function(X,te){var Z=this;this.pickers=X.map(function(ve){if(ve.classList.contains("ql-align"))return ve.querySelector("option")==null&&U(ve,R),new w.default(ve,te.align);if(ve.classList.contains("ql-background")||ve.classList.contains("ql-color")){var Pe=ve.classList.contains("ql-background")?"background":"color";return ve.querySelector("option")==null&&U(ve,N,Pe==="background"?"#ffffff":"#000000"),new m.default(ve,te[Pe])}else return ve.querySelector("option")==null&&(ve.classList.contains("ql-font")?U(ve,W):ve.classList.contains("ql-header")?U(ve,B):ve.classList.contains("ql-size")&&U(ve,z)),new S.default(ve)});var le=function(){Z.pickers.forEach(function(Pe){Pe.update()})};this.quill.on(f.default.events.EDITOR_CHANGE,le)}}]),H})(g.default);j.DEFAULTS=(0,l.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var H=this,re=this.container.querySelector("input.ql-image[type=file]");re==null&&(re=document.createElement("input"),re.setAttribute("type","file"),re.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),re.classList.add("ql-image"),re.addEventListener("change",function(){if(re.files!=null&&re.files[0]!=null){var X=new FileReader;X.onload=function(te){var Z=H.quill.getSelection(!0);H.quill.updateContents(new d.default().retain(Z.index).delete(Z.length).insert({image:te.target.result}),f.default.sources.USER),H.quill.setSelection(Z.index+1,f.default.sources.SILENT),re.value=""},X.readAsDataURL(re.files[0])}}),this.container.appendChild(re)),re.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=(function(F){k(H,F);function H(re,X){M(this,H);var te=O(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,re,X));return te.textbox=te.root.querySelector('input[type="text"]'),te.listen(),te}return i(H,[{key:"listen",value:function(){var X=this;this.textbox.addEventListener("keydown",function(te){v.default.match(te,"enter")?(X.save(),te.preventDefault()):v.default.match(te,"escape")&&(X.cancel(),te.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),te!=null?this.textbox.value=te:X!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+X)||""),this.root.setAttribute("data-mode",X)}},{key:"restoreFocus",value:function(){var X=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=X}},{key:"save",value:function(){var X=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var te=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",X,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",X,f.default.sources.USER)),this.quill.root.scrollTop=te;break}case"video":X=Y(X);case"formula":{if(!X)break;var Z=this.quill.getSelection(!0);if(Z!=null){var le=Z.index+Z.length;this.quill.insertEmbed(le,this.root.getAttribute("data-mode"),X,f.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(le+1," ",f.default.sources.USER),this.quill.setSelection(le+2,f.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),H})(D.default);function Y(F){var H=F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||F.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return H?(H[1]||"https")+"://www.youtube.com/embed/"+H[2]+"?showinfo=0":(H=F.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(H[1]||"https")+"://player.vimeo.com/video/"+H[2]+"/":F}function U(F,H){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;H.forEach(function(X){var te=document.createElement("option");X===re?te.setAttribute("selected","selected"):te.setAttribute("value",X),F.appendChild(te)})}r.BaseTooltip=q,r.default=j}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},a.prototype.contains=function(s){for(var l,u=this.iterator();l=u();)if(l===s)return!0;return!1},a.prototype.insertBefore=function(s,l){s&&(s.next=l,l!=null?(s.prev=l.prev,l.prev!=null&&(l.prev.next=s),l.prev=s,l===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},a.prototype.offset=function(s){for(var l=0,u=this.head;u!=null;){if(u===s)return l;l+=u.length(),u=u.next}return-1},a.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},a.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var l=s;return s!=null&&(s=s.next),l}},a.prototype.find=function(s,l){l===void 0&&(l=!1);for(var u,d=this.iterator();u=d();){var c=u.length();if(s<c||l&&s===c&&(u.next==null||u.next.length()!==0))return[u,s];s-=c}return[null,0]},a.prototype.forEach=function(s){for(var l,u=this.iterator();l=u();)s(l)},a.prototype.forEachAt=function(s,l,u){if(!(l<=0))for(var d=this.find(s),c=d[0],f=d[1],p,v=s-f,h=this.iterator(c);(p=h())&&v<s+l;){var g=p.length();s>v?u(p,s-v,Math.min(l,v+g-s)):u(p,0,Math.min(g,s+l-v)),v+=g}},a.prototype.map=function(s){return this.reduce(function(l,u){return l.push(s(u)),l},[])},a.prototype.reduce=function(s,l){for(var u,d=this.iterator();u=d();)l=s(l,u);return l},a})();r.default=i}),(function(n,r,o){var i=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var v in p)p.hasOwnProperty(v)&&(f[v]=p[v])};return function(f,p){c(f,p);function v(){this.constructor=f}f.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(17),s=o(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,d=(function(c){i(f,c);function f(p){var v=c.call(this,p)||this;return v.scroll=v,v.observer=new MutationObserver(function(h){v.update(h)}),v.observer.observe(v.domNode,l),v.attach(),v}return f.prototype.detach=function(){c.prototype.detach.call(this),this.observer.disconnect()},f.prototype.deleteAt=function(p,v){this.update(),p===0&&v===this.length()?this.children.forEach(function(h){h.remove()}):c.prototype.deleteAt.call(this,p,v)},f.prototype.formatAt=function(p,v,h,g){this.update(),c.prototype.formatAt.call(this,p,v,h,g)},f.prototype.insertAt=function(p,v,h){this.update(),c.prototype.insertAt.call(this,p,v,h)},f.prototype.optimize=function(p,v){var h=this;p===void 0&&(p=[]),v===void 0&&(v={}),c.prototype.optimize.call(this,v);for(var g=[].slice.call(this.observer.takeRecords());g.length>0;)p.push(g.pop());for(var y=function(A,S){S===void 0&&(S=!0),!(A==null||A===h)&&A.domNode.parentNode!=null&&(A.domNode[s.DATA_KEY].mutations==null&&(A.domNode[s.DATA_KEY].mutations=[]),S&&y(A.parent))},m=function(A){A.domNode[s.DATA_KEY]==null||A.domNode[s.DATA_KEY].mutations==null||(A instanceof a.default&&A.children.forEach(m),A.optimize(v))},b=p,w=0;b.length>0;w+=1){if(w>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(b.forEach(function(A){var S=s.find(A.target,!0);S!=null&&(S.domNode===A.target&&(A.type==="childList"?(y(s.find(A.previousSibling,!1)),[].forEach.call(A.addedNodes,function(E){var D=s.find(E,!1);y(D,!1),D instanceof a.default&&D.children.forEach(function(_){y(_,!1)})})):A.type==="attributes"&&y(S.prev)),y(S))}),this.children.forEach(m),b=[].slice.call(this.observer.takeRecords()),g=b.slice();g.length>0;)p.push(g.pop())}},f.prototype.update=function(p,v){var h=this;v===void 0&&(v={}),p=p||this.observer.takeRecords(),p.map(function(g){var y=s.find(g.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[g],y):(y.domNode[s.DATA_KEY].mutations.push(g),null)}).forEach(function(g){g==null||g===h||g.domNode[s.DATA_KEY]==null||g.update(g.domNode[s.DATA_KEY].mutations||[],v)}),this.domNode[s.DATA_KEY].mutations!=null&&c.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,v),this.optimize(p,v)},f.blotName="scroll",f.defaultChild="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="DIV",f})(a.default);r.default=d}),(function(n,r,o){var i=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var p in f)f.hasOwnProperty(p)&&(c[p]=f[p])};return function(c,f){d(c,f);function p(){this.constructor=c}c.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(18),s=o(1);function l(d,c){if(Object.keys(d).length!==Object.keys(c).length)return!1;for(var f in d)if(d[f]!==c[f])return!1;return!0}var u=(function(d){i(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.formats=function(f){if(f.tagName!==c.tagName)return d.formats.call(this,f)},c.prototype.format=function(f,p){var v=this;f===this.statics.blotName&&!p?(this.children.forEach(function(h){h instanceof a.default||(h=h.wrap(c.blotName,!0)),v.attributes.copy(h)}),this.unwrap()):d.prototype.format.call(this,f,p)},c.prototype.formatAt=function(f,p,v,h){if(this.formats()[v]!=null||s.query(v,s.Scope.ATTRIBUTE)){var g=this.isolate(f,p);g.format(v,h)}else d.prototype.formatAt.call(this,f,p,v,h)},c.prototype.optimize=function(f){d.prototype.optimize.call(this,f);var p=this.formats();if(Object.keys(p).length===0)return this.unwrap();var v=this.next;v instanceof c&&v.prev===this&&l(p,v.formats())&&(v.moveChildren(this),v.remove())},c.blotName="inline",c.scope=s.Scope.INLINE_BLOT,c.tagName="SPAN",c})(a.default);r.default=u}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(18),s=o(1),l=(function(u){i(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.formats=function(c){var f=s.query(d.blotName).tagName;if(c.tagName!==f)return u.formats.call(this,c)},d.prototype.format=function(c,f){s.query(c,s.Scope.BLOCK)!=null&&(c===this.statics.blotName&&!f?this.replaceWith(d.blotName):u.prototype.format.call(this,c,f))},d.prototype.formatAt=function(c,f,p,v){s.query(p,s.Scope.BLOCK)!=null?this.format(p,v):u.prototype.formatAt.call(this,c,f,p,v)},d.prototype.insertAt=function(c,f,p){if(p==null||s.query(f,s.Scope.INLINE)!=null)u.prototype.insertAt.call(this,c,f,p);else{var v=this.split(c),h=s.create(f,p);v.parent.insertBefore(h,v)}},d.prototype.update=function(c,f){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,c,f)},d.blotName="block",d.scope=s.Scope.BLOCK_BLOT,d.tagName="P",d})(a.default);r.default=l}),(function(n,r,o){var i=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var c in d)d.hasOwnProperty(c)&&(u[c]=d[c])};return function(u,d){l(u,d);function c(){this.constructor=u}u.prototype=d===null?Object.create(d):(c.prototype=d.prototype,new c)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(19),s=(function(l){i(u,l);function u(){return l!==null&&l.apply(this,arguments)||this}return u.formats=function(d){},u.prototype.format=function(d,c){l.prototype.formatAt.call(this,0,this.length(),d,c)},u.prototype.formatAt=function(d,c,f,p){d===0&&c===this.length()?this.format(f,p):l.prototype.formatAt.call(this,d,c,f,p)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u})(a.default);r.default=s}),(function(n,r,o){var i=this&&this.__extends||(function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return function(d,c){u(d,c);function f(){this.constructor=d}d.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}})();Object.defineProperty(r,"__esModule",{value:!0});var a=o(19),s=o(1),l=(function(u){i(d,u);function d(c){var f=u.call(this,c)||this;return f.text=f.statics.value(f.domNode),f}return d.create=function(c){return document.createTextNode(c)},d.value=function(c){var f=c.data;return f.normalize&&(f=f.normalize()),f},d.prototype.deleteAt=function(c,f){this.domNode.data=this.text=this.text.slice(0,c)+this.text.slice(c+f)},d.prototype.index=function(c,f){return this.domNode===c?f:-1},d.prototype.insertAt=function(c,f,p){p==null?(this.text=this.text.slice(0,c)+f+this.text.slice(c),this.domNode.data=this.text):u.prototype.insertAt.call(this,c,f,p)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(c){u.prototype.optimize.call(this,c),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(c,f){return[this.domNode,c]},d.prototype.split=function(c,f){if(f===void 0&&(f=!1),!f){if(c===0)return this;if(c===this.length())return this.next}var p=s.create(this.domNode.splitText(c));return this.parent.insertBefore(p,this.next),this.text=this.statics.value(this.domNode),p},d.prototype.update=function(c,f){var p=this;c.some(function(v){return v.type==="characterData"&&v.target===p.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=s.Scope.INLINE_BLOT,d})(a.default);r.default=l}),(function(n,r,o){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,l){return arguments.length>1&&!this.contains(s)==!l?l:a.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,l){return l=l||0,this.substr(l,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,l){var u=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>u.length)&&(l=u.length),l-=s.length;var d=u.indexOf(s,l);return d!==-1&&d===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var u=Object(this),d=u.length>>>0,c=arguments[1],f,p=0;p<d;p++)if(f=u[p],l.call(c,f,p,u))return f}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(n,r){var o=-1,i=1,a=0;function s(w,A,S){if(w==A)return w?[[a,w]]:[];(S<0||w.length<S)&&(S=null);var E=c(w,A),D=w.substring(0,E);w=w.substring(E),A=A.substring(E),E=f(w,A);var _=w.substring(w.length-E);w=w.substring(0,w.length-E),A=A.substring(0,A.length-E);var M=l(w,A);return D&&M.unshift([a,D]),_&&M.push([a,_]),v(M),S!=null&&(M=y(M,S)),M=m(M),M}function l(w,A){var S;if(!w)return[[i,A]];if(!A)return[[o,w]];var E=w.length>A.length?w:A,D=w.length>A.length?A:w,_=E.indexOf(D);if(_!=-1)return S=[[i,E.substring(0,_)],[a,D],[i,E.substring(_+D.length)]],w.length>A.length&&(S[0][0]=S[2][0]=o),S;if(D.length==1)return[[o,w],[i,A]];var M=p(w,A);if(M){var O=M[0],k=M[1],R=M[2],N=M[3],W=M[4],B=s(O,R),z=s(k,N);return B.concat([[a,W]],z)}return u(w,A)}function u(w,A){for(var S=w.length,E=A.length,D=Math.ceil((S+E)/2),_=D,M=2*D,O=new Array(M),k=new Array(M),R=0;R<M;R++)O[R]=-1,k[R]=-1;O[_+1]=0,k[_+1]=0;for(var N=S-E,W=N%2!=0,B=0,z=0,j=0,q=0,Y=0;Y<D;Y++){for(var U=-Y+B;U<=Y-z;U+=2){var F=_+U,H;U==-Y||U!=Y&&O[F-1]<O[F+1]?H=O[F+1]:H=O[F-1]+1;for(var re=H-U;H<S&&re<E&&w.charAt(H)==A.charAt(re);)H++,re++;if(O[F]=H,H>S)z+=2;else if(re>E)B+=2;else if(W){var X=_+N-U;if(X>=0&&X<M&&k[X]!=-1){var te=S-k[X];if(H>=te)return d(w,A,H,re)}}}for(var Z=-Y+j;Z<=Y-q;Z+=2){var X=_+Z,te;Z==-Y||Z!=Y&&k[X-1]<k[X+1]?te=k[X+1]:te=k[X-1]+1;for(var le=te-Z;te<S&&le<E&&w.charAt(S-te-1)==A.charAt(E-le-1);)te++,le++;if(k[X]=te,te>S)q+=2;else if(le>E)j+=2;else if(!W){var F=_+N-Z;if(F>=0&&F<M&&O[F]!=-1){var H=O[F],re=_+H-F;if(te=S-te,H>=te)return d(w,A,H,re)}}}}return[[o,w],[i,A]]}function d(w,A,S,E){var D=w.substring(0,S),_=A.substring(0,E),M=w.substring(S),O=A.substring(E),k=s(D,_),R=s(M,O);return k.concat(R)}function c(w,A){if(!w||!A||w.charAt(0)!=A.charAt(0))return 0;for(var S=0,E=Math.min(w.length,A.length),D=E,_=0;S<D;)w.substring(_,D)==A.substring(_,D)?(S=D,_=S):E=D,D=Math.floor((E-S)/2+S);return D}function f(w,A){if(!w||!A||w.charAt(w.length-1)!=A.charAt(A.length-1))return 0;for(var S=0,E=Math.min(w.length,A.length),D=E,_=0;S<D;)w.substring(w.length-D,w.length-_)==A.substring(A.length-D,A.length-_)?(S=D,_=S):E=D,D=Math.floor((E-S)/2+S);return D}function p(w,A){var S=w.length>A.length?w:A,E=w.length>A.length?A:w;if(S.length<4||E.length*2<S.length)return null;function D(z,j,q){for(var Y=z.substring(q,q+Math.floor(z.length/4)),U=-1,F="",H,re,X,te;(U=j.indexOf(Y,U+1))!=-1;){var Z=c(z.substring(q),j.substring(U)),le=f(z.substring(0,q),j.substring(0,U));F.length<le+Z&&(F=j.substring(U-le,U)+j.substring(U,U+Z),H=z.substring(0,q-le),re=z.substring(q+Z),X=j.substring(0,U-le),te=j.substring(U+Z))}return F.length*2>=z.length?[H,re,X,te,F]:null}var _=D(S,E,Math.ceil(S.length/4)),M=D(S,E,Math.ceil(S.length/2)),O;if(!_&&!M)return null;M?_?O=_[4].length>M[4].length?_:M:O=M:O=_;var k,R,N,W;w.length>A.length?(k=O[0],R=O[1],N=O[2],W=O[3]):(N=O[0],W=O[1],k=O[2],R=O[3]);var B=O[4];return[k,R,N,W,B]}function v(w){w.push([a,""]);for(var A=0,S=0,E=0,D="",_="",M;A<w.length;)switch(w[A][0]){case i:E++,_+=w[A][1],A++;break;case o:S++,D+=w[A][1],A++;break;case a:S+E>1?(S!==0&&E!==0&&(M=c(_,D),M!==0&&(A-S-E>0&&w[A-S-E-1][0]==a?w[A-S-E-1][1]+=_.substring(0,M):(w.splice(0,0,[a,_.substring(0,M)]),A++),_=_.substring(M),D=D.substring(M)),M=f(_,D),M!==0&&(w[A][1]=_.substring(_.length-M)+w[A][1],_=_.substring(0,_.length-M),D=D.substring(0,D.length-M))),S===0?w.splice(A-E,S+E,[i,_]):E===0?w.splice(A-S,S+E,[o,D]):w.splice(A-S-E,S+E,[o,D],[i,_]),A=A-S-E+(S?1:0)+(E?1:0)+1):A!==0&&w[A-1][0]==a?(w[A-1][1]+=w[A][1],w.splice(A,1)):A++,E=0,S=0,D="",_="";break}w[w.length-1][1]===""&&w.pop();var O=!1;for(A=1;A<w.length-1;)w[A-1][0]==a&&w[A+1][0]==a&&(w[A][1].substring(w[A][1].length-w[A-1][1].length)==w[A-1][1]?(w[A][1]=w[A-1][1]+w[A][1].substring(0,w[A][1].length-w[A-1][1].length),w[A+1][1]=w[A-1][1]+w[A+1][1],w.splice(A-1,1),O=!0):w[A][1].substring(0,w[A+1][1].length)==w[A+1][1]&&(w[A-1][1]+=w[A+1][1],w[A][1]=w[A][1].substring(w[A+1][1].length)+w[A+1][1],w.splice(A+1,1),O=!0)),A++;O&&v(w)}var h=s;h.INSERT=i,h.DELETE=o,h.EQUAL=a,n.exports=h;function g(w,A){if(A===0)return[a,w];for(var S=0,E=0;E<w.length;E++){var D=w[E];if(D[0]===o||D[0]===a){var _=S+D[1].length;if(A===_)return[E+1,w];if(A<_){w=w.slice();var M=A-S,O=[D[0],D[1].slice(0,M)],k=[D[0],D[1].slice(M)];return w.splice(E,1,O,k),[E+1,w]}else S=_}}throw new Error("cursor_pos is out of bounds!")}function y(w,A){var S=g(w,A),E=S[1],D=S[0],_=E[D],M=E[D+1];if(_==null)return w;if(_[0]!==a)return w;if(M!=null&&_[1]+M[1]===M[1]+_[1])return E.splice(D,2,M,_),b(E,D,2);if(M!=null&&M[1].indexOf(_[1])===0){E.splice(D,2,[M[0],_[1]],[0,_[1]]);var O=M[1].slice(_[1].length);return O.length>0&&E.splice(D+2,0,[M[0],O]),b(E,D,3)}else return w}function m(w){for(var A=!1,S=function(M){return M.charCodeAt(0)>=56320&&M.charCodeAt(0)<=57343},E=function(M){return M.charCodeAt(M.length-1)>=55296&&M.charCodeAt(M.length-1)<=56319},D=2;D<w.length;D+=1)w[D-2][0]===a&&E(w[D-2][1])&&w[D-1][0]===o&&S(w[D-1][1])&&w[D][0]===i&&S(w[D][1])&&(A=!0,w[D-1][1]=w[D-2][1].slice(-1)+w[D-1][1],w[D][1]=w[D-2][1].slice(-1)+w[D][1],w[D-2][1]=w[D-2][1].slice(0,-1));if(!A)return w;for(var _=[],D=0;D<w.length;D+=1)w[D][1].length>0&&_.push(w[D]);return _}function b(w,A,S){for(var E=A+S-1;E>=0&&E>=A-1;E--)if(E+1<w.length){var D=w[E],_=w[E+1];D[0]===_[1]&&w.splice(E,2,[D[0],D[1]+_[1]])}return w}}),(function(n,r){r=n.exports=typeof Object.keys=="function"?Object.keys:o,r.shim=o;function o(i){var a=[];for(var s in i)a.push(s);return a}}),(function(n,r){var o=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";r=n.exports=o?i:a,r.supported=i;function i(s){return Object.prototype.toString.call(s)=="[object Arguments]"}r.unsupported=a;function a(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}}),(function(n,r){var o=Object.prototype.hasOwnProperty,i="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(i=!1));function s(u,d,c){this.fn=u,this.context=d,this.once=c||!1}function l(){this._events=new a,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],c,f;if(this._eventsCount===0)return d;for(f in c=this._events)o.call(c,f)&&d.push(i?f.slice(1):f);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(c)):d},l.prototype.listeners=function(d,c){var f=i?i+d:d,p=this._events[f];if(c)return!!p;if(!p)return[];if(p.fn)return[p.fn];for(var v=0,h=p.length,g=new Array(h);v<h;v++)g[v]=p[v].fn;return g},l.prototype.emit=function(d,c,f,p,v,h){var g=i?i+d:d;if(!this._events[g])return!1;var y=this._events[g],m=arguments.length,b,w;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),m){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,c),!0;case 3:return y.fn.call(y.context,c,f),!0;case 4:return y.fn.call(y.context,c,f,p),!0;case 5:return y.fn.call(y.context,c,f,p,v),!0;case 6:return y.fn.call(y.context,c,f,p,v,h),!0}for(w=1,b=new Array(m-1);w<m;w++)b[w-1]=arguments[w];y.fn.apply(y.context,b)}else{var A=y.length,S;for(w=0;w<A;w++)switch(y[w].once&&this.removeListener(d,y[w].fn,void 0,!0),m){case 1:y[w].fn.call(y[w].context);break;case 2:y[w].fn.call(y[w].context,c);break;case 3:y[w].fn.call(y[w].context,c,f);break;case 4:y[w].fn.call(y[w].context,c,f,p);break;default:if(!b)for(S=1,b=new Array(m-1);S<m;S++)b[S-1]=arguments[S];y[w].fn.apply(y[w].context,b)}}return!0},l.prototype.on=function(d,c,f){var p=new s(c,f||this),v=i?i+d:d;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],p]:this._events[v].push(p):(this._events[v]=p,this._eventsCount++),this},l.prototype.once=function(d,c,f){var p=new s(c,f||this,!0),v=i?i+d:d;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],p]:this._events[v].push(p):(this._events[v]=p,this._eventsCount++),this},l.prototype.removeListener=function(d,c,f,p){var v=i?i+d:d;if(!this._events[v])return this;if(!c)return--this._eventsCount===0?this._events=new a:delete this._events[v],this;var h=this._events[v];if(h.fn)h.fn===c&&(!p||h.once)&&(!f||h.context===f)&&(--this._eventsCount===0?this._events=new a:delete this._events[v]);else{for(var g=0,y=[],m=h.length;g<m;g++)(h[g].fn!==c||p&&!h[g].once||f&&h[g].context!==f)&&y.push(h[g]);y.length?this._events[v]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new a:delete this._events[v]}return this},l.prototype.removeAllListeners=function(d){var c;return d?(c=i?i+d:d,this._events[c]&&(--this._eventsCount===0?this._events=new a:delete this._events[c])):(this._events=new a,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=i,l.EventEmitter=l,typeof n<"u"&&(n.exports=l)}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},a=(function(){function ie(ue,Be){var Me=[],Fe=!0,ze=!1,Ne=void 0;try{for(var Re=ue[Symbol.iterator](),gt;!(Fe=(gt=Re.next()).done)&&(Me.push(gt.value),!(Be&&Me.length===Be));Fe=!0);}catch(Bt){ze=!0,Ne=Bt}finally{try{!Fe&&Re.return&&Re.return()}finally{if(ze)throw Ne}}return Me}return function(ue,Be){if(Array.isArray(ue))return ue;if(Symbol.iterator in Object(ue))return ie(ue,Be);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function ie(ue,Be){for(var Me=0;Me<Be.length;Me++){var Fe=Be[Me];Fe.enumerable=Fe.enumerable||!1,Fe.configurable=!0,"value"in Fe&&(Fe.writable=!0),Object.defineProperty(ue,Fe.key,Fe)}}return function(ue,Be,Me){return Be&&ie(ue.prototype,Be),Me&&ie(ue,Me),ue}})(),l=o(3),u=k(l),d=o(2),c=k(d),f=o(0),p=k(f),v=o(5),h=k(v),g=o(10),y=k(g),m=o(9),b=k(m),w=o(36),A=o(37),S=o(13),E=k(S),D=o(26),_=o(38),M=o(39),O=o(40);function k(ie){return ie&&ie.__esModule?ie:{default:ie}}function R(ie,ue,Be){return ue in ie?Object.defineProperty(ie,ue,{value:Be,enumerable:!0,configurable:!0,writable:!0}):ie[ue]=Be,ie}function N(ie,ue){if(!(ie instanceof ue))throw new TypeError("Cannot call a class as a function")}function W(ie,ue){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue&&(typeof ue=="object"||typeof ue=="function")?ue:ie}function B(ie,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ue);ie.prototype=Object.create(ue&&ue.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),ue&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,ue):ie.__proto__=ue)}var z=(0,y.default)("quill:clipboard"),j="__ql-matcher",q=[[Node.TEXT_NODE,pe],[Node.TEXT_NODE,Q],["br",Ae],[Node.ELEMENT_NODE,Q],[Node.ELEMENT_NODE,Pe],[Node.ELEMENT_NODE,me],[Node.ELEMENT_NODE,ve],[Node.ELEMENT_NODE,De],["li",Ee],["b",le.bind(le,"bold")],["i",le.bind(le,"italic")],["style",he]],Y=[w.AlignAttribute,_.DirectionAttribute].reduce(function(ie,ue){return ie[ue.keyName]=ue,ie},{}),U=[w.AlignStyle,A.BackgroundStyle,D.ColorStyle,_.DirectionStyle,M.FontStyle,O.SizeStyle].reduce(function(ie,ue){return ie[ue.keyName]=ue,ie},{}),F=(function(ie){B(ue,ie);function ue(Be,Me){N(this,ue);var Fe=W(this,(ue.__proto__||Object.getPrototypeOf(ue)).call(this,Be,Me));return Fe.quill.root.addEventListener("paste",Fe.onPaste.bind(Fe)),Fe.container=Fe.quill.addContainer("ql-clipboard"),Fe.container.setAttribute("contenteditable",!0),Fe.container.setAttribute("tabindex",-1),Fe.matchers=[],q.concat(Fe.options.matchers).forEach(function(ze){var Ne=a(ze,2),Re=Ne[0],gt=Ne[1];!Me.matchVisual&>===me||Fe.addMatcher(Re,gt)}),Fe}return s(ue,[{key:"addMatcher",value:function(Me,Fe){this.matchers.push([Me,Fe])}},{key:"convert",value:function(Me){if(typeof Me=="string")return this.container.innerHTML=Me.replace(/\>\r?\n +\</g,"><"),this.convert();var Fe=this.quill.getFormat(this.quill.selection.savedRange.index);if(Fe[E.default.blotName]){var ze=this.container.innerText;return this.container.innerHTML="",new c.default().insert(ze,R({},E.default.blotName,Fe[E.default.blotName]))}var Ne=this.prepareMatching(),Re=a(Ne,2),gt=Re[0],Bt=Re[1],Lt=Z(this.container,gt,Bt);return X(Lt,`
- `)&&Lt.ops[Lt.ops.length-1].attributes==null&&(Lt=Lt.compose(new c.default().retain(Lt.length()-1).delete(1))),z.log("convert",this.container.innerHTML,Lt),this.container.innerHTML="",Lt}},{key:"dangerouslyPasteHTML",value:function(Me,Fe){var ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;if(typeof Me=="string")this.quill.setContents(this.convert(Me),Fe),this.quill.setSelection(0,h.default.sources.SILENT);else{var Ne=this.convert(Fe);this.quill.updateContents(new c.default().retain(Me).concat(Ne),ze),this.quill.setSelection(Me+Ne.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(Me){var Fe=this;if(!(Me.defaultPrevented||!this.quill.isEnabled())){var ze=this.quill.getSelection(),Ne=new c.default().retain(ze.index),Re=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout(function(){Ne=Ne.concat(Fe.convert()).delete(ze.length),Fe.quill.updateContents(Ne,h.default.sources.USER),Fe.quill.setSelection(Ne.length()-ze.length,h.default.sources.SILENT),Fe.quill.scrollingContainer.scrollTop=Re,Fe.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Me=this,Fe=[],ze=[];return this.matchers.forEach(function(Ne){var Re=a(Ne,2),gt=Re[0],Bt=Re[1];switch(gt){case Node.TEXT_NODE:ze.push(Bt);break;case Node.ELEMENT_NODE:Fe.push(Bt);break;default:[].forEach.call(Me.container.querySelectorAll(gt),function(Lt){Lt[j]=Lt[j]||[],Lt[j].push(Bt)});break}}),[Fe,ze]}}]),ue})(b.default);F.DEFAULTS={matchers:[],matchVisual:!0};function H(ie,ue,Be){return(typeof ue>"u"?"undefined":i(ue))==="object"?Object.keys(ue).reduce(function(Me,Fe){return H(Me,Fe,ue[Fe])},ie):ie.reduce(function(Me,Fe){return Fe.attributes&&Fe.attributes[ue]?Me.push(Fe):Me.insert(Fe.insert,(0,u.default)({},R({},ue,Be),Fe.attributes))},new c.default)}function re(ie){if(ie.nodeType!==Node.ELEMENT_NODE)return{};var ue="__ql-computed-style";return ie[ue]||(ie[ue]=window.getComputedStyle(ie))}function X(ie,ue){for(var Be="",Me=ie.ops.length-1;Me>=0&&Be.length<ue.length;--Me){var Fe=ie.ops[Me];if(typeof Fe.insert!="string")break;Be=Fe.insert+Be}return Be.slice(-1*ue.length)===ue}function te(ie){if(ie.childNodes.length===0)return!1;var ue=re(ie);return["block","list-item"].indexOf(ue.display)>-1}function Z(ie,ue,Be){return ie.nodeType===ie.TEXT_NODE?Be.reduce(function(Me,Fe){return Fe(ie,Me)},new c.default):ie.nodeType===ie.ELEMENT_NODE?[].reduce.call(ie.childNodes||[],function(Me,Fe){var ze=Z(Fe,ue,Be);return Fe.nodeType===ie.ELEMENT_NODE&&(ze=ue.reduce(function(Ne,Re){return Re(Fe,Ne)},ze),ze=(Fe[j]||[]).reduce(function(Ne,Re){return Re(Fe,Ne)},ze)),Me.concat(ze)},new c.default):new c.default}function le(ie,ue,Be){return H(Be,ie,!0)}function ve(ie,ue){var Be=p.default.Attributor.Attribute.keys(ie),Me=p.default.Attributor.Class.keys(ie),Fe=p.default.Attributor.Style.keys(ie),ze={};return Be.concat(Me).concat(Fe).forEach(function(Ne){var Re=p.default.query(Ne,p.default.Scope.ATTRIBUTE);Re!=null&&(ze[Re.attrName]=Re.value(ie),ze[Re.attrName])||(Re=Y[Ne],Re!=null&&(Re.attrName===Ne||Re.keyName===Ne)&&(ze[Re.attrName]=Re.value(ie)||void 0),Re=U[Ne],Re!=null&&(Re.attrName===Ne||Re.keyName===Ne)&&(Re=U[Ne],ze[Re.attrName]=Re.value(ie)||void 0))}),Object.keys(ze).length>0&&(ue=H(ue,ze)),ue}function Pe(ie,ue){var Be=p.default.query(ie);if(Be==null)return ue;if(Be.prototype instanceof p.default.Embed){var Me={},Fe=Be.value(ie);Fe!=null&&(Me[Be.blotName]=Fe,ue=new c.default().insert(Me,Be.formats(ie)))}else typeof Be.formats=="function"&&(ue=H(ue,Be.blotName,Be.formats(ie)));return ue}function Ae(ie,ue){return X(ue,`
- `)||ue.insert(`
- `),ue}function he(){return new c.default}function Ee(ie,ue){var Be=p.default.query(ie);if(Be==null||Be.blotName!=="list-item"||!X(ue,`
- `))return ue;for(var Me=-1,Fe=ie.parentNode;!Fe.classList.contains("ql-clipboard");)(p.default.query(Fe)||{}).blotName==="list"&&(Me+=1),Fe=Fe.parentNode;return Me<=0?ue:ue.compose(new c.default().retain(ue.length()-1).retain(1,{indent:Me}))}function Q(ie,ue){return X(ue,`
- `)||(te(ie)||ue.length()>0&&ie.nextSibling&&te(ie.nextSibling))&&ue.insert(`
- `),ue}function me(ie,ue){if(te(ie)&&ie.nextElementSibling!=null&&!X(ue,`
- `)){var Be=ie.offsetHeight+parseFloat(re(ie).marginTop)+parseFloat(re(ie).marginBottom);ie.nextElementSibling.offsetTop>ie.offsetTop+Be*1.5&&ue.insert(`
- `)}return ue}function De(ie,ue){var Be={},Me=ie.style||{};return Me.fontStyle&&re(ie).fontStyle==="italic"&&(Be.italic=!0),Me.fontWeight&&(re(ie).fontWeight.startsWith("bold")||parseInt(re(ie).fontWeight)>=700)&&(Be.bold=!0),Object.keys(Be).length>0&&(ue=H(ue,Be)),parseFloat(Me.textIndent||0)>0&&(ue=new c.default().insert(" ").concat(ue)),ue}function pe(ie,ue){var Be=ie.data;if(ie.parentNode.tagName==="O:P")return ue.insert(Be.trim());if(Be.trim().length===0&&ie.parentNode.classList.contains("ql-clipboard"))return ue;if(!re(ie.parentNode).whiteSpace.startsWith("pre")){var Me=function(ze,Ne){return Ne=Ne.replace(/[^\u00a0]/g,""),Ne.length<1&&ze?" ":Ne};Be=Be.replace(/\r\n/g," ").replace(/\n/g," "),Be=Be.replace(/\s\s+/g,Me.bind(Me,!0)),(ie.previousSibling==null&&te(ie.parentNode)||ie.previousSibling!=null&&te(ie.previousSibling))&&(Be=Be.replace(/^\s+/,Me.bind(Me,!1))),(ie.nextSibling==null&&te(ie.parentNode)||ie.nextSibling!=null&&te(ie.nextSibling))&&(Be=Be.replace(/\s+$/,Me.bind(Me,!1)))}return ue.insert(Be)}r.default=F,r.matchAttributor=ve,r.matchBlot=Pe,r.matchNewline=Q,r.matchSpacing=me,r.matchText=pe}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(6),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(){return d(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return i(h,[{key:"optimize",value:function(y){a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),h})(l.default);p.blotName="bold",p.tagName=["STRONG","B"],r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var i=(function(){function O(k,R){var N=[],W=!0,B=!1,z=void 0;try{for(var j=k[Symbol.iterator](),q;!(W=(q=j.next()).done)&&(N.push(q.value),!(R&&N.length===R));W=!0);}catch(Y){B=!0,z=Y}finally{try{!W&&j.return&&j.return()}finally{if(B)throw z}}return N}return function(k,R){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return O(k,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function O(k,R){for(var N=0;N<R.length;N++){var W=R[N];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(k,W.key,W)}}return function(k,R,N){return R&&O(k.prototype,R),N&&O(k,N),k}})(),s=o(2),l=y(s),u=o(0),d=y(u),c=o(5),f=y(c),p=o(10),v=y(p),h=o(9),g=y(h);function y(O){return O&&O.__esModule?O:{default:O}}function m(O,k,R){return k in O?Object.defineProperty(O,k,{value:R,enumerable:!0,configurable:!0,writable:!0}):O[k]=R,O}function b(O,k){if(!(O instanceof k))throw new TypeError("Cannot call a class as a function")}function w(O,k){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:O}function A(O,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);O.prototype=Object.create(k&&k.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(O,k):O.__proto__=k)}var S=(0,v.default)("quill:toolbar"),E=(function(O){A(k,O);function k(R,N){b(this,k);var W=w(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,R,N));if(Array.isArray(W.options.container)){var B=document.createElement("div");_(B,W.options.container),R.container.parentNode.insertBefore(B,R.container),W.container=B}else typeof W.options.container=="string"?W.container=document.querySelector(W.options.container):W.container=W.options.container;if(!(W.container instanceof HTMLElement)){var z;return z=S.error("Container required for toolbar",W.options),w(W,z)}return W.container.classList.add("ql-toolbar"),W.controls=[],W.handlers={},Object.keys(W.options.handlers).forEach(function(j){W.addHandler(j,W.options.handlers[j])}),[].forEach.call(W.container.querySelectorAll("button, select"),function(j){W.attach(j)}),W.quill.on(f.default.events.EDITOR_CHANGE,function(j,q){j===f.default.events.SELECTION_CHANGE&&W.update(q)}),W.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var j=W.quill.selection.getRange(),q=i(j,1),Y=q[0];W.update(Y)}),W}return a(k,[{key:"addHandler",value:function(N,W){this.handlers[N]=W}},{key:"attach",value:function(N){var W=this,B=[].find.call(N.classList,function(j){return j.indexOf("ql-")===0});if(B){if(B=B.slice(3),N.tagName==="BUTTON"&&N.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){S.warn("ignoring attaching to disabled format",B,N);return}if(d.default.query(B)==null){S.warn("ignoring attaching to nonexistent format",B,N);return}}var z=N.tagName==="SELECT"?"change":"click";N.addEventListener(z,function(j){var q=void 0;if(N.tagName==="SELECT"){if(N.selectedIndex<0)return;var Y=N.options[N.selectedIndex];Y.hasAttribute("selected")?q=!1:q=Y.value||!1}else N.classList.contains("ql-active")?q=!1:q=N.value||!N.hasAttribute("value"),j.preventDefault();W.quill.focus();var U=W.quill.selection.getRange(),F=i(U,1),H=F[0];if(W.handlers[B]!=null)W.handlers[B].call(W,q);else if(d.default.query(B).prototype instanceof d.default.Embed){if(q=prompt("Enter "+B),!q)return;W.quill.updateContents(new l.default().retain(H.index).delete(H.length).insert(m({},B,q)),f.default.sources.USER)}else W.quill.format(B,q,f.default.sources.USER);W.update(H)}),this.controls.push([B,N])}}},{key:"update",value:function(N){var W=N==null?{}:this.quill.getFormat(N);this.controls.forEach(function(B){var z=i(B,2),j=z[0],q=z[1];if(q.tagName==="SELECT"){var Y=void 0;if(N==null)Y=null;else if(W[j]==null)Y=q.querySelector("option[selected]");else if(!Array.isArray(W[j])){var U=W[j];typeof U=="string"&&(U=U.replace(/\"/g,'\\"')),Y=q.querySelector('option[value="'+U+'"]')}Y==null?(q.value="",q.selectedIndex=-1):Y.selected=!0}else if(N==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var F=W[j]===q.getAttribute("value")||W[j]!=null&&W[j].toString()===q.getAttribute("value")||W[j]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",F)}else q.classList.toggle("ql-active",W[j]!=null)})}}]),k})(g.default);E.DEFAULTS={};function D(O,k,R){var N=document.createElement("button");N.setAttribute("type","button"),N.classList.add("ql-"+k),R!=null&&(N.value=R),O.appendChild(N)}function _(O,k){Array.isArray(k[0])||(k=[k]),k.forEach(function(R){var N=document.createElement("span");N.classList.add("ql-formats"),R.forEach(function(W){if(typeof W=="string")D(N,W);else{var B=Object.keys(W)[0],z=W[B];Array.isArray(z)?M(N,B,z):D(N,B,z)}}),O.appendChild(N)})}function M(O,k,R){var N=document.createElement("select");N.classList.add("ql-"+k),R.forEach(function(W){var B=document.createElement("option");W!==!1?B.setAttribute("value",W):B.setAttribute("selected","selected"),N.appendChild(B)}),O.appendChild(N)}E.DEFAULTS={container:null,handlers:{clean:function(){var k=this,R=this.quill.getSelection();if(R!=null)if(R.length==0){var N=this.quill.getFormat();Object.keys(N).forEach(function(W){d.default.query(W,d.default.Scope.INLINE)!=null&&k.quill.format(W,!1)})}else this.quill.removeFormat(R,f.default.sources.USER)},direction:function(k){var R=this.quill.getFormat().align;k==="rtl"&&R==null?this.quill.format("align","right",f.default.sources.USER):!k&&R==="right"&&this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",k,f.default.sources.USER)},indent:function(k){var R=this.quill.getSelection(),N=this.quill.getFormat(R),W=parseInt(N.indent||0);if(k==="+1"||k==="-1"){var B=k==="+1"?1:-1;N.direction==="rtl"&&(B*=-1),this.quill.format("indent",W+B,f.default.sources.USER)}},link:function(k){k===!0&&(k=prompt("Enter link URL:")),this.quill.format("link",k,f.default.sources.USER)},list:function(k){var R=this.quill.getSelection(),N=this.quill.getFormat(R);k==="check"?N.list==="checked"||N.list==="unchecked"?this.quill.format("list",!1,f.default.sources.USER):this.quill.format("list","unchecked",f.default.sources.USER):this.quill.format("list",k,f.default.sources.USER)}}},r.default=E,r.addControls=_}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(28),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(g,y){d(this,h);var m=c(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,g));return m.label.innerHTML=y,m.container.classList.add("ql-color-picker"),[].slice.call(m.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(b){b.classList.add("ql-primary")}),m}return i(h,[{key:"buildItem",value:function(y){var m=a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"buildItem",this).call(this,y);return m.style.backgroundColor=y.getAttribute("value")||"",m}},{key:"selectItem",value:function(y,m){a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,y,m);var b=this.label.querySelector(".ql-color-label"),w=y&&y.getAttribute("data-value")||"";b&&(b.tagName==="line"?b.style.stroke=w:b.style.fill=w)}}]),h})(l.default);r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(28),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(g,y){d(this,h);var m=c(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,g));return m.container.classList.add("ql-icon-picker"),[].forEach.call(m.container.querySelectorAll(".ql-picker-item"),function(b){b.innerHTML=y[b.getAttribute("data-value")||""]}),m.defaultItem=m.container.querySelector(".ql-selected"),m.selectItem(m.defaultItem),m}return i(h,[{key:"selectItem",value:function(y,m){a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,y,m),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),h})(l.default);r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function l(u,d){for(var c=0;c<d.length;c++){var f=d[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,f.key,f)}}return function(u,d,c){return d&&l(u.prototype,d),c&&l(u,c),u}})();function a(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var s=(function(){function l(u,d){var c=this;a(this,l),this.quill=u,this.boundsContainer=d||document.body,this.root=u.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){c.root.style.marginTop=-1*c.quill.root.scrollTop+"px"}),this.hide()}return i(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var c=d.left+d.width/2-this.root.offsetWidth/2,f=d.bottom+this.quill.root.scrollTop;this.root.style.left=c+"px",this.root.style.top=f+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),h=0;if(v.right>p.right&&(h=p.right-v.right,this.root.style.left=c+h+"px"),v.left<p.left&&(h=p.left-v.left,this.root.style.left=c+h+"px"),v.bottom>p.bottom){var g=v.bottom-v.top,y=d.bottom-d.top+g;this.root.style.top=f-y+"px",this.root.classList.add("ql-flip")}return h}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l})();r.default=s}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function M(O,k){var R=[],N=!0,W=!1,B=void 0;try{for(var z=O[Symbol.iterator](),j;!(N=(j=z.next()).done)&&(R.push(j.value),!(k&&R.length===k));N=!0);}catch(q){W=!0,B=q}finally{try{!N&&z.return&&z.return()}finally{if(W)throw B}}return R}return function(O,k){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return M(O,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function M(O,k,R){O===null&&(O=Function.prototype);var N=Object.getOwnPropertyDescriptor(O,k);if(N===void 0){var W=Object.getPrototypeOf(O);return W===null?void 0:M(W,k,R)}else{if("value"in N)return N.value;var B=N.get;return B===void 0?void 0:B.call(R)}},s=(function(){function M(O,k){for(var R=0;R<k.length;R++){var N=k[R];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(O,N.key,N)}}return function(O,k,R){return k&&M(O.prototype,k),R&&M(O,R),O}})(),l=o(3),u=b(l),d=o(8),c=b(d),f=o(43),p=b(f),v=o(27),h=b(v),g=o(15),y=o(41),m=b(y);function b(M){return M&&M.__esModule?M:{default:M}}function w(M,O){if(!(M instanceof O))throw new TypeError("Cannot call a class as a function")}function A(M,O){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:M}function S(M,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);M.prototype=Object.create(O&&O.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(M,O):M.__proto__=O)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],D=(function(M){S(O,M);function O(k,R){w(this,O),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=E);var N=A(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,k,R));return N.quill.container.classList.add("ql-snow"),N}return s(O,[{key:"extendToolbar",value:function(R){R.container.classList.add("ql-snow"),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),m.default),this.tooltip=new _(this.quill,this.options.bounds),R.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(N,W){R.handlers.link.call(R,!W.format.link)})}}]),O})(p.default);D.DEFAULTS=(0,u.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){if(O){var k=this.quill.getSelection();if(k==null||k.length==0)return;var R=this.quill.getText(k);/^\S+@\S+\.\S+$/.test(R)&&R.indexOf("mailto:")!==0&&(R="mailto:"+R);var N=this.quill.theme.tooltip;N.edit("link",R)}else this.quill.format("link",!1)}}}}});var _=(function(M){S(O,M);function O(k,R){w(this,O);var N=A(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,k,R));return N.preview=N.root.querySelector("a.ql-preview"),N}return s(O,[{key:"listen",value:function(){var R=this;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(N){R.root.classList.contains("ql-editing")?R.save():R.edit("link",R.preview.textContent),N.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(N){if(R.linkRange!=null){var W=R.linkRange;R.restoreFocus(),R.quill.formatText(W,"link",!1,c.default.sources.USER),delete R.linkRange}N.preventDefault(),R.hide()}),this.quill.on(c.default.events.SELECTION_CHANGE,function(N,W,B){if(N!=null){if(N.length===0&&B===c.default.sources.USER){var z=R.quill.scroll.descendant(h.default,N.index),j=i(z,2),q=j[0],Y=j[1];if(q!=null){R.linkRange=new g.Range(N.index-Y,q.length());var U=h.default.formats(q.domNode);R.preview.textContent=U,R.preview.setAttribute("href",U),R.show(),R.position(R.quill.getBounds(R.linkRange));return}}else delete R.linkRange;R.hide()}})}},{key:"show",value:function(){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),O})(f.BaseTooltip);_.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),r.default=D}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(29),a=Fe(i),s=o(36),l=o(38),u=o(64),d=o(65),c=Fe(d),f=o(66),p=Fe(f),v=o(67),h=Fe(v),g=o(37),y=o(26),m=o(39),b=o(40),w=o(56),A=Fe(w),S=o(68),E=Fe(S),D=o(27),_=Fe(D),M=o(69),O=Fe(M),k=o(70),R=Fe(k),N=o(71),W=Fe(N),B=o(72),z=Fe(B),j=o(73),q=Fe(j),Y=o(13),U=Fe(Y),F=o(74),H=Fe(F),re=o(75),X=Fe(re),te=o(57),Z=Fe(te),le=o(41),ve=Fe(le),Pe=o(28),Ae=Fe(Pe),he=o(59),Ee=Fe(he),Q=o(60),me=Fe(Q),De=o(61),pe=Fe(De),ie=o(108),ue=Fe(ie),Be=o(62),Me=Fe(Be);function Fe(ze){return ze&&ze.__esModule?ze:{default:ze}}a.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":b.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":u.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":m.FontClass,"formats/size":b.SizeClass,"formats/blockquote":c.default,"formats/code-block":U.default,"formats/header":p.default,"formats/list":h.default,"formats/bold":A.default,"formats/code":Y.Code,"formats/italic":E.default,"formats/link":_.default,"formats/script":O.default,"formats/strike":R.default,"formats/underline":W.default,"formats/image":z.default,"formats/video":q.default,"formats/list/item":v.ListItem,"modules/formula":H.default,"modules/syntax":X.default,"modules/toolbar":Z.default,"themes/bubble":ue.default,"themes/snow":Me.default,"ui/icons":ve.default,"ui/picker":Ae.default,"ui/icon-picker":me.default,"ui/color-picker":Ee.default,"ui/tooltip":pe.default},!0),r.default=a.default}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var i=(function(){function h(g,y){for(var m=0;m<y.length;m++){var b=y[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,y,m){return y&&h(g.prototype,y),m&&h(g,m),g}})(),a=function h(g,y,m){g===null&&(g=Function.prototype);var b=Object.getOwnPropertyDescriptor(g,y);if(b===void 0){var w=Object.getPrototypeOf(g);return w===null?void 0:h(w,y,m)}else{if("value"in b)return b.value;var A=b.get;return A===void 0?void 0:A.call(m)}},s=o(0),l=u(s);function u(h){return h&&h.__esModule?h:{default:h}}function d(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function c(h,g){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:h}function f(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);h.prototype=Object.create(g&&g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(h,g):h.__proto__=g)}var p=(function(h){f(g,h);function g(){return d(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"add",value:function(m,b){if(b==="+1"||b==="-1"){var w=this.value(m)||0;b=b==="+1"?w+1:w-1}return b===0?(this.remove(m),!0):a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,m,b)}},{key:"canAdd",value:function(m,b){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,m,b)||a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,m,parseInt(b))}},{key:"value",value:function(m){return parseInt(a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,m))||void 0}}]),g})(l.default.Attributor.Class),v=new p("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=v}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(4),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default);c.blotName="blockquote",c.tagName="blockquote",r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function p(v,h){for(var g=0;g<h.length;g++){var y=h[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(v,y.key,y)}}return function(v,h,g){return h&&p(v.prototype,h),g&&p(v,g),v}})(),a=o(4),s=l(a);function l(p){return p&&p.__esModule?p:{default:p}}function u(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function d(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function c(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var f=(function(p){c(v,p);function v(){return u(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),v})(s.default);f.blotName="header",f.tagName=["H1","H2","H3","H4","H5","H6"],r.default=f}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var i=(function(){function w(A,S){for(var E=0;E<S.length;E++){var D=S[E];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(A,D.key,D)}}return function(A,S,E){return S&&w(A.prototype,S),E&&w(A,E),A}})(),a=function w(A,S,E){A===null&&(A=Function.prototype);var D=Object.getOwnPropertyDescriptor(A,S);if(D===void 0){var _=Object.getPrototypeOf(A);return _===null?void 0:w(_,S,E)}else{if("value"in D)return D.value;var M=D.get;return M===void 0?void 0:M.call(E)}},s=o(0),l=p(s),u=o(4),d=p(u),c=o(25),f=p(c);function p(w){return w&&w.__esModule?w:{default:w}}function v(w,A,S){return A in w?Object.defineProperty(w,A,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[A]=S,w}function h(w,A){if(!(w instanceof A))throw new TypeError("Cannot call a class as a function")}function g(w,A){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:w}function y(w,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);w.prototype=Object.create(A&&A.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(w,A):w.__proto__=A)}var m=(function(w){y(A,w);function A(){return h(this,A),g(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return i(A,[{key:"format",value:function(E,D){E===b.blotName&&!D?this.replaceWith(l.default.create(this.statics.scope)):a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,E,D)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,D){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,D),this):(this.parent.unwrap(),a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,E,D))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:a(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,E)}}]),A})(d.default);m.blotName="list-item",m.tagName="LI";var b=(function(w){y(A,w),i(A,null,[{key:"create",value:function(E){var D=E==="ordered"?"OL":"UL",_=a(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,D);return(E==="checked"||E==="unchecked")&&_.setAttribute("data-checked",E==="checked"),_}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(S){h(this,A);var E=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,S)),D=function(M){if(M.target.parentNode===S){var O=E.statics.formats(S),k=l.default.find(M.target);O==="checked"?k.format("list","unchecked"):O==="unchecked"&&k.format("list","checked")}};return S.addEventListener("touchstart",D),S.addEventListener("mousedown",D),E}return i(A,[{key:"format",value:function(E,D){this.children.length>0&&this.children.tail.format(E,D)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,D){if(E instanceof m)a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,E,D);else{var _=D==null?this.length():D.offset(this),M=this.split(_);M.parent.insertBefore(E,M)}}},{key:"optimize",value:function(E){a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,E);var D=this.next;D!=null&&D.prev===this&&D.statics.blotName===this.statics.blotName&&D.domNode.tagName===this.domNode.tagName&&D.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(D.moveChildren(this),D.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var D=l.default.create(this.statics.defaultChild);E.moveChildren(D),this.appendChild(D)}a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,E)}}]),A})(f.default);b.blotName="list",b.scope=l.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[m],r.ListItem=m,r.default=b}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(56),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default);c.blotName="italic",c.tagName=["EM","I"],r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function v(h,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}return function(h,g,y){return g&&v(h.prototype,g),y&&v(h,y),h}})(),a=function v(h,g,y){h===null&&(h=Function.prototype);var m=Object.getOwnPropertyDescriptor(h,g);if(m===void 0){var b=Object.getPrototypeOf(h);return b===null?void 0:v(b,g,y)}else{if("value"in m)return m.value;var w=m.get;return w===void 0?void 0:w.call(y)}},s=o(6),l=u(s);function u(v){return v&&v.__esModule?v:{default:v}}function d(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function c(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function f(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var p=(function(v){f(h,v);function h(){return d(this,h),c(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return i(h,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):a(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),h})(l.default);p.blotName="script",p.tagName=["SUB","SUP"],r.default=p}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(6),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default);c.blotName="strike",c.tagName="S",r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=o(6),a=s(i);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var c=(function(f){d(p,f);function p(){return l(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p})(a.default);c.blotName="underline",c.tagName="U",r.default=c}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),a=function g(y,m,b){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,m);if(w===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:g(A,m,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},s=o(0),l=d(s),u=o(27);function d(g){return g&&g.__esModule?g:{default:g}}function c(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function f(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function p(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["alt","height","width"],h=(function(g){p(y,g);function y(){return c(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(b,w){v.indexOf(b)>-1?w?this.domNode.setAttribute(b,w):this.domNode.removeAttribute(b):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,b,w)}}],[{key:"create",value:function(b){var w=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,b);return typeof b=="string"&&w.setAttribute("src",this.sanitize(b)),w}},{key:"formats",value:function(b){return v.reduce(function(w,A){return b.hasAttribute(A)&&(w[A]=b.getAttribute(A)),w},{})}},{key:"match",value:function(b){return/\.(jpe?g|gif|png)$/.test(b)||/^data:image\/.+;base64/.test(b)}},{key:"sanitize",value:function(b){return(0,u.sanitize)(b,["http","https","data"])?b:"//:0"}},{key:"value",value:function(b){return b.getAttribute("src")}}]),y})(l.default.Embed);h.blotName="image",h.tagName="IMG",r.default=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0});var i=(function(){function g(y,m){for(var b=0;b<m.length;b++){var w=m[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,m,b){return m&&g(y.prototype,m),b&&g(y,b),y}})(),a=function g(y,m,b){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,m);if(w===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:g(A,m,b)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(b)}},s=o(4),l=o(27),u=d(l);function d(g){return g&&g.__esModule?g:{default:g}}function c(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function f(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function p(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var v=["height","width"],h=(function(g){p(y,g);function y(){return c(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(b,w){v.indexOf(b)>-1?w?this.domNode.setAttribute(b,w):this.domNode.removeAttribute(b):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,b,w)}}],[{key:"create",value:function(b){var w=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,b);return w.setAttribute("frameborder","0"),w.setAttribute("allowfullscreen",!0),w.setAttribute("src",this.sanitize(b)),w}},{key:"formats",value:function(b){return v.reduce(function(w,A){return b.hasAttribute(A)&&(w[A]=b.getAttribute(A)),w},{})}},{key:"sanitize",value:function(b){return u.default.sanitize(b)}},{key:"value",value:function(b){return b.getAttribute("src")}}]),y})(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",r.default=h}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var i=(function(){function b(w,A){for(var S=0;S<A.length;S++){var E=A[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,A,S){return A&&b(w.prototype,A),S&&b(w,S),w}})(),a=function b(w,A,S){w===null&&(w=Function.prototype);var E=Object.getOwnPropertyDescriptor(w,A);if(E===void 0){var D=Object.getPrototypeOf(w);return D===null?void 0:b(D,A,S)}else{if("value"in E)return E.value;var _=E.get;return _===void 0?void 0:_.call(S)}},s=o(35),l=p(s),u=o(5),d=p(u),c=o(9),f=p(c);function p(b){return b&&b.__esModule?b:{default:b}}function v(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function h(b,w){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:b}function g(b,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);b.prototype=Object.create(w&&w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(b,w):b.__proto__=w)}var y=(function(b){g(w,b);function w(){return v(this,w),h(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return i(w,null,[{key:"create",value:function(S){var E=a(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",S)),E}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),w})(l.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var m=(function(b){g(w,b),i(w,null,[{key:"register",value:function(){d.default.register(y,!0)}}]);function w(){v(this,w);var A=h(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return w})(f.default);r.FormulaBlot=y,r.default=m}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var i=(function(){function S(E,D){for(var _=0;_<D.length;_++){var M=D[_];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(E,M.key,M)}}return function(E,D,_){return D&&S(E.prototype,D),_&&S(E,_),E}})(),a=function S(E,D,_){E===null&&(E=Function.prototype);var M=Object.getOwnPropertyDescriptor(E,D);if(M===void 0){var O=Object.getPrototypeOf(E);return O===null?void 0:S(O,D,_)}else{if("value"in M)return M.value;var k=M.get;return k===void 0?void 0:k.call(_)}},s=o(0),l=h(s),u=o(5),d=h(u),c=o(9),f=h(c),p=o(13),v=h(p);function h(S){return S&&S.__esModule?S:{default:S}}function g(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function y(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function m(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var b=(function(S){m(E,S);function E(){return g(this,E),y(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return i(E,[{key:"replaceWith",value:function(_){this.domNode.textContent=this.domNode.textContent,this.attach(),a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,_)}},{key:"highlight",value:function(_){var M=this.domNode.textContent;this.cachedText!==M&&((M.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=_(M),this.domNode.normalize(),this.attach()),this.cachedText=M)}}]),E})(v.default);b.className="ql-syntax";var w=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),A=(function(S){m(E,S),i(E,null,[{key:"register",value:function(){d.default.register(w,!0),d.default.register(b,!0)}}]);function E(D,_){g(this,E);var M=y(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,D,_));if(typeof M.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var O=null;return M.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(O),O=setTimeout(function(){M.highlight(),O=null},M.options.interval)}),M.highlight(),M}return i(E,[{key:"highlight",value:function(){var _=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var M=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(O){O.highlight(_.options.highlight)}),this.quill.update(d.default.sources.SILENT),M!=null&&this.quill.setSelection(M,d.default.sources.SILENT)}}}]),E})(f.default);A.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(S){var E=window.hljs.highlightAuto(S);return E.value}})(),interval:1e3},r.CodeBlock=b,r.CodeToken=w,r.default=A}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(n,r,o){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var i=function E(D,_,M){D===null&&(D=Function.prototype);var O=Object.getOwnPropertyDescriptor(D,_);if(O===void 0){var k=Object.getPrototypeOf(D);return k===null?void 0:E(k,_,M)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(M)}},a=(function(){function E(D,_){for(var M=0;M<_.length;M++){var O=_[M];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(D,O.key,O)}}return function(D,_,M){return _&&E(D.prototype,_),M&&E(D,M),D}})(),s=o(3),l=g(s),u=o(8),d=g(u),c=o(43),f=g(c),p=o(15),v=o(41),h=g(v);function g(E){return E&&E.__esModule?E:{default:E}}function y(E,D){if(!(E instanceof D))throw new TypeError("Cannot call a class as a function")}function m(E,D){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:E}function b(E,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);E.prototype=Object.create(D&&D.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(E,D):E.__proto__=D)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=(function(E){b(D,E);function D(_,M){y(this,D),M.modules.toolbar!=null&&M.modules.toolbar.container==null&&(M.modules.toolbar.container=w);var O=m(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,_,M));return O.quill.container.classList.add("ql-bubble"),O}return a(D,[{key:"extendToolbar",value:function(M){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(M.container),this.buildButtons([].slice.call(M.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(M.container.querySelectorAll("select")),h.default)}}]),D})(f.default);A.DEFAULTS=(0,l.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(D){D?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=(function(E){b(D,E);function D(_,M){y(this,D);var O=m(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,_,M));return O.quill.on(d.default.events.EDITOR_CHANGE,function(k,R,N,W){if(k===d.default.events.SELECTION_CHANGE)if(R!=null&&R.length>0&&W===d.default.sources.USER){O.show(),O.root.style.left="0px",O.root.style.width="",O.root.style.width=O.root.offsetWidth+"px";var B=O.quill.getLines(R.index,R.length);if(B.length===1)O.position(O.quill.getBounds(R));else{var z=B[B.length-1],j=O.quill.getIndex(z),q=Math.min(z.length()-1,R.index+R.length-j),Y=O.quill.getBounds(new p.Range(j,q));O.position(Y)}}else document.activeElement!==O.textbox&&O.quill.hasFocus()&&O.hide()}),O}return a(D,[{key:"listen",value:function(){var M=this;i(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){M.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!M.root.classList.contains("ql-hidden")){var O=M.quill.getSelection();O!=null&&M.position(M.quill.getBounds(O))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(M){var O=i(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"position",this).call(this,M),k=this.root.querySelector(".ql-tooltip-arrow");if(k.style.marginLeft="",O===0)return O;k.style.marginLeft=-1*O-k.offsetWidth/2+"px"}}]),D})(c.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=S,r.default=A}),(function(n,r,o){n.exports=o(63)})]).default})})(eE)),eE.exports}var Hfn=jfn();const HB=xu(Hfn);var WB,x0e;function Wfn(){if(x0e)return WB;x0e=1;var e=-1,t=1,n=0;function r(b,w,A,S){if(b===w)return b?[[n,b]]:[];if(A!=null){var E=y(b,w,A);if(E)return E}var D=s(b,w),_=b.substring(0,D);b=b.substring(D),w=w.substring(D),D=l(b,w);var M=b.substring(b.length-D);b=b.substring(0,b.length-D),w=w.substring(0,w.length-D);var O=o(b,w);return _&&O.unshift([n,_]),M&&O.push([n,M]),d(O,S),O}function o(b,w){var A;if(!b)return[[t,w]];if(!w)return[[e,b]];var S=b.length>w.length?b:w,E=b.length>w.length?w:b,D=S.indexOf(E);if(D!==-1)return A=[[t,S.substring(0,D)],[n,E],[t,S.substring(D+E.length)]],b.length>w.length&&(A[0][0]=A[2][0]=e),A;if(E.length===1)return[[e,b],[t,w]];var _=u(b,w);if(_){var M=_[0],O=_[1],k=_[2],R=_[3],N=_[4],W=r(M,k),B=r(O,R);return W.concat([[n,N]],B)}return i(b,w)}function i(b,w){for(var A=b.length,S=w.length,E=Math.ceil((A+S)/2),D=E,_=2*E,M=new Array(_),O=new Array(_),k=0;k<_;k++)M[k]=-1,O[k]=-1;M[D+1]=0,O[D+1]=0;for(var R=A-S,N=R%2!==0,W=0,B=0,z=0,j=0,q=0;q<E;q++){for(var Y=-q+W;Y<=q-B;Y+=2){var U=D+Y,F;Y===-q||Y!==q&&M[U-1]<M[U+1]?F=M[U+1]:F=M[U-1]+1;for(var H=F-Y;F<A&&H<S&&b.charAt(F)===w.charAt(H);)F++,H++;if(M[U]=F,F>A)B+=2;else if(H>S)W+=2;else if(N){var re=D+R-Y;if(re>=0&&re<_&&O[re]!==-1){var X=A-O[re];if(F>=X)return a(b,w,F,H)}}}for(var te=-q+z;te<=q-j;te+=2){var re=D+te,X;te===-q||te!==q&&O[re-1]<O[re+1]?X=O[re+1]:X=O[re-1]+1;for(var Z=X-te;X<A&&Z<S&&b.charAt(A-X-1)===w.charAt(S-Z-1);)X++,Z++;if(O[re]=X,X>A)j+=2;else if(Z>S)z+=2;else if(!N){var U=D+R-te;if(U>=0&&U<_&&M[U]!==-1){var F=M[U],H=D+F-U;if(X=A-X,F>=X)return a(b,w,F,H)}}}}return[[e,b],[t,w]]}function a(b,w,A,S){var E=b.substring(0,A),D=w.substring(0,S),_=b.substring(A),M=w.substring(S),O=r(E,D),k=r(_,M);return O.concat(k)}function s(b,w){if(!b||!w||b.charAt(0)!==w.charAt(0))return 0;for(var A=0,S=Math.min(b.length,w.length),E=S,D=0;A<E;)b.substring(D,E)==w.substring(D,E)?(A=E,D=A):S=E,E=Math.floor((S-A)/2+A);return c(b.charCodeAt(E-1))&&E--,E}function l(b,w){if(!b||!w||b.slice(-1)!==w.slice(-1))return 0;for(var A=0,S=Math.min(b.length,w.length),E=S,D=0;A<E;)b.substring(b.length-E,b.length-D)==w.substring(w.length-E,w.length-D)?(A=E,D=A):S=E,E=Math.floor((S-A)/2+A);return f(b.charCodeAt(b.length-E))&&E--,E}function u(b,w){var A=b.length>w.length?b:w,S=b.length>w.length?w:b;if(A.length<4||S.length*2<A.length)return null;function E(B,z,j){for(var q=B.substring(j,j+Math.floor(B.length/4)),Y=-1,U="",F,H,re,X;(Y=z.indexOf(q,Y+1))!==-1;){var te=s(B.substring(j),z.substring(Y)),Z=l(B.substring(0,j),z.substring(0,Y));U.length<Z+te&&(U=z.substring(Y-Z,Y)+z.substring(Y,Y+te),F=B.substring(0,j-Z),H=B.substring(j+te),re=z.substring(0,Y-Z),X=z.substring(Y+te))}return U.length*2>=B.length?[F,H,re,X,U]:null}var D=E(A,S,Math.ceil(A.length/4)),_=E(A,S,Math.ceil(A.length/2)),M;if(!D&&!_)return null;_?D?M=D[4].length>_[4].length?D:_:M=_:M=D;var O,k,R,N;b.length>w.length?(O=M[0],k=M[1],R=M[2],N=M[3]):(R=M[0],N=M[1],O=M[2],k=M[3]);var W=M[4];return[O,k,R,N,W]}function d(b,w){b.push([n,""]);for(var A=0,S=0,E=0,D="",_="",M;A<b.length;){if(A<b.length-1&&!b[A][1]){b.splice(A,1);continue}switch(b[A][0]){case t:E++,_+=b[A][1],A++;break;case e:S++,D+=b[A][1],A++;break;case n:var O=A-E-S-1;if(w){if(O>=0&&v(b[O][1])){var k=b[O][1].slice(-1);if(b[O][1]=b[O][1].slice(0,-1),D=k+D,_=k+_,!b[O][1]){b.splice(O,1),A--;var R=O-1;b[R]&&b[R][0]===t&&(E++,_=b[R][1]+_,R--),b[R]&&b[R][0]===e&&(S++,D=b[R][1]+D,R--),O=R}}if(p(b[A][1])){var k=b[A][1].charAt(0);b[A][1]=b[A][1].slice(1),D+=k,_+=k}}if(A<b.length-1&&!b[A][1]){b.splice(A,1);break}if(D.length>0||_.length>0){D.length>0&&_.length>0&&(M=s(_,D),M!==0&&(O>=0?b[O][1]+=_.substring(0,M):(b.splice(0,0,[n,_.substring(0,M)]),A++),_=_.substring(M),D=D.substring(M)),M=l(_,D),M!==0&&(b[A][1]=_.substring(_.length-M)+b[A][1],_=_.substring(0,_.length-M),D=D.substring(0,D.length-M)));var N=E+S;D.length===0&&_.length===0?(b.splice(A-N,N),A=A-N):D.length===0?(b.splice(A-N,N,[t,_]),A=A-N+1):_.length===0?(b.splice(A-N,N,[e,D]),A=A-N+1):(b.splice(A-N,N,[e,D],[t,_]),A=A-N+2)}A!==0&&b[A-1][0]===n?(b[A-1][1]+=b[A][1],b.splice(A,1)):A++,E=0,S=0,D="",_="";break}}b[b.length-1][1]===""&&b.pop();var W=!1;for(A=1;A<b.length-1;)b[A-1][0]===n&&b[A+1][0]===n&&(b[A][1].substring(b[A][1].length-b[A-1][1].length)===b[A-1][1]?(b[A][1]=b[A-1][1]+b[A][1].substring(0,b[A][1].length-b[A-1][1].length),b[A+1][1]=b[A-1][1]+b[A+1][1],b.splice(A-1,1),W=!0):b[A][1].substring(0,b[A+1][1].length)==b[A+1][1]&&(b[A-1][1]+=b[A+1][1],b[A][1]=b[A][1].substring(b[A+1][1].length)+b[A+1][1],b.splice(A+1,1),W=!0)),A++;W&&d(b,w)}function c(b){return b>=55296&&b<=56319}function f(b){return b>=56320&&b<=57343}function p(b){return f(b.charCodeAt(0))}function v(b){return c(b.charCodeAt(b.length-1))}function h(b){for(var w=[],A=0;A<b.length;A++)b[A][1].length>0&&w.push(b[A]);return w}function g(b,w,A,S){return v(b)||p(S)?null:h([[n,b],[e,w],[t,A],[n,S]])}function y(b,w,A){var S=typeof A=="number"?{index:A,length:0}:A.oldRange,E=typeof A=="number"?null:A.newRange,D=b.length,_=w.length;if(S.length===0&&(E===null||E.length===0)){var M=S.index,O=b.slice(0,M),k=b.slice(M),R=E?E.index:null;e:{var N=M+_-D;if(R!==null&&R!==N||N<0||N>_)break e;var W=w.slice(0,N),B=w.slice(N);if(B!==k)break e;var z=Math.min(M,N),j=O.slice(0,z),q=W.slice(0,z);if(j!==q)break e;var Y=O.slice(z),U=W.slice(z);return g(j,Y,U,k)}e:{if(R!==null&&R!==M)break e;var F=M,W=w.slice(0,F),B=w.slice(F);if(W!==O)break e;var H=Math.min(D-F,_-F),re=k.slice(k.length-H),X=B.slice(B.length-H);if(re!==X)break e;var Y=k.slice(0,k.length-H),U=B.slice(0,B.length-H);return g(O,Y,U,re)}}if(S.length>0&&E&&E.length===0)e:{var j=b.slice(0,S.index),re=b.slice(S.index+S.length),z=j.length,H=re.length;if(_<z+H)break e;var q=w.slice(0,z),X=w.slice(_-H);if(j!==q||re!==X)break e;var Y=b.slice(z,D-H),U=w.slice(z,_-H);return g(j,Y,U,re)}return null}function m(b,w,A){return r(b,w,A,!0)}return m.INSERT=t,m.DELETE=e,m.EQUAL=n,WB=m,WB}var U4={exports:{}};U4.exports;var S0e;function Bke(){return S0e||(S0e=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",c="[object GeneratorFunction]",f="[object Map]",p="[object Number]",v="[object Object]",h="[object Promise]",g="[object RegExp]",y="[object Set]",m="[object String]",b="[object Symbol]",w="[object WeakMap]",A="[object ArrayBuffer]",S="[object DataView]",E="[object Float32Array]",D="[object Float64Array]",_="[object Int8Array]",M="[object Int16Array]",O="[object Int32Array]",k="[object Uint8Array]",R="[object Uint8ClampedArray]",N="[object Uint16Array]",W="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,j=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,Y={};Y[i]=Y[a]=Y[A]=Y[S]=Y[s]=Y[l]=Y[E]=Y[D]=Y[_]=Y[M]=Y[O]=Y[f]=Y[p]=Y[v]=Y[g]=Y[y]=Y[m]=Y[b]=Y[k]=Y[R]=Y[N]=Y[W]=!0,Y[u]=Y[d]=Y[w]=!1;var U=typeof Hs=="object"&&Hs&&Hs.Object===Object&&Hs,F=typeof self=="object"&&self&&self.Object===Object&&self,H=U||F||Function("return this")(),re=t&&!t.nodeType&&t,X=re&&!0&&e&&!e.nodeType&&e,te=X&&X.exports===re;function Z(we,ae){return we.set(ae[0],ae[1]),we}function le(we,ae){return we.add(ae),we}function ve(we,ae){for(var ce=-1,Ce=we?we.length:0;++ce<Ce&&ae(we[ce],ce,we)!==!1;);return we}function Pe(we,ae){for(var ce=-1,Ce=ae.length,zt=we.length;++ce<Ce;)we[zt+ce]=ae[ce];return we}function Ae(we,ae,ce,Ce){for(var zt=-1,_t=we?we.length:0;++zt<_t;)ce=ae(ce,we[zt],zt,we);return ce}function he(we,ae){for(var ce=-1,Ce=Array(we);++ce<we;)Ce[ce]=ae(ce);return Ce}function Ee(we,ae){return we?.[ae]}function Q(we){var ae=!1;if(we!=null&&typeof we.toString!="function")try{ae=!!(we+"")}catch{}return ae}function me(we){var ae=-1,ce=Array(we.size);return we.forEach(function(Ce,zt){ce[++ae]=[zt,Ce]}),ce}function De(we,ae){return function(ce){return we(ae(ce))}}function pe(we){var ae=-1,ce=Array(we.size);return we.forEach(function(Ce){ce[++ae]=Ce}),ce}var ie=Array.prototype,ue=Function.prototype,Be=Object.prototype,Me=H["__core-js_shared__"],Fe=(function(){var we=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return we?"Symbol(src)_1."+we:""})(),ze=ue.toString,Ne=Be.hasOwnProperty,Re=Be.toString,gt=RegExp("^"+ze.call(Ne).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=te?H.Buffer:void 0,Lt=H.Symbol,an=H.Uint8Array,Kt=De(Object.getPrototypeOf,Object),Ht=Object.create,pt=Be.propertyIsEnumerable,Dt=ie.splice,dt=Object.getOwnPropertySymbols,it=Bt?Bt.isBuffer:void 0,de=De(Object.keys,Object),tt=mi(H,"DataView"),ft=mi(H,"Map"),Mt=mi(H,"Promise"),Tn=mi(H,"Set"),Nn=mi(H,"WeakMap"),We=mi(Object,"create"),ke=Oe(tt),be=Oe(ft),fe=Oe(Mt),Se=Oe(Tn),qe=Oe(Nn),$e=Lt?Lt.prototype:void 0,Le=$e?$e.valueOf:void 0;function ot(we){var ae=-1,ce=we?we.length:0;for(this.clear();++ae<ce;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function vt(){this.__data__=We?We(null):{}}function Ut(we){return this.has(we)&&delete this.__data__[we]}function Qt(we){var ae=this.__data__;if(We){var ce=ae[we];return ce===r?void 0:ce}return Ne.call(ae,we)?ae[we]:void 0}function Gt(we){var ae=this.__data__;return We?ae[we]!==void 0:Ne.call(ae,we)}function vn(we,ae){var ce=this.__data__;return ce[we]=We&&ae===void 0?r:ae,this}ot.prototype.clear=vt,ot.prototype.delete=Ut,ot.prototype.get=Qt,ot.prototype.has=Gt,ot.prototype.set=vn;function Un(we){var ae=-1,ce=we?we.length:0;for(this.clear();++ae<ce;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function wr(){this.__data__=[]}function fr(we){var ae=this.__data__,ce=yo(ae,we);if(ce<0)return!1;var Ce=ae.length-1;return ce==Ce?ae.pop():Dt.call(ae,ce,1),!0}function Nt(we){var ae=this.__data__,ce=yo(ae,we);return ce<0?void 0:ae[ce][1]}function _n(we){return yo(this.__data__,we)>-1}function xt(we,ae){var ce=this.__data__,Ce=yo(ce,we);return Ce<0?ce.push([we,ae]):ce[Ce][1]=ae,this}Un.prototype.clear=wr,Un.prototype.delete=fr,Un.prototype.get=Nt,Un.prototype.has=_n,Un.prototype.set=xt;function Ft(we){var ae=-1,ce=we?we.length:0;for(this.clear();++ae<ce;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function Sn(){this.__data__={hash:new ot,map:new(ft||Un),string:new ot}}function Bn(we){return Oi(this,we).delete(we)}function Fr(we){return Oi(this,we).get(we)}function kn(we){return Oi(this,we).has(we)}function Ye(we,ae){return Oi(this,we).set(we,ae),this}Ft.prototype.clear=Sn,Ft.prototype.delete=Bn,Ft.prototype.get=Fr,Ft.prototype.has=kn,Ft.prototype.set=Ye;function At(we){this.__data__=new Un(we)}function tn(){this.__data__=new Un}function Ct(we){return this.__data__.delete(we)}function Xt(we){return this.__data__.get(we)}function yn(we){return this.__data__.has(we)}function Ln(we,ae){var ce=this.__data__;if(ce instanceof Un){var Ce=ce.__data__;if(!ft||Ce.length<n-1)return Ce.push([we,ae]),this;ce=this.__data__=new Ft(Ce)}return ce.set(we,ae),this}At.prototype.clear=tn,At.prototype.delete=Ct,At.prototype.get=Xt,At.prototype.has=yn,At.prototype.set=Ln;function Zn(we,ae){var ce=ln(we)||Ot(we)?he(we.length,String):[],Ce=ce.length,zt=!!Ce;for(var _t in we)Ne.call(we,_t)&&!(zt&&(_t=="length"||xa(_t,Ce)))&&ce.push(_t);return ce}function jr(we,ae,ce){var Ce=we[ae];(!(Ne.call(we,ae)&&$t(Ce,ce))||ce===void 0&&!(ae in we))&&(we[ae]=ce)}function yo(we,ae){for(var ce=we.length;ce--;)if($t(we[ce][0],ae))return ce;return-1}function Kr(we,ae){return we&&Ci(ae,Lr(ae),we)}function xo(we,ae,ce,Ce,zt,_t,mn){var wn;if(Ce&&(wn=_t?Ce(we,zt,_t,mn):Ce(we)),wn!==void 0)return wn;if(!ar(we))return we;var Pn=ln(we);if(Pn){if(wn=sa(we),!ae)return aa(we,wn)}else{var Cr=yi(we),Ir=Cr==d||Cr==c;if(sr(we))return Ur(we,ae);if(Cr==v||Cr==i||Ir&&!_t){if(Q(we))return _t?we:{};if(wn=Dr(Ir?{}:we),!ae)return xi(we,Kr(wn,we))}else{if(!Y[Cr])return _t?we:{};wn=Mi(we,Cr,xo,ae)}}mn||(mn=new At);var qo=mn.get(we);if(qo)return qo;if(mn.set(we,wn),!Pn)var Or=ce?is(we):Lr(we);return ve(Or||we,function(po,lo){Or&&(lo=po,po=we[lo]),jr(wn,lo,xo(po,ae,ce,Ce,lo,we,mn))}),wn}function zo(we){return ar(we)?Ht(we):{}}function Sr(we,ae,ce){var Ce=ae(we);return ln(we)?Ce:Pe(Ce,ce(we))}function Yr(we){return Re.call(we)}function vo(we){if(!ar(we)||Ve(we))return!1;var ae=Kn(we)||Q(we)?gt:j;return ae.test(Oe(we))}function Rr(we){if(!ne(we))return de(we);var ae=[];for(var ce in Object(we))Ne.call(we,ce)&&ce!="constructor"&&ae.push(ce);return ae}function Ur(we,ae){if(ae)return we.slice();var ce=new we.constructor(we.length);return we.copy(ce),ce}function Hr(we){var ae=new we.constructor(we.byteLength);return new an(ae).set(new an(we)),ae}function to(we,ae){var ce=ae?Hr(we.buffer):we.buffer;return new we.constructor(ce,we.byteOffset,we.byteLength)}function pr(we,ae,ce){var Ce=ae?ce(me(we),!0):me(we);return Ae(Ce,Z,new we.constructor)}function Po(we){var ae=new we.constructor(we.source,z.exec(we));return ae.lastIndex=we.lastIndex,ae}function ni(we,ae,ce){var Ce=ae?ce(pe(we),!0):pe(we);return Ae(Ce,le,new we.constructor)}function Wi(we){return Le?Object(Le.call(we)):{}}function va(we,ae){var ce=ae?Hr(we.buffer):we.buffer;return new we.constructor(ce,we.byteOffset,we.length)}function aa(we,ae){var ce=-1,Ce=we.length;for(ae||(ae=Array(Ce));++ce<Ce;)ae[ce]=we[ce];return ae}function Ci(we,ae,ce,Ce){ce||(ce={});for(var zt=-1,_t=ae.length;++zt<_t;){var mn=ae[zt],wn=void 0;jr(ce,mn,wn===void 0?we[mn]:wn)}return ce}function xi(we,ae){return Ci(we,Si(we),ae)}function is(we){return Sr(we,Lr,Si)}function Oi(we,ae){var ce=we.__data__;return Qe(ae)?ce[typeof ae=="string"?"string":"hash"]:ce.map}function mi(we,ae){var ce=Ee(we,ae);return vo(ce)?ce:void 0}var Si=dt?De(dt,Object):yr,yi=Yr;(tt&&yi(new tt(new ArrayBuffer(1)))!=S||ft&&yi(new ft)!=f||Mt&&yi(Mt.resolve())!=h||Tn&&yi(new Tn)!=y||Nn&&yi(new Nn)!=w)&&(yi=function(we){var ae=Re.call(we),ce=ae==v?we.constructor:void 0,Ce=ce?Oe(ce):void 0;if(Ce)switch(Ce){case ke:return S;case be:return f;case fe:return h;case Se:return y;case qe:return w}return ae});function sa(we){var ae=we.length,ce=we.constructor(ae);return ae&&typeof we[0]=="string"&&Ne.call(we,"index")&&(ce.index=we.index,ce.input=we.input),ce}function Dr(we){return typeof we.constructor=="function"&&!ne(we)?zo(Kt(we)):{}}function Mi(we,ae,ce,Ce){var zt=we.constructor;switch(ae){case A:return Hr(we);case s:case l:return new zt(+we);case S:return to(we,Ce);case E:case D:case _:case M:case O:case k:case R:case N:case W:return va(we,Ce);case f:return pr(we,Ce,ce);case p:case m:return new zt(we);case g:return Po(we);case y:return ni(we,Ce,ce);case b:return Wi(we)}}function xa(we,ae){return ae=ae??o,!!ae&&(typeof we=="number"||q.test(we))&&we>-1&&we%1==0&&we<ae}function Qe(we){var ae=typeof we;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?we!=="__proto__":we===null}function Ve(we){return!!Fe&&Fe in we}function ne(we){var ae=we&&we.constructor,ce=typeof ae=="function"&&ae.prototype||Be;return we===ce}function Oe(we){if(we!=null){try{return ze.call(we)}catch{}try{return we+""}catch{}}return""}function Ge(we){return xo(we,!0,!0)}function $t(we,ae){return we===ae||we!==we&&ae!==ae}function Ot(we){return Cn(we)&&Ne.call(we,"callee")&&(!pt.call(we,"callee")||Re.call(we)==i)}var ln=Array.isArray;function fn(we){return we!=null&&Tr(we.length)&&!Kn(we)}function Cn(we){return ur(we)&&fn(we)}var sr=it||Ar;function Kn(we){var ae=ar(we)?Re.call(we):"";return ae==d||ae==c}function Tr(we){return typeof we=="number"&&we>-1&&we%1==0&&we<=o}function ar(we){var ae=typeof we;return!!we&&(ae=="object"||ae=="function")}function ur(we){return!!we&&typeof we=="object"}function Lr(we){return fn(we)?Zn(we):Rr(we)}function yr(){return[]}function Ar(){return!1}e.exports=Ge})(U4,U4.exports)),U4.exports}var z4={exports:{}};z4.exports;var E0e;function Lke(){return E0e||(E0e=1,(function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",v="[object GeneratorFunction]",h="[object Map]",g="[object Number]",y="[object Null]",m="[object Object]",b="[object Promise]",w="[object Proxy]",A="[object RegExp]",S="[object Set]",E="[object String]",D="[object Symbol]",_="[object Undefined]",M="[object WeakMap]",O="[object ArrayBuffer]",k="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",W="[object Int8Array]",B="[object Int16Array]",z="[object Int32Array]",j="[object Uint8Array]",q="[object Uint8ClampedArray]",Y="[object Uint16Array]",U="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,X={};X[R]=X[N]=X[W]=X[B]=X[z]=X[j]=X[q]=X[Y]=X[U]=!0,X[s]=X[l]=X[O]=X[d]=X[k]=X[c]=X[f]=X[p]=X[h]=X[g]=X[m]=X[A]=X[S]=X[E]=X[M]=!1;var te=typeof Hs=="object"&&Hs&&Hs.Object===Object&&Hs,Z=typeof self=="object"&&self&&self.Object===Object&&self,le=te||Z||Function("return this")(),ve=t&&!t.nodeType&&t,Pe=ve&&!0&&e&&!e.nodeType&&e,Ae=Pe&&Pe.exports===ve,he=Ae&&te.process,Ee=(function(){try{return he&&he.binding&&he.binding("util")}catch{}})(),Q=Ee&&Ee.isTypedArray;function me(we,ae){for(var ce=-1,Ce=we==null?0:we.length,zt=0,_t=[];++ce<Ce;){var mn=we[ce];ae(mn,ce,we)&&(_t[zt++]=mn)}return _t}function De(we,ae){for(var ce=-1,Ce=ae.length,zt=we.length;++ce<Ce;)we[zt+ce]=ae[ce];return we}function pe(we,ae){for(var ce=-1,Ce=we==null?0:we.length;++ce<Ce;)if(ae(we[ce],ce,we))return!0;return!1}function ie(we,ae){for(var ce=-1,Ce=Array(we);++ce<we;)Ce[ce]=ae(ce);return Ce}function ue(we){return function(ae){return we(ae)}}function Be(we,ae){return we.has(ae)}function Me(we,ae){return we?.[ae]}function Fe(we){var ae=-1,ce=Array(we.size);return we.forEach(function(Ce,zt){ce[++ae]=[zt,Ce]}),ce}function ze(we,ae){return function(ce){return we(ae(ce))}}function Ne(we){var ae=-1,ce=Array(we.size);return we.forEach(function(Ce){ce[++ae]=Ce}),ce}var Re=Array.prototype,gt=Function.prototype,Bt=Object.prototype,Lt=le["__core-js_shared__"],an=gt.toString,Kt=Bt.hasOwnProperty,Ht=(function(){var we=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||"");return we?"Symbol(src)_1."+we:""})(),pt=Bt.toString,Dt=RegExp("^"+an.call(Kt).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=Ae?le.Buffer:void 0,it=le.Symbol,de=le.Uint8Array,tt=Bt.propertyIsEnumerable,ft=Re.splice,Mt=it?it.toStringTag:void 0,Tn=Object.getOwnPropertySymbols,Nn=dt?dt.isBuffer:void 0,We=ze(Object.keys,Object),ke=Si(le,"DataView"),be=Si(le,"Map"),fe=Si(le,"Promise"),Se=Si(le,"Set"),qe=Si(le,"WeakMap"),$e=Si(Object,"create"),Le=Oe(ke),ot=Oe(be),vt=Oe(fe),Ut=Oe(Se),Qt=Oe(qe),Gt=it?it.prototype:void 0,vn=Gt?Gt.valueOf:void 0;function Un(we){var ae=-1,ce=we==null?0:we.length;for(this.clear();++ae<ce;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function wr(){this.__data__=$e?$e(null):{},this.size=0}function fr(we){var ae=this.has(we)&&delete this.__data__[we];return this.size-=ae?1:0,ae}function Nt(we){var ae=this.__data__;if($e){var ce=ae[we];return ce===r?void 0:ce}return Kt.call(ae,we)?ae[we]:void 0}function _n(we){var ae=this.__data__;return $e?ae[we]!==void 0:Kt.call(ae,we)}function xt(we,ae){var ce=this.__data__;return this.size+=this.has(we)?0:1,ce[we]=$e&&ae===void 0?r:ae,this}Un.prototype.clear=wr,Un.prototype.delete=fr,Un.prototype.get=Nt,Un.prototype.has=_n,Un.prototype.set=xt;function Ft(we){var ae=-1,ce=we==null?0:we.length;for(this.clear();++ae<ce;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function Sn(){this.__data__=[],this.size=0}function Bn(we){var ae=this.__data__,ce=Ur(ae,we);if(ce<0)return!1;var Ce=ae.length-1;return ce==Ce?ae.pop():ft.call(ae,ce,1),--this.size,!0}function Fr(we){var ae=this.__data__,ce=Ur(ae,we);return ce<0?void 0:ae[ce][1]}function kn(we){return Ur(this.__data__,we)>-1}function Ye(we,ae){var ce=this.__data__,Ce=Ur(ce,we);return Ce<0?(++this.size,ce.push([we,ae])):ce[Ce][1]=ae,this}Ft.prototype.clear=Sn,Ft.prototype.delete=Bn,Ft.prototype.get=Fr,Ft.prototype.has=kn,Ft.prototype.set=Ye;function At(we){var ae=-1,ce=we==null?0:we.length;for(this.clear();++ae<ce;){var Ce=we[ae];this.set(Ce[0],Ce[1])}}function tn(){this.size=0,this.__data__={hash:new Un,map:new(be||Ft),string:new Un}}function Ct(we){var ae=mi(this,we).delete(we);return this.size-=ae?1:0,ae}function Xt(we){return mi(this,we).get(we)}function yn(we){return mi(this,we).has(we)}function Ln(we,ae){var ce=mi(this,we),Ce=ce.size;return ce.set(we,ae),this.size+=ce.size==Ce?0:1,this}At.prototype.clear=tn,At.prototype.delete=Ct,At.prototype.get=Xt,At.prototype.has=yn,At.prototype.set=Ln;function Zn(we){var ae=-1,ce=we==null?0:we.length;for(this.__data__=new At;++ae<ce;)this.add(we[ae])}function jr(we){return this.__data__.set(we,r),this}function yo(we){return this.__data__.has(we)}Zn.prototype.add=Zn.prototype.push=jr,Zn.prototype.has=yo;function Kr(we){var ae=this.__data__=new Ft(we);this.size=ae.size}function xo(){this.__data__=new Ft,this.size=0}function zo(we){var ae=this.__data__,ce=ae.delete(we);return this.size=ae.size,ce}function Sr(we){return this.__data__.get(we)}function Yr(we){return this.__data__.has(we)}function vo(we,ae){var ce=this.__data__;if(ce instanceof Ft){var Ce=ce.__data__;if(!be||Ce.length<n-1)return Ce.push([we,ae]),this.size=++ce.size,this;ce=this.__data__=new At(Ce)}return ce.set(we,ae),this.size=ce.size,this}Kr.prototype.clear=xo,Kr.prototype.delete=zo,Kr.prototype.get=Sr,Kr.prototype.has=Yr,Kr.prototype.set=vo;function Rr(we,ae){var ce=Ot(we),Ce=!ce&&$t(we),zt=!ce&&!Ce&&fn(we),_t=!ce&&!Ce&&!zt&&ur(we),mn=ce||Ce||zt||_t,wn=mn?ie(we.length,String):[],Pn=wn.length;for(var Cr in we)Kt.call(we,Cr)&&!(mn&&(Cr=="length"||zt&&(Cr=="offset"||Cr=="parent")||_t&&(Cr=="buffer"||Cr=="byteLength"||Cr=="byteOffset")||Mi(Cr,Pn)))&&wn.push(Cr);return wn}function Ur(we,ae){for(var ce=we.length;ce--;)if(Ge(we[ce][0],ae))return ce;return-1}function Hr(we,ae,ce){var Ce=ae(we);return Ot(we)?Ce:De(Ce,ce(we))}function to(we){return we==null?we===void 0?_:y:Mt&&Mt in Object(we)?yi(we):ne(we)}function pr(we){return ar(we)&&to(we)==s}function Po(we,ae,ce,Ce,zt){return we===ae?!0:we==null||ae==null||!ar(we)&&!ar(ae)?we!==we&&ae!==ae:ni(we,ae,ce,Ce,Po,zt)}function ni(we,ae,ce,Ce,zt,_t){var mn=Ot(we),wn=Ot(ae),Pn=mn?l:Dr(we),Cr=wn?l:Dr(ae);Pn=Pn==s?m:Pn,Cr=Cr==s?m:Cr;var Ir=Pn==m,qo=Cr==m,Or=Pn==Cr;if(Or&&fn(we)){if(!fn(ae))return!1;mn=!0,Ir=!1}if(Or&&!Ir)return _t||(_t=new Kr),mn||ur(we)?Ci(we,ae,ce,Ce,zt,_t):xi(we,ae,Pn,ce,Ce,zt,_t);if(!(ce&o)){var po=Ir&&Kt.call(we,"__wrapped__"),lo=qo&&Kt.call(ae,"__wrapped__");if(po||lo){var Go=po?we.value():we,Pi=lo?ae.value():ae;return _t||(_t=new Kr),zt(Go,Pi,ce,Ce,_t)}}return Or?(_t||(_t=new Kr),is(we,ae,ce,Ce,zt,_t)):!1}function Wi(we){if(!Tr(we)||Qe(we))return!1;var ae=sr(we)?Dt:H;return ae.test(Oe(we))}function va(we){return ar(we)&&Kn(we.length)&&!!X[to(we)]}function aa(we){if(!Ve(we))return We(we);var ae=[];for(var ce in Object(we))Kt.call(we,ce)&&ce!="constructor"&&ae.push(ce);return ae}function Ci(we,ae,ce,Ce,zt,_t){var mn=ce&o,wn=we.length,Pn=ae.length;if(wn!=Pn&&!(mn&&Pn>wn))return!1;var Cr=_t.get(we);if(Cr&&_t.get(ae))return Cr==ae;var Ir=-1,qo=!0,Or=ce&i?new Zn:void 0;for(_t.set(we,ae),_t.set(ae,we);++Ir<wn;){var po=we[Ir],lo=ae[Ir];if(Ce)var Go=mn?Ce(lo,po,Ir,ae,we,_t):Ce(po,lo,Ir,we,ae,_t);if(Go!==void 0){if(Go)continue;qo=!1;break}if(Or){if(!pe(ae,function(Pi,uo){if(!Be(Or,uo)&&(po===Pi||zt(po,Pi,ce,Ce,_t)))return Or.push(uo)})){qo=!1;break}}else if(!(po===lo||zt(po,lo,ce,Ce,_t))){qo=!1;break}}return _t.delete(we),_t.delete(ae),qo}function xi(we,ae,ce,Ce,zt,_t,mn){switch(ce){case k:if(we.byteLength!=ae.byteLength||we.byteOffset!=ae.byteOffset)return!1;we=we.buffer,ae=ae.buffer;case O:return!(we.byteLength!=ae.byteLength||!_t(new de(we),new de(ae)));case d:case c:case g:return Ge(+we,+ae);case f:return we.name==ae.name&&we.message==ae.message;case A:case E:return we==ae+"";case h:var wn=Fe;case S:var Pn=Ce&o;if(wn||(wn=Ne),we.size!=ae.size&&!Pn)return!1;var Cr=mn.get(we);if(Cr)return Cr==ae;Ce|=i,mn.set(we,ae);var Ir=Ci(wn(we),wn(ae),Ce,zt,_t,mn);return mn.delete(we),Ir;case D:if(vn)return vn.call(we)==vn.call(ae)}return!1}function is(we,ae,ce,Ce,zt,_t){var mn=ce&o,wn=Oi(we),Pn=wn.length,Cr=Oi(ae),Ir=Cr.length;if(Pn!=Ir&&!mn)return!1;for(var qo=Pn;qo--;){var Or=wn[qo];if(!(mn?Or in ae:Kt.call(ae,Or)))return!1}var po=_t.get(we);if(po&&_t.get(ae))return po==ae;var lo=!0;_t.set(we,ae),_t.set(ae,we);for(var Go=mn;++qo<Pn;){Or=wn[qo];var Pi=we[Or],uo=ae[Or];if(Ce)var Bo=mn?Ce(uo,Pi,Or,ae,we,_t):Ce(Pi,uo,Or,we,ae,_t);if(!(Bo===void 0?Pi===uo||zt(Pi,uo,ce,Ce,_t):Bo)){lo=!1;break}Go||(Go=Or=="constructor")}if(lo&&!Go){var Al=we.constructor,Xs=ae.constructor;Al!=Xs&&"constructor"in we&&"constructor"in ae&&!(typeof Al=="function"&&Al instanceof Al&&typeof Xs=="function"&&Xs instanceof Xs)&&(lo=!1)}return _t.delete(we),_t.delete(ae),lo}function Oi(we){return Hr(we,Lr,sa)}function mi(we,ae){var ce=we.__data__;return xa(ae)?ce[typeof ae=="string"?"string":"hash"]:ce.map}function Si(we,ae){var ce=Me(we,ae);return Wi(ce)?ce:void 0}function yi(we){var ae=Kt.call(we,Mt),ce=we[Mt];try{we[Mt]=void 0;var Ce=!0}catch{}var zt=pt.call(we);return Ce&&(ae?we[Mt]=ce:delete we[Mt]),zt}var sa=Tn?function(we){return we==null?[]:(we=Object(we),me(Tn(we),function(ae){return tt.call(we,ae)}))}:yr,Dr=to;(ke&&Dr(new ke(new ArrayBuffer(1)))!=k||be&&Dr(new be)!=h||fe&&Dr(fe.resolve())!=b||Se&&Dr(new Se)!=S||qe&&Dr(new qe)!=M)&&(Dr=function(we){var ae=to(we),ce=ae==m?we.constructor:void 0,Ce=ce?Oe(ce):"";if(Ce)switch(Ce){case Le:return k;case ot:return h;case vt:return b;case Ut:return S;case Qt:return M}return ae});function Mi(we,ae){return ae=ae??a,!!ae&&(typeof we=="number"||re.test(we))&&we>-1&&we%1==0&&we<ae}function xa(we){var ae=typeof we;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?we!=="__proto__":we===null}function Qe(we){return!!Ht&&Ht in we}function Ve(we){var ae=we&&we.constructor,ce=typeof ae=="function"&&ae.prototype||Bt;return we===ce}function ne(we){return pt.call(we)}function Oe(we){if(we!=null){try{return an.call(we)}catch{}try{return we+""}catch{}}return""}function Ge(we,ae){return we===ae||we!==we&&ae!==ae}var $t=pr((function(){return arguments})())?pr:function(we){return ar(we)&&Kt.call(we,"callee")&&!tt.call(we,"callee")},Ot=Array.isArray;function ln(we){return we!=null&&Kn(we.length)&&!sr(we)}var fn=Nn||Ar;function Cn(we,ae){return Po(we,ae)}function sr(we){if(!Tr(we))return!1;var ae=to(we);return ae==p||ae==v||ae==u||ae==w}function Kn(we){return typeof we=="number"&&we>-1&&we%1==0&&we<=a}function Tr(we){var ae=typeof we;return we!=null&&(ae=="object"||ae=="function")}function ar(we){return we!=null&&typeof we=="object"}var ur=Q?ue(Q):va;function Lr(we){return ln(we)?Rr(we):aa(we)}function yr(){return[]}function Ar(){return!1}e.exports=Cn})(z4,z4.exports)),z4.exports}var k1={},k0e;function Vfn(){if(k0e)return k1;k0e=1;var e=k1&&k1.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(k1,"__esModule",{value:!0});var t=e(Bke()),n=e(Lke()),r;return(function(o){function i(u,d,c){u===void 0&&(u={}),d===void 0&&(d={}),typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var f=t.default(d);c||(f=Object.keys(f).reduce(function(v,h){return f[h]!=null&&(v[h]=f[h]),v},{}));for(var p in u)u[p]!==void 0&&d[p]===void 0&&(f[p]=u[p]);return Object.keys(f).length>0?f:void 0}o.compose=i;function a(u,d){u===void 0&&(u={}),d===void 0&&(d={}),typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var c=Object.keys(u).concat(Object.keys(d)).reduce(function(f,p){return n.default(u[p],d[p])||(f[p]=d[p]===void 0?null:d[p]),f},{});return Object.keys(c).length>0?c:void 0}o.diff=a;function s(u,d){u===void 0&&(u={}),d===void 0&&(d={}),u=u||{};var c=Object.keys(d).reduce(function(f,p){return d[p]!==u[p]&&u[p]!==void 0&&(f[p]=d[p]),f},{});return Object.keys(u).reduce(function(f,p){return u[p]!==d[p]&&d[p]===void 0&&(f[p]=null),f},c)}o.invert=s;function l(u,d,c){if(c===void 0&&(c=!1),typeof u!="object")return d;if(typeof d=="object"){if(!c)return d;var f=Object.keys(d).reduce(function(p,v){return u[v]===void 0&&(p[v]=d[v]),p},{});return Object.keys(f).length>0?f:void 0}}o.transform=l})(r||(r={})),k1.default=r,k1}var T1={},_1={},T0e;function qfn(){if(T0e)return _1;T0e=1;var e=_1&&_1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_1,"__esModule",{value:!0});var t=e(Fke()),n=(function(){function r(o){this.ops=o,this.index=0,this.offset=0}return r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(o){o||(o=1/0);var i=this.ops[this.index];if(i){var a=this.offset,s=t.default.length(i);if(o>=s-a?(o=s-a,this.index+=1,this.offset=0):this.offset+=o,typeof i.delete=="number")return{delete:o};var l={};return i.attributes&&(l.attributes=i.attributes),typeof i.retain=="number"?l.retain=o:typeof i.insert=="string"?l.insert=i.insert.substr(a,o):l.insert=i.insert,l}else return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var o=this.offset,i=this.index,a=this.next(),s=this.ops.slice(this.index);return this.offset=o,this.index=i,[a].concat(s)}else return[]},r})();return _1.default=n,_1}var _0e;function Fke(){if(_0e)return T1;_0e=1;var e=T1&&T1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(T1,"__esModule",{value:!0});var t=e(qfn()),n;return(function(r){function o(a){return new t.default(a)}r.iterator=o;function i(a){return typeof a.delete=="number"?a.delete:typeof a.retain=="number"?a.retain:typeof a.insert=="string"?a.insert.length:1}r.length=i})(n||(n={})),T1.default=n,T1}var w4,D0e;function Gfn(){if(D0e)return w4;D0e=1;var e=w4&&w4.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(Wfn()),n=e(Bke()),r=e(Lke()),o=e(Vfn()),i=e(Fke()),a="\0",s=(function(){function l(u){Array.isArray(u)?this.ops=u:u!=null&&Array.isArray(u.ops)?this.ops=u.ops:this.ops=[]}return l.prototype.insert=function(u,d){var c={};return typeof u=="string"&&u.length===0?this:(c.insert=u,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(c.attributes=d),this.push(c))},l.prototype.delete=function(u){return u<=0?this:this.push({delete:u})},l.prototype.retain=function(u,d){if(u<=0)return this;var c={retain:u};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(c.attributes=d),this.push(c)},l.prototype.push=function(u){var d=this.ops.length,c=this.ops[d-1];if(u=n.default(u),typeof c=="object"){if(typeof u.delete=="number"&&typeof c.delete=="number")return this.ops[d-1]={delete:c.delete+u.delete},this;if(typeof c.delete=="number"&&u.insert!=null&&(d-=1,c=this.ops[d-1],typeof c!="object"))return this.ops.unshift(u),this;if(r.default(u.attributes,c.attributes)){if(typeof u.insert=="string"&&typeof c.insert=="string")return this.ops[d-1]={insert:c.insert+u.insert},typeof u.attributes=="object"&&(this.ops[d-1].attributes=u.attributes),this;if(typeof u.retain=="number"&&typeof c.retain=="number")return this.ops[d-1]={retain:c.retain+u.retain},typeof u.attributes=="object"&&(this.ops[d-1].attributes=u.attributes),this}}return d===this.ops.length?this.ops.push(u):this.ops.splice(d,0,u),this},l.prototype.chop=function(){var u=this.ops[this.ops.length-1];return u&&u.retain&&!u.attributes&&this.ops.pop(),this},l.prototype.filter=function(u){return this.ops.filter(u)},l.prototype.forEach=function(u){this.ops.forEach(u)},l.prototype.map=function(u){return this.ops.map(u)},l.prototype.partition=function(u){var d=[],c=[];return this.forEach(function(f){var p=u(f)?d:c;p.push(f)}),[d,c]},l.prototype.reduce=function(u,d){return this.ops.reduce(u,d)},l.prototype.changeLength=function(){return this.reduce(function(u,d){return d.insert?u+i.default.length(d):d.delete?u-d.delete:u},0)},l.prototype.length=function(){return this.reduce(function(u,d){return u+i.default.length(d)},0)},l.prototype.slice=function(u,d){u===void 0&&(u=0),d===void 0&&(d=1/0);for(var c=[],f=i.default.iterator(this.ops),p=0;p<d&&f.hasNext();){var v=void 0;p<u?v=f.next(u-p):(v=f.next(d-p),c.push(v)),p+=i.default.length(v)}return new l(c)},l.prototype.compose=function(u){var d=i.default.iterator(this.ops),c=i.default.iterator(u.ops),f=[],p=c.peek();if(p!=null&&typeof p.retain=="number"&&p.attributes==null){for(var v=p.retain;d.peekType()==="insert"&&d.peekLength()<=v;)v-=d.peekLength(),f.push(d.next());p.retain-v>0&&c.next(p.retain-v)}for(var h=new l(f);d.hasNext()||c.hasNext();)if(c.peekType()==="insert")h.push(c.next());else if(d.peekType()==="delete")h.push(d.next());else{var g=Math.min(d.peekLength(),c.peekLength()),y=d.next(g),m=c.next(g);if(typeof m.retain=="number"){var b={};typeof y.retain=="number"?b.retain=g:b.insert=y.insert;var w=o.default.compose(y.attributes,m.attributes,typeof y.retain=="number");if(w&&(b.attributes=w),h.push(b),!c.hasNext()&&r.default(h.ops[h.ops.length-1],b)){var A=new l(d.rest());return h.concat(A).chop()}}else typeof m.delete=="number"&&typeof y.retain=="number"&&h.push(m)}return h.chop()},l.prototype.concat=function(u){var d=new l(this.ops.slice());return u.ops.length>0&&(d.push(u.ops[0]),d.ops=d.ops.concat(u.ops.slice(1))),d},l.prototype.diff=function(u,d){if(this.ops===u.ops)return new l;var c=[this,u].map(function(g){return g.map(function(y){if(y.insert!=null)return typeof y.insert=="string"?y.insert:a;var m=g===u?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")}),f=new l,p=t.default(c[0],c[1],d),v=i.default.iterator(this.ops),h=i.default.iterator(u.ops);return p.forEach(function(g){for(var y=g[1].length;y>0;){var m=0;switch(g[0]){case t.default.INSERT:m=Math.min(h.peekLength(),y),f.push(h.next(m));break;case t.default.DELETE:m=Math.min(y,v.peekLength()),v.next(m),f.delete(m);break;case t.default.EQUAL:m=Math.min(v.peekLength(),h.peekLength(),y);var b=v.next(m),w=h.next(m);r.default(b.insert,w.insert)?f.retain(m,o.default.diff(b.attributes,w.attributes)):f.push(w).delete(m);break}y-=m}}),f.chop()},l.prototype.eachLine=function(u,d){d===void 0&&(d=`
- `);for(var c=i.default.iterator(this.ops),f=new l,p=0;c.hasNext();){if(c.peekType()!=="insert")return;var v=c.peek(),h=i.default.length(v)-c.peekLength(),g=typeof v.insert=="string"?v.insert.indexOf(d,h)-h:-1;if(g<0)f.push(c.next());else if(g>0)f.push(c.next(g));else{if(u(f,c.next(1).attributes||{},p)===!1)return;p+=1,f=new l}}f.length()>0&&u(f,{},p)},l.prototype.invert=function(u){var d=new l;return this.reduce(function(c,f){if(f.insert)d.delete(i.default.length(f));else{if(f.retain&&f.attributes==null)return d.retain(f.retain),c+f.retain;if(f.delete||f.retain&&f.attributes){var p=f.delete||f.retain,v=u.slice(c,c+p);return v.forEach(function(h){f.delete?d.push(h):f.retain&&f.attributes&&d.retain(i.default.length(h),o.default.invert(f.attributes,h.attributes))}),c+p}}return c},0),d.chop()},l.prototype.transform=function(u,d){if(d===void 0&&(d=!1),d=!!d,typeof u=="number")return this.transformPosition(u,d);for(var c=u,f=i.default.iterator(this.ops),p=i.default.iterator(c.ops),v=new l;f.hasNext()||p.hasNext();)if(f.peekType()==="insert"&&(d||p.peekType()!=="insert"))v.retain(i.default.length(f.next()));else if(p.peekType()==="insert")v.push(p.next());else{var h=Math.min(f.peekLength(),p.peekLength()),g=f.next(h),y=p.next(h);if(g.delete)continue;y.delete?v.push(y):v.retain(h,o.default.transform(g.attributes,y.attributes,d))}return v.chop()},l.prototype.transformPosition=function(u,d){d===void 0&&(d=!1),d=!!d;for(var c=i.default.iterator(this.ops),f=0;c.hasNext()&&f<=u;){var p=c.peekLength(),v=c.peekType();if(c.next(),v==="delete"){u-=Math.min(p,u-f);continue}else v==="insert"&&(f<u||!d)&&(u+=p);f+=p}return u},l.Op=i.default,l.AttributeMap=o.default,l})();return w4=s,w4}var Kfn=Gfn();const Yfn=xu(Kfn);/*!
- * VueQuill @vueup/vue-quill v1.2.0
- * https://vueup.github.io/vue-quill/
- *
- * Includes quill v1.3.7
- * https://quilljs.com/
- *
- * Copyright (c) 2023 Ahmad Luthfi Masruri
- * Released under the MIT license
- * Date: 2023-05-12T08:44:03.742Z
- */const I0e={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},Qfn=nt({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>typeof e=="string"&&e!==""?e.charAt(0)==="#"?!0:Object.keys(I0e).indexOf(e)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{qn(()=>{i()}),Jr(()=>{n=null});let n,r;const o=K(),i=()=>{var O;if(o.value){if(r=a(),e.modules)if(Array.isArray(e.modules))for(const k of e.modules)HB.register(`modules/${k.name}`,k.module);else HB.register(`modules/${e.modules.name}`,e.modules.module);n=new HB(o.value,r),b(e.content),n.on("text-change",c),n.on("selection-change",p),n.on("editor-change",v),e.theme!=="bubble"&&o.value.classList.remove("ql-bubble"),e.theme!=="snow"&&o.value.classList.remove("ql-snow"),(O=n.getModule("toolbar"))===null||O===void 0||O.container.addEventListener("mousedown",k=>{k.preventDefault()}),t.emit("ready",n)}},a=()=>{const O={};if(e.theme!==""&&(O.theme=e.theme),e.readOnly&&(O.readOnly=e.readOnly),e.placeholder&&(O.placeholder=e.placeholder),e.toolbar&&e.toolbar!==""&&(O.modules={toolbar:(()=>{if(typeof e.toolbar=="object")return e.toolbar;if(typeof e.toolbar=="string")return e.toolbar.charAt(0)==="#"?e.toolbar:I0e[e.toolbar]})()}),e.modules){const k=(()=>{var R,N;const W={};if(Array.isArray(e.modules))for(const B of e.modules)W[B.name]=(R=B.options)!==null&&R!==void 0?R:{};else W[e.modules.name]=(N=e.modules.options)!==null&&N!==void 0?N:{};return W})();O.modules=Object.assign({},O.modules,k)}return Object.assign({},e.globalOptions,e.options,O)},s=O=>typeof O=="object"&&O?O.slice():O,l=O=>Object.values(O.ops).some(k=>!k.retain||Object.keys(k).length!==1);let u;const d=O=>{if(typeof u==typeof O){if(O===u)return!0;if(typeof O=="object"&&O&&typeof u=="object"&&u)return!l(u.diff(O))}return!1},c=(O,k,R)=>{u=s(m()),d(e.content)||t.emit("update:content",u),t.emit("textChange",{delta:O,oldContents:k,source:R})},f=K(),p=(O,k,R)=>{f.value=!!n?.hasFocus(),t.emit("selectionChange",{range:O,oldRange:k,source:R})};St(f,O=>{O?t.emit("focus",o):t.emit("blur",o)});const v=(...O)=>{O[0]==="text-change"&&t.emit("editorChange",{name:O[0],delta:O[1],oldContents:O[2],source:O[3]}),O[0]==="selection-change"&&t.emit("editorChange",{name:O[0],range:O[1],oldRange:O[2],source:O[3]})},h=()=>o.value,g=()=>{var O;return(O=n?.getModule("toolbar"))===null||O===void 0?void 0:O.container},y=()=>{if(n)return n;throw`The quill editor hasn't been instantiated yet,
- make sure to call this method when the editor ready
- or use v-on:ready="onReady(quill)" event instead.`},m=(O,k)=>e.contentType==="html"?S():e.contentType==="text"?w(O,k):n?.getContents(O,k),b=(O,k="api")=>{const R=O||(e.contentType==="delta"?new Yfn:"");e.contentType==="html"?E(R):e.contentType==="text"?A(R,k):n?.setContents(R,k),u=s(R)},w=(O,k)=>{var R;return(R=n?.getText(O,k))!==null&&R!==void 0?R:""},A=(O,k="api")=>{n?.setText(O,k)},S=()=>{var O;return(O=n?.root.innerHTML)!==null&&O!==void 0?O:""},E=O=>{n&&(n.root.innerHTML=O)},D=(O,k="api")=>{const R=n?.clipboard.convert(O);R&&n?.setContents(R,k)},_=()=>{n?.focus()},M=()=>{Yt(()=>{var O;!t.slots.toolbar&&n&&((O=n.getModule("toolbar"))===null||O===void 0||O.container.remove()),i()})};return St(()=>e.content,O=>{if(!n||!O||d(O))return;const k=n.getSelection();k&&Yt(()=>n?.setSelection(k)),b(O)},{deep:!0}),St(()=>e.enable,O=>{n&&n.enable(O)}),{editor:o,getEditor:h,getToolbar:g,getQuill:y,getContents:m,setContents:b,getHTML:S,setHTML:E,pasteHTML:D,focus:_,getText:w,setText:A,reinit:M}},render(){var e,t;return[(t=(e=this.$slots).toolbar)===null||t===void 0?void 0:t.call(e),jn("div",{ref:"editor",...this.$attrs})]}});function Uke(){const e=Z4()?4.8:19.2,t=Z4()?0:1920;console.log(`📱 设备类型: ${Z4()?"移动端":"PC端"}`),console.log(`📐 RootValue: ${e}, 设计稿宽度: ${t}px`);const n=()=>{const r=document.documentElement.clientWidth||document.body.clientWidth,o=r/t,i=e*o;document.documentElement.style.fontSize=i+"px",console.log(`📐 当前宽度: ${r}px, 根字体大小: ${i}px`)};n(),window.addEventListener("resize",n),window.addEventListener("load",n),console.log("🎯 动态 flexible 配置已启用")}Uke();async function Zfn(){let e=null,t=null;try{e=await J9e(),e&&e.success&&(console.log("✅ 票据认证成功"),console.log("🔑 Token类型:",e.token?.tokenType),console.log("🔑 Refresh Token:",e.token?.refreshToken?.substring(0,50)+"..."),e.fromTicket?(console.log("🎫 认证来源: 票据处理"),console.log("🧹 票据认证成功,开始清理 URL 参数"),K9e()):e.fromCache&&console.log("💾 认证来源: 本地令牌"))}catch(r){console.error("❌ 票据认证失败:",r),console.error("❌ 错误类型:",r.message),t=r}Uke();const n=eve(h7e);if(n.use(lDe()),n.use(A0e),n.use(Ost),n.component("QuillEditor",Qfn),n.mount("#app"),console.log("🚀 蜀道系统启动成功"),t){console.log("⚠️ 检测到认证错误,准备跳转到404页面");const r=window.nativeClosePage&&typeof window.nativeClosePage=="function";let o="ticket_failed";t.message==="TICKET_NOT_FOUND"?o=r?"app_token_lost":"ticket_not_found":t.message.includes("网络")||t.message.includes("Network")?o="network_error":(t.message.includes("权限")||t.message.includes("Permission"))&&(o="no_permission"),setTimeout(()=>{console.log("🔄 跳转到404页面,原因:",o),A0e.push({path:"/404",query:{reason:o}})},100)}}Zfn().catch(e=>{console.error("❌ 应用启动失败:",e)});export{Lf as _,Hs as c,xu as g,$ut as r};
|