| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170 |
- var De = Object.defineProperty, Oe = Object.defineProperties;
- var ze = Object.getOwnPropertyDescriptors;
- var je = Object.getOwnPropertySymbols;
- var Ae = Object.prototype.hasOwnProperty, Le = Object.prototype.propertyIsEnumerable;
- var Ee = (te, ee, Z) => ee in te ? De(te, ee, { enumerable: !0, configurable: !0, writable: !0, value: Z }) : te[ee] = Z, pe = (te, ee) => {
- for (var Z in ee || (ee = {}))
- Ae.call(ee, Z) && Ee(te, Z, ee[Z]);
- if (je)
- for (var Z of je(ee))
- Le.call(ee, Z) && Ee(te, Z, ee[Z]);
- return te;
- }, ke = (te, ee) => Oe(te, ze(ee));
- import { ref as xe, onMounted as Ne, onBeforeUnmount as Re, watch as Be, openBlock as Ie, createElementBlock as qe, createElementVNode as Fe, createBlock as He, createCommentVNode as Ve } from "vue";
- import Ue from "./SEditorImageAdjust.js";
- import { n as We } from "./index2.js";
- var Pe = { exports: {} };
- (function(te, ee) {
- (function(Z, ue) {
- te.exports = ue();
- })(self, function() {
- return function() {
- var Z, ue = { 90643: function(_) {
- _.exports.default = ["إبدأ في الكتابة...", "حول جوديت", "محرر جوديت", null, "دليل مستخدم جوديت", "يحتوي على مساعدة مفصلة للاستخدام", "للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:", "شراء النسخة الكاملة", "حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.", "مِرْساة", "فتح في نافذة جديدة", "فتح المحرر في الحجم الكامل", "مسح التنسيق", "ملء اللون أو تعيين لون النص", "إعادة", "تراجع", "عريض", "مائل", "إدراج قائمة غير مرتبة", "إدراج قائمة مرتبة", "محاذاة للوسط", "محاذاة مثبتة", "محاذاة لليسار", "محاذاة لليمين", "إدراج خط أفقي", "إدراج صورة", "ادخال الملف", "إدراج فيديو يوتيوب/فيميو ", "إدراج رابط", "حجم الخط", "نوع الخط", "إدراج كتلة تنسيق", "عادي", "عنوان 1", "عنوان 2", "عنوان 3", "عنوان 4", "إقتباس", "كود", "إدراج", "إدراج جدول", "تقليل المسافة البادئة", "زيادة المسافة البادئة", "تحديد أحرف خاصة", "إدراج حرف خاص", "تنسيق الرسم", "تغيير الوضع", "هوامش", "أعلى", "يمين", "أسفل", "يسار", "الأنماط", "الطبقات", "محاذاة", "اليمين", "الوسط", "اليسار", "--غير مضبوط--", "Src", "العنوان", "العنوان البديل", "الرابط", "افتح الرابط في نافذة جديدة", "الصورة", "ملف", "متقدم", "خصائص الصورة", "إلغاء", "حسنا", "يشبه الكود الخاص بك HTML. تبقي كما HTML؟", "الصق ك HTML", "احتفظ", "نظيفة", "إدراج كنص", "إدراج النص فقط", "كلمة لصق الكشف عن", "للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ", "متصفح الملفات", "حدث خطأ في تحميل القائمة ", "حدث خطأ في تحميل المجلدات", "هل أنت واثق؟", "أدخل اسم المجلد", "إنشاء مجلد", "أكتب إسم", "إسقاط صورة", "إسقاط الملف", "أو أنقر", "النص البديل", "تصفح", "رفع", "الخلفية", "نص", "أعلى", "الوسط", "الأسفل", "إدراج عمود قبل", "إدراج عمود بعد", "إدراج صف أعلى", "إدراج صف أسفل", "حذف الجدول", "حذف الصف", "حذف العمود", "خلية فارغة", "مصدر", "بالخط العريض", "مائل", "شغل", "صلة", "إلغاء", "كرر", "طاولة", "صورة", "نظيف", "فقرة", "حجم الخط", "فيديو", "الخط", "حول المحرر", "طباعة", "أكد", "شطب", "المسافة البادئة", "نتوء", "ملء الشاشة", "الحجم التقليدي", "الخط", "قائمة", "قائمة مرقمة", "قطع", "اختر الكل", "قانون", "فتح الرابط", "تعديل الرابط", "سمة Nofollow", "إزالة الرابط", "مراجعة", "لتحرير", "تحديث", "URL", "تحرير", "محاذاة أفقية", "فلتر", "عن طريق التغيير", "بالاسم", "حسب الحجم", "إضافة مجلد", "إعادة", "احتفظ", "حفظ باسم", "تغيير الحجم", "حجم القطع", "عرض", "ارتفاع", "حافظ على النسب", "أن", "لا", "حذف", "تميز", "%d حرف", "%d كلام", null, "تميز %s", "اختر الكل", "محاذاة عمودية", "انشق، مزق", "انقسام عمودي", "تقسيم أفقي", "اذهب", "أضف العمود", "اضف سطر", "حذف", "الحدود", "رخصة %s", "اضرب من خلال", "أكد", "حرف فوقي", "مخطوطة", "قطع الاختيار", "استراحة", "البحث عن", "استبدل ب", "محل", "معجون", "اختر محتوى للصق", "يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟", "تم تحميل الصورة بنجاح على الخادم!", "لوحة", "لا توجد ملفات في هذا الدليل.", "إعادة تسمية", "أدخل اسم جديد", "معاينة", "تحميل", "لصق من الحافظة", "متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.", "نسخ التحديد", "نسخ", "دائرة نصف قطرها الحدود", "عرض كل", "تطبيق", "يرجى ملء هذا المجال", "يرجى إدخال عنوان ويب", "الافتراضي", "دائرة", "نقطة", "المربعة", "البحث", "تجد السابقة", "تجد التالي", "أدخل اسم الفصل", "اضغط البديل لتغيير حجم مخصص"];
- }, 52532: function(_) {
- _.exports.default = ["Napiš něco", "O Jodit", "Editor Jodit", "Verze pro nekomerční použití", "Jodit Uživatelská příručka", "obsahuje detailní nápovědu", "Pro informace o licenci, prosím, přejděte na naši stránku:", "Koupit plnou verzi", "Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.", "Anchor", "Otevřít v nové záložce", "Otevřít v celoobrazovkovém režimu", "Vyčistit formátování", "Barva výplně a písma", "Vpřed", "Zpět", "Tučné", "Kurzíva", "Odrážky", "Číslovaný seznam", "Zarovnat na střed", "Zarovnat do bloku", "Zarovnat vlevo", "Zarovnat vpravo", "Vložit horizontální linku", "Vložit obrázek", "Vložit soubor", "Vložit video (YT/Vimeo)", "Vložit odkaz", "Velikost písma", "Typ písma", "Formátovat blok", "Normální text", "Nadpis 1", "Nadpis 2", "Nadpis 3", "Nadpis 4", "Citát", "Kód", "Vložit", "Vložit tabulku", "Zmenšit odsazení", "Zvětšit odsazení", "Vybrat speciální symbol", "Vložit speciální symbol", "Použít formát", "Změnit mód", "Okraje", "horní", "pravý", "spodní", "levý", "Styly", "Třídy", "Zarovnání", "Vpravo", "Na střed", "Vlevo", "--nenastaveno--", "src", "Titulek", "Alternativní text (alt)", "Link", "Otevřít link v nové záložce", "Obrázek", "soubor", "Rozšířené", "Vlastnosti obrázku", "Zpět", "Ok", "Váš text se podobá HTML. Vložit ho jako HTML?", "Vložit jako HTML", "Ponechat originál", "Vyčistit", "Vložit jako TEXT", "Vložit pouze TEXT", "Detekován fragment z Wordu nebo Excelu", "Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?", "Prohlížeč souborů", "Chyba při načítání seznamu souborů", "Chyba při načítání složek", "Jste si jistý(á)?", "Název složky", "Vytvořit složku", "název", "Přetáhněte sem obrázek", "Přetáhněte sem soubor", "nebo klikněte", "Alternativní text", "Server", "Nahrát", "Pozadí", "Text", "Nahoru", "Na střed", "Dolu", "Vložit sloupec před", "Vložit sloupec za", "Vložit řádek nad", "Vložit řádek pod", "Vymazat tabulku", "Vymazat řádku", "Vymazat sloupec", "Vyčistit buňku", "HTML", "tučně", "kurzíva", "štětec", "odkaz", "zpět", "vpřed", "tabulka", "obrázek", "guma", "odstavec", "velikost písma", "video", "písmo", "о editoru", "tisk", "podtrženo", "přeškrtnuto", "zvětšit odsazení", "zmenšit odsazení", "celoobrazovkový režim", "smrsknout", "Linka", "Odrážka", "Číslovaný seznam", "Vyjmout", "Označit vše", "Kód", "Otevřít odkaz", "Upravit odkaz", "Atribut no-follow", "Odstranit odkaz", "Zobrazit", "Chcete-li upravit", "Aktualizovat", "URL", "Editovat", "Horizontální zarovnání", "Filtr", "Dle poslední změny", "Dle názvu", "Dle velikosti", "Přidat složku", "Reset", "Uložit", "Uložit jako...", "Změnit rozměr", "Ořezat", "Šířka", "Výška", "Ponechat poměr", "Ano", "Ne", "Vyjmout", "Označit", "Znaky: %d", "Slova: %d", "Vše", "Označit %s", "Označit vše", "Vertikální zarovnání", "Rozdělit", "Rozdělit vertikálně", "Rozdělit horizontálně", "Spojit", "Přidat sloupec", "Přidat řádek", "Vymazat", "Okraj", "Licence: %s", "Přeškrtnuto", "Podtrženo", "Horní index", "Dolní index", "Vyjmout označené", "Zalomení", "Najdi", "Nahradit za", "Vyměňte", "Vložit", "Vyber obsah pro vložení", "Můžete upravovat pouze své obrázky. Načíst obrázek?", "Obrázek byl úspěšně nahrán!", "paleta", "V tomto adresáři nejsou žádné soubory.", "přejmenovat", "Zadejte nový název", "náhled", "Stažení", "Vložit ze schránky", "Váš prohlížeč nepodporuje přímý přístup do schránky.", "Kopírovat výběr", "kopírování", "Border radius", "Zobrazit všechny", "Platí", "Prosím, vyplňte toto pole", "Prosím, zadejte webovou adresu", "Výchozí", "Kruh", "Dot", "Quadrate", "Najít", "Najít Předchozí", "Najít Další", "Vložte název třídy", "Stiskněte Alt pro vlastní změnu velikosti"];
- }, 75178: function(_) {
- _.exports.default = ["Bitte geben Sie einen Text ein", "Über Jodit", "Jodit Editor", null, "Das Jodit Benutzerhandbuch", "beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.", "Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:", "Vollversion kaufen", "Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.", "Anker", "In neuer Registerkarte öffnen", "Editor in voller Größe öffnen", "Formatierung löschen", "Füllfarbe oder Textfarbe ändern", "Wiederholen", "Rückgängig machen", "Fett", "Kursiv", "Unsortierte Liste einfügen", "Nummerierte Liste einfügen", "Mittig ausrichten", "Blocksatz", "Links ausrichten", "Rechts ausrichten", "Horizontale Linie einfügen", "Bild einfügen", "Datei einfügen", "Youtube/vimeo Video einfügen", "Link einfügen", "Schriftgröße", "Schriftfamilie", "Formatblock einfügen", "Normal", "Überschrift 1", "Überschrift 2", "Überschrift 3", "Überschrift 4", "Zitat", "Code", "Einfügen", "Tabelle einfügen", "Einzug verkleinern", "Einzug vergrößern", "Sonderzeichen auswählen", "Sonderzeichen einfügen", "Format kopieren", "Änderungsmodus", "Ränder", "Oben", "Rechts", "Unten", "Links", "CSS Stil", "CSS Klassen", "Ausrichtung", "Rechts", "Zentriert", "Links", "Keine", "Pfad", "Titel", "Alternativer Text", "Link", "Link in neuem Tab öffnen", "Bild", "Datei", "Fortgeschritten", "Bildeigenschaften", "Abbrechen", "OK", "Ihr Text ähnelt HTML-Code. Als HTML beibehalten?", "Als HTML einfügen?", "Original speichern", "Säubern", "Als Text einfügen", "Nur Text einfügen", "In Word formatierter Text erkannt", "Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?", "Dateibrowser", "Fehler beim Laden der Liste", "Fehler beim Laden der Ordner", "Sind Sie sicher?", "Geben Sie den Verzeichnisnamen ein", "Verzeichnis erstellen", "Typname", "Bild hier hinziehen", "Datei löschen", "oder hier klicken", "Alternativtext", "Auswählen", "Hochladen", "Hintergrund", "Text", "Oben", "Mittig", "Unten", "Spalte davor einfügen", "Spalte danach einfügen", "Zeile oberhalb einfügen", "Zeile unterhalb einfügen", "Tabelle löschen", "Zeile löschen", "Spalte löschen", "Zelle leeren", "HTML", "Fett gedruckt", "Kursiv", "Bürste", "Verknüpfung", "Rückgängig machen", "Wiederholen", "Tabelle", "Bild", "Radiergummi", "Absatz", "Schriftgröße", "Video", "Schriftart", "Über", "Drucken", "Unterstreichen", "Durchstreichen", "Einzug", "Herausstellen", "Vollgröße", "Schrumpfen", "die Linie", "Liste von", "Nummerierte Liste", "Schneiden", "Wählen Sie Alle aus", "Code einbetten", "Link öffnen", "Link bearbeiten", "Nofollow-Attribut", "Link entfernen", "Ansehen", "Bearbeiten", "Aktualisieren", "URL", "Bearbeiten", "Horizontale Ausrichtung", "Filter", "Sortieren nach geändert", "Nach Name sortieren", "Nach Größe sortiert", "Ordner hinzufügen", "Wiederherstellen", "Speichern", "Speichern als", "Größe ändern", "Größe anpassen", "Breite", "Höhe", "Seitenverhältnis beibehalten", "Ja", "Nein", "Entfernen", "Markieren", "Zeichen: %d", "Wörter: %d", "Alles markieren", "Markieren: %s", "Alles markieren", "Vertikale Ausrichtung", "Unterteilen", "Vertikal unterteilen", "Horizontal unterteilen", "Vereinen", "Spalte hinzufügen", "Zeile hinzufügen", "Löschen", "Rand", null, "Durchstreichen", "Unterstreichen", "Hochstellen", "Tiefstellen", "Auswahl ausschneiden", "Pause", "Suche nach", "Ersetzen durch", "Ersetzen", "Einfügen", "Wählen Sie den Inhalt zum Einfügen aus", "Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?", "Das Bild wurde erfolgreich auf den Server hochgeladen!", "Palette", "In diesem Verzeichnis befinden sich keine Dateien.", "Umbenennen", "Geben Sie einen neuen Namen ein", "Vorschau", "Herunterladen", "Aus Zwischenablage einfügen", "Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.", "Auswahl kopieren", "Kopieren", "Radius für abgerundete Ecken", "Alle anzeigen", "Anwenden", "Bitte füllen Sie dieses Feld aus", "Bitte geben Sie eine Web-Adresse ein", "Standard", "Kreis", "Punkte", "Quadrate", "Suchen", "Suche vorherige", "Weitersuchen", "className (CSS) einfügen", "Drücken Sie Alt für benutzerdefinierte Größenanpassung"];
- }, 51048: function(_) {
- _.exports.default = { "Type something": "Start writing...", pencil: "Edit", Quadrate: "Square" };
- }, 22999: function(_) {
- _.exports.default = ["Escriba algo...", "Acerca de Jodit", "Jodit Editor", null, "Guía de usuario Jodit", "contiene ayuda detallada para el uso.", "Para información sobre la licencia, por favor visite nuestro sitio:", "Compre la versión completa", "Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.", "Anclar", "Abrir en nueva pestaña", "Abrir editor en pantalla completa", "Limpiar formato", "Color de relleno o de letra", "Rehacer", "Deshacer", "Negrita", "Cursiva", "Insertar lista no ordenada", "Insertar lista ordenada", "Alinear Centrado", "Alinear Justificado", "Alinear Izquierda", "Alinear Derecha", "Insertar línea horizontal", "Insertar imagen", "Insertar archivo", "Insertar video de Youtube/vimeo", "Insertar vínculo", "Tamaño de letra", "Familia de letra", "Insertar bloque", "Normal", "Encabezado 1", "Encabezado 2", "Encabezado 3", "Encabezado 4", "Cita", "Código", "Insertar", "Insertar tabla", "Disminuir sangría", "Aumentar sangría", "Seleccionar caracter especial", "Insertar caracter especial", "Copiar formato", "Cambiar modo", "Márgenes", "arriba", "derecha", "abajo", "izquierda", "Estilos CSS", "Clases CSS", "Alinear", "Derecha", "Centrado", "Izquierda", "--No Establecido--", "Fuente", "Título", "Texto Alternativo", "Vínculo", "Abrir vínculo en nueva pestaña", "Imagen", "Archivo", "Avanzado", "Propiedades de imagen", "Cancelar", "Aceptar", "El código es similar a HTML. ¿Mantener como HTML?", "Pegar como HTML?", "Mantener", "Limpiar", "Insertar como texto", "Insertar solo texto", "Pegado desde Word detectado", "El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?", "Buscar archivo", "Error al cargar la lista", "Error al cargar las carpetas", "¿Está seguro?", "Entre nombre de carpeta", "Crear carpeta", "Entre el nombre", "Soltar imagen", "Soltar archivo", "o click", "Texto alternativo", "Buscar", "Subir", "Fondo", "Texto", "Arriba", "Centro", "Abajo", "Insertar columna antes", "Interar columna después", "Insertar fila arriba", "Insertar fila debajo", "Borrar tabla", "Borrar fila", "Borrar columna", "Vaciar celda", "HTML", "negrita", "cursiva", "Brocha", "Vínculo", "deshacer", "rehacer", "Tabla", "Imagen", "Borrar", "Párrafo", "Tamaño de letra", "Video", "Letra", "Acerca de", "Imprimir", "subrayar", "tachar", "sangría", "quitar sangría", "Tamaño completo", "encoger", "línea horizontal", "lista sin ordenar", "lista ordenada", "Cortar", "Seleccionar todo", "Incluir código", "Abrir vínculo", "Editar vínculo", "No seguir", "Desvincular", "Ver", "Para editar", "Actualizar", "URL", "Editar", "Alineación horizontal", "Filtrar", "Ordenar por fecha modificación", "Ordenar por nombre", "Ordenar por tamaño", "Agregar carpeta", "Resetear", "Guardar", "Guardar como...", "Redimensionar", "Recortar", "Ancho", "Alto", "Mantener relación de aspecto", "Si", "No", "Quitar", "Seleccionar", "Caracteres: %d", "Palabras: %d", "Todo", "Seleccionar: %s", "Seleccionar todo", "Alineación vertical", "Dividir", "Dividir vertical", "Dividir horizontal", "Mezclar", "Agregar columna", "Agregar fila", "Borrar", "Borde", null, "Tachado", "Subrayado", "superíndice", "subíndice", "Cortar selección", "Pausa", "Buscar", "Reemplazar con", "Reemplazar", "Pegar", "Seleccionar contenido para pegar", "Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?", "¡La imagen se ha subido correctamente al servidor!", "paleta", "No hay archivos en este directorio.", "renombrar", "Ingresa un nuevo nombre", "avance", "Descargar", "Pegar desde el portapapeles", "Su navegador no soporta el acceso directo en el portapapeles.", "Selección de copia", "copia", "Radio frontera", "Mostrar todos los", "Aplicar", "Por favor, rellene este campo", "Por favor, introduzca una dirección web", "Predeterminado", "Círculo", "Punto", "Cuadro", "Encontrar", "Buscar Anterior", "Buscar Siguiente", "Insertar nombre de clase", "Presione Alt para cambiar el tamaño personalizado"];
- }, 34145: function(_) {
- _.exports.default = ["Ecrivez ici", "A propos de Jodit", "Editeur Jodit", null, "Guide de l'utilisateur", "Aide détaillée à l'utilisation", "Consulter la licence sur notre site web:", "Acheter la version complète", "Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.", "Ancre", "Ouvrir dans un nouvel onglet", "Ouvrir l'éditeur en pleine page", "Supprimer le formattage", "Modifier la couleur du fond ou du texte", "Refaire", "Défaire", "Gras", "Italique", "Liste non ordonnée", "Liste ordonnée", "Centrer", "Justifier", "Aligner à gauche ", "Aligner à droite", "Insérer une ligne horizontale", "Insérer une image", "Insérer un fichier", "Insérer une vidéo", "Insérer un lien", "Taille des caractères", "Famille des caractères", "Bloc formatté", "Normal", "Titre 1", "Titre 2", "Titre 3", "Titre 4", "Citation", "Code", "Insérer", "Insérer un tableau", "Diminuer le retrait", "Retrait plus", "Sélectionnez un caractère spécial", "Insérer un caractère spécial", "Cloner le format", "Mode wysiwyg <-> code html", "Marges", "haut", "droite", "Bas", "gauche", "Styles", "Classes", "Alignement", "Droite", "Centre", "Gauche", "--Non disponible--", "Source", "Titre", "Alternative", "Lien", "Ouvrir le lien dans un nouvel onglet", "Image", "fichier", "Avancé", "Propriétés de l'image", "Annuler", "OK", "Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?", "Coller en HTML?", "Sauvegarder l'original", "Nettoyer", "Coller en tant que texte", "Coller le texte seulement", "C'est peut-être un fragment de Word ou Excel", "Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?", "Explorateur de fichiers", "Erreur de liste de chargement", "Erreur de dossier de chargement", "Etes-vous sûrs ?", "Entrer le nom de dossier", "Créer un dossier", "type de fichier", "Coller une image", "Déposer un fichier", "ou cliquer", "Texte de remplacemement", "Chercher", "Charger", "Arrière-plan", "Texte", "Haut", "Milieu", "Bas", "Insérer une colonne avant", "Insérer une colonne après", "Insérer une ligne au dessus", "Insérer une ligne en dessous", "Supprimer le tableau", "Supprimer la ligne", "Supprimer la colonne", "Vider la cellule", "la source", "gras", "italique", "pinceau", "lien", "annuler", "refaire", "tableau", "image", "gomme", "clause", "taille de police", "Video", "police", "à propos de l'éditeur", "impression", "souligné", "barré", "indentation", "retrait", "taille réelle", "taille conventionnelle", "la ligne", "Liste", "Liste numérotée", "Couper", "Sélectionner tout", null, "Ouvrir le lien", "Modifier le lien", "Attribut Nofollow", "Supprimer le lien", "Voir", "Pour éditer", "Mettre à jour", "URL", null, "Alignement horizontal", "Filtre", "Trier par modification", "Trier par nom", "Trier par taille", "Créer le dossier", "Restaurer", "Sauvegarder", "Enregistrer sous", "Changer la taille", "Taille de garniture", "Largeur", "Hauteur", "Garder les proportions", "Oui", "Non", "Supprimer", "Mettre en évidence", "Symboles: %d", "Mots: %d", null, "Mettre en évidence: %s", "Tout sélectionner", "Alignement vertical", "Split", "Split vertical", "Split horizontal", "aller", "Ajouter une colonne", "Ajouter une rangée", "Effacer", "Bordure", null, "Barrer", "Souligner", "exposant", "indice", "Couper la sélection", "Pause", "Rechercher", "Remplacer par", "Remplacer", "Coller", "Choisissez le contenu à coller", "Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?", "L'image a été téléchargée avec succès sur le serveur!", "Palette", "Il n'y a aucun fichier dans ce répertoire.", "renommer", "Entrez un nouveau nom", "Aperçu", "Télécharger", "Coller à partir du presse-papiers", "Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.", "Copier la sélection", "copie", "Rayon des bordures", "Afficher tous", "Appliquer", "Veuillez remplir ce champ", "Veuillez entrer une adresse web", "Par défaut", "Cercle", "Point", "Quadratique", "Trouver", "Précédent", "Suivant", "Insérer un nom de classe", "Appuyez sur Alt pour un redimensionnement personnalisé"];
- }, 40272: function(_) {
- _.exports.default = ["הקלד משהו...", "About Jodit", "Jodit Editor", null, "Jodit User's Guide", "contains detailed help for using.", "For information about the license, please go to our website:", "Buy full version", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "מקום עיגון", "פתח בכרטיסיה חדשה", "פתח את העורך בחלון חדש", "נקה עיצוב", "שנה צבע טקסט או רקע", "בצע שוב", "בטל", "מודגש", "נטוי", "הכנס רשימת תבליטים", "הכנס רשימה ממוספרת", "מרכז", "ישר ", "ישר לשמאל", "ישר לימין", "הכנס קו אופקי", "הכנס תמונה", "הכנס קובץ", "הכנס סרטון וידאו מYouTube/Vimeo", "הכנס קישור", "גודל גופן", "גופן", "מעוצב מראש", "רגיל", "כותרת 1", "כותרת 2", "כותרת 3", "כותרת 4", "ציטוט", "קוד", "הכנס", "הכנס טבלה", "הקטן כניסה", "הגדל כניסה", "בחר תו מיוחד", "הכנס תו מיוחד", "העתק עיצוב", "החלף מצב", "ריווח", "עליון", "ימין", "תחתון", "שמאל", "עיצוב CSS", "מחלקת CSS", "יישור", "ימין", "מרכז", "שמאל", "--לא נקבע--", "מקור", "כותרת", "כיתוב חלופי", "קישור", "פתח בכרטיסיה חדשה", "תמונה", "קובץ", "מתקדם", "מאפייני תמונה", "ביטול", "אישור", "הקוד דומה לHTML, האם להשאיר כHTML", "הדבק כHTML", "השאר", "נקה", "הכנס כטקסט", "הכנס טקסט בלבד", 'זוהתה הדבקה מ"וורד"', "התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו", "סייר הקבצים", "שגיאה בזמן טעינת רשימה", "שגיאה בזמן טעינת תקיות", "האם אתה בטוח?", "הכנס שם תקיה", "צור תקיה", "סוג הקובץ", "הסר תמונה", "הסר קובץ", "או לחץ", "כיתוב חלופי", "סייר", "העלה", "רקע", "טקסט", "עליון", "מרכז", "תחתון", "הכנס עמודה לפני", "הכנס עמודה אחרי", "הכנס שורה מעל", "הכנס שורה מתחת", "מחק טבלה", "מחק שורה", "מחק עמודה", "רוקן תא", "HTML", "מודגש", "נטוי", "מברשת", "קישור", "בטל", "בצע שוב", "טבלה", "תמונה", "מחק", "פסקה", "גודל גופן", "וידאו", "גופן", "עלינו", "הדפס", "קו תחתון", "קו חוצה", "הגדל כניסה", "הקטן כניסה", "גודל מלא", "כווץ", "קו אופקי", "רשימת תבליטים", "רשימה ממוספרת", "חתוך", "בחר הכל", "הוסף קוד", "פתח קישור", "ערוך קישור", "ללא מעקב", "בטל קישור", "הצג", "כדי לערוך", "עדכן", "כתובת", "ערוך", "יישור אופקי", "סנן", "מין לפי שינוי", "מיין לפי שם", "מיין לפי גודל", "הוסף תקייה", "אפס", "שמור", "שמור בשם...", "שנה גודל", "חתוך", "רוחב", "גובה", "שמור יחס", "כן", "לא", "הסר", "בחר", "תווים: %d", "מילים: %d", "הכל", "נבחר: %s", "בחר הכל", "יישור אנכי", "פיצול", "פיצול אנכי", "פיצול אופקי", "מזג", "הוסף עמודה", "הוסף שורה", "מחק", "מסגרת", null, "קו חוצה", "קו תחתון", "superscript", "subscript", "גזור בחירה", "שבירת שורה", "חפש", "החלף ב", "להחליף", "הדבק", "בחר תוכן להדבקה", "רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?", "התמונה עלתה בהצלחה!", "לוח", "אין קבצים בספריה זו.", "הונגרית", "הזן שם חדש", "תצוגה מקדימה", "הורד", "להדביק מהלוח", "הדפדפן שלך לא תומך גישה ישירה ללוח.", "העתק בחירה", "העתק", "רדיוס הגבול", "הצג את כל", "החל", "נא למלא שדה זה", "אנא הזן כתובת אינטרנט", "ברירת המחדל", "מעגל", "נקודה", "הריבוע הזה", "למצוא", "מצא את הקודם", "חפש את הבא", "הכנס את שם הכיתה", "לחץ על אלט לשינוי גודל מותאם אישית"];
- }, 2978: function(_) {
- _.exports.default = ["Írjon be valamit", "Joditról", "Jodit Editor", "Ingyenes változat", "Jodit útmutató", "további segítséget tartalmaz", "További licence információkért látogassa meg a weboldalunkat:", "Teljes verzió megvásárlása", "Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.", "Horgony", "Megnyitás új lapon", "Megnyitás teljes méretben", "Formázás törlése", "Háttér/szöveg szín", "Újra", "Visszavon", "Félkövér", "Dőlt", "Pontozott lista", "Számozott lista", "Középre zárt", "Sorkizárt", "Balra zárt", "Jobbra zárt", "Vízszintes vonal beszúrása", "Kép beszúrás", "Fájl beszúrás", "Youtube videó beszúrása", "Link beszúrás", "Betűméret", "Betűtípus", "Formázott blokk beszúrása", "Normál", "Fejléc 1", "Fejléc 2", "Fejléc 3", "Fejléc 4", "Idézet", "Kód", "Beszúr", "Táblázat beszúrása", "Behúzás csökkentése", "Behúzás növelése", "Speciális karakter kiválasztása", "Speciális karakter beszúrása", "Kép formázása", "Nézet váltása", "Szegélyek", "felső", "jobb", "alsó", "bal", "CSS stílusok", "CSS osztályok", "Igazítás", "Jobbra", "Középre", "Balra", "Nincs", "Forrás", "Cím", "Helyettesítő szöveg", "Link", "Link megnyitása új lapon", "Kép", "Fájl", "Haladó", "Kép tulajdonságai", "Mégsem", "OK", "A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?", "Beszúrás HTML-ként", "Megtartás", "Elvetés", "Beszúrás szövegként", "Csak szöveg beillesztése", "Word-ből másolt szöveg", "A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?", "Fájl tallózó", "Hiba a lista betöltése közben", "Hiba a mappák betöltése közben", "Biztosan ezt szeretné?", "Írjon be egy mappanevet", "Mappa létrehozása", "írjon be bevet", "Húzza ide a képet", "Húzza ide a fájlt", "vagy kattintson", "Helyettesítő szöveg", "Tallóz", "Feltölt", "Háttér", "Szöveg", "Fent", "Középen", "Lent", "Oszlop beszúrás elé", "Oszlop beszúrás utána", "Sor beszúrás fölé", "Sor beszúrás alá", "Táblázat törlése", "Sor törlése", "Oszlop törlése", "Cella tartalmának törlése", "HTML", "Félkövér", "Dőlt", "Ecset", "Link", "Visszavon", "Újra", "Táblázat", "Kép", "Törlés", "Paragráfus", "Betűméret", "Videó", "Betű", "Rólunk", "Nyomtat", "Aláhúzott", "Áthúzott", "Behúzás", "Aussenseiter", "Teljes méret", "Összenyom", "Egyenes vonal", "Lista", "Számozott lista", "Kivág", "Összes kijelölése", "Beágyazott kód", "Link megnyitása", "Link szerkesztése", "Nincs követés", "Link leválasztása", "felülvizsgálat", "Szerkesztés", "Frissít", "URL", "Szerkeszt", "Vízszintes igazítás", "Szűrő", "Rendezés módosítás szerint", "Rendezés név szerint", "Rendezés méret szerint", "Mappa hozzáadás", "Visszaállít", "Mentés", "Mentés másként...", "Átméretezés", "Kivág", "Szélesség", "Magasság", "Képarány megtartása", "Igen", "Nem", "Eltávolít", "Kijelöl", "Karakterek száma: %d", "Szavak száma: %d", "Összes", "Kijelöl: %s", "Összes kijelölése", "Függőleges igazítás", "Felosztás", "Függőleges felosztás", "Vízszintes felosztás", "Összevonás", "Oszlop hozzáadás", "Sor hozzáadás", "Törlés", "Szegély", null, "Áthúzott", "Aláhúzott", "Felső index", "Alsó index", "Kivágás", "Szünet", "Keresés", "Csere erre", "Cserélje ki", "Beillesztés", "Válasszon tartalmat a beillesztéshez", "Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?", "Kép sikeresen feltöltve!", "Palette", "Er zijn geen bestanden in deze map.", "átnevezés", "Adja meg az új nevet", "előnézet", "Letöltés", "Illessze be a vágólap", "A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.", "Másolás kiválasztása", "másolás", "Határ sugár", "Összes", "Alkalmazni", "Kérjük, töltse ki ezt a mezőt,", "Kérjük, írja be a webcímet", "Alapértelmezett", "Kör", "Pont", "Quadrate", "Találni", "Megtalálja Előző", "Következő Keresése", "Helyezze be az osztály nevét", "Nyomja meg az Alt egyéni átméretezés"];
- }, 99113: function(_) {
- _.exports.default = ["Ketik sesuatu", "Tentang Jodit", "Editor Jodit", "Versi Bebas Non-komersil", "Panduan Pengguna Jodit", "mencakup detail bantuan penggunaan", "Untuk informasi tentang lisensi, silakan kunjungi website:", "Beli versi lengkap", "Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.", "Tautan", "Buka di tab baru", "Buka editor dalam ukuran penuh", "Hapus Pemformatan", "Isi warna atau atur warna teks", "Ulangi", "Batalkan", "Tebal", "Miring", "Sisipkan Daftar Tidak Berurut", "Sisipkan Daftar Berurut", "Tengah", "Penuh", "Kiri", "Kanan", "Sisipkan Garis Horizontal", "Sisipkan Gambar", "Sisipkan Berkas", "Sisipkan video youtube/vimeo", "Sisipkan tautan", "Ukuran font", "Keluarga font", "Sisipkan blok format", "Normal", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Kutip", "Kode", "Sisipkan", "Sisipkan tabel", "Kurangi Indentasi", "Tambah Indentasi", "Pilih Karakter Spesial", "Sisipkan Karakter Spesial", "Formar warna", "Ubah mode", "Batas", "atas", "kanan", "bawah", "kiri", "Gaya", "Class", "Rata", "Kanan", "Tengah", "Kiri", "--Tidak diset--", "Src", "Judul", "Teks alternatif", "Tautan", "Buka tautan di tab baru", "Gambar", "berkas", "Lanjutan", "Properti gambar", "Batal", "Ya", "Kode Anda cenderung ke HTML. Biarkan sebagai HTML?", "Paste sebagai HTML", "Jaga", "Bersih", "Sisipkan sebagai teks", "Sisipkan hanya teks", "Terdeteksi paste dari Word", "Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?", "Penjelajah Berkas", "Error ketika memuat list", "Error ketika memuat folder", "Apakah Anda yakin?", "Masukkan nama Direktori", "Buat direktori", "ketik nama", "Letakkan gambar", "Letakkan berkas", "atau klik", "Teks alternatif", "Jelajahi", "Unggah", "Latar Belakang", "Teks", "Atas", "Tengah", "Bawah", "Sisipkan kolom sebelumnya", "Sisipkan kolom setelahnya", "Sisipkan baris di atasnya", "Sisipkan baris di bawahnya", "Hapus tabel", "Hapus baris", "Hapus kolom", "Kosongkan cell", "sumber", "tebal", "miring", "sikat", "tautan", "batalkan", "ulangi", "tabel", "gambar", "penghapus", "paragraf", "ukuran font", "video", "font", "tentang", "cetak", "garis bawah", "coret", "menjorok ke dalam", "menjorok ke luar", "ukuran penuh", "menyusut", "hr", "ul", "ol", "potong", "Pilih semua", "Kode embed", "Buka tautan", "Edit tautan", "No follow", "Hapus tautan", "Mata", "pensil", "Perbarui", "URL", "Edit", "Perataan horizontal", "Filter", "Urutkan berdasarkan perubahan", "Urutkan berdasarkan nama", "Urutkan berdasarkan ukuran", "Tambah folder", "Reset", "Simpan", "Simpan sebagai...", "Ubah ukuran", "Crop", "Lebar", "Tinggi", "Jaga aspek rasio", "Ya", "Tidak", "Copot", "Pilih", "Karakter: %d", "Kata: %d", "Semua", "Pilih %s", "Pilih semua", "Rata vertikal", "Bagi", "Bagi secara vertikal", "Bagi secara horizontal", "Gabungkan", "Tambah kolom", "tambah baris", "Hapus", "Bingkai", "Lisensi: %s", "Coret", "Garis Bawah", "Superskrip", "Subskrip", "Potong pilihan", "Berhenti", "Mencari", "Ganti dengan", "Mengganti", "Paste", "Pilih konten untuk dipaste", "Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?", "Gambar telah sukses diunggah ke host!", "palet", "Tidak ada berkas", "ganti nama", "Masukkan nama baru", "pratinjau", "Unduh", "Paste dari clipboard", "Browser anda tidak mendukung akses langsung ke clipboard.", "Copy seleksi", "copy", "Border radius", "Tampilkan semua", "Menerapkan", "Silahkan mengisi kolom ini", "Silahkan masukkan alamat web", "Default", "Lingkaran", "Dot", "Kuadrat", "Menemukan", "Menemukan Sebelumnya", "Menemukan Berikutnya", "Masukkan nama kelas", "Tekan Alt untuk mengubah ukuran kustom"];
- }, 51923: function(_) {
- _.exports.default = ["Scrivi qualcosa...", "A proposito di Jodit", "Jodit Editor", null, "Guida utente di Jodit", "contiene una guida dettagliata per l'uso.", "Per informazioni sulla licenza, si prega di visitare il nostro sito:", "Acquista la versione completa", "Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.", "Ancora", "Apri in una nuova scheda", "Apri l'editor a schermo intero", "Formato chiaro", "Riempi colore o lettera", "Ripristina", "Annulla", "Grassetto", "Corsivo", "Inserisci lista non ordinata", "Inserisci l'elenco ordinato", "Allinea Centra", "Allineare Giustificato", "Allinea a Sinistra", "Allinea a Destra", "Inserisci la linea orizzontale", "Inserisci immagine", "Inserisci un file", "Inserisci video Youtube/Vimeo", "Inserisci il link", "Dimensione del carattere", "Tipo di font", "Inserisci blocco", "Normale", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Citazione", "Codice", "Inserisci", "Inserisci tabella", "Riduci il rientro", "Aumenta il rientro", "Seleziona una funzione speciale", "Inserisci un carattere speciale", "Copia formato", "Cambia modo", "Margini", "su", "destra", "giù", "sinistra", "Stili CSS", "Classi CSS", "Allinea", "Destra", "Centro", "Sinistra", "--Non Impostato--", "Fonte", "Titolo", "Testo Alternativo", "Link", "Apri il link in una nuova scheda", "Immagine", "Archivio", "Avanzato", "Proprietà dell'immagine", "Annulla", "Accetta", "Il codice è simile all'HTML. Mantieni come HTML?", "Incolla come HTML?", "Mantieni", "Pulisci", "Inserisci come testo", "Inserisci solo il testo", "Incollato da Word rilevato", "Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?", "Cerca il file", "Errore durante il caricamento dell'elenco", "Errore durante il caricamento delle cartelle", "Sei sicuro?", "Inserisci il nome della cartella", "Crea cartella", "Entre el nombre", "Rilascia l'immagine", "Rilascia file", "o click", "Testo alternativo", "Sfoglia", "Carica", "Sfondo", "Testo", "Su", "Centro", "Sotto", "Inserisci prima la colonna", "Inserisci colonna dopo", "Inserisci la riga sopra", "Inserisci la riga sotto", "Elimina tabella", "Elimina riga", "Elimina colonna", "Cella vuota", "HTML", "Grassetto", "Corsivo", "Pennello", "Link", "Annulla", "Ripristina", "Tabella", "Immagine", "Gomma", "Paragrafo", "Dimensione del carattere", "Video", "Font", "Approposito di", "Stampa", "Sottolineato", "Barrato", "trattino", "annulla rientro", "A grandezza normale", "comprimere", "linea orizzontale", "lista non ordinata", "lista ordinata", "Taglia", "Seleziona tutto", "Includi codice", "Apri link", "Modifica link", "Non seguire", "Togli link", "Recensione", "Per modificare", "Aggiornare", " URL", "Modifica", "Allineamento orizzontale", "Filtro", "Ordina per data di modifica", "Ordina per nome", "Ordina per dimensione", "Aggiungi cartella", "Reset", "Salva", "Salva con nome...", "Ridimensiona", "Tagliare", "Larghezza", "Altezza", "Mantenere le proporzioni", "Si", "No", "Rimuovere", "Seleziona", "Caratteri: %d", "Parole: %d", "Tutto", "Seleziona: %s", "Seleziona tutto", "Allineamento verticala", "Dividere", "Dividere verticalmente", "Diviso orizzontale", "Fondi", "Aggiungi colonna", "Aggiungi riga", "Cancella", "Bordo", null, "Barrato", "Sottolineato", "indice", "deponente", "Taglia la selezione", "Pausa", "Cerca", "Sostituisci con", "Sostituire", "Incolla", "Seleziona il contenuto da incollare", "Puoi modificare solo le tue immagini. Scarica questa immagine sul server?", "L'immagine è stata caricata con successo sul server!", "tavolozza", "Non ci sono file in questa directory.", "ungherese", "Inserisci un nuovo nome", "anteprima", "Scaricare", "Incolla dagli appunti", "Il tuo browser non supporta l'accesso diretto agli appunti.", "Selezione di copia", "copia", "Border radius", "Mostra tutti", "Applicare", "Si prega di compilare questo campo", "Si prega di inserire un indirizzo web", "Di Default", "Cerchio", "Dot", "Quadrate", "Trovare", "Trova Precedente", "Trova Successivo", "Inserisci il nome della classe", "Premere Alt per il ridimensionamento personalizzato"];
- }, 21268: function(_) {
- _.exports.default = ["なにかタイプしてください", "Joditについて", "Jodit Editor", null, "Jodit ユーザーズ・ガイド", "詳しい使い方", "ライセンス詳細についてはJodit Webサイトを確認ください:", "フルバージョンを購入", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "Anchor", "新しいタブで開く", "エディターのサイズ(フル/ノーマル)", "書式をクリア", "テキストの色", "やり直し", "元に戻す", "太字", "斜体", "箇条書き", "番号付きリスト", "中央揃え", "両端揃え", "左揃え", "右揃え", "区切り線を挿入", "画像を挿入", "ファイルを挿入", "Youtube/Vimeo 動画", "リンクを挿入", "フォントサイズ", "フォント", "テキストのスタイル", "指定なし", "タイトル1", "タイトル2", "タイトル3", "タイトル4", "引用", "コード", "挿入", "表を挿入", "インデント減", "インデント増", "特殊文字を選択", "特殊文字を挿入", "書式を貼付け", "編集モード切替え", "マージン", "上", "右", "下", "左", "スタイル", "クラス", "配置", "右寄せ", "中央寄せ", "左寄せ", "指定なし", "ソース", "タイトル", "代替テキスト", "リンク", "新しいタブで開く", "画像", "ファイル", "高度な設定", "画像のプロパティー", "キャンセル", "確定", "HTMLコードを保持しますか?", "HTMLで貼付け", "HTMLを保持", "Clean", "HTMLをテキストにする", "テキストだけ", "Word Paste Detected", "The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?", "File Browser", "Error on load list", "Error on load folders", "Are you sure?", "Enter Directory name", "Create directory", "type name", "ここに画像をドロップ", "ここにファイルをドロップ", "or クリック", "代替テキスト", "ブラウズ", "アップロード", "背景", "文字", "上", "中央", "下", "左に列を挿入", "右に列を挿入", "上に行を挿入", "下に行を挿入", "表を削除", "行を削除", "列を削除", "セルを空にする", "source", "bold", "italic", "brush", "link", "undo", "redo", "table", "image", "eraser", "paragraph", "fontsize", "video", "font", "about", "print", "underline", "strikethrough", "indent", "outdent", "fullsize", "shrink", "分割線", "箇条書き", "番号付きリスト", "切り取り", "すべて選択", "埋め込みコード", "リンクを開く", "リンクを編集", "No follow", "リンク解除", "サイトを確認", "鉛筆", "更新", "URL", "編集", "水平方向の配置", "Filter", "Sort by changed", "Sort by name", "Sort by size", "Add folder", "リセット", "保存", "Save as ...", "リサイズ", "Crop", "幅", "高さ", "縦横比を保持", "はい", "いいえ", "移除", "選択", "文字数: %d", "単語数: %d", "全部", "選択: %s", "すべて選択", "垂直方向の配置", "分割", "セルの分割(垂直方向)", "セルの分割(水平方向)", "セルの結合", "列を追加", "行を追加", "削除", "境界線", null, "取り消し線", "下線", "上付き文字", "下付き文字", "切り取り", "Pause", "検索", "置換", "交換", "貼付け", "選択した内容を貼付け", "You can only edit your own images. Download this image on the host?", "The image has been successfully uploaded to the host!", "パレット", "There are no files", "Rename", "Enter new name", "プレビュー", "ダウンロード", "貼り付け", "お使いのブラウザはクリップボードを使用できません", "コピー", "copy", "角の丸み", "全て表示", "適用", "まだこの分野", "を入力してくださいウェブアドレス", "デフォルト", "白丸", "黒丸", "四角", "見", "探前", "由来", "クラス名を挿入", "カスタムサイズ変更のためのAltキーを押します"];
- }, 11399: function(_) {
- _.exports.default = ["Type something", "About Jodit", "Jodit Editor", "Free Non-commercial Version", "Jodit User's Guide", "contains detailed help for using", "For information about the license, please go to our website:", "Buy full version", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "Anchor", "Open in new tab", "Open in fullsize", "Clear Formatting", "Fill color or set the text color", "Redo", "Undo", "Bold", "Italic", "Insert Unordered List", "Insert Ordered List", "Align Center", "Align Justify", "Align Left", "Align Right", "Insert Horizontal Line", "Insert Image", "Insert file", "Insert youtube/vimeo video", "Insert link", "Font size", "Font family", "Insert format block", "Normal", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Quote", "Code", "Insert", "Insert table", "Decrease Indent", "Increase Indent", "Select Special Character", "Insert Special Character", "Paint format", "Change mode", "Margins", "top", "right", "bottom", "left", "Styles", "Classes", "Align", "Right", "Center", "Left", "--Not Set--", "Src", "Title", "Alternative", "Link", "Open link in new tab", "Image", "file", "Advanced", "Image properties", "Cancel", "Ok", "Your code is similar to HTML. Keep as HTML?", "Paste as HTML", "Keep", "Clean", "Insert as Text", "Insert only Text", "Word Paste Detected", "The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?", "File Browser", "Error on load list", "Error on load folders", "Are you sure?", "Enter Directory name", "Create directory", "type name", "Drop image", "Drop file", "or click", "Alternative text", "Browse", "Upload", "Background", "Text", "Top", "Middle", "Bottom", "Insert column before", "Insert column after", "Insert row above", "Insert row below", "Delete table", "Delete row", "Delete column", "Empty cell", "source", "bold", "italic", "brush", "link", "undo", "redo", "table", "image", "eraser", "paragraph", "fontsize", "video", "font", "about", "print", "underline", "strikethrough", "indent", "outdent", "fullsize", "shrink", "hr", "ul", "ol", "cut", "selectall", "Embed code", "Open link", "Edit link", "No follow", "Unlink", "Eye", "pencil", "Update", " URL", "Edit", "Horizontal align", "Filter", "Sort by changed", "Sort by name", "Sort by size", "Add folder", "Reset", "Save", "Save as ...", "Resize", "Crop", "Width", "Height", "Keep Aspect Ratio", "Yes", "No", "Remove", "Select", "Chars: %d", "Words: %d", "All", "Select %s", "Select all", "Vertical align", "Split", "Split vertical", "Split horizontal", "Merge", "Add column", "Add row", "Delete", "Border", "License: %s", "Strike through", "Underline", "superscript", "subscript", "Cut selection", "Break", "Search for", "Replace with", "Replace", "Paste", "Choose Content to Paste", "You can only edit your own images. Download this image on the host?", "The image has been successfully uploaded to the host!", "palette", "There are no files", "Rename", "Enter new name", "preview", "download", "Paste from clipboard", "Your browser doesn't support direct access to the clipboard.", "Copy selection", "copy", "Border radius", "Show all", "Apply", "Please fill out this field", "Please enter a web address", "Default", "Circle", "Dot", "Quadrate", "Find", "Find Previous", "Find Next", "Insert className", "Press Alt for custom resizing"];
- }, 37289: function(_) {
- _.exports.default = ["무엇이든 입력하세요", "Jodit에 대하여", "Jodit Editor", null, "Jodit 사용자 안내서", "자세한 도움말이 들어있어요", "라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:", "풀 버전 구입하기", "© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.", "Anchor", "새 탭에서 열기", "전체 크기로 보기", "서식 지우기", "글씨 색상", "재실행", "실행 취소", "굵게", "기울임", "글머리 목록", "번호 목록", "가운데 정렬", "양쪽 정렬", "왼쪽 정렬", "오른쪽 정렬", "수평 구분선 넣기", "이미지 넣기", "파일 넣기", "Youtube/Vimeo 동영상", "링크 넣기", "글꼴 크기", "글꼴", "블록 요소 넣기", "일반 텍스트", "제목 1", "제목 2", "제목 3", "제목 4", "인용", "코드", "붙여 넣기", "테이블", "들여쓰기 감소", "들여쓰기 증가", "특수문자 선택", "특수문자 입력", "페인트 형식", "편집모드 변경", "마진", "위", "오른쪽", "아래", "왼쪽", "스타일", "클래스", "정렬", "오른쪽으로", "가운데로", "왼쪽으로", "--지정 안 함--", "경로(src)", "제목", "대체 텍스트(alt)", "링크", "새 탭에서 열기", null, "파일", "고급", "이미지 속성", "취소", "확인", "HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?", "HTML로 붙여넣기", "원본 유지", "지우기", "텍스트로 넣기", "텍스트만 넣기", "Word 붙여넣기 감지", "Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?", "파일 탐색기", "목록 불러오기 에러", "폴더 불러오기", "정말 진행할까요?", "디렉토리 이름 입력", "디렉토리 생성", "이름 입력", "이미지 드래그", "파일 드래그", "혹은 클릭", "대체 텍스트", "탐색", "업로드", "배경", "텍스트", "위", "중앙", "아래", "이전 열에 삽입", "다음 열에 삽입", "위 행에 삽입", "아래 행에 삽입", "테이블 삭제", "행 삭제", "열 삭제", "빈 셀", "HTML 소스", "볼드", "이탤릭", "브러시", "링크", "실행 취소", "재실행", "테이블", "이미지", "지우개", "문단", "글꼴 크기", "비디오", "글꼴", "편집기 정보", "프린트", "밑줄", "취소선", "들여쓰기", "내어쓰기", "전체 화면", "일반 화면", "구분선", "글머리 목록", "번호 목록", "잘라내기", "모두 선택", "Embed 코드", "링크 열기", "링크 편집", "No follow", "링크 제거", "사이트 확인", "연필", "갱신", "URL", "편집", "수평 정렬", "필터", "변경일 정렬", "이름 정렬", "크기 정렬", "새 폴더", "초기화", "저장", "새로 저장하기 ...", "리사이즈", "크롭", "가로 길이", "세로 높이", "비율 유지하기", "네", "아니오", "제거", "선택", "문자수: %d", "단어수: %d", "모두", "선택: %s", "모두 선택", "수직 정렬", "분할", "세로 셀 분할", "가로 셀 분할", "셀 병합", "열 추가", "행 추가", "삭제", "외곽선", "라이센스: %s", "취소선", "밑줄", "윗첨자", "아래첨자", "선택 잘라내기", "구분자", "검색", "대체하기", "대체", "붙여넣기", "붙여넣을 내용 선택", "외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?", "이미지를 무사히 업로드 했어요!", "팔레트", "파일이 없어요", "이름 변경", "새 이름 입력", "미리보기", "다운로드", "클립보드 붙여넣기", "사용중인 브라우저가 클립보드 접근을 지원하지 않아요.", "선택 복사", "복사", "둥근 테두리", "모두 보기", "적용", "이 항목을 입력해주세요!", "웹 URL을 입력해주세요.", "기본", "원", "점", "정사각형", "찾기", "이전 찾기", "다음 찾기", "className 입력", "사용자 지정 크기 조정에 대 한 고도 누르십시오"];
- }, 17084: function(_) {
- _.exports.default = ["Begin met typen..", "Over Jodit", "Jodit Editor", "Gratis niet-commerciële versie", "Jodit gebruikershandleiding", "bevat gedetailleerde informatie voor gebruik.", "Voor informatie over de licentie, ga naar onze website:", "Volledige versie kopen", "Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.", "Anker", "Open in nieuwe tab", "Editor in volledig scherm openen", "Opmaak verwijderen", "Vulkleur of tekstkleur aanpassen", "Opnieuw", "Ongedaan maken", "Vet", "Cursief", "Geordende list invoegen", "Ongeordende lijst invoegen", "Centreren", "Uitlijnen op volledige breedte", "Links uitlijnen", "Rechts uitlijnen", "Horizontale lijn invoegen", "Afbeelding invoegen", "Bestand invoegen", "Youtube/Vimeo video invoegen", "Link toevoegen", "Tekstgrootte", "Lettertype", "Format blok invoegen", "Normaal", "Koptekst 1", "Koptekst 2", "Koptekst 3", "Koptekst 4", "Citaat", "Code", "Invoegen", "Tabel invoegen", "Inspringing verkleinen", "Inspringing vergroten", "Symbool selecteren", "Symbool invoegen", "Opmaak kopieren", "Modus veranderen", "Marges", "Boven", "Rechts", "Onder", "Links", "CSS styles", "CSS classes", "Uitlijning", "Rechts", "Gecentreerd", "Links", "--Leeg--", "Src", "Titel", "Alternatieve tekst", "Link", "Link in nieuwe tab openen", "Afbeelding", "Bestand", "Geavanceerd", "Afbeeldingseigenschappen", "Annuleren", "OK", "Deze code lijkt op HTML. Als HTML behouden?", "Invoegen als HTML", "Origineel behouden", "Opschonen", "Als tekst invoegen", "Als onopgemaakte tekst invoegen", "Word-tekst gedetecteerd", "De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?", "Bestandsbrowser", "Fout bij het laden van de lijst", "Fout bij het laden van de mappenlijst", "Weet je het zeker?", "Geef de map een naam", "Map aanmaken", "Type naam", "Sleep hier een afbeelding naartoe", "Sleep hier een bestand naartoe", "of klik", "Alternatieve tekst", "Bladeren", "Uploaden", "Achtergrond", "Tekst", "Boven", "Midden", "Onder", "Kolom invoegen (voor)", "Kolom invoegen (na)", "Rij invoegen (boven)", "Rij invoegen (onder)", "Tabel verwijderen", "Rij verwijderen", "Kolom verwijderen", "Cel leegmaken", "Broncode", "vet", "cursief", "kwast", "link", "ongedaan maken", "opnieuw", "tabel", "afbeelding", "gum", "paragraaf", "lettergrootte", "video", "lettertype", "over", "afdrukken", "onderstreept", "doorgestreept", "inspringen", "minder inspringen", "volledige grootte", "kleiner maken", "horizontale lijn", "lijst", "genummerde lijst", "knip", "alles selecteren", "Embed code", "link openen", "link aanpassen", "niet volgen", "link verwijderen", "Recensie", "Om te bewerken", "Updaten", " URL", "Bewerken", "Horizontaal uitlijnen", "Filteren", "Sorteren op wijzigingsdatum", "Sorteren op naam", "Sorteren op grootte", "Map toevoegen", "Herstellen", "Opslaan", "Opslaan als ...", "Grootte aanpassen", "Bijknippen", "Breedte", "Hoogte", "Verhouding behouden", "Ja", "Nee", "Verwijderen", "Selecteren", "Tekens: %d", "Woorden: %d", "Alles", "Selecteer: %s", "Selecteer alles", "Verticaal uitlijnen", "Splitsen", "Verticaal splitsen", "Horizontaal splitsen", "Samenvoegen", "Kolom toevoegen", "Rij toevoegen", "Verwijderen", "Rand", null, "Doorstrepen", "Onderstrepen", "Superscript", "Subscript", "Selectie knippen", "Enter", "Zoek naar", "Vervangen door", "Vervangen", "Plakken", "Kies content om te plakken", "Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?", "De afbeelding is succesvol geüploadet!", "Palette", "Er zijn geen bestanden in deze map.", "Hongaars", "Voer een nieuwe naam in", "voorvertoning", "Download", "Plakken van klembord", "Uw browser ondersteunt geen directe toegang tot het klembord.", "Selectie kopiëren", "kopiëren", "Border radius", "Toon alle", "Toepassing", "Vul dit veld", "Voer een webadres", "Standaard", "Cirkel", "Dot", "Quadrate", "Zoeken", "Vorige Zoeken", "Volgende Zoeken", "Voeg de klassenaam in", "Druk op Alt voor aangepaste grootte"];
- }, 96891: function(_) {
- _.exports.default = ["Napisz coś", "O Jodit", "Edytor Jodit", null, "Instrukcja Jodit", "zawiera szczegółowe informacje dotyczące użytkowania.", "Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:", "Zakup pełnej wersji", "Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.", "Kotwica", "Otwórz w nowej zakładce", "Otwórz edytor w pełnym rozmiarze", "Wyczyść formatowanie", "Kolor wypełnienia lub ustaw kolor tekstu", "Ponów", "Cofnij", "Pogrubienie", "Kursywa", "Wstaw listę wypunktowaną", "Wstaw listę numeryczną", "Wyśrodkuj", "Wyjustuj", "Wyrównaj do lewej", "Wyrównaj do prawej", "Wstaw linię poziomą", "Wstaw grafikę", "Wstaw plik", "Wstaw film Youtube/vimeo", "Wstaw link", "Rozmiar tekstu", "Krój czcionki", "Wstaw formatowanie", "Normalne", "Nagłówek 1", "Nagłówek 2", "Nagłówek 3", "Nagłówek 4", "Cytat", "Kod", "Wstaw", "Wstaw tabelę", "Zmniejsz wcięcie", "Zwiększ wcięcie", "Wybierz znak specjalny", "Wstaw znak specjalny", "Malarz formatów", "Zmień tryb", "Marginesy", "Górny", "Prawy", "Dolny", "Levy", "Style CSS", "Klasy CSS", "Wyrównanie", "Prawa", "środek", "Lewa", "brak", "Źródło", "Tytuł", "Tekst alternatywny", "Link", "Otwórz w nowej zakładce", "Grafika", "Plik", "Zaawansowane", "Właściwości grafiki", "Anuluj", "OK", "Twój kod wygląda jak HTML. Zachować HTML?", "Wkleić jako HTML?", "Oryginalny tekst", "Wyczyść", "Wstaw jako tekst", "Wstaw tylko treść", "Wykryto tekst w formacie Word", "Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ", "Przeglądarka plików", "Błąd ładowania listy plików", "Błąd ładowania folderów", "Czy jesteś pewien?", "Wprowadź nazwę folderu", "Utwórz folder", "wprowadź nazwę", "Upuść plik graficzny", "Upuść plik", "lub kliknij tu", "Tekst alternatywny", "Przeglądaj", "Wczytaj", "Tło", "Treść", "Góra", "Środek", "Dół", "Wstaw kolumnę przed", "Wstaw kolumnę po", "Wstaw wiersz przed", "Wstaw wiersz po", "Usuń tabelę", "Usuń wiersz", "Usuń kolumnę", "Wyczyść komórkę", "HTML", "pogrubienie", "kursywa", "pędzel", "link", "cofnij", "ponów", "tabela", "grafika", "wyczyść", "akapit", "rozmiar czcionki", "wideo", "czcionka", "O programie", "drukuj", "podkreślenie", "przekreślenie", "wcięcie", "wycięcie", "pełen rozmiar", "przytnij", "linia pozioma", "lista", "lista numerowana", "wytnij", "zaznacz wszystko", "Wstaw kod", "otwórz link", "edytuj link", "Atrybut no-follow", "Usuń link", "szukaj", "edytuj", "Aktualizuj", "URL", "Edytuj", "Wyrównywanie w poziomie", "Filtruj", "Sortuj wg zmiany", "Sortuj wg nazwy", "Sortuj wg rozmiaru", "Dodaj folder", "wyczyść", "zapisz", "zapisz jako", "Zmień rozmiar", "Przytnij", "Szerokość", "Wysokość", "Zachowaj proporcje", "Tak", "Nie", "Usuń", "Wybierz", "Znaki: %d", "Słowa: %d", "Wszystko", "Wybierz: %s", "Wybierz wszystko", "Wyrównywanie w pionie", "Podziel", "Podziel w pionie", "Podziel w poziomie", "Scal", "Dodaj kolumnę", "Dodaj wiersz", "Usuń", "Obramowanie", null, "Przekreślenie", "Podkreślenie", "indeks górny", "index dolny", "Wytnij zaznaczenie", "Przerwa", "Szukaj", "Zamień na", "Wymienić", "Wklej", "Wybierz zawartość do wklejenia", "Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?", "Grafika została pomyślnienie dodana na serwer", "Paleta", "Brak plików.", "zmień nazwę", "Wprowadź nową nazwę", "podgląd", "pobierz", "Wklej ze schowka", "Twoja przeglądarka nie obsługuje schowka", "Kopiuj zaznaczenie", "kopiuj", "Zaokrąglenie krawędzi", "Pokaż wszystkie", "Zastosuj", "Proszę wypełnić to pole", "Proszę, wpisz adres sieci web", "Domyślnie", "Koło", "Punkt", "Kwadrat", "Znaleźć", "Znaleźć Poprzednie", "Znajdź Dalej", "Wstaw nazwę zajęć", "Naciśnij Alt, aby zmienić rozmiar"];
- }, 31211: function(_) {
- _.exports.default = ["Escreva algo...", "Sobre o Jodit", "Editor Jodit", null, "Guia de usuário Jodit", "contém ajuda detalhada para o uso.", "Para informação sobre a licença, por favor visite nosso site:", "Compre a versão completa", "Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.", "Link", "Abrir em nova aba", "Abrir editor em tela cheia", "Limpar formatação", "Cor de preenchimento ou cor do texto", "Refazer", "Desfazer", "Negrito", "Itálico", "Inserir lista não ordenada", "Inserir lista ordenada", "Centralizar", "Justificar", "Alinhar à Esquerda", "Alinhar à Direita", "Inserir linha horizontal", "Inserir imagem", "Inserir arquivo", "Inserir vídeo do Youtube/vimeo", "Inserir link", "Tamanho da letra", "Fonte", "Inserir bloco", "Normal", "Cabeçalho 1", "Cabeçalho 2", "Cabeçalho 3", "Cabeçalho 4", "Citação", "Código", "Inserir", "Inserir tabela", "Diminuir recuo", "Aumentar recuo", "Selecionar caractere especial", "Inserir caractere especial", "Copiar formato", "Mudar modo", "Margens", "cima", "direta", "baixo", "esquerda", "Estilos CSS", "Classes CSS", "Alinhamento", "Direita", "Centro", "Esquerda", "--Não Estabelecido--", "Fonte", "Título", "Texto Alternativo", "Link", "Abrir link em nova aba", "Imagem", "Arquivo", "Avançado", "Propriedades da imagem", "Cancelar", "Ok", "Seu código é similar ao HTML. Manter como HTML?", "Colar como HTML?", "Manter", "Limpar", "Inserir como Texto", "Inserir somente o Texto", "Colado do Word Detectado", "O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?", "Procurar arquivo", "Erro ao carregar a lista", "Erro ao carregar as pastas", "Você tem certeza?", "Escreva o nome da pasta", "Criar pasta", "Escreva seu nome", "Soltar imagem", "Soltar arquivo", "ou clique", "Texto alternativo", "Explorar", "Upload", "Fundo", "Texto", "Cima", "Meio", "Baixo", "Inserir coluna antes", "Inserir coluna depois", "Inserir linha acima", "Inserir linha abaixo", "Excluir tabela", "Excluir linha", "Excluir coluna", "Limpar célula", "HTML", "negrito", "itálico", "pincel", "link", "desfazer", "refazer", "tabela", "imagem", "apagar", "parágrafo", "tamanho da letra", "vídeo", "fonte", "Sobre de", "Imprimir", "sublinhar", "tachado", "recuar", "diminuir recuo", "Tamanho completo", "diminuir", "linha horizontal", "lista não ordenada", "lista ordenada", "Cortar", "Selecionar tudo", "Incluir código", "Abrir link", "Editar link", "Não siga", "Remover link", "Visualizar", "Editar", "Atualizar", "URL", "Editar", "Alinhamento horizontal", "filtrar", "Ordenar por modificação", "Ordenar por nome", "Ordenar por tamanho", "Adicionar pasta", "Resetar", "Salvar", "Salvar como...", "Redimensionar", "Recortar", "Largura", "Altura", "Manter a proporção", "Sim", "Não", "Remover", "Selecionar", "Caracteres: %d", "Palavras: %d", "Tudo", "Selecionar: %s", "Selecionar tudo", "Alinhamento vertical", "Dividir", "Dividir vertical", "Dividir horizontal", "Mesclar", "Adicionar coluna", "Adicionar linha", "Excluir", "Borda", null, "Tachado", "Sublinhar", "sobrescrito", "subscrito", "Cortar seleção", "Pausa", "Procurar por", "Substituir com", "Substituir", "Colar", "Escolher conteúdo para colar", "Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?", "A imagem foi enviada com sucesso para o servidor!", "Palette", "Não há arquivos nesse diretório.", "Húngara", "Digite um novo nome", "preview", "Baixar", "Colar da área de transferência", "O seu navegador não oferece suporte a acesso direto para a área de transferência.", "Selecção de cópia", "cópia", "Border radius", "Mostrar todos os", "Aplicar", "Por favor, preencha este campo", "Por favor introduza um endereço web", "Padrão", "Círculo", "Ponto", "Quadro", "Encontrar", "Encontrar Anteriores", "Localizar Próxima", "Insira o nome da classe", "Pressione Alt para redimensionamento personalizado"];
- }, 31109: function(_) {
- _.exports.default = ["Напишите что-либо", "О Jodit", "Редактор Jodit", null, "Jodit Руководство пользователя", "содержит детальную информацию по использованию", "Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:", "Купить полную версию", "Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.", "Анкор", "Открывать ссылку в новой вкладке", "Открыть редактор в полном размере", "Очистить форматирование", "Цвет заливки или цвет текста", "Повтор", "Отмена", "Жирный", "Наклонный", "Вставка маркированного списка", "Вставить нумерованный список", "Выровнять по центру", "Выровнять по ширине", "Выровнять по левому краю", "Выровнять по правому краю", "Вставить горизонтальную линию", "Вставить изображение", "Вставить файл", "Вставьте видео", "Вставить ссылку", "Размер шрифта", "Шрифт", "Вставить блочный элемент", "Нормальный текст", "Заголовок 1", "Заголовок 2", "Заголовок 3", "Заголовок 4", "Цитата", "Код", "Вставить", "Вставить таблицу", "Уменьшить отступ", "Увеличить отступ", "Выберите специальный символ", "Вставить специальный символ", "Формат краски", "Источник", "Отступы", "сверху", "справа", "снизу", "слева", "Стили", "Классы", "Выравнивание", "По правому краю", "По центру", "По левому краю", "--не устанавливать--", "src", "Заголовок", "Альтернативный текст (alt)", "Ссылка", "Открывать ссылку в новом окне", null, "Файл", "Расширенные", "Свойства изображения", "Отмена", "Ок", "Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?", "Вставить как HTML?", "Сохранить оригинал", "Почистить", "Вставить как текст", "Вставить только текст", "Возможно это фрагмент Word или Excel", "Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?", "Браузер файлов", "Ошибка при загрузке списка изображений", "Ошибка при загрузке списка директорий", "Вы уверены?", "Введите название директории", "Создать директорию", "введите название", "Перетащите сюда изображение", "Перетащите сюда файл", "или нажмите", "Альтернативный текст", "Сервер", "Загрузка", "Фон", "Текст", " К верху", "По середине", "К низу", "Вставить столбец до", "Вставить столбец после", "Вставить ряд выше", "Вставить ряд ниже", "Удалить таблицу", "Удалять ряд", "Удалить столбец", "Очистить ячейку", "HTML", "жирный", "курсив", "заливка", "ссылка", "отменить", "повторить", "таблица", "Изображение", "очистить", "параграф", "размер шрифта", "видео", "шрифт", "о редакторе", "печать", "подчеркнутый", "перечеркнутый", "отступ", "выступ", "во весь экран", "обычный размер", "линия", "Список", "Нумерованный список", "Вырезать", "Выделить все", "Код", "Открыть ссылку", "Редактировать ссылку", "Атрибут nofollow", "Убрать ссылку", "Просмотр", "Редактировать", "Обновить", "URL", "Редактировать", "Горизонтальное выравнивание", "Фильтр", "По изменению", "По имени", "По размеру", "Добавить папку", "Восстановить", "Сохранить", "Сохранить как", "Изменить размер", "Обрезать размер", "Ширина", "Высота", "Сохранять пропорции", "Да", "Нет", "Удалить", "Выделить", "Символов: %d", "Слов: %d", "Выделить все", "Выделить: %s", "Выделить все", "Вертикальное выравнивание", "Разделить", "Разделить по вертикали", "Разделить по горизонтали", "Объединить в одну", "Добавить столбец", "Добавить строку", "Удалить", "Рамка", "Лицензия: %s", "Перечеркнуть", "Подчеркивание", "верхний индекс", "индекс", "Вырезать", "Разделитель", "Найти", "Заменить на", "Заменить", "Вставить", "Выбрать контент для вставки", "Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?", "Изображение успешно загружено на сервер!", "палитра", "В данном каталоге нет файлов", "Переименовать", "Введите новое имя", "Предпросмотр", "Скачать", "Вставить из буфера обмена", "Ваш браузер не поддерживает прямой доступ к буферу обмена.", "Скопировать выделенное", "копия", "Радиус границы", "Показать все", "Применить", "Пожалуйста, заполните это поле", "Пожалуйста, введите веб-адрес", "По умолчанию", "Круг", "Точка", "Квадрат", "Найти", "Найти Предыдущие", "Найти Далее", "Вставить название класса", "Нажмите Alt для изменения пользовательского размера"];
- }, 79375: function(_) {
- _.exports.default = ["Bir şeyler yaz", "Jodit Hakkında", "Jodit Editor", null, "Jodit Kullanım Kılavuzu", "kullanım için detaylı bilgiler içerir", "Lisans hakkında bilgi için lütfen web sitemize gidin:", "Tam versiyonunu satın al", "Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.", "Bağlantı", "Yeni sekmede aç", "Editörü tam ekranda aç", "Stili temizle", "Renk doldur veya yazı rengi seç", "Yinele", "Geri Al", "Kalın", "İtalik", "Sırasız Liste Ekle", "Sıralı Liste Ekle", "Ortala", "Kenarlara Yasla", "Sola Yasla", "Sağa Yasla", "Yatay Çizgi Ekle", "Resim Ekle", "Dosya Ekle", "Youtube/Vimeo Videosu Ekle", "Bağlantı Ekle", "Font Boyutu", "Font Ailesi", "Blok Ekle", "Normal", "Başlık 1", "Başlık 2", "Başlık 3", "Başlık 4", "Alıntı", "Kod", "Ekle", "Tablo Ekle", "Girintiyi Azalt", "Girintiyi Arttır", "Özel Karakter Seç", "Özel Karakter Ekle", "Resim Biçimi", "Mod Değiştir", "Boşluklar", "Üst", "Sağ", "Alt", "Sol", "CSS Stilleri", "CSS Sınıfları", "Hizalama", "Sağ", "Ortalı", "Sol", "Belirsiz", "Kaynak", "Başlık", "Alternatif Yazı", "Link", "Bağlantıyı yeni sekmede aç", "Resim", "Dosya", "Gelişmiş", "Resim özellikleri", "İptal", "Tamam", "Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?", "HTML olarak yapıştır", "Sakla", "Temizle", "Yazı olarak ekle", "Sadece yazıyı ekle", "Word biçiminde yapıştırma algılandı", "Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?", "Dosya Listeleyici", "Liste yüklenirken hata oluştu", "Klasörler yüklenirken hata oluştur", "Emin misiniz?", "Dizin yolu giriniz", "Dizin oluştur", "İsim yaz", "Resim bırak", "Dosya bırak", "veya tıkla", "Alternatif yazı", "Gözat", "Yükle", "Arka plan", "Yazı", "Üst", "Orta", "Aşağı", "Öncesine kolon ekle", "Sonrasına kolon ekle", "Üstüne satır ekle", "Altına satır ekle", "Tabloyu sil", "Satırı sil", "Kolonu sil", "Hücreyi temizle", "Kaynak", "Kalın", "italik", "Fırça", "Bağlantı", "Geri al", "Yinele", "Tablo", "Resim", "Silgi", "Paragraf", "Font boyutu", "Video", "Font", "Hakkında", "Yazdır", "Alt çizgi", "Üstü çizili", "Girinti", "Çıkıntı", "Tam ekran", "Küçült", "Ayraç", "Sırasız liste", "Sıralı liste", "Kes", "Tümünü seç", "Kod ekle", "Bağlantıyı aç", "Bağlantıyı düzenle", "Nofollow özelliği", "Bağlantıyı kaldır", "Yorumu", "Düzenlemek için", "Güncelle", "URL", "Düzenle", "Yatay hizala", "Filtre", "Değişime göre sırala", "İsme göre sırala", "Boyuta göre sırala", "Klasör ekle", "Sıfırla", "Kaydet", "Farklı kaydet", "Boyutlandır", "Kırp", "Genişlik", "Yükseklik", "En boy oranını koru", "Evet", "Hayır", "Sil", "Seç", "Harfler: %d", "Kelimeler: %d", "Tümü", "Seç: %s", "Tümünü seç", "Dikey hizala", "Ayır", "Dikey ayır", "Yatay ayır", "Birleştir", "Kolon ekle", "Satır ekle", "Sil", "Kenarlık", null, "Üstü çizili", "Alt çizgi", "Üst yazı", "Alt yazı", "Seçilimi kes", "Satır sonu", "Ara", "Şununla değiştir", "Değiştir", "Yapıştır", "Yapıştırılacak içerik seç", "Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?", "Görsel başarıyla hostunuza yüklendi", "Palet", "Bu dizinde dosya yok", "Yeniden isimlendir", "Yeni isim girin", "Ön izleme", "İndir", "Panodan yapıştır ", "Tarayıcınız panoya doğrudan erişimi desteklemiyor.", "Seçimi kopyala", "Kopyala", "Sınır yarıçapı", "Tümünü Göster", "Uygula", "Lütfen bu alanı doldurun", "Lütfen bir web adresi girin", "Varsayılan", "Daire", "Nokta", "Kare", "Bul", "Öncekini Bul", "Sonrakini Bul", "Sınıf adı girin", "Özel yeniden boyutlandırma için Alt tuşuna basın"];
- }, 21042: function(_) {
- _.exports.default = ["输入一些内容", "关于Jodit", "Jodit Editor", "Free Non-commercial Version", "开发者指南", "使用帮助", "有关许可证的信息,请访问我们的网站:", "购买完整版本", "Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有", "Anchor", "在新窗口打开", "全屏编辑", "清除样式", "颜色", "重做", "撤销", "粗体", "斜体", "符号列表", "编号", "居中", "对齐文本", "左对齐", "右对齐", "分割线", "图片", "文件", "视频", "链接", "字号", "字体", "格式块", "默认", "标题1", "标题2", "标题3", "标题4", "引用", "代码", "插入", "表格", "减少缩进", "增加缩进", "选择特殊符号", "特殊符号", "格式复制", "改变模式", "外边距(Margins)", "top", "right", "bottom", "left", "样式", "Classes", "对齐方式", "居右", "居中", "居左", "无", "Src", "Title", "Alternative", "Link", "在新窗口打开链接", "图片", "file", "高级", "图片属性", "取消", "确定", "你粘贴的文本是一段html代码,是否保留源格式", "html粘贴", "保留源格式", "匹配目标格式", "把html代码视为普通文本", "只保留文本", "文本粘贴", "正在粘贴 Word/Excel 的文本,是否保留源格式?", "文件管理", "加载list错误", "加载folders错误", "你确定吗?", "输入路径", "创建路径", "type name", "拖动图片到此", "拖动文件到此", "或点击", "Alternative text", "浏览", "上传", "背景色", "文字", "顶部", "中间", "底部", "在之前插入列", "在之后插入列", "在之前插入行", "在之后插入行", "删除表格", "删除行", "删除列", "清除内容", "源码", "粗体", "斜体", "颜色", "链接", "撤销", "重做", "表格", "图片", "橡皮擦", "段落", "字号", "视频", "字体", "关于", "打印", "下划线", "上出现", "增加缩进", "减少缩进", "全屏", "收缩", "分割线", "无序列表", "顺序列表", "剪切", "全选", "嵌入代码", "打开链接", "编辑链接", "No follow", "取消链接", "预览", "铅笔", "更新", "URL", "编辑", "水平对齐", "筛选", "修改时间排序", "名称排序", "大小排序", "新建文件夹", "重置", "保存", "保存为", "调整大小", "剪切", "宽", "高", "保持长宽比", "是", "不", "移除", "选择", "字符数: %d", "单词数: %d", "全部", "选择: %s", "全选", "垂直对齐", "拆分", "垂直拆分", "水平拆分", "合并", "添加列", "添加行", "删除", "边框", null, "删除线", "下划线", "上标", "下标", "剪切", "Break", "查找", "替换为", "替换", "粘贴", "选择内容并粘贴", "你只能编辑你自己的图片。Download this image on the host?", "图片上传成功", "调色板", "此目录中沒有文件。", "重命名", "输入新名称", "预览", "下载", "粘贴从剪贴板", "你浏览器不支持直接访问的剪贴板。", "复制选中内容", "复制", "边界半径", "显示所有", "应用", "请填写这个字段", "请输入一个网址", "默认", "圆圈", "点", "方形", "搜索", "查找上一个", "查找下一个", "插入班级名称", "按Alt自定义调整大小"];
- }, 73895: function(_) {
- _.exports.default = ["輸入一些內容", "關於Jodit", "Jodit Editor", null, "開發者指南", "使用幫助", "有關許可證的信息,請訪問我們的網站:", "購買完整版本", "Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.", "Anchor", "在新窗口打開", "全屏編輯", "清除樣式", "顏色", "重做", "撤銷", "粗體", "斜體", "符號列表", "編號", "居中", "對齊文本", "左對齊", "右對齊", "分割線", "圖片", "文件", "youtube/vimeo 影片", "鏈接", "字號", "字體", "格式塊", "文本", "標題1", "標題2", "標題3", "標題4", "引用", "代碼", "插入", "表格", "減少縮進", "增加縮進", "選擇特殊符號", "特殊符號", "格式複製", "改變模式", "外邊距(Margins)", "top", "right", "bottom", "left", "樣式", "Classes", "對齊方式", "居右", "居中", "居左", "無", "Src", "Title", "替代", "Link", "在新窗口打開鏈接", "圖片", "file", "高級", "圖片屬性", "取消", "確定", "你黏貼的文本是一段html代碼,是否保留源格式", "html黏貼", "保留源格式", "匹配目標格式", "把html代碼視為普通文本", "只保留文本", "文本黏貼", "正在黏貼 Word/Excel 的文本,是否保留源格式?", "文件管理", "加載list錯誤", "加載folders錯誤", "你確定嗎?", "輸入路徑", "創建路徑", "type name", "拖動圖片到此", "拖動文件到此", "或點擊", "替代文字", "瀏覽", "上傳", "背景色", "文字", "頂部", "中間", "底部", "在之前插入列", "在之後插入列", "在之前插入行", "在之後插入行", "刪除表格", "刪除行", "刪除列", "清除內容", "源碼", "粗體", "斜體", "顏色", "鏈接", "撤銷", "重做", "表格", "圖片", "橡皮擦", "段落", "字號", "影片", "字體", "關於", "打印", "下劃線", "上出現", "增加縮進", "減少縮進", "全屏", "收縮", "分割線", "無序列表", "順序列表", "剪切", "全選", "嵌入代碼", "打開鏈接", "編輯鏈接", "No follow", "取消連結", "回顧", "鉛筆", "更新", "URL", null, "水平對齊", "篩選", "修改時間排序", "名稱排序", "大小排序", "新建文件夾", "重置", "保存", "保存為", "調整大小", "Crop", "寬", "高", "保存長寬比", "是", "不", "移除", "選擇", "字符數: %d", "單詞數: %d", "全部", "選擇: %s", "全選", "垂直對齊", "拆分", "垂直拆分", "水平拆分", "合併", "添加列", "添加行", "刪除", "邊框", null, "刪除線", "下劃線", "上標", "下標", "剪切", "Pause", "查找", "替換為", "แทนที่", "黏貼", "選擇內容並黏貼", "你只能編輯你自己的圖片。是否下載此圖片到本地?", "圖片上傳成功", "調色板", "此目錄中沒有文件。", "重命名", "輸入新名稱", "預覽", "下載", "從剪貼板貼上", "瀏覽器無法存取剪贴板。", "複製已選取項目", "複製", "邊框圓角", "顯示所有", "應用", "ได้โปรดกรอกช่องข้อมูลนี้", "โปรดเติมที่อยู่บนเว็บ", "ค่าปริยาย", "วงกลม", "จุด", "Quadrate", "ค้นหา", "ค้นหาก่อนหน้านี้", "ค้นหาถัดไป", "ใส่ชื่อคลาส", "กดอัลท์สำหรับการปรับขนาดที่กำหนดเอง"];
- }, 3610: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>`;
- }, 56170: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>`;
- }, 95331: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>`;
- }, 84279: function(_) {
- _.exports = '<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>';
- }, 11257: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>`;
- }, 25141: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>`;
- }, 24557: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>`;
- }, 10859: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>`;
- }, 9813: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>`;
- }, 93395: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>`;
- }, 98213: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>`;
- }, 20026: function(_) {
- _.exports = '<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>';
- }, 66911: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg>`;
- }, 50018: function(_) {
- _.exports = '<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>';
- }, 99738: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>`;
- }, 9185: function(_) {
- _.exports = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>';
- }, 8619: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>`;
- }, 73894: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>`;
- }, 83301: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>`;
- }, 84142: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>`;
- }, 57292: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>`;
- }, 18019: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>`;
- }, 45146: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>`;
- }, 53576: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>`;
- }, 14655: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>`;
- }, 53477: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>`;
- }, 90053: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>`;
- }, 72230: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>`;
- }, 78321: function(_) {
- _.exports = '<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>';
- }, 77654: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>`;
- }, 43371: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>`;
- }, 44563: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>`;
- }, 53183: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>`;
- }, 18548: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>`;
- }, 52242: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>`;
- }, 87498: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>`;
- }, 7986: function(_) {
- _.exports = '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>';
- }, 23075: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>`;
- }, 10655: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>`;
- }, 15476: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>`;
- }, 59403: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>`;
- }, 22860: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>`;
- }, 95600: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>`;
- }, 76214: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>`;
- }, 41197: function(_) {
- _.exports = '<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>';
- }, 9342: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg>`;
- }, 69546: function(_) {
- _.exports = '<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>';
- }, 43158: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>`;
- }, 51716: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>`;
- }, 49222: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>`;
- }, 1755: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>`;
- }, 74911: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>`;
- }, 8805: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>`;
- }, 16547: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>`;
- }, 10856: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>`;
- }, 98441: function(_) {
- _.exports = '<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>';
- }, 52488: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>`;
- }, 9370: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg>`;
- }, 66543: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>`;
- }, 608: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>`;
- }, 42840: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>`;
- }, 79096: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>`;
- }, 33014: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>`;
- }, 91677: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>`;
- }, 8259: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>`;
- }, 64467: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>`;
- }, 86934: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>`;
- }, 76133: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>`;
- }, 45519: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>`;
- }, 90265: function(_) {
- _.exports = '<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>';
- }, 81279: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>`;
- }, 68899: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>`;
- }, 70744: function(_) {
- _.exports = '<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>';
- }, 19201: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>`;
- }, 84930: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>`;
- }, 99704: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>`;
- }, 2304: function(_) {
- _.exports = `<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>`;
- }, 93330: function(_, t, e) {
- e.r(t);
- }, 45066: function(_, t, e) {
- e.r(t);
- }, 99895: function(_, t, e) {
- e.r(t);
- }, 87682: function(_, t, e) {
- e.r(t);
- }, 50905: function(_, t, e) {
- e.r(t);
- }, 70446: function(_, t, e) {
- e.r(t);
- }, 18984: function(_, t, e) {
- e.r(t);
- }, 4591: function(_, t, e) {
- e.r(t);
- }, 64194: function(_, t, e) {
- e.r(t);
- }, 70375: function(_, t, e) {
- e.r(t);
- }, 90235: function(_, t, e) {
- e.r(t);
- }, 88477: function(_, t, e) {
- e.r(t);
- }, 50197: function(_, t, e) {
- e.r(t);
- }, 39008: function(_, t, e) {
- e.r(t);
- }, 47086: function(_, t, e) {
- e.r(t);
- }, 16462: function(_, t, e) {
- e.r(t);
- }, 40692: function(_, t, e) {
- e.r(t);
- }, 27452: function(_, t, e) {
- e.r(t);
- }, 51422: function(_, t, e) {
- e.r(t);
- }, 62820: function(_, t, e) {
- e.r(t);
- }, 63421: function(_, t, e) {
- e.r(t);
- }, 32115: function(_, t, e) {
- e.r(t);
- }, 53362: function(_, t, e) {
- e.r(t);
- }, 48904: function(_, t, e) {
- e.r(t);
- }, 85796: function(_, t, e) {
- e.r(t);
- }, 28654: function(_, t, e) {
- e.r(t);
- }, 60819: function(_, t, e) {
- e.r(t);
- }, 96410: function(_, t, e) {
- e.r(t);
- }, 33126: function(_, t, e) {
- e.r(t);
- }, 30724: function(_, t, e) {
- e.r(t);
- }, 14320: function(_, t, e) {
- e.r(t);
- }, 9947: function(_, t, e) {
- e.r(t);
- }, 45109: function(_, t, e) {
- e.r(t);
- }, 71708: function(_, t, e) {
- e.r(t);
- }, 51629: function(_, t, e) {
- e.r(t);
- }, 54860: function(_, t, e) {
- e.r(t);
- }, 47818: function(_, t, e) {
- e.r(t);
- }, 6316: function(_, t, e) {
- e.r(t);
- }, 88582: function(_, t, e) {
- e.r(t);
- }, 30962: function(_, t, e) {
- e.r(t);
- }, 68197: function(_, t, e) {
- e.r(t);
- }, 60057: function(_, t, e) {
- e.r(t);
- }, 33393: function(_, t, e) {
- e.r(t);
- }, 51057: function(_, t, e) {
- e.r(t);
- }, 64618: function(_, t, e) {
- e.r(t);
- }, 90176: function(_, t, e) {
- e.r(t);
- }, 91147: function(_, t, e) {
- e.r(t);
- }, 70631: function(_, t) {
- function e(h) {
- return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(f) {
- return typeof f;
- } : function(f) {
- return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
- }, e(h);
- }
- function n(h, f, d) {
- var a = d.value;
- if (typeof a != "function") throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(e(a)));
- var s = !1;
- return { configurable: !0, get: function() {
- if (s || this === h.prototype || this.hasOwnProperty(f) || typeof a != "function") return a;
- var c = a.bind(this);
- return s = !0, Object.defineProperty(this, f, { configurable: !0, get: function() {
- return c;
- }, set: function(p) {
- a = p, delete this[f];
- } }), s = !1, c;
- }, set: function(c) {
- a = c;
- } };
- }
- function m(h) {
- var f;
- return typeof Reflect != "undefined" && typeof Reflect.ownKeys == "function" ? f = Reflect.ownKeys(h.prototype) : (f = Object.getOwnPropertyNames(h.prototype), typeof Object.getOwnPropertySymbols == "function" && (f = f.concat(Object.getOwnPropertySymbols(h.prototype)))), f.forEach(function(d) {
- if (d !== "constructor") {
- var a = Object.getOwnPropertyDescriptor(h.prototype, d);
- typeof a.value == "function" && Object.defineProperty(h.prototype, d, n(h, d, a));
- }
- }), h;
- }
- Object.defineProperty(t, "__esModule", { value: !0 }), t.boundClass = t.boundMethod = void 0, t.boundMethod = n, t.boundClass = m, t.default = function() {
- return arguments.length === 1 ? m.apply(void 0, arguments) : n.apply(void 0, arguments);
- };
- }, 61227: function() {
- "document" in window.self && ((!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) && function(_) {
- if ("Element" in _) {
- var t = "classList", e = _.Element.prototype, n = Object, m = String.prototype.trim || function() {
- return this.replace(/^\s+|\s+$/g, "");
- }, h = Array.prototype.indexOf || function(l) {
- for (var o = 0, r = this.length; r > o; o++) if (o in this && this[o] === l) return o;
- return -1;
- }, f = function(l, o) {
- this.name = l, this.code = DOMException[l], this.message = o;
- }, d = function(l, o) {
- if (o === "") throw new f("SYNTAX_ERR", "An invalid or illegal string was specified");
- if (/\s/.test(o)) throw new f("INVALID_CHARACTER_ERR", "String contains an invalid character");
- return h.call(l, o);
- }, a = function(l) {
- for (var o = m.call(l.getAttribute("class") || ""), r = o ? o.split(/\s+/) : [], i = 0, u = r.length; u > i; i++) this.push(r[i]);
- this._updateClassName = function() {
- l.setAttribute("class", this.toString());
- };
- }, s = a.prototype = [], c = function() {
- return new a(this);
- };
- if (f.prototype = Error.prototype, s.item = function(l) {
- return this[l] || null;
- }, s.contains = function(l) {
- return d(this, l += "") !== -1;
- }, s.add = function() {
- var l, o = arguments, r = 0, i = o.length, u = !1;
- do
- d(this, l = o[r] + "") === -1 && (this.push(l), u = !0);
- while (++r < i);
- u && this._updateClassName();
- }, s.remove = function() {
- var l, o, r = arguments, i = 0, u = r.length, v = !1;
- do
- for (o = d(this, l = r[i] + ""); o !== -1; ) this.splice(o, 1), v = !0, o = d(this, l);
- while (++i < u);
- v && this._updateClassName();
- }, s.toggle = function(l, o) {
- var r = this.contains(l += ""), i = r ? o !== !0 && "remove" : o !== !1 && "add";
- return i && this[i](l), o === !0 || o === !1 ? o : !r;
- }, s.toString = function() {
- return this.join(" ");
- }, n.defineProperty) {
- var p = { get: c, enumerable: !0, configurable: !0 };
- try {
- n.defineProperty(e, t, p);
- } catch (l) {
- l.number !== void 0 && l.number !== -2146823252 || (p.enumerable = !1, n.defineProperty(e, t, p));
- }
- } else n.prototype.__defineGetter__ && e.__defineGetter__(t, c);
- }
- }(window.self), function() {
- var _ = document.createElement("_");
- if (_.classList.add("c1", "c2"), !_.classList.contains("c2")) {
- var t = function(n) {
- var m = DOMTokenList.prototype[n];
- DOMTokenList.prototype[n] = function(h) {
- var f, d = arguments.length;
- for (f = 0; d > f; f++) m.call(this, h = arguments[f]);
- };
- };
- t("add"), t("remove");
- }
- if (_.classList.toggle("c3", !1), _.classList.contains("c3")) {
- var e = DOMTokenList.prototype.toggle;
- DOMTokenList.prototype.toggle = function(n, m) {
- return 1 in arguments && !this.contains(n) == !m ? m : e.call(this, n);
- };
- }
- _ = null;
- }());
- }, 69220: function(_, t, e) {
- e(22513);
- var n = e(56599);
- _.exports = n("Array", "findIndex");
- }, 10444: function(_, t, e) {
- e(52867), e(70057);
- var n = e(31116);
- _.exports = n.Array.from;
- }, 66622: function(_, t, e) {
- e(54166), e(32044), e(95661), e(28424), e(64514), e(30733), e(40327), e(53639), e(6147), e(7290), e(95122), e(61322), e(39605), e(49341), e(28809), e(82658), e(43967), e(90217), e(73477), e(93697);
- var n = e(31116);
- _.exports = n.Symbol;
- }, 98061: function(_, t, e) {
- var n = e(794), m = e(98418), h = TypeError;
- _.exports = function(f) {
- if (n(f)) return f;
- throw h(m(f) + " is not a function");
- };
- }, 75839: function(_, t, e) {
- var n = e(794), m = String, h = TypeError;
- _.exports = function(f) {
- if (typeof f == "object" || n(f)) return f;
- throw h("Can't set " + m(f) + " as a prototype");
- };
- }, 15179: function(_, t, e) {
- var n = e(19517), m = e(93503), h = e(73252).f, f = n("unscopables"), d = Array.prototype;
- d[f] == null && h(d, f, { configurable: !0, value: m(null) }), _.exports = function(a) {
- d[f][a] = !0;
- };
- }, 52313: function(_, t, e) {
- var n = e(8148), m = String, h = TypeError;
- _.exports = function(f) {
- if (n(f)) return f;
- throw h(m(f) + " is not an object");
- };
- }, 92707: function(_, t, e) {
- var n = e(40207), m = e(9093), h = e(68488), f = e(79665), d = e(84997), a = e(15333), s = e(15050), c = e(89476), p = e(27395), l = e(81058), o = Array;
- _.exports = function(r) {
- var i = h(r), u = a(this), v = arguments.length, y = v > 1 ? arguments[1] : void 0, g = y !== void 0;
- g && (y = n(y, v > 2 ? arguments[2] : void 0));
- var b, w, C, S, j, E, x = l(i), k = 0;
- if (!x || this === o && d(x)) for (b = s(i), w = u ? new this(b) : o(b); b > k; k++) E = g ? y(i[k], k) : i[k], c(w, k, E);
- else for (j = (S = p(i, x)).next, w = u ? new this() : []; !(C = m(j, S)).done; k++) E = g ? f(S, y, [C.value, k], !0) : C.value, c(w, k, E);
- return w.length = k, w;
- };
- }, 79327: function(_, t, e) {
- var n = e(98651), m = e(10586), h = e(15050), f = function(d) {
- return function(a, s, c) {
- var p, l = n(a), o = h(l), r = m(c, o);
- if (d && s != s) {
- for (; o > r; ) if ((p = l[r++]) != p) return !0;
- } else for (; o > r; r++) if ((d || r in l) && l[r] === s) return d || r || 0;
- return !d && -1;
- };
- };
- _.exports = { includes: f(!0), indexOf: f(!1) };
- }, 56881: function(_, t, e) {
- var n = e(40207), m = e(90838), h = e(25049), f = e(68488), d = e(15050), a = e(6429), s = m([].push), c = function(p) {
- var l = p == 1, o = p == 2, r = p == 3, i = p == 4, u = p == 6, v = p == 7, y = p == 5 || u;
- return function(g, b, w, C) {
- for (var S, j, E = f(g), x = h(E), k = n(b, w), I = d(x), M = 0, T = C || a, O = l ? T(g, I) : o || v ? T(g, 0) : void 0; I > M; M++) if ((y || M in x) && (j = k(S = x[M], M, E), p)) if (l) O[M] = j;
- else if (j) switch (p) {
- case 3:
- return !0;
- case 5:
- return S;
- case 6:
- return M;
- case 2:
- s(O, S);
- }
- else switch (p) {
- case 4:
- return !1;
- case 7:
- s(O, S);
- }
- return u ? -1 : r || i ? i : O;
- };
- };
- _.exports = { forEach: c(0), map: c(1), filter: c(2), some: c(3), every: c(4), find: c(5), findIndex: c(6), filterReject: c(7) };
- }, 63833: function(_, t, e) {
- var n = e(75834), m = e(19517), h = e(65190), f = m("species");
- _.exports = function(d) {
- return h >= 51 || !n(function() {
- var a = [];
- return (a.constructor = {})[f] = function() {
- return { foo: 1 };
- }, a[d](Boolean).foo !== 1;
- });
- };
- }, 57652: function(_, t, e) {
- var n = e(10586), m = e(15050), h = e(89476), f = Array, d = Math.max;
- _.exports = function(a, s, c) {
- for (var p = m(a), l = n(s, p), o = n(c === void 0 ? p : c, p), r = f(d(o - l, 0)), i = 0; o > l; l++, i++) h(r, i, a[l]);
- return r.length = i, r;
- };
- }, 54832: function(_, t, e) {
- var n = e(90838);
- _.exports = n([].slice);
- }, 22506: function(_, t, e) {
- var n = e(36222), m = e(15333), h = e(8148), f = e(19517)("species"), d = Array;
- _.exports = function(a) {
- var s;
- return n(a) && (m(s = a.constructor) && (s === d || n(s.prototype)) || h(s) && (s = s[f]) === null) && (s = void 0), s === void 0 ? d : s;
- };
- }, 6429: function(_, t, e) {
- var n = e(22506);
- _.exports = function(m, h) {
- return new (n(m))(h === 0 ? 0 : h);
- };
- }, 79665: function(_, t, e) {
- var n = e(52313), m = e(11274);
- _.exports = function(h, f, d, a) {
- try {
- return a ? f(n(d)[0], d[1]) : f(d);
- } catch (s) {
- m(h, "throw", s);
- }
- };
- }, 7581: function(_, t, e) {
- var n = e(19517)("iterator"), m = !1;
- try {
- var h = 0, f = { next: function() {
- return { done: !!h++ };
- }, return: function() {
- m = !0;
- } };
- f[n] = function() {
- return this;
- }, Array.from(f, function() {
- throw 2;
- });
- } catch (d) {
- }
- _.exports = function(d, a) {
- if (!a && !m) return !1;
- var s = !1;
- try {
- var c = {};
- c[n] = function() {
- return { next: function() {
- return { done: s = !0 };
- } };
- }, d(c);
- } catch (p) {
- }
- return s;
- };
- }, 6285: function(_, t, e) {
- var n = e(90838), m = n({}.toString), h = n("".slice);
- _.exports = function(f) {
- return h(m(f), 8, -1);
- };
- }, 8652: function(_, t, e) {
- var n = e(6424), m = e(794), h = e(6285), f = e(19517)("toStringTag"), d = Object, a = h(/* @__PURE__ */ function() {
- return arguments;
- }()) == "Arguments";
- _.exports = n ? h : function(s) {
- var c, p, l;
- return s === void 0 ? "Undefined" : s === null ? "Null" : typeof (p = function(o, r) {
- try {
- return o[r];
- } catch (i) {
- }
- }(c = d(s), f)) == "string" ? p : a ? h(c) : (l = h(c)) == "Object" && m(c.callee) ? "Arguments" : l;
- };
- }, 58392: function(_, t, e) {
- var n = e(14434), m = e(86671), h = e(36999), f = e(73252);
- _.exports = function(d, a, s) {
- for (var c = m(a), p = f.f, l = h.f, o = 0; c.length > o; o++) {
- var r = c[o];
- n(d, r) || s && n(s, r) || p(d, r, l(a, r));
- }
- };
- }, 27259: function(_, t, e) {
- var n = e(75834);
- _.exports = !n(function() {
- function m() {
- }
- return m.prototype.constructor = null, Object.getPrototypeOf(new m()) !== m.prototype;
- });
- }, 17427: function(_) {
- _.exports = function(t, e) {
- return { value: t, done: e };
- };
- }, 45840: function(_, t, e) {
- var n = e(13873), m = e(73252), h = e(32500);
- _.exports = n ? function(f, d, a) {
- return m.f(f, d, h(1, a));
- } : function(f, d, a) {
- return f[d] = a, f;
- };
- }, 32500: function(_) {
- _.exports = function(t, e) {
- return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e };
- };
- }, 89476: function(_, t, e) {
- var n = e(43836), m = e(73252), h = e(32500);
- _.exports = function(f, d, a) {
- var s = n(d);
- s in f ? m.f(f, s, h(0, a)) : f[s] = a;
- };
- }, 97548: function(_, t, e) {
- var n = e(40846), m = e(73252);
- _.exports = function(h, f, d) {
- return d.get && n(d.get, f, { getter: !0 }), d.set && n(d.set, f, { setter: !0 }), m.f(h, f, d);
- };
- }, 35065: function(_, t, e) {
- var n = e(794), m = e(73252), h = e(40846), f = e(25379);
- _.exports = function(d, a, s, c) {
- c || (c = {});
- var p = c.enumerable, l = c.name !== void 0 ? c.name : a;
- if (n(s) && h(s, l, c), c.global) p ? d[a] = s : f(a, s);
- else {
- try {
- c.unsafe ? d[a] && (p = !0) : delete d[a];
- } catch (o) {
- }
- p ? d[a] = s : m.f(d, a, { value: s, enumerable: !1, configurable: !c.nonConfigurable, writable: !c.nonWritable });
- }
- return d;
- };
- }, 25379: function(_, t, e) {
- var n = e(37042), m = Object.defineProperty;
- _.exports = function(h, f) {
- try {
- m(n, h, { value: f, configurable: !0, writable: !0 });
- } catch (d) {
- n[h] = f;
- }
- return f;
- };
- }, 13873: function(_, t, e) {
- var n = e(75834);
- _.exports = !n(function() {
- return Object.defineProperty({}, 1, { get: function() {
- return 7;
- } })[1] != 7;
- });
- }, 12062: function(_) {
- var t = typeof document == "object" && document.all;
- _.exports = { all: t, IS_HTMLDDA: t === void 0 && t !== void 0 };
- }, 15192: function(_, t, e) {
- var n = e(37042), m = e(8148), h = n.document, f = m(h) && m(h.createElement);
- _.exports = function(d) {
- return f ? h.createElement(d) : {};
- };
- }, 39505: function(_) {
- var t = TypeError;
- _.exports = function(e) {
- if (e > 9007199254740991) throw t("Maximum allowed index exceeded");
- return e;
- };
- }, 21473: function(_) {
- _.exports = typeof navigator != "undefined" && String(navigator.userAgent) || "";
- }, 65190: function(_, t, e) {
- var n, m, h = e(37042), f = e(21473), d = h.process, a = h.Deno, s = d && d.versions || a && a.version, c = s && s.v8;
- c && (m = (n = c.split("."))[0] > 0 && 4 > n[0] ? 1 : +(n[0] + n[1])), !m && f && ((n = f.match(/Edge\/(\d+)/)) && 74 > n[1] || (n = f.match(/Chrome\/(\d+)/)) && (m = +n[1])), _.exports = m;
- }, 56599: function(_, t, e) {
- var n = e(37042), m = e(90838);
- _.exports = function(h, f) {
- return m(n[h].prototype[f]);
- };
- }, 64456: function(_) {
- _.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
- }, 50791: function(_, t, e) {
- var n = e(37042), m = e(36999).f, h = e(45840), f = e(35065), d = e(25379), a = e(58392), s = e(56930);
- _.exports = function(c, p) {
- var l, o, r, i, u, v = c.target, y = c.global, g = c.stat;
- if (l = y ? n : g ? n[v] || d(v, {}) : (n[v] || {}).prototype) for (o in p) {
- if (i = p[o], r = c.dontCallGetSet ? (u = m(l, o)) && u.value : l[o], !s(y ? o : v + (g ? "." : "#") + o, c.forced) && r !== void 0) {
- if (typeof i == typeof r) continue;
- a(i, r);
- }
- (c.sham || r && r.sham) && h(i, "sham", !0), f(l, o, i, c);
- }
- };
- }, 75834: function(_) {
- _.exports = function(t) {
- try {
- return !!t();
- } catch (e) {
- return !0;
- }
- };
- }, 55101: function(_, t, e) {
- var n = e(32610), m = Function.prototype, h = m.apply, f = m.call;
- _.exports = typeof Reflect == "object" && Reflect.apply || (n ? f.bind(h) : function() {
- return f.apply(h, arguments);
- });
- }, 40207: function(_, t, e) {
- var n = e(75114), m = e(98061), h = e(32610), f = n(n.bind);
- _.exports = function(d, a) {
- return m(d), a === void 0 ? d : h ? f(d, a) : function() {
- return d.apply(a, arguments);
- };
- };
- }, 32610: function(_, t, e) {
- var n = e(75834);
- _.exports = !n(function() {
- var m = function() {
- }.bind();
- return typeof m != "function" || m.hasOwnProperty("prototype");
- });
- }, 9093: function(_, t, e) {
- var n = e(32610), m = Function.prototype.call;
- _.exports = n ? m.bind(m) : function() {
- return m.apply(m, arguments);
- };
- }, 84521: function(_, t, e) {
- var n = e(13873), m = e(14434), h = Function.prototype, f = n && Object.getOwnPropertyDescriptor, d = m(h, "name"), a = d && function() {
- }.name === "something", s = d && (!n || n && f(h, "name").configurable);
- _.exports = { EXISTS: d, PROPER: a, CONFIGURABLE: s };
- }, 47448: function(_, t, e) {
- var n = e(90838), m = e(98061);
- _.exports = function(h, f, d) {
- try {
- return n(m(Object.getOwnPropertyDescriptor(h, f)[d]));
- } catch (a) {
- }
- };
- }, 75114: function(_, t, e) {
- var n = e(6285), m = e(90838);
- _.exports = function(h) {
- if (n(h) === "Function") return m(h);
- };
- }, 90838: function(_, t, e) {
- var n = e(32610), m = Function.prototype, h = m.call, f = n && m.bind.bind(h, h);
- _.exports = n ? f : function(d) {
- return function() {
- return h.apply(d, arguments);
- };
- };
- }, 98945: function(_, t, e) {
- var n = e(37042), m = e(794), h = function(f) {
- return m(f) ? f : void 0;
- };
- _.exports = function(f, d) {
- return 2 > arguments.length ? h(n[f]) : n[f] && n[f][d];
- };
- }, 81058: function(_, t, e) {
- var n = e(8652), m = e(20156), h = e(8140), f = e(84922), d = e(19517)("iterator");
- _.exports = function(a) {
- if (!h(a)) return m(a, d) || m(a, "@@iterator") || f[n(a)];
- };
- }, 27395: function(_, t, e) {
- var n = e(9093), m = e(98061), h = e(52313), f = e(98418), d = e(81058), a = TypeError;
- _.exports = function(s, c) {
- var p = 2 > arguments.length ? d(s) : c;
- if (m(p)) return h(n(p, s));
- throw a(f(s) + " is not iterable");
- };
- }, 6693: function(_, t, e) {
- var n = e(90838), m = e(36222), h = e(794), f = e(6285), d = e(63046), a = n([].push);
- _.exports = function(s) {
- if (h(s)) return s;
- if (m(s)) {
- for (var c = s.length, p = [], l = 0; c > l; l++) {
- var o = s[l];
- typeof o == "string" ? a(p, o) : typeof o != "number" && f(o) != "Number" && f(o) != "String" || a(p, d(o));
- }
- var r = p.length, i = !0;
- return function(u, v) {
- if (i) return i = !1, v;
- if (m(this)) return v;
- for (var y = 0; r > y; y++) if (p[y] === u) return v;
- };
- }
- };
- }, 20156: function(_, t, e) {
- var n = e(98061), m = e(8140);
- _.exports = function(h, f) {
- var d = h[f];
- return m(d) ? void 0 : n(d);
- };
- }, 37042: function(_, t, e) {
- var n = function(m) {
- return m && m.Math == Math && m;
- };
- _.exports = n(typeof globalThis == "object" && globalThis) || n(typeof window == "object" && window) || n(typeof self == "object" && self) || n(typeof e.g == "object" && e.g) || /* @__PURE__ */ function() {
- return this;
- }() || Function("return this")();
- }, 14434: function(_, t, e) {
- var n = e(90838), m = e(68488), h = n({}.hasOwnProperty);
- _.exports = Object.hasOwn || function(f, d) {
- return h(m(f), d);
- };
- }, 48889: function(_) {
- _.exports = {};
- }, 36249: function(_, t, e) {
- var n = e(98945);
- _.exports = n("document", "documentElement");
- }, 12816: function(_, t, e) {
- var n = e(13873), m = e(75834), h = e(15192);
- _.exports = !n && !m(function() {
- return Object.defineProperty(h("div"), "a", { get: function() {
- return 7;
- } }).a != 7;
- });
- }, 25049: function(_, t, e) {
- var n = e(90838), m = e(75834), h = e(6285), f = Object, d = n("".split);
- _.exports = m(function() {
- return !f("z").propertyIsEnumerable(0);
- }) ? function(a) {
- return h(a) == "String" ? d(a, "") : f(a);
- } : f;
- }, 92355: function(_, t, e) {
- var n = e(90838), m = e(794), h = e(45752), f = n(Function.toString);
- m(h.inspectSource) || (h.inspectSource = function(d) {
- return f(d);
- }), _.exports = h.inspectSource;
- }, 56113: function(_, t, e) {
- var n, m, h, f = e(95473), d = e(37042), a = e(8148), s = e(45840), c = e(14434), p = e(45752), l = e(85475), o = e(48889), r = "Object already initialized", i = d.TypeError;
- if (f || p.state) {
- var u = p.state || (p.state = new d.WeakMap());
- u.get = u.get, u.has = u.has, u.set = u.set, n = function(y, g) {
- if (u.has(y)) throw i(r);
- return g.facade = y, u.set(y, g), g;
- }, m = function(y) {
- return u.get(y) || {};
- }, h = function(y) {
- return u.has(y);
- };
- } else {
- var v = l("state");
- o[v] = !0, n = function(y, g) {
- if (c(y, v)) throw i(r);
- return g.facade = y, s(y, v, g), g;
- }, m = function(y) {
- return c(y, v) ? y[v] : {};
- }, h = function(y) {
- return c(y, v);
- };
- }
- _.exports = { set: n, get: m, has: h, enforce: function(y) {
- return h(y) ? m(y) : n(y, {});
- }, getterFor: function(y) {
- return function(g) {
- var b;
- if (!a(g) || (b = m(g)).type !== y) throw i("Incompatible receiver, " + y + " required");
- return b;
- };
- } };
- }, 84997: function(_, t, e) {
- var n = e(19517), m = e(84922), h = n("iterator"), f = Array.prototype;
- _.exports = function(d) {
- return d !== void 0 && (m.Array === d || f[h] === d);
- };
- }, 36222: function(_, t, e) {
- var n = e(6285);
- _.exports = Array.isArray || function(m) {
- return n(m) == "Array";
- };
- }, 794: function(_, t, e) {
- var n = e(12062), m = n.all;
- _.exports = n.IS_HTMLDDA ? function(h) {
- return typeof h == "function" || h === m;
- } : function(h) {
- return typeof h == "function";
- };
- }, 15333: function(_, t, e) {
- var n = e(90838), m = e(75834), h = e(794), f = e(8652), d = e(98945), a = e(92355), s = function() {
- }, c = [], p = d("Reflect", "construct"), l = /^\s*(?:class|function)\b/, o = n(l.exec), r = !l.exec(s), i = function(v) {
- if (!h(v)) return !1;
- try {
- return p(s, c, v), !0;
- } catch (y) {
- return !1;
- }
- }, u = function(v) {
- if (!h(v)) return !1;
- switch (f(v)) {
- case "AsyncFunction":
- case "GeneratorFunction":
- case "AsyncGeneratorFunction":
- return !1;
- }
- try {
- return r || !!o(l, a(v));
- } catch (y) {
- return !0;
- }
- };
- u.sham = !0, _.exports = !p || m(function() {
- var v;
- return i(i.call) || !i(Object) || !i(function() {
- v = !0;
- }) || v;
- }) ? u : i;
- }, 56930: function(_, t, e) {
- var n = e(75834), m = e(794), h = /#|\.prototype\./, f = function(p, l) {
- var o = a[d(p)];
- return o == c || o != s && (m(l) ? n(l) : !!l);
- }, d = f.normalize = function(p) {
- return String(p).replace(h, ".").toLowerCase();
- }, a = f.data = {}, s = f.NATIVE = "N", c = f.POLYFILL = "P";
- _.exports = f;
- }, 8140: function(_) {
- _.exports = function(t) {
- return t == null;
- };
- }, 8148: function(_, t, e) {
- var n = e(794), m = e(12062), h = m.all;
- _.exports = m.IS_HTMLDDA ? function(f) {
- return typeof f == "object" ? f !== null : n(f) || f === h;
- } : function(f) {
- return typeof f == "object" ? f !== null : n(f);
- };
- }, 70852: function(_) {
- _.exports = !1;
- }, 88253: function(_, t, e) {
- var n = e(98945), m = e(794), h = e(54671), f = e(57982), d = Object;
- _.exports = f ? function(a) {
- return typeof a == "symbol";
- } : function(a) {
- var s = n("Symbol");
- return m(s) && h(s.prototype, d(a));
- };
- }, 11274: function(_, t, e) {
- var n = e(9093), m = e(52313), h = e(20156);
- _.exports = function(f, d, a) {
- var s, c;
- m(f);
- try {
- if (!(s = h(f, "return"))) {
- if (d === "throw") throw a;
- return a;
- }
- s = n(s, f);
- } catch (p) {
- c = !0, s = p;
- }
- if (d === "throw") throw a;
- if (c) throw s;
- return m(s), a;
- };
- }, 60928: function(_, t, e) {
- var n = e(77831).IteratorPrototype, m = e(93503), h = e(32500), f = e(44532), d = e(84922), a = function() {
- return this;
- };
- _.exports = function(s, c, p, l) {
- var o = c + " Iterator";
- return s.prototype = m(n, { next: h(+!l, p) }), f(s, o, !1, !0), d[o] = a, s;
- };
- }, 13759: function(_, t, e) {
- var n = e(50791), m = e(9093), h = e(70852), f = e(84521), d = e(794), a = e(60928), s = e(1074), c = e(482), p = e(44532), l = e(45840), o = e(35065), r = e(19517), i = e(84922), u = e(77831), v = f.PROPER, y = f.CONFIGURABLE, g = u.IteratorPrototype, b = u.BUGGY_SAFARI_ITERATORS, w = r("iterator"), C = "keys", S = "values", j = "entries", E = function() {
- return this;
- };
- _.exports = function(x, k, I, M, T, O, L) {
- a(I, k, M);
- var N, H, q, F = function(A) {
- if (A === T && z) return z;
- if (!b && A in P) return P[A];
- switch (A) {
- case C:
- case S:
- case j:
- return function() {
- return new I(this, A);
- };
- }
- return function() {
- return new I(this);
- };
- }, U = k + " Iterator", Y = !1, P = x.prototype, D = P[w] || P["@@iterator"] || T && P[T], z = !b && D || F(T), R = k == "Array" && P.entries || D;
- if (R && (N = s(R.call(new x()))) !== Object.prototype && N.next && (h || s(N) === g || (c ? c(N, g) : d(N[w]) || o(N, w, E)), p(N, U, !0, !0), h && (i[U] = E)), v && T == S && D && D.name !== S && (!h && y ? l(P, "name", S) : (Y = !0, z = function() {
- return m(D, this);
- })), T) if (H = { values: F(S), keys: O ? z : F(C), entries: F(j) }, L) for (q in H) (b || Y || !(q in P)) && o(P, q, H[q]);
- else n({ target: k, proto: !0, forced: b || Y }, H);
- return h && !L || P[w] === z || o(P, w, z, { name: T }), i[k] = z, H;
- };
- }, 77831: function(_, t, e) {
- var n, m, h, f = e(75834), d = e(794), a = e(8148), s = e(93503), c = e(1074), p = e(35065), l = e(19517), o = e(70852), r = l("iterator"), i = !1;
- [].keys && ("next" in (h = [].keys()) ? (m = c(c(h))) !== Object.prototype && (n = m) : i = !0), !a(n) || f(function() {
- var u = {};
- return n[r].call(u) !== u;
- }) ? n = {} : o && (n = s(n)), d(n[r]) || p(n, r, function() {
- return this;
- }), _.exports = { IteratorPrototype: n, BUGGY_SAFARI_ITERATORS: i };
- }, 84922: function(_) {
- _.exports = {};
- }, 15050: function(_, t, e) {
- var n = e(24431);
- _.exports = function(m) {
- return n(m.length);
- };
- }, 40846: function(_, t, e) {
- var n = e(90838), m = e(75834), h = e(794), f = e(14434), d = e(13873), a = e(84521).CONFIGURABLE, s = e(92355), c = e(56113), p = c.enforce, l = c.get, o = String, r = Object.defineProperty, i = n("".slice), u = n("".replace), v = n([].join), y = d && !m(function() {
- return r(function() {
- }, "length", { value: 8 }).length !== 8;
- }), g = String(String).split("String"), b = _.exports = function(w, C, S) {
- i(o(C), 0, 7) === "Symbol(" && (C = "[" + u(o(C), /^Symbol\(([^)]*)\)/, "$1") + "]"), S && S.getter && (C = "get " + C), S && S.setter && (C = "set " + C), (!f(w, "name") || a && w.name !== C) && (d ? r(w, "name", { value: C, configurable: !0 }) : w.name = C), y && S && f(S, "arity") && w.length !== S.arity && r(w, "length", { value: S.arity });
- try {
- S && f(S, "constructor") && S.constructor ? d && r(w, "prototype", { writable: !1 }) : w.prototype && (w.prototype = void 0);
- } catch (E) {
- }
- var j = p(w);
- return f(j, "source") || (j.source = v(g, typeof C == "string" ? C : "")), w;
- };
- Function.prototype.toString = b(function() {
- return h(this) && l(this).source || s(this);
- }, "toString");
- }, 43932: function(_) {
- var t = Math.ceil, e = Math.floor;
- _.exports = Math.trunc || function(n) {
- var m = +n;
- return (m > 0 ? e : t)(m);
- };
- }, 93503: function(_, t, e) {
- var n, m = e(52313), h = e(5770), f = e(64456), d = e(48889), a = e(36249), s = e(15192), c = e(85475)("IE_PROTO"), p = function() {
- }, l = function(i) {
- return "<script>" + i + "<\/script>";
- }, o = function(i) {
- i.write(l("")), i.close();
- var u = i.parentWindow.Object;
- return i = null, u;
- }, r = function() {
- try {
- n = new ActiveXObject("htmlfile");
- } catch (y) {
- }
- var i, u;
- r = typeof document != "undefined" ? document.domain && n ? o(n) : ((u = s("iframe")).style.display = "none", a.appendChild(u), u.src = "javascript:", (i = u.contentWindow.document).open(), i.write(l("document.F=Object")), i.close(), i.F) : o(n);
- for (var v = f.length; v--; ) delete r.prototype[f[v]];
- return r();
- };
- d[c] = !0, _.exports = Object.create || function(i, u) {
- var v;
- return i !== null ? (p.prototype = m(i), v = new p(), p.prototype = null, v[c] = i) : v = r(), u === void 0 ? v : h.f(v, u);
- };
- }, 5770: function(_, t, e) {
- var n = e(13873), m = e(63142), h = e(73252), f = e(52313), d = e(98651), a = e(3385);
- t.f = n && !m ? Object.defineProperties : function(s, c) {
- f(s);
- for (var p, l = d(c), o = a(c), r = o.length, i = 0; r > i; ) h.f(s, p = o[i++], l[p]);
- return s;
- };
- }, 73252: function(_, t, e) {
- var n = e(13873), m = e(12816), h = e(63142), f = e(52313), d = e(43836), a = TypeError, s = Object.defineProperty, c = Object.getOwnPropertyDescriptor;
- t.f = n ? h ? function(p, l, o) {
- if (f(p), l = d(l), f(o), typeof p == "function" && l === "prototype" && "value" in o && "writable" in o && !o.writable) {
- var r = c(p, l);
- r && r.writable && (p[l] = o.value, o = { configurable: "configurable" in o ? o.configurable : r.configurable, enumerable: "enumerable" in o ? o.enumerable : r.enumerable, writable: !1 });
- }
- return s(p, l, o);
- } : s : function(p, l, o) {
- if (f(p), l = d(l), f(o), m) try {
- return s(p, l, o);
- } catch (r) {
- }
- if ("get" in o || "set" in o) throw a("Accessors not supported");
- return "value" in o && (p[l] = o.value), p;
- };
- }, 36999: function(_, t, e) {
- var n = e(13873), m = e(9093), h = e(33244), f = e(32500), d = e(98651), a = e(43836), s = e(14434), c = e(12816), p = Object.getOwnPropertyDescriptor;
- t.f = n ? p : function(l, o) {
- if (l = d(l), o = a(o), c) try {
- return p(l, o);
- } catch (r) {
- }
- if (s(l, o)) return f(!m(h.f, l, o), l[o]);
- };
- }, 53305: function(_, t, e) {
- var n = e(6285), m = e(98651), h = e(7792).f, f = e(57652), d = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
- _.exports.f = function(a) {
- return d && n(a) == "Window" ? function(s) {
- try {
- return h(s);
- } catch (c) {
- return f(d);
- }
- }(a) : h(m(a));
- };
- }, 7792: function(_, t, e) {
- var n = e(84729), m = e(64456).concat("length", "prototype");
- t.f = Object.getOwnPropertyNames || function(h) {
- return n(h, m);
- };
- }, 23953: function(_, t) {
- t.f = Object.getOwnPropertySymbols;
- }, 1074: function(_, t, e) {
- var n = e(14434), m = e(794), h = e(68488), f = e(85475), d = e(27259), a = f("IE_PROTO"), s = Object, c = s.prototype;
- _.exports = d ? s.getPrototypeOf : function(p) {
- var l = h(p);
- if (n(l, a)) return l[a];
- var o = l.constructor;
- return m(o) && l instanceof o ? o.prototype : l instanceof s ? c : null;
- };
- }, 54671: function(_, t, e) {
- var n = e(90838);
- _.exports = n({}.isPrototypeOf);
- }, 84729: function(_, t, e) {
- var n = e(90838), m = e(14434), h = e(98651), f = e(79327).indexOf, d = e(48889), a = n([].push);
- _.exports = function(s, c) {
- var p, l = h(s), o = 0, r = [];
- for (p in l) !m(d, p) && m(l, p) && a(r, p);
- for (; c.length > o; ) m(l, p = c[o++]) && (~f(r, p) || a(r, p));
- return r;
- };
- }, 3385: function(_, t, e) {
- var n = e(84729), m = e(64456);
- _.exports = Object.keys || function(h) {
- return n(h, m);
- };
- }, 33244: function(_, t) {
- var e = {}.propertyIsEnumerable, n = Object.getOwnPropertyDescriptor, m = n && !e.call({ 1: 2 }, 1);
- t.f = m ? function(h) {
- var f = n(this, h);
- return !!f && f.enumerable;
- } : e;
- }, 482: function(_, t, e) {
- var n = e(47448), m = e(52313), h = e(75839);
- _.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
- var f, d = !1, a = {};
- try {
- (f = n(Object.prototype, "__proto__", "set"))(a, []), d = a instanceof Array;
- } catch (s) {
- }
- return function(s, c) {
- return m(s), h(c), d ? f(s, c) : s.__proto__ = c, s;
- };
- }() : void 0);
- }, 57555: function(_, t, e) {
- var n = e(6424), m = e(8652);
- _.exports = n ? {}.toString : function() {
- return "[object " + m(this) + "]";
- };
- }, 82472: function(_, t, e) {
- var n = e(9093), m = e(794), h = e(8148), f = TypeError;
- _.exports = function(d, a) {
- var s, c;
- if (a === "string" && m(s = d.toString) && !h(c = n(s, d)) || m(s = d.valueOf) && !h(c = n(s, d)) || a !== "string" && m(s = d.toString) && !h(c = n(s, d))) return c;
- throw f("Can't convert object to primitive value");
- };
- }, 86671: function(_, t, e) {
- var n = e(98945), m = e(90838), h = e(7792), f = e(23953), d = e(52313), a = m([].concat);
- _.exports = n("Reflect", "ownKeys") || function(s) {
- var c = h.f(d(s)), p = f.f;
- return p ? a(c, p(s)) : c;
- };
- }, 31116: function(_, t, e) {
- var n = e(37042);
- _.exports = n;
- }, 60265: function(_, t, e) {
- var n = e(8140), m = TypeError;
- _.exports = function(h) {
- if (n(h)) throw m("Can't call method on " + h);
- return h;
- };
- }, 44532: function(_, t, e) {
- var n = e(73252).f, m = e(14434), h = e(19517)("toStringTag");
- _.exports = function(f, d, a) {
- f && !a && (f = f.prototype), f && !m(f, h) && n(f, h, { configurable: !0, value: d });
- };
- }, 85475: function(_, t, e) {
- var n = e(95138), m = e(15257), h = n("keys");
- _.exports = function(f) {
- return h[f] || (h[f] = m(f));
- };
- }, 45752: function(_, t, e) {
- var n = e(37042), m = e(25379), h = "__core-js_shared__", f = n[h] || m(h, {});
- _.exports = f;
- }, 95138: function(_, t, e) {
- var n = e(70852), m = e(45752);
- (_.exports = function(h, f) {
- return m[h] || (m[h] = f !== void 0 ? f : {});
- })("versions", []).push({ version: "3.28.0", mode: n ? "pure" : "global", copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE", source: "https://github.com/zloirock/core-js" });
- }, 41397: function(_, t, e) {
- var n = e(90838), m = e(27876), h = e(63046), f = e(60265), d = n("".charAt), a = n("".charCodeAt), s = n("".slice), c = function(p) {
- return function(l, o) {
- var r, i, u = h(f(l)), v = m(o), y = u.length;
- return 0 > v || v >= y ? p ? "" : void 0 : 55296 > (r = a(u, v)) || r > 56319 || v + 1 === y || 56320 > (i = a(u, v + 1)) || i > 57343 ? p ? d(u, v) : r : p ? s(u, v, v + 2) : i - 56320 + (r - 55296 << 10) + 65536;
- };
- };
- _.exports = { codeAt: c(!1), charAt: c(!0) };
- }, 73800: function(_, t, e) {
- var n = e(65190), m = e(75834);
- _.exports = !!Object.getOwnPropertySymbols && !m(function() {
- var h = Symbol();
- return !String(h) || !(Object(h) instanceof Symbol) || !Symbol.sham && n && 41 > n;
- });
- }, 13829: function(_, t, e) {
- var n = e(9093), m = e(98945), h = e(19517), f = e(35065);
- _.exports = function() {
- var d = m("Symbol"), a = d && d.prototype, s = a && a.valueOf, c = h("toPrimitive");
- a && !a[c] && f(a, c, function(p) {
- return n(s, this);
- }, { arity: 1 });
- };
- }, 31948: function(_, t, e) {
- var n = e(73800);
- _.exports = n && !!Symbol.for && !!Symbol.keyFor;
- }, 10586: function(_, t, e) {
- var n = e(27876), m = Math.max, h = Math.min;
- _.exports = function(f, d) {
- var a = n(f);
- return 0 > a ? m(a + d, 0) : h(a, d);
- };
- }, 98651: function(_, t, e) {
- var n = e(25049), m = e(60265);
- _.exports = function(h) {
- return n(m(h));
- };
- }, 27876: function(_, t, e) {
- var n = e(43932);
- _.exports = function(m) {
- var h = +m;
- return h != h || h === 0 ? 0 : n(h);
- };
- }, 24431: function(_, t, e) {
- var n = e(27876), m = Math.min;
- _.exports = function(h) {
- return h > 0 ? m(n(h), 9007199254740991) : 0;
- };
- }, 68488: function(_, t, e) {
- var n = e(60265), m = Object;
- _.exports = function(h) {
- return m(n(h));
- };
- }, 11261: function(_, t, e) {
- var n = e(9093), m = e(8148), h = e(88253), f = e(20156), d = e(82472), a = e(19517), s = TypeError, c = a("toPrimitive");
- _.exports = function(p, l) {
- if (!m(p) || h(p)) return p;
- var o, r = f(p, c);
- if (r) {
- if (l === void 0 && (l = "default"), o = n(r, p, l), !m(o) || h(o)) return o;
- throw s("Can't convert object to primitive value");
- }
- return l === void 0 && (l = "number"), d(p, l);
- };
- }, 43836: function(_, t, e) {
- var n = e(11261), m = e(88253);
- _.exports = function(h) {
- var f = n(h, "string");
- return m(f) ? f : f + "";
- };
- }, 6424: function(_, t, e) {
- var n = {};
- n[e(19517)("toStringTag")] = "z", _.exports = String(n) === "[object z]";
- }, 63046: function(_, t, e) {
- var n = e(8652), m = String;
- _.exports = function(h) {
- if (n(h) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
- return m(h);
- };
- }, 98418: function(_) {
- var t = String;
- _.exports = function(e) {
- try {
- return t(e);
- } catch (n) {
- return "Object";
- }
- };
- }, 15257: function(_, t, e) {
- var n = e(90838), m = 0, h = Math.random(), f = n(1 .toString);
- _.exports = function(d) {
- return "Symbol(" + (d === void 0 ? "" : d) + ")_" + f(++m + h, 36);
- };
- }, 57982: function(_, t, e) {
- var n = e(73800);
- _.exports = n && !Symbol.sham && typeof Symbol.iterator == "symbol";
- }, 63142: function(_, t, e) {
- var n = e(13873), m = e(75834);
- _.exports = n && m(function() {
- return Object.defineProperty(function() {
- }, "prototype", { value: 42, writable: !1 }).prototype != 42;
- });
- }, 95473: function(_, t, e) {
- var n = e(37042), m = e(794), h = n.WeakMap;
- _.exports = m(h) && /native code/.test(String(h));
- }, 89633: function(_, t, e) {
- var n = e(31116), m = e(14434), h = e(96767), f = e(73252).f;
- _.exports = function(d) {
- var a = n.Symbol || (n.Symbol = {});
- m(a, d) || f(a, d, { value: h.f(d) });
- };
- }, 96767: function(_, t, e) {
- var n = e(19517);
- t.f = n;
- }, 19517: function(_, t, e) {
- var n = e(37042), m = e(95138), h = e(14434), f = e(15257), d = e(73800), a = e(57982), s = n.Symbol, c = m("wks"), p = a ? s.for || s : s && s.withoutSetter || f;
- _.exports = function(l) {
- return h(c, l) || (c[l] = d && h(s, l) ? s[l] : p("Symbol." + l)), c[l];
- };
- }, 54166: function(_, t, e) {
- var n = e(50791), m = e(75834), h = e(36222), f = e(8148), d = e(68488), a = e(15050), s = e(39505), c = e(89476), p = e(6429), l = e(63833), o = e(19517), r = e(65190), i = o("isConcatSpreadable"), u = r >= 51 || !m(function() {
- var y = [];
- return y[i] = !1, y.concat()[0] !== y;
- }), v = function(y) {
- if (!f(y)) return !1;
- var g = y[i];
- return g !== void 0 ? !!g : h(y);
- };
- n({ target: "Array", proto: !0, arity: 1, forced: !u || !l("concat") }, { concat: function(y) {
- var g, b, w, C, S, j = d(this), E = p(j, 0), x = 0;
- for (g = -1, w = arguments.length; w > g; g++) if (v(S = g === -1 ? j : arguments[g])) for (C = a(S), s(x + C), b = 0; C > b; b++, x++) b in S && c(E, x, S[b]);
- else s(x + 1), c(E, x++, S);
- return E.length = x, E;
- } });
- }, 22513: function(_, t, e) {
- var n = e(50791), m = e(56881).findIndex, h = e(15179), f = "findIndex", d = !0;
- f in [] && Array(1).findIndex(function() {
- d = !1;
- }), n({ target: "Array", proto: !0, forced: d }, { findIndex: function(a) {
- return m(this, a, arguments.length > 1 ? arguments[1] : void 0);
- } }), h(f);
- }, 70057: function(_, t, e) {
- var n = e(50791), m = e(92707);
- n({ target: "Array", stat: !0, forced: !e(7581)(function(h) {
- Array.from(h);
- }) }, { from: m });
- }, 67507: function(_, t, e) {
- var n = e(50791), m = e(98945), h = e(55101), f = e(9093), d = e(90838), a = e(75834), s = e(794), c = e(88253), p = e(54832), l = e(6693), o = e(73800), r = String, i = m("JSON", "stringify"), u = d(/./.exec), v = d("".charAt), y = d("".charCodeAt), g = d("".replace), b = d(1 .toString), w = /[\uD800-\uDFFF]/g, C = /^[\uD800-\uDBFF]$/, S = /^[\uDC00-\uDFFF]$/, j = !o || a(function() {
- var I = m("Symbol")();
- return i([I]) != "[null]" || i({ a: I }) != "{}" || i(Object(I)) != "{}";
- }), E = a(function() {
- return i("\uDF06\uD834") !== '"\\udf06\\ud834"' || i("\uDEAD") !== '"\\udead"';
- }), x = function(I, M) {
- var T = p(arguments), O = l(M);
- if (s(O) || I !== void 0 && !c(I)) return T[1] = function(L, N) {
- if (s(O) && (N = f(O, this, r(L), N)), !c(N)) return N;
- }, h(i, null, T);
- }, k = function(I, M, T) {
- var O = v(T, M - 1), L = v(T, M + 1);
- return u(C, I) && !u(S, L) || u(S, I) && !u(C, O) ? "\\u" + b(y(I, 0), 16) : I;
- };
- i && n({ target: "JSON", stat: !0, arity: 3, forced: j || E }, { stringify: function(I, M, T) {
- var O = p(arguments), L = h(j ? x : i, null, O);
- return E && typeof L == "string" ? g(L, w, k) : L;
- } });
- }, 90217: function(_, t, e) {
- var n = e(37042);
- e(44532)(n.JSON, "JSON", !0);
- }, 73477: function(_, t, e) {
- e(44532)(Math, "Math", !0);
- }, 30165: function(_, t, e) {
- var n = e(50791), m = e(73800), h = e(75834), f = e(23953), d = e(68488);
- n({ target: "Object", stat: !0, forced: !m || h(function() {
- f.f(1);
- }) }, { getOwnPropertySymbols: function(a) {
- var s = f.f;
- return s ? s(d(a)) : [];
- } });
- }, 32044: function(_, t, e) {
- var n = e(6424), m = e(35065), h = e(57555);
- n || m(Object.prototype, "toString", h, { unsafe: !0 });
- }, 93697: function(_, t, e) {
- var n = e(50791), m = e(37042), h = e(44532);
- n({ global: !0 }, { Reflect: {} }), h(m.Reflect, "Reflect", !0);
- }, 52867: function(_, t, e) {
- var n = e(41397).charAt, m = e(63046), h = e(56113), f = e(13759), d = e(17427), a = "String Iterator", s = h.set, c = h.getterFor(a);
- f(String, "String", function(p) {
- s(this, { type: a, string: m(p), index: 0 });
- }, function() {
- var p, l = c(this), o = l.string, r = l.index;
- return o.length > r ? (p = n(o, r), l.index += p.length, d(p, !1)) : d(void 0, !0);
- });
- }, 28424: function(_, t, e) {
- e(89633)("asyncIterator");
- }, 9656: function(_, t, e) {
- var n = e(50791), m = e(37042), h = e(9093), f = e(90838), d = e(70852), a = e(13873), s = e(73800), c = e(75834), p = e(14434), l = e(54671), o = e(52313), r = e(98651), i = e(43836), u = e(63046), v = e(32500), y = e(93503), g = e(3385), b = e(7792), w = e(53305), C = e(23953), S = e(36999), j = e(73252), E = e(5770), x = e(33244), k = e(35065), I = e(97548), M = e(95138), T = e(85475), O = e(48889), L = e(15257), N = e(19517), H = e(96767), q = e(89633), F = e(13829), U = e(44532), Y = e(56113), P = e(56881).forEach, D = T("hidden"), z = "Symbol", R = Y.set, A = Y.getterFor(z), B = Object.prototype, X = m.Symbol, W = X && X.prototype, Q = m.TypeError, ne = m.QObject, ce = S.f, re = j.f, he = w.f, ae = x.f, be = f([].push), se = M("symbols"), de = M("op-symbols"), Me = M("wks"), me = !ne || !ne.prototype || !ne.prototype.findChild, ve = a && c(function() {
- return y(re({}, "a", { get: function() {
- return re(this, "a", { value: 7 }).a;
- } })).a != 7;
- }) ? function(V, G, K) {
- var J = ce(B, G);
- J && delete B[G], re(V, G, K), J && V !== B && re(B, G, J);
- } : re, ge = function(V, G) {
- var K = se[V] = y(W);
- return R(K, { type: z, tag: V, description: G }), a || (K.description = G), K;
- }, fe = function(V, G, K) {
- V === B && fe(de, G, K), o(V);
- var J = i(G);
- return o(K), p(se, J) ? (K.enumerable ? (p(V, D) && V[D][J] && (V[D][J] = !1), K = y(K, { enumerable: v(0, !1) })) : (p(V, D) || re(V, D, v(1, {})), V[D][J] = !0), ve(V, J, K)) : re(V, J, K);
- }, ye = function(V, G) {
- o(V);
- var K = r(G), J = g(K).concat(Ce(K));
- return P(J, function(oe) {
- a && !h(_e, K, oe) || fe(V, oe, K[oe]);
- }), V;
- }, _e = function(V) {
- var G = i(V), K = h(ae, this, G);
- return !(this === B && p(se, G) && !p(de, G)) && (!(K || !p(this, G) || !p(se, G) || p(this, D) && this[D][G]) || K);
- }, we = function(V, G) {
- var K = r(V), J = i(G);
- if (K !== B || !p(se, J) || p(de, J)) {
- var oe = ce(K, J);
- return !oe || !p(se, J) || p(K, D) && K[D][J] || (oe.enumerable = !0), oe;
- }
- }, Se = function(V) {
- var G = he(r(V)), K = [];
- return P(G, function(J) {
- p(se, J) || p(O, J) || be(K, J);
- }), K;
- }, Ce = function(V) {
- var G = V === B, K = he(G ? de : r(V)), J = [];
- return P(K, function(oe) {
- !p(se, oe) || G && !p(B, oe) || be(J, se[oe]);
- }), J;
- };
- s || (X = function() {
- if (l(W, this)) throw Q("Symbol is not a constructor");
- var V = arguments.length && arguments[0] !== void 0 ? u(arguments[0]) : void 0, G = L(V), K = function(J) {
- this === B && h(K, de, J), p(this, D) && p(this[D], G) && (this[D][G] = !1), ve(this, G, v(1, J));
- };
- return a && me && ve(B, G, { configurable: !0, set: K }), ge(G, V);
- }, k(W = X.prototype, "toString", function() {
- return A(this).tag;
- }), k(X, "withoutSetter", function(V) {
- return ge(L(V), V);
- }), x.f = _e, j.f = fe, E.f = ye, S.f = we, b.f = w.f = Se, C.f = Ce, H.f = function(V) {
- return ge(N(V), V);
- }, a && (I(W, "description", { configurable: !0, get: function() {
- return A(this).description;
- } }), d || k(B, "propertyIsEnumerable", _e, { unsafe: !0 }))), n({ global: !0, constructor: !0, wrap: !0, forced: !s, sham: !s }, { Symbol: X }), P(g(Me), function(V) {
- q(V);
- }), n({ target: z, stat: !0, forced: !s }, { useSetter: function() {
- me = !0;
- }, useSimple: function() {
- me = !1;
- } }), n({ target: "Object", stat: !0, forced: !s, sham: !a }, { create: function(V, G) {
- return G === void 0 ? y(V) : ye(y(V), G);
- }, defineProperty: fe, defineProperties: ye, getOwnPropertyDescriptor: we }), n({ target: "Object", stat: !0, forced: !s }, { getOwnPropertyNames: Se }), F(), U(X, z), O[D] = !0;
- }, 64514: function(_, t, e) {
- var n = e(50791), m = e(13873), h = e(37042), f = e(90838), d = e(14434), a = e(794), s = e(54671), c = e(63046), p = e(97548), l = e(58392), o = h.Symbol, r = o && o.prototype;
- if (m && a(o) && (!("description" in r) || o().description !== void 0)) {
- var i = {}, u = function() {
- var S = 1 > arguments.length || arguments[0] === void 0 ? void 0 : c(arguments[0]), j = s(r, this) ? new o(S) : S === void 0 ? o() : o(S);
- return S === "" && (i[j] = !0), j;
- };
- l(u, o), u.prototype = r, r.constructor = u;
- var v = String(o("test")) == "Symbol(test)", y = f(r.valueOf), g = f(r.toString), b = /^Symbol\((.*)\)[^)]+$/, w = f("".replace), C = f("".slice);
- p(r, "description", { configurable: !0, get: function() {
- var S = y(this);
- if (d(i, S)) return "";
- var j = g(S), E = v ? C(j, 7, -1) : w(j, b, "$1");
- return E === "" ? void 0 : E;
- } }), n({ global: !0, constructor: !0, forced: !0 }, { Symbol: u });
- }
- }, 56202: function(_, t, e) {
- var n = e(50791), m = e(98945), h = e(14434), f = e(63046), d = e(95138), a = e(31948), s = d("string-to-symbol-registry"), c = d("symbol-to-string-registry");
- n({ target: "Symbol", stat: !0, forced: !a }, { for: function(p) {
- var l = f(p);
- if (h(s, l)) return s[l];
- var o = m("Symbol")(l);
- return s[l] = o, c[o] = l, o;
- } });
- }, 30733: function(_, t, e) {
- e(89633)("hasInstance");
- }, 40327: function(_, t, e) {
- e(89633)("isConcatSpreadable");
- }, 53639: function(_, t, e) {
- e(89633)("iterator");
- }, 95661: function(_, t, e) {
- e(9656), e(56202), e(71940), e(67507), e(30165);
- }, 71940: function(_, t, e) {
- var n = e(50791), m = e(14434), h = e(88253), f = e(98418), d = e(95138), a = e(31948), s = d("symbol-to-string-registry");
- n({ target: "Symbol", stat: !0, forced: !a }, { keyFor: function(c) {
- if (!h(c)) throw TypeError(f(c) + " is not a symbol");
- if (m(s, c)) return s[c];
- } });
- }, 7290: function(_, t, e) {
- e(89633)("matchAll");
- }, 6147: function(_, t, e) {
- e(89633)("match");
- }, 95122: function(_, t, e) {
- e(89633)("replace");
- }, 61322: function(_, t, e) {
- e(89633)("search");
- }, 39605: function(_, t, e) {
- e(89633)("species");
- }, 49341: function(_, t, e) {
- e(89633)("split");
- }, 28809: function(_, t, e) {
- var n = e(89633), m = e(13829);
- n("toPrimitive"), m();
- }, 82658: function(_, t, e) {
- var n = e(98945), m = e(89633), h = e(44532);
- m("toStringTag"), h(n("Symbol"), "Symbol");
- }, 43967: function(_, t, e) {
- e(89633)("unscopables");
- }, 690: function(_, t, e) {
- _.exports = e(26002).polyfill();
- }, 26002: function(_, t, e) {
- _.exports = function() {
- function n(P) {
- return typeof P == "function";
- }
- var m = Array.isArray ? Array.isArray : function(P) {
- return Object.prototype.toString.call(P) === "[object Array]";
- }, h = 0, f = void 0, d = void 0, a = function(P, D) {
- i[h] = P, i[h + 1] = D, (h += 2) === 2 && (d ? d(u) : w());
- }, s = typeof window != "undefined" ? window : void 0, c = s || {}, p = c.MutationObserver || c.WebKitMutationObserver, l = typeof self == "undefined" && typeof process != "undefined" && {}.toString.call(process) === "[object process]", o = typeof Uint8ClampedArray != "undefined" && typeof importScripts != "undefined" && typeof MessageChannel != "undefined";
- function r() {
- var P = setTimeout;
- return function() {
- return P(u, 1);
- };
- }
- var i = new Array(1e3);
- function u() {
- for (var P = 0; h > P; P += 2) (0, i[P])(i[P + 1]), i[P] = void 0, i[P + 1] = void 0;
- h = 0;
- }
- var v, y, g, b, w = void 0;
- function C(P, D) {
- var z = this, R = new this.constructor(E);
- R[j] === void 0 && F(R);
- var A = z._state;
- if (A) {
- var B = arguments[A - 1];
- a(function() {
- return H(A, R, B, z._result);
- });
- } else L(z, R, P, D);
- return R;
- }
- function S(P) {
- if (P && typeof P == "object" && P.constructor === this) return P;
- var D = new this(E);
- return I(D, P), D;
- }
- w = l ? function() {
- return process.nextTick(u);
- } : p ? (y = 0, g = new p(u), b = document.createTextNode(""), g.observe(b, { characterData: !0 }), function() {
- b.data = y = ++y % 2;
- }) : o ? ((v = new MessageChannel()).port1.onmessage = u, function() {
- return v.port2.postMessage(0);
- }) : s === void 0 ? function() {
- try {
- var P = Function("return this")().require("vertx");
- return (f = P.runOnLoop || P.runOnContext) !== void 0 ? function() {
- f(u);
- } : r();
- } catch (D) {
- return r();
- }
- }() : r();
- var j = Math.random().toString(36).substring(2);
- function E() {
- }
- var x = void 0;
- function k(P, D, z) {
- D.constructor === P.constructor && z === C && D.constructor.resolve === S ? function(R, A) {
- A._state === 1 ? T(R, A._result) : A._state === 2 ? O(R, A._result) : L(A, void 0, function(B) {
- return I(R, B);
- }, function(B) {
- return O(R, B);
- });
- }(P, D) : z === void 0 ? T(P, D) : n(z) ? function(R, A, B) {
- a(function(X) {
- var W = !1, Q = function(ne, ce, re, he) {
- try {
- ne.call(ce, function(ae) {
- W || (W = !0, A !== ae ? I(X, ae) : T(X, ae));
- }, function(ae) {
- W || (W = !0, O(X, ae));
- });
- } catch (ae) {
- return ae;
- }
- }(B, A);
- !W && Q && (W = !0, O(X, Q));
- }, R);
- }(P, D, z) : T(P, D);
- }
- function I(P, D) {
- if (P === D) O(P, new TypeError("You cannot resolve a promise with itself"));
- else if (A = typeof (R = D), R === null || A !== "object" && A !== "function") T(P, D);
- else {
- var z = void 0;
- try {
- z = D.then;
- } catch (B) {
- return void O(P, B);
- }
- k(P, D, z);
- }
- var R, A;
- }
- function M(P) {
- P._onerror && P._onerror(P._result), N(P);
- }
- function T(P, D) {
- P._state === x && (P._result = D, P._state = 1, P._subscribers.length !== 0 && a(N, P));
- }
- function O(P, D) {
- P._state === x && (P._state = 2, P._result = D, a(M, P));
- }
- function L(P, D, z, R) {
- var A = P._subscribers, B = A.length;
- P._onerror = null, A[B] = D, A[B + 1] = z, A[B + 2] = R, B === 0 && P._state && a(N, P);
- }
- function N(P) {
- var D = P._subscribers, z = P._state;
- if (D.length !== 0) {
- for (var R = void 0, A = void 0, B = P._result, X = 0; D.length > X; X += 3) A = D[X + z], (R = D[X]) ? H(z, R, A, B) : A(B);
- P._subscribers.length = 0;
- }
- }
- function H(P, D, z, R) {
- var A = n(z), B = void 0, X = void 0, W = !0;
- if (A) {
- try {
- B = z(R);
- } catch (Q) {
- W = !1, X = Q;
- }
- if (D === B) return void O(D, new TypeError("A promises callback cannot return that same promise."));
- } else B = R;
- D._state !== x || (A && W ? I(D, B) : W === !1 ? O(D, X) : P === 1 ? T(D, B) : P === 2 && O(D, B));
- }
- var q = 0;
- function F(P) {
- P[j] = q++, P._state = void 0, P._result = void 0, P._subscribers = [];
- }
- var U = function() {
- function P(D, z) {
- this._instanceConstructor = D, this.promise = new D(E), this.promise[j] || F(this.promise), m(z) ? (this.length = z.length, this._remaining = z.length, this._result = new Array(this.length), this.length === 0 ? T(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(z), this._remaining === 0 && T(this.promise, this._result))) : O(this.promise, new Error("Array Methods must be provided an Array"));
- }
- return P.prototype._enumerate = function(D) {
- for (var z = 0; this._state === x && D.length > z; z++) this._eachEntry(D[z], z);
- }, P.prototype._eachEntry = function(D, z) {
- var R = this._instanceConstructor, A = R.resolve;
- if (A === S) {
- var B = void 0, X = void 0, W = !1;
- try {
- B = D.then;
- } catch (ne) {
- W = !0, X = ne;
- }
- if (B === C && D._state !== x) this._settledAt(D._state, z, D._result);
- else if (typeof B != "function") this._remaining--, this._result[z] = D;
- else if (R === Y) {
- var Q = new R(E);
- W ? O(Q, X) : k(Q, D, B), this._willSettleAt(Q, z);
- } else this._willSettleAt(new R(function(ne) {
- return ne(D);
- }), z);
- } else this._willSettleAt(A(D), z);
- }, P.prototype._settledAt = function(D, z, R) {
- var A = this.promise;
- A._state === x && (this._remaining--, D === 2 ? O(A, R) : this._result[z] = R), this._remaining === 0 && T(A, this._result);
- }, P.prototype._willSettleAt = function(D, z) {
- var R = this;
- L(D, void 0, function(A) {
- return R._settledAt(1, z, A);
- }, function(A) {
- return R._settledAt(2, z, A);
- });
- }, P;
- }(), Y = function() {
- function P(D) {
- this[j] = q++, this._result = this._state = void 0, this._subscribers = [], E !== D && (typeof D != "function" && function() {
- throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
- }(), this instanceof P ? function(z, R) {
- try {
- R(function(A) {
- I(z, A);
- }, function(A) {
- O(z, A);
- });
- } catch (A) {
- O(z, A);
- }
- }(this, D) : function() {
- throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
- }());
- }
- return P.prototype.catch = function(D) {
- return this.then(null, D);
- }, P.prototype.finally = function(D) {
- var z = this, R = z.constructor;
- return n(D) ? z.then(function(A) {
- return R.resolve(D()).then(function() {
- return A;
- });
- }, function(A) {
- return R.resolve(D()).then(function() {
- throw A;
- });
- }) : z.then(D, D);
- }, P;
- }();
- return Y.prototype.then = C, Y.all = function(P) {
- return new U(this, P).promise;
- }, Y.race = function(P) {
- var D = this;
- return m(P) ? new D(function(z, R) {
- for (var A = P.length, B = 0; A > B; B++) D.resolve(P[B]).then(z, R);
- }) : new D(function(z, R) {
- return R(new TypeError("You must pass an array to race."));
- });
- }, Y.resolve = S, Y.reject = function(P) {
- var D = new this(E);
- return O(D, P), D;
- }, Y._setScheduler = function(P) {
- d = P;
- }, Y._setAsap = function(P) {
- a = P;
- }, Y._asap = a, Y.polyfill = function() {
- var P = void 0;
- if (e.g !== void 0) P = e.g;
- else if (typeof self != "undefined") P = self;
- else try {
- P = Function("return this")();
- } catch (R) {
- throw new Error("polyfill failed because global object is unavailable in this environment");
- }
- var D = P.Promise;
- if (D) {
- var z = null;
- try {
- z = Object.prototype.toString.call(D.resolve());
- } catch (R) {
- }
- if (z === "[object Promise]" && !D.cast) return;
- }
- P.Promise = Y;
- }, Y.Promise = Y, Y;
- }();
- }, 20255: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.__classPrivateFieldIn = t.__classPrivateFieldSet = t.__classPrivateFieldGet = t.__importDefault = t.__importStar = t.__makeTemplateObject = t.__asyncValues = t.__asyncDelegator = t.__asyncGenerator = t.__await = t.__spreadArray = t.__spreadArrays = t.__spread = t.__read = t.__values = t.__exportStar = t.__createBinding = t.__generator = t.__awaiter = t.__metadata = t.__setFunctionName = t.__propKey = t.__runInitializers = t.__esDecorate = t.__param = t.__decorate = t.__rest = t.__assign = t.__extends = void 0;
- var e = function(d, a) {
- return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(s, c) {
- s.__proto__ = c;
- } || function(s, c) {
- for (var p in c) Object.prototype.hasOwnProperty.call(c, p) && (s[p] = c[p]);
- }, e(d, a);
- };
- function n(d) {
- var a = typeof Symbol == "function" && Symbol.iterator, s = a && d[a], c = 0;
- if (s) return s.call(d);
- if (d && typeof d.length == "number") return { next: function() {
- return d && c >= d.length && (d = void 0), { value: d && d[c++], done: !d };
- } };
- throw new TypeError(a ? "Object is not iterable." : "Symbol.iterator is not defined.");
- }
- function m(d, a) {
- var s = typeof Symbol == "function" && d[Symbol.iterator];
- if (!s) return d;
- var c, p, l = s.call(d), o = [];
- try {
- for (; (a === void 0 || a-- > 0) && !(c = l.next()).done; ) o.push(c.value);
- } catch (r) {
- p = { error: r };
- } finally {
- try {
- c && !c.done && (s = l.return) && s.call(l);
- } finally {
- if (p) throw p.error;
- }
- }
- return o;
- }
- function h(d) {
- return this instanceof h ? (this.v = d, this) : new h(d);
- }
- t.__extends = function(d, a) {
- if (typeof a != "function" && a !== null) throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
- function s() {
- this.constructor = d;
- }
- e(d, a), d.prototype = a === null ? Object.create(a) : (s.prototype = a.prototype, new s());
- }, t.__assign = function() {
- return t.__assign = Object.assign || function(d) {
- for (var a, s = 1, c = arguments.length; c > s; s++) for (var p in a = arguments[s]) Object.prototype.hasOwnProperty.call(a, p) && (d[p] = a[p]);
- return d;
- }, t.__assign.apply(this, arguments);
- }, t.__rest = function(d, a) {
- var s = {};
- for (var c in d) Object.prototype.hasOwnProperty.call(d, c) && 0 > a.indexOf(c) && (s[c] = d[c]);
- if (d != null && typeof Object.getOwnPropertySymbols == "function") {
- var p = 0;
- for (c = Object.getOwnPropertySymbols(d); c.length > p; p++) 0 > a.indexOf(c[p]) && Object.prototype.propertyIsEnumerable.call(d, c[p]) && (s[c[p]] = d[c[p]]);
- }
- return s;
- }, t.__decorate = function(d, a, s, c) {
- var p, l = arguments.length, o = 3 > l ? a : c === null ? c = Object.getOwnPropertyDescriptor(a, s) : c;
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(d, a, s, c);
- else for (var r = d.length - 1; r >= 0; r--) (p = d[r]) && (o = (3 > l ? p(o) : l > 3 ? p(a, s, o) : p(a, s)) || o);
- return l > 3 && o && Object.defineProperty(a, s, o), o;
- }, t.__param = function(d, a) {
- return function(s, c) {
- a(s, c, d);
- };
- }, t.__esDecorate = function(d, a, s, c, p, l) {
- function o(j) {
- if (j !== void 0 && typeof j != "function") throw new TypeError("Function expected");
- return j;
- }
- for (var r, i = c.kind, u = i === "getter" ? "get" : i === "setter" ? "set" : "value", v = !a && d ? c.static ? d : d.prototype : null, y = a || (v ? Object.getOwnPropertyDescriptor(v, c.name) : {}), g = !1, b = s.length - 1; b >= 0; b--) {
- var w = {};
- for (var C in c) w[C] = C === "access" ? {} : c[C];
- for (var C in c.access) w.access[C] = c.access[C];
- w.addInitializer = function(j) {
- if (g) throw new TypeError("Cannot add initializers after decoration has completed");
- l.push(o(j || null));
- };
- var S = (0, s[b])(i === "accessor" ? { get: y.get, set: y.set } : y[u], w);
- if (i === "accessor") {
- if (S === void 0) continue;
- if (S === null || typeof S != "object") throw new TypeError("Object expected");
- (r = o(S.get)) && (y.get = r), (r = o(S.set)) && (y.set = r), (r = o(S.init)) && p.push(r);
- } else (r = o(S)) && (i === "field" ? p.push(r) : y[u] = r);
- }
- v && Object.defineProperty(v, c.name, y), g = !0;
- }, t.__runInitializers = function(d, a, s) {
- for (var c = arguments.length > 2, p = 0; a.length > p; p++) s = c ? a[p].call(d, s) : a[p].call(d);
- return c ? s : void 0;
- }, t.__propKey = function(d) {
- return typeof d == "symbol" ? d : "".concat(d);
- }, t.__setFunctionName = function(d, a, s) {
- return typeof a == "symbol" && (a = a.description ? "[".concat(a.description, "]") : ""), Object.defineProperty(d, "name", { configurable: !0, value: s ? "".concat(s, " ", a) : a });
- }, t.__metadata = function(d, a) {
- if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(d, a);
- }, t.__awaiter = function(d, a, s, c) {
- return new (s || (s = Promise))(function(p, l) {
- function o(u) {
- try {
- i(c.next(u));
- } catch (v) {
- l(v);
- }
- }
- function r(u) {
- try {
- i(c.throw(u));
- } catch (v) {
- l(v);
- }
- }
- function i(u) {
- var v;
- u.done ? p(u.value) : (v = u.value, v instanceof s ? v : new s(function(y) {
- y(v);
- })).then(o, r);
- }
- i((c = c.apply(d, a || [])).next());
- });
- }, t.__generator = function(d, a) {
- var s, c, p, l, o = { label: 0, sent: function() {
- if (1 & p[0]) throw p[1];
- return p[1];
- }, trys: [], ops: [] };
- return l = { next: r(0), throw: r(1), return: r(2) }, typeof Symbol == "function" && (l[Symbol.iterator] = function() {
- return this;
- }), l;
- function r(i) {
- return function(u) {
- return function(v) {
- if (s) throw new TypeError("Generator is already executing.");
- for (; l && (l = 0, v[0] && (o = 0)), o; ) try {
- if (s = 1, c && (p = 2 & v[0] ? c.return : v[0] ? c.throw || ((p = c.return) && p.call(c), 0) : c.next) && !(p = p.call(c, v[1])).done) return p;
- switch (c = 0, p && (v = [2 & v[0], p.value]), v[0]) {
- case 0:
- case 1:
- p = v;
- break;
- case 4:
- return o.label++, { value: v[1], done: !1 };
- case 5:
- o.label++, c = v[1], v = [0];
- continue;
- case 7:
- v = o.ops.pop(), o.trys.pop();
- continue;
- default:
- if (!((p = (p = o.trys).length > 0 && p[p.length - 1]) || v[0] !== 6 && v[0] !== 2)) {
- o = 0;
- continue;
- }
- if (v[0] === 3 && (!p || v[1] > p[0] && p[3] > v[1])) {
- o.label = v[1];
- break;
- }
- if (v[0] === 6 && p[1] > o.label) {
- o.label = p[1], p = v;
- break;
- }
- if (p && p[2] > o.label) {
- o.label = p[2], o.ops.push(v);
- break;
- }
- p[2] && o.ops.pop(), o.trys.pop();
- continue;
- }
- v = a.call(d, o);
- } catch (y) {
- v = [6, y], c = 0;
- } finally {
- s = p = 0;
- }
- if (5 & v[0]) throw v[1];
- return { value: v[0] ? v[1] : void 0, done: !0 };
- }([i, u]);
- };
- }
- }, t.__createBinding = Object.create ? function(d, a, s, c) {
- c === void 0 && (c = s);
- var p = Object.getOwnPropertyDescriptor(a, s);
- p && !("get" in p ? !a.__esModule : p.writable || p.configurable) || (p = { enumerable: !0, get: function() {
- return a[s];
- } }), Object.defineProperty(d, c, p);
- } : function(d, a, s, c) {
- c === void 0 && (c = s), d[c] = a[s];
- }, t.__exportStar = function(d, a) {
- for (var s in d) s === "default" || Object.prototype.hasOwnProperty.call(a, s) || (0, t.__createBinding)(a, d, s);
- }, t.__values = n, t.__read = m, t.__spread = function() {
- for (var d = [], a = 0; arguments.length > a; a++) d = d.concat(m(arguments[a]));
- return d;
- }, t.__spreadArrays = function() {
- for (var d = 0, a = 0, s = arguments.length; s > a; a++) d += arguments[a].length;
- var c = Array(d), p = 0;
- for (a = 0; s > a; a++) for (var l = arguments[a], o = 0, r = l.length; r > o; o++, p++) c[p] = l[o];
- return c;
- }, t.__spreadArray = function(d, a, s) {
- if (s || arguments.length === 2) for (var c, p = 0, l = a.length; l > p; p++) !c && p in a || (c || (c = Array.prototype.slice.call(a, 0, p)), c[p] = a[p]);
- return d.concat(c || Array.prototype.slice.call(a));
- }, t.__await = h, t.__asyncGenerator = function(d, a, s) {
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
- var c, p = s.apply(d, a || []), l = [];
- return c = {}, o("next"), o("throw"), o("return"), c[Symbol.asyncIterator] = function() {
- return this;
- }, c;
- function o(y) {
- p[y] && (c[y] = function(g) {
- return new Promise(function(b, w) {
- l.push([y, g, b, w]) > 1 || r(y, g);
- });
- });
- }
- function r(y, g) {
- try {
- (b = p[y](g)).value instanceof h ? Promise.resolve(b.value.v).then(i, u) : v(l[0][2], b);
- } catch (w) {
- v(l[0][3], w);
- }
- var b;
- }
- function i(y) {
- r("next", y);
- }
- function u(y) {
- r("throw", y);
- }
- function v(y, g) {
- y(g), l.shift(), l.length && r(l[0][0], l[0][1]);
- }
- }, t.__asyncDelegator = function(d) {
- var a, s;
- return a = {}, c("next"), c("throw", function(p) {
- throw p;
- }), c("return"), a[Symbol.iterator] = function() {
- return this;
- }, a;
- function c(p, l) {
- a[p] = d[p] ? function(o) {
- return (s = !s) ? { value: h(d[p](o)), done: !1 } : l ? l(o) : o;
- } : l;
- }
- }, t.__asyncValues = function(d) {
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
- var a, s = d[Symbol.asyncIterator];
- return s ? s.call(d) : (d = n(d), a = {}, c("next"), c("throw"), c("return"), a[Symbol.asyncIterator] = function() {
- return this;
- }, a);
- function c(p) {
- a[p] = d[p] && function(l) {
- return new Promise(function(o, r) {
- (function(i, u, v, y) {
- Promise.resolve(y).then(function(g) {
- i({ value: g, done: v });
- }, u);
- })(o, r, (l = d[p](l)).done, l.value);
- });
- };
- }
- }, t.__makeTemplateObject = function(d, a) {
- return Object.defineProperty ? Object.defineProperty(d, "raw", { value: a }) : d.raw = a, d;
- };
- var f = Object.create ? function(d, a) {
- Object.defineProperty(d, "default", { enumerable: !0, value: a });
- } : function(d, a) {
- d.default = a;
- };
- t.__importStar = function(d) {
- if (d && d.__esModule) return d;
- var a = {};
- if (d != null) for (var s in d) s !== "default" && Object.prototype.hasOwnProperty.call(d, s) && (0, t.__createBinding)(a, d, s);
- return f(a, d), a;
- }, t.__importDefault = function(d) {
- return d && d.__esModule ? d : { default: d };
- }, t.__classPrivateFieldGet = function(d, a, s, c) {
- if (s === "a" && !c) throw new TypeError("Private accessor was defined without a getter");
- if (typeof a == "function" ? d !== a || !c : !a.has(d)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
- return s === "m" ? c : s === "a" ? c.call(d) : c ? c.value : a.get(d);
- }, t.__classPrivateFieldSet = function(d, a, s, c, p) {
- if (c === "m") throw new TypeError("Private method is not writable");
- if (c === "a" && !p) throw new TypeError("Private accessor was defined without a setter");
- if (typeof a == "function" ? d !== a || !p : !a.has(d)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
- return c === "a" ? p.call(d, s) : p ? p.value = s : a.set(d, s), s;
- }, t.__classPrivateFieldIn = function(d, a) {
- if (a === null || typeof a != "object" && typeof a != "function") throw new TypeError("Cannot use 'in' operator on non-object");
- return typeof d == "function" ? a === d : d.has(a);
- };
- }, 93166: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Config = void 0;
- var n = e(86893), m = e(86893), h = function() {
- function f() {
- this.defaultTimeout = 100, this.namespace = "", this.safeMode = !1, this.width = "auto", this.height = "auto", this.safePluginsList = ["about", "enter", "backspace", "size"], this.license = "", this.preset = "custom", this.presets = { inline: { inline: !0, toolbar: !1, toolbarInline: !0, toolbarInlineForSelection: !0, showXPathInStatusbar: !1, showCharsCounter: !1, showWordsCounter: !1, showPlaceholder: !1 } }, this.ownerDocument = typeof document != "undefined" ? document : null, this.ownerWindow = typeof window != "undefined" ? window : null, this.shadowRoot = null, this.zIndex = 0, this.readonly = !1, this.disabled = !1, this.activeButtonsInReadOnly = ["source", "fullsize", "print", "about", "dots", "selectall"], this.allowCommandsInReadOnly = ["selectall", "preview", "print"], this.toolbarButtonSize = "middle", this.allowTabNavigation = !1, this.inline = !1, this.theme = "default", this.saveModeInStorage = !1, this.editorClassName = !1, this.editorCssClass = !1, this.className = !1, this.style = !1, this.containerStyle = !1, this.styleValues = {}, this.triggerChangeEvent = !0, this.direction = "", this.language = "auto", this.debugLanguage = !1, this.i18n = !1, this.tabIndex = -1, this.toolbar = !0, this.statusbar = !0, this.showTooltip = !0, this.showTooltipDelay = 1e3, this.useNativeTooltip = !1, this.defaultActionOnPaste = m.INSERT_AS_HTML, this.enter = n.PARAGRAPH, this.iframe = !1, this.editHTMLDocumentMode = !1, this.enterBlock = this.enter !== "br" ? this.enter : n.PARAGRAPH, this.defaultMode = n.MODE_WYSIWYG, this.useSplitMode = !1, this.colors = { greyscale: ["#000000", "#434343", "#666666", "#999999", "#B7B7B7", "#CCCCCC", "#D9D9D9", "#EFEFEF", "#F3F3F3", "#FFFFFF"], palette: ["#980000", "#FF0000", "#FF9900", "#FFFF00", "#00F0F0", "#00FFFF", "#4A86E8", "#0000FF", "#9900FF", "#FF00FF"], full: ["#E6B8AF", "#F4CCCC", "#FCE5CD", "#FFF2CC", "#D9EAD3", "#D0E0E3", "#C9DAF8", "#CFE2F3", "#D9D2E9", "#EAD1DC", "#DD7E6B", "#EA9999", "#F9CB9C", "#FFE599", "#B6D7A8", "#A2C4C9", "#A4C2F4", "#9FC5E8", "#B4A7D6", "#D5A6BD", "#CC4125", "#E06666", "#F6B26B", "#FFD966", "#93C47D", "#76A5AF", "#6D9EEB", "#6FA8DC", "#8E7CC3", "#C27BA0", "#A61C00", "#CC0000", "#E69138", "#F1C232", "#6AA84F", "#45818E", "#3C78D8", "#3D85C6", "#674EA7", "#A64D79", "#85200C", "#990000", "#B45F06", "#BF9000", "#38761D", "#134F5C", "#1155CC", "#0B5394", "#351C75", "#733554", "#5B0F00", "#660000", "#783F04", "#7F6000", "#274E13", "#0C343D", "#1C4587", "#073763", "#20124D", "#4C1130"] }, this.colorPickerDefaultTab = "background", this.imageDefaultWidth = 300, this.removeButtons = [], this.disablePlugins = [], this.extraPlugins = [], this.extraButtons = [], this.extraIcons = {}, this.createAttributes = { table: { style: "border-collapse:collapse;width: 100%;" } }, this.sizeLG = 900, this.sizeMD = 700, this.sizeSM = 400, this.buttons = [{ group: "font-style", buttons: [] }, { group: "list", buttons: [] }, { group: "font", buttons: [] }, "---", { group: "script", buttons: [] }, { group: "media", buttons: [] }, `
- `, { group: "state", buttons: [] }, { group: "clipboard", buttons: [] }, { group: "insert", buttons: [] }, { group: "indent", buttons: [] }, { group: "color", buttons: [] }, { group: "form", buttons: [] }, "---", { group: "history", buttons: [] }, { group: "search", buttons: [] }, { group: "source", buttons: [] }, { group: "other", buttons: [] }, { group: "info", buttons: [] }], this.buttonsMD = ["bold", "italic", "|", "ul", "ol", "eraser", "|", "font", "fontsize", "---", "image", "table", "|", "link", `
- `, "brush", "paragraph", "align", "|", "hr", "copyformat", "fullsize", "---", "undo", "redo", "|", "dots"], this.buttonsSM = ["bold", "italic", "|", "ul", "ol", "eraser", "|", "fontsize", "brush", "paragraph", "---", "image", "table", `
- `, "link", "|", "align", "|", "undo", "redo", "|", "copyformat", "fullsize", "---", "dots"], this.buttonsXS = ["bold", "brush", "paragraph", "eraser", "|", "fontsize", "---", "image", `
- `, "align", "undo", "redo", "|", "link", "table", "---", "dots"], this.events = {}, this.textIcons = !1, this.showBrowserColorPicker = !0;
- }
- return Object.defineProperty(f, "defaultOptions", { get: function() {
- return f.__defaultOptions || (f.__defaultOptions = new f()), f.__defaultOptions;
- }, enumerable: !1, configurable: !0 }), f;
- }();
- t.Config = h, h.prototype.controls = {};
- }, 77536: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Async = void 0;
- var n = e(20255), m = e(4696), h = e(42096), f = e(79736), d = e(26335), a = e(24421), s = e(61817), c = (e(52378), function() {
- function p() {
- var l, o, r, i, u = this;
- this.timers = /* @__PURE__ */ new Map(), this.__callbacks = /* @__PURE__ */ new Map(), this.promisesRejections = /* @__PURE__ */ new Set(), this.requestsIdle = /* @__PURE__ */ new Set(), this.requestsRaf = /* @__PURE__ */ new Set(), this.requestIdleCallbackNative = (o = (l = window.requestIdleCallback) === null || l === void 0 ? void 0 : l.bind(window)) !== null && o !== void 0 ? o : function(v, y) {
- var g, b = Date.now();
- return u.setTimeout(function() {
- v({ didTimeout: !1, timeRemaining: function() {
- return Math.max(0, 50 - (Date.now() - b));
- } });
- }, (g = y == null ? void 0 : y.timeout) !== null && g !== void 0 ? g : 1);
- }, this.cancelIdleCallbackNative = (i = (r = window.cancelIdleCallback) === null || r === void 0 ? void 0 : r.bind(window)) !== null && i !== void 0 ? i : function(v) {
- u.clearTimeout(v);
- }, this.isDestructed = !1;
- }
- return p.prototype.delay = function(l) {
- var o = this;
- return this.promise(function(r) {
- return o.setTimeout(r, l);
- });
- }, p.prototype.setTimeout = function(l, o) {
- for (var r = [], i = 2; arguments.length > i; i++) r[i - 2] = arguments[i];
- if (this.isDestructed) return 0;
- var u = {};
- (0, s.isNumber)(o) || (o = (u = o).timeout || 0), u.label && this.clearLabel(u.label);
- var v = m.setTimeout.apply(void 0, n.__spreadArray([l, o], n.__read(r), !1)), y = u.label || v;
- return this.timers.set(y, v), this.__callbacks.set(y, l), v;
- }, p.prototype.updateTimeout = function(l, o) {
- if (!l || !this.timers.has(l)) return null;
- var r = this.__callbacks.get(l);
- return this.setTimeout(r, { label: l, timeout: o });
- }, p.prototype.clearLabel = function(l) {
- l && this.timers.has(l) && ((0, m.clearTimeout)(this.timers.get(l)), this.timers.delete(l), this.__callbacks.delete(l));
- }, p.prototype.clearTimeout = function(l) {
- if ((0, a.isString)(l)) return this.clearLabel(l);
- (0, m.clearTimeout)(l), this.timers.delete(l), this.__callbacks.delete(l);
- }, p.prototype.debounce = function(l, o, r) {
- var i = this;
- r === void 0 && (r = !1);
- var u = 0, v = !1, y = [], g = function() {
- for (var w = [], C = 0; arguments.length > C; C++) w[C] = arguments[C];
- if (!v) {
- u = 0;
- var S = l.apply(void 0, n.__spreadArray([], n.__read(w), !1));
- if (v = !0, y.length) {
- var j = function() {
- y.forEach(function(E) {
- return E();
- }), y.length = 0;
- };
- (0, d.isPromise)(S) ? S.finally(j) : j();
- }
- }
- }, b = function() {
- for (var w = [], C = 0; arguments.length > C; C++) w[C] = arguments[C];
- v = !1, o ? (!u && r && g.apply(void 0, n.__spreadArray([], n.__read(w), !1)), (0, m.clearTimeout)(u), u = i.setTimeout(function() {
- return g.apply(void 0, n.__spreadArray([], n.__read(w), !1));
- }, (0, h.isFunction)(o) ? o() : o), i.timers.set(l, u)) : g.apply(void 0, n.__spreadArray([], n.__read(w), !1));
- };
- return (0, f.isPlainObject)(o) && o.promisify ? function() {
- for (var w = [], C = 0; arguments.length > C; C++) w[C] = arguments[C];
- var S = i.promise(function(j) {
- y.push(j);
- });
- return b.apply(void 0, n.__spreadArray([], n.__read(w), !1)), S;
- } : b;
- }, p.prototype.throttle = function(l, o, r) {
- var i = this, u, v, y, g = null;
- return function() {
- for (var b = [], w = 0; arguments.length > w; w++) b[w] = arguments[w];
- u = !0, y = b, o ? g || (v = function() {
- u ? (l.apply(void 0, n.__spreadArray([], n.__read(y), !1)), u = !1, g = i.setTimeout(v, (0, h.isFunction)(o) ? o() : o), i.timers.set(v, g)) : g = null;
- })() : l.apply(void 0, n.__spreadArray([], n.__read(y), !1));
- };
- }, p.prototype.promise = function(l) {
- var o = this, r = function() {
- }, i = new Promise(function(u, v) {
- return o.promisesRejections.add(v), r = v, l(u, v);
- });
- return i.finally || (i.finally = function(u) {
- return i.then(u).catch(u), i;
- }), i.finally(function() {
- o.promisesRejections.delete(r);
- }).catch(function() {
- return null;
- }), i.rejectCallback = r, i;
- }, p.prototype.promiseState = function(l) {
- var o = this;
- if (l.status) return l.status;
- if (!Promise.race) return new Promise(function(i) {
- l.then(function(u) {
- return i("fulfilled"), u;
- }, function(u) {
- throw i("rejected"), u;
- }), o.setTimeout(function() {
- i("pending");
- }, 100);
- });
- var r = {};
- return Promise.race([l, r]).then(function(i) {
- return i === r ? "pending" : "fulfilled";
- }, function() {
- return "rejected";
- });
- }, p.prototype.requestIdleCallback = function(l, o) {
- var r = this.requestIdleCallbackNative(l, o);
- return this.requestsIdle.add(r), r;
- }, p.prototype.requestIdlePromise = function(l) {
- var o = this;
- return this.promise(function(r) {
- var i = o.requestIdleCallback(function() {
- return r(i);
- }, l);
- });
- }, p.prototype.cancelIdleCallback = function(l) {
- return this.requestsIdle.delete(l), this.cancelIdleCallbackNative(l);
- }, p.prototype.requestAnimationFrame = function(l) {
- var o = requestAnimationFrame(l);
- return this.requestsRaf.add(o), o;
- }, p.prototype.cancelAnimationFrame = function(l) {
- this.requestsRaf.delete(l), cancelAnimationFrame(l);
- }, p.prototype.clear = function() {
- var l = this;
- this.requestsIdle.forEach(function(o) {
- return l.cancelIdleCallback(o);
- }), this.requestsRaf.forEach(function(o) {
- return l.cancelAnimationFrame(o);
- }), this.timers.forEach(function(o) {
- return (0, m.clearTimeout)(l.timers.get(o));
- }), this.timers.clear(), this.promisesRejections.forEach(function(o) {
- return o();
- }), this.promisesRejections.clear();
- }, p.prototype.destruct = function() {
- this.clear(), this.isDestructed = !0;
- }, p;
- }());
- t.Async = c;
- }, 22630: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(77536), t);
- }, 45113: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Component = void 0;
- var n = e(40332), m = e(17332), h = e(29411), f = e(22630), d = /* @__PURE__ */ new Map(), a = function() {
- function s() {
- this.async = new f.Async(), this.ownerWindow = window, this.__componentStatus = h.STATUSES.beforeInit, this.uid = "jodit-uid-" + (0, m.uniqueUid)();
- }
- return Object.defineProperty(s.prototype, "componentName", { get: function() {
- return this.__componentName || (this.__componentName = "jodit-" + (0, n.kebabCase)(((0, n.isFunction)(this.className) ? this.className() : "") || (0, n.getClassName)(this))), this.__componentName;
- }, enumerable: !1, configurable: !0 }), s.prototype.getFullElName = function(c, p, l) {
- var o = [this.componentName];
- return c && (c = c.replace(/[^a-z0-9-]/gi, "-"), o.push("__".concat(c))), p && (o.push("_", p), o.push("_", (0, n.isVoid)(l) ? "true" : l.toString())), o.join("");
- }, Object.defineProperty(s.prototype, "ownerDocument", { get: function() {
- return this.ow.document;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "od", { get: function() {
- return this.ownerDocument;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "ow", { get: function() {
- return this.ownerWindow;
- }, enumerable: !1, configurable: !0 }), s.prototype.get = function(c, p) {
- return (0, n.get)(c, p || this);
- }, Object.defineProperty(s.prototype, "isReady", { get: function() {
- return this.componentStatus === h.STATUSES.ready;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "isDestructed", { get: function() {
- return this.componentStatus === h.STATUSES.destructed;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(s.prototype, "isInDestruct", { get: function() {
- return h.STATUSES.beforeDestruct === this.componentStatus || h.STATUSES.destructed === this.componentStatus;
- }, enumerable: !1, configurable: !0 }), s.prototype.bindDestruct = function(c) {
- var p = this;
- return c.hookStatus(h.STATUSES.beforeDestruct, function() {
- return !p.isInDestruct && p.destruct();
- }), this;
- }, s.prototype.destruct = function() {
- this.setStatus(h.STATUSES.destructed), this.async.destruct(), d.get(this) && d.delete(this);
- }, Object.defineProperty(s.prototype, "componentStatus", { get: function() {
- return this.__componentStatus;
- }, set: function(c) {
- this.setStatus(c);
- }, enumerable: !1, configurable: !0 }), s.prototype.setStatus = function(c) {
- return this.setStatusComponent(c, this);
- }, s.prototype.setStatusComponent = function(c, p) {
- if (c !== this.__componentStatus) {
- p === this && (this.__componentStatus = c);
- var l = Object.getPrototypeOf(this);
- l && (0, n.isFunction)(l.setStatusComponent) && l.setStatusComponent(c, p);
- var o = d.get(this), r = o == null ? void 0 : o[c];
- r && r.length && r.forEach(function(i) {
- return i(p);
- });
- }
- }, s.prototype.hookStatus = function(c, p) {
- var l = d.get(this);
- l || d.set(this, l = {}), l[c] || (l[c] = []), l[c].push(p);
- }, s.isInstanceOf = function(c, p) {
- return c instanceof p;
- }, s.STATUSES = h.STATUSES, s;
- }();
- t.Component = a;
- }, 56562: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(29411), t), n.__exportStar(e(45113), t), n.__exportStar(e(39840), t);
- }, 29411: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.STATUSES = void 0, t.STATUSES = { beforeInit: "beforeInit", ready: "ready", beforeDestruct: "beforeDestruct", destructed: "destructed" };
- }, 39840: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ViewComponent = void 0;
- var n = e(20255), m = function(h) {
- function f(d) {
- var a = h.call(this) || this;
- return a.setParentView(d), a;
- }
- return n.__extends(f, h), Object.defineProperty(f.prototype, "j", { get: function() {
- return this.jodit;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(f.prototype, "defaultTimeout", { get: function() {
- return this.j.defaultTimeout;
- }, enumerable: !1, configurable: !0 }), f.prototype.i18n = function(d) {
- for (var a, s = [], c = 1; arguments.length > c; c++) s[c - 1] = arguments[c];
- return (a = this.j).i18n.apply(a, n.__spreadArray([d], n.__read(s), !1));
- }, f.prototype.setParentView = function(d) {
- return this.jodit = d, d.components.add(this), this;
- }, f.prototype.destruct = function() {
- return this.j.components.delete(this), h.prototype.destruct.call(this);
- }, f;
- }(e(45113).Component);
- t.ViewComponent = m;
- }, 86893: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.CLIPBOARD_ID = t.lang = t.TEMP_ATTR = t.BASE_PATH = t.KEY_ALIASES = t.IS_MAC = t.SAFE_COUNT_CHANGE_CALL = t.INSERT_ONLY_TEXT = t.INSERT_AS_TEXT = t.INSERT_CLEAR_HTML = t.INSERT_AS_HTML = t.EMULATE_DBLCLICK_TIMEOUT = t.MARKER_CLASS = t.TEXT_RTF = t.TEXT_HTML = t.TEXT_PLAIN = t.IS_IE = t.MODE_SPLIT = t.MODE_SOURCE = t.MODE_WYSIWYG = t.PARAGRAPH = t.BR = t.COMMAND_KEYS = t.ACCURACY = t.NEARBY = t.KEY_F3 = t.KEY_DELETE = t.KEY_SPACE = t.KEY_DOWN = t.KEY_RIGHT = t.KEY_UP = t.KEY_LEFT = t.KEY_ALT = t.KEY_ESC = t.KEY_ENTER = t.KEY_TAB = t.KEY_BACKSPACE = t.KEY_META = t.NO_EMPTY_TAGS = t.INSEPARABLE_TAGS = t.IS_INLINE = t.IS_BLOCK = t.SPACE_REG_EXP_END = t.SPACE_REG_EXP_START = t.SPACE_REG_EXP = t.INVISIBLE_SPACE_REG_EXP_START = t.INVISIBLE_SPACE_REG_EXP_END = t.INVISIBLE_SPACE_REG_EXP = t.NBSP_SPACE = t.INVISIBLE_SPACE = void 0, t.SOURCE_CONSUMER = void 0;
- var n = e(20255);
- t.INVISIBLE_SPACE = "\uFEFF", t.NBSP_SPACE = " ", t.INVISIBLE_SPACE_REG_EXP = function() {
- return /[\uFEFF]/g;
- }, t.INVISIBLE_SPACE_REG_EXP_END = function() {
- return /[\uFEFF]+$/g;
- }, t.INVISIBLE_SPACE_REG_EXP_START = function() {
- return /^[\uFEFF]+/g;
- }, t.SPACE_REG_EXP = function() {
- return /[\s\n\t\r\uFEFF\u200b]+/g;
- }, t.SPACE_REG_EXP_START = function() {
- return /^[\s\n\t\r\uFEFF\u200b]+/g;
- }, t.SPACE_REG_EXP_END = function() {
- return /[\s\n\t\r\uFEFF\u200b]+$/g;
- }, t.IS_BLOCK = /^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i, t.IS_INLINE = /^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i;
- var m = ["img", "video", "svg", "iframe", "script", "input", "textarea", "link", "jodit", "jodit-media"];
- t.INSEPARABLE_TAGS = new Set(n.__spreadArray(n.__spreadArray([], n.__read(m), !1), ["br", "hr"], !1)), t.NO_EMPTY_TAGS = new Set(m), t.KEY_META = "Meta", t.KEY_BACKSPACE = "Backspace", t.KEY_TAB = "Tab", t.KEY_ENTER = "Enter", t.KEY_ESC = "Escape", t.KEY_ALT = "Alt", t.KEY_LEFT = "ArrowLeft", t.KEY_UP = "ArrowUp", t.KEY_RIGHT = "ArrowRight", t.KEY_DOWN = "ArrowDown", t.KEY_SPACE = "Space", t.KEY_DELETE = "Delete", t.KEY_F3 = "F3", t.NEARBY = 5, t.ACCURACY = 10, t.COMMAND_KEYS = [t.KEY_META, t.KEY_BACKSPACE, t.KEY_DELETE, t.KEY_UP, t.KEY_DOWN, t.KEY_RIGHT, t.KEY_LEFT, t.KEY_ENTER, t.KEY_ESC, t.KEY_F3, t.KEY_TAB], t.BR = "br", t.PARAGRAPH = "p", t.MODE_WYSIWYG = 1, t.MODE_SOURCE = 2, t.MODE_SPLIT = 3, t.IS_IE = typeof navigator != "undefined" && (navigator.userAgent.indexOf("MSIE") !== -1 || /rv:11.0/i.test(navigator.userAgent)), t.TEXT_PLAIN = t.IS_IE ? "text" : "text/plain", t.TEXT_HTML = t.IS_IE ? "html" : "text/html", t.TEXT_RTF = t.IS_IE ? "rtf" : "text/rtf", t.MARKER_CLASS = "jodit-selection_marker", t.EMULATE_DBLCLICK_TIMEOUT = 300, t.INSERT_AS_HTML = "insert_as_html", t.INSERT_CLEAR_HTML = "insert_clear_html", t.INSERT_AS_TEXT = "insert_as_text", t.INSERT_ONLY_TEXT = "insert_only_text", t.SAFE_COUNT_CHANGE_CALL = 10, t.IS_MAC = typeof window != "undefined" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), t.KEY_ALIASES = { add: "+", break: "pause", cmd: "meta", command: "meta", ctl: "control", ctrl: "control", del: "delete", down: "arrowdown", esc: "escape", ins: "insert", left: "arrowleft", mod: t.IS_MAC ? "meta" : "control", opt: "alt", option: "alt", return: "enter", right: "arrowright", space: " ", spacebar: " ", up: "arrowup", win: "meta", windows: "meta" }, t.BASE_PATH = function() {
- if (typeof document == "undefined") return "";
- var h = document.currentScript, f = function(a) {
- var s = a.split("/");
- return /\.js/.test(s[s.length - 1]) ? s.slice(0, s.length - 1).join("/") + "/" : a;
- };
- if (h) return f(h.src);
- var d = document.querySelectorAll("script[src]");
- return d && d.length ? f(d[d.length - 1].src) : window.location.href;
- }(), t.TEMP_ATTR = "data-jodit-temp", t.lang = {}, t.CLIPBOARD_ID = "clipboard", t.SOURCE_CONSUMER = "source-consumer";
- }, 31897: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Create = void 0;
- var n = e(40332), m = (e(52378), e(64968)), h = e(86893), f = function() {
- function d(a, s) {
- this.document = a, this.createAttributes = s;
- }
- return Object.defineProperty(d.prototype, "doc", { get: function() {
- return (0, n.isFunction)(this.document) ? this.document() : this.document;
- }, enumerable: !1, configurable: !0 }), d.prototype.element = function(a, s, c) {
- var p = this, l = this.doc.createElement(a.toLowerCase());
- return this.applyCreateAttributes(l), s && ((0, n.isPlainObject)(s) ? (0, n.attr)(l, s) : c = s), c && (0, n.asArray)(c).forEach(function(o) {
- return l.appendChild((0, n.isString)(o) ? p.fromHTML(o) : o);
- }), l;
- }, d.prototype.div = function(a, s, c) {
- var p = this.element("div", s, c);
- return a && (p.className = a), p;
- }, d.prototype.sandbox = function() {
- var a, s = this.element("iframe", { sandbox: "allow-same-origin" });
- this.doc.body.appendChild(s);
- var c = (a = s.contentWindow) === null || a === void 0 ? void 0 : a.document;
- if (!c) throw Error("Iframe error");
- return c.open(), c.write("<!DOCTYPE html><html><head></head><body></body></html>"), c.close(), c.body;
- }, d.prototype.span = function(a, s, c) {
- var p = this.element("span", s, c);
- return a && (p.className = a), p;
- }, d.prototype.a = function(a, s, c) {
- var p = this.element("a", s, c);
- return a && (p.className = a), p;
- }, d.prototype.text = function(a) {
- return this.doc.createTextNode(a);
- }, d.prototype.fake = function() {
- return this.text(h.INVISIBLE_SPACE);
- }, d.prototype.fragment = function() {
- return this.doc.createDocumentFragment();
- }, d.prototype.fromHTML = function(a, s) {
- var c = this.div();
- c.innerHTML = a.toString();
- var p = c.firstChild === c.lastChild && c.firstChild ? c.firstChild : c;
- if (m.Dom.safeRemove(p), s) {
- var l = (0, n.refs)(p);
- Object.keys(s).forEach(function(o) {
- var r = l[o];
- r && s[o] === !1 && m.Dom.hide(r);
- });
- }
- return p;
- }, d.prototype.applyCreateAttributes = function(a) {
- if (this.createAttributes) {
- var s = this.createAttributes;
- if (s && s[a.tagName.toLowerCase()]) {
- var c = s[a.tagName.toLowerCase()];
- (0, n.isFunction)(c) ? c(a) : (0, n.isPlainObject)(c) && (0, n.attr)(a, c);
- }
- }
- }, d;
- }();
- t.Create = f;
- }, 42841: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(31897), t);
- }, 32358: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.cache = void 0;
- var n = e(40332);
- t.cache = function(m, h, f) {
- var d = f.get;
- if (!d) throw (0, n.error)("Getter property descriptor expected");
- f.get = function() {
- var a = d.call(this);
- return a && a.noCache === !0 || Object.defineProperty(this, h, { configurable: f.configurable, enumerable: f.enumerable, writable: !1, value: a }), a;
- };
- };
- }, 11441: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.component = void 0;
- var n = e(20255);
- t.component = function(m) {
- var h = function(f) {
- function d() {
- for (var a = [], s = 0; arguments.length > s; s++) a[s] = arguments[s];
- var c = f.apply(this, n.__spreadArray([], n.__read(a), !1)) || this, p = c.constructor === d;
- return p && (c instanceof d || Object.setPrototypeOf(c, d.prototype), c.setStatus("ready")), c;
- }
- return n.__extends(d, f), d;
- }(m);
- return h;
- };
- }, 55773: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.throttle = t.debounce = void 0;
- var n = e(10172), m = e(56562), h = e(56964);
- function f(d, a, s) {
- return a === void 0 && (a = !1), s === void 0 && (s = "debounce"), function(c, p) {
- var l = c[p];
- if (!(0, n.isFunction)(l)) throw (0, h.error)("Handler must be a Function");
- return c.hookStatus(m.STATUSES.ready, function(o) {
- var r = o.async, i = (0, n.isFunction)(d) ? d(o) : d;
- Object.defineProperty(o, p, { configurable: !0, value: r[s](o[p].bind(o), (0, n.isNumber)(i) || (0, n.isPlainObject)(i) ? i : o.defaultTimeout, a) });
- }), { configurable: !0, get: function() {
- return l.bind(this);
- } };
- };
- }
- e(52378), t.debounce = f, t.throttle = function(d, a) {
- return a === void 0 && (a = !1), f(d, a, "throttle");
- };
- }, 70669: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.derive = void 0;
- var n = e(20255), m = e(10172);
- t.derive = function() {
- for (var h = [], f = 0; arguments.length > f; f++) h[f] = arguments[f];
- return function(d) {
- for (var a = d.prototype, s = 0; h.length > s; s++) for (var c = h[s], p = Object.getOwnPropertyNames(c.prototype), l = function(r) {
- var i = p[r], u = Object.getOwnPropertyDescriptor(c.prototype, i);
- u != null && (0, m.isFunction)(u.value) && !(0, m.isFunction)(a[i]) && Object.defineProperty(a, i, { enumerable: !0, configurable: !0, writable: !0, value: function() {
- for (var v, y = [], g = 0; arguments.length > g; g++) y[g] = arguments[g];
- return (v = u.value).call.apply(v, n.__spreadArray([this], n.__read(y), !1));
- } });
- }, o = 0; p.length > o; o++) l(o);
- };
- };
- }, 64522: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.hook = void 0;
- var n = e(10172), m = e(56964);
- t.hook = function(h) {
- return function(f, d) {
- if (!(0, n.isFunction)(f[d])) throw (0, m.error)("Handler must be a Function");
- f.hookStatus(h, function(a) {
- a[d].call(a);
- });
- };
- };
- }, 58682: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.idle = void 0;
- var n = e(20255), m = e(56562), h = e(40332);
- t.idle = function() {
- return function(f, d) {
- if (!(0, h.isFunction)(f[d])) throw (0, h.error)("Handler must be a Function");
- f.hookStatus(m.STATUSES.ready, function(a) {
- var s = a.async, c = a[d];
- a[d] = function() {
- for (var p = [], l = 0; arguments.length > l; l++) p[l] = arguments[l];
- return s.requestIdleCallback(c.bind.apply(c, n.__spreadArray([a], n.__read(p), !1)));
- };
- });
- };
- };
- }, 43441: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.autobind = void 0;
- var n = e(20255);
- n.__exportStar(e(32358), t), n.__exportStar(e(11441), t), n.__exportStar(e(55773), t), n.__exportStar(e(58682), t), n.__exportStar(e(64522), t), n.__exportStar(e(91627), t), n.__exportStar(e(31418), t), n.__exportStar(e(67587), t), n.__exportStar(e(46163), t), n.__exportStar(e(70669), t);
- var m = e(70631);
- Object.defineProperty(t, "autobind", { enumerable: !0, get: function() {
- return m.default;
- } });
- }, 91627: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.nonenumerable = void 0, t.nonenumerable = function(e, n) {
- (Object.getOwnPropertyDescriptor(e, n) || {}).enumerable !== !1 && Object.defineProperty(e, n, { enumerable: !1, set: function(m) {
- Object.defineProperty(this, n, { enumerable: !1, writable: !0, value: m });
- } });
- };
- }, 31418: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.persistent = void 0;
- var n = e(56562), m = e(96574);
- t.persistent = function(h, f) {
- h.hookStatus(n.STATUSES.ready, function(d) {
- var a = (0, m.isViewObject)(d) ? d : d.jodit, s = "".concat(a.options.namespace).concat(d.componentName, "_prop_").concat(f), c = d[f];
- Object.defineProperty(d, f, { get: function() {
- var p;
- return (p = a.storage.get(s)) !== null && p !== void 0 ? p : c;
- }, set: function(p) {
- a.storage.set(s, p);
- } });
- });
- };
- }, 67587: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.wait = void 0;
- var n = e(20255), m = e(40332), h = e(56562);
- t.wait = function(f) {
- return function(d, a) {
- if (!(0, m.isFunction)(d[a])) throw (0, m.error)("Handler must be a Function");
- d.hookStatus(h.STATUSES.ready, function(s) {
- var c = s.async, p = s[a], l = 0;
- Object.defineProperty(s, a, { configurable: !0, value: function o() {
- for (var r = [], i = 0; arguments.length > i; i++) r[i] = arguments[i];
- c.clearTimeout(l), f(s) ? p.apply(s, r) : l = c.setTimeout(function() {
- return o.apply(void 0, n.__spreadArray([], n.__read(r), !1));
- }, 10);
- } });
- });
- };
- };
- }, 46163: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.watch = t.getPropertyDescriptor = void 0;
- var n = e(20255), m = e(42096), h = e(79736), f = e(96574), d = e(88418), a = e(29411), s = e(14556), c = e(56964);
- function p(o, r) {
- var i;
- do
- i = Object.getOwnPropertyDescriptor(o, r), o = Object.getPrototypeOf(o);
- while (!i && o);
- return i;
- }
- function l(o, r) {
- return function(i, u) {
- if (!(0, m.isFunction)(i[u])) throw (0, c.error)("Handler must be a Function");
- var v = function(y) {
- var g = function(b) {
- for (var w, C = [], S = 1; arguments.length > S; S++) C[S - 1] = arguments[S];
- if (!y.isInDestruct) return (w = y)[u].apply(w, n.__spreadArray([b], n.__read(C), !1));
- };
- (0, s.splitArray)(o).forEach(function(b) {
- if (/:/.test(b)) {
- var w = n.__read(b.split(":"), 2), C = w[0], S = w[1], j = r, E = (0, f.isViewObject)(y) ? y : y.jodit;
- return C.length && (j = y.get(C)), (0, m.isFunction)(j) && (j = j(y)), E.events.on(j || y, S, g), j || E.events.on(S, g), void y.hookStatus("beforeDestruct", function() {
- E.events.off(j || y, S, g).off(S, g);
- });
- }
- var x = b.split("."), k = n.__read(x, 1)[0], I = x.slice(1), M = y[k];
- (0, h.isPlainObject)(M) && (0, d.observable)(M).on("change.".concat(I.join(".")), g);
- var T = p(i, k);
- Object.defineProperty(y, k, { configurable: !0, set: function(O) {
- var L = M;
- L !== O && (M = O, T && T.set && T.set.call(y, O), (0, h.isPlainObject)(M) && (M = (0, d.observable)(M)).on("change.".concat(I.join(".")), g), g(k, L, M));
- }, get: function() {
- return T && T.get ? T.get.call(y) : M;
- } });
- });
- };
- (0, m.isFunction)(i.hookStatus) ? i.hookStatus(a.STATUSES.ready, v) : v(i);
- };
- }
- t.getPropertyDescriptor = p, t.watch = l, t.default = l;
- }, 24263: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Dom = void 0;
- var n = e(20255), m = e(86893), h = e(10172), f = e(12557), d = e(19035), a = e(76502), s = e(37204), c = e(86893), p = function() {
- function l() {
- }
- return l.detach = function(o) {
- for (; o.firstChild; ) o.removeChild(o.firstChild);
- }, l.wrapInline = function(o, r, i) {
- var u, v = o, y = o;
- i.s.save();
- var g = !1;
- do
- g = !1, (u = v.previousSibling) && !l.isBlock(u) && (g = !0, v = u);
- while (g);
- do
- g = !1, (u = y.nextSibling) && !l.isBlock(u) && (g = !0, y = u);
- while (g);
- var b = (0, h.isString)(r) ? i.createInside.element(r) : r;
- v.parentNode && v.parentNode.insertBefore(b, v);
- for (var w = v; w && (w = v.nextSibling, b.appendChild(v), v !== y && w); ) v = w;
- return i.s.restore(), b;
- }, l.wrap = function(o, r, i) {
- var u = (0, h.isString)(r) ? i.element(r) : r;
- if (l.isNode(o)) {
- if (!o.parentNode) throw (0, a.error)("Element should be in DOM");
- o.parentNode.insertBefore(u, o), u.appendChild(o);
- } else {
- var v = o.extractContents();
- o.insertNode(u), u.appendChild(v);
- }
- return u;
- }, l.unwrap = function(o) {
- var r = o.parentNode;
- if (r) {
- for (; o.firstChild; ) r.insertBefore(o.firstChild, o);
- l.safeRemove(o);
- }
- }, l.between = function(o, r, i) {
- for (var u = o; u && u !== r && (o === u || !i(u)); ) {
- var v = u.firstChild || u.nextSibling;
- if (!v) {
- for (; u && !u.nextSibling; ) u = u.parentNode;
- v = u == null ? void 0 : u.nextSibling;
- }
- u = v;
- }
- }, l.replace = function(o, r, i, u, v) {
- u === void 0 && (u = !1), v === void 0 && (v = !1), (0, h.isHTML)(r) && (r = i.fromHTML(r));
- var y = (0, h.isString)(r) ? i.element(r) : r;
- if (!v) for (; o.firstChild; ) y.appendChild(o.firstChild);
- return u && l.isElement(o) && l.isElement(y) && (0, f.toArray)(o.attributes).forEach(function(g) {
- y.setAttribute(g.name, g.value);
- }), o.parentNode && o.parentNode.replaceChild(y, o), y;
- }, l.isEmptyTextNode = function(o) {
- return l.isText(o) && (!o.nodeValue || o.nodeValue.replace(m.INVISIBLE_SPACE_REG_EXP(), "").trim().length === 0);
- }, l.isEmptyContent = function(o) {
- return l.each(o, function(r) {
- return l.isEmptyTextNode(r);
- });
- }, l.isContentEditable = function(o, r) {
- return l.isNode(o) && !l.closest(o, function(i) {
- return l.isElement(i) && i.getAttribute("contenteditable") === "false";
- }, r);
- }, l.isEmpty = function(o, r) {
- if (r === void 0 && (r = c.NO_EMPTY_TAGS), !o) return !0;
- var i;
- i = (0, h.isFunction)(r) ? r : function(v) {
- return r.has(v.nodeName.toLowerCase());
- };
- var u = function(v) {
- return v.nodeValue == null || (0, d.trim)(v.nodeValue).length === 0;
- };
- return l.isText(o) ? u(o) : !(l.isElement(o) && i(o)) && l.each(o, function(v) {
- if (l.isText(v) && !u(v) || l.isElement(v) && i(v)) return !1;
- });
- }, l.isNode = function(o) {
- return !!(o && (0, h.isString)(o.nodeName) && typeof o.nodeType == "number" && o.childNodes && (0, h.isFunction)(o.appendChild));
- }, l.isCell = function(o) {
- return l.isNode(o) && /^(td|th)$/i.test(o.nodeName);
- }, l.isImage = function(o) {
- return l.isNode(o) && /^(img|svg|picture|canvas)$/i.test(o.nodeName);
- }, l.isBlock = function(o) {
- return !(0, h.isVoid)(o) && typeof o == "object" && l.isNode(o) && m.IS_BLOCK.test(o.nodeName);
- }, l.isText = function(o) {
- return !!(o && o.nodeType === Node.TEXT_NODE);
- }, l.isElement = function(o) {
- var r;
- if (!l.isNode(o)) return !1;
- var i = (r = o.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView;
- return !!(i && o.nodeType === Node.ELEMENT_NODE);
- }, l.isFragment = function(o) {
- var r;
- if (!l.isNode(o)) return !1;
- var i = (r = o.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView;
- return !!(i && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE);
- }, l.isHTMLElement = function(o) {
- var r;
- if (!l.isNode(o)) return !1;
- var i = (r = o.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView;
- return !!(i && o instanceof i.HTMLElement);
- }, l.isInlineBlock = function(o) {
- return l.isElement(o) && !/^(BR|HR)$/i.test(o.tagName) && ["inline", "inline-block"].indexOf((0, a.css)(o, "display").toString()) !== -1;
- }, l.canSplitBlock = function(o) {
- return !(0, h.isVoid)(o) && l.isHTMLElement(o) && l.isBlock(o) && !/^(TD|TH|CAPTION|FORM)$/.test(o.nodeName) && o.style !== void 0 && !/^(fixed|absolute)/i.test(o.style.position);
- }, l.last = function(o, r) {
- var i = o == null ? void 0 : o.lastChild;
- if (!i) return null;
- do {
- if (r(i)) return i;
- var u = i.lastChild;
- if (u || (u = i.previousSibling), !u && i.parentNode !== o) {
- do
- i = i.parentNode;
- while (i && !(i != null && i.previousSibling) && i.parentNode !== o);
- u = i == null ? void 0 : i.previousSibling;
- }
- i = u;
- } while (i);
- return null;
- }, l.prev = function(o, r, i, u) {
- return u === void 0 && (u = !0), l.find(o, r, i, !1, u);
- }, l.next = function(o, r, i, u) {
- return u === void 0 && (u = !0), l.find(o, r, i, !0, u);
- }, l.prevWithClass = function(o, r) {
- return l.prev(o, function(i) {
- return l.isElement(i) && i.classList.contains(r);
- }, o.parentNode);
- }, l.nextWithClass = function(o, r) {
- return l.next(o, function(i) {
- return l.isElement(i) && i.classList.contains(r);
- }, o.parentNode);
- }, l.find = function(o, r, i, u, v) {
- u === void 0 && (u = !0), v === void 0 && (v = !0);
- for (var y = this.nextGen(o, i, u, v), g = y.next(); !g.done; ) {
- if (r(g.value)) return g.value;
- g = y.next();
- }
- return null;
- }, l.nextGen = function(o, r, i, u) {
- var v, y, g;
- return i === void 0 && (i = !0), u === void 0 && (u = !0), n.__generator(this, function(b) {
- switch (b.label) {
- case 0:
- v = [], y = o, b.label = 1;
- case 1:
- for (g = i ? y.nextSibling : y.previousSibling; g; ) v.unshift(g), g = i ? g.nextSibling : g.previousSibling;
- return [5, n.__values(this.runInStack(o, v, i, u))];
- case 2:
- b.sent(), y = y.parentNode, b.label = 3;
- case 3:
- if (y && y !== r) return [3, 1];
- b.label = 4;
- case 4:
- return [2, null];
- }
- });
- }, l.each = function(o, r, i) {
- i === void 0 && (i = !0);
- for (var u = this.eachGen(o, i), v = u.next(); !v.done; ) {
- if (r(v.value) === !1) return !1;
- v = u.next();
- }
- return !0;
- }, l.eachGen = function(o, r) {
- return r === void 0 && (r = !0), this.runInStack(o, [o], r);
- }, l.runInStack = function(o, r, i, u) {
- var v, y;
- return u === void 0 && (u = !0), n.__generator(this, function(g) {
- switch (g.label) {
- case 0:
- if (!r.length) return [3, 3];
- if (v = r.pop(), u) for (y = i ? v.lastChild : v.firstChild; y; ) r.push(y), y = i ? y.previousSibling : y.nextSibling;
- return o === v ? [3, 2] : [4, v];
- case 1:
- g.sent(), g.label = 2;
- case 2:
- return [3, 0];
- case 3:
- return [2];
- }
- });
- }, l.findWithCurrent = function(o, r, i, u, v) {
- u === void 0 && (u = "nextSibling"), v === void 0 && (v = "firstChild");
- var y = o;
- do {
- if (r(y)) return y || null;
- if (v && y && y[v]) {
- var g = l.findWithCurrent(y[v], r, y, u, v);
- if (g) return g;
- }
- for (; y && !y[u] && y !== i; ) y = y.parentNode;
- y && y[u] && y !== i && (y = y[u]);
- } while (y && y !== i);
- return null;
- }, l.findSibling = function(o, r, i) {
- r === void 0 && (r = !0), i === void 0 && (i = function(v) {
- return !l.isEmptyTextNode(v);
- });
- for (var u = l.sibling(o, r); u && !i(u); ) u = l.sibling(u, r);
- return u && i(u) ? u : null;
- }, l.findNotEmptySibling = function(o, r) {
- return l.findSibling(o, r, function(i) {
- var u;
- return !l.isEmptyTextNode(i) && !!(!l.isText(i) || !((u = i.nodeValue) === null || u === void 0) && u.length && (0, d.trim)(i.nodeValue));
- });
- }, l.findNotEmptyNeighbor = function(o, r, i) {
- return (0, a.call)(r ? l.prev : l.next, o, function(u) {
- return !!(u && (!l.isText(u) || (0, d.trim)((u == null ? void 0 : u.nodeValue) || "").length));
- }, i);
- }, l.sibling = function(o, r) {
- return r ? o.previousSibling : o.nextSibling;
- }, l.up = function(o, r, i, u) {
- u === void 0 && (u = !1);
- var v = o;
- if (!v) return null;
- do {
- if (r(v)) return v;
- if (v === i || !v.parentNode) break;
- v = v.parentNode;
- } while (v && v !== i);
- return v === i && u && r(v) ? v : null;
- }, l.closest = function(o, r, i) {
- var u, v = function(g) {
- return g.toLowerCase();
- };
- if ((0, h.isFunction)(r)) u = r;
- else if ((0, h.isArray)(r)) {
- var y = new Set(r.map(v));
- u = function(g) {
- return !!(g && y.has(v(g.nodeName)));
- };
- } else u = function(g) {
- return !!(g && v(r) === v(g.nodeName));
- };
- return l.up(o, u, i);
- }, l.furthest = function(o, r, i) {
- for (var u = null, v = o == null ? void 0 : o.parentElement; v && v !== i; ) r(v) && (u = v), v = v == null ? void 0 : v.parentElement;
- return u;
- }, l.appendChildFirst = function(o, r) {
- var i = o.firstChild;
- i ? i !== r && o.insertBefore(r, i) : o.appendChild(r);
- }, l.after = function(o, r) {
- var i = o.parentNode;
- i && (i.lastChild === o ? i.appendChild(r) : i.insertBefore(r, o.nextSibling));
- }, l.before = function(o, r) {
- var i = o.parentNode;
- i && i.insertBefore(r, o);
- }, l.prepend = function(o, r) {
- o.insertBefore(r, o.firstChild);
- }, l.append = function(o, r) {
- var i = this;
- (0, h.isArray)(r) ? r.forEach(function(u) {
- i.append(o, u);
- }) : o.appendChild(r);
- }, l.moveContent = function(o, r, i, u) {
- i === void 0 && (i = !1), u === void 0 && (u = function() {
- return !0;
- });
- var v = (o.ownerDocument || document).createDocumentFragment();
- (0, f.toArray)(o.childNodes).filter(function(y) {
- return !!u(y) || (l.safeRemove(y), !1);
- }).forEach(function(y) {
- v.appendChild(y);
- }), i && r.firstChild ? r.insertBefore(v, r.firstChild) : r.appendChild(v);
- }, l.isOrContains = function(o, r, i) {
- return i === void 0 && (i = !1), o === r ? !i : !!(r && o && this.up(r, function(u) {
- return u === o;
- }, o, !0));
- }, l.safeRemove = function() {
- for (var o = [], r = 0; arguments.length > r; r++) o[r] = arguments[r];
- o.forEach(function(i) {
- return l.isNode(i) && i.parentNode && i.parentNode.removeChild(i);
- });
- }, l.safeInsertNode = function(o, r) {
- o.collapsed || o.deleteContents(), o.insertNode(r), o.setStartBefore(r), o.collapse(!0), [r.nextSibling, r.previousSibling].forEach(function(i) {
- return l.isText(i) && !i.nodeValue && l.safeRemove(i);
- });
- }, l.hide = function(o) {
- o && ((0, a.dataBind)(o, "__old_display", o.style.display), o.style.display = "none");
- }, l.show = function(o) {
- if (o) {
- var r = (0, a.dataBind)(o, "__old_display");
- o.style.display === "none" && (o.style.display = r || "");
- }
- }, l.isTag = function(o, r) {
- if (!this.isElement(o)) return !1;
- var i = o.tagName.toLowerCase(), u = o.tagName.toUpperCase();
- if (r instanceof Set) return r.has(i) || r.has(u);
- for (var v = (0, f.asArray)(r).map(function(g) {
- return String(g).toLowerCase();
- }), y = 0; v.length > y; y += 1) if (i === v[y] || u === v[y]) return !0;
- return !1;
- }, l.markTemporary = function(o, r) {
- return r && (0, a.attr)(o, r), (0, a.attr)(o, c.TEMP_ATTR, !0), o;
- }, l.isTemporary = function(o) {
- return !!l.isElement(o) && ((0, s.isMarker)(o) || (0, a.attr)(o, c.TEMP_ATTR) === "true");
- }, l.replaceTemporaryFromString = function(o) {
- return o.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi, "$2");
- }, l.temporaryList = function(o) {
- return (0, a.$$)("[".concat(c.TEMP_ATTR, "]"), o);
- }, l;
- }();
- t.Dom = p;
- }, 64968: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(24263), t), n.__exportStar(e(33841), t);
- }, 33841: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.LazyWalker = void 0;
- var n = e(20255), m = e(73852), h = e(43441), f = e(24263), d = function(a) {
- function s(c, p) {
- p === void 0 && (p = {});
- var l = a.call(this) || this;
- return l.async = c, l.options = p, l.workNodes = null, l.hadAffect = !1, l.isWorked = !1, l.isFinished = !1, l.idleId = 0, l;
- }
- return n.__extends(s, a), s.prototype.setWork = function(c) {
- return this.isWorked && this.break(), this.workNodes = f.Dom.eachGen(c, !this.options.reverse), this.isFinished = !1, this.startIdleRequest(), this;
- }, s.prototype.startIdleRequest = function() {
- var c;
- this.idleId = this.async.requestIdleCallback(this.workPerform, { timeout: (c = this.options.timeout) !== null && c !== void 0 ? c : 10 });
- }, s.prototype.break = function(c) {
- this.isWorked && (this.stop(), this.emit("break", c));
- }, s.prototype.end = function() {
- this.isWorked && (this.stop(), this.emit("end", this.hadAffect), this.hadAffect = !1);
- }, s.prototype.stop = function() {
- this.isWorked = !1, this.isFinished = !0, this.workNodes = null, this.async.cancelIdleCallback(this.idleId);
- }, s.prototype.destruct = function() {
- a.prototype.destruct.call(this), this.stop();
- }, s.prototype.workPerform = function(c) {
- var p;
- if (this.workNodes) {
- this.isWorked = !0;
- for (var l = 0, o = (p = this.options.timeoutChunkSize) !== null && p !== void 0 ? p : 50; !this.isFinished && (c.timeRemaining() > 0 || c.didTimeout && o >= l); ) {
- var r = this.workNodes.next();
- if (l += 1, this.visitNode(r.value) && (this.hadAffect = !0), r.done) return void this.end();
- }
- } else this.end();
- this.isFinished || this.startIdleRequest();
- }, s.prototype.visitNode = function(c) {
- var p;
- return !(!c || this.options.whatToShow !== void 0 && c.nodeType !== this.options.whatToShow) && (p = this.emit("visit", c)) !== null && p !== void 0 && p;
- }, n.__decorate([h.autobind], s.prototype, "workPerform", null), s;
- }(m.Eventify);
- t.LazyWalker = d;
- }, 3808: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.EventEmitter = void 0;
- var n = e(20255), m = e(83611), h = e(24421), f = e(42096), d = e(49781), a = e(56964), s = e(14556), c = function() {
- function p(l) {
- var o = this;
- this.__mutedEvents = /* @__PURE__ */ new Set(), this.__key = "__JoditEventEmitterNamespaces", this.__doc = document, this.__prepareEvent = function(r) {
- r.cancelBubble || (r.composed && (0, f.isFunction)(r.composedPath) && r.composedPath()[0] && Object.defineProperty(r, "target", { value: r.composedPath()[0], configurable: !0, enumerable: !0 }), r.type.match(/^touch/) && r.changedTouches && r.changedTouches.length && ["clientX", "clientY", "pageX", "pageY"].forEach(function(i) {
- Object.defineProperty(r, i, { value: r.changedTouches[0][i], configurable: !0, enumerable: !0 });
- }), r.originalEvent || (r.originalEvent = r), r.type === "paste" && r.clipboardData === void 0 && o.__doc.defaultView.clipboardData && Object.defineProperty(r, "clipboardData", { get: function() {
- return o.__doc.defaultView.clipboardData;
- }, configurable: !0, enumerable: !0 }));
- }, this.currents = [], this.__stopped = [], this.__isDestructed = !1, l && (this.__doc = l), this.__key += (/* @__PURE__ */ new Date()).getTime();
- }
- return p.prototype.mute = function(l) {
- return this.__mutedEvents.add(l != null ? l : "*"), this;
- }, p.prototype.isMuted = function(l) {
- return !(!l || !this.__mutedEvents.has(l)) || this.__mutedEvents.has("*");
- }, p.prototype.unmute = function(l) {
- return this.__mutedEvents.delete(l != null ? l : "*"), this;
- }, p.prototype.__eachEvent = function(l, o) {
- var r = this;
- (0, s.splitArray)(l).map(function(i) {
- return i.trim();
- }).forEach(function(i) {
- var u = i.split(".");
- o.call(r, u[0], u[1] || m.defaultNameSpace);
- });
- }, p.prototype.__getStore = function(l) {
- if (!l) throw (0, a.error)("Need subject");
- if (l[this.__key] === void 0) {
- var o = new m.EventHandlersStore();
- Object.defineProperty(l, this.__key, { enumerable: !1, configurable: !0, writable: !0, value: o });
- }
- return l[this.__key];
- }, p.prototype.__removeStoreFromSubject = function(l) {
- l[this.__key] !== void 0 && Object.defineProperty(l, this.__key, { enumerable: !1, configurable: !0, writable: !0, value: void 0 });
- }, p.prototype.__triggerNativeEvent = function(l, o) {
- var r = this.__doc.createEvent("HTMLEvents");
- (0, h.isString)(o) ? r.initEvent(o, !0, !0) : (r.initEvent(o.type, o.bubbles, o.cancelable), ["screenX", "screenY", "clientX", "clientY", "target", "srcElement", "currentTarget", "timeStamp", "which", "keyCode"].forEach(function(i) {
- Object.defineProperty(r, i, { value: o[i], enumerable: !0 });
- }), Object.defineProperty(r, "originalEvent", { value: o, enumerable: !0 })), l.dispatchEvent(r);
- }, Object.defineProperty(p.prototype, "current", { get: function() {
- return this.currents[this.currents.length - 1];
- }, enumerable: !1, configurable: !0 }), p.prototype.on = function(l, o, r, i) {
- var u, v, y, g, b = this;
- if ((0, h.isString)(l) || (0, h.isStringArray)(l) ? (u = this, v = l, y = o, g = r) : (u = l, v = o, y = r, g = i), !(0, h.isString)(v) && !(0, h.isStringArray)(v) || v.length === 0) throw (0, a.error)("Need events names");
- if (!(0, f.isFunction)(y)) throw (0, a.error)("Need event handler");
- if ((0, d.isArray)(u)) return u.forEach(function(x) {
- b.on(x, v, y, g);
- }), this;
- var w = u, C = this.__getStore(w), S = (0, f.isFunction)(w.addEventListener), j = this, E = function(x) {
- for (var k = [], I = 1; arguments.length > I; I++) k[I - 1] = arguments[I];
- if (!j.isMuted(x)) return y && y.call.apply(y, n.__spreadArray([this], n.__read(k), !1));
- };
- return S && (E = function(x) {
- if (!j.isMuted(x.type)) return j.__prepareEvent(x), y && y.call(this, x) === !1 ? (x.preventDefault(), x.stopImmediatePropagation(), !1) : void 0;
- }), this.__eachEvent(v, function(x, k) {
- if (x.length === 0) throw (0, a.error)("Need event name");
- if (C.indexOf(x, k, y) === !1 && (C.set(x, k, { event: x, originalCallback: y, syntheticCallback: E }, g == null ? void 0 : g.top), S)) {
- var I = !!["touchstart", "touchend", "scroll", "mousewheel", "mousemove", "touchmove"].includes(x) && { passive: !0 };
- w.addEventListener(x, E, I);
- }
- }), this;
- }, p.prototype.one = function(l, o, r, i) {
- var u, v, y, g, b = this;
- (0, h.isString)(l) || (0, h.isStringArray)(l) ? (u = this, v = l, y = o, g = r) : (u = l, v = o, y = r, g = i);
- var w = function() {
- for (var C = [], S = 0; arguments.length > S; S++) C[S] = arguments[S];
- return b.off(u, v, w), y.apply(void 0, n.__spreadArray([], n.__read(C), !1));
- };
- return this.on(u, v, w, g), this;
- }, p.prototype.off = function(l, o, r) {
- var i, u, v, y = this;
- if ((0, h.isString)(l) || (0, h.isStringArray)(l) ? (i = this, u = l, v = o) : (i = l, u = o, v = r), (0, d.isArray)(i)) return i.forEach(function(j) {
- y.off(j, u, v);
- }), this;
- var g = i, b = this.__getStore(g);
- if (!(0, h.isString)(u) && !(0, h.isStringArray)(u) || u.length === 0) return b.namespaces().forEach(function(j) {
- y.off(g, "." + j);
- }), this.__removeStoreFromSubject(g), this;
- var w = (0, f.isFunction)(g.removeEventListener), C = function(j) {
- w && g.removeEventListener(j.event, j.syntheticCallback, !1);
- }, S = function(j, E) {
- if (j !== "") {
- var x = b.get(j, E);
- if (x && x.length) if ((0, f.isFunction)(v)) {
- var k = b.indexOf(j, E, v);
- k !== !1 && (C(x[k]), x.splice(k, 1), x.length || b.clearEvents(E, j));
- } else x.forEach(C), x.length = 0, b.clearEvents(E, j);
- } else b.events(E).forEach(function(I) {
- I !== "" && S(I, E);
- });
- };
- return this.__eachEvent(u, function(j, E) {
- E === m.defaultNameSpace ? b.namespaces().forEach(function(x) {
- S(j, x);
- }) : S(j, E);
- }), b.isEmpty() && this.__removeStoreFromSubject(g), this;
- }, p.prototype.stopPropagation = function(l, o) {
- var r = this, i = (0, h.isString)(l) ? this : l, u = (0, h.isString)(l) ? l : o;
- if (typeof u != "string") throw (0, a.error)("Need event names");
- var v = this.__getStore(i);
- this.__eachEvent(u, function(y, g) {
- var b = v.get(y, g);
- b && r.__stopped.push(b), g === m.defaultNameSpace && v.namespaces(!0).forEach(function(w) {
- return r.stopPropagation(i, y + "." + w);
- });
- });
- }, p.prototype.__removeStop = function(l) {
- if (l) {
- var o = this.__stopped.indexOf(l);
- o !== -1 && this.__stopped.splice(0, o + 1);
- }
- }, p.prototype.__isStopped = function(l) {
- return l !== void 0 && this.__stopped.indexOf(l) !== -1;
- }, p.prototype.fire = function(l, o) {
- for (var r, i, u = this, v = [], y = 2; arguments.length > y; y++) v[y - 2] = arguments[y];
- var g = (0, h.isString)(l) ? this : l, b = (0, h.isString)(l) ? l : o, w = (0, h.isString)(l) ? n.__spreadArray([o], n.__read(v), !1) : v, C = (0, f.isFunction)(g.dispatchEvent);
- if (!C && !(0, h.isString)(b)) throw (0, a.error)("Need events names");
- var S = this.__getStore(g);
- return !(0, h.isString)(b) && C ? this.__triggerNativeEvent(g, o) : this.__eachEvent(b, function(j, E) {
- if (C) u.__triggerNativeEvent(g, j);
- else {
- var x = S.get(j, E);
- if (x) try {
- n.__spreadArray([], n.__read(x), !1).every(function(k) {
- var I;
- return !u.__isStopped(x) && (u.currents.push(j), i = (I = k.syntheticCallback).call.apply(I, n.__spreadArray([g, j], n.__read(w), !1)), u.currents.pop(), i !== void 0 && (r = i), !0);
- });
- } finally {
- u.__removeStop(x);
- }
- E !== m.defaultNameSpace || C || S.namespaces().filter(function(k) {
- return k !== E;
- }).forEach(function(k) {
- var I = u.fire.apply(u, n.__spreadArray([g, j + "." + k], n.__read(w), !1));
- I !== void 0 && (r = I);
- });
- }
- }), r;
- }, p.prototype.destruct = function() {
- this.__isDestructed && (this.__isDestructed = !0, this.off(this), this.__getStore(this).clear(), this.__removeStoreFromSubject(this));
- }, p;
- }();
- t.EventEmitter = c;
- }, 73852: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Eventify = void 0;
- var n = e(20255), m = function() {
- function h() {
- this.__map = /* @__PURE__ */ new Map();
- }
- return h.prototype.on = function(f, d) {
- var a;
- return this.__map.has(f) || this.__map.set(f, /* @__PURE__ */ new Set()), (a = this.__map.get(f)) === null || a === void 0 || a.add(d), this;
- }, h.prototype.off = function(f, d) {
- var a;
- return this.__map.has(f) && ((a = this.__map.get(f)) === null || a === void 0 || a.delete(d)), this;
- }, h.prototype.destruct = function() {
- this.__map.clear();
- }, h.prototype.emit = function(f) {
- for (var d, a, s = [], c = 1; arguments.length > c; c++) s[c - 1] = arguments[c];
- return this.__map.has(f) && ((d = this.__map.get(f)) === null || d === void 0 || d.forEach(function(p) {
- a = p.apply(void 0, n.__spreadArray([], n.__read(s), !1));
- })), a;
- }, h;
- }();
- t.Eventify = m;
- }, 55395: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(3808), t), n.__exportStar(e(73852), t), n.__exportStar(e(88418), t), n.__exportStar(e(83611), t);
- }, 88418: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.observable = void 0;
- var n = e(20255), m = e(49781), h = e(32756), f = e(79736), d = e(46163), a = Symbol("observable-object");
- function s(c) {
- return c[a] !== void 0;
- }
- t.observable = function(c) {
- if (s(c)) return c;
- var p = {}, l = {}, o = function(u, v) {
- return (0, m.isArray)(u) ? (u.map(function(y) {
- return o(y, v);
- }), c) : (l[u] || (l[u] = []), l[u].push(v), c);
- }, r = function(u) {
- for (var v = [], y = 1; arguments.length > y; y++) v[y - 1] = arguments[y];
- if ((0, m.isArray)(u)) u.map(function(g) {
- return r.apply(void 0, n.__spreadArray([g], n.__read(v), !1));
- });
- else try {
- !p[u] && l[u] && (p[u] = !0, l[u].forEach(function(g) {
- return g.call.apply(g, n.__spreadArray([c], n.__read(v), !1));
- }));
- } finally {
- p[u] = !1;
- }
- }, i = function(u, v) {
- v === void 0 && (v = []);
- var y = {};
- s(u) || (Object.defineProperty(u, a, { enumerable: !1, value: !0 }), Object.keys(u).forEach(function(g) {
- var b = g, w = v.concat(b).filter(function(S) {
- return S.length;
- });
- y[b] = u[b];
- var C = (0, d.getPropertyDescriptor)(u, b);
- Object.defineProperty(u, b, { set: function(S) {
- var j = y[b];
- if (!(0, h.isFastEqual)(y[b], S)) {
- r(["beforeChange", "beforeChange.".concat(w.join("."))], b, S), (0, f.isPlainObject)(S) && i(S, w), C && C.set ? C.set.call(c, S) : y[b] = S;
- var E = [];
- r(n.__spreadArray(["change"], n.__read(w.reduce(function(x, k) {
- return E.push(k), x.push("change.".concat(E.join("."))), x;
- }, [])), !1), w.join("."), j, S != null && S.valueOf ? S.valueOf() : S);
- }
- }, get: function() {
- return C && C.get ? C.get.call(c) : y[b];
- }, enumerable: !0, configurable: !0 }), (0, f.isPlainObject)(y[b]) && i(y[b], w);
- }), Object.defineProperty(c, "on", { value: o }));
- };
- return i(c), c;
- };
- }, 83611: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.EventHandlersStore = t.defaultNameSpace = void 0, e(52378);
- var n = e(1853);
- t.defaultNameSpace = "JoditEventDefaultNamespace";
- var m = function() {
- function h() {
- this.__store = /* @__PURE__ */ new Map();
- }
- return h.prototype.get = function(f, d) {
- if (this.__store.has(d)) return this.__store.get(d)[f];
- }, h.prototype.indexOf = function(f, d, a) {
- var s = this.get(f, d);
- if (s) {
- for (var c = 0; s.length > c; c += 1) if (s[c].originalCallback === a) return c;
- }
- return !1;
- }, h.prototype.namespaces = function(f) {
- f === void 0 && (f = !1);
- var d = (0, n.toArray)(this.__store.keys());
- return f ? d.filter(function(a) {
- return a !== t.defaultNameSpace;
- }) : d;
- }, h.prototype.events = function(f) {
- var d = this.__store.get(f);
- return d ? Object.keys(d) : [];
- }, h.prototype.set = function(f, d, a, s) {
- s === void 0 && (s = !1);
- var c = this.__store.get(d);
- c || this.__store.set(d, c = {}), c[f] === void 0 && (c[f] = []), s ? c[f].unshift(a) : c[f].push(a);
- }, h.prototype.clear = function() {
- this.__store.clear();
- }, h.prototype.clearEvents = function(f, d) {
- var a = this.__store.get(f);
- a && a[d] && (delete a[d], Object.keys(a).length || this.__store.delete(f));
- }, h.prototype.isEmpty = function() {
- return this.__store.size === 0;
- }, h;
- }();
- t.EventHandlersStore = m;
- }, 17332: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.eventEmitter = t.getContainer = t.extendLang = t.modules = t.pluginSystem = t.uniqueUid = t.instances = void 0;
- var n = e(44540), m = e(64968), h = e(55395), f = e(77892), d = e(96574), a = e(87247), s = e(11278), c = e(86893);
- t.instances = {};
- var p = 1, l = /* @__PURE__ */ new Set();
- t.uniqueUid = function() {
- function r() {
- return p += 10 * (Math.random() + 1), Math.round(p).toString(16);
- }
- for (var i = r(); l.has(i); ) i = r();
- return l.add(i), i;
- }, t.pluginSystem = new n.PluginSystem(), t.modules = {}, t.extendLang = function(r) {
- Object.keys(r).forEach(function(i) {
- c.lang[i] ? Object.assign(c.lang[i], r[i]) : c.lang[i] = r[i];
- });
- };
- var o = /* @__PURE__ */ new WeakMap();
- t.getContainer = function(r, i, u, v) {
- u === void 0 && (u = "div"), v === void 0 && (v = !1);
- var y = i ? (0, a.getClassName)(i.prototype) : "jodit-utils", g = o.get(r) || {}, b = y + u, w = (0, d.isViewObject)(r) ? r : r.j;
- if (!g[b]) {
- var C = w.c, S = (0, f.isJoditObject)(r) && r.o.shadowRoot ? r.o.shadowRoot : r.od.body;
- if (v && (0, f.isJoditObject)(r) && r.od !== r.ed) {
- C = r.createInside;
- var j = u === "style" ? r.ed.head : r.ed.body;
- S = (0, f.isJoditObject)(r) && r.o.shadowRoot ? r.o.shadowRoot : j;
- }
- var E = C.element(u, { className: "jodit jodit-".concat((0, s.kebabCase)(y), "-container jodit-box") });
- E.classList.add("jodit_theme_".concat(w.o.theme || "default")), S.appendChild(E), g[b] = E, r.hookStatus("beforeDestruct", function() {
- m.Dom.safeRemove(E), delete g[b], Object.keys(g).length && o.delete(r);
- }), o.set(r, g);
- }
- return g[b].classList.remove("jodit_theme_default", "jodit_theme_dark"), g[b].classList.add("jodit_theme_".concat(w.o.theme || "default")), g[b];
- }, t.eventEmitter = new h.EventEmitter();
- }, 34578: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.asArray = void 0;
- var n = e(49781);
- t.asArray = function(m) {
- return (0, n.isArray)(m) ? m : [m];
- };
- }, 12557: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.toArray = t.splitArray = t.asArray = void 0;
- var n = e(34578);
- Object.defineProperty(t, "asArray", { enumerable: !0, get: function() {
- return n.asArray;
- } });
- var m = e(14556);
- Object.defineProperty(t, "splitArray", { enumerable: !0, get: function() {
- return m.splitArray;
- } });
- var h = e(1853);
- Object.defineProperty(t, "toArray", { enumerable: !0, get: function() {
- return h.toArray;
- } });
- }, 14556: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.splitArray = void 0, t.splitArray = function(e) {
- return Array.isArray(e) ? e : e.split(/[,\s]+/);
- };
- }, 1853: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.toArray = void 0;
- var n = e(80861), m = e(28069);
- t.toArray = function() {
- for (var h, f = [], d = 0; arguments.length > d; d++) f[d] = arguments[d];
- var a = (0, m.isNativeFunction)(Array.from) ? Array.from : (h = (0, n.reset)("Array.from")) !== null && h !== void 0 ? h : Array.from;
- return a.apply(Array, f);
- };
- }, 4696: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(27512), t);
- }, 27512: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.clearTimeout = t.setTimeout = void 0;
- var n = e(20255);
- t.setTimeout = function(m, h) {
- for (var f = [], d = 2; arguments.length > d; d++) f[d - 2] = arguments[d];
- return h ? window.setTimeout.apply(window, n.__spreadArray([m, h], n.__read(f), !1)) : (m.call.apply(m, n.__spreadArray([null], n.__read(f), !1)), 0);
- }, t.clearTimeout = function(m) {
- window.clearTimeout(m);
- };
- }, 31553: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.hasBrowserColorPicker = void 0, t.hasBrowserColorPicker = function() {
- var e = !0;
- try {
- var n = document.createElement("input");
- n.type = "color", n.value = "!", e = n.type === "color" && n.value !== "!";
- } catch (m) {
- e = !1;
- }
- return e;
- };
- }, 10172: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(31553), t), n.__exportStar(e(49781), t), n.__exportStar(e(67749), t), n.__exportStar(e(32756), t), n.__exportStar(e(42096), t), n.__exportStar(e(66869), t), n.__exportStar(e(72543), t), n.__exportStar(e(33156), t), n.__exportStar(e(93578), t), n.__exportStar(e(77892), t), n.__exportStar(e(96574), t), n.__exportStar(e(60280), t), n.__exportStar(e(28069), t), n.__exportStar(e(61817), t), n.__exportStar(e(57649), t), n.__exportStar(e(79736), t), n.__exportStar(e(26335), t), n.__exportStar(e(24421), t), n.__exportStar(e(64350), t), n.__exportStar(e(19179), t), n.__exportStar(e(24021), t), n.__exportStar(e(85994), t), n.__exportStar(e(37204), t);
- }, 49781: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isArray = void 0, t.isArray = function(e) {
- return Array.isArray(e);
- };
- }, 67749: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isBoolean = void 0, t.isBoolean = function(e) {
- return typeof e == "boolean";
- };
- }, 32756: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isFastEqual = t.isEqual = void 0;
- var n = e(42554);
- t.isEqual = function(m, h) {
- return m === h || (0, n.stringify)(m) === (0, n.stringify)(h);
- }, t.isFastEqual = function(m, h) {
- return m === h;
- };
- }, 42096: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isFunction = void 0, t.isFunction = function(e) {
- return typeof e == "function";
- };
- }, 72543: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isHtmlFromWord = void 0, t.isHtmlFromWord = function(e) {
- return e.search(/<meta.*?Microsoft Excel\s[\d].*?>/) !== -1 || e.search(/<meta.*?Microsoft Word\s[\d].*?>/) !== -1 || e.search(/style="[^"]*mso-/) !== -1 && e.search(/<font/) !== -1;
- };
- }, 66869: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isHTML = void 0;
- var n = e(24421);
- t.isHTML = function(m) {
- return (0, n.isString)(m) && /<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(m.replace(/[\r\n]/g, ""));
- };
- }, 33156: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.hasContainer = t.isDestructable = t.isInitable = void 0;
- var n = e(42096), m = e(24263), h = e(24021);
- t.isInitable = function(f) {
- return !(0, h.isVoid)(f) && (0, n.isFunction)(f.init);
- }, t.isDestructable = function(f) {
- return !(0, h.isVoid)(f) && (0, n.isFunction)(f.destruct);
- }, t.hasContainer = function(f) {
- return !(0, h.isVoid)(f) && m.Dom.isElement(f.container);
- };
- }, 93578: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isInt = void 0;
- var n = e(57649), m = e(24421);
- t.isInt = function(h) {
- return (0, m.isString)(h) && (0, n.isNumeric)(h) && (h = parseFloat(h)), typeof h == "number" && Number.isFinite(h) && !(h % 1);
- };
- }, 77892: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isJoditObject = void 0;
- var n = e(42096);
- t.isJoditObject = function(m) {
- return !!(m && m instanceof Object && (0, n.isFunction)(m.constructor) && (typeof Jodit != "undefined" && m instanceof Jodit || m.isJodit));
- };
- }, 60280: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isLicense = void 0;
- var n = e(24421);
- t.isLicense = function(m) {
- return (0, n.isString)(m) && m.length === 23 && /^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(m);
- };
- }, 37204: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isMarker = void 0;
- var n = e(24263), m = e(86893);
- t.isMarker = function(h) {
- return n.Dom.isNode(h) && n.Dom.isTag(h, "span") && h.hasAttribute("data-" + m.MARKER_CLASS);
- };
- }, 28069: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isNativeFunction = void 0, t.isNativeFunction = function(e) {
- return !!e && (typeof e).toLowerCase() === "function" && (e === Function.prototype || /^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)));
- };
- }, 61817: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isNumber = void 0, t.isNumber = function(e) {
- return typeof e == "number" && !isNaN(e) && isFinite(e);
- };
- }, 57649: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isNumeric = void 0;
- var n = e(24421);
- t.isNumeric = function(m) {
- if ((0, n.isString)(m)) {
- if (!m.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/)) return !1;
- m = parseFloat(m);
- }
- return typeof m == "number" && !isNaN(m) && isFinite(m);
- };
- }, 79736: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isPlainObject = void 0;
- var n = e(85994);
- t.isPlainObject = function(m) {
- return !(!m || typeof m != "object" || m.nodeType || (0, n.isWindow)(m) || m.constructor && !{}.hasOwnProperty.call(m.constructor.prototype, "isPrototypeOf"));
- };
- }, 26335: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isPromise = void 0, t.isPromise = function(e) {
- return e && typeof e.then == "function";
- };
- }, 24421: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isStringArray = t.isString = void 0;
- var n = e(49781);
- function m(h) {
- return typeof h == "string";
- }
- t.isString = m, t.isStringArray = function(h) {
- return (0, n.isArray)(h) && m(h[0]);
- };
- }, 64350: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isURL = void 0, t.isURL = function(e) {
- if (e.includes(" ")) return !1;
- if (typeof URL != "undefined") try {
- var n = new URL(e);
- return ["https:", "http:", "ftp:", "file:", "rtmp:"].includes(n.protocol);
- } catch (h) {
- return !1;
- }
- var m = document.createElement("a");
- return m.href = e, !!m.hostname;
- };
- }, 19179: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isValidName = void 0, t.isValidName = function(e) {
- return !!e.length && !/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(e);
- };
- }, 96574: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isViewObject = void 0;
- var n = e(42096);
- t.isViewObject = function(m) {
- return !!(m && m instanceof Object && (0, n.isFunction)(m.constructor) && m.isView);
- };
- }, 24021: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isVoid = void 0, t.isVoid = function(e) {
- return e == null;
- };
- }, 85994: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isWindow = void 0, t.isWindow = function(e) {
- return e != null && e === e.window;
- };
- }, 13203: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.colorToHex = void 0, t.colorToHex = function(e) {
- if (e === "rgba(0, 0, 0, 0)" || e === "") return !1;
- if (!e) return "#000000";
- if (e.substr(0, 1) === "#") return e;
- var n = /([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e) || /([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);
- if (!n) return "#000000";
- for (var m = parseInt(n[2], 10), h = parseInt(n[3], 10), f = (parseInt(n[4], 10) | h << 8 | m << 16).toString(16).toUpperCase(); 6 > f.length; ) f = "0" + f;
- return n[1] + "#" + f;
- };
- }, 61354: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(13203), t);
- }, 66546: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.applyStyles = void 0;
- var n = e(24263), m = e(76502), h = e(33941);
- function f(d) {
- return d.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi, "").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi, "").replace(/border[a-z-]*:[\s]*[^;]+;/gi, "").replace(/([0-9.]+)(pt|cm)/gi, function(a, s, c) {
- switch (c.toLowerCase()) {
- case "pt":
- return (1.328 * parseFloat(s)).toFixed(0) + "px";
- case "cm":
- return (0.02645833 * parseFloat(s)).toFixed(0) + "px";
- }
- return a;
- });
- }
- t.applyStyles = function(d) {
- if (d.indexOf("<html ") === -1) return d;
- d = (d = d.substring(d.indexOf("<html "), d.length)).substring(0, d.lastIndexOf("</html>") + 7);
- var a = document.createElement("iframe");
- a.style.display = "none", document.body.appendChild(a);
- var s = "";
- try {
- var c = a.contentDocument || (a.contentWindow ? a.contentWindow.document : null);
- if (c) {
- c.open(), c.write(d), c.close();
- try {
- for (var p = function(o) {
- for (var r = c.styleSheets[o].cssRules, i = function(v) {
- if (r[v].selectorText === "") return "continue";
- (0, m.$$)(r[v].selectorText, c.body).forEach(function(y) {
- y.style.cssText = f(r[v].style.cssText + ";" + y.style.cssText);
- });
- }, u = 0; r.length > u; u += 1) i(u);
- }, l = 0; c.styleSheets.length > l; l += 1) p(l);
- } catch (o) {
- }
- n.Dom.each(c.body, function(o) {
- if (n.Dom.isElement(o)) {
- var r = o, i = r.getAttribute("style");
- i && (r.style.cssText = f(i)), r.hasAttribute("style") && !r.getAttribute("style") && r.removeAttribute("style");
- }
- }), s = c.firstChild ? (0, h.trim)(c.body.innerHTML) : "";
- }
- } catch (o) {
- } finally {
- n.Dom.safeRemove(a);
- }
- return s && (d = s), (0, h.trim)(d.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, "").replace(/<!--[^>]*>/g, ""));
- };
- }, 33316: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.cleanFromWord = void 0;
- var n = e(24263), m = e(33941), h = e(1853);
- t.cleanFromWord = function(f) {
- f.indexOf("<html ") !== -1 && (f = (f = f.substring(f.indexOf("<html "), f.length)).substring(0, f.lastIndexOf("</html>") + 7));
- var d = "";
- try {
- var a = document.createElement("div");
- a.innerHTML = f;
- var s = [];
- a.firstChild && n.Dom.each(a, function(c) {
- if (c) switch (c.nodeType) {
- case Node.ELEMENT_NODE:
- switch (c.nodeName) {
- case "STYLE":
- case "LINK":
- case "META":
- s.push(c);
- break;
- case "W:SDT":
- case "W:SDTPR":
- case "FONT":
- n.Dom.unwrap(c);
- break;
- default:
- (0, h.toArray)(c.attributes).forEach(function(p) {
- ["src", "href", "rel", "content"].indexOf(p.name.toLowerCase()) === -1 && c.removeAttribute(p.name);
- });
- }
- break;
- case Node.TEXT_NODE:
- break;
- default:
- s.push(c);
- }
- }), n.Dom.safeRemove.apply(null, s), d = a.innerHTML;
- } catch (c) {
- }
- return d && (f = d), (f = f.split(/(\n)/).filter(m.trim).join(`
- `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g, "").replace(/<!--[^>]*>/g, "");
- };
- }, 46639: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.htmlspecialchars = void 0, t.htmlspecialchars = function(e) {
- var n = document.createElement("div");
- return n.textContent = e, n.innerHTML;
- };
- }, 13098: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(66546), t), n.__exportStar(e(33316), t), n.__exportStar(e(46639), t), n.__exportStar(e(11336), t), n.__exportStar(e(67128), t), n.__exportStar(e(86645), t);
- }, 86645: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.nl2br = void 0, t.nl2br = function(e) {
- return e.replace(/\r\n|\r|\n/g, "<br/>");
- };
- }, 67128: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.sanitizeHTMLElement = t.safeHTML = void 0;
- var n = e(76502), m = e(24263);
- function h(f, d) {
- var a = d === void 0 ? { safeJavaScriptLink: !0, removeOnError: !0 } : d, s = a.safeJavaScriptLink, c = a.removeOnError;
- if (!m.Dom.isElement(f)) return !1;
- var p = !1;
- c && f.hasAttribute("onerror") && ((0, n.attr)(f, "onerror", null), p = !0);
- var l = f.getAttribute("href");
- return s && l && l.trim().indexOf("javascript") === 0 && ((0, n.attr)(f, "href", location.protocol + "//" + l), p = !0), p;
- }
- t.safeHTML = function(f, d) {
- (m.Dom.isElement(f) || m.Dom.isFragment(f)) && (d.removeOnError && (h(f), (0, n.$$)("[onerror]", f).forEach(function(a) {
- return h(a, d);
- })), d.safeJavaScriptLink && (h(f), (0, n.$$)('a[href^="javascript"]', f).forEach(function(a) {
- return h(a, d);
- })));
- }, t.sanitizeHTMLElement = h;
- }, 11336: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.stripTags = void 0;
- var n = e(24421), m = e(76502), h = e(33941), f = e(24263), d = /* @__PURE__ */ new Set(["div", "p", "br", "h1", "h2", "h3", "h4", "h5", "h6", "hr"]), a = /* @__PURE__ */ new Set(["script", "style"]);
- t.stripTags = function s(c, p, l) {
- p === void 0 && (p = document), l === void 0 && (l = null);
- var o = p.createElement("div");
- return (0, n.isString)(c) ? o.innerHTML = c : o.appendChild(c), (0, m.$$)("*", o).forEach(function(r) {
- var i = r.parentNode;
- if (i) {
- if (l && f.Dom.isTag(r, l)) {
- var u = r.nodeName.toLowerCase(), v = f.Dom.isTag(r, ["br", "hr", "input"]) ? "%%%jodit-single-".concat(u, "%%%") : "%%%jodit-".concat(u, "%%%").concat(s(r.innerHTML, p, l), "%%%/jodit-").concat(u, "%%%");
- return f.Dom.before(r, p.createTextNode(v)), void f.Dom.safeRemove(r);
- }
- if (f.Dom.isTag(r, a)) f.Dom.safeRemove(r);
- else if (f.Dom.isTag(r, d)) {
- var y = r.nextSibling;
- f.Dom.isText(y) && /^\s/.test(y.nodeValue || "") || y && i.insertBefore(p.createTextNode(" "), y);
- }
- }
- }), (0, h.trim)(o.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g, function(r, i, u, v) {
- return "<".concat(i ? "/" : "").concat(v, ">");
- });
- };
- }, 40332: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(76502), t), n.__exportStar(e(12557), t), n.__exportStar(e(4696), t), n.__exportStar(e(10172), t), n.__exportStar(e(61354), t), n.__exportStar(e(13098), t), n.__exportStar(e(89693), t), n.__exportStar(e(90954), t), n.__exportStar(e(19035), t);
- }, 89693: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(48926), t), n.__exportStar(e(78648), t), n.__exportStar(e(74504), t), n.__exportStar(e(50870), t), n.__exportStar(e(76787), t), n.__exportStar(e(93251), t), n.__exportStar(e(91518), t), n.__exportStar(e(49353), t), n.__exportStar(e(64274), t);
- }, 64274: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeColor = void 0;
- var n = e(61354), m = e(19035);
- t.normalizeColor = function(h) {
- var f = ["#"], d = (0, n.colorToHex)(h);
- if (!d) return !1;
- if ((d = (d = (0, m.trim)(d.toUpperCase())).substr(1)).length === 3) {
- for (var a = 0; 3 > a; a += 1) f.push(d[a]), f.push(d[a]);
- return f.join("");
- }
- return d.length > 6 && (d = d.substr(0, 6)), "#" + d;
- };
- }, 49353: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeCssValue = t.normalizeCssNumericValue = t.NUMBER_FIELDS_REG = void 0;
- var n = e(57649), m = e(11278), h = e(13203), f = e(24021);
- t.NUMBER_FIELDS_REG = /^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i, t.normalizeCssNumericValue = function(d, a) {
- return !(0, f.isVoid)(a) && t.NUMBER_FIELDS_REG.test(d) && (0, n.isNumeric)(a.toString()) ? parseInt(a.toString(), 10) + "px" : a;
- }, t.normalizeCssValue = function(d, a) {
- if ((0, m.kebabCase)(d) === "font-weight") {
- switch (a.toString().toLowerCase()) {
- case "700":
- case "bold":
- return 700;
- case "400":
- case "normal":
- return 400;
- case "900":
- case "heavy":
- return 900;
- }
- return (0, n.isNumeric)(a) ? Number(a) : a;
- }
- return /color/i.test(d) && /^rgb/i.test(a.toString()) && (0, h.colorToHex)(a.toString()) || a;
- };
- }, 48926: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeKeyAliases = void 0;
- var n = e(33941), m = e(86893);
- t.normalizeKeyAliases = function(h) {
- var f = {}, d = { meta: 1, ctrl: 2, control: 2, alt: 3, shift: 4 };
- return h.replace(/\+\+/g, "+add").split(/[\s]*\+[\s]*/).map(function(a) {
- return (0, n.trim)(a.toLowerCase());
- }).map(function(a) {
- return m.KEY_ALIASES[a] || a;
- }).sort(function(a, s) {
- return d[a] && !d[s] ? -1 : !d[a] && d[s] ? 1 : d[a] && d[s] ? d[a] - d[s] : a > s ? 1 : -1;
- }).filter(function(a) {
- return !f[a] && a !== "" && (f[a] = !0);
- }).join("+");
- };
- }, 78648: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeLicense = void 0, t.normalizeLicense = function(e, n) {
- n === void 0 && (n = 8);
- for (var m = []; e.length; ) m.push(e.substr(0, n)), e = e.substr(n);
- return m[1] = m[1].replace(/./g, "*"), m[2] = m[2].replace(/./g, "*"), m.join("-");
- };
- }, 74504: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeNode = void 0;
- var n = e(86893), m = e(24263);
- t.normalizeNode = function h(f) {
- if (f) {
- if (m.Dom.isText(f) && f.nodeValue != null && f.parentNode) for (; m.Dom.isText(f.nextSibling); ) f.nextSibling.nodeValue != null && (f.nodeValue += f.nextSibling.nodeValue), f.nodeValue = f.nodeValue.replace((0, n.INVISIBLE_SPACE_REG_EXP)(), ""), m.Dom.safeRemove(f.nextSibling);
- else h(f.firstChild);
- h(f.nextSibling);
- }
- };
- }, 50870: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizePath = void 0;
- var n = e(19035);
- t.normalizePath = function() {
- for (var m = [], h = 0; arguments.length > h; h++) m[h] = arguments[h];
- return m.filter(function(f) {
- return (0, n.trim)(f).length;
- }).map(function(f, d) {
- return f = f.replace(/([^:])[\\/]+/g, "$1/"), d && (f = f.replace(/^\//, "")), d !== m.length - 1 && (f = f.replace(/\/$/, "")), f;
- }).join("/");
- };
- }, 76787: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeRelativePath = void 0, t.normalizeRelativePath = function(e) {
- return e.split("/").reduce(function(n, m) {
- switch (m) {
- case "":
- case ".":
- break;
- case "..":
- n.pop();
- break;
- default:
- n.push(m);
- }
- return n;
- }, []).join("/") + (e.endsWith("/") ? "/" : "");
- };
- }, 93251: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeSize = void 0, t.normalizeSize = function(e) {
- return /^[0-9]+$/.test(e.toString()) ? e + "px" : e.toString();
- };
- }, 91518: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeUrl = void 0, t.normalizeUrl = function() {
- for (var e = [], n = 0; arguments.length > n; n++) e[n] = arguments[n];
- return e.filter(function(m) {
- return m.length;
- }).map(function(m) {
- return m.replace(/\/$/, "");
- }).join("/").replace(/([^:])[\\/]+/g, "$1/");
- };
- }, 1684: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getContentWidth = void 0, t.getContentWidth = function(e, n) {
- var m = function(f) {
- return parseInt(f, 10);
- }, h = n.getComputedStyle(e);
- return e.offsetWidth - m(h.getPropertyValue("padding-left") || "0") - m(h.getPropertyValue("padding-right") || "0");
- };
- }, 73874: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getScrollParent = void 0;
- var n = e(76502), m = e(24263);
- t.getScrollParent = function h(f) {
- if (!f) return null;
- var d = m.Dom.isHTMLElement(f), a = d && (0, n.css)(f, "overflowY");
- return d && a !== "visible" && a !== "hidden" && f.scrollHeight >= f.clientHeight ? f : h(f.parentNode) || document.scrollingElement || document.body;
- };
- }, 90954: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(1684), t), n.__exportStar(e(73874), t), n.__exportStar(e(83810), t), n.__exportStar(e(98701), t), n.__exportStar(e(81710), t), n.__exportStar(e(16492), t);
- }, 83810: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.innerWidth = void 0, t.innerWidth = function(e, n) {
- var m = n.getComputedStyle(e);
- return e.clientWidth - (parseFloat(m.paddingLeft || "0") + parseFloat(m.paddingRight || "0"));
- };
- }, 16492: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.size = void 0;
- var n = e(10172);
- t.size = function(m) {
- return (0, n.isString)(m) || (0, n.isArray)(m) ? m.length : (0, n.isPlainObject)(m) ? Object.keys(m).length : 0;
- };
- }, 98701: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.offset = void 0, t.offset = function(e, n, m, h) {
- var f;
- h === void 0 && (h = !1);
- try {
- f = e.getBoundingClientRect();
- } catch (y) {
- f = { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0 };
- }
- var d, a, s = m.body, c = m.documentElement || { clientTop: 0, clientLeft: 0, scrollTop: 0, scrollLeft: 0 }, p = m.defaultView || m.parentWindow, l = p.pageYOffset || c.scrollTop || s.scrollTop, o = p.pageXOffset || c.scrollLeft || s.scrollLeft, r = c.clientTop || s.clientTop || 0, i = c.clientLeft || s.clientLeft || 0, u = n.iframe;
- if (!h && n && n.options && n.o.iframe && u) {
- var v = (0, t.offset)(u, n, n.od, !0);
- d = f.top + v.top, a = f.left + v.left;
- } else d = f.top + l - r, a = f.left + o - i;
- return { top: Math.round(d), left: Math.round(a), width: f.width, height: f.height };
- };
- }, 81710: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.position = void 0;
- var n = e(77892);
- t.position = function m(h, f, d) {
- d === void 0 && (d = !1);
- var a = h.getBoundingClientRect(), s = a.left, c = a.top;
- if ((0, n.isJoditObject)(f) && f.iframe && f.ed.body.contains(h) && !d) {
- var p = m(f.iframe, f, !0);
- s += p.left, c += p.top;
- }
- return { left: Math.round(s), top: Math.round(c), width: Math.round(h.offsetWidth), height: Math.round(h.offsetHeight) };
- };
- }, 26596: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.camelCase = void 0, t.camelCase = function(e) {
- return e.replace(/([-_])(.)/g, function(n, m, h) {
- return h.toUpperCase();
- });
- };
- }, 93163: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.fuzzySearchIndex = void 0;
- var n = e(86893);
- t.fuzzySearchIndex = function(m, h, f, d) {
- f === void 0 && (f = 0), d === void 0 && (d = 1);
- var a = 0, s = 0, c = -1, p = 0, l = 0;
- for (s = f; m.length > a && h.length > s; ) m[a].toLowerCase() === h[s].toLowerCase() ? (a++, p++, l = 0, c === -1 && (c = s)) : a > 0 && (d > l || h[s] === n.INVISIBLE_SPACE ? (l++, p++) : (a = 0, c = -1, p = 0, l = 0, s--)), s++;
- return a === m.length ? [c, p] : [-1, 0];
- };
- }, 11625: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.i18n = t.sprintf = void 0;
- var n = e(93166), m = e(76502), h = e(24421), f = e(13449), d = e(86893);
- t.sprintf = function(a, s) {
- if (!s || !s.length) return a;
- for (var c = /%([sd])/g, p = c.exec(a), l = a, o = 0; p && s[o] !== void 0; ) l = l.replace(p[0], s[o].toString()), o += 1, p = c.exec(a);
- return l;
- }, t.i18n = function(a, s, c) {
- if (!(0, h.isString)(a)) throw (0, m.error)("i18n: Need string in first argument");
- if (!a.length) return a;
- var p = !!(c != null && c.debugLanguage), l = {}, o = function(g) {
- return s && s.length ? (0, t.sprintf)(g, s) : g;
- }, r = (0, m.defaultLanguage)(n.Config.defaultOptions.language, n.Config.defaultOptions.language), i = (0, m.defaultLanguage)(c == null ? void 0 : c.language, r), u = function(g) {
- if (g) {
- if ((0, h.isString)(g[a])) return o(g[a]);
- var b = a.toLowerCase();
- if ((0, h.isString)(g[b])) return o(g[b]);
- var w = (0, f.ucfirst)(a);
- return (0, h.isString)(g[w]) ? o(g[w]) : void 0;
- }
- };
- d.lang[i] !== void 0 ? l = d.lang[i] : p || (l = d.lang[r] !== void 0 ? d.lang[r] : d.lang.en);
- var v = c == null ? void 0 : c.i18n;
- if (v && v[i]) {
- var y = u(v[i]);
- if (y) return y;
- }
- return u(l) || (!p && d.lang.en && (0, h.isString)(d.lang.en[a]) && d.lang.en[a] ? o(d.lang.en[a]) : p ? "{" + a + "}" : o(a));
- };
- }, 19035: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(26596), t), n.__exportStar(e(93163), t), n.__exportStar(e(11625), t), n.__exportStar(e(11278), t), n.__exportStar(e(42554), t), n.__exportStar(e(33941), t), n.__exportStar(e(13449), t);
- }, 11278: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.CamelCaseToKebabCase = t.kebabCase = void 0, t.kebabCase = function(e) {
- return e.replace(/([A-Z])([A-Z])([a-z])/g, "$1-$2$3").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
- }, t.CamelCaseToKebabCase = function(e) {
- return e.replace(/([A-Z])([A-Z])([a-z])/g, "$1-$2$3").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
- };
- }, 42554: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.stringify = void 0, t.stringify = function(e, n) {
- if (n === void 0 && (n = {}), typeof e != "object") return String(e);
- var m = new Set(n.excludeKeys), h = /* @__PURE__ */ new WeakMap();
- return JSON.stringify(e, function(f, d) {
- if (!m.has(f)) {
- if (typeof d == "object" && d != null) {
- if (h.get(d)) return "[refObject]";
- h.set(d, !0);
- }
- return d;
- }
- }, n.prettify);
- };
- }, 33941: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.trimInv = t.trim = void 0;
- var n = e(86893);
- t.trim = function(m) {
- return m.replace((0, n.SPACE_REG_EXP_END)(), "").replace((0, n.SPACE_REG_EXP_START)(), "");
- }, t.trimInv = function(m) {
- return m.replace((0, n.INVISIBLE_SPACE_REG_EXP_END)(), "").replace((0, n.INVISIBLE_SPACE_REG_EXP_START)(), "");
- };
- }, 13449: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ucfirst = void 0, t.ucfirst = function(e) {
- return e.length ? e[0].toUpperCase() + e.substr(1) : "";
- };
- }, 60303: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.alignElement = t.clearAlign = t.hAlignElement = void 0;
- var n = e(64968), m = e(26911);
- function h(f) {
- n.Dom.each(f, function(d) {
- n.Dom.isHTMLElement(d) && d.style.textAlign && (d.style.textAlign = "", d.style.cssText.trim().length || d.removeAttribute("style"));
- });
- }
- t.hAlignElement = function(f, d) {
- d && d !== "normal" ? d !== "center" ? ((0, m.css)(f, "float", d), (0, m.clearCenterAlign)(f)) : (0, m.css)(f, { float: "", display: "block", marginLeft: "auto", marginRight: "auto" }) : ((0, m.css)(f, "float") && ["right", "left"].indexOf((0, m.css)(f, "float").toString().toLowerCase()) !== -1 && (0, m.css)(f, "float", ""), (0, m.clearCenterAlign)(f));
- }, t.clearAlign = h, t.alignElement = function(f, d) {
- if (n.Dom.isNode(d) && n.Dom.isElement(d)) switch (h(d), f.toLowerCase()) {
- case "justifyfull":
- d.style.textAlign = "justify";
- break;
- case "justifyright":
- d.style.textAlign = "right";
- break;
- case "justifyleft":
- d.style.textAlign = "left";
- break;
- case "justifycenter":
- d.style.textAlign = "center";
- }
- };
- }, 62462: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.loadNextStyle = t.loadNext = t.appendStyleAsync = t.appendScriptAsync = t.appendScript = void 0;
- var n = e(20255), m = e(48240), h = e(42096), f = e(24421), d = /* @__PURE__ */ new Map(), a = function(s) {
- return function(c, p) {
- return n.__awaiter(void 0, void 0, Promise, function() {
- var l;
- return n.__generator(this, function(o) {
- return d.has(p) ? [2, d.get(p)] : (l = s(c, p), d.set(p, l), [2, l]);
- });
- });
- };
- };
- t.appendScript = function(s, c, p) {
- var l = s.c.element("script");
- return l.type = "text/javascript", l.async = !0, (0, h.isFunction)(p) && !s.isInDestruct && s.e.on(l, "load", p), l.src || (l.src = (0, m.completeUrl)(c)), s.od.body.appendChild(l), { callback: p, element: l };
- }, t.appendScriptAsync = a(function(s, c) {
- return new Promise(function(p, l) {
- var o = (0, t.appendScript)(s, c, p).element;
- !s.isInDestruct && s.e.on(o, "error", l);
- });
- }), t.appendStyleAsync = a(function(s, c) {
- return new Promise(function(p, l) {
- var o = s.c.element("link");
- o.rel = "stylesheet", o.media = "all", o.crossOrigin = "anonymous", !s.isInDestruct && s.e.on(o, "load", function() {
- return p(o);
- }).on(o, "error", l), o.href = (0, m.completeUrl)(c), s.o.shadowRoot ? s.o.shadowRoot.appendChild(o) : s.od.body.appendChild(o);
- });
- }), t.loadNext = function(s, c, p) {
- return p === void 0 && (p = 0), (0, f.isString)(c[p]) ? (0, t.appendScriptAsync)(s, c[p]).then(function() {
- return (0, t.loadNext)(s, c, p + 1);
- }) : Promise.resolve();
- }, t.loadNextStyle = function(s, c, p) {
- return p === void 0 && (p = 0), (0, f.isString)(c[p]) ? (0, t.appendStyleAsync)(s, c[p]).then(function() {
- return (0, t.loadNextStyle)(s, c, p + 1);
- }) : Promise.resolve();
- };
- }, 603: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.assert = void 0;
- var n = e(20255), m = function(h) {
- function f(d) {
- var a = h.call(this, d) || this;
- return a.name = "AssertionError", a;
- }
- return n.__extends(f, h), f;
- }(Error);
- t.assert = function(h, f) {
- if (!h) throw new m("Assertion failed: ".concat(f));
- };
- }, 37682: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.browser = void 0, t.browser = function(e) {
- var n = navigator.userAgent.toLowerCase(), m = /(firefox)[\s/]([\w.]+)/.exec(n) || /(chrome)[\s/]([\w.]+)/.exec(n) || /(webkit)[\s/]([\w.]+)/.exec(n) || /(opera)(?:.*version)[\s/]([\w.]+)/.exec(n) || /(msie)[\s]([\w.]+)/.exec(n) || /(trident)\/([\w.]+)/.exec(n) || 0 > n.indexOf("compatible") || [];
- return e === "version" ? m[2] : e === "webkit" ? m[1] === "chrome" || m[1] === "webkit" : e === "ff" ? m[1] === "firefox" : e === "msie" ? m[1] === "trident" || m[1] === "msie" : m[1] === e;
- };
- }, 71567: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.buildQuery = void 0;
- var n = e(79736);
- t.buildQuery = function(m, h) {
- var f = [], d = encodeURIComponent;
- for (var a in m) if (Object.prototype.hasOwnProperty.call(m, a)) {
- var s = h ? h + "[" + a + "]" : a, c = m[a];
- f.push((0, n.isPlainObject)(c) ? (0, t.buildQuery)(c, s) : d(s) + "=" + d(c));
- }
- return f.join("&");
- };
- }, 48240: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.completeUrl = void 0, t.completeUrl = function(e) {
- return window.location.protocol === "file:" && /^\/\//.test(e) && (e = "https:" + e), e;
- };
- }, 64981: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ConfigFlatten = t.ConfigProto = void 0;
- var n = e(20255), m = e(7935), h = e(49781), f = e(79736), d = e(24421), a = e(24021), s = e(93166), c = e(67309);
- t.ConfigProto = function p(l, o, r) {
- if (r === void 0 && (r = 0), Object.getPrototypeOf(l) !== Object.prototype) return l;
- var i = s.Config.defaultOptions;
- if ((0, d.isString)(l.preset)) {
- if (i.presets[l.preset] !== void 0) {
- var u = i.presets[l.preset];
- Object.keys(u).forEach(function(y) {
- (0, a.isVoid)(l[y]) && (l[y] = u[y]);
- });
- }
- delete l.preset;
- }
- var v = {};
- return Object.keys(l).forEach(function(y) {
- var g = l[y], b = o ? o[y] : null;
- v[y] = (0, f.isPlainObject)(g) && (0, f.isPlainObject)(b) && !(0, m.isAtom)(g) ? p(g, b, r + 1) : r !== 0 && (0, h.isArray)(g) && !(0, m.isAtom)(g) && (0, h.isArray)(b) ? n.__spreadArray(n.__spreadArray([], n.__read(g), !1), n.__read(b.slice(g.length)), !1) : g;
- }), Object.setPrototypeOf(v, o), v;
- }, t.ConfigFlatten = function(p) {
- return (0, c.keys)(p, !1).reduce(function(l, o) {
- return l[o] = p[o], l;
- }, {});
- };
- }, 42051: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.convertMediaUrlToVideoEmbed = void 0;
- var n = e(64350), m = e(67285);
- t.convertMediaUrlToVideoEmbed = function(h, f, d) {
- if (f === void 0 && (f = 400), d === void 0 && (d = 345), !(0, n.isURL)(h)) return h;
- var a = document.createElement("a"), s = /(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;
- a.href = h, f || (f = 400), d || (d = 345);
- var c = a.protocol || "";
- switch (a.hostname) {
- case "www.vimeo.com":
- case "vimeo.com":
- return s.test(h) ? h.replace(s, '<iframe width="' + f + '" height="' + d + '" src="' + c + '//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>') : h;
- case "youtube.com":
- case "www.youtube.com":
- case "youtu.be":
- case "www.youtu.be":
- var p = a.search ? (0, m.parseQuery)(a.search) : { v: a.pathname.substr(1) };
- return p.v ? '<iframe width="' + f + '" height="' + d + '" src="' + c + "//www.youtube.com/embed/" + p.v + '" frameborder="0" allowfullscreen></iframe>' : h;
- }
- return h;
- };
- }, 26911: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.clearCenterAlign = t.css = void 0;
- var n = e(79736), m = e(67749), h = e(49353), f = e(26596), d = e(11278);
- function a(s, c, p, l) {
- if (l === void 0 && (l = !1), (0, m.isBoolean)(p) && (l = p, p = void 0), (0, n.isPlainObject)(c) || p !== void 0) {
- var o = function(w, C, S) {
- (S = (0, h.normalizeCssNumericValue)(C, S)) === void 0 || S != null && a(w, C, !0) === (0, h.normalizeCssValue)(C, S) || (w.style[C] = S);
- };
- if ((0, n.isPlainObject)(c)) for (var r = Object.keys(c), i = 0; r.length > i; i += 1) o(s, (0, f.camelCase)(r[i]), c[r[i]]);
- else o(s, (0, f.camelCase)(c), p);
- return "";
- }
- var u = (0, d.kebabCase)(c), v = s.ownerDocument || document, y = !!v && (v.defaultView || v.parentWindow), g = s.style[c], b = "";
- return g !== void 0 && g !== "" ? b = g : y && !l && (b = y.getComputedStyle(s).getPropertyValue(u)), h.NUMBER_FIELDS_REG.test(c) && /^[-+]?[0-9.]+px$/.test(b.toString()) && (b = parseInt(b.toString(), 10)), (0, h.normalizeCssValue)(c, b);
- }
- t.css = a, t.clearCenterAlign = function(s) {
- a(s, "display") === "block" && a(s, "display", "");
- var c = s.style;
- c.marginLeft === "auto" && c.marginRight === "auto" && (c.marginLeft = "", c.marginRight = "");
- };
- }, 2522: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ctrlKey = void 0, t.ctrlKey = function(e) {
- if (typeof navigator != "undefined" && navigator.userAgent.indexOf("Mac OS X") !== -1) {
- if (e.metaKey && !e.altKey) return !0;
- } else if (e.ctrlKey && !e.altKey) return !0;
- return !1;
- };
- }, 63122: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.dataBind = void 0;
- var n = e(96574), m = /* @__PURE__ */ new WeakMap();
- t.dataBind = function(h, f, d) {
- var a = m.get(h);
- if (!a) {
- m.set(h, a = {});
- var s = null;
- (0, n.isViewObject)(h.j) && (s = h.j.e), (0, n.isViewObject)(h) && (s = h.e), s && s.on("beforeDestruct", function() {
- m.delete(h);
- });
- }
- return d === void 0 ? a[f] : (a[f] = d, d);
- };
- }, 93351: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.defaultLanguage = void 0;
- var n = e(24421);
- t.defaultLanguage = function(m, h) {
- return h === void 0 && (h = "en"), m !== "auto" && (0, n.isString)(m) ? m : document.documentElement && document.documentElement.lang ? document.documentElement.lang : navigator.language ? navigator.language.substring(0, 2) : h;
- };
- }, 41579: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isAbort = t.abort = t.options = t.connection = t.error = void 0;
- var n = e(45339);
- t.error = function(m) {
- return new TypeError(m);
- }, t.connection = function(m) {
- return new n.ConnectionError(m);
- }, t.options = function(m) {
- return new n.OptionsError(m);
- }, t.abort = function(m) {
- return new n.AbortError(m);
- }, t.isAbort = function(m) {
- return m instanceof n.AbortError;
- };
- }, 86768: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.AbortError = void 0;
- var n = e(20255), m = function(h) {
- function f(d) {
- var a = h.call(this, d) || this;
- return Object.setPrototypeOf(a, f.prototype), a;
- }
- return n.__extends(f, h), f;
- }(Error);
- t.AbortError = m;
- }, 43380: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ConnectionError = void 0;
- var n = e(20255), m = function(h) {
- function f(d) {
- var a = h.call(this, d) || this;
- return Object.setPrototypeOf(a, f.prototype), a;
- }
- return n.__extends(f, h), f;
- }(Error);
- t.ConnectionError = m;
- }, 45339: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(86768), t), n.__exportStar(e(43380), t), n.__exportStar(e(47403), t);
- }, 47403: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.OptionsError = void 0;
- var n = e(20255), m = function(h) {
- function f(d) {
- var a = h.call(this, d) || this;
- return Object.setPrototypeOf(a, f.prototype), a;
- }
- return n.__extends(f, h), f;
- }(TypeError);
- t.OptionsError = m;
- }, 56964: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(41579), t), n.__exportStar(e(45339), t);
- }, 7935: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.fastClone = t.markAsAtomic = t.isAtom = void 0;
- var n = e(42554);
- t.isAtom = function(m) {
- return m && m.isAtom;
- }, t.markAsAtomic = function(m) {
- return Object.defineProperty(m, "isAtom", { enumerable: !1, value: !0, configurable: !1 }), m;
- }, t.fastClone = function(m) {
- return JSON.parse((0, n.stringify)(m));
- };
- }, 87247: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getClassName = t.keepNames = void 0;
- var n = e(42096);
- t.keepNames = /* @__PURE__ */ new Map(), t.getClassName = function(m) {
- var h;
- if ((0, n.isFunction)(m.className)) return m.className();
- var f = ((h = m.constructor) === null || h === void 0 ? void 0 : h.originalConstructor) || m.constructor;
- if (t.keepNames.has(f)) return t.keepNames.get(f);
- if (f.name) return f.name;
- var d = new RegExp(/^\s*function\s*(\S*)\s*\(/), a = f.toString().match(d);
- return a ? a[1] : "";
- };
- }, 69384: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.get = void 0;
- var n = e(20255), m = e(24421), h = e(24021);
- t.get = function(f, d) {
- var a, s;
- if (!(0, m.isString)(f) || !f.length) return null;
- var c = f.split("."), p = d;
- try {
- try {
- for (var l = n.__values(c), o = l.next(); !o.done; o = l.next()) {
- var r = o.value;
- if ((0, h.isVoid)(p[r])) return null;
- p = p[r];
- }
- } catch (i) {
- a = { error: i };
- } finally {
- try {
- o && !o.done && (s = l.return) && s.call(l);
- } finally {
- if (a) throw a.error;
- }
- }
- } catch (i) {
- return null;
- }
- return (0, h.isVoid)(p) ? null : p;
- };
- }, 6102: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.humanSizeToBytes = void 0, t.humanSizeToBytes = function(e) {
- if (/^[0-9.]+$/.test(e.toString())) return parseFloat(e);
- var n = e.substr(-2, 2).toUpperCase(), m = ["KB", "MB", "GB", "TB"], h = parseFloat(e.substr(0, e.length - 2));
- return m.indexOf(n) !== -1 ? h * Math.pow(1024, m.indexOf(n) + 1) : parseInt(e, 10);
- };
- }, 76502: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(60303), t), n.__exportStar(e(62462), t), n.__exportStar(e(52378), t), n.__exportStar(e(37682), t), n.__exportStar(e(71567), t), n.__exportStar(e(48240), t), n.__exportStar(e(64981), t), n.__exportStar(e(42051), t), n.__exportStar(e(26911), t), n.__exportStar(e(2522), t), n.__exportStar(e(63122), t), n.__exportStar(e(93351), t), n.__exportStar(e(56964), t), n.__exportStar(e(7935), t), n.__exportStar(e(69384), t), n.__exportStar(e(87247), t), n.__exportStar(e(6102), t), n.__exportStar(e(47580), t), n.__exportStar(e(67285), t), n.__exportStar(e(21498), t), n.__exportStar(e(80861), t), n.__exportStar(e(9005), t), n.__exportStar(e(54188), t), n.__exportStar(e(21518), t), n.__exportStar(e(37228), t), n.__exportStar(e(67309), t), n.__exportStar(e(22362), t);
- }, 47580: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.markDeprecated = t.cns = void 0;
- var n = e(20255);
- t.cns = console, t.markDeprecated = function(m, h, f) {
- return h === void 0 && (h = [""]), f === void 0 && (f = null), function() {
- for (var d = [], a = 0; arguments.length > a; a++) d[a] = arguments[a];
- return t.cns.warn('Method "'.concat(h[0], '" deprecated.') + (h[1] ? ' Use "'.concat(h[1], '" instead') : "")), m.call.apply(m, n.__spreadArray([f], n.__read(d), !1));
- };
- };
- }, 67285: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.parseQuery = void 0, t.parseQuery = function(e) {
- for (var n = {}, m = e.substring(1).split("&"), h = 0; m.length > h; h += 1) {
- var f = m[h].split("=");
- n[decodeURIComponent(f[0])] = decodeURIComponent(f[1] || "");
- }
- return n;
- };
- }, 21498: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.previewBox = void 0;
- var n = e(24421), m = e(24263), h = e(26911), f = e(67309), d = e(54188);
- t.previewBox = function(a, s, c, p) {
- c === void 0 && (c = "px"), p === void 0 && (p = null);
- var l = function(b, w) {
- var C = [];
- try {
- (0, d.$$)("img", b.editor).forEach(function(S) {
- var j = [(0, f.attr)(S, "width"), (0, f.attr)(S, "height"), S.src];
- (0, f.attr)(S, { width: S.offsetWidth + w, height: S.offsetHeight + w });
- var E = b.createInside.a();
- b.ed.body.appendChild(E), E.href = S.src, S.src = E.href, m.Dom.safeRemove(E), C.push(function() {
- var x;
- S.src = (x = j[2]) !== null && x !== void 0 ? x : "", (0, f.attr)(S, { width: j[0] || null, height: j[1] || null });
- });
- });
- } catch (S) {
- throw C.forEach(function(j) {
- return j();
- }), C.length = 0, S;
- }
- return C;
- }(a, c);
- try {
- var o = a.e.fire("beforePreviewBox", s, c);
- if (o != null) return o;
- var r = a.c.div("jodit__preview-box jodit-context");
- p && p.appendChild(r), (0, h.css)(r, { position: "relative", padding: 16 });
- var i = a.value || "<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>".concat(a.i18n("Empty"), "</div>");
- if (a.iframe) {
- var u = a.create.element("iframe");
- (0, h.css)(u, { minWidth: 800, minHeight: 600, border: 0 }), r.appendChild(u);
- var v = u.contentWindow;
- if (v && (a.e.fire("generateDocumentStructure.iframe", v.document, a), r = v.document.body, typeof ResizeObserver == "function")) {
- var y = new ResizeObserver(function(b) {
- u.style.height = v.document.body.offsetHeight + 20 + "px";
- });
- y.observe(v.document.body), a.e.on("beforeDestruct", function() {
- y.unobserve(v.document.body);
- });
- }
- } else (0, h.css)(r, { minWidth: 1024, minHeight: 600, border: 0 });
- var g = function(b, w) {
- var C = (0, n.isString)(w) ? a.c.div() : w;
- (0, n.isString)(w) && (C.innerHTML = w);
- for (var S = 0; C.childNodes.length > S; S += 1) {
- var j = C.childNodes[S];
- if (m.Dom.isElement(j)) {
- for (var E = b.ownerDocument.createElement(j.nodeName), x = 0; j.attributes.length > x; x += 1) (0, f.attr)(E, j.attributes[x].nodeName, j.attributes[x].nodeValue);
- j.childNodes.length === 0 || m.Dom.isTag(j, ["table"]) ? j.nodeName === "SCRIPT" ? j.textContent && (E.textContent = j.textContent) : j.innerHTML && (E.innerHTML = j.innerHTML) : g(E, j);
- try {
- b.appendChild(E);
- } catch (k) {
- }
- } else try {
- b.appendChild(j.cloneNode(!0));
- } catch (k) {
- }
- }
- };
- return g(r, i), a.e.fire("afterPreviewBox", r), r;
- } finally {
- l.forEach(function(b) {
- return b();
- });
- }
- };
- }, 80861: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.reset = void 0;
- var n = e(69384), m = e(42096), h = {};
- t.reset = function(f) {
- var d, a;
- if (!(f in h)) {
- var s = document.createElement("iframe");
- try {
- if (s.src = "about:blank", document.body.appendChild(s), !s.contentWindow) return null;
- var c = (0, n.get)(f, s.contentWindow), p = (0, n.get)(f.split(".").slice(0, -1).join("."), s.contentWindow);
- (0, m.isFunction)(c) && (h[f] = c.bind(p));
- } catch (l) {
- } finally {
- (d = s.parentNode) === null || d === void 0 || d.removeChild(s);
- }
- }
- return (a = h[f]) !== null && a !== void 0 ? a : null;
- };
- }, 9005: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.scrollIntoViewIfNeeded = t.inView = void 0;
- var n = e(24263);
- t.inView = function(m, h, f) {
- var d = m.getBoundingClientRect(), a = m, s = d.top, c = d.height;
- do
- if (a && a.parentNode && ((d = (a = a.parentNode).getBoundingClientRect()).bottom < s || d.top >= s + c))
- return !1;
- while (a && a !== h && a.parentNode);
- return (f.documentElement && f.documentElement.clientHeight || 0) >= s;
- }, t.scrollIntoViewIfNeeded = function(m, h, f) {
- n.Dom.isHTMLElement(m) && !(0, t.inView)(m, h, f) && (h.clientHeight !== h.scrollHeight && (h.scrollTop = m.offsetTop), (0, t.inView)(m, h, f) || m.scrollIntoView());
- };
- }, 54188: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.resolveElement = t.cssPath = t.refs = t.getXPathByElement = t.$$ = void 0;
- var n = e(86893), m = e(24421), h = e(76502), f = e(24263), d = e(26596), a = e(1853), s = e(53929), c = e(45113), p = 1;
- function l(o, r) {
- var i;
- if (!/:scope/.test(o) || !n.IS_IE || r && r.nodeType === Node.DOCUMENT_NODE) i = r.querySelectorAll(o);
- else {
- var u = r.id, v = u || "_selector_id_" + String(Math.random()).slice(2) + ++p;
- o = o.replace(/:scope/g, "#" + v), !u && r.setAttribute("id", v), i = r.parentNode.querySelectorAll(o), u || r.removeAttribute("id");
- }
- return [].slice.call(i);
- }
- t.$$ = l, t.getXPathByElement = function(o, r) {
- if (!o || o.nodeType !== Node.ELEMENT_NODE || !o.parentNode || r === o) return "";
- if (o.id) return "//*[@id='" + o.id + "']";
- var i = [].filter.call(o.parentNode.childNodes, function(u) {
- return u.nodeName === o.nodeName;
- });
- return (0, t.getXPathByElement)(o.parentNode, r) + "/" + o.nodeName.toLowerCase() + (i.length > 1 ? "[" + ((0, a.toArray)(i).indexOf(o) + 1) + "]" : "");
- }, t.refs = function(o) {
- return c.Component.isInstanceOf(o, s.UIElement) && (o = o.container), l("[ref],[data-ref]", o).reduce(function(r, i) {
- var u = (0, h.attr)(i, "-ref");
- return u && (0, m.isString)(u) && (r[(0, d.camelCase)(u)] = i, r[u] = i), r;
- }, {});
- }, t.cssPath = function(o) {
- if (!f.Dom.isElement(o)) return null;
- for (var r = [], i = o; i && i.nodeType === Node.ELEMENT_NODE; ) {
- var u = i.nodeName.toLowerCase();
- if (i.id) {
- r.unshift(u += "#" + i.id);
- break;
- }
- var v = i, y = 1;
- do
- (v = v.previousElementSibling) && v.nodeName.toLowerCase() === u && y++;
- while (v);
- r.unshift(u += ":nth-of-type(" + y + ")"), i = i.parentNode;
- }
- return r.join(" > ");
- }, t.resolveElement = function(o, r) {
- var i = o;
- if ((0, m.isString)(o)) try {
- i = r.querySelector(o);
- } catch (u) {
- throw (0, h.error)('String "' + o + '" should be valid HTML selector');
- }
- if (!i || typeof i != "object" || !f.Dom.isElement(i) || !i.cloneNode) throw (0, h.error)('Element "' + o + '" should be string or HTMLElement instance');
- return i;
- };
- }, 21518: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.set = void 0;
- var n = e(24421), m = e(57649), h = e(49781), f = e(79736);
- t.set = function(d, a, s) {
- if ((0, n.isString)(d) && d.length) {
- for (var c = d.split("."), p = s, l = c[0], o = 0; c.length - 1 > o; o += 1) (0, h.isArray)(p[l = c[o]]) || (0, f.isPlainObject)(p[l]) || (p[l] = (0, m.isNumeric)(c[o + 1]) ? [] : {}), p = p[l];
- p && (p[c[c.length - 1]] = a);
- }
- };
- }, 37228: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.LimitedStack = void 0;
- var e = function() {
- function n(m) {
- this.limit = m, this.stack = [];
- }
- return n.prototype.push = function(m) {
- return this.stack.push(m), this.stack.length > this.limit && this.stack.shift(), this;
- }, n.prototype.pop = function() {
- return this.stack.pop();
- }, n.prototype.find = function(m) {
- return this.stack.find(m);
- }, n;
- }();
- t.LimitedStack = e;
- }, 67309: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getDataTransfer = t.memorizeExec = t.keys = t.loadImage = t.callPromise = t.markOwner = t.attr = t.call = void 0;
- var n = e(20255), m = e(42096), h = e(26335), f = e(24021), d = e(79736), a = e(24421), s = e(63122), c = e(26911), p = e(11278);
- function l(o, r, i) {
- if (!o || !(0, m.isFunction)(o.getAttribute)) return null;
- if (!(0, a.isString)(r)) return Object.keys(r).forEach(function(y) {
- var g = r[y];
- (0, d.isPlainObject)(g) && y === "style" ? (0, c.css)(o, g) : (y === "className" && (y = "class"), l(o, y, g));
- }), null;
- var u = (0, p.CamelCaseToKebabCase)(r);
- if (/^-/.test(u)) {
- var v = l(o, "data".concat(u));
- if (v) return v;
- u = u.substr(1);
- }
- if (i !== void 0) {
- if (i != null) return o.setAttribute(u, i.toString()), i.toString();
- o.hasAttribute(u) && o.removeAttribute(u);
- }
- return o.getAttribute(u);
- }
- t.call = function(o) {
- for (var r = [], i = 1; arguments.length > i; i++) r[i - 1] = arguments[i];
- return o.apply(void 0, n.__spreadArray([], n.__read(r), !1));
- }, t.attr = l, t.markOwner = function(o, r) {
- l(r, "data-editor_id", o.id), !r.component && Object.defineProperty(r, "jodit", { value: o });
- }, t.callPromise = function(o, r) {
- return (0, h.isPromise)(o) ? o.finally(r) : r();
- }, t.loadImage = function(o, r) {
- return r.async.promise(function(i, u) {
- var v = new Image(), y = function() {
- r.e.off(v), u == null || u();
- }, g = function() {
- r.e.off(v), i(v);
- };
- r.e.one(v, "load", g).one(v, "error", y).one(v, "abort", y), v.src = o, v.complete && g();
- });
- }, t.keys = function(o, r) {
- if (r === void 0 && (r = !0), r) return Object.keys(o);
- var i = [];
- for (var u in o) i.push(u);
- return i;
- }, t.memorizeExec = function(o, r, i, u) {
- var v, y = i.control, g = "button".concat(y.command), b = (v = y.args && y.args[0]) !== null && v !== void 0 ? v : (0, s.dataBind)(o, g);
- if ((0, f.isVoid)(b)) return !1;
- (0, s.dataBind)(o, g, b), u && (b = u(b)), o.execCommand(y.command, !1, b != null ? b : void 0);
- }, t.getDataTransfer = function(o) {
- if (o.clipboardData) return o.clipboardData;
- try {
- return o.dataTransfer || new DataTransfer();
- } catch (r) {
- return null;
- }
- };
- }, 22362: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.val = void 0, t.val = function(e, n, m) {
- var h = e.querySelector(n);
- return h ? (m && (h.value = m), h.value) : "";
- };
- }, 33286: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.init = t.initInstance = void 0;
- var n = e(10172), m = e(90338);
- function h(f, d, a, s, c) {
- var p = a.requires;
- if (p != null && p.length && !p.every(function(l) {
- return s.has(l);
- })) return c[d] = a, !1;
- if ((0, n.isInitable)(a)) try {
- a.init(f);
- } catch (l) {
- }
- return s.add(d), delete c[d], a.hasStyle && (0, m.loadStyle)(f, d).catch(function(l) {
- }), !0;
- }
- t.initInstance = function(f, d, a, s, c) {
- h(f, d, a, s, c) && Object.keys(c).forEach(function(p) {
- h(f, p, c[p], s, c);
- });
- }, t.init = h;
- }, 90338: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.loadExtras = t.loadStyle = void 0;
- var n = e(20255), m = e(62462), h = e(11278), f = e(93498), d = /* @__PURE__ */ new Set();
- function a(s, c, p) {
- return c = (0, h.kebabCase)(c), s.basePath + "plugins/" + c + "/" + c + "." + (p ? "js" : "css");
- }
- t.loadStyle = function(s, c) {
- return n.__awaiter(this, void 0, Promise, function() {
- var p;
- return n.__generator(this, function(l) {
- return p = a(s, c, !1), d.has(p) ? [2] : (d.add(p), [2, (0, m.appendStyleAsync)(s, p)]);
- });
- });
- }, t.loadExtras = function(s, c, p, l) {
- try {
- var o = p.filter(function(r) {
- return !s.has((0, f.normalizeName)(r.name));
- });
- o.length && function(r, i, u) {
- i.map(function(v) {
- var y = v.url || a(r, v.name, !0);
- return (0, m.appendScriptAsync)(r, y).then(u).catch(function() {
- return null;
- });
- });
- }(c, o, l);
- } catch (r) {
- }
- };
- }, 24342: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.makeInstance = void 0;
- var n = e(10172);
- t.makeInstance = function(m, h) {
- try {
- try {
- return (0, n.isFunction)(h) ? new h(m) : h;
- } catch (f) {
- if ((0, n.isFunction)(h) && !h.prototype) return h(m);
- }
- } catch (f) {
- }
- return null;
- };
- }, 93498: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.normalizeName = void 0;
- var n = e(11278);
- t.normalizeName = function(m) {
- return (0, n.kebabCase)(m).toLowerCase();
- };
- }, 57549: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(44540), t), n.__exportStar(e(85605), t);
- }, 13573: function() {
- }, 44540: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.PluginSystem = void 0;
- var n = e(20255);
- e(13573);
- var m = e(10172), h = e(12557), f = e(17332), d = e(90338), a = e(93498), s = e(24342), c = e(33286), p = function() {
- function l() {
- this.__items = /* @__PURE__ */ new Map();
- }
- return l.prototype.add = function(o, r) {
- this.__items.set((0, a.normalizeName)(o), r), f.eventEmitter.fire("plugin:".concat(o, ":ready"));
- }, l.prototype.get = function(o) {
- return this.__items.get((0, a.normalizeName)(o));
- }, l.prototype.remove = function(o) {
- this.__items.delete((0, a.normalizeName)(o));
- }, l.prototype.__filter = function(o) {
- var r = [];
- return this.__items.forEach(function(i, u) {
- o && !o.has(u) || r.push([u, i]);
- }), r;
- }, l.prototype.__init = function(o) {
- var r = this, i = function(S) {
- return { extrasList: S.o.extraPlugins.map(function(j) {
- return (0, m.isString)(j) ? { name: j } : j;
- }), disableList: new Set((0, h.splitArray)(S.o.disablePlugins).map(a.normalizeName)), filter: S.o.safeMode ? new Set(S.o.safePluginsList) : null };
- }(o), u = i.extrasList, v = i.disableList, y = i.filter, g = /* @__PURE__ */ new Set(), b = {}, w = {};
- o.__plugins = w;
- var C = function() {
- if (!o.isInDestruct) {
- var S = !1;
- r.__filter(y).forEach(function(j) {
- var E = n.__read(j, 2), x = E[0], k = E[1];
- if (!(v.has(x) || g.has(x) || b[x])) {
- var I = k == null ? void 0 : k.requires;
- if (!(I && (0, m.isArray)(I) && I.some(function(T) {
- return v.has(T);
- }))) {
- S = !0;
- var M = (0, s.makeInstance)(o, k);
- if (!M) return g.add(x), void delete b[x];
- (0, c.initInstance)(o, x, M, g, b), w[x] = M;
- }
- }
- }), S && o.e.fire("updatePlugins");
- }
- };
- u && u.length || (0, d.loadExtras)(this.__items, o, u, C), C(), function(S, j) {
- S.e.on("beforeDestruct", function() {
- Object.keys(j).forEach(function(E) {
- var x = j[E];
- (0, m.isDestructable)(x) && x.destruct(S), delete j[E];
- }), delete S.__plugins;
- });
- }(o, w);
- }, l.prototype.wait = function(o) {
- var r = this;
- return new Promise(function(i) {
- if (r.get(o)) return i();
- var u = function() {
- i(), f.eventEmitter.off("plugin:".concat(o, ":ready"), u);
- };
- f.eventEmitter.on("plugin:".concat(o, ":ready"), u);
- });
- }, l;
- }();
- t.PluginSystem = p;
- }, 85605: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Plugin = void 0;
- var n = e(20255), m = e(56562), h = e(43441), f = e(40332), d = function(a) {
- function s(c) {
- var p = a.call(this, c) || this;
- return p.requires = [], p.buttons = [], p.hasStyle = !1, c.e.on("afterPluginSystemInit", function() {
- var l;
- (0, f.isJoditObject)(c) && ((l = p.buttons) === null || l === void 0 || l.forEach(function(o) {
- c.registerButton(o);
- }));
- }).on("afterInit", function() {
- p.setStatus(m.STATUSES.ready), p.afterInit(c);
- }).on("beforeDestruct", p.destruct), p;
- }
- return n.__extends(s, a), s.prototype.className = function() {
- return "";
- }, s.prototype.init = function(c) {
- }, s.prototype.destruct = function() {
- var c, p, l;
- if (this.isReady) {
- this.setStatus(m.STATUSES.beforeDestruct);
- var o = this.j;
- (0, f.isJoditObject)(o) && ((c = this.buttons) === null || c === void 0 || c.forEach(function(r) {
- o == null || o.unregisterButton(r);
- })), (l = (p = this.j) === null || p === void 0 ? void 0 : p.events) === null || l === void 0 || l.off("beforeDestruct", this.destruct), this.beforeDestruct(this.j), a.prototype.destruct.call(this);
- }
- }, n.__decorate([h.autobind], s.prototype, "destruct", null), s;
- }(m.ViewComponent);
- t.Plugin = d;
- }, 9917: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Ajax = void 0;
- var n = e(20255), m = e(93166), h = e(40332), f = e(56964), d = e(86101), a = e(22630), s = e(43441);
- e(12144);
- var c = function() {
- function p(l, o) {
- o === void 0 && (o = m.Config.prototype.defaultAjaxOptions), this.__async = new a.Async(), this.__isFulfilled = !1, this.__activated = !1, this.__isDestructed = !1, this.options = (0, h.ConfigProto)(l || {}, o), this.xhr = this.o.xhr ? this.o.xhr() : new XMLHttpRequest();
- }
- return p.prototype.__buildParams = function(l, o) {
- return (0, h.isPlainObject)(l) && this.options.contentType && this.options.contentType.includes("application/json") ? JSON.stringify(l) : (0, h.isFunction)(this.o.queryBuild) ? this.o.queryBuild.call(this, l, o) : (0, h.isString)(l) || l instanceof window.FormData || typeof l == "object" && l != null && (0, h.isFunction)(l.append) ? l : (0, h.buildQuery)(l);
- }, Object.defineProperty(p.prototype, "o", { get: function() {
- return this.options;
- }, enumerable: !1, configurable: !0 }), p.prototype.abort = function() {
- if (this.__isFulfilled) return this;
- try {
- this.__isFulfilled = !0, this.xhr.abort();
- } catch (l) {
- }
- return this;
- }, p.prototype.send = function() {
- var l = this;
- this.__activated = !0;
- var o = this.xhr, r = this.o, i = this.prepareRequest();
- return this.__async.promise(function(u, v) {
- return n.__awaiter(l, void 0, void 0, function() {
- var y, g, b, w, C, S = this;
- return n.__generator(this, function(j) {
- switch (j.label) {
- case 0:
- return y = function() {
- S.__isFulfilled = !0, v(f.connection("Connection error"));
- }, o.onload = g = function() {
- S.__isFulfilled = !0, u(new d.Response(i, o.status, o.statusText, o.responseType ? o.response : o.responseText));
- }, o.onabort = function() {
- S.__isFulfilled = !0, v(f.abort("Abort connection"));
- }, o.onerror = y, o.ontimeout = y, r.responseType && (o.responseType = r.responseType), o.onprogress = function(E) {
- var x, k, I = 0;
- E.lengthComputable && (I = E.loaded / E.total * 100), (k = (x = S.options).onProgress) === null || k === void 0 || k.call(x, I);
- }, o.onreadystatechange = function() {
- var E, x;
- (x = (E = S.options).onProgress) === null || x === void 0 || x.call(E, 10), o.readyState === XMLHttpRequest.DONE && (r.successStatuses.includes(o.status) ? g() : o.statusText && (S.__isFulfilled = !0, v(f.connection(o.statusText))));
- }, o.withCredentials = (C = r.withCredentials) !== null && C !== void 0 && C, b = i.data, o.open(i.method, i.url, !0), r.contentType && o.setRequestHeader && o.setRequestHeader("Content-type", r.contentType), (0, h.isFunction)(w = r.headers) ? [4, w.call(this)] : [3, 2];
- case 1:
- w = j.sent(), j.label = 2;
- case 2:
- return w && o.setRequestHeader && Object.keys(w).forEach(function(E) {
- o.setRequestHeader(E, w[E]);
- }), this.__async.setTimeout(function() {
- o.send(b ? S.__buildParams(b) : void 0);
- }, 0), [2];
- }
- });
- });
- });
- }, p.prototype.prepareRequest = function() {
- if (!this.o.url) throw f.error("Need URL for AJAX request");
- var l = this.o.url, o = this.o.data, r = (this.o.method || "get").toLowerCase();
- if (r === "get" && o && (0, h.isPlainObject)(o)) {
- var i = l.indexOf("?");
- if (i !== -1) {
- var u = (0, h.parseQuery)(l);
- l = l.substring(0, i) + "?" + (0, h.buildQuery)(n.__assign(n.__assign({}, u), o));
- } else l += "?" + (0, h.buildQuery)(this.o.data);
- }
- var v = { url: l, method: r, data: o };
- return p.log.splice(100), p.log.push(v), v;
- }, p.prototype.destruct = function() {
- this.__isDestructed || (this.__isDestructed = !0, this.__activated && !this.__isFulfilled && (this.abort(), this.__isFulfilled = !0), this.__async.destruct());
- }, p.log = [], n.__decorate([s.autobind], p.prototype, "destruct", null), p;
- }();
- t.Ajax = c;
- }, 12144: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.defaultAjaxOptions = { successStatuses: [200, 201, 202], method: "GET", url: "", data: null, contentType: "application/x-www-form-urlencoded; charset=UTF-8", headers: { "X-REQUESTED-WITH": "XMLHttpRequest" }, withCredentials: !1, xhr: function() {
- return new XMLHttpRequest();
- } };
- }, 30056: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(9917), t), n.__exportStar(e(86101), t);
- }, 86101: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Response = void 0;
- var n = e(20255), m = function() {
- function h(f, d, a, s) {
- this.request = f, this.status = d, this.statusText = a, this.body = s;
- }
- return Object.defineProperty(h.prototype, "url", { get: function() {
- return this.request.url;
- }, enumerable: !1, configurable: !0 }), h.prototype.json = function() {
- return n.__awaiter(this, void 0, Promise, function() {
- return n.__generator(this, function(f) {
- return [2, JSON.parse(this.body)];
- });
- });
- }, h.prototype.text = function() {
- return Promise.resolve(this.body);
- }, h.prototype.blob = function() {
- return n.__awaiter(this, void 0, Promise, function() {
- return n.__generator(this, function(f) {
- return [2, this.body];
- });
- });
- }, h;
- }();
- t.Response = m;
- }, 10109: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(287), t), n.__exportStar(e(10264), t);
- }, 287: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.moveNodeInsideStart = void 0;
- var n = e(64968), m = e(86893);
- t.moveNodeInsideStart = function(h, f, d) {
- for (var a = n.Dom.findSibling(f, d), s = n.Dom.findSibling(f, !d); n.Dom.isElement(a) && !n.Dom.isTag(a, m.INSEPARABLE_TAGS) && n.Dom.isContentEditable(a, h.editor) && (!s || !n.Dom.closest(f, n.Dom.isElement, h.editor)); ) d || !a.firstChild ? a.appendChild(f) : n.Dom.before(a.firstChild, f), a = n.Dom.sibling(f, d), s = n.Dom.sibling(f, !d);
- };
- }, 10264: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.moveTheNodeAlongTheEdgeOutward = void 0;
- var n = e(64968);
- t.moveTheNodeAlongTheEdgeOutward = function(m, h, f) {
- for (var d = m; d && d !== f; ) {
- if (n.Dom.findSibling(d, h)) return;
- (d = d.parentElement) && d !== f && (h ? n.Dom.before(d, m) : n.Dom.after(d, m));
- }
- };
- }, 2123: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(70851), t), n.__exportStar(e(77627), t);
- }, 2047: function() {
- }, 77627: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Select = void 0;
- var n = e(20255), m = e(86893), h = e(86893), f = e(64968), d = e(40332), a = e(70851), s = e(43441), c = e(10109), p = (e(52378), e(10172));
- e(2047);
- var l = function() {
- function o(r) {
- var i = this;
- this.jodit = r, r.e.on("removeMarkers", function() {
- i.removeMarkers();
- });
- }
- return Object.defineProperty(o.prototype, "j", { get: function() {
- return this.jodit;
- }, enumerable: !1, configurable: !0 }), o.prototype.errorNode = function(r) {
- if (!f.Dom.isNode(r)) throw (0, d.error)("Parameter node must be instance of Node");
- }, Object.defineProperty(o.prototype, "area", { get: function() {
- return this.j.editor;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "win", { get: function() {
- return this.j.ew;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "doc", { get: function() {
- return this.j.ed;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "sel", { get: function() {
- return this.j.o.shadowRoot && (0, p.isFunction)(this.j.o.shadowRoot.getSelection) ? this.j.o.shadowRoot.getSelection() : this.win.getSelection();
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "range", { get: function() {
- var r = this.sel;
- return r && r.rangeCount ? r.getRangeAt(0) : this.createRange();
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "isInsideArea", { get: function() {
- var r = this.sel, i = r != null && r.rangeCount ? r.getRangeAt(0) : null;
- return !(!i || !f.Dom.isOrContains(this.area, i.startContainer));
- }, enumerable: !1, configurable: !0 }), o.prototype.createRange = function(r) {
- r === void 0 && (r = !1);
- var i = this.doc.createRange();
- return r && this.selectRange(i), i;
- }, o.prototype.remove = function() {
- var r = this.sel, i = this.current();
- if (r && i) for (var u = 0; r.rangeCount > u; u += 1) r.getRangeAt(u).deleteContents(), r.getRangeAt(u).collapse(!0);
- }, o.prototype.clear = function() {
- var r, i;
- !((r = this.sel) === null || r === void 0) && r.rangeCount && ((i = this.sel) === null || i === void 0 || i.removeAllRanges());
- }, o.prototype.removeNode = function(r) {
- if (!f.Dom.isOrContains(this.j.editor, r, !0)) throw (0, d.error)("Selection.removeNode can remove only editor's children");
- f.Dom.safeRemove(r), this.j.e.fire("afterRemoveNode", r);
- }, o.prototype.insertCursorAtPoint = function(r, i) {
- var u = this;
- this.removeMarkers();
- try {
- var v = this.createRange();
- return function() {
- if (u.doc.caretPositionFromPoint && (y = u.doc.caretPositionFromPoint(r, i))) v.setStart(y.offsetNode, y.offset);
- else if (u.doc.caretRangeFromPoint) {
- var y = u.doc.caretRangeFromPoint(r, i);
- v.setStart(y.startContainer, y.startOffset);
- }
- }(), v.collapse(!0), this.selectRange(v), !0;
- } catch (y) {
- }
- return !1;
- }, Object.defineProperty(o.prototype, "hasMarkers", { get: function() {
- return !!this.markers.length;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "markers", { get: function() {
- return (0, d.$$)("span[data-" + m.MARKER_CLASS + "]", this.area);
- }, enumerable: !1, configurable: !0 }), o.prototype.removeMarkers = function() {
- f.Dom.safeRemove.apply(null, this.markers);
- }, o.prototype.marker = function(r, i) {
- r === void 0 && (r = !1);
- var u = null;
- i && (u = i.cloneRange()).collapse(r);
- var v = this.j.createInside.span();
- return v.id = m.MARKER_CLASS + "_" + Number(/* @__PURE__ */ new Date()) + "_" + String(Math.random()).slice(2), v.style.lineHeight = "0", v.style.display = "none", f.Dom.markTemporary(v), (0, d.attr)(v, "data-" + m.MARKER_CLASS, r ? "start" : "end"), v.appendChild(this.j.createInside.text(m.INVISIBLE_SPACE)), u && f.Dom.isOrContains(this.area, r ? u.startContainer : u.endContainer) && u.insertNode(v), v;
- }, o.prototype.restore = function() {
- var r = !1, i = function(g) {
- return "span[data-".concat(m.MARKER_CLASS, "=").concat(g ? "start" : "end", "]");
- }, u = this.area.querySelector(i(!0)), v = this.area.querySelector(i(!1));
- if (u) {
- if (r = this.createRange(), v) r.setStartAfter(u), f.Dom.safeRemove(u), r.setEndBefore(v), f.Dom.safeRemove(v);
- else {
- var y = u.previousSibling;
- f.Dom.isText(y) ? r.setStart(y, y.nodeValue ? y.nodeValue.length : 0) : r.setStartBefore(u), f.Dom.safeRemove(u), r.collapse(!0);
- }
- r && this.selectRange(r);
- }
- }, o.prototype.save = function(r) {
- if (r === void 0 && (r = !1), this.hasMarkers) return [];
- var i = this.sel;
- if (!i || !i.rangeCount) return [];
- for (var u = [], v = i.rangeCount, y = [], g = 0; v > g; g += 1) if (y[g] = i.getRangeAt(g), y[g].collapsed) {
- var b = this.marker(!0, y[g]);
- u[g] = { startId: b.id, collapsed: !0, startMarker: b.outerHTML };
- } else {
- b = this.marker(!0, y[g]);
- var w = this.marker(!1, y[g]);
- u[g] = { startId: b.id, endId: w.id, collapsed: !1, startMarker: b.outerHTML, endMarker: w.outerHTML };
- }
- if (!r) for (i.removeAllRanges(), g = v - 1; g >= 0; --g) {
- var C = this.doc.getElementById(u[g].startId);
- if (C) {
- if (u[g].collapsed) y[g].setStartAfter(C), y[g].collapse(!0);
- else if (y[g].setStartBefore(C), u[g].endId) {
- var S = this.doc.getElementById(u[g].endId);
- S && y[g].setEndAfter(S);
- }
- }
- try {
- i.addRange(y[g].cloneRange());
- } catch (j) {
- }
- }
- return u;
- }, o.prototype.focus = function(r) {
- var i, u;
- if (r === void 0 && (r = { preventScroll: !0 }), !this.isFocused()) {
- var v = (0, d.getScrollParent)(this.j.container), y = v == null ? void 0 : v.scrollTop;
- this.j.iframe && this.doc.readyState === "complete" && this.j.iframe.focus(r), this.win.focus(), this.area.focus(r), y && (v != null && v.scrollTo) && v.scrollTo(0, y);
- var g = this.sel, b = g != null && g.rangeCount ? g == null ? void 0 : g.getRangeAt(0) : null;
- if (!b || !f.Dom.isOrContains(this.area, b.startContainer)) {
- var w = this.createRange();
- w.setStart(this.area, 0), w.collapse(!0), this.selectRange(w, !1);
- }
- return this.j.editorIsActive || (u = (i = this.j) === null || i === void 0 ? void 0 : i.events) === null || u === void 0 || u.fire("focus"), !0;
- }
- return !1;
- }, o.prototype.isCollapsed = function() {
- for (var r = this.sel, i = 0; r && r.rangeCount > i; i += 1) if (!r.getRangeAt(i).collapsed) return !1;
- return !0;
- }, o.prototype.isFocused = function() {
- return this.doc.hasFocus && this.doc.hasFocus() && this.area === this.doc.activeElement;
- }, o.prototype.current = function(r) {
- if (r === void 0 && (r = !0), this.j.getRealMode() === m.MODE_WYSIWYG) {
- var i = this.sel;
- if (!i || i.rangeCount === 0) return null;
- var u = i.getRangeAt(0), v = u.startContainer, y = !1, g = function(S) {
- return y ? S.lastChild : S.firstChild;
- };
- if (f.Dom.isTag(v, "br") && i.isCollapsed) return v;
- if (!f.Dom.isText(v)) {
- if ((v = u.startContainer.childNodes[u.startOffset]) || (v = u.startContainer.childNodes[u.startOffset - 1], y = !0), v && i.isCollapsed && !f.Dom.isText(v)) {
- if (!y && f.Dom.isText(v.previousSibling)) v = v.previousSibling;
- else if (r) for (var b = g(v); b; ) {
- if (b && f.Dom.isText(b)) {
- v = b;
- break;
- }
- b = g(b);
- }
- }
- if (v && !i.isCollapsed && !f.Dom.isText(v)) {
- var w = v, C = v;
- do
- w = w.firstChild, C = C.lastChild;
- while (w && C && !f.Dom.isText(w));
- w === C && w && f.Dom.isText(w) && (v = w);
- }
- }
- if (v && f.Dom.isOrContains(this.area, v)) return v;
- }
- return null;
- }, o.prototype.insertNode = function(r, i, u) {
- var v = this;
- i === void 0 && (i = !0), u === void 0 && (u = !0), this.errorNode(r), this.j.e.fire("safeHTML", r), !this.isFocused() && this.j.isEditorMode() && (this.focus(), this.restore());
- var y = this.sel;
- this.j.history.snapshot.transaction(function() {
- var g;
- if (v.isCollapsed() || v.j.execCommand("Delete"), v.j.e.fire("beforeInsertNode", r), y && y.rangeCount) {
- var b = y.getRangeAt(0);
- f.Dom.isOrContains(v.area, b.commonAncestorContainer) ? f.Dom.isTag(b.startContainer, h.INSEPARABLE_TAGS) && b.collapsed ? (g = b.startContainer.parentNode) === null || g === void 0 || g.insertBefore(r, b.startContainer) : f.Dom.safeInsertNode(b, r) : v.area.appendChild(r);
- } else v.area.appendChild(r);
- i && (r.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? r.lastChild && v.setCursorAfter(r.lastChild) : v.setCursorAfter(r));
- }), u && this.j.events && this.j.__imdSynchronizeValues(), this.j.events && this.j.e.fire("afterInsertNode", r);
- }, o.prototype.insertHTML = function(r, i) {
- if (i === void 0 && (i = !0), r !== "") {
- var u, v = this.j.createInside.div(), y = this.j.createInside.fragment();
- if (!this.isFocused() && this.j.isEditorMode() && (this.focus(), this.restore()), f.Dom.isNode(r) ? v.appendChild(r) : v.innerHTML = r.toString(), (this.j.isEditorMode() || this.j.e.fire("insertHTML", v.innerHTML) !== !1) && (u = v.lastChild)) {
- for (; v.firstChild; ) u = v.firstChild, y.appendChild(v.firstChild);
- this.insertNode(y.firstChild && y.firstChild === y.lastChild ? y.lastChild : y, !1, !1), i && (u ? this.setCursorAfter(u) : this.setCursorIn(y)), this.j.__imdSynchronizeValues();
- }
- }
- }, o.prototype.insertImage = function(r, i, u) {
- i === void 0 && (i = null), u === void 0 && (u = null);
- var v = (0, p.isString)(r) ? this.j.createInside.element("img") : r;
- if ((0, p.isString)(r) && v.setAttribute("src", r), u != null) {
- var y = u.toString();
- y && y !== "auto" && 0 > String(y).indexOf("px") && 0 > String(y).indexOf("%") && (y += "px"), (0, d.call)(this.j.o.resizer.forImageChangeAttributes ? d.attr : d.css, v, "width", y);
- }
- i && typeof i == "object" && (0, d.css)(v, i);
- var g = function() {
- (v.offsetHeight > v.naturalHeight || v.offsetWidth > v.naturalWidth) && (v.style.width = "", v.style.height = ""), v.removeEventListener("load", g);
- };
- this.j.e.on(v, "load", g), v.complete && g(), this.insertNode(v), this.j.e.fire("afterInsertImage", v);
- }, o.prototype.eachSelection = function(r) {
- var i, u = this, v = this.sel;
- if (v && v.rangeCount) {
- var y = v.getRangeAt(0), g = y.commonAncestorContainer;
- f.Dom.isHTMLElement(g) || (g = g.parentElement);
- var b = [], w = y.startOffset, C = g.childNodes.length, S = y.startContainer === this.area ? g.childNodes[C > w ? w : C - 1] : y.startContainer, j = y.endContainer === this.area ? g.childNodes[y.endOffset - 1] : y.endContainer;
- f.Dom.isText(S) && S === y.startContainer && y.startOffset === ((i = S.nodeValue) === null || i === void 0 ? void 0 : i.length) && S.nextSibling && (S = S.nextSibling), f.Dom.isText(j) && j === y.endContainer && y.endOffset === 0 && j.previousSibling && (j = j.previousSibling);
- var E = function(k) {
- !k || k === g || f.Dom.isEmptyTextNode(k) || (0, p.isMarker)(k) || b.push(k);
- };
- E(S), S !== j && f.Dom.isOrContains(g, S, !0) && f.Dom.find(S, function(k) {
- return E(k), k === j || k && k.contains && k.contains(j);
- }, g, !0, !1);
- var x = function(k) {
- if (f.Dom.isOrContains(u.j.editor, k, !0)) {
- if (k.nodeName.match(/^(UL|OL)$/)) return (0, d.toArray)(k.childNodes).forEach(x);
- if (f.Dom.isTag(k, "li")) if (k.firstChild) k = k.firstChild;
- else {
- var I = u.j.createInside.text(h.INVISIBLE_SPACE);
- k.appendChild(I), k = I;
- }
- r(k);
- }
- };
- b.length === 0 && f.Dom.isEmptyTextNode(S) && b.push(S), b.length === 0 && S.firstChild && b.push(S.firstChild), b.forEach(x);
- }
- }, o.prototype.cursorInTheEdge = function(r, i, u) {
- var v, y, g = this;
- u === void 0 && (u = null);
- var b = !r, w = (v = this.sel) === null || v === void 0 ? void 0 : v.getRangeAt(0);
- if (u != null || (u = this.current(!1)), !w || !u || !f.Dom.isOrContains(i, u, !0)) return null;
- var C = r ? w.startContainer : w.endContainer, S = r ? w.startOffset : w.endOffset, j = function(T) {
- return !!(T && !f.Dom.isTag(T, "br") && !f.Dom.isEmptyTextNode(T) && !f.Dom.isTemporary(T) && !(f.Dom.isElement(T) && g.j.e.fire("isInvisibleForCursor", T) === !0));
- };
- if (f.Dom.isText(C)) {
- var E = !((y = C.nodeValue) === null || y === void 0) && y.length ? C.nodeValue : "";
- if (b && E.replace((0, h.INVISIBLE_SPACE_REG_EXP_END)(), "").length > S) return !1;
- var x = (0, h.INVISIBLE_SPACE_REG_EXP_START)().exec(E);
- if (r && (x && S > x[0].length || !x && S > 0)) return !1;
- } else {
- var k = (0, d.toArray)(C.childNodes);
- if (b) {
- if (k.slice(S).some(j)) return !1;
- } else if (k.slice(0, S).some(j)) return !1;
- }
- for (var I = u; I && I !== i; ) {
- var M = f.Dom.sibling(I, r);
- if (M) {
- if ((I = M) && j(I)) return !1;
- } else I = I.parentNode;
- }
- return !0;
- }, o.prototype.cursorOnTheLeft = function(r, i) {
- return this.cursorInTheEdge(!0, r, i);
- }, o.prototype.cursorOnTheRight = function(r, i) {
- return this.cursorInTheEdge(!1, r, i);
- }, o.prototype.setCursorAfter = function(r) {
- return this.setCursorNearWith(r, !1);
- }, o.prototype.setCursorBefore = function(r) {
- return this.setCursorNearWith(r, !0);
- }, o.prototype.setCursorNearWith = function(r, i) {
- var u, v, y = this;
- if (this.errorNode(r), !f.Dom.up(r, function(w) {
- return w === y.area || w && w.parentNode === y.area;
- }, this.area)) throw (0, d.error)("Node element must be in editor");
- var g = this.createRange(), b = null;
- return f.Dom.isText(r) ? i ? g.setStart(r, 0) : g.setEnd(r, (v = (u = r.nodeValue) === null || u === void 0 ? void 0 : u.length) !== null && v !== void 0 ? v : 0) : (b = this.j.createInside.text(m.INVISIBLE_SPACE), i ? g.setStartBefore(r) : g.setEndAfter(r), g.collapse(i), f.Dom.safeInsertNode(g, b), g.selectNode(b)), g.collapse(i), this.selectRange(g), b;
- }, o.prototype.setCursorIn = function(r, i) {
- var u = this;
- if (i === void 0 && (i = !1), this.errorNode(r), !f.Dom.up(r, function(w) {
- return w === u.area || w && w.parentNode === u.area;
- }, this.area)) throw (0, d.error)("Node element must be in editor");
- var v = this.createRange(), y = r, g = r;
- do {
- if (f.Dom.isText(y)) break;
- g = y, y = i ? y.firstChild : y.lastChild;
- } while (y);
- if (!y) {
- var b = this.j.createInside.text(m.INVISIBLE_SPACE);
- /^(img|br|input)$/i.test(g.nodeName) ? y = g : (g.appendChild(b), g = b);
- }
- return v.selectNodeContents(y || g), v.collapse(i), this.selectRange(v), g;
- }, o.prototype.selectRange = function(r, i) {
- i === void 0 && (i = !0);
- var u = this.sel;
- return i && !this.isFocused() && this.focus(), u && (u.removeAllRanges(), u.addRange(r)), this.j.e.fire("changeSelection"), this;
- }, o.prototype.select = function(r, i) {
- var u = this;
- if (i === void 0 && (i = !1), this.errorNode(r), !f.Dom.up(r, function(y) {
- return y === u.area || y && y.parentNode === u.area;
- }, this.area)) throw (0, d.error)("Node element must be in editor");
- var v = this.createRange();
- return v[i ? "selectNodeContents" : "selectNode"](r), this.selectRange(v);
- }, Object.defineProperty(o.prototype, "html", { get: function() {
- var r = this.sel;
- if (r && r.rangeCount > 0) {
- var i = r.getRangeAt(0).cloneContents(), u = this.j.createInside.div();
- return u.appendChild(i), u.innerHTML;
- }
- return "";
- }, enumerable: !1, configurable: !0 }), o.prototype.wrapInTagGen = function() {
- var r, i, u, v, y, g, b, w, C, S, j;
- return n.__generator(this, function(E) {
- switch (E.label) {
- case 0:
- return this.isCollapsed() ? (g = this.jodit.createInside.element("font", h.INVISIBLE_SPACE), this.insertNode(g, !1, !1), r = n.__read(this.markers, 1), (i = r[0]) ? g.appendChild(i) : (this.setCursorIn(g), this.save()), [4, g]) : [3, 2];
- case 1:
- return E.sent(), f.Dom.unwrap(g), [2];
- case 2:
- (0, d.$$)("*[style*=font-size]", this.area).forEach(function(x) {
- return (0, d.attr)(x, "data-font-size", x.style.fontSize.toString());
- }), this.isCollapsed() ? (g = this.j.createInside.element("font"), (0, d.attr)(g, "size", 7), this.insertNode(g, !1, !1)) : this.j.nativeExecCommand("fontsize", !1, "7"), (0, d.$$)("*[data-font-size]", this.area).forEach(function(x) {
- var k = (0, d.attr)(x, "data-font-size");
- k && (x.style.fontSize = k, (0, d.attr)(x, "data-font-size", null));
- }), u = (0, d.$$)('font[size="7"]', this.area), E.label = 3;
- case 3:
- E.trys.push([3, 8, 9, 10]), v = n.__values(u), y = v.next(), E.label = 4;
- case 4:
- return y.done ? [3, 7] : (w = (g = y.value).lastChild, (b = g.firstChild) && b === w && (0, p.isMarker)(b) ? (f.Dom.unwrap(g), [3, 6]) : (b && (0, p.isMarker)(b) && f.Dom.before(g, b), w && (0, p.isMarker)(w) && f.Dom.after(g, w), [4, g]));
- case 5:
- E.sent(), f.Dom.unwrap(g), E.label = 6;
- case 6:
- return y = v.next(), [3, 4];
- case 7:
- return [3, 10];
- case 8:
- return C = E.sent(), S = { error: C }, [3, 10];
- case 9:
- try {
- y && !y.done && (j = v.return) && j.call(v);
- } finally {
- if (S) throw S.error;
- }
- return [7];
- case 10:
- return [2];
- }
- });
- }, o.prototype.wrapInTag = function(r) {
- var i, u, v = [];
- try {
- for (var y = n.__values(this.wrapInTagGen()), g = y.next(); !g.done; g = y.next()) {
- var b = g.value;
- try {
- if (b.firstChild && b.firstChild === b.lastChild && (0, p.isMarker)(b.firstChild)) continue;
- (0, p.isFunction)(r) ? r(b) : v.push(f.Dom.replace(b, r, this.j.createInside));
- } finally {
- var w = b.parentNode;
- w && (f.Dom.unwrap(b), f.Dom.isEmpty(w) && f.Dom.unwrap(w));
- }
- }
- } catch (C) {
- i = { error: C };
- } finally {
- try {
- g && !g.done && (u = y.return) && u.call(y);
- } finally {
- if (i) throw i.error;
- }
- }
- return v;
- }, o.prototype.commitStyle = function(r) {
- new a.CommitStyle(r).apply(this.j);
- }, o.prototype.applyStyle = function(r, i) {
- i === void 0 && (i = {}), this.commitStyle(n.__assign({ style: r }, i));
- }, o.prototype.splitSelection = function(r, i) {
- if (!this.isCollapsed()) return null;
- var u = this.createRange(), v = this.range;
- u.setStartBefore(r);
- var y = this.cursorOnTheRight(r, i), g = this.cursorOnTheLeft(r, i), b = this.j.createInside.element("br"), w = this.j.createInside.fake(), C = w.cloneNode();
- try {
- if (y || g) {
- i ? f.Dom.before(i, b) : f.Dom.safeInsertNode(v, b);
- var S = function(I, M) {
- for (var T = M(I); T; ) {
- var O = M(T);
- if (!T || !f.Dom.isTag(T, "br") && !f.Dom.isEmptyTextNode(T)) break;
- f.Dom.safeRemove(T), T = O;
- }
- };
- S(b, function(I) {
- return I.nextSibling;
- }), S(b, function(I) {
- return I.previousSibling;
- }), f.Dom.after(b, C), f.Dom.before(b, w), y ? (u.setEndBefore(b), v.setEndBefore(b)) : (u.setEndAfter(b), v.setEndAfter(b));
- } else u.setEnd(v.startContainer, v.startOffset);
- var j = u.extractContents(), E = function(I) {
- return f.Dom.each(I, function(M) {
- return f.Dom.isEmptyTextNode(M) && f.Dom.safeRemove(M);
- });
- };
- try {
- if (E(j), E(r), r.parentNode.insertBefore(j, r), !i && y && (b == null ? void 0 : b.parentNode)) {
- var x = this.createRange();
- x.setStartBefore(b), this.selectRange(x);
- }
- } catch (I) {
- }
- var k = function(I) {
- var M, T, O;
- ((M = I == null ? void 0 : I.parentNode) === null || M === void 0 ? void 0 : M.firstChild) === ((T = I == null ? void 0 : I.parentNode) === null || T === void 0 ? void 0 : T.lastChild) && ((O = I == null ? void 0 : I.parentNode) === null || O === void 0 || O.appendChild(b.cloneNode()));
- };
- k(w), k(C);
- } finally {
- f.Dom.safeRemove(w), f.Dom.safeRemove(C);
- }
- return r.previousElementSibling;
- }, o.prototype.expandSelection = function() {
- var r = this;
- if (this.isCollapsed()) return this;
- var i = this.range, u = i.cloneRange();
- if (!f.Dom.isOrContains(this.j.editor, i.commonAncestorContainer, !0)) return this;
- var v = function(x) {
- var k = r.j.createInside.fake(), I = i.cloneRange();
- return I.collapse(x), f.Dom.safeInsertNode(I, k), (0, c.moveTheNodeAlongTheEdgeOutward)(k, x, r.j.editor), k;
- }, y = v(!0), g = v(!1);
- u.setStartAfter(y), u.setEndBefore(g);
- var b = f.Dom.findSibling(y, !1), w = f.Dom.findSibling(g, !0);
- if (b !== w) {
- var C = f.Dom.isElement(b) && f.Dom.isOrContains(b, g), S = !C && f.Dom.isElement(w) && f.Dom.isOrContains(w, y);
- if (C || S) {
- for (var j = C ? b : w, E = j; f.Dom.isElement(j); ) (j = C ? j.firstElementChild : j.lastElementChild) && f.Dom.isOrContains(j, C ? g : y) && (E = j);
- C ? u.setStart(E, 0) : u.setEnd(E, E.childNodes.length);
- }
- }
- return this.selectRange(u), f.Dom.safeRemove(y, g), this;
- }, n.__decorate([s.autobind], o.prototype, "createRange", null), n.__decorate([s.autobind], o.prototype, "focus", null), n.__decorate([s.autobind], o.prototype, "setCursorAfter", null), n.__decorate([s.autobind], o.prototype, "setCursorBefore", null), n.__decorate([s.autobind], o.prototype, "setCursorIn", null), o;
- }();
- t.Select = l;
- }, 77846: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.extractSelectedPart = void 0;
- var n = e(67309), m = e(33941), h = e(24263), f = e(37204);
- function d(a, s, c) {
- var p = s.extractContents();
- p.textContent && (0, m.trim)(p.textContent).length || !p.firstChild || h.Dom.unwrap(p.firstChild), a.parentNode && (0, n.call)(c ? h.Dom.before : h.Dom.after, a, p);
- }
- t.extractSelectedPart = function(a, s, c) {
- var p = c.s.createRange(), l = (0, f.isMarker)(s.previousSibling) ? s.previousSibling : s;
- p.setStartBefore(a), p.setEndBefore(l), d(a, p, !0);
- var o = (0, f.isMarker)(s.nextSibling) ? s.nextSibling : s;
- p.setStartAfter(o), p.setEndAfter(a), d(a, p, !1);
- };
- }, 95901: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.FiniteStateMachine = void 0, e(24421), e(603);
- var n = function() {
- function m(h, f) {
- this.transitions = f, this.silent = !0, this.__previewsStates = /* @__PURE__ */ new Set(), this.setState(h);
- }
- return m.prototype.setState = function(h) {
- this.__previewsStates.add(h), this.__state = h;
- }, m.prototype.getState = function() {
- return this.__state;
- }, m.prototype.disableSilent = function() {
- this.silent = !1;
- }, m.prototype.dispatch = function(h, f) {
- var d = this.transitions[this.getState()][h];
- if (d) {
- var a = d.call(this, f);
- return this.setState(a.next), a;
- }
- throw new Error("invalid action: ".concat(this.getState(), ".").concat(h.toString()));
- }, m;
- }();
- t.FiniteStateMachine = n;
- }, 65774: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getSuitChild = void 0;
- var n = e(24263), m = e(63150), h = e(74477);
- t.getSuitChild = function(f, d) {
- for (var a = d.firstChild; a && !(0, m.isNormalNode)(a); ) if (!(a = a.nextSibling)) return null;
- return a && !n.Dom.next(a, m.isNormalNode, d) && (0, h.isSuitElement)(f, a, !1) ? a : null;
- };
- }, 66277: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getSuitParent = void 0;
- var n = e(24263), m = e(63150), h = e(74477);
- t.getSuitParent = function f(d, a, s) {
- var c = a.parentNode;
- return c === s || !n.Dom.isHTMLElement(c) || n.Dom.next(a, m.isNormalNode, c) || n.Dom.prev(a, m.isNormalNode, c) ? null : d.isElementCommit && d.elementIsBlock && !n.Dom.isBlock(c) ? f(d, c, s) : !(0, h.isSuitElement)(d, c, !1) || n.Dom.isBlock(c) && !d.elementIsBlock ? d.isElementCommit && !n.Dom.isBlock(c) ? f(d, c, s) : null : c;
- };
- }, 18387: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.hasSameStyleKeys = t.hasSameStyle = void 0;
- var n = e(26911), m = e(24021), h = e(49353), f = e(24263);
- e(52378), t.hasSameStyle = function(d, a) {
- return !!(!f.Dom.isTag(d, "font") && f.Dom.isHTMLElement(d) && Object.keys(a).every(function(s) {
- var c = (0, n.css)(d, s, !0);
- return c === "" && (a[s] === "" || a[s] == null) || !(0, m.isVoid)(c) && c !== "" && !(0, m.isVoid)(a[s]) && (0, h.normalizeCssValue)(s, a[s]).toString().toLowerCase() === c.toString().toLowerCase();
- }));
- }, document.createElement("div").style.color = "red", t.hasSameStyleKeys = function(d, a) {
- return !!(!f.Dom.isTag(d, "font") && f.Dom.isHTMLElement(d) && Object.keys(a).every(function(s) {
- var c = (0, n.css)(d, s, !0);
- return !(0, m.isVoid)(c);
- }));
- };
- }, 66162: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(93217), t), n.__exportStar(e(11651), t), n.__exportStar(e(29271), t), n.__exportStar(e(18387), t), n.__exportStar(e(77846), t), n.__exportStar(e(95901), t), n.__exportStar(e(65774), t), n.__exportStar(e(66277), t), n.__exportStar(e(76991), t), n.__exportStar(e(47508), t), n.__exportStar(e(63150), t), n.__exportStar(e(74477), t), n.__exportStar(e(26707), t), n.__exportStar(e(8298), t), n.__exportStar(e(6278), t);
- }, 76991: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isInsideInvisibleElement = void 0;
- var n = e(24263);
- t.isInsideInvisibleElement = function(m, h) {
- return !!n.Dom.closest(m, ["style", "script"], h);
- };
- }, 63150: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isNormalNode = void 0;
- var n = e(24263), m = e(37204);
- t.isNormalNode = function(h) {
- return !!(h && !n.Dom.isEmptyTextNode(h) && !n.Dom.isTemporary(h) && !(0, m.isMarker)(h));
- };
- }, 47508: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.elementsEqualAttributes = t.isSameAttributes = void 0;
- var n = e(76502), m = e(16492), h = (e(52378), e(18387));
- t.isSameAttributes = function(f, d) {
- return !f.attributes.length && !(0, m.size)(d) || !(0, m.size)(d) || Object.keys(d).every(function(a) {
- return a === "class" ? f.classList.contains(d[a]) : a === "style" ? (0, h.hasSameStyle)(f, d[a]) : (0, n.attr)(f, a) === d[a];
- });
- }, t.elementsEqualAttributes = function(f, d) {
- return f.attributes.length === d.attributes.length && Array.from(f.attributes).every(function(a) {
- return d.hasAttribute(a.name) && d.getAttribute(a.name) === a.value;
- });
- };
- }, 74477: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isSameStyleChild = t.findSuitClosest = t.isSuitElement = void 0;
- var n = e(24263), m = e(63150), h = e(18387);
- function f(d, a, s) {
- var c;
- if (!a) return !1;
- var p = d.element, l = d.elementIsDefault, o = d.options, r = !!(!((c = o.attributes) === null || c === void 0) && c.style && (0, h.hasSameStyle)(a, o.attributes.style)), i = a.nodeName.toLowerCase() === p || n.Dom.isTag(a, ["ul", "ol"]) && d.elementIsList;
- return !((l && s || !i) && (!r || !(0, m.isNormalNode)(a) || d.elementIsList)) || !!(!i && !s && l && n.Dom.isInlineBlock(a));
- }
- t.isSuitElement = f, t.findSuitClosest = function(d, a, s) {
- return n.Dom.closest(a, function(c) {
- return f(d, c, !0);
- }, s);
- }, t.isSameStyleChild = function(d, a) {
- var s, c, p = d.element, l = d.options;
- if (!a || !(0, m.isNormalNode)(a)) return !1;
- var o = a.nodeName.toLowerCase() === p, r = !!(!((s = l.attributes) === null || s === void 0) && s.style && (0, h.hasSameStyleKeys)(a, (c = l.attributes) === null || c === void 0 ? void 0 : c.style));
- return o && r;
- };
- }, 11651: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.toggleOrderedList = void 0;
- var n = e(24263), m = (e(52378), e(77846)), h = e(70851), f = e(93217), d = e(66162);
- function a(s, c, p, l, o) {
- return l.e.fire("".concat(h._PREFIX, "BeforeUnwrapList"), s, c, o) || ((0, m.extractSelectedPart)(c, p, l), n.Dom.unwrap(p.parentElement), n.Dom.replace(p, l.o.enter, l.createInside));
- }
- t.toggleOrderedList = function(s, c, p, l) {
- if (!c) return l;
- var o = c.parentElement;
- if (!o) return l;
- var r = p.e.fire("".concat(h._PREFIX, "BeforeToggleList"), l, s, o);
- if (r !== void 0) return r;
- var i = p.e.fire.bind(p.e, "".concat(h._PREFIX, "AfterToggleList"));
- if (l !== h.UNWRAP) {
- var u = (0, f.toggleAttributes)(s, c.parentElement, p, h.INITIAL, !0) === h.CHANGE;
- if (l === h.REPLACE || u || o.tagName.toLowerCase() !== s.element) {
- var v = a(h.REPLACE, o, c, p, s), y = (0, d.wrapList)(s, v, p);
- return i(h.REPLACE, y, s), h.REPLACE;
- }
- }
- var g = a(h.UNWRAP, o, c, p, s);
- return i(h.UNWRAP, g, s), h.UNWRAP;
- };
- }, 29271: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.wrapList = void 0;
- var n = e(64968), m = e(70851), h = e(66162);
- t.wrapList = function(f, d, a) {
- var s = a.e.fire("".concat(m._PREFIX, "BeforeWrapList"), m.REPLACE, d, f), c = s != null ? s : n.Dom.replace(d, "li", a.createInside), p = c.previousElementSibling, l = c.nextElementSibling, o = n.Dom.isTag(p, f.element) ? p : null;
- return o != null || (o = n.Dom.isTag(l, f.element) ? l : null), n.Dom.isTag(o, ["ul", "ol"]) && (0, h.isSameAttributes)(o, f.options.attributes) || (o = a.createInside.element(f.element), (0, h.toggleAttributes)(f, o, a, m.INITIAL), n.Dom.before(c, o)), p === o ? n.Dom.append(o, c) : n.Dom.prepend(o, c), n.Dom.isTag(o.nextElementSibling, f.element) && (0, h.elementsEqualAttributes)(o, o.nextElementSibling) && (n.Dom.append(o, Array.from(o.nextElementSibling.childNodes)), n.Dom.safeRemove(o.nextElementSibling)), a.e.fire("".concat(m._PREFIX, "AfterWrapList"), m.WRAP, o, f), o;
- };
- }, 93217: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.toggleAttributes = void 0;
- var n = e(76502), m = e(26911), h = e(63122), f = e(11278), d = e(49353), a = e(16492), s = e(24263), c = e(70851), p = e(17332), l = (e(10172), "toggleAttributes");
- function o(r, i, u) {
- return (0, n.attr)(i, "style") || ((0, n.attr)(i, "style", null), i.tagName.toLowerCase() === r.defaultTag && (s.Dom.unwrap(i), u = c.UNWRAP)), u;
- }
- t.toggleAttributes = function(r, i, u, v, y) {
- if (y === void 0 && (y = !1), !y && r.isApplied(i, l)) return v;
- !y && r.setApplied(i, l);
- var g = r.options.attributes;
- return g && (0, a.size)(g) > 0 && Object.keys(g).forEach(function(b) {
- var w = g[b];
- switch (b) {
- case "style":
- v = function(C, S, j, E, x, k) {
- return Object.keys(j).forEach(function(I) {
- var M = E.style.getPropertyValue((0, f.kebabCase)(I)), T = j[I];
- if (M !== "" || T != null) {
- if (function(O, L, N) {
- var H = O.create.element(L.tagName.toLowerCase());
- H.style.cssText = L.style.cssText, function(F) {
- var U;
- if ((0, h.dataBind)(F, "shadowRoot") !== void 0) return (0, h.dataBind)(F, "shadowRoot");
- var Y = (0, p.getContainer)(F), P = document.createElement("iframe");
- (0, m.css)(P, { width: 0, height: 0, position: "absolute", border: 0 }), P.src = "about:blank", Y.appendChild(P);
- var D = (U = P.contentWindow) === null || U === void 0 ? void 0 : U.document, z = D ? D.body : F.od.body;
- return (0, h.dataBind)(F, "shadowRoot", z), z;
- }(O).appendChild(H);
- var q = (0, m.css)(H, N);
- return s.Dom.safeRemove(H), q;
- }(S, E, I) === (0, d.normalizeCssValue)(I, T))
- return M ? (!x && (0, m.css)(E, I, null), void (k = o(C, E, k = c.UNSET))) : void 0;
- k = c.CHANGE, x || ((0, m.css)(E, I, T), k = o(C, E, k));
- }
- }), k;
- }(r, u, w, i, y, v);
- break;
- case "class":
- v = function(C, S, j, E, x) {
- var k = C.e.fire.bind(C.e, "".concat(c._PREFIX, "AfterToggleAttribute"));
- return j.classList.contains(S.toString()) ? (E = c.UNSET, x || (j.classList.remove(S), j.classList.length === 0 && ((0, n.attr)(j, "class", null), k(E, j, "class", null)))) : (E = c.CHANGE, x || (j.classList.add(S), k(E, j, "class", S))), E;
- }(u, w, i, v, y);
- break;
- default:
- v = function(C, S, j, E, x, k) {
- var I = C.e.fire.bind(C.e, "".concat(c._PREFIX, "AfterToggleAttribute"));
- return (0, n.attr)(j, E) === S ? (!x && (0, n.attr)(j, E, null), k = c.UNSET, !x && I(k, j, E, S), k) : (k = c.CHANGE, x || ((0, n.attr)(j, E, S), I(k, j, E, S)), k);
- }(u, w, i, b, y, v);
- }
- }), v;
- };
- }, 26707: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.unwrapChildren = void 0;
- var n = e(24263), m = e(40332), h = e(18387), f = e(74477);
- t.unwrapChildren = function(d, a) {
- var s, c, p = [], l = [], o = (s = d.options.attributes) === null || s === void 0 ? void 0 : s.style;
- if (a.firstChild) for (var r = n.Dom.eachGen(a), i = r.next(), u = function() {
- var v = i.value;
- !(0, f.isSuitElement)(d, v, !0) || o && !(0, h.hasSameStyleKeys)(v, o) ? o && (0, f.isSameStyleChild)(d, v) ? (c === void 0 && (c = !1), l.push(function() {
- (0, m.css)(v, Object.keys(o).reduce(function(y, g) {
- return y[g] = null, y;
- }, {})), (0, m.attr)(v, "style") || (0, m.attr)(v, "style", null), (0, m.attr)(v, "style") || v.nodeName.toLowerCase() !== d.element || p.push(v);
- })) : n.Dom.isEmptyTextNode(v) || c === void 0 && (c = !1) : (c === void 0 && (c = !0), p.push(v)), i = r.next();
- }; !i.done; ) u();
- return l.forEach(function(v) {
- return v();
- }), p.forEach(n.Dom.unwrap), !!c;
- };
- }, 6278: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.wrapUnwrappedText = void 0;
- var n = e(24263), m = e(37204);
- t.wrapUnwrappedText = function(h, f, d) {
- var a = d.editor, s = d.createInside, c = function(u, v) {
- v === void 0 && (v = "previousSibling");
- for (var y = u, g = u; g && !(0, m.isMarker)(g) && !n.Dom.isTag(g, d.o.enter) && (y = g, g = g[v] ? g[v] : g.parentNode && !n.Dom.isBlock(g.parentNode) && g.parentNode !== a ? g.parentNode : null, !n.Dom.isBlock(g)); ) ;
- return y;
- }, p = c(f), l = c(f, "nextSibling"), o = d.s.createRange();
- o.setStartBefore(p), o.setEndAfter(l);
- var r = o.extractContents(), i = s.element(h.element);
- return i.appendChild(r), n.Dom.safeInsertNode(o, i), h.elementIsBlock && n.Dom.isEmpty(i) && !n.Dom.isTag(i.firstElementChild, "br") && i.appendChild(s.element("br")), i;
- };
- }, 8298: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.wrap = void 0;
- var n = e(64968), m = e(6278), h = e(67309), f = e(29271);
- t.wrap = function(d, a, s) {
- var c = function(p, l, o) {
- return p.elementIsBlock ? n.Dom.up(l, function(r) {
- return n.Dom.isBlock(r) && !n.Dom.isTag(r, ["td", "th", "tr", "tbody", "table", "li", "ul", "ol"]);
- }, o.editor) || (0, m.wrapUnwrappedText)(p, l, o) : ((0, h.attr)(l, "size", null), l);
- }(d, a, s);
- return d.elementIsList ? (0, f.wrapList)(d, c, s) : n.Dom.replace(c, d.element, s.createInside, !0);
- };
- }, 3097: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ApplyStyle = void 0;
- var n = e(74504), m = e(66162), h = e(33090), f = e(70851);
- t.ApplyStyle = function(d, a) {
- var s = d.s, c = d.editor;
- s.save(), (0, n.normalizeNode)(c.firstChild);
- for (var p = d.s.wrapInTagGen(), l = p.next(), o = { mode: f.INITIAL, element: l.value, next: h.states.START, jodit: d, style: a }; l && !l.done; ) {
- var r = new m.FiniteStateMachine(h.states.START, h.transactions);
- for (o.element = l.value; r.getState() !== h.states.END; ) o = r.dispatch("exec", o);
- l = p.next();
- }
- s.restore();
- };
- }, 70851: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.CommitStyle = t._PREFIX = t.REPLACE = t.INITIAL = t.UNSET = t.CHANGE = t.UNWRAP = t.WRAP = void 0;
- var n = e(86893), m = e(26596), h = e(3097);
- t.WRAP = "wrap", t.UNWRAP = "unwrap", t.CHANGE = "change", t.UNSET = "unset", t.INITIAL = "initial", t.REPLACE = "replace", t._PREFIX = "commitStyle";
- var f = function() {
- function d(a) {
- var s, c, p, l;
- this.options = a, this.__applyMap = /* @__PURE__ */ new WeakMap(), a.attributes = (s = a.attributes, l = (c = this.options).className, (p = c.style) && (s ? s.style = p : s = { style: p }, delete this.options.style), l && (s ? s.class = l : s = { class: l }, delete this.options.className), s);
- }
- return d.prototype.isApplied = function(a, s) {
- var c = this.__applyMap.get(a);
- return !!c && c[s];
- }, d.prototype.setApplied = function(a, s) {
- var c, p = (c = this.__applyMap.get(a)) !== null && c !== void 0 ? c : {};
- p[s] = !0, this.__applyMap.set(a, p);
- }, Object.defineProperty(d.prototype, "elementIsList", { get: function() {
- return !!(this.options.element && ["ul", "ol"].includes(this.options.element));
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "element", { get: function() {
- return this.options.element || this.defaultTag;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "elementIsBlock", { get: function() {
- return !!(this.options.element && n.IS_BLOCK.test(this.options.element));
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "isElementCommit", { get: function() {
- return !!(this.options.element && this.options.element !== this.options.defaultTag);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "defaultTag", { get: function() {
- return this.options.defaultTag ? this.options.defaultTag : this.elementIsBlock ? "p" : "span";
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(d.prototype, "elementIsDefault", { get: function() {
- return this.element === this.defaultTag;
- }, enumerable: !1, configurable: !0 }), d.prototype.apply = function(a) {
- var s = this.options.hooks;
- try {
- s && Object.keys(s).forEach(function(c) {
- a.e.on((0, m.camelCase)(t._PREFIX + "_" + c), s[c]);
- }), (0, h.ApplyStyle)(a, this);
- } finally {
- s && Object.keys(s).forEach(function(c) {
- a.e.off((0, m.camelCase)(t._PREFIX + "_" + c), s[c]);
- }), this.__applyMap = /* @__PURE__ */ new WeakMap();
- }
- }, d;
- }();
- t.CommitStyle = f;
- }, 33090: function(_, t, e) {
- var n;
- Object.defineProperty(t, "__esModule", { value: !0 }), t.transactions = t.states = void 0;
- var m = e(20255), h = e(2123), f = e(66162), d = e(64968), a = e(2123);
- e(52378), t.states = { START: "START", ELEMENT: "ELEMENT", UNWRAP: "UNWRAP", UNWRAP_CHILDREN: "UNWRAP_CHILDREN", CHANGE: "CHANGE", REPLACE_DEFAULT: "REPLACE_DEFAULT", LIST: "LIST", TOGGLE_LIST: "TOGGLE_LIST", WRAP: "WRAP", EXTRACT: "EXTRACT", END: "END" }, t.transactions = ((n = {})[t.states.START] = { exec: function(s) {
- var c = s.element, p = s.jodit, l = s.style, o = s.mode;
- if ((0, f.isInsideInvisibleElement)(c, p.editor) || d.Dom.isEmptyContent(c)) return m.__assign(m.__assign({}, s), { next: t.states.END });
- var r = (0, f.getSuitParent)(l, c, p.editor) || (0, f.getSuitChild)(l, c);
- if (r) return m.__assign(m.__assign({}, s), { next: t.states.ELEMENT, element: r });
- var i = (0, f.findSuitClosest)(l, c, p.editor);
- return l.elementIsList && d.Dom.isTag(i, ["ul", "ol"]) ? m.__assign(m.__assign({}, s), { next: t.states.LIST }) : m.__assign(m.__assign({}, s), i ? { next: t.states.EXTRACT } : { next: o !== a.UNWRAP ? t.states.UNWRAP_CHILDREN : t.states.END });
- } }, n[t.states.LIST] = { exec: function(s) {
- var c = s.element, p = s.jodit, l = s.mode;
- if (l !== a.INITIAL && l !== a.UNWRAP && l !== h.REPLACE) return m.__assign(m.__assign({}, s), { next: t.states.END });
- var o = d.Dom.closest(c, "li", p.editor);
- if (!o) return m.__assign(m.__assign({}, s), { next: t.states.END });
- var r = d.Dom.closest(c, ["ul", "ol"], p.editor);
- return m.__assign(m.__assign({}, s), r ? { element: o, next: t.states.TOGGLE_LIST } : { next: t.states.END });
- } }, n[t.states.TOGGLE_LIST] = { exec: function(s) {
- return m.__assign(m.__assign({}, s), { mode: (0, f.toggleOrderedList)(s.style, s.element, s.jodit, s.mode), next: t.states.END });
- } }, n[t.states.EXTRACT] = { exec: function(s) {
- var c = s.element, p = s.jodit, l = s.style, o = (0, f.findSuitClosest)(l, c, p.editor);
- return l.elementIsBlock || (0, f.extractSelectedPart)(o, c, p), m.__assign(m.__assign({}, s), { element: o, next: t.states.ELEMENT });
- } }, n[t.states.UNWRAP_CHILDREN] = { exec: function(s) {
- return (0, f.unwrapChildren)(s.style, s.element) ? m.__assign(m.__assign({}, s), { mode: a.UNWRAP, next: t.states.END }) : m.__assign(m.__assign({}, s), { next: t.states.WRAP });
- } }, n[t.states.WRAP] = { exec: function(s) {
- var c = s.style, p = (0, f.wrap)(c, s.element, s.jodit);
- return m.__assign(m.__assign({}, s), { next: c.elementIsList ? t.states.END : t.states.CHANGE, mode: a.WRAP, element: p });
- } }, n[t.states.ELEMENT] = { exec: function(s) {
- var c = s.style, p = s.element;
- return (0, f.toggleAttributes)(c, p, s.jodit, a.INITIAL, !0) !== a.INITIAL ? m.__assign(m.__assign({}, s), { next: t.states.CHANGE }) : d.Dom.isTag(p, c.element) ? m.__assign(m.__assign({}, s), { next: t.states.UNWRAP }) : m.__assign(m.__assign({}, s), { next: t.states.END });
- } }, n[t.states.CHANGE] = { exec: function(s) {
- var c = s.style, p = s.element, l = s.mode, o = (0, f.toggleAttributes)(c, p, s.jodit, s.mode);
- return l !== a.WRAP && o === a.UNSET && !p.attributes.length && d.Dom.isTag(p, c.element) ? m.__assign(m.__assign({}, s), { next: t.states.UNWRAP }) : m.__assign(m.__assign({}, s), { mode: o, next: t.states.END });
- } }, n[t.states.UNWRAP] = { exec: function(s) {
- return s.element.attributes.length && d.Dom.isTag(s.element, s.style.element) ? m.__assign(m.__assign({}, s), { next: t.states.REPLACE_DEFAULT }) : (d.Dom.unwrap(s.element), m.__assign(m.__assign({}, s), { mode: a.UNWRAP, next: t.states.END }));
- } }, n[t.states.REPLACE_DEFAULT] = { exec: function(s) {
- return d.Dom.replace(s.element, s.style.defaultTag, s.jodit.createInside, !0), m.__assign(m.__assign({}, s), { mode: h.REPLACE, next: t.states.END });
- } }, n[t.states.END] = { exec: function(s) {
- return s;
- } }, n);
- }, 75764: function(_, t) {
- var e;
- Object.defineProperty(t, "__esModule", { value: !0 }), t.LocalStorageProvider = t.canUsePersistentStorage = void 0, t.canUsePersistentStorage = function() {
- return e === void 0 && (e = function() {
- var m = "___Jodit___" + Math.random().toString();
- try {
- localStorage.setItem(m, "1");
- var h = localStorage.getItem(m) === "1";
- return localStorage.removeItem(m), h;
- } catch (f) {
- }
- return !1;
- }()), e;
- };
- var n = function() {
- function m(h) {
- this.rootKey = h;
- }
- return m.prototype.set = function(h, f) {
- try {
- var d = localStorage.getItem(this.rootKey), a = d ? JSON.parse(d) : {};
- a[h] = f, localStorage.setItem(this.rootKey, JSON.stringify(a));
- } catch (s) {
- }
- return this;
- }, m.prototype.delete = function(h) {
- try {
- localStorage.removeItem(this.rootKey);
- } catch (f) {
- }
- return this;
- }, m.prototype.get = function(h) {
- try {
- var f = localStorage.getItem(this.rootKey), d = f ? JSON.parse(f) : {};
- return d[h] !== void 0 ? d[h] : null;
- } catch (a) {
- }
- }, m.prototype.exists = function(h) {
- return this.get(h) != null;
- }, m.prototype.clear = function() {
- try {
- localStorage.removeItem(this.rootKey);
- } catch (h) {
- }
- return this;
- }, m;
- }();
- t.LocalStorageProvider = n;
- }, 79905: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.MemoryStorageProvider = void 0;
- var e = function() {
- function n() {
- this.data = /* @__PURE__ */ new Map();
- }
- return n.prototype.set = function(m, h) {
- return this.data.set(m, h), this;
- }, n.prototype.delete = function(m) {
- return this.data.delete(m), this;
- }, n.prototype.get = function(m) {
- return this.data.get(m);
- }, n.prototype.exists = function(m) {
- return this.data.has(m);
- }, n.prototype.clear = function() {
- return this.data.clear(), this;
- }, n;
- }();
- t.MemoryStorageProvider = e;
- }, 77462: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(79905), t), n.__exportStar(e(75764), t), n.__exportStar(e(52015), t);
- }, 52015: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Storage = t.StorageKey = void 0;
- var n = e(40332), m = e(75764), h = e(79905);
- t.StorageKey = "Jodit_";
- var f = function() {
- function d(a, s) {
- this.provider = a, this.prefix = t.StorageKey, s && (this.prefix += s);
- }
- return d.prototype.set = function(a, s) {
- return this.provider.set((0, n.camelCase)(this.prefix + a), s), this;
- }, d.prototype.delete = function(a) {
- return this.provider.delete((0, n.camelCase)(this.prefix + a)), this;
- }, d.prototype.get = function(a) {
- return this.provider.get((0, n.camelCase)(this.prefix + a));
- }, d.prototype.exists = function(a) {
- return this.provider.exists((0, n.camelCase)(this.prefix + a));
- }, d.prototype.clear = function() {
- return this.provider.clear(), this;
- }, d.makeStorage = function(a, s) {
- var c;
- return a === void 0 && (a = !1), a && (0, m.canUsePersistentStorage)() && (c = new m.LocalStorageProvider(t.StorageKey + s)), c || (c = new h.MemoryStorageProvider()), new d(c, s);
- }, d;
- }();
- t.Storage = f;
- }, 59363: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Dlgs = void 0;
- var n = e(20255), m = e(87837), h = e(40332), f = function() {
- function d() {
- }
- return d.prototype.dlg = function(a) {
- var s = new m.Dialog(n.__assign({ language: this.o.language, shadowRoot: this.o.shadowRoot, ownerWindow: this.o.ownerWindow, defaultTimeout: this.o.defaultTimeout, theme: this.o.theme, globalFullSize: this.o.globalFullSize }, a));
- return (0, h.markOwner)(this, s.container), s.parent = this, s.bindDestruct(this);
- }, d.prototype.confirm = function(a, s, c) {
- return (0, h.isString)(s) && (s = this.i18n(s)), m.Confirm.call(this.dlg(), this.i18n(a), s, c);
- }, d.prototype.prompt = function(a, s, c, p, l) {
- return (0, h.isString)(s) && (s = this.i18n(s)), (0, h.isString)(p) && (p = this.i18n(p)), m.Prompt.call(this.dlg(), this.i18n(a), s, c, p, l);
- }, d.prototype.alert = function(a, s, c, p) {
- return (0, h.isString)(a) && (a = this.i18n(a)), (0, h.isString)(s) && (s = this.i18n(s)), m.Alert.call(this.dlg(), a, s, c, p);
- }, d;
- }();
- t.Dlgs = f;
- }, 14089: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Elms = void 0;
- var n = e(1853), m = function() {
- function h() {
- }
- return h.prototype.getElm = function(f) {
- return this.container.querySelector(".".concat(this.getFullElName(f)));
- }, h.prototype.getElms = function(f) {
- return (0, n.toArray)(this.container.querySelectorAll(".".concat(this.getFullElName(f))));
- }, h;
- }();
- t.Elms = m;
- }, 59829: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(14089), t), n.__exportStar(e(41681), t), n.__exportStar(e(59363), t);
- }, 41681: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Mods = void 0;
- var n = e(1853), m = e(24021), h = function() {
- function f() {
- }
- return f.prototype.afterSetMod = function(d, a) {
- }, f.prototype.setMod = function(d, a, s) {
- if (d = d.toLowerCase(), this.mods[d] === a) return this;
- var c = "".concat(this.componentName, "_").concat(d), p = (s || this.container).classList;
- return (0, n.toArray)(p).forEach(function(l) {
- l.indexOf(c) === 0 && p.remove(l);
- }), !(0, m.isVoid)(a) && a !== "" && p.add("".concat(c, "_").concat(a.toString().toLowerCase())), this.mods[d] = a, this.afterSetMod(d, a), this;
- }, f.prototype.getMod = function(d) {
- var a;
- return (a = this.mods[d]) !== null && a !== void 0 ? a : null;
- }, f;
- }();
- t.Mods = h;
- }, 96031: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Button = t.UIButton = t.UIButtonState = void 0;
- var n = e(20255);
- e(93330);
- var m = e(53929), h = e(24263), f = e(76502), d = e(24421), a = e(42096), s = e(77904), c = e(47970), p = e(43441), l = e(29411);
- t.UIButtonState = function() {
- return { size: "middle", type: "button", name: "", value: "", variant: "initial", disabled: !1, activated: !1, icon: { name: "empty", fill: "", iconURL: "" }, tooltip: "", text: "", tabIndex: void 0 };
- };
- var o = function(r) {
- function i(u, v) {
- var y = r.call(this, u) || this;
- return y.isButton = !0, y.state = (0, t.UIButtonState)(), y.actionHandlers = [], y.updateSize(), y.onChangeSize(), y.onChangeStatus(), v && y.hookStatus(l.STATUSES.ready, function() {
- y.setState(v);
- }), y;
- }
- return n.__extends(i, r), i.prototype.className = function() {
- return "UIButton";
- }, i.prototype.setState = function(u) {
- return Object.assign(this.state, u), this;
- }, i.prototype.onChangeSize = function() {
- this.setMod("size", this.state.size);
- }, i.prototype.onChangeType = function() {
- (0, f.attr)(this.container, "type", this.state.type);
- }, i.prototype.updateSize = function() {
- var u = this.closest(c.UIList);
- u && (this.state.size = u.buttonSize);
- }, i.prototype.onChangeStatus = function() {
- this.setMod("variant", this.state.variant);
- }, i.prototype.onChangeText = function() {
- this.text.textContent = this.jodit.i18n(this.state.text);
- }, i.prototype.onChangeTextSetMode = function() {
- this.setMod("text-icons", !!this.state.text.trim().length);
- }, i.prototype.onChangeDisabled = function() {
- (0, f.attr)(this.container, "disabled", this.state.disabled || null);
- }, i.prototype.onChangeActivated = function() {
- (0, f.attr)(this.container, "aria-pressed", this.state.activated);
- }, i.prototype.onChangeName = function() {
- this.container.classList.add("".concat(this.componentName, "_").concat(this.clearName(this.state.name))), this.name = this.state.name, (0, f.attr)(this.container, "data-ref", this.state.name), (0, f.attr)(this.container, "ref", this.state.name);
- }, i.prototype.onChangeTooltip = function() {
- this.get("j.o.useNativeTooltip") && (0, f.attr)(this.container, "title", this.state.tooltip), (0, f.attr)(this.container, "aria-label", this.state.tooltip);
- }, i.prototype.onChangeTabIndex = function() {
- (0, f.attr)(this.container, "tabindex", this.state.tabIndex);
- }, i.prototype.onChangeIcon = function() {
- var u = this.get("j.o.textIcons");
- if (!(u === !0 || (0, a.isFunction)(u) && u(this.state.name))) {
- h.Dom.detach(this.icon);
- var v = s.Icon.makeIcon(this.j, this.state.icon);
- v && this.icon.appendChild(v);
- }
- }, i.prototype.focus = function() {
- this.container.focus();
- }, i.prototype.isFocused = function() {
- var u = this.od.activeElement;
- return !!(u && h.Dom.isOrContains(this.container, u));
- }, i.prototype.createContainer = function() {
- var u = this.componentName, v = this.j.c.element("button", { class: u, type: "button", role: "button", ariaPressed: !1 });
- return this.icon = this.j.c.span(u + "__icon"), this.text = this.j.c.span(u + "__text"), v.appendChild(this.icon), v.appendChild(this.text), this.j.e.on(v, "click", this.onActionFire), v;
- }, i.prototype.destruct = function() {
- return this.j.e.off(this.container), r.prototype.destruct.call(this);
- }, i.prototype.onAction = function(u) {
- return this.actionHandlers.push(u), this;
- }, i.prototype.onActionFire = function(u) {
- var v = this;
- u.buffer = { actionTrigger: this }, this.actionHandlers.forEach(function(y) {
- return y.call(v, u);
- });
- }, n.__decorate([(0, p.watch)("state.size")], i.prototype, "onChangeSize", null), n.__decorate([(0, p.watch)("state.type")], i.prototype, "onChangeType", null), n.__decorate([(0, p.watch)("parentElement")], i.prototype, "updateSize", null), n.__decorate([(0, p.watch)("state.variant")], i.prototype, "onChangeStatus", null), n.__decorate([(0, p.watch)("state.text")], i.prototype, "onChangeText", null), n.__decorate([(0, p.watch)("state.text")], i.prototype, "onChangeTextSetMode", null), n.__decorate([(0, p.watch)("state.disabled")], i.prototype, "onChangeDisabled", null), n.__decorate([(0, p.watch)("state.activated")], i.prototype, "onChangeActivated", null), n.__decorate([(0, p.watch)("state.name")], i.prototype, "onChangeName", null), n.__decorate([(0, p.watch)("state.tooltip")], i.prototype, "onChangeTooltip", null), n.__decorate([(0, p.watch)("state.tabIndex")], i.prototype, "onChangeTabIndex", null), n.__decorate([(0, p.watch)("state.icon")], i.prototype, "onChangeIcon", null), n.__decorate([p.autobind], i.prototype, "onActionFire", null), n.__decorate([p.component], i);
- }(m.UIElement);
- t.UIButton = o, t.Button = function(r, i, u, v) {
- var y = new o(r);
- return y.state.tabIndex = r.o.allowTabNavigation ? 0 : -1, (0, d.isString)(i) ? (y.state.icon.name = i, y.state.name = i, v && (y.state.variant = v), u && (y.state.text = u)) : y.setState(i), y;
- };
- }, 67252: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIButtonGroup = void 0;
- var n = e(20255);
- e(45066);
- var m = e(61479), h = e(11441), f = e(96031), d = (e(52378), function(a) {
- function s(c, p) {
- p === void 0 && (p = { radio: !0 });
- var l, o, r = this;
- return (r = a.call(this, c, (l = p.options) === null || l === void 0 ? void 0 : l.map(function(i) {
- var u = new f.UIButton(c, { text: i.text, value: i.value, variant: "primary" });
- return u.onAction(function() {
- r.select(i.value);
- }), u;
- }), p) || this).options = p, r.select((o = p.value) !== null && o !== void 0 ? o : 0), r;
- }
- return n.__extends(s, a), s.prototype.className = function() {
- return "UIButtonGroup";
- }, s.prototype.render = function(c) {
- return `<div>
- <div class="&__label">~`.concat(c.label, `~</div>
- <div class="&__options"></div>
- </div>`);
- }, s.prototype.appendChildToContainer = function(c) {
- this.getElm("options").appendChild(c);
- }, s.prototype.select = function(c) {
- var p, l, o = this;
- this.elements.forEach(function(i, u) {
- u === c || i.state.value === c ? i.state.activated = !0 : o.options.radio && (i.state.activated = !1);
- });
- var r = this.elements.filter(function(i) {
- return i.state.activated;
- }).map(function(i) {
- return { text: i.state.text, value: i.state.value };
- });
- this.jodit.e.fire(this, "select", r), (l = (p = this.options).onChange) === null || l === void 0 || l.call(p, r);
- }, n.__decorate([h.component], s);
- }(m.UIGroup));
- t.UIButtonGroup = d;
- }, 96516: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(96031), t), n.__exportStar(e(67252), t), n.__exportStar(e(33627), t);
- }, 33627: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UITooltip = void 0;
- var n = e(20255);
- e(99895);
- var m = e(40332), h = e(17332), f = e(43441), d = function(a) {
- function s(c) {
- var p = a.call(this, c) || this;
- p.__isOpened = !1, p.__useCount = 1, p.__delayShowTimeout = 0, (0, h.getContainer)(c, s).appendChild(p.container);
- var l = 0;
- return c.e.off(".tooltip").on("showTooltip.tooltip", function(o, r) {
- c.async.clearTimeout(l), p.__open(o, r);
- }).on("delayShowTooltip.tooltip", p.__delayOpen).on("escape.tooltip", p.__close).on("hideTooltip.tooltip change.tooltip scroll.tooltip changePlace.tooltip hidePopup.tooltip closeAllPopups.tooltip", function() {
- p.j.async.clearTimeout(p.__delayShowTimeout), l = c.async.setTimeout(p.__close, p.j.defaultTimeout);
- }), p;
- }
- return n.__extends(s, a), s.prototype.className = function() {
- return "UITooltip";
- }, s.make = function(c) {
- var p = (0, m.dataBind)(c, "ui-tooltip");
- return p ? (p.__useCount += 1, p) : (p = new s(c), (0, m.dataBind)(c, "ui-tooltip", p), p);
- }, s.prototype.__delayOpen = function(c, p) {
- var l = this, o = this.j.o.showTooltipDelay || this.j.defaultTimeout;
- this.j.async.clearTimeout(this.__delayShowTimeout), this.__delayShowTimeout = this.j.async.setTimeout(function() {
- return l.__open(c, p);
- }, { timeout: o, label: "tooltip" });
- }, s.prototype.__open = function(c, p) {
- this.setMod("visible", !0), this.container.innerHTML = p, this.__isOpened = !0, this.__setPosition(c);
- }, s.prototype.__setPosition = function(c) {
- var p = c();
- (0, m.css)(this.container, { left: p.x, top: p.y });
- }, s.prototype.__close = function() {
- this.j.async.clearTimeout(this.__delayShowTimeout), this.__isOpened && (this.__isOpened = !1, this.setMod("visible", !1), (0, m.css)(this.container, { left: -5e3 }));
- }, s.prototype.destruct = function() {
- var c;
- this.__useCount--, this.__useCount || ((c = this.j) === null || c === void 0 || c.e.off(".tooltip"), this.__close(), a.prototype.destruct.call(this));
- }, n.__decorate([f.autobind], s.prototype, "__delayOpen", null), n.__decorate([f.autobind], s.prototype, "__close", null), s;
- }(e(53929).UIElement);
- t.UITooltip = d;
- }, 53929: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIElement = void 0;
- var n = e(20255), m = e(56562), h = e(24263), f = e(59829), d = e(24421), a = e(77904), s = e(43441), c = function(p) {
- function l(r, i) {
- var u = p.call(this, r) || this;
- return u.name = "", u.__parentElement = null, u.mods = {}, u.container = u.createContainer(i), Object.defineProperty(u.container, "component", { value: u, configurable: !0 }), u;
- }
- var o;
- return n.__extends(l, p), o = l, Object.defineProperty(l.prototype, "parentElement", { get: function() {
- return this.__parentElement;
- }, set: function(r) {
- var i = this;
- this.__parentElement = r, r && r.hookStatus("beforeDestruct", function() {
- return i.destruct();
- }), this.updateParentElement(this);
- }, enumerable: !1, configurable: !0 }), l.prototype.bubble = function(r) {
- for (var i = this.parentElement; i; ) r(i), i = i.parentElement;
- return this;
- }, l.prototype.updateParentElement = function(r) {
- var i;
- return (i = this.__parentElement) === null || i === void 0 || i.updateParentElement(r), this;
- }, l.prototype.get = function(r, i) {
- return p.prototype.get.call(this, r, i) || this.getElm(r);
- }, l.prototype.closest = function(r) {
- for (var i = typeof r == "object" ? function(v) {
- return v === r;
- } : function(v) {
- return m.Component.isInstanceOf(v, r);
- }, u = this.__parentElement; u; ) {
- if (i(u)) return u;
- u = !u.parentElement && u.container.parentElement ? o.closestElement(u.container.parentElement, o) : u.parentElement;
- }
- return null;
- }, l.closestElement = function(r, i) {
- var u = h.Dom.up(r, function(v) {
- if (v) {
- var y = v.component;
- return y && m.Component.isInstanceOf(y, i);
- }
- return !1;
- });
- return u ? u == null ? void 0 : u.component : null;
- }, l.prototype.update = function() {
- }, l.prototype.appendTo = function(r) {
- return r.appendChild(this.container), this;
- }, l.prototype.clearName = function(r) {
- return r.replace(/[^a-zA-Z0-9]/g, "_");
- }, l.prototype.render = function(r) {
- return this.j.c.div(this.componentName);
- }, l.prototype.createContainer = function(r) {
- var i = this.render(r);
- if ((0, d.isString)(i)) {
- var u = this.parseTemplate(i);
- return u.classList.add(this.componentName), u;
- }
- return i;
- }, l.prototype.parseTemplate = function(r) {
- var i = this;
- return this.j.c.fromHTML(r.replace(/\*([^*]+?)\*/g, function(u, v) {
- return a.Icon.get(v) || "";
- }).replace(/&__/g, this.componentName + "__").replace(/~([^~]+?)~/g, function(u, v) {
- return i.i18n(v);
- }));
- }, l.prototype.destruct = function() {
- return h.Dom.safeRemove(this.container), this.parentElement = null, p.prototype.destruct.call(this);
- }, o = n.__decorate([(0, s.derive)(f.Mods, f.Elms)], l);
- }(m.ViewComponent);
- t.UIElement = c;
- }, 38318: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIBlock = void 0;
- var n = e(20255);
- e(87682);
- var m = e(61479), h = e(76502), f = e(11441), d = function(a) {
- function s(c, p, l) {
- l === void 0 && (l = { align: "left" });
- var o = a.call(this, c, p) || this;
- return o.options = l, o.setMod("align", o.options.align || "left"), o.setMod("width", o.options.width || ""), o.options.mod && o.setMod(o.options.mod, !0), o.options.className && o.container.classList.add(o.options.className), (0, h.attr)(o.container, "data-ref", l.ref), (0, h.attr)(o.container, "ref", l.ref), o;
- }
- return n.__extends(s, a), s.prototype.className = function() {
- return "UIBlock";
- }, n.__decorate([f.component], s);
- }(m.UIGroup);
- t.UIBlock = d;
- }, 26207: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIForm = void 0;
- var n = e(20255), m = e(61479), h = e(30194), f = e(75840), d = e(76502), a = e(11441), s = e(45113), c = function(p) {
- function l() {
- for (var o = [], r = 0; arguments.length > r; r++) o[r] = arguments[r];
- var i, u, v = this;
- return !((i = (v = p.apply(this, n.__spreadArray([], n.__read(o), !1)) || this).options) === null || i === void 0) && i.className && v.container.classList.add((u = v.options) === null || u === void 0 ? void 0 : u.className), v;
- }
- return n.__extends(l, p), l.prototype.className = function() {
- return "UIForm";
- }, l.prototype.submit = function() {
- this.j.e.fire(this.container, "submit");
- }, l.prototype.validate = function() {
- var o, r, i, u, v = this.allChildren.filter(function(S) {
- return s.Component.isInstanceOf(S, h.UIInput);
- });
- try {
- for (var y = n.__values(v), g = y.next(); !g.done; g = y.next()) if (!g.value.validate()) return !1;
- } catch (S) {
- o = { error: S };
- } finally {
- try {
- g && !g.done && (r = y.return) && r.call(y);
- } finally {
- if (o) throw o.error;
- }
- }
- var b = this.allChildren.filter(function(S) {
- return s.Component.isInstanceOf(S, f.UISelect);
- });
- try {
- for (var w = n.__values(b), C = w.next(); !C.done; C = w.next()) if (!C.value.validate()) return !1;
- } catch (S) {
- i = { error: S };
- } finally {
- try {
- C && !C.done && (u = w.return) && u.call(w);
- } finally {
- if (i) throw i.error;
- }
- }
- return !0;
- }, l.prototype.onSubmit = function(o) {
- var r = this;
- this.j.e.on(this.container, "submit", function() {
- var i = r.allChildren.filter(function(u) {
- return s.Component.isInstanceOf(u, h.UIInput);
- });
- return !!r.validate() && (o(i.reduce(function(u, v) {
- return u[v.state.name] = v.value, u;
- }, {})), !1);
- });
- }, l.prototype.createContainer = function() {
- var o = this.j.c.element("form");
- return o.classList.add(this.componentName), (0, d.attr)(o, "dir", this.j.o.direction || "auto"), o;
- }, n.__decorate([a.component], l);
- }(m.UIGroup);
- t.UIForm = c;
- }, 95963: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(26207), t), n.__exportStar(e(63034), t), n.__exportStar(e(38318), t);
- }, 21639: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UITextArea = void 0;
- var n = e(20255);
- e(50905);
- var m = e(30194), h = e(11441), f = function(d) {
- function a(c, p) {
- var l = d.call(this, c, p) || this;
- return l.state = n.__assign({}, s.defaultState), Object.assign(l.state, p), l.state.resizable === !1 && (l.nativeInput.style.resize = "none"), l;
- }
- var s;
- return n.__extends(a, d), s = a, a.prototype.className = function() {
- return "UITextArea";
- }, a.prototype.createContainer = function(c) {
- return this.nativeInput = this.j.create.element("textarea"), d.prototype.createContainer.call(this, c);
- }, a.defaultState = n.__assign(n.__assign({}, m.UIInput.defaultState), { size: 5, resizable: !0 }), s = n.__decorate([h.component], a);
- }(m.UIInput);
- t.UITextArea = f;
- }, 63747: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UICheckbox = void 0;
- var n = e(20255);
- e(70446);
- var m = e(30194), h = e(43441), f = e(24263), d = function(a) {
- function s(p, l) {
- var o = a.call(this, p, n.__assign(n.__assign({}, l), { type: "checkbox" })) || this;
- return o.state = n.__assign({}, c.defaultState), Object.assign(o.state, l), o;
- }
- var c;
- return n.__extends(s, a), c = s, s.prototype.className = function() {
- return "UICheckbox";
- }, s.prototype.render = function() {
- return this.j.c.element("label", { className: this.componentName });
- }, s.prototype.onChangeChecked = function() {
- this.value = this.state.checked.toString(), this.nativeInput.checked = this.state.checked, this.setMod("checked", this.state.checked);
- }, s.prototype.onChangeNativeCheckBox = function() {
- this.state.checked = this.nativeInput.checked;
- }, s.prototype.onChangeSwitch = function() {
- this.setMod("switch", this.state.switch);
- var p = this.getElm("switch-slider");
- this.state.switch ? (p || (p = this.j.c.div(this.getFullElName("switch-slider"))), f.Dom.after(this.nativeInput, p)) : f.Dom.safeRemove(p);
- }, s.defaultState = n.__assign(n.__assign({}, m.UIInput.defaultState), { checked: !1, switch: !1 }), n.__decorate([(0, h.watch)("state.checked"), (0, h.hook)("ready")], s.prototype, "onChangeChecked", null), n.__decorate([(0, h.watch)("nativeInput:change")], s.prototype, "onChangeNativeCheckBox", null), n.__decorate([(0, h.watch)("state.switch"), (0, h.hook)("ready")], s.prototype, "onChangeSwitch", null), c = n.__decorate([h.component], s);
- }(m.UIInput);
- t.UICheckbox = d;
- }, 41374: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIFileInput = void 0;
- var n = e(20255);
- e(18984);
- var m = e(30194), h = e(11441), f = e(96031), d = function(a) {
- function s(c, p) {
- var l = a.call(this, c, n.__assign({ type: "file" }, p)) || this;
- return l.state = n.__assign(n.__assign({}, m.UIInput.defaultState), { type: "file", onlyImages: !0 }), l;
- }
- return n.__extends(s, a), s.prototype.className = function() {
- return "UIFileInput";
- }, s.prototype.createContainer = function(c) {
- this.button = new f.UIButton(this.j, { icon: { name: "plus" } });
- var p = this.button.container;
- this.nativeInput || (this.nativeInput = this.createNativeInput(c));
- var l = this.nativeInput;
- return l.classList.add(this.getFullElName("input")), p.classList.add(this.componentName), p.appendChild(l), p;
- }, s.prototype.createNativeInput = function(c) {
- return this.j.create.fromHTML(`<input
- type="file"
- accept="`.concat(c.onlyImages ? "image/*" : "*", `"
- tabindex="-1"
- dir="auto"
- multiple=""
- />`));
- }, n.__decorate([h.component], s);
- }(m.UIInput);
- t.UIFileInput = d;
- }, 63034: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(30194), t), n.__exportStar(e(21639), t), n.__exportStar(e(63747), t), n.__exportStar(e(75840), t), n.__exportStar(e(41374), t);
- }, 30194: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIInput = void 0;
- var n = e(20255);
- e(4591);
- var m = e(53929), h = e(76502), f = e(1853), d = e(24263), a = e(43441), s = e(77904), c = e(60081), p = function(l) {
- function o(i, u) {
- var v = l.call(this, i, u) || this;
- return v.label = v.j.c.span(v.getFullElName("label")), v.icon = v.j.c.span(v.getFullElName("icon")), v.clearButton = v.j.c.span(v.getFullElName("clear"), s.Icon.get("cancel")), v.state = n.__assign({}, r.defaultState), v.__errorBox = v.j.c.span(v.getFullElName("error")), v.validators = /* @__PURE__ */ new Set([]), (u == null ? void 0 : u.value) !== void 0 && (u.value = u.value.toString()), Object.assign(v.state, u), v.state.clearButton !== void 0 && (v.j.e.on(v.clearButton, "click", function(y) {
- y.preventDefault(), v.nativeInput.value = "", v.j.e.fire(v.nativeInput, "input"), v.focus();
- }).on(v.nativeInput, "input", function() {
- v.state.clearButton = !!v.value.length;
- }), v.state.clearButton = !!v.value.length), v.j.e.on(v.nativeInput, "focus blur", function() {
- v.onChangeFocus();
- }).on(v.nativeInput, "input change", v.onChangeValue), v.onChangeState(), v.onChangeClassName(), v.onChangeStateValue(), v;
- }
- var r;
- return n.__extends(o, l), r = o, o.prototype.className = function() {
- return "UIInput";
- }, o.prototype.onChangeClear = function() {
- this.state.clearButton ? d.Dom.after(this.nativeInput, this.clearButton) : d.Dom.safeRemove(this.clearButton);
- }, o.prototype.onChangeClassName = function(i, u) {
- u && this.container.classList.remove(u), this.state.className && this.container.classList.add(this.state.className);
- }, o.prototype.onChangeState = function() {
- this.name = this.state.name;
- var i = this.nativeInput, u = this.state, v = u.name, y = u.icon, g = u.type, b = u.ref, w = u.required, C = u.placeholder, S = u.autocomplete, j = u.label;
- (0, h.attr)(i, "name", v), (0, h.attr)(i, "type", g), (0, h.attr)(i, "data-ref", b || v), (0, h.attr)(i, "ref", b || v), (0, h.attr)(i, "required", w || null), (0, h.attr)(i, "autocomplete", S ? null : "off"), (0, h.attr)(i, "placeholder", C ? this.j.i18n(C) : ""), y && s.Icon.exists(y) ? (d.Dom.before(i, this.icon), this.icon.innerHTML = s.Icon.get(y)) : d.Dom.safeRemove(this.icon), j ? (d.Dom.before(this.wrapper, this.label), this.label.innerText = this.j.i18n(j)) : d.Dom.safeRemove(this.label), this.updateValidators();
- }, o.prototype.updateValidators = function() {
- var i, u = this;
- this.validators.clear(), this.state.required && this.validators.add(c.inputValidators.required), (i = this.state.validators) === null || i === void 0 || i.forEach(function(v) {
- var y = c.inputValidators[v];
- y && u.validators.add(y);
- });
- }, Object.defineProperty(o.prototype, "error", { set: function(i) {
- this.setMod("has-error", !!i), i ? (this.__errorBox.innerText = this.j.i18n(i, this.j.i18n(this.state.label || "")), this.container.appendChild(this.__errorBox)) : d.Dom.safeRemove(this.__errorBox);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "value", { get: function() {
- return this.nativeInput.value;
- }, set: function(i) {
- this.value !== i && (this.nativeInput.value = i, this.onChangeValue());
- }, enumerable: !1, configurable: !0 }), o.prototype.onChangeStateValue = function() {
- var i = this.state.value.toString();
- i !== this.value && (this.value = i);
- }, o.prototype.onChangeValue = function() {
- var i, u, v = this.value;
- this.state.value !== v && (this.state.value = v, this.j.e.fire(this, "change", v), (u = (i = this.state).onChange) === null || u === void 0 || u.call(i, v));
- }, o.prototype.validate = function() {
- var i = this;
- return this.error = "", (0, f.toArray)(this.validators).every(function(u) {
- return u(i);
- });
- }, o.prototype.createContainer = function(i) {
- var u = l.prototype.createContainer.call(this);
- this.wrapper = this.j.c.div(this.getFullElName("wrapper")), this.nativeInput || (this.nativeInput = this.createNativeInput());
- var v = this.nativeInput;
- return v.classList.add(this.getFullElName("input")), this.wrapper.appendChild(v), u.appendChild(this.wrapper), (0, h.attr)(v, "dir", this.j.o.direction || "auto"), u;
- }, o.prototype.createNativeInput = function(i) {
- return this.j.create.element("input");
- }, o.prototype.focus = function() {
- this.nativeInput.focus();
- }, Object.defineProperty(o.prototype, "isFocused", { get: function() {
- return this.nativeInput === this.j.od.activeElement;
- }, enumerable: !1, configurable: !0 }), o.prototype.onChangeFocus = function() {
- this.setMod("focused", this.isFocused);
- }, o.defaultState = { className: "", autocomplete: !0, name: "", value: "", icon: "", label: "", ref: "", type: "text", placeholder: "", required: !1, validators: [] }, n.__decorate([(0, a.watch)("state.clearButton")], o.prototype, "onChangeClear", null), n.__decorate([(0, a.watch)("state.className")], o.prototype, "onChangeClassName", null), n.__decorate([(0, a.watch)(["state.name", "state.type", "state.label", "state.placeholder", "state.autocomplete", "state.icon"]), (0, a.debounce)()], o.prototype, "onChangeState", null), n.__decorate([(0, a.watch)("state.value")], o.prototype, "onChangeStateValue", null), n.__decorate([a.autobind], o.prototype, "onChangeValue", null), r = n.__decorate([a.component], o);
- }(m.UIElement);
- t.UIInput = p;
- }, 75840: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UISelect = void 0;
- var n = e(20255);
- e(64194);
- var m = e(67309), h = e(11441), f = e(30194), d = e(60081), a = function(s) {
- function c(l, o) {
- var r = s.call(this, l, o) || this;
- return r.state = n.__assign({}, p.defaultState), Object.assign(r.state, o), r;
- }
- var p;
- return n.__extends(c, s), p = c, c.prototype.className = function() {
- return "UISelect";
- }, c.prototype.createContainer = function(l) {
- var o, r = s.prototype.createContainer.call(this, l), i = this.j, u = this.nativeInput, v = function() {
- return i.create.element("option");
- };
- if (l.placeholder !== void 0) {
- var y = v();
- y.value = "", y.text = i.i18n(l.placeholder), u.add(y);
- }
- return (o = l.options) === null || o === void 0 || o.forEach(function(g) {
- var b = v();
- b.value = g.value.toString(), b.text = i.i18n(g.text), u.add(b);
- }), l.size && l.size > 0 && (0, m.attr)(u, "size", l.size), l.multiple && (0, m.attr)(u, "multiple", ""), r;
- }, c.prototype.createNativeInput = function() {
- return this.j.create.element("select");
- }, c.prototype.updateValidators = function() {
- s.prototype.updateValidators.call(this), this.state.required && (this.validators.delete(d.inputValidators.required), this.validators.add(d.selectValidators.required));
- }, c.defaultState = n.__assign(n.__assign({}, f.UIInput.defaultState), { options: [], size: 1, multiple: !1 }), p = n.__decorate([h.component], c);
- }(f.UIInput);
- t.UISelect = a;
- }, 60081: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.selectValidators = t.inputValidators = void 0, t.inputValidators = e(63355), t.selectValidators = e(65935);
- }, 63355: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.url = t.required = void 0;
- var n = e(64350), m = e(33941);
- t.required = function(h) {
- return !!(0, m.trim)(h.value).length || (h.error = "Please fill out this field", !1);
- }, t.url = function(h) {
- return !!(0, n.isURL)((0, m.trim)(h.value)) || (h.error = "Please enter a web address", !1);
- };
- }, 65935: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.required = void 0;
- var n = e(33941);
- t.required = function(m) {
- return !!(0, n.trim)(m.value).length || (m.error = "Please fill out this field", !1);
- };
- }, 61479: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIGroup = void 0;
- var n = e(20255);
- e(70375);
- var m = e(53929), h = e(43441), f = e(40332), d = (e(52378), e(24263)), a = e(45113), s = function(c) {
- function p(o, r, i) {
- var u = c.call(this, o, i) || this;
- return u.options = i, u.syncMod = !1, u.elements = [], u.buttonSize = "middle", r == null || r.forEach(function(v) {
- return v && u.append(v);
- }), i != null && i.name && (u.name = i.name), u;
- }
- var l;
- return n.__extends(p, c), l = p, p.prototype.className = function() {
- return "UIGroup";
- }, Object.defineProperty(p.prototype, "allChildren", { get: function() {
- for (var o = [], r = n.__spreadArray([], n.__read(this.elements), !1); r.length; ) {
- var i = r.shift();
- (0, f.isArray)(i) ? r.push.apply(r, n.__spreadArray([], n.__read(i), !1)) : a.Component.isInstanceOf(i, l) ? r.push.apply(r, n.__spreadArray([], n.__read(i.elements), !1)) : i && o.push(i);
- }
- return o;
- }, enumerable: !1, configurable: !0 }), p.prototype.update = function() {
- this.elements.forEach(function(o) {
- return o.update();
- }), this.setMod("size", this.buttonSize);
- }, p.prototype.append = function(o, r) {
- var i = this;
- return (0, f.isArray)(o) ? (o.forEach(function(u) {
- return i.append(u, r);
- }), this) : (this.elements.push(o), o.name && o.container.classList.add(this.getFullElName(o.name)), r ? this.getElm(r).appendChild(o.container) : this.appendChildToContainer(o.container), o.parentElement = this, o.update(), this);
- }, p.prototype.afterSetMod = function(o, r) {
- this.syncMod && this.elements.forEach(function(i) {
- return i.setMod(o, r);
- });
- }, p.prototype.appendChildToContainer = function(o) {
- this.container.appendChild(o);
- }, p.prototype.remove = function(o) {
- var r = this.elements.indexOf(o);
- return r !== -1 && (this.elements.splice(r, 1), d.Dom.safeRemove(o.container), o.parentElement = null), this;
- }, p.prototype.clear = function() {
- return this.elements.forEach(function(o) {
- return o.destruct();
- }), this.elements.length = 0, this;
- }, p.prototype.destruct = function() {
- return this.clear(), c.prototype.destruct.call(this);
- }, n.__decorate([(0, h.watch)("buttonSize")], p.prototype, "update", null), l = n.__decorate([h.component], p);
- }(m.UIElement);
- t.UIGroup = s;
- }, 3249: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(61479), t), n.__exportStar(e(47970), t), n.__exportStar(e(75018), t), n.__exportStar(e(58495), t);
- }, 47970: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIList = void 0;
- var n = e(20255);
- e(90235);
- var m = e(32070), h = e(43441), f = e(61479), d = e(75018), a = e(58495), s = e(96031), c = e(97642), p = e(38546), l = e(14556), o = e(45113), r = function(i) {
- function u(v) {
- var y = i.call(this, v) || this;
- return y.mode = "horizontal", y.removeButtons = [], y.onChangeMode(), y;
- }
- return n.__extends(u, i), u.prototype.className = function() {
- return "UIList";
- }, u.prototype.onChangeMode = function() {
- this.setMod("mode", this.mode);
- }, u.prototype.makeGroup = function() {
- return new f.UIGroup(this.jodit);
- }, Object.defineProperty(u.prototype, "buttons", { get: function() {
- return this.allChildren.filter(function(v) {
- return o.Component.isInstanceOf(v, s.UIButton);
- });
- }, enumerable: !1, configurable: !0 }), u.prototype.getButtonsNames = function() {
- return this.buttons.map(function(v) {
- return v instanceof s.UIButton && v.state.name || "";
- }).filter(function(v) {
- return v !== "";
- });
- }, u.prototype.setRemoveButtons = function(v) {
- return this.removeButtons = v || [], this;
- }, u.prototype.build = function(v, y) {
- var g = this;
- y === void 0 && (y = null), v = (0, l.splitArray)(v), this.clear();
- var b, w = !1, C = this.makeGroup();
- this.append(C), C.setMod("line", !0);
- var S = function(E) {
- var x = null;
- switch (E.name) {
- case `
- `:
- (C = g.makeGroup()).setMod("line", !0), b = g.makeGroup(), C.append(b), g.append(C);
- break;
- case "|":
- w || (w = !0, x = new d.UISeparator(g.j));
- break;
- case "---":
- b.setMod("before-spacer", !0);
- var k = new a.UISpacer(g.j);
- C.append(k), b = g.makeGroup(), C.append(b), w = !1;
- break;
- default:
- w = !1, x = g.makeButton(E, y);
- }
- x && (b || (b = g.makeGroup(), C.append(b)), b.append(x));
- }, j = function(E) {
- return !g.removeButtons.includes(E.name);
- };
- return v.forEach(function(E) {
- if ((0, c.isButtonGroup)(E)) {
- var x = E.buttons.filter(function(I) {
- return I;
- });
- x.length && ((b = g.makeGroup()).setMod("separated", !0).setMod("group", E.group), C.append(b), (0, m.getStrongControlTypes)(x, g.j.o.controls).filter(j).forEach(S));
- } else {
- b || (b = g.makeGroup(), C.append(b));
- var k = (0, p.getControlType)(E, g.j.o.controls);
- j(k) && S(k);
- }
- }), this.update(), this;
- }, u.prototype.makeButton = function(v, y) {
- return new s.UIButton(this.j);
- }, n.__decorate([(0, h.watch)("mode")], u.prototype, "onChangeMode", null), n.__decorate([h.component], u);
- }(f.UIGroup);
- t.UIList = r;
- }, 75018: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UISeparator = void 0;
- var n = e(20255), m = e(53929), h = e(11441), f = function(d) {
- function a() {
- return d !== null && d.apply(this, arguments) || this;
- }
- return n.__extends(a, d), a.prototype.className = function() {
- return "UISeparator";
- }, n.__decorate([h.component], a);
- }(m.UIElement);
- t.UISeparator = f;
- }, 58495: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UISpacer = void 0;
- var n = e(20255), m = e(53929), h = e(11441), f = function(d) {
- function a() {
- return d !== null && d.apply(this, arguments) || this;
- }
- return n.__extends(a, d), a.prototype.className = function() {
- return "UISpacer";
- }, n.__decorate([h.component], a);
- }(m.UIElement);
- t.UISpacer = f;
- }, 97642: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.flatButtonsSet = t.isButtonGroup = void 0;
- var n = e(20255), m = e(49781);
- t.isButtonGroup = function(h) {
- return (0, m.isArray)(h.buttons);
- }, t.flatButtonsSet = function(h, f) {
- var d = f.getRegisteredButtonGroups();
- return new Set(h.reduce(function(a, s) {
- var c;
- return (0, t.isButtonGroup)(s) ? a = a.concat(n.__spreadArray(n.__spreadArray([], n.__read(s.buttons), !1), n.__read((c = d[s.group]) !== null && c !== void 0 ? c : []), !1)) : a.push(s), a;
- }, []));
- };
- }, 38546: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.findControlType = t.getControlType = void 0;
- var n = e(20255), m = e(40332), h = e(93166);
- function f(d, a) {
- var s = n.__read(d.split(/\./), 2), c = s[0], p = s[1], l = a;
- return p != null ? a[c] !== void 0 && (l = a[c]) : p = c, l[p] ? n.__assign({ name: p }, (0, m.ConfigFlatten)(l[p])) : void 0;
- }
- t.getControlType = function(d, a) {
- var s;
- return a || (a = h.Config.defaultOptions.controls), (0, m.isString)(d) ? s = f(d, a) || { name: d, command: d, tooltip: d } : a[(s = n.__assign({ name: "empty" }, (0, m.ConfigFlatten)(d))).name] !== void 0 && (s = n.__assign(n.__assign({}, (0, m.ConfigFlatten)(a[s.name])), (0, m.ConfigFlatten)(s))), s;
- }, t.findControlType = f;
- }, 32070: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getStrongControlTypes = void 0;
- var n = e(38546), m = e(93166), h = e(49781), f = e(76502);
- t.getStrongControlTypes = function(d, a) {
- return ((0, h.isArray)(d) ? d : (0, f.keys)(d, !1).map(function(s) {
- return (0, f.ConfigProto)({ name: s }, d[s] || {});
- })).map(function(s) {
- return (0, n.getControlType)(s, a || m.Config.defaultOptions.controls);
- });
- };
- }, 77904: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Icon = void 0;
- var n = e(26911), m = e(40332), h = function() {
- function f() {
- }
- return f.getIcon = function(d) {
- return /<svg/i.test(d) ? d : f.icons[d] || f.icons[d.replace(/-/g, "_")] || f.icons[d.replace(/_/g, "-")] || f.icons[(0, m.camelCase)(d)] || f.icons[(0, m.kebabCase)(d)] || f.icons[d.toLowerCase()];
- }, f.exists = function(d) {
- return this.getIcon(d) !== void 0;
- }, f.get = function(d, a) {
- return a === void 0 && (a = "<span></span>"), this.getIcon(d) || a;
- }, f.set = function(d, a) {
- return this.icons[d.replace("_", "-")] = a, this;
- }, f.makeIcon = function(d, a) {
- var s, c;
- if (a) {
- var p = a.name.replace(/[^a-zA-Z0-9]/g, "_");
- if (a.iconURL) c = d.c.span(), (0, n.css)(c, "backgroundImage", "url(" + a.iconURL.replace("{basePath}", (d == null ? void 0 : d.basePath) || "") + ")");
- else {
- var l = d.e.fire("getIcon", a.name, a, p) || f.get(a.name, "") || ((s = d.o.extraIcons) === null || s === void 0 ? void 0 : s[a.name]);
- l && (c = d.c.fromHTML(l.trim()), /^<svg/i.test(a.name) || c.classList.add("jodit-icon_" + p));
- }
- }
- return c && (c.classList.add("jodit-icon"), c.style.fill = a.fill), c;
- }, f.icons = {}, f;
- }();
- t.Icon = h;
- }, 2074: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(53929), t), n.__exportStar(e(96516), t), n.__exportStar(e(35799), t), n.__exportStar(e(3249), t), n.__exportStar(e(95963), t), n.__exportStar(e(77904), t), n.__exportStar(e(63682), t);
- }, 35799: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(12680), t);
- }, 12680: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Popup = void 0;
- var n = e(20255);
- e(88477);
- var m = e(24263), h = e(40332), f = (e(52378), e(53929)), d = e(43441), a = e(45113), s = e(17332), c = function(p) {
- function l(o, r) {
- r === void 0 && (r = !0);
- var i = p.call(this, o) || this;
- return i.smart = r, i.isOpened = !1, i.strategy = "leftBottom", i.viewBound = function() {
- return { left: 0, top: 0, width: i.ow.innerWidth, height: i.ow.innerHeight };
- }, i.childrenPopups = /* @__PURE__ */ new Set(), (0, h.attr)(i.container, "role", "popup"), i;
- }
- return n.__extends(l, p), l.prototype.className = function() {
- return "Popup";
- }, l.prototype.updateParentElement = function(o) {
- var r = this;
- return o !== this && a.Component.isInstanceOf(o, l) && (this.childrenPopups.forEach(function(i) {
- !o.closest(i) && i.isOpened && i.close();
- }), this.childrenPopups.has(o) || this.j.e.on(o, "beforeClose", function() {
- r.childrenPopups.delete(o);
- }), this.childrenPopups.add(o)), p.prototype.updateParentElement.call(this, o);
- }, l.prototype.setContent = function(o) {
- m.Dom.detach(this.container);
- var r, i = this.j.c.div("".concat(this.componentName, "__content"));
- return a.Component.isInstanceOf(o, f.UIElement) ? (r = o.container, o.parentElement = this) : r = (0, h.isString)(o) ? this.j.c.fromHTML(o) : o, i.appendChild(r), this.container.appendChild(i), this.updatePosition(), this;
- }, l.prototype.open = function(o, r, i) {
- if (r === void 0 && (r = !1), (0, h.markOwner)(this.jodit, this.container), this.calculateZIndex(), this.isOpened = !0, this.addGlobalListeners(), this.targetBound = r ? this.getKeepBound(o) : o, i) i.appendChild(this.container);
- else {
- var u = (0, s.getContainer)(this.jodit, l);
- i !== this.container.parentElement && u.appendChild(this.container);
- }
- return this.updatePosition(), this.j.e.fire(this, "afterOpen"), this;
- }, l.prototype.calculateZIndex = function() {
- var o = this;
- if (!this.container.style.zIndex) {
- var r = function(y) {
- var g = y.container.style.zIndex || y.o.zIndex;
- return !!g && (o.setZIndex(1 + parseInt(g.toString(), 10)), !0);
- }, i = this.j;
- if (!r(i)) for (var u = this.parentElement; u; ) {
- if (r(i)) return;
- if (u.container.style.zIndex) return void this.setZIndex(1 + parseInt(u.container.style.zIndex.toString(), 10));
- if (!u.parentElement && u.container.parentElement) {
- var v = f.UIElement.closestElement(u.container.parentElement, f.UIElement);
- if (v) {
- u = v;
- continue;
- }
- }
- u = u.parentElement;
- }
- }
- }, l.prototype.getKeepBound = function(o) {
- var r = this, i = o(), u = this.od.elementFromPoint(i.left, i.top);
- if (!u) return o;
- var v = m.Dom.isHTMLElement(u) ? u : u.parentElement, y = (0, h.position)(v, this.j);
- return function() {
- var g = o(), b = (0, h.position)(v, r.j);
- return n.__assign(n.__assign({}, g), { top: g.top + (b.top - y.top), left: g.left + (b.left - y.left) });
- };
- }, l.prototype.updatePosition = function() {
- if (!this.isOpened) return this;
- var o = n.__read(this.calculatePosition(this.targetBound(), this.viewBound(), (0, h.position)(this.container, this.j)), 2), r = o[0];
- return this.setMod("strategy", o[1]), (0, h.css)(this.container, { left: r.left, top: r.top }), this.childrenPopups.forEach(function(i) {
- return i.updatePosition();
- }), this;
- }, l.prototype.throttleUpdatePosition = function() {
- this.updatePosition();
- }, l.prototype.calculatePosition = function(o, r, i, u) {
- u === void 0 && (u = this.strategy);
- var v = { left: o.left, right: o.left - (i.width - o.width) }, y = { bottom: o.top + o.height, top: o.top - i.height }, g = Object.keys(v).reduce(function(S, j) {
- return S.concat(Object.keys(y).map(function(E) {
- return "".concat(j).concat((0, h.ucfirst)(E));
- }));
- }, []), b = function(S) {
- var j = n.__read((0, h.kebabCase)(S).split("-"), 2);
- return { left: v[j[0]], top: y[j[1]], width: i.width, height: i.height };
- }, w = function(S) {
- return l.boxInView(b(u), S) ? u : g.find(function(j) {
- if (l.boxInView(b(j), S)) return j;
- }) || null;
- }, C = w((0, h.position)(this.j.container, this.j));
- return C && l.boxInView(b(C), r) || (C = w(r) || C || u), [b(C), C];
- }, l.boxInView = function(o, r) {
- return !(-2 > o.top - r.top || -2 > o.left - r.left || -2 > r.top + r.height - (o.top + o.height) || -2 > r.left + r.width - (o.left + o.width));
- }, l.prototype.close = function() {
- return this.isOpened ? (this.isOpened = !1, this.childrenPopups.forEach(function(o) {
- return o.close();
- }), this.j.e.fire(this, "beforeClose"), this.j.e.fire("beforePopupClose", this), this.removeGlobalListeners(), m.Dom.safeRemove(this.container), this) : this;
- }, l.prototype.closeOnOutsideClick = function(o) {
- this.isOpened && !this.isOwnClick(o) && this.close();
- }, l.prototype.isOwnClick = function(o) {
- if (!o.target) return !1;
- var r = f.UIElement.closestElement(o.target, l);
- return !!(r && (this === r || r.closest(this)));
- }, l.prototype.addGlobalListeners = function() {
- var o = this, r = this.throttleUpdatePosition, i = this.ow;
- s.eventEmitter.on("closeAllPopups", this.close), this.smart && this.j.e.on("escape", this.close).on("mousedown touchstart", this.closeOnOutsideClick).on(i, "mousedown touchstart", this.closeOnOutsideClick), this.j.e.on("closeAllPopups", this.close).on("resize", r).on(this.container, "scroll mousewheel", r).on(i, "scroll", r).on(i, "resize", r), m.Dom.up(this.j.container, function(u) {
- u && o.j.e.on(u, "scroll mousewheel", r);
- });
- }, l.prototype.removeGlobalListeners = function() {
- var o = this, r = this.throttleUpdatePosition, i = this.ow;
- s.eventEmitter.off("closeAllPopups", this.close), this.smart && this.j.e.off("escape", this.close).off("mousedown touchstart", this.closeOnOutsideClick).off(i, "mousedown touchstart", this.closeOnOutsideClick), this.j.e.off("closeAllPopups", this.close).off("resize", r).off(this.container, "scroll mousewheel", r).off(i, "scroll", r).off(i, "resize", r), m.Dom.up(this.j.container, function(u) {
- u && o.j.e.off(u, "scroll mousewheel", r);
- });
- }, l.prototype.setZIndex = function(o) {
- this.container.style.zIndex = o.toString();
- }, l.prototype.destruct = function() {
- return this.close(), p.prototype.destruct.call(this);
- }, n.__decorate([d.autobind], l.prototype, "updatePosition", null), n.__decorate([(0, d.throttle)(10), d.autobind], l.prototype, "throttleUpdatePosition", null), n.__decorate([d.autobind], l.prototype, "close", null), n.__decorate([d.autobind], l.prototype, "closeOnOutsideClick", null), l;
- }(f.UIElement);
- t.Popup = c;
- }, 63682: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ProgressBar = void 0;
- var n = e(20255);
- e(50197);
- var m = e(24263), h = function(f) {
- function d() {
- return f !== null && f.apply(this, arguments) || this;
- }
- return n.__extends(d, f), d.prototype.className = function() {
- return "ProgressBar";
- }, d.prototype.render = function() {
- return "<div><div></div></div>";
- }, d.prototype.show = function() {
- return (this.j.workplace || this.j.container).appendChild(this.container), this;
- }, d.prototype.hide = function() {
- return m.Dom.safeRemove(this.container), this;
- }, d.prototype.progress = function(a) {
- return this.container.style.width = a.toFixed(2) + "%", this;
- }, d.prototype.destruct = function() {
- return this.hide(), f.prototype.destruct.call(this);
- }, d;
- }(e(53929).UIElement);
- t.ProgressBar = h;
- }, 43608: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ViewWithToolbar = void 0;
- var n = e(20255);
- e(39008);
- var m = e(75902), h = e(40332), f = e(64968), d = e(81438), a = e(56562), s = e(97642), c = e(43441), p = function(l) {
- function o(r, i) {
- i === void 0 && (i = !1);
- var u = l.call(this, r, i) || this;
- return u.toolbar = (0, d.makeCollection)(u), u.defaultToolbarContainer = u.c.div("jodit-toolbar__box"), u.registeredButtons = /* @__PURE__ */ new Set(), u.groupToButtons = {}, u.isJodit = !1, u.isJodit = i, u.e.on("beforeToolbarBuild", u.beforeToolbarBuild), u;
- }
- return n.__extends(o, l), Object.defineProperty(o.prototype, "toolbarContainer", { get: function() {
- return this.o.fullsize || !(0, h.isString)(this.o.toolbar) && !f.Dom.isHTMLElement(this.o.toolbar) ? (this.o.toolbar && f.Dom.appendChildFirst(this.container, this.defaultToolbarContainer), this.defaultToolbarContainer) : (0, h.resolveElement)(this.o.toolbar, this.o.shadowRoot || this.od);
- }, enumerable: !1, configurable: !0 }), o.prototype.setPanel = function(r) {
- this.o.toolbar = r, this.buildToolbar();
- }, o.prototype.buildToolbar = function() {
- if (this.o.toolbar) {
- var r = this.o.buttons ? (0, h.splitArray)(this.o.buttons) : [];
- this.toolbar.setRemoveButtons(this.o.removeButtons).build(r.concat(this.o.extraButtons || [])).appendTo(this.toolbarContainer);
- }
- }, o.prototype.getRegisteredButtonGroups = function() {
- return this.groupToButtons;
- }, o.prototype.registerButton = function(r) {
- var i;
- this.registeredButtons.add(r);
- var u = (i = r.group) !== null && i !== void 0 ? i : "other";
- return this.groupToButtons[u] || (this.groupToButtons[u] = []), r.position != null ? this.groupToButtons[u][r.position] = r.name : this.groupToButtons[u].push(r.name), this;
- }, o.prototype.unregisterButton = function(r) {
- var i;
- this.registeredButtons.delete(r);
- var u = (i = r.group) !== null && i !== void 0 ? i : "other", v = this.groupToButtons[u];
- if (v) {
- var y = v.indexOf(r.name);
- y !== -1 && v.splice(y, 1), v.length === 0 && delete this.groupToButtons[u];
- }
- return this;
- }, o.prototype.beforeToolbarBuild = function(r) {
- var i = this;
- if (Object.keys(this.groupToButtons).length) return r.map(function(u) {
- return (0, s.isButtonGroup)(u) && u.group && i.groupToButtons[u.group] ? { group: u.group, buttons: n.__spreadArray(n.__spreadArray([], n.__read(u.buttons), !1), n.__read(i.groupToButtons[u.group]), !1) } : u;
- });
- }, o.prototype.destruct = function() {
- this.isDestructed || (this.setStatus(a.STATUSES.beforeDestruct), this.e.off("beforeToolbarBuild", this.beforeToolbarBuild), this.toolbar.destruct(), l.prototype.destruct.call(this));
- }, n.__decorate([c.autobind], o.prototype, "beforeToolbarBuild", null), o;
- }(m.View);
- t.ViewWithToolbar = p;
- }, 75902: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.View = void 0;
- var n = e(20255), m = e(77462), h = e(40332), f = e(86893), d = e(87837), a = e(17332), s = e(43441), c = e(59829), p = e(55395), l = e(71014), o = function(r) {
- function i(v, y) {
- y === void 0 && (y = !1);
- var g = r.call(this) || this;
- return g.isJodit = y, g.isView = !0, g.parent = null, g.mods = {}, g.components = /* @__PURE__ */ new Set(), g.version = "3.24.7", g.buffer = m.Storage.makeStorage(), g.storage = m.Storage.makeStorage(!0, g.componentName), g.OPTIONS = u.defaultOptions, g.__isFullSize = !1, g.__whoLocked = "", g.isLockedNotBy = function(b) {
- return g.isLocked && g.__whoLocked !== b;
- }, g.__modulesInstances = /* @__PURE__ */ new Map(), g.id = (/* @__PURE__ */ new Date()).getTime().toString(), g.buffer = m.Storage.makeStorage(), g.initOptions(v), g.initOwners(), g.events = new p.EventEmitter(g.od), g.create = new d.Create(g.od), g.container = g.c.div("jodit ".concat(g.componentName)), g.progressbar = new d.ProgressBar(g), g.message = new l.UIMessages(g, g.container), g;
- }
- var u;
- return n.__extends(i, r), u = i, Object.defineProperty(i.prototype, "basePath", { get: function() {
- return this.o.basePath ? this.o.basePath : f.BASE_PATH;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "defaultTimeout", { get: function() {
- return (0, h.isVoid)(this.o.defaultTimeout) ? 100 : this.o.defaultTimeout;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "c", { get: function() {
- return this.create;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "container", { get: function() {
- return this.__container;
- }, set: function(v) {
- this.__container = v;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "e", { get: function() {
- return this.events;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "options", { get: function() {
- return this.__options;
- }, set: function(v) {
- this.__options = v;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(i.prototype, "o", { get: function() {
- return this.options;
- }, enumerable: !1, configurable: !0 }), i.prototype.i18n = function(v) {
- for (var y = [], g = 1; arguments.length > g; g++) y[g - 1] = arguments[g];
- return (0, h.i18n)(v, y, this.options);
- }, i.prototype.toggleFullSize = function(v) {
- v === void 0 && (v = !this.__isFullSize), v !== this.__isFullSize && (this.__isFullSize = v, this.e.fire("toggleFullSize", v));
- }, Object.defineProperty(i.prototype, "isLocked", { get: function() {
- return this.__whoLocked !== "";
- }, enumerable: !1, configurable: !0 }), i.prototype.lock = function(v) {
- return v === void 0 && (v = "any"), !this.isLocked && (this.__whoLocked = v, !0);
- }, i.prototype.unlock = function() {
- return !!this.isLocked && (this.__whoLocked = "", !0);
- }, Object.defineProperty(i.prototype, "isFullSize", { get: function() {
- return this.__isFullSize;
- }, enumerable: !1, configurable: !0 }), i.prototype.getVersion = function() {
- return "3.24.7";
- }, i.getVersion = function() {
- return "3.24.7";
- }, i.prototype.initOptions = function(v) {
- this.options = (0, h.ConfigProto)(v || {}, (0, h.ConfigProto)(this.options || {}, u.defaultOptions));
- }, i.prototype.initOwners = function() {
- var v;
- this.ownerWindow = (v = this.o.ownerWindow) !== null && v !== void 0 ? v : window;
- }, i.prototype.attachEvents = function(v) {
- var y = this;
- if (v) {
- var g = v == null ? void 0 : v.events;
- g && Object.keys(g).forEach(function(b) {
- return y.e.on(b, g[b]);
- });
- }
- }, i.prototype.getInstance = function(v, y) {
- var g = this.e.fire((0, h.camelCase)("getInstance_" + v), y);
- if (g) return g;
- var b = a.modules[v], w = this.__modulesInstances;
- if (!(0, h.isFunction)(b)) throw (0, h.error)("Need real module name");
- if (!w.has(v)) {
- var C = b.prototype instanceof d.ViewComponent ? new b(this, y) : new b(y);
- this.components.add(C), w.set(v, C);
- }
- return w.get(v);
- }, i.prototype.addDisclaimer = function(v) {
- this.container.appendChild(v);
- }, i.prototype.beforeDestruct = function() {
- this.e.fire(d.STATUSES.beforeDestruct, this), this.components.forEach(function(v) {
- (0, h.isDestructable)(v) && !v.isInDestruct && v.destruct();
- }), this.components.clear();
- }, i.prototype.destruct = function() {
- this.isDestructed || (this.progressbar.destruct(), this.message.destruct(), this.async && this.async.destruct(), this.events && this.e.destruct(), this.buffer && this.buffer.clear(), d.Dom.safeRemove(this.container), r.prototype.destruct.call(this));
- }, i.esNext = !1, n.__decorate([(0, s.hook)(d.STATUSES.beforeDestruct)], i.prototype, "beforeDestruct", null), u = n.__decorate([(0, s.derive)(c.Mods, c.Elms)], i);
- }(d.Component);
- t.View = o, o.defaultOptions = { extraButtons: [], textIcons: !1, namespace: "", removeButtons: [], zIndex: 100002, defaultTimeout: 100, fullsize: !1, showTooltip: !0, useNativeTooltip: !1, buttons: [], globalFullSize: !0, language: "auto" };
- }, 37920: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Jodit = void 0;
- var n = e(20255), m = e(93166), h = e(86893), f = e(87837), d = e(40332), a = e(77462), s = e(86893), c = e(17332), p = e(43441), l = e(59829), o = e(30056), r = "data-jodit-default-style-display", i = "data-jodit-default-classes", u = function(y) {
- function g(w, C) {
- var S = y.call(this, C, !0) || this;
- S.isJodit = !0, S.commands = /* @__PURE__ */ new Map(), S.__selectionLocked = null, S.__wasReadOnly = !1, S.createInside = new f.Create(function() {
- return S.ed;
- }, S.o.createAttributes), S.editorIsActive = !1, S.__mode = h.MODE_WYSIWYG, S.__callChangeCount = 0, S.__isSilentChange = !1, S.__elementToPlace = /* @__PURE__ */ new Map();
- try {
- var j = (0, d.resolveElement)(w, S.o.shadowRoot || S.od);
- if (b.isJoditAssigned(j)) return j.component;
- } catch (x) {
- throw S.destruct(), x;
- }
- S.setStatus(f.STATUSES.beforeInit), S.id = (0, d.attr)((0, d.resolveElement)(w, S.o.shadowRoot || S.od), "id") || (/* @__PURE__ */ new Date()).getTime().toString(), c.instances[S.id] = S, S.storage = a.Storage.makeStorage(!0, S.id), S.attachEvents(C), S.e.on(S.ow, "resize", function() {
- S.e && S.e.fire("resize");
- }), S.e.on("prepareWYSIWYGEditor", S.__prepareWYSIWYGEditor), S.selection = new f.Select(S);
- var E = S.beforeInitHook();
- return (0, d.callPromise)(E, function() {
- S.e.fire("beforeInit", S), c.pluginSystem.__init(S), S.e.fire("afterPluginSystemInit", S), S.e.on("changePlace", function() {
- S.setReadOnly(S.o.readonly), S.setDisabled(S.o.disabled);
- }), S.places.length = 0;
- var x = S.addPlace(w, C);
- c.instances[S.id] = S, (0, d.callPromise)(x, function() {
- S.e && S.e.fire("afterInit", S), S.afterInitHook(), S.setStatus(f.STATUSES.ready), S.e.fire("afterConstructor", S);
- });
- }), S;
- }
- var b;
- return n.__extends(g, y), b = g, g.prototype.className = function() {
- return "Jodit";
- }, g.prototype.waitForReady = function() {
- var w = this;
- return this.isReady ? Promise.resolve(this) : this.async.promise(function(C) {
- w.hookStatus("ready", function() {
- return C(w);
- });
- });
- }, Object.defineProperty(g, "ready", { get: function() {
- return new Promise(function(w) {
- c.eventEmitter.on("oditready", w);
- });
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "text", { get: function() {
- if (this.editor) return this.editor.innerText || "";
- var w = this.createInside.div();
- return w.innerHTML = this.getElementValue(), w.innerText || "";
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "defaultTimeout", { get: function() {
- return (0, d.isNumber)(this.o.defaultTimeout) ? this.o.defaultTimeout : m.Config.defaultOptions.defaultTimeout;
- }, enumerable: !1, configurable: !0 }), g.atom = function(w) {
- return (0, d.markAsAtomic)(w);
- }, g.make = function(w, C) {
- return new this(w, C);
- }, g.isJoditAssigned = function(w) {
- return w && (0, d.isJoditObject)(w.component) && !w.component.isInDestruct;
- }, Object.defineProperty(g, "defaultOptions", { get: function() {
- return m.Config.defaultOptions;
- }, enumerable: !1, configurable: !0 }), g.prototype.__setPlaceField = function(w, C) {
- this.currentPlace || (this.currentPlace = {}, this.places = [this.currentPlace]), this.currentPlace[w] = C;
- }, Object.defineProperty(g.prototype, "element", { get: function() {
- return this.currentPlace.element;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "editor", { get: function() {
- return this.currentPlace.editor;
- }, set: function(w) {
- this.__setPlaceField("editor", w);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "container", { get: function() {
- return this.currentPlace.container;
- }, set: function(w) {
- this.__setPlaceField("container", w);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "workplace", { get: function() {
- return this.currentPlace.workplace;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "statusbar", { get: function() {
- return this.currentPlace.statusbar;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "iframe", { get: function() {
- return this.currentPlace.iframe;
- }, set: function(w) {
- this.__setPlaceField("iframe", w);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "history", { get: function() {
- return this.currentPlace.history;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "observer", { get: function() {
- return this.history;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "editorWindow", { get: function() {
- return this.currentPlace.editorWindow;
- }, set: function(w) {
- this.__setPlaceField("editorWindow", w);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "ew", { get: function() {
- return this.editorWindow;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "editorDocument", { get: function() {
- return this.currentPlace.editorWindow.document;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "ed", { get: function() {
- return this.editorDocument;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "options", { get: function() {
- return this.currentPlace.options;
- }, set: function(w) {
- this.__setPlaceField("options", w);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "s", { get: function() {
- return this.selection;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "uploader", { get: function() {
- return this.getInstance("Uploader", this.o.uploader);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "filebrowser", { get: function() {
- var w = this, C = (0, d.ConfigProto)({ defaultTimeout: w.defaultTimeout, uploader: w.o.uploader, language: w.o.language, license: w.o.license, theme: w.o.theme, shadowRoot: w.o.shadowRoot, defaultCallback: function(S) {
- S.files && S.files.length && S.files.forEach(function(j, E) {
- var x = S.baseurl + j;
- S.isImages && S.isImages[E] ? w.s.insertImage(x, null, w.o.imageDefaultWidth) : w.s.insertNode(w.createInside.fromHTML("<a href='".concat(x, "' title='").concat(x, "'>").concat(x, "</a>")));
- });
- } }, this.o.filebrowser);
- return w.getInstance("FileBrowser", C);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(g.prototype, "mode", { get: function() {
- return this.__mode;
- }, set: function(w) {
- this.setMode(w);
- }, enumerable: !1, configurable: !0 }), g.prototype.getNativeEditorValue = function() {
- var w = this.e.fire("beforeGetNativeEditorValue");
- return (0, d.isString)(w) ? w : this.editor ? this.editor.innerHTML : this.getElementValue();
- }, g.prototype.setNativeEditorValue = function(w) {
- var C = { value: w };
- this.e.fire("beforeSetNativeEditorValue", C) || this.editor && (this.editor.innerHTML = C.value);
- }, Object.defineProperty(g.prototype, "value", { get: function() {
- return this.getEditorValue();
- }, set: function(w) {
- this.setEditorValue(w), this.history.__processChanges();
- }, enumerable: !1, configurable: !0 }), g.prototype.synchronizeValues = function() {
- this.__imdSynchronizeValues();
- }, g.prototype.__imdSynchronizeValues = function() {
- this.setEditorValue();
- }, g.prototype.getEditorValue = function(w, C) {
- var S;
- if (w === void 0 && (w = !0), (S = this.e.fire("beforeGetValueFromEditor", C)) !== void 0) return S;
- S = this.getNativeEditorValue().replace(h.INVISIBLE_SPACE_REG_EXP(), ""), w && (S = S.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g, "")), S === "<br>" && (S = "");
- var j = { value: S };
- return this.e.fire("afterGetValueFromEditor", j, C), j.value;
- }, g.prototype.setEditorValue = function(w) {
- var C = this.e.fire("beforeSetValueToEditor", w);
- if (C !== !1) if ((0, d.isString)(C) && (w = C), this.editor) {
- if (!(0, d.isString)(w) && !(0, d.isVoid)(w)) throw (0, d.error)("value must be string");
- (0, d.isVoid)(w) || this.getNativeEditorValue() === w || this.setNativeEditorValue(w), this.e.fire("postProcessSetEditorValue");
- var S = this.getElementValue(), j = this.getEditorValue();
- if (!this.__isSilentChange && S !== j && h.SAFE_COUNT_CHANGE_CALL > this.__callChangeCount) {
- this.__setElementValue(j), this.__callChangeCount += 1;
- try {
- this.history.__upTick(), this.e.fire("change", j, S), this.e.fire(this.history, "change", j, S);
- } finally {
- this.__callChangeCount = 0;
- }
- }
- } else w !== void 0 && this.__setElementValue(w);
- }, g.prototype.updateElementValue = function() {
- this.__setElementValue(this.getEditorValue());
- }, g.prototype.getElementValue = function() {
- return this.element.value !== void 0 ? this.element.value : this.element.innerHTML;
- }, g.prototype.setElementValue = function(w) {
- var C = this.getElementValue();
- return (w === void 0 || (0, d.isString)(w) && w !== C) && (w != null || (w = C), w !== this.getEditorValue() && this.setEditorValue(w)), this.__setElementValue(w);
- }, g.prototype.__setElementValue = function(w) {
- var C = this;
- if (!(0, d.isString)(w)) throw (0, d.error)("value must be string");
- if (this.element !== this.container && w !== this.getElementValue()) {
- var S = { value: w }, j = this.e.fire("beforeSetElementValue", S);
- (0, d.callPromise)(j, function() {
- C.element.value !== void 0 ? C.element.value = S.value : C.element.innerHTML = S.value, C.e.fire("afterSetElementValue", S);
- });
- }
- }, g.prototype.registerCommand = function(w, C, S) {
- var j = w.toLowerCase(), E = this.commands.get(j);
- if (E === void 0 && this.commands.set(j, E = []), E.push(C), !(0, d.isFunction)(C)) {
- var x = this.o.commandToHotkeys[j] || this.o.commandToHotkeys[w] || C.hotkeys;
- x && this.registerHotkeyToCommand(x, j, S == null ? void 0 : S.stopPropagation);
- }
- return this;
- }, g.prototype.registerHotkeyToCommand = function(w, C, S) {
- var j = this;
- S === void 0 && (S = !0);
- var E = (0, d.asArray)(w).map(d.normalizeKeyAliases).map(function(x) {
- return x + ".hotkey";
- }).join(" ");
- this.e.off(E).on(E, function(x, k) {
- return k && (k.shouldStop = S == null || S), j.execCommand(C);
- });
- }, g.prototype.execCommand = function(w, C, S) {
- for (var j, E = [], x = 3; arguments.length > x; x++) E[x - 3] = arguments[x];
- if (this.s.isFocused() || this.s.focus(), !this.o.readonly || this.o.allowCommandsInReadOnly.includes(w)) {
- var k;
- if (w = w.toLowerCase(), (k = (j = this.e).fire.apply(j, n.__spreadArray(["beforeCommand", w, C, S], n.__read(E), !1))) !== !1 && (k = this.__execCustomCommands.apply(this, n.__spreadArray([w, C, S], n.__read(E), !1))), k !== !1) if (this.s.focus(), w === "selectall") this.s.select(this.editor, !0), this.s.expandSelection();
- else try {
- k = this.nativeExecCommand(w, C, S);
- } catch (I) {
- }
- return this.e.fire("afterCommand", w, C, S), this.setEditorValue(), k;
- }
- }, g.prototype.nativeExecCommand = function(w, C, S) {
- this.__isSilentChange = !0;
- try {
- return this.ed.execCommand(w, C, S);
- } finally {
- this.__isSilentChange = !1;
- }
- }, g.prototype.__execCustomCommands = function(w, C, S) {
- for (var j = this, E = [], x = 3; arguments.length > x; x++) E[x - 3] = arguments[x];
- w = w.toLowerCase();
- var k, I = this.commands.get(w);
- if (I !== void 0) return I.forEach(function(M) {
- var T, O = (T = (0, d.isFunction)(M) ? M : M.exec).call.apply(T, n.__spreadArray([j, w, C, S], n.__read(E), !1));
- O !== void 0 && (k = O);
- }), k;
- }, g.prototype.lock = function(w) {
- return w === void 0 && (w = "any"), !!y.prototype.lock.call(this, w) && (this.__selectionLocked = this.s.save(), this.s.clear(), this.editor.classList.add("jodit_lock"), this.e.fire("lock", !0), !0);
- }, g.prototype.unlock = function() {
- return !!y.prototype.unlock.call(this) && (this.editor.classList.remove("jodit_lock"), this.__selectionLocked && this.s.restore(), this.e.fire("lock", !1), !0);
- }, g.prototype.getMode = function() {
- return this.mode;
- }, g.prototype.isEditorMode = function() {
- return this.getRealMode() === h.MODE_WYSIWYG;
- }, g.prototype.getRealMode = function() {
- if (this.getMode() !== h.MODE_SPLIT) return this.getMode();
- var w = this.od.activeElement;
- return w && (w === this.iframe || f.Dom.isOrContains(this.editor, w) || f.Dom.isOrContains(this.toolbar.container, w)) ? h.MODE_WYSIWYG : h.MODE_SOURCE;
- }, g.prototype.setMode = function(w) {
- var C = this, S = this.getMode(), j = { mode: parseInt(w.toString(), 10) }, E = ["jodit-wysiwyg_mode", "jodit-source__mode", "jodit_split_mode"];
- this.e.fire("beforeSetMode", j) !== !1 && (this.__mode = [h.MODE_SOURCE, h.MODE_WYSIWYG, h.MODE_SPLIT].includes(j.mode) ? j.mode : h.MODE_WYSIWYG, this.o.saveModeInStorage && this.storage.set("jodit_default_mode", this.mode), E.forEach(function(x) {
- C.container.classList.remove(x);
- }), this.container.classList.add(E[this.mode - 1]), S !== this.getMode() && this.e.fire("afterSetMode"));
- }, g.prototype.toggleMode = function() {
- var w = this.getMode();
- [h.MODE_SOURCE, h.MODE_WYSIWYG, this.o.useSplitMode ? h.MODE_SPLIT : 9].includes(w + 1) ? w += 1 : w = h.MODE_WYSIWYG, this.setMode(w);
- }, g.prototype.setDisabled = function(w) {
- this.o.disabled = w;
- var C = this.__wasReadOnly;
- this.setReadOnly(w || C), this.__wasReadOnly = C, this.editor && (this.editor.setAttribute("aria-disabled", w.toString()), this.container.classList.toggle("jodit_disabled", w), this.e.fire("disabled", w));
- }, g.prototype.getDisabled = function() {
- return this.o.disabled;
- }, g.prototype.setReadOnly = function(w) {
- this.__wasReadOnly !== w && (this.__wasReadOnly = w, this.o.readonly = w, w ? this.editor && this.editor.removeAttribute("contenteditable") : this.editor && this.editor.setAttribute("contenteditable", "true"), this.e && this.e.fire("readonly", w));
- }, g.prototype.getReadOnly = function() {
- return this.o.readonly;
- }, g.prototype.focus = function() {
- this.getMode() !== h.MODE_SOURCE && this.s.focus();
- }, Object.defineProperty(g.prototype, "isFocused", { get: function() {
- return this.s.isFocused();
- }, enumerable: !1, configurable: !0 }), g.prototype.beforeInitHook = function() {
- }, g.prototype.afterInitHook = function() {
- }, g.prototype.initOptions = function(w) {
- this.options = (0, d.ConfigProto)(w || {}, m.Config.defaultOptions);
- }, g.prototype.initOwners = function() {
- this.editorWindow = this.o.ownerWindow, this.ownerWindow = this.o.ownerWindow;
- }, g.prototype.addPlace = function(w, C) {
- var S = this, j = (0, d.resolveElement)(w, this.o.shadowRoot || this.od);
- this.attachEvents(C), j.attributes && (0, d.toArray)(j.attributes).forEach(function(N) {
- var H = N.name, q = N.value;
- m.Config.defaultOptions[H] === void 0 || C && C[H] !== void 0 || (["readonly", "disabled"].indexOf(H) !== -1 && (q = q === "" || q === "true"), /^[0-9]+(\.)?([0-9]+)?$/.test(q.toString()) && (q = Number(q)), S.options[H] = q);
- });
- var E = this.c.div("jodit-container");
- E.classList.add("jodit"), E.classList.add("jodit-container"), E.classList.add("jodit_theme_".concat(this.o.theme || "default")), v(this.o.className, E), this.o.containerStyle && (0, d.css)(E, this.o.containerStyle);
- var x = this.o.styleValues;
- Object.keys(x).forEach(function(N) {
- var H = (0, d.kebabCase)(N);
- E.style.setProperty("--jd-".concat(H), x[N]);
- }), E.setAttribute("contenteditable", "false");
- var k = null;
- this.o.inline && (["TEXTAREA", "INPUT"].indexOf(j.nodeName) === -1 && (E = j, j.setAttribute(i, j.className.toString()), k = E.innerHTML, E.innerHTML = ""), E.classList.add("jodit_inline"), E.classList.add("jodit-container")), j !== E && (j.style.display && j.setAttribute(r, j.style.display), j.style.display = "none");
- var I = this.c.div("jodit-workplace", { contenteditable: !1 });
- E.appendChild(I), this.message.destruct(), this.message = new f.UIMessages(this, I), j.parentNode && j !== E && j.parentNode.insertBefore(E, j), Object.defineProperty(j, "component", { enumerable: !1, configurable: !0, value: this });
- var M = this.c.div("jodit-wysiwyg", { contenteditable: !0, "aria-disabled": !1, tabindex: this.o.tabIndex });
- I.appendChild(M);
- var T = { editor: M, element: j, container: E, workplace: I, statusbar: new f.StatusBar(this, E), options: this.isReady ? (0, d.ConfigProto)(C || {}, m.Config.defaultOptions) : this.options, history: new f.History(this), editorWindow: this.ow };
- this.__elementToPlace.set(M, T), this.setCurrentPlace(T), this.places.push(T), this.setNativeEditorValue(this.getElementValue());
- var O = this.__initEditor(k), L = this.options;
- return (0, d.callPromise)(O, function() {
- L.enableDragAndDropFileToEditor && L.uploader && (L.uploader.url || L.uploader.insertImageAsBase64URI) && S.uploader.bind(S.editor), S.__elementToPlace.get(S.editor) || S.__elementToPlace.set(S.editor, T), S.e.fire("afterAddPlace", T);
- });
- }, g.prototype.addDisclaimer = function(w) {
- this.workplace.appendChild(w);
- }, g.prototype.setCurrentPlace = function(w) {
- this.currentPlace !== w && (this.isEditorMode() || this.setMode(h.MODE_WYSIWYG), this.currentPlace = w, this.buildToolbar(), this.isReady && this.e.fire("changePlace", w));
- }, g.prototype.__initEditor = function(w) {
- var C = this, S = this.__createEditor();
- return (0, d.callPromise)(S, function() {
- if (!C.isInDestruct) {
- if (C.element !== C.container) {
- var j = C.getElementValue();
- j !== C.getEditorValue() && C.setEditorValue(j);
- } else w != null && C.setEditorValue(w);
- var E = C.o.defaultMode;
- if (C.o.saveModeInStorage) {
- var x = C.storage.get("jodit_default_mode");
- typeof x == "string" && (E = parseInt(x, 10));
- }
- C.setMode(E), C.o.readonly && (C.__wasReadOnly = !1, C.setReadOnly(!0)), C.o.disabled && C.setDisabled(!0);
- try {
- C.ed.execCommand("defaultParagraphSeparator", !1, C.o.enter.toLowerCase());
- } catch (k) {
- }
- try {
- C.ed.execCommand("enableObjectResizing", !1, "false");
- } catch (k) {
- }
- try {
- C.ed.execCommand("enableInlineTableEditing", !1, "false");
- } catch (k) {
- }
- }
- });
- }, g.prototype.__createEditor = function() {
- var w = this, C = this.editor, S = this.e.fire("createEditor", this);
- return (0, d.callPromise)(S, function() {
- if (!w.isInDestruct) {
- if ((S === !1 || (0, d.isPromise)(S)) && f.Dom.safeRemove(C), v(w.o.editorClassName || w.o.editorCssClass, w.editor), w.o.editorCssClass && w.editor.classList.add(w.o.editorCssClass), w.o.style && (0, d.css)(w.editor, w.o.style), w.e.on("synchro", function() {
- w.setEditorValue();
- }).on("focus", function() {
- w.editorIsActive = !0;
- }).on("blur", function() {
- return w.editorIsActive = !1;
- }), w.__prepareWYSIWYGEditor(), w.o.direction) {
- var j = w.o.direction.toLowerCase() === "rtl" ? "rtl" : "ltr";
- w.container.style.direction = j, w.container.setAttribute("dir", j), w.toolbar.setDirection(j);
- }
- w.o.triggerChangeEvent && w.e.on("change", w.async.debounce(function() {
- w.e && w.e.fire(w.element, "change");
- }, w.defaultTimeout));
- }
- });
- }, g.prototype.__prepareWYSIWYGEditor = function() {
- var w = this, C = this.editor;
- if (this.o.direction) {
- var S = this.o.direction.toLowerCase() === "rtl" ? "rtl" : "ltr";
- this.editor.style.direction = S, this.editor.setAttribute("dir", S);
- }
- this.e.on(C, "mousedown touchstart focus", function() {
- var j = w.__elementToPlace.get(C);
- j && w.setCurrentPlace(j);
- }).on(C, "compositionend", this.synchronizeValues).on(C, "selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur", function(j) {
- if (!w.o.readonly && !w.__isSilentChange && !(j instanceof w.ew.KeyboardEvent && j.isComposing) && w.e && w.e.fire) {
- if (w.e.fire(j.type, j) === !1) return !1;
- w.synchronizeValues();
- }
- });
- }, g.prototype.fetch = function(w, C) {
- var S = this, j = new o.Ajax(n.__assign({ url: w }, C), this.o.defaultAjaxOptions), E = function() {
- S.e.off("beforeDestruct", E), S.progressbar.progress(100).hide(), j.destruct();
- };
- this.e.one("beforeDestruct", E), this.progressbar.show().progress(30);
- var x = j.send();
- return x.finally(E).catch(function() {
- return null;
- }), x;
- }, g.prototype.destruct = function() {
- var w = this;
- if (!this.isInDestruct && (this.setStatus(f.STATUSES.beforeDestruct), this.__elementToPlace.clear(), this.editor)) {
- var C = this.getEditorValue();
- this.storage.clear(), this.buffer.clear(), this.commands.clear(), this.__selectionLocked = null, this.e.off(this.ow, "resize"), this.e.off(this.ow), this.e.off(this.od), this.e.off(this.od.body), this.places.forEach(function(S) {
- var j = S.container, E = S.workplace, x = S.statusbar, k = S.element, I = S.iframe, M = S.editor, T = S.history;
- if (k !== j) if (k.hasAttribute(r)) {
- var O = (0, d.attr)(k, r);
- O && (k.style.display = O, k.removeAttribute(r));
- } else k.style.display = "";
- else k.hasAttribute(i) && (k.className = (0, d.attr)(k, i) || "", k.removeAttribute(i));
- k.hasAttribute("style") && !(0, d.attr)(k, "style") && k.removeAttribute("style"), x.destruct(), w.e.off(j), w.e.off(k), w.e.off(M), f.Dom.safeRemove(E), f.Dom.safeRemove(M), j !== k && f.Dom.safeRemove(j), Object.defineProperty(k, "component", { enumerable: !1, configurable: !0, value: null }), f.Dom.safeRemove(I), j === k && (k.innerHTML = C), T.destruct();
- }), this.places.length = 0, this.currentPlace = {}, delete c.instances[this.id], y.prototype.destruct.call(this);
- }
- }, g.fatMode = !1, g.plugins = c.pluginSystem, g.modules = c.modules, g.ns = c.modules, g.decorators = {}, g.constants = h, g.instances = c.instances, g.lang = s.lang, g.core = { Plugin: f.Plugin }, n.__decorate([p.cache], g.prototype, "uploader", null), n.__decorate([p.cache], g.prototype, "filebrowser", null), n.__decorate([(0, p.throttle)()], g.prototype, "synchronizeValues", null), n.__decorate([(0, p.watch)(":internalChange")], g.prototype, "updateElementValue", null), n.__decorate([p.autobind], g.prototype, "__prepareWYSIWYGEditor", null), b = n.__decorate([(0, p.derive)(l.Dlgs)], g);
- }(f.ViewWithToolbar);
- function v(y, g) {
- y && y.split(/\s+/).forEach(function(b) {
- return g.classList.add(b);
- });
- }
- t.Jodit = u;
- }, 26435: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(10172), m = {}, h = e(90643), f = e(52532), d = e(75178), a = e(51048), s = e(22999), c = e(34145), p = e(40272), l = e(2978), o = e(99113), r = e(51923), i = e(21268), u = e(37289), v = e(17084), y = e(96891), g = e(31211), b = e(31109), w = e(79375), C = e(21042), S = e(73895);
- m = { ar: h, cs_cz: f, de: d, en: a, es: s, fr: c, he: p, hu: l, id: o, it: r, ja: i, ko: u, nl: v, pl: y, pt_br: g, ru: b, tr: w, zh_cn: C, zh_tw: S };
- var j = e(11399), E = function(k) {
- return k ? k.default || k : {};
- }, x = {};
- (0, n.isArray)(E(j)) && E(j).forEach(function(k, I) {
- x[I] = k;
- }), Object.keys(m).forEach(function(k) {
- var I = E(m[k]);
- (0, n.isArray)(I) ? (m[k] = {}, I.forEach(function(M, T) {
- m[k][x[T]] = M;
- })) : m[k] = I;
- }), t.default = m;
- }, 60403: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ContextMenu = void 0;
- var n = e(20255);
- e(47086);
- var m = e(35799), h = e(96516), f = e(10172), d = e(11441), a = function(s) {
- function c() {
- return s !== null && s.apply(this, arguments) || this;
- }
- return n.__extends(c, s), c.prototype.className = function() {
- return "ContextMenu";
- }, c.prototype.show = function(p, l, o) {
- var r = this, i = this, u = this.j.c.div(this.getFullElName("actions"));
- (0, f.isArray)(o) && (o.forEach(function(v) {
- if (v) {
- var y = (0, h.Button)(r.jodit, v.icon || "empty", v.title);
- r.jodit && y.setParentView(r.jodit), y.setMod("context", "menu"), y.onAction(function(g) {
- var b;
- return (b = v.exec) === null || b === void 0 || b.call(i, g), i.close(), !1;
- }), u.appendChild(y.container);
- }
- }), this.setContent(u).open(function() {
- return { left: p, top: l, width: 0, height: 0 };
- }, !0));
- }, n.__decorate([d.component], c);
- }(m.Popup);
- t.ContextMenu = a;
- }, 97528: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Alert = void 0;
- var n = e(6690), m = e(40332), h = e(64968), f = e(2074);
- t.Alert = function(d, a, s, c) {
- c === void 0 && (c = "jodit-dialog_alert"), (0, m.isFunction)(a) && (s = a, a = void 0);
- var p = this instanceof n.Dialog ? this : new n.Dialog(), l = p.c.div(c), o = (0, f.Button)(p, "ok", "Ok");
- return (0, m.asArray)(d).forEach(function(r) {
- l.appendChild(h.Dom.isNode(r) ? r : p.c.fromHTML(r));
- }), o.onAction(function() {
- s && (0, m.isFunction)(s) && s(p) === !1 || p.close();
- }), p.setFooter([o]), p.open(l, a || " ", !0, !0), o.focus(), p;
- };
- }, 47360: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Confirm = void 0;
- var n = e(6690), m = e(42096), h = e(96031);
- t.Confirm = function(f, d, a) {
- var s = this instanceof n.Dialog ? this : new n.Dialog(), c = s.c.fromHTML('<form class="jodit-dialog_prompt"></form>'), p = s.c.element("label");
- (0, m.isFunction)(d) && (a = d, d = void 0), p.appendChild(s.c.fromHTML(f)), c.appendChild(p);
- var l = function(i) {
- return function() {
- a && a(i) === !1 || s.close();
- };
- }, o = (0, h.Button)(s, "cancel", "Cancel"), r = (0, h.Button)(s, "ok", "Yes");
- return o.onAction(l(!1)), r.onAction(l(!0)), s.e.on(c, "submit", function() {
- return l(!0)(), !1;
- }), s.setFooter([r, o]), s.open(c, d || " ", !0, !0), r.focus(), s;
- };
- }, 6690: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Dialog = void 0;
- var n = e(20255);
- e(16462);
- var m = e(93166), h = e(86893), f = e(40332), d = (e(52378), e(43608)), a = e(64968), s = e(56562), c = e(17332), p = e(43441), l = e(75902), o = e(2074), r = e(71014);
- m.Config.prototype.dialog = { namespace: "", extraButtons: [], resizable: !0, draggable: !0, buttons: ["dialog.close"], removeButtons: [], toolbarButtonSize: "middle", zIndex: "inherit" }, m.Config.prototype.controls.dialog = { close: { icon: "cancel", exec: function(u) {
- u.close();
- } } };
- var i = function(u) {
- function v(y) {
- y === void 0 && (y = {});
- var g = u.call(this, y) || this;
- g.destroyAfterClose = !1, g.moved = !1, g.resizable = !1, g.draggable = !1, g.startX = 0, g.startY = 0, g.startPoint = { x: 0, y: 0, w: 0, h: 0 }, g.lockSelect = function() {
- g.setMod("moved", !0);
- }, g.unlockSelect = function() {
- g.setMod("moved", !1);
- }, g.onResize = function() {
- g.options && g.o.resizable && !g.moved && g.isOpened && !g.offsetX && !g.offsetY && g.setPosition();
- }, g.isModal = !1, g.isOpened = !1;
- var b = g;
- b.options = (0, f.ConfigProto)(y, (0, f.ConfigProto)(m.Config.prototype.dialog, l.View.defaultOptions)), a.Dom.safeRemove(b.container);
- var w = g.getFullElName.bind(g);
- b.container = g.c.fromHTML('<div class="jodit jodit-dialog '.concat(g.componentName, `">
- <div class="`).concat(w("overlay"), `"></div>
- <div class="`).concat(g.getFullElName("panel"), `">
- <div class="`).concat(w("header"), `">
- <div class="`).concat(w("header-title"), `"></div>
- <div class="`).concat(w("header-toolbar"), `"></div>
- </div>
- <div class="`).concat(w("content"), `"></div>
- <div class="`).concat(w("footer"), `"></div>
- <div class="`).concat(w("resizer"), '">').concat(o.Icon.get("resize_handler"), `</div>
- </div>
- </div>`)), g.o.zIndex && (g.container.style.zIndex = g.o.zIndex.toString()), (0, f.attr)(b.container, "role", "dialog"), Object.defineProperty(b.container, "component", { value: g }), b.setMod("theme", b.o.theme || "default").setMod("resizable", !!b.o.resizable);
- var C = b.getElm("panel"), S = b.getElm("resizer"), j = b.getElm("header-title"), E = b.getElm("content"), x = b.getElm("footer"), k = b.getElm("header-toolbar");
- g.message.destruct(), g.message = new r.UIMessages(g, C), g.dialog = C, g.resizer = S, g.dialogbox_header = j, g.dialogbox_content = E, g.dialogbox_footer = x, g.dialogbox_toolbar = k, (0, f.css)(b.dialog, { maxWidth: b.options.maxWidth, minHeight: b.options.minHeight, minWidth: b.options.minWidth });
- var I = b.getElm("header");
- I && b.e.on(I, "pointerdown touchstart", b.onHeaderMouseDown), b.e.on(b.resizer, "mousedown touchstart", b.onResizerMouseDown);
- var M = c.pluginSystem.get("fullsize");
- return (0, f.isFunction)(M) && M(b), g.e.on(b.container, "close_dialog", b.close).on(g.ow, "keydown", g.onEsc).on(g.ow, "resize", g.onResize), g;
- }
- return n.__extends(v, u), v.prototype.className = function() {
- return "Dialog";
- }, Object.defineProperty(v.prototype, "destination", { get: function() {
- var y;
- return (y = this.o.shadowRoot) !== null && y !== void 0 ? y : this.od.body;
- }, enumerable: !1, configurable: !0 }), v.prototype.setElements = function(y, g) {
- var b = this, w = [];
- (0, f.asArray)(g).forEach(function(C) {
- if ((0, f.isArray)(C)) {
- var S = b.c.div(b.getFullElName("column"));
- return w.push(S), y.appendChild(S), b.setElements(S, C);
- }
- var j;
- j = (0, f.isString)(C) ? b.c.fromHTML(C) : (0, f.hasContainer)(C) ? C.container : C, w.push(j), j.parentNode !== y && y.appendChild(j);
- }), (0, f.toArray)(y.childNodes).forEach(function(C) {
- w.indexOf(C) === -1 && y.removeChild(C);
- });
- }, v.prototype.onMouseUp = function() {
- (this.draggable || this.resizable) && (this.removeGlobalResizeListeners(), this.draggable = !1, this.resizable = !1, this.unlockSelect(), this.e && (this.removeGlobalResizeListeners(), this.e.fire(this, "endResize endMove")));
- }, v.prototype.onHeaderMouseDown = function(y) {
- var g = y.target;
- !this.o.draggable || g && g.nodeName.match(/^(INPUT|SELECT)$/) || (this.draggable = !0, this.startX = y.clientX, this.startY = y.clientY, this.startPoint.x = (0, f.css)(this.dialog, "left"), this.startPoint.y = (0, f.css)(this.dialog, "top"), this.setMaxZIndex(), y.cancelable && y.preventDefault(), this.lockSelect(), this.addGlobalResizeListeners(), this.e && this.e.fire(this, "startMove"));
- }, v.prototype.onMouseMove = function(y) {
- this.draggable && this.o.draggable && (this.setPosition(this.startPoint.x + y.clientX - this.startX, this.startPoint.y + y.clientY - this.startY), this.e && this.e.fire(this, "move", y.clientX - this.startX, y.clientY - this.startY), y.stopImmediatePropagation()), this.resizable && this.o.resizable && (this.setSize(this.startPoint.w + y.clientX - this.startX, this.startPoint.h + y.clientY - this.startY), this.e && this.e.fire(this, "resizeDialog", y.clientX - this.startX, y.clientY - this.startY));
- }, v.prototype.onEsc = function(y) {
- if (this.isOpened && y.key === h.KEY_ESC && this.getMod("static") !== !0) {
- var g = this.getMaxZIndexDialog();
- g ? g.close() : this.close(), y.stopImmediatePropagation();
- }
- }, v.prototype.onResizerMouseDown = function(y) {
- this.resizable = !0, this.startX = y.clientX, this.startY = y.clientY, this.startPoint.w = this.dialog.offsetWidth, this.startPoint.h = this.dialog.offsetHeight, this.lockSelect(), this.addGlobalResizeListeners(), this.e && this.e.fire(this, "startResize");
- }, v.prototype.addGlobalResizeListeners = function() {
- var y = this;
- y.e.on(y.ow, "pointermove touchmove", y.onMouseMove).on(y.ow, "pointerup touchend", y.onMouseUp);
- }, v.prototype.removeGlobalResizeListeners = function() {
- var y = this;
- y.e.off(y.ow, "mousemove pointermove", y.onMouseMove).off(y.ow, "mouseup pointerup", y.onMouseUp);
- }, v.prototype.setSize = function(y, g) {
- return y == null && (y = this.dialog.offsetWidth), g == null && (g = this.dialog.offsetHeight), (0, f.css)(this.dialog, { width: y, height: g }), this;
- }, v.prototype.calcAutoSize = function() {
- return this.setSize("auto", "auto"), this.setSize(), this;
- }, v.prototype.setPosition = function(y, g) {
- var b = this.ow.innerWidth / 2 - this.dialog.offsetWidth / 2, w = this.ow.innerHeight / 2 - this.dialog.offsetHeight / 2;
- return 0 > b && (b = 0), 0 > w && (w = 0), y !== void 0 && g !== void 0 && (this.offsetX = y, this.offsetY = g, this.moved = Math.abs(y - b) > 100 || Math.abs(g - w) > 100), this.dialog.style.left = (y || b) + "px", this.dialog.style.top = (g || w) + "px", this;
- }, v.prototype.setHeader = function(y) {
- return this.setElements(this.dialogbox_header, y), this;
- }, v.prototype.setContent = function(y) {
- return this.setElements(this.dialogbox_content, y), this;
- }, v.prototype.setFooter = function(y) {
- return this.setElements(this.dialogbox_footer, y), this.setMod("footer", !!y), this;
- }, v.prototype.getZIndex = function() {
- return parseInt((0, f.css)(this.container, "zIndex"), 10) || 0;
- }, v.prototype.getMaxZIndexDialog = function() {
- var y, g, b = 0, w = this;
- return (0, f.$$)(".jodit-dialog", this.destination).forEach(function(C) {
- y = C.component, g = parseInt((0, f.css)(C, "zIndex"), 10), y.isOpened && !isNaN(g) && g > b && (w = y, b = g);
- }), w;
- }, v.prototype.setMaxZIndex = function() {
- if (!this.getMod("static")) {
- var y = 20000004, g = 0;
- (0, f.$$)(".jodit-dialog", this.destination).forEach(function(b) {
- g = parseInt((0, f.css)(b, "zIndex"), 10), y = Math.max(isNaN(g) ? 0 : g, y);
- }), this.container.style.zIndex = (y + 1).toString();
- }
- }, v.prototype.toggleFullSize = function(y) {
- (0, f.isVoid)(y) && (y = !this.getMod("fullsize")), this.setMod("fullsize", y), u.prototype.toggleFullSize.call(this, y);
- }, v.prototype.open = function(y, g, b, w) {
- if (c.eventEmitter.fire("closeAllPopups hideHelpers"), this.e.fire(this, "beforeOpen") === !1) return this;
- (0, f.isBoolean)(y) && (b = y), (0, f.isBoolean)(g) && (w = g), this.destroyAfterClose = b === !0;
- var C = (0, f.isBoolean)(y) ? void 0 : y, S = (0, f.isBoolean)(g) ? void 0 : g;
- return S !== void 0 && this.setHeader(S), C && this.setContent(C), this.setMod("active", !0), this.isOpened = !0, this.setModal(w), this.destination.appendChild(this.container), this.getMod("static") !== !0 ? (this.setPosition(this.offsetX, this.offsetY), this.setMaxZIndex()) : this.container.style.removeProperty("z-index"), this.o.fullsize && this.toggleFullSize(!0), this.e.fire("afterOpen", this), this;
- }, v.prototype.setModal = function(y) {
- return this.isModal = !!y, this.setMod("modal", this.isModal), this;
- }, v.prototype.close = function() {
- return this.isDestructed || !this.isOpened || this.getMod("static") === !0 || this.e.fire("beforeClose", this) === !1 || (this.setMod("active", !1), this.isOpened = !1, this.isFullSize && this.toggleFullSize(!1), a.Dom.safeRemove(this.container), this.removeGlobalResizeListeners(), this.destroyAfterClose && this.destruct(), this.e.fire(this, "afterClose"), this.e.fire(this.ow, "joditCloseDialog")), this;
- }, v.prototype.buildToolbar = function() {
- this.o.buttons && this.toolbar.build((0, f.splitArray)(this.o.buttons)).setMod("mode", "header").appendTo(this.dialogbox_toolbar);
- }, v.prototype.destruct = function() {
- this.isInDestruct || (this.setStatus(s.STATUSES.beforeDestruct), this.isOpened && this.close(), this.events && (this.removeGlobalResizeListeners(), this.events.off(this.container, "close_dialog", self.close).off(this.ow, "keydown", this.onEsc).off(this.ow, "resize", this.onResize)), u.prototype.destruct.call(this));
- }, n.__decorate([p.autobind], v.prototype, "onMouseUp", null), n.__decorate([p.autobind], v.prototype, "onHeaderMouseDown", null), n.__decorate([p.autobind], v.prototype, "onMouseMove", null), n.__decorate([p.autobind], v.prototype, "onEsc", null), n.__decorate([p.autobind], v.prototype, "onResizerMouseDown", null), n.__decorate([p.autobind], v.prototype, "close", null), n.__decorate([(0, p.hook)("ready")], v.prototype, "buildToolbar", null), n.__decorate([p.component], v);
- }(d.ViewWithToolbar);
- t.Dialog = i;
- }, 92080: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Confirm = t.Prompt = t.Alert = t.Dialog = void 0;
- var n = e(6690);
- Object.defineProperty(t, "Dialog", { enumerable: !0, get: function() {
- return n.Dialog;
- } });
- var m = e(97528);
- Object.defineProperty(t, "Alert", { enumerable: !0, get: function() {
- return m.Alert;
- } });
- var h = e(35789);
- Object.defineProperty(t, "Prompt", { enumerable: !0, get: function() {
- return h.Prompt;
- } });
- var f = e(47360);
- Object.defineProperty(t, "Confirm", { enumerable: !0, get: function() {
- return f.Confirm;
- } });
- }, 35789: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Prompt = void 0;
- var n = e(92080), m = e(2074), h = e(40332);
- t.Prompt = function(f, d, a, s, c) {
- var p = this instanceof n.Dialog ? this : new n.Dialog(), l = (0, m.Button)(p, "cancel", "Cancel"), o = (0, m.Button)(p, "ok", "Ok"), r = p.c.element("form", { class: "jodit-dialog_prompt" }), i = p.c.element("input", { autofocus: !0, class: "jodit-input" }), u = p.c.element("label");
- (0, h.isFunction)(d) && (a = d, d = void 0), s && (0, h.attr)(i, "placeholder", s), u.appendChild(p.c.text(f)), r.appendChild(u), r.appendChild(i), l.onAction(p.close);
- var v = function() {
- a && (0, h.isFunction)(a) && a(i.value) === !1 || p.close();
- };
- return o.onAction(v), p.e.on(r, "submit", function() {
- return v(), !1;
- }), p.setFooter([o, l]), p.open(r, d || " ", !0, !0), i.focus(), c !== void 0 && c.length && (i.value = c, i.select()), p;
- };
- }, 34468: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255), m = e(64968), h = e(40332), f = e(46341), d = e(2074), a = e(21347), s = e(35503), c = e(66267), p = e(36303), l = e(48096), o = "jodit-filebrowser-preview", r = function(i, u) {
- return i === void 0 && (i = "next"), u === void 0 && (u = "right"), '<div class="'.concat(o, "__navigation ").concat(o, "__navigation_arrow_").concat(i, '">') + "" + d.Icon.get("angle-" + u) + "</a>";
- };
- t.default = function(i) {
- if (!i.o.contextMenu) return function() {
- };
- var u = (0, f.makeContextMenu)(i);
- return function(v) {
- var y = (0, a.getItem)(v.target, i.container);
- if (y) {
- var g = y, b = i.options, w = function(C) {
- return (0, h.attr)(g, C) || "";
- };
- return i.async.setTimeout(function() {
- var C = (0, a.elementToItem)(y, (0, c.elementsMap)(i));
- C && (i.state.activeElements = [C], u.show(v.clientX, v.clientY, [!(w("data-is-file") === "1" || !b.editImage || !i.dataProvider.canI("ImageResize") && !i.dataProvider.canI("ImageCrop")) && { icon: "pencil", title: "Edit", exec: function() {
- return s.openImageEditor.call(i, w("href"), w("data-name"), w("data-path"), w("data-source"));
- } }, !!i.dataProvider.canI("FileRename") && { icon: "italic", title: "Rename", exec: function() {
- i.e.fire("fileRename.filebrowser", w("data-name"), w("data-path"), w("data-source"));
- } }, !!i.dataProvider.canI("FileRemove") && { icon: "bin", title: "Delete", exec: function() {
- return n.__awaiter(void 0, void 0, Promise, function() {
- var S;
- return n.__generator(this, function(j) {
- switch (j.label) {
- case 0:
- return j.trys.push([0, 2, , 3]), [4, (0, l.deleteFile)(i, w("data-name"), w("data-source"))];
- case 1:
- return j.sent(), [3, 3];
- case 2:
- return S = j.sent(), [2, i.status(S)];
- case 3:
- return i.state.activeElements = [], [2, (0, p.loadTree)(i).catch(i.status)];
- }
- });
- });
- } }, !!b.preview && { icon: "eye", title: "Preview", exec: function() {
- var S = i.dlg({ buttons: ["fullsize", "dialog.close"] }), j = i.c.div(o, '<div class="jodit-icon_loader"></div>'), E = i.c.div(o + "__box"), x = i.c.fromHTML(r()), k = i.c.fromHTML(r("prev", "left")), I = function(M) {
- var T = i.c.element("img");
- T.setAttribute("src", M);
- var O = function() {
- var L;
- i.isInDestruct || (i.e.off(T, "load"), m.Dom.detach(j), b.showPreviewNavigation && (m.Dom.prevWithClass(g, i.files.getFullElName("item")) && j.appendChild(k), m.Dom.nextWithClass(g, i.files.getFullElName("item")) && j.appendChild(x)), j.appendChild(E), E.appendChild(T), S.setPosition(), (L = i == null ? void 0 : i.events) === null || L === void 0 || L.fire("previewOpenedAndLoaded"));
- };
- i.e.on(T, "load", O), T.complete && O();
- };
- i.e.on([x, k], "click", function() {
- if (!(g = this === x ? m.Dom.nextWithClass(g, i.files.getFullElName("item")) : m.Dom.prevWithClass(g, i.files.getFullElName("item")))) throw (0, h.error)("Need element");
- m.Dom.detach(j), m.Dom.detach(E), j.innerHTML = '<div class="jodit-icon_loader"></div>', I(w("href"));
- }), i.e.on("beforeDestruct", function() {
- S.destruct();
- }), S.container.classList.add(o + "__dialog"), S.setContent(j), S.setPosition(), S.open(), I(w("href")), i.events.on("beforeDestruct", function() {
- S.destruct();
- }).fire("previewOpened");
- } }, { icon: "upload", title: "Download", exec: function() {
- var S = w("href");
- S && i.ow.open(S);
- } }]));
- }, i.defaultTimeout), i.e.on("beforeClose", function() {
- return u.close();
- }).on("beforeDestruct", function() {
- return u.destruct();
- }), v.stopPropagation(), v.preventDefault(), !1;
- }
- };
- };
- }, 66267: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.elementsMap = void 0;
- var e = /* @__PURE__ */ new WeakMap();
- t.elementsMap = function(n) {
- var m = e.get(n);
- return m || e.set(n, m = {}), m;
- };
- }, 63511: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.FileBrowserItem = void 0;
- var n = e(40332), m = function() {
- function h(f) {
- var d = this;
- this.data = f, Object.keys(f).forEach(function(a) {
- d[a] = f[a];
- });
- }
- return h.create = function(f) {
- return f instanceof h ? f : new h(f);
- }, Object.defineProperty(h.prototype, "path", { get: function() {
- return (0, n.normalizePath)(this.data.source.path ? this.data.source.path + "/" : "/");
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "imageURL", { get: function() {
- var f = this.time || (/* @__PURE__ */ new Date()).getTime().toString(), d = this.data, a = d.source, s = d.thumb || d.file;
- return d.thumbIsAbsolute && s ? s : (0, n.normalizeUrl)(a.baseurl, a.path, s || "") + "?_tmst=" + encodeURIComponent(f);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "fileURL", { get: function() {
- var f = this.data.name, d = this.data, a = d.file, s = d.source;
- return a !== void 0 && (f = a), d.fileIsAbsolute && f ? f : (0, n.normalizeUrl)(s.baseurl, s.path, f || "");
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "time", { get: function() {
- var f = this.data.changed;
- return f && (typeof f == "number" ? new Date(f).toLocaleString() : f) || "";
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(h.prototype, "uniqueHashKey", { get: function() {
- var f = this.data;
- return [f.sourceName, f.name, f.file, this.time, f.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g, "-");
- }, enumerable: !1, configurable: !0 }), h.prototype.toJSON = function() {
- return this.data;
- }, h;
- }();
- t.FileBrowserItem = m;
- }, 38097: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255), m = e(93166), h = e(10172), f = e(41374), d = e(6102);
- m.Config.prototype.filebrowser = { namespace: "", extraButtons: [], filter: function(a, s) {
- return s = s.toLowerCase(), (0, h.isString)(a) ? a.toLowerCase().indexOf(s) !== -1 : (0, h.isString)(a.name) ? a.name.toLowerCase().indexOf(s) !== -1 : !(0, h.isString)(a.file) || a.file.toLowerCase().indexOf(s) !== -1;
- }, sortBy: "changed-desc", sort: function(a, s, c) {
- var p = n.__read(c.toLowerCase().split("-"), 2), l = p[0], o = p[1] === "asc", r = function(v, y) {
- return y > v ? o ? -1 : 1 : v > y ? o ? 1 : -1 : 0;
- };
- if ((0, h.isString)(a)) return r(a.toLowerCase(), s.toLowerCase());
- if (a[l] === void 0 || l === "name") return (0, h.isString)(a.name) ? r(a.name.toLowerCase(), s.name.toLowerCase()) : (0, h.isString)(a.file) ? r(a.file.toLowerCase(), s.file.toLowerCase()) : 0;
- switch (l) {
- case "changed":
- var i = new Date(a.changed).getTime(), u = new Date(s.changed).getTime();
- return o ? i - u : u - i;
- case "size":
- return i = (0, d.humanSizeToBytes)(a.size), u = (0, d.humanSizeToBytes)(s.size), o ? i - u : u - i;
- }
- return 0;
- }, editImage: !0, preview: !0, showPreviewNavigation: !0, showSelectButtonInPreview: !0, contextMenu: !0, howLongShowMsg: 3e3, createNewFolder: !0, deleteFolder: !0, renameFolder: !0, moveFolder: !0, moveFile: !0, permissionsPresets: { allowFileDownload: void 0, allowFileMove: void 0, allowFileRemove: void 0, allowFileRename: void 0, allowFileUpload: void 0, allowFileUploadRemote: void 0, allowFiles: void 0, allowFolderCreate: void 0, allowFolderMove: void 0, allowFolderRemove: void 0, allowFolderRename: void 0, allowFolderTree: void 0, allowFolders: void 0, allowGeneratePdf: void 0, allowImageCrop: void 0, allowImageResize: void 0 }, showFoldersPanel: !0, storeLastOpenedFolder: !0, width: 859, height: 400, buttons: ["filebrowser.upload", "filebrowser.remove", "filebrowser.update", "filebrowser.select", "filebrowser.edit", "|", "filebrowser.tiles", "filebrowser.list", "|", "filebrowser.filter", "|", "filebrowser.sort"], removeButtons: [], fullsize: !1, showTooltip: !0, view: null, isSuccess: function(a) {
- return a.success;
- }, getMessage: function(a) {
- return a.data.messages !== void 0 && (0, h.isArray)(a.data.messages) ? a.data.messages.join(" ") : "";
- }, showFileName: !0, showFileSize: !0, showFileChangeTime: !0, saveStateInStorage: { storeLastOpenedFolder: !0, storeView: !0, storeSortBy: !0 }, pixelOffsetLoadNewChunk: 200, getThumbTemplate: function(a, s, c) {
- var p = this.options, l = this.files.getFullElName("item"), o = p.showFileName, r = p.showFileSize && a.size, i = p.showFileChangeTime && a.time, u = "";
- a.file !== void 0 && (u = a.file);
- var v = '<div class="'.concat(l, '-info">').concat(o ? '<span class="'.concat(l, '-info-filename">').concat(u, "</span>") : "").concat(r ? '<span class="'.concat(l, '-info-filesize">').concat(a.size, "</span>") : "").concat(i ? '<span class="'.concat(l, '-info-filechanged">').concat(i, "</span>") : "", "</div>");
- return `<a
- data-jodit-filebrowser-item="true"
- data-is-file="`.concat(a.isImage ? 0 : 1, `"
- draggable="true"
- class="`).concat(l, `"
- href="`).concat(a.fileURL, `"
- data-source="`).concat(c, `"
- data-path="`).concat(a.path, `"
- data-name="`).concat(u, `"
- title="`).concat(u, `"
- data-url="`).concat(a.fileURL, `">
- <img
- data-is-file="`).concat(a.isImage ? 0 : 1, `"
- data-src="`).concat(a.fileURL, `"
- src="`).concat(a.imageURL, `"
- alt="`).concat(u, `"
- loading="lazy"
- />
- `).concat(o || r || i ? v : "", `
- </a>`);
- }, ajax: n.__assign(n.__assign({}, m.Config.prototype.defaultAjaxOptions), { url: "", data: {}, cache: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", method: "POST", processData: !0, headers: {}, prepareData: function(a) {
- return a;
- }, process: function(a) {
- return a;
- } }), create: { data: { action: "folderCreate" } }, getLocalFileByUrl: { data: { action: "getLocalFileByUrl" } }, resize: { data: { action: "imageResize" } }, crop: { data: { action: "imageCrop" } }, fileMove: { data: { action: "fileMove" } }, folderMove: { data: { action: "folderMove" } }, fileRename: { data: { action: "fileRename" } }, folderRename: { data: { action: "folderRename" } }, fileRemove: { data: { action: "fileRemove" } }, folderRemove: { data: { action: "folderRemove" } }, items: { data: { action: "files" } }, folder: { data: { action: "folders" } }, permissions: { data: { action: "permissions" } } }, m.Config.prototype.controls.filebrowser = { upload: { icon: "plus", isInput: !0, isDisabled: function(a) {
- return !a.dataProvider.canI("FileUpload");
- }, getContent: function(a) {
- var s = new f.UIFileInput(a, { onlyImages: a.state.onlyImages });
- return a.e.fire("bindUploader.filebrowser", s.container), s.container;
- } }, remove: { icon: "bin", isDisabled: function(a) {
- return !a.state.activeElements.length || !a.dataProvider.canI("FileRemove");
- }, exec: function(a) {
- a.e.fire("fileRemove.filebrowser");
- } }, update: { exec: function(a) {
- a.e.fire("update.filebrowser");
- } }, select: { icon: "check", isDisabled: function(a) {
- return !a.state.activeElements.length;
- }, exec: function(a) {
- a.e.fire("select.filebrowser");
- } }, edit: { icon: "pencil", isDisabled: function(a) {
- var s = a.state.activeElements;
- return s.length !== 1 || !s[0].isImage || !(a.dataProvider.canI("ImageCrop") || a.dataProvider.canI("ImageResize"));
- }, exec: function(a) {
- a.e.fire("edit.filebrowser");
- } }, tiles: { icon: "th", isActive: function(a) {
- return a.state.view === "tiles";
- }, exec: function(a) {
- a.e.fire("view.filebrowser", "tiles");
- } }, list: { icon: "th-list", isActive: function(a) {
- return a.state.view === "list";
- }, exec: function(a) {
- a.e.fire("view.filebrowser", "list");
- } }, filter: { isInput: !0, getContent: function(a, s, c) {
- var p = c.container.querySelector(".jodit-input");
- if (p) return p;
- var l = a.c.element("input", { class: "jodit-input", placeholder: a.i18n("Filter") });
- return l.value = a.state.filterWord, a.e.on(l, "keydown mousedown", a.async.debounce(function() {
- a.e.fire("filter.filebrowser", l.value);
- }, a.defaultTimeout)), l;
- } }, sort: { isInput: !0, getContent: function(a) {
- var s = a.c.fromHTML('<select class="jodit-input jodit-select">' + '<option value="changed-asc">'.concat(a.i18n("Sort by changed"), " (⬆)</option>") + '<option value="changed-desc">'.concat(a.i18n("Sort by changed"), " (⬇)</option>") + '<option value="name-asc">'.concat(a.i18n("Sort by name"), " (⬆)</option>") + '<option value="name-desc">'.concat(a.i18n("Sort by name"), " (⬇)</option>") + '<option value="size-asc">'.concat(a.i18n("Sort by size"), " (⬆)</option>") + '<option value="size-desc">'.concat(a.i18n("Sort by size"), " (⬇)</option>") + "</select>");
- return s.value = a.state.sortBy, a.e.on("sort.filebrowser", function(c) {
- s.value !== c && (s.value = c);
- }).on(s, "change", function() {
- a.e.fire("sort.filebrowser", s.value);
- }), s;
- } } };
- }, 82530: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.DEFAULT_SOURCE_NAME = void 0;
- var n = e(20255), m = e(40332), h = e(30056), f = e(43441), d = e(63511);
- t.DEFAULT_SOURCE_NAME = "default";
- var a = function() {
- function s(c, p) {
- this.parent = c, this.options = p, this.__currentPermissions = null, this.ajaxInstances = /* @__PURE__ */ new Map(), this.progressHandler = function(l) {
- };
- }
- return Object.defineProperty(s.prototype, "o", { get: function() {
- return this.options;
- }, enumerable: !1, configurable: !0 }), s.prototype.get = function(c) {
- var p = this, l = this.ajaxInstances;
- if (l.has(c)) {
- var o = l.get(c);
- o == null || o.abort(), l.delete(c);
- }
- var r = (0, m.ConfigProto)(this.options[c] !== void 0 ? this.options[c] : {}, (0, m.ConfigProto)({ onProgress: this.progressHandler }, this.o.ajax));
- r.prepareData && (r.data = r.prepareData.call(this, r.data));
- var i = new h.Ajax(r);
- l.set(c, i);
- var u = i.send();
- return u.finally(function() {
- i.destruct(), l.delete(c), p.progressHandler(100);
- }).catch(function() {
- return null;
- }), u.then(function(v) {
- return v.json();
- }).then(function(v) {
- if (v && !p.isSuccess(v)) throw new Error(p.getMessage(v));
- return v;
- });
- }, s.prototype.onProgress = function(c) {
- this.progressHandler = c;
- }, s.prototype.permissions = function(c, p) {
- return n.__awaiter(this, void 0, Promise, function() {
- var l = this;
- return n.__generator(this, function(o) {
- return this.o.permissions ? (this.o.permissions.data.path = c, this.o.permissions.data.source = p, this.o.permissions.url ? [2, this.get("permissions").then(function(r) {
- var i = l.o.permissions.process;
- if (i || (i = l.o.ajax.process), i) {
- var u = i.call(self, r);
- u.data.permissions && (l.__currentPermissions = u.data.permissions);
- }
- return l.__currentPermissions;
- })] : [2, null]) : [2, null];
- });
- });
- }, s.prototype.canI = function(c) {
- var p = "allow" + c, l = this.o.permissionsPresets[p];
- return l !== void 0 ? l : this.__currentPermissions == null || this.__currentPermissions[p] === void 0 || this.__currentPermissions[p];
- }, s.prototype.__items = function(c, p, l, o) {
- var r = this, i = this.options;
- return i.items ? (i.items.data.path = c, i.items.data.source = p, i.items.data.mods = l, this.get("items").then(function(u) {
- var v = r.o.items.process;
- return v || (v = r.o.ajax.process), v && (u = v.call(self, u)), o(u);
- })) : Promise.reject("Set Items api options");
- }, s.prototype.items = function(c, p, l) {
- var o = this;
- return l === void 0 && (l = {}), this.__items(c, p, l, function(r) {
- return o.generateItemsList(r.data.sources, l);
- });
- }, s.prototype.itemsEx = function(c, p, l) {
- var o = this;
- return l === void 0 && (l = {}), this.__items(c, p, l, function(r) {
- return { items: o.generateItemsList(r.data.sources, l), loadedTotal: (i = r.data.sources, i.reduce(function(u, v) {
- return u + v.files.length;
- }, 0)) };
- var i;
- });
- }, s.prototype.generateItemsList = function(c, p) {
- var l = this;
- p === void 0 && (p = {});
- var o = [];
- return c.forEach(function(r) {
- if (r.files && r.files.length) {
- var i = l.o.sort;
- (0, m.isFunction)(i) && p.sortBy && r.files.sort(function(u, v) {
- return i(u, v, p.sortBy);
- }), r.files.forEach(function(u) {
- (function(v) {
- var y;
- return !(!((y = p.filterWord) === null || y === void 0) && y.length) || l.o.filter === void 0 || l.o.filter(v, p.filterWord);
- })(u) && function(v) {
- return v.type === "folder" || !p.onlyImages || v.isImage === void 0 || v.isImage;
- }(u) && o.push(d.FileBrowserItem.create(n.__assign(n.__assign({}, u), { sourceName: r.name, source: r })));
- });
- }
- }), o;
- }, s.prototype.tree = function(c, p) {
- return n.__awaiter(this, void 0, Promise, function() {
- var l = this;
- return n.__generator(this, function(o) {
- switch (o.label) {
- case 0:
- return c = (0, m.normalizeRelativePath)(c), this.o.folder ? [4, this.permissions(c, p)] : [2, Promise.reject("Set Folder Api options")];
- case 1:
- return o.sent(), this.o.folder.data.path = c, this.o.folder.data.source = p, [2, this.get("folder").then(function(r) {
- var i = l.o.folder.process;
- return i || (i = l.o.ajax.process), i && (r = i.call(self, r)), r.data.sources;
- })];
- }
- });
- });
- }, s.prototype.getPathByUrl = function(c) {
- var p = this;
- return (0, m.set)("options.getLocalFileByUrl.data.url", c, this), this.get("getLocalFileByUrl").then(function(l) {
- if (p.isSuccess(l)) return l.data;
- throw (0, m.error)(p.getMessage(l));
- });
- }, s.prototype.createFolder = function(c, p, l) {
- var o = this, r = this.o.create;
- if (!r) throw (0, m.error)("Set Create api options");
- return r.data.source = l, r.data.path = p, r.data.name = c, this.get("create").then(function(i) {
- if (o.isSuccess(i)) return !0;
- throw (0, m.error)(o.getMessage(i));
- });
- }, s.prototype.move = function(c, p, l, o) {
- var r = this, i = o ? "fileMove" : "folderMove", u = this.options[i];
- if (!u) throw (0, m.error)("Set Move api options");
- return u.data.from = c, u.data.path = p, u.data.source = l, this.get(i).then(function(v) {
- if (r.isSuccess(v)) return !0;
- throw (0, m.error)(r.getMessage(v));
- });
- }, s.prototype.remove = function(c, p, l, o) {
- var r = this, i = this.o[c];
- if (!i) throw (0, m.error)('Set "'.concat(c, '" api options'));
- return i.data.path = p, i.data.name = l, i.data.source = o, this.get(c).then(function(u) {
- return i.process && (u = i.process.call(r, u)), r.getMessage(u);
- });
- }, s.prototype.fileRemove = function(c, p, l) {
- return this.remove("fileRemove", c, p, l);
- }, s.prototype.folderRemove = function(c, p, l) {
- return this.remove("folderRemove", c, p, l);
- }, s.prototype.rename = function(c, p, l, o, r) {
- var i = this, u = this.o[c];
- if (!u) throw (0, m.error)('Set "'.concat(c, '" api options'));
- return u.data.path = p, u.data.name = l, u.data.newname = o, u.data.source = r, this.get(c).then(function(v) {
- return u.process && (v = u.process.call(self, v)), i.getMessage(v);
- });
- }, s.prototype.folderRename = function(c, p, l, o) {
- return this.rename("folderRename", c, p, l, o);
- }, s.prototype.fileRename = function(c, p, l, o) {
- return this.rename("fileRename", c, p, l, o);
- }, s.prototype.changeImage = function(c, p, l, o, r, i) {
- this.o[c] || (this.o[c] = { data: {} });
- var u = this.o[c];
- return u.data === void 0 && (u.data = { action: c }), u.data.newname = r || o, i && (u.data.box = i), u.data.path = p, u.data.name = o, u.data.source = l, this.get(c).then(function() {
- return !0;
- });
- }, s.prototype.crop = function(c, p, l, o, r) {
- return this.changeImage("crop", c, p, l, o, r);
- }, s.prototype.resize = function(c, p, l, o, r) {
- return this.changeImage("resize", c, p, l, o, r);
- }, s.prototype.getMessage = function(c) {
- return this.options.getMessage(c);
- }, s.prototype.isSuccess = function(c) {
- return this.options.isSuccess(c);
- }, s.prototype.destruct = function() {
- this.ajaxInstances.forEach(function(c) {
- return c.destruct();
- }), this.ajaxInstances.clear();
- }, n.__decorate([f.autobind], s);
- }();
- t.default = a;
- }, 46341: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.makeContextMenu = t.makeDataProvider = void 0;
- var n = e(82530), m = e(60403);
- t.makeDataProvider = function(h, f) {
- return new n.default(h, f);
- }, t.makeContextMenu = function(h) {
- return new m.ContextMenu(h);
- };
- }, 48096: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.deleteFile = void 0, t.deleteFile = function(e, n, m) {
- return e.dataProvider.fileRemove(e.state.currentPath, n, m).then(function(h) {
- e.status(h || e.i18n('File "%s" was deleted', n), !0);
- }).catch(e.status);
- };
- }, 4253: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.loadItems = void 0, t.loadItems = function(e) {
- return e.files.setMod("active", !0), e.files.setMod("loading", !0), e.dataProvider.items(e.state.currentPath, e.state.currentSource, { sortBy: e.state.sortBy, onlyImages: e.state.onlyImages, filterWord: e.state.filterWord }).then(function(n) {
- n && (e.state.elements = n, e.state.activeElements = []);
- }).catch(e.status).finally(function() {
- return e.files.setMod("loading", !1);
- });
- };
- }, 36303: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.loadTree = void 0;
- var n = e(20255), m = e(64968), h = e(4253);
- t.loadTree = function(f) {
- return n.__awaiter(this, void 0, Promise, function() {
- var d, a;
- return n.__generator(this, function(s) {
- return f.tree.setMod("active", !0), m.Dom.detach(f.tree.container), d = (0, h.loadItems)(f), f.o.showFoldersPanel ? (f.tree.setMod("loading", !0), a = f.dataProvider.tree(f.state.currentPath, f.state.currentSource).then(function(c) {
- f.state.sources = c;
- }).catch(f.status).finally(function() {
- return f.tree.setMod("loading", !1);
- }), [2, Promise.all([a, d])]) : (f.tree.setMod("active", !1), [2, d]);
- });
- });
- };
- }, 50885: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isFileBrowserFilesItem = t.FileBrowser = void 0;
- var n = e(20255);
- e(40692);
- var m = e(93166), h = e(86893), f = e(77462), d = e(40332), a = e(64968), s = e(46341), c = e(86774), p = e(21347), l = e(44734), o = e(82530), r = e(43441), i = e(98782), u = e(55395), v = e(36303), y = e(4253), g = e(56562), b = e(59829), w = e(43608);
- e(38097);
- var C = function(S) {
- function j(E) {
- var x, k = this;
- (k = S.call(this, E) || this).browser = k.c.div(k.componentName), k.status_line = k.c.div(k.getFullElName("status")), k.tree = new i.FileBrowserTree(k), k.files = new i.FileBrowserFiles(k), k.state = (0, u.observable)({ currentPath: "", currentSource: o.DEFAULT_SOURCE_NAME, currentBaseUrl: "", activeElements: [], elements: [], sources: [], view: "tiles", sortBy: "changed-desc", filterWord: "", onlyImages: !1 }), k.errorHandler = function(U) {
- (0, d.isAbort)(U) || (U instanceof Error ? k.status(k.i18n(U.message)) : k.status(k.dataProvider.getMessage(U)));
- }, k.close = function() {
- k._dialog.close();
- }, k.attachEvents(E);
- var I = k;
- I.options = (0, d.ConfigProto)(E || {}, m.Config.defaultOptions.filebrowser), I.storage = f.Storage.makeStorage(!!k.o.saveStateInStorage, k.componentName), I.dataProvider = (0, s.makeDataProvider)(I, I.options), I._dialog = k.dlg({ minWidth: Math.min(700, screen.width), minHeight: 300, buttons: (x = k.o.headerButtons) !== null && x !== void 0 ? x : ["fullsize", "dialog.close"] }), k.proxyDialogEvents(I), I.browser.component = k, I.container = I.browser, I.o.showFoldersPanel && I.browser.appendChild(I.tree.container), I.browser.appendChild(I.files.container), I.browser.appendChild(I.status_line), l.selfListeners.call(I), p.nativeListeners.call(I), c.stateListeners.call(I), I._dialog.setSize(I.o.width, I.o.height), ["getLocalFileByUrl", "crop", "resize", "create", "fileMove", "folderMove", "fileRename", "folderRename", "fileRemove", "folderRemove", "folder", "items", "permissions"].forEach(function(U) {
- k.options[U] != null && (k.options[U] = (0, d.ConfigProto)(k.options[U], k.o.ajax));
- });
- var M = k.o.saveStateInStorage || { storeLastOpenedFolder: !1, storeView: !1, storeSortBy: !1 }, T = M.storeSortBy, O = M.storeLastOpenedFolder, L = M.storeView && k.storage.get("view");
- I.state.view = L && k.o.view == null ? L === "list" ? "list" : "tiles" : I.o.view === "list" ? "list" : "tiles", I.files.setMod("view", I.state.view);
- var N = T && I.storage.get("sortBy");
- if (N) {
- var H = N.split("-");
- I.state.sortBy = ["changed", "name", "size"].includes(H[0]) ? N : "changed-desc";
- } else I.state.sortBy = I.o.sortBy || "changed-desc";
- if (O) {
- var q = I.storage.get("currentPath"), F = I.storage.get("currentSource");
- I.state.currentPath = q != null ? q : "", I.state.currentSource = F != null ? F : "";
- }
- return I.initUploader(I), I.setStatus(g.STATUSES.ready), k;
- }
- return n.__extends(j, S), j.prototype.className = function() {
- return "Filebrowser";
- }, j.prototype.onSelect = function(E) {
- var x = this;
- return function() {
- if (x.state.activeElements.length) {
- var k = [], I = [];
- x.state.activeElements.forEach(function(T) {
- var O = T.fileURL;
- O && (k.push(O), I.push(T.isImage || !1));
- }), x.close();
- var M = { baseurl: "", files: k, isImages: I };
- (0, d.isFunction)(E) && E(M), x.close();
- }
- return !1;
- };
- }, Object.defineProperty(j.prototype, "isOpened", { get: function() {
- return this._dialog.isOpened && this.browser.style.display !== "none";
- }, enumerable: !1, configurable: !0 }), j.prototype.status = function(E, x) {
- E && !(0, d.isAbort)(E) && ((0, d.isString)(E) || (E = E.message), (0, d.isString)(E) && (0, d.trim)(E).length && this.message.message(E, x ? "success" : "error", this.o.howLongShowMsg));
- }, j.prototype.open = function(E, x) {
- var k = this;
- return E === void 0 && (E = this.o.defaultCallback), x === void 0 && (x = !1), this.state.onlyImages = x, this.async.promise(function(I, M) {
- if (!k.o.items || !k.o.items.url) throw (0, d.error)("Need set options.filebrowser.ajax.url");
- var T = 0;
- k.e.off(k.files.container, "dblclick").on(k.files.container, "dblclick", k.onSelect(E)).on(k.files.container, "touchstart", function() {
- var L = (/* @__PURE__ */ new Date()).getTime();
- h.EMULATE_DBLCLICK_TIMEOUT > L - T && k.onSelect(E)(), T = L;
- }).off("select.filebrowser").on("select.filebrowser", k.onSelect(E));
- var O = k.c.div();
- k.toolbar.build(k.__getButtons()).appendTo(O), k._dialog.open(k.browser, O), k.e.fire("sort.filebrowser", k.state.sortBy), (0, v.loadTree)(k).then(I, M);
- });
- }, j.prototype.__getButtons = function() {
- var E, x = this;
- return ((E = this.o.buttons) !== null && E !== void 0 ? E : []).filter(function(k) {
- if (!(0, d.isString)(k)) return !0;
- switch (k) {
- case "filebrowser.upload":
- return x.dataProvider.canI("FileUpload");
- case "filebrowser.edit":
- return x.dataProvider.canI("ImageResize") || x.dataProvider.canI("ImageCrop");
- case "filebrowser.remove":
- return x.dataProvider.canI("FileRemove");
- }
- return !0;
- });
- }, j.prototype.initUploader = function(E) {
- var x, k = this, I = this, M = (x = E == null ? void 0 : E.options) === null || x === void 0 ? void 0 : x.uploader, T = (0, d.ConfigProto)(M || {}, m.Config.defaultOptions.uploader), O = function() {
- return (0, y.loadItems)(k);
- };
- I.uploader = I.getInstance("Uploader", T), I.uploader.setPath(I.state.currentPath).setSource(I.state.currentSource).bind(I.browser, O, I.errorHandler), this.state.on(["change.currentPath", "change.currentSource"], function() {
- k.uploader.setPath(k.state.currentPath).setSource(k.state.currentSource);
- }), I.e.on("bindUploader.filebrowser", function(L) {
- I.uploader.bind(L, O, I.errorHandler);
- });
- }, j.prototype.proxyDialogEvents = function(E) {
- var x = this;
- ["afterClose", "beforeOpen"].forEach(function(k) {
- E._dialog.events.on(E.dlg, k, function() {
- x.e.fire(k);
- });
- });
- }, j.prototype.destruct = function() {
- this.isInDestruct || (S.prototype.destruct.call(this), this._dialog.destruct(), this.events && this.e.off(".filebrowser"), this.uploader && this.uploader.destruct());
- }, n.__decorate([r.autobind], j.prototype, "status", null), n.__decorate([r.autobind], j.prototype, "open", null), n.__decorate([(0, r.derive)(b.Dlgs)], j);
- }(w.ViewWithToolbar);
- t.FileBrowser = C, t.isFileBrowserFilesItem = function(S) {
- return a.Dom.isElement(S) && S.classList.contains(i.FileBrowserFiles.prototype.getFullElName("item"));
- };
- }, 63463: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(50885), t);
- }, 21347: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.nativeListeners = t.elementToItem = t.getItem = void 0;
- var n = e(20255), m = e(40332), h = e(34468), f = e(64968), d = e(66267), a = e(36303);
- t.getItem = function(s, c, p) {
- return p === void 0 && (p = "a"), f.Dom.closest(s, function(l) {
- return f.Dom.isTag(l, p);
- }, c);
- }, t.elementToItem = function(s, c) {
- return c[s.dataset.key || ""].item;
- }, t.nativeListeners = function() {
- var s = this, c = !1, p = (0, d.elementsMap)(this), l = this;
- l.e.on(l.tree.container, "dragstart", function(o) {
- var r = (0, t.getItem)(o.target, l.container);
- r && l.o.moveFolder && (c = r);
- }).on(l.tree.container, "drop", function(o) {
- if ((l.o.moveFile || l.o.moveFolder) && c) {
- var r = (0, m.attr)(c, "-path") || "";
- if (!l.o.moveFolder && c.classList.contains(s.tree.getFullElName("item")) || c.classList.contains(s.files.getFullElName("item")) && (r += (0, m.attr)(c, "-name"), !l.o.moveFile)) return !1;
- var i = (0, t.getItem)(o.target, l.container);
- if (!i) return;
- l.dataProvider.move(r, (0, m.attr)(i, "-path") || "", (0, m.attr)(i, "-source") || "", c.classList.contains(s.files.getFullElName("item"))).then(function() {
- return (0, a.loadTree)(s);
- }).catch(l.status), c = !1;
- }
- }).on(l.files.container, "contextmenu", (0, h.default)(l)).on(l.files.container, "click", function(o) {
- (0, m.ctrlKey)(o) || (s.state.activeElements = []);
- }).on(l.files.container, "click", function(o) {
- var r = (0, t.getItem)(o.target, l.container);
- if (r) {
- var i = (0, t.elementToItem)(r, p);
- if (i) return l.state.activeElements = (0, m.ctrlKey)(o) ? n.__spreadArray(n.__spreadArray([], n.__read(l.state.activeElements), !1), [i], !1) : [i], o.stopPropagation(), !1;
- }
- }).on(l.files.container, "dragstart", function(o) {
- if (l.o.moveFile) {
- var r = (0, t.getItem)(o.target, l.container);
- if (!r) return;
- c = r;
- }
- }).on(l.container, "drop", function(o) {
- return o.preventDefault();
- });
- };
- }, 44734: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.selfListeners = void 0;
- var n = e(20255), m = e(10172), h = e(40332), f = e(82530), d = e(35503), a = e(36303), s = e(4253), c = e(48096);
- t.selfListeners = function() {
- var p = this, l = this.state, o = this.dataProvider, r = this;
- r.e.on("view.filebrowser", function(i) {
- i !== l.view && (l.view = i);
- }).on("sort.filebrowser", function(i) {
- i !== l.sortBy && (l.sortBy = i, (0, s.loadItems)(r));
- }).on("filter.filebrowser", function(i) {
- i !== l.filterWord && (l.filterWord = i, (0, s.loadItems)(r));
- }).on("openFolder.filebrowser", function(i) {
- var u;
- u = i.name === ".." ? i.path.split("/").filter(function(v) {
- return v.length;
- }).slice(0, -1).join("/") : (0, h.normalizePath)(i.path, i.name), r.state.currentPath = u, r.state.currentSource = i.name === "." ? f.DEFAULT_SOURCE_NAME : i.source;
- }).on("removeFolder.filebrowser", function(i) {
- r.confirm("Are you sure?", "Delete", function(u) {
- u && o.folderRemove(i.path, i.name, i.source).then(function(v) {
- return r.status(v, !0), (0, a.loadTree)(r);
- }).catch(r.status);
- });
- }).on("renameFolder.filebrowser", function(i) {
- r.prompt("Enter new name", "Rename", function(u) {
- if (!(0, m.isValidName)(u)) return r.status(r.i18n("Enter new name")), !1;
- o.folderRename(i.path, i.name, u, i.source).then(function(v) {
- return r.state.activeElements = [], r.status(v, !0), (0, a.loadTree)(r);
- }).catch(r.status);
- }, "type name", i.name);
- }).on("addFolder.filebrowser", function(i) {
- r.prompt("Enter Directory name", "Create directory", function(u) {
- o.createFolder(u, i.path, i.source).then(function() {
- return (0, a.loadTree)(r);
- }).catch(r.status);
- }, "type name");
- }).on("fileRemove.filebrowser", function() {
- r.state.activeElements.length && r.confirm("Are you sure?", "", function(i) {
- if (i) {
- var u = [];
- r.state.activeElements.forEach(function(v) {
- u.push((0, c.deleteFile)(r, v.file || v.name || "", v.sourceName));
- }), r.state.activeElements = [], Promise.all(u).then(function() {
- return (0, a.loadTree)(r).catch(r.status);
- }, r.status);
- }
- });
- }).on("edit.filebrowser", function() {
- if (r.state.activeElements.length === 1) {
- var i = n.__read(p.state.activeElements, 1)[0];
- d.openImageEditor.call(r, i.fileURL, i.file || "", i.path, i.sourceName);
- }
- }).on("fileRename.filebrowser", function(i, u, v) {
- r.state.activeElements.length === 1 && r.prompt("Enter new name", "Rename", function(y) {
- if (!(0, m.isValidName)(y)) return r.status(r.i18n("Enter new name")), !1;
- o.fileRename(u, i, y, v).then(function(g) {
- r.state.activeElements = [], r.status(g, !0), (0, s.loadItems)(r);
- }).catch(r.status);
- }, "type name", i);
- }).on("update.filebrowser", function() {
- (0, a.loadTree)(p).then(p.status, p.status);
- });
- };
- }, 86774: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.stateListeners = void 0;
- var n = e(64968), m = e(89693), h = e(2074), f = e(66267), d = e(36303);
- t.stateListeners = function() {
- var a = this, s = (0, f.elementsMap)(this), c = this, p = c.state, l = c.files, o = c.create, r = c.options;
- p.on(["change.currentPath", "change.currentSource"], this.async.debounce(function() {
- a.o.saveStateInStorage && a.o.saveStateInStorage.storeLastOpenedFolder && a.storage.set("currentPath", a.state.currentPath).set("currentSource", a.state.currentSource), (0, d.loadTree)(a).catch(a.status);
- }, this.defaultTimeout)).on("beforeChange.activeElements", function() {
- p.activeElements.forEach(function(i) {
- var u = s[i.uniqueHashKey].elm;
- u && u.classList.remove(l.getFullElName("item", "active", !0));
- });
- }).on("change.activeElements", function() {
- a.e.fire("changeSelection"), p.activeElements.forEach(function(i) {
- var u = s[i.uniqueHashKey].elm;
- u && u.classList.add(l.getFullElName("item", "active", !0));
- });
- }).on("change.view", function() {
- l.setMod("view", p.view), a.o.saveStateInStorage && a.o.saveStateInStorage.storeView && a.storage.set("view", p.view);
- }).on("change.sortBy", function() {
- a.o.saveStateInStorage && a.o.saveStateInStorage.storeSortBy && a.storage.set("sortBy", p.sortBy);
- }).on("change.elements", this.async.debounce(function() {
- n.Dom.detach(l.container), p.elements.length ? p.elements.forEach(function(i) {
- a.files.container.appendChild(function(u) {
- var v = u.uniqueHashKey;
- if (s[v]) return s[v].elm;
- var y = o.fromHTML(r.getThumbTemplate.call(a, u, u.source, u.sourceName.toString()));
- return y.dataset.key = v, s[v] = { item: u, elm: y }, s[v].elm;
- }(i));
- }) : l.container.appendChild(o.div(a.componentName + "_no-files_true", a.i18n("There are no files")));
- }, this.defaultTimeout)).on("change.sources", this.async.debounce(function() {
- n.Dom.detach(a.tree.container), p.sources.forEach(function(i) {
- var u = i.name;
- if (u && u !== "default" && a.tree.container.appendChild(o.div(a.tree.getFullElName("source-title"), u)), i.folders.forEach(function(y) {
- var g, b = o.a(a.tree.getFullElName("item"), { draggable: "draggable", href: "#", "data-path": (0, m.normalizePath)(i.path, y + "/"), "data-name": y, "data-source": u, "data-source-path": i.path }, o.span(a.tree.getFullElName("item-title"), y)), w = function(C) {
- return function(S) {
- a.e.fire("".concat(C, ".filebrowser"), { name: y, path: (0, m.normalizePath)(i.path + "/"), source: u }), S.stopPropagation(), S.preventDefault();
- };
- };
- a.e.on(b, "click", w("openFolder")), a.tree.container.appendChild(b), y !== ".." && y !== "." && (r.renameFolder && a.dataProvider.canI("FolderRename") && ((g = (0, h.Button)(a, { icon: { name: "pencil" }, name: "rename", tooltip: "Rename", size: "tiny" })).onAction(w("renameFolder")), b.appendChild(g.container)), r.deleteFolder && a.dataProvider.canI("FolderRemove") && ((g = (0, h.Button)(a, { icon: { name: "cancel" }, name: "remove", tooltip: "Delete", size: "tiny" })).onAction(w("removeFolder")), b.appendChild(g.container)));
- }), r.createNewFolder && a.dataProvider.canI("FolderCreate")) {
- var v = (0, h.Button)(a, "plus", "Add folder", "secondary");
- v.onAction(function() {
- a.e.fire("addFolder", { path: (0, m.normalizePath)(i.path + "/"), source: u });
- }), a.tree.append(v);
- }
- });
- }, this.defaultTimeout));
- };
- }, 21505: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.FileBrowserFiles = void 0;
- var n = e(20255);
- e(27452);
- var m = function(h) {
- function f() {
- return h !== null && h.apply(this, arguments) || this;
- }
- return n.__extends(f, h), f.prototype.className = function() {
- return "FilebrowserFiles";
- }, f;
- }(e(2074).UIGroup);
- t.FileBrowserFiles = m;
- }, 98782: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(21505), t), n.__exportStar(e(42472), t);
- }, 42472: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.FileBrowserTree = void 0;
- var n = e(20255);
- e(51422);
- var m = function(h) {
- function f() {
- return h !== null && h.apply(this, arguments) || this;
- }
- return n.__extends(f, h), f.prototype.className = function() {
- return "FilebrowserTree";
- }, f;
- }(e(2074).UIGroup);
- t.FileBrowserTree = m;
- }, 3107: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Command = void 0;
- var e = function() {
- function n(m, h, f, d) {
- this.oldValue = m, this.newValue = h, this.history = f, this.tick = d;
- }
- return n.prototype.undo = function() {
- this.history.snapshot.restore(this.oldValue);
- }, n.prototype.redo = function() {
- this.history.snapshot.restore(this.newValue);
- }, n;
- }();
- t.Command = e;
- }, 15432: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.History = void 0;
- var n = e(20255), m = e(93166), h = e(56562), f = e(31648), d = e(3621), a = e(3107), s = e(43441);
- m.Config.prototype.history = { enable: !0, maxHistoryLength: 1 / 0, timeout: 1e3 }, m.Config.prototype.observer = m.Config.prototype.history;
- var c = function(p) {
- function l(o, r, i) {
- r === void 0 && (r = new d.Stack(o.o.history.maxHistoryLength)), i === void 0 && (i = new f.Snapshot(o));
- var u = p.call(this, o) || this;
- return u.updateTick = 0, u.__stack = r, u.snapshot = i, o.o.history.enable && o.e.on("afterAddPlace.history", function() {
- u.isInDestruct || (u.startValue = u.snapshot.make(), o.events.on("internalChange internalUpdate", function() {
- u.startValue = u.snapshot.make();
- }).on(o.editor, ["changeSelection", "selectionstart", "selectionchange", "mousedown", "mouseup", "keydown", "keyup"].map(function(v) {
- return v + ".history";
- }).join(" "), function() {
- u.startValue.html === u.j.getNativeEditorValue() && (u.startValue = u.snapshot.make());
- }).on(u, "change.history", u.onChange));
- }), u;
- }
- return n.__extends(l, p), l.prototype.className = function() {
- return "History";
- }, Object.defineProperty(l.prototype, "startValue", { get: function() {
- return this.__startValue;
- }, set: function(o) {
- this.__startValue = o;
- }, enumerable: !1, configurable: !0 }), l.prototype.__upTick = function() {
- this.updateTick += 1;
- }, l.prototype.onChange = function() {
- this.__processChanges();
- }, l.prototype.__processChanges = function() {
- !this.snapshot.isBlocked && this.j.o.history.enable && this.updateStack();
- }, l.prototype.updateStack = function(o) {
- o === void 0 && (o = !1);
- var r = this.snapshot.make();
- if (!f.Snapshot.equal(r, this.startValue)) {
- var i = new a.Command(this.startValue, r, this, this.updateTick);
- if (o) {
- var u = this.__stack.current();
- u && this.updateTick === u.tick && this.__stack.replace(i);
- } else this.__stack.push(i);
- this.startValue = r, this.fireChangeStack();
- }
- }, l.prototype.redo = function() {
- this.__stack.redo() && (this.startValue = this.snapshot.make(), this.fireChangeStack());
- }, l.prototype.canRedo = function() {
- return this.__stack.canRedo();
- }, l.prototype.undo = function() {
- this.__stack.undo() && (this.startValue = this.snapshot.make(), this.fireChangeStack());
- }, l.prototype.canUndo = function() {
- return this.__stack.canUndo();
- }, l.prototype.clear = function() {
- this.startValue = this.snapshot.make(), this.__stack.clear(), this.fireChangeStack();
- }, Object.defineProperty(l.prototype, "length", { get: function() {
- return this.__stack.length;
- }, enumerable: !1, configurable: !0 }), l.prototype.fireChangeStack = function() {
- var o;
- this.j && !this.j.isInDestruct && ((o = this.j.events) === null || o === void 0 || o.fire("changeStack"));
- }, l.prototype.destruct = function() {
- this.isInDestruct || (this.j.events && this.j.e.off(".history"), this.snapshot.destruct(), p.prototype.destruct.call(this));
- }, n.__decorate([(0, s.debounce)()], l.prototype, "onChange", null), l;
- }(h.ViewComponent);
- t.History = c;
- }, 31648: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Snapshot = void 0;
- var n = e(20255), m = e(56562), h = e(64968), f = e(86893), d = function(a) {
- function s() {
- var c = a !== null && a.apply(this, arguments) || this;
- return c.__isBlocked = !1, c;
- }
- return n.__extends(s, a), s.prototype.className = function() {
- return "Snapshot";
- }, s.equal = function(c, p) {
- return c.html === p.html && JSON.stringify(c.range) === JSON.stringify(p.range);
- }, s.countNodesBeforeInParent = function(c) {
- if (!c.parentNode) return 0;
- for (var p = c.parentNode.childNodes, l = 0, o = null, r = 0; p.length > r; r += 1) {
- if (!o || this.isIgnoredNode(p[r]) || h.Dom.isText(o) && h.Dom.isText(p[r]) || (l += 1), p[r] === c) return l;
- o = p[r];
- }
- return 0;
- }, s.strokeOffset = function(c, p) {
- for (; h.Dom.isText(c); ) h.Dom.isText(c = c.previousSibling) && c.nodeValue && (p += c.nodeValue.length);
- return p;
- }, s.prototype.calcHierarchyLadder = function(c) {
- var p = [];
- if (!c || !c.parentNode || !h.Dom.isOrContains(this.j.editor, c)) return [];
- for (; c && c !== this.j.editor; ) c && !s.isIgnoredNode(c) && p.push(s.countNodesBeforeInParent(c)), c = c.parentNode;
- return p.reverse();
- }, s.prototype.getElementByLadder = function(c) {
- var p, l = this.j.editor;
- for (p = 0; l && c.length > p; p += 1) l = l.childNodes[c[p]];
- return l;
- }, Object.defineProperty(s.prototype, "isBlocked", { get: function() {
- return this.__isBlocked;
- }, enumerable: !1, configurable: !0 }), s.prototype.__block = function(c) {
- this.__isBlocked = c;
- }, s.prototype.transaction = function(c) {
- this.__block(!0);
- try {
- c();
- } catch (p) {
- }
- this.__block(!1);
- }, s.prototype.make = function() {
- var c = { html: "", range: { startContainer: [], startOffset: 0, endContainer: [], endOffset: 0 } };
- c.html = this.removeJoditSelection(this.j.editor);
- var p = this.j.s.sel;
- if (p && p.rangeCount) {
- var l = p.getRangeAt(0), o = this.calcHierarchyLadder(l.startContainer), r = this.calcHierarchyLadder(l.endContainer), i = s.strokeOffset(l.startContainer, l.startOffset), u = s.strokeOffset(l.endContainer, l.endOffset);
- o.length || l.startContainer === this.j.editor || (i = 0), r.length || l.endContainer === this.j.editor || (u = 0), c.range = { startContainer: o, startOffset: i, endContainer: r, endOffset: u };
- }
- return c;
- }, s.prototype.restore = function(c) {
- var p = this;
- this.transaction(function() {
- var l = p.storeScrollState();
- p.j.getNativeEditorValue() !== c.html && (p.j.value = c.html), p.restoreOnlySelection(c), p.restoreScrollState(l);
- });
- }, s.prototype.storeScrollState = function() {
- return [this.j.ow.scrollY, this.j.editor.scrollTop];
- }, s.prototype.restoreScrollState = function(c) {
- var p = this.j, l = p.ow;
- l.scrollTo(l.scrollX, c[0]), p.editor.scrollTop = c[1];
- }, s.prototype.restoreOnlySelection = function(c) {
- try {
- if (c.range) {
- var p = this.j.ed.createRange();
- p.setStart(this.getElementByLadder(c.range.startContainer), c.range.startOffset), p.setEnd(this.getElementByLadder(c.range.endContainer), c.range.endOffset), this.j.s.selectRange(p);
- }
- } catch (l) {
- this.j.editor.lastChild && this.j.s.setCursorAfter(this.j.editor.lastChild);
- }
- }, s.prototype.destruct = function() {
- this.__block(!1), a.prototype.destruct.call(this);
- }, s.isIgnoredNode = function(c) {
- return h.Dom.isText(c) && !c.nodeValue || h.Dom.isTemporary(c);
- }, s.prototype.removeJoditSelection = function(c) {
- var p = c.cloneNode(!0);
- return p.querySelectorAll("[".concat(f.TEMP_ATTR, "]")).forEach(h.Dom.unwrap), p.innerHTML;
- }, s;
- }(m.ViewComponent);
- t.Snapshot = d;
- }, 3621: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Stack = void 0;
- var e = function() {
- function n(m) {
- this.size = m, this.commands = [], this.stackPosition = -1;
- }
- return Object.defineProperty(n.prototype, "length", { get: function() {
- return this.commands.length;
- }, enumerable: !1, configurable: !0 }), n.prototype.clearRedo = function() {
- this.commands.length = this.stackPosition + 1;
- }, n.prototype.clear = function() {
- this.commands.length = 0, this.stackPosition = -1;
- }, n.prototype.push = function(m) {
- this.clearRedo(), this.commands.push(m), this.stackPosition += 1, this.commands.length > this.size && (this.commands.shift(), this.stackPosition -= 1);
- }, n.prototype.replace = function(m) {
- this.commands[this.stackPosition] = m;
- }, n.prototype.current = function() {
- return this.commands[this.stackPosition];
- }, n.prototype.undo = function() {
- return !!this.canUndo() && (this.commands[this.stackPosition] && this.commands[this.stackPosition].undo(), this.stackPosition -= 1, !0);
- }, n.prototype.redo = function() {
- return !!this.canRedo() && (this.stackPosition += 1, this.commands[this.stackPosition] && this.commands[this.stackPosition].redo(), !0);
- }, n.prototype.canUndo = function() {
- return this.stackPosition >= 0;
- }, n.prototype.canRedo = function() {
- return this.commands.length - 1 > this.stackPosition;
- }, n;
- }();
- t.Stack = e;
- }, 95356: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(77904);
- n.Config.prototype.imageeditor = { min_width: 20, min_height: 20, closeAfterSave: !1, width: "85%", height: "85%", crop: !0, resize: !0, resizeUseRatio: !0, resizeMinWidth: 20, resizeMinHeight: 20, cropUseRatio: !0, cropDefaultWidth: "70%", cropDefaultHeight: "70%" }, m.Icon.set("crop", e(3610)).set("resize", e(56170));
- }, 35503: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.openImageEditor = t.ImageEditor = void 0;
- var n = e(20255);
- e(62820);
- var m = e(93166), h = e(56562), f = e(40332), d = e(64968), a = e(96516), s = e(9249), c = e(43441);
- e(95356);
- var p = "jodit-image-editor", l = "resize", o = "crop", r = function(i) {
- function u(y) {
- var g = i.call(this, y) || this;
- g.resizeUseRatio = !0, g.cropUseRatio = !0, g.clicked = !1, g.start_x = 0, g.start_y = 0, g.top_x = 0, g.top_y = 0, g.width = 0, g.height = 0, g.activeTab = l, g.naturalWidth = 0, g.naturalHeight = 0, g.ratio = 0, g.new_h = 0, g.new_w = 0, g.diff_x = 0, g.diff_y = 0, g.cropBox = { x: 0, y: 0, w: 0, h: 0 }, g.resizeBox = { w: 0, h: 0 }, g.calcCropBox = function() {
- var S = g.crop_box.parentNode, j = 0.8 * S.offsetWidth, E = 0.8 * S.offsetHeight, x = j, k = E, I = g.naturalWidth, M = g.naturalHeight;
- j > I && E > M ? (x = I, k = M) : g.ratio > j / E ? (x = j, k = M * (j / I)) : (x = I * (E / M), k = E), (0, f.css)(g.crop_box, { width: x, height: k });
- }, g.showCrop = function() {
- if (g.cropImage) {
- g.calcCropBox();
- var S = g.cropImage.offsetWidth || g.image.offsetWidth || g.image.naturalWidth;
- g.new_w = v.calcValueByPercent(S, g.o.cropDefaultWidth);
- var j = g.cropImage.offsetHeight || g.image.offsetHeight || g.image.naturalHeight;
- g.new_h = g.cropUseRatio ? g.new_w / g.ratio : v.calcValueByPercent(j, g.o.cropDefaultHeight), (0, f.css)(g.cropHandler, { backgroundImage: "url(" + (0, f.attr)(g.cropImage, "src") + ")", width: g.new_w, height: g.new_h, left: S / 2 - g.new_w / 2, top: j / 2 - g.new_h / 2 }), g.j.e.fire(g.cropHandler, "updatesize");
- }
- }, g.updateCropBox = function() {
- if (g.cropImage) {
- var S = g.cropImage.offsetWidth / g.naturalWidth, j = g.cropImage.offsetHeight / g.naturalHeight;
- g.cropBox.x = (0, f.css)(g.cropHandler, "left") / S, g.cropBox.y = (0, f.css)(g.cropHandler, "top") / j, g.cropBox.w = g.cropHandler.offsetWidth / S, g.cropBox.h = g.cropHandler.offsetHeight / j, g.sizes.textContent = g.cropBox.w.toFixed(0) + "x" + g.cropBox.h.toFixed(0);
- }
- }, g.updateResizeBox = function() {
- g.resizeBox.w = g.image.offsetWidth || g.naturalWidth, g.resizeBox.h = g.image.offsetHeight || g.naturalHeight;
- }, g.setHandlers = function() {
- var S = g, j = (0, f.refs)(g.editor), E = j.widthInput, x = j.heightInput;
- S.j.e.on([S.editor.querySelector(".jodit_bottomright"), S.cropHandler], "mousedown.".concat(p), g.onResizeHandleMouseDown).on(g.j.ow, "resize.".concat(p), function() {
- g.j.e.fire(S.resizeHandler, "updatesize"), S.showCrop(), g.j.e.fire(S.cropHandler, "updatesize");
- }), S.j.e.on((0, f.toArray)(g.editor.querySelectorAll(".".concat(p, "__slider-title"))), "click", g.onTitleModeClick).on([E, x], "input", g.onChangeSizeInput);
- var k = (0, f.refs)(g.editor), I = k.keepAspectRatioResize, M = k.keepAspectRatioCrop;
- I && I.addEventListener("change", function() {
- g.resizeUseRatio = I.checked;
- }), M && M.addEventListener("change", function() {
- g.cropUseRatio = M.checked;
- }), S.j.e.on(S.resizeHandler, "updatesize", function() {
- (0, f.css)(S.resizeHandler, { top: 0, left: 0, width: S.image.offsetWidth || S.naturalWidth, height: S.image.offsetHeight || S.naturalHeight }), g.updateResizeBox();
- }).on(S.cropHandler, "updatesize", function() {
- if (S.cropImage) {
- var T = (0, f.css)(S.cropHandler, "left"), O = (0, f.css)(S.cropHandler, "top"), L = S.cropHandler.offsetWidth, N = S.cropHandler.offsetHeight;
- 0 > T && (T = 0), 0 > O && (O = 0), T + L > S.cropImage.offsetWidth && (L = S.cropImage.offsetWidth - T, S.cropUseRatio && (N = L / S.ratio)), O + N > S.cropImage.offsetHeight && (N = S.cropImage.offsetHeight - O, S.cropUseRatio && (L = N * S.ratio)), (0, f.css)(S.cropHandler, { width: L, height: N, left: T, top: O, backgroundPosition: -T - 1 + "px " + (-O - 1) + "px", backgroundSize: S.cropImage.offsetWidth + "px " + S.cropImage.offsetHeight + "px" }), S.updateCropBox();
- }
- }), Object.values(S.buttons).forEach(function(T) {
- T.onAction(function() {
- var O = { action: S.activeTab, box: S.activeTab === l ? S.resizeBox : S.cropBox };
- switch (T) {
- case S.buttons.saveas:
- S.j.prompt("Enter new name", "Save in new file", function(L) {
- if (!(0, f.trim)(L)) return S.j.alert("The name should not be empty"), !1;
- S.onSave(L, O, S.hide, function(N) {
- S.j.alert(N.message);
- });
- });
- break;
- case S.buttons.save:
- S.onSave(void 0, O, S.hide, function(L) {
- S.j.alert(L.message);
- });
- break;
- case S.buttons.reset:
- S.activeTab === l ? ((0, f.css)(S.image, { width: null, height: null }), E.value = S.naturalWidth.toString(), x.value = S.naturalHeight.toString(), S.j.e.fire(S.resizeHandler, "updatesize")) : S.showCrop();
- }
- });
- });
- }, g.options = y && y.o && y.o.imageeditor ? y.o.imageeditor : m.Config.defaultOptions.imageeditor;
- var b = g.options;
- g.resizeUseRatio = b.resizeUseRatio, g.cropUseRatio = b.cropUseRatio, g.buttons = { reset: (0, a.Button)(g.j, "update", "Reset"), save: (0, a.Button)(g.j, "save", "Save"), saveas: (0, a.Button)(g.j, "save", "Save as ...") }, g.activeTab = b.resize ? l : o, g.editor = (0, s.form)(g.j, g.options);
- var w = (0, f.refs)(g.editor), C = w.cropBox;
- return g.resize_box = w.resizeBox, g.crop_box = C, g.sizes = g.editor.querySelector(".".concat(p, "__area.").concat(p, "__area_crop .jodit-image-editor__sizes")), g.resizeHandler = g.editor.querySelector(".".concat(p, "__resizer")), g.cropHandler = g.editor.querySelector(".".concat(p, "__croper")), g._dialog = g.j.dlg({ buttons: ["fullsize", "dialog.close"] }), g._dialog.setContent(g.editor), g._dialog.setSize(g.o.width, g.o.height), g._dialog.setHeader([g.buttons.reset, g.buttons.save, g.buttons.saveas]), g.setHandlers(), g;
- }
- var v;
- return n.__extends(u, i), v = u, u.prototype.className = function() {
- return "ImageEditor";
- }, u.prototype.onTitleModeClick = function(y) {
- var g = this, b = y.target, w = b == null ? void 0 : b.parentElement;
- if (w) {
- (0, f.$$)(".".concat(p, "__slider,.").concat(p, "__area"), g.editor).forEach(function(S) {
- return S.classList.remove("".concat(p, "_active"));
- }), w.classList.add("".concat(p, "_active")), this.activeTab = (0, f.attr)(w, "-area") || l;
- var C = g.editor.querySelector(".".concat(p, "__area.").concat(p, "__area_") + g.activeTab);
- C && C.classList.add("".concat(p, "_active")), g.activeTab === o && g.showCrop();
- }
- }, u.prototype.onChangeSizeInput = function(y) {
- var g, b = this, w = y.target, C = (0, f.refs)(this.editor), S = C.widthInput, j = C.heightInput, E = (0, f.attr)(w, "data-ref") === "widthInput", x = parseInt(w.value, 10), k = E ? b.o.min_height : b.o.min_width;
- x > (E ? b.o.min_width : b.o.min_height) && ((0, f.css)(b.image, E ? "width" : "height", x), b.resizeUseRatio && (g = Math.round(E ? x / b.ratio : x * b.ratio)) > k && ((0, f.css)(b.image, E ? "height" : "width", g), E ? j.value = g.toString() : S.value = g.toString())), this.j.e.fire(b.resizeHandler, "updatesize");
- }, u.prototype.onResizeHandleMouseDown = function(y) {
- var g = this;
- g.target = y.target, y.preventDefault(), y.stopImmediatePropagation(), g.clicked = !0, g.start_x = y.clientX, g.start_y = y.clientY, g.activeTab === o ? (g.top_x = (0, f.css)(g.cropHandler, "left"), g.top_y = (0, f.css)(g.cropHandler, "top"), g.width = g.cropHandler.offsetWidth, g.height = g.cropHandler.offsetHeight) : (g.width = g.image.offsetWidth, g.height = g.image.offsetHeight), g.j.e.on(this.j.ow, "mousemove", this.onGlobalMouseMove).one(this.j.ow, "mouseup", this.onGlobalMouseUp);
- }, u.prototype.onGlobalMouseUp = function(y) {
- this.clicked && (this.clicked = !1, y.stopImmediatePropagation(), this.j.e.off(this.j.ow, "mousemove", this.onGlobalMouseMove));
- }, u.prototype.onGlobalMouseMove = function(y) {
- var g = this;
- if (g.clicked) {
- var b = (0, f.refs)(this.editor), w = b.widthInput, C = b.heightInput;
- g.diff_x = y.clientX - g.start_x, g.diff_y = y.clientY - g.start_y, g.activeTab === l && g.resizeUseRatio || g.activeTab === o && g.cropUseRatio ? g.diff_x ? (g.new_w = g.width + g.diff_x, g.new_h = Math.round(g.new_w / g.ratio)) : (g.new_h = g.height + g.diff_y, g.new_w = Math.round(g.new_h * g.ratio)) : (g.new_w = g.width + g.diff_x, g.new_h = g.height + g.diff_y), g.activeTab === l ? (g.new_w > g.o.resizeMinWidth && ((0, f.css)(g.image, "width", g.new_w + "px"), w.value = g.new_w.toString()), g.new_h > g.o.resizeMinHeight && ((0, f.css)(g.image, "height", g.new_h + "px"), C.value = g.new_h.toString()), this.j.e.fire(g.resizeHandler, "updatesize")) : (g.target !== g.cropHandler ? (g.top_x + g.new_w > g.cropImage.offsetWidth && (g.new_w = g.cropImage.offsetWidth - g.top_x), g.top_y + g.new_h > g.cropImage.offsetHeight && (g.new_h = g.cropImage.offsetHeight - g.top_y), (0, f.css)(g.cropHandler, { width: g.new_w, height: g.new_h })) : (g.top_x + g.diff_x + g.cropHandler.offsetWidth > g.cropImage.offsetWidth && (g.diff_x = g.cropImage.offsetWidth - g.top_x - g.cropHandler.offsetWidth), (0, f.css)(g.cropHandler, "left", g.top_x + g.diff_x), g.top_y + g.diff_y + g.cropHandler.offsetHeight > g.cropImage.offsetHeight && (g.diff_y = g.cropImage.offsetHeight - g.top_y - g.cropHandler.offsetHeight), (0, f.css)(g.cropHandler, "top", g.top_y + g.diff_y)), this.j.e.fire(g.cropHandler, "updatesize"));
- }
- }, Object.defineProperty(u.prototype, "o", { get: function() {
- return this.options;
- }, enumerable: !1, configurable: !0 }), u.prototype.hide = function() {
- this._dialog.close();
- }, u.prototype.open = function(y, g) {
- var b = this;
- return this.j.async.promise(function(w) {
- var C = (/* @__PURE__ */ new Date()).getTime();
- b.image = b.j.c.element("img"), (0, f.$$)("img,.jodit-icon_loader", b.resize_box).forEach(d.Dom.safeRemove), (0, f.$$)("img,.jodit-icon_loader", b.crop_box).forEach(d.Dom.safeRemove), (0, f.css)(b.cropHandler, "background", "transparent"), b.onSave = g, b.resize_box.appendChild(b.j.c.element("i", { class: "jodit-icon_loader" })), b.crop_box.appendChild(b.j.c.element("i", { class: "jodit-icon_loader" })), /\?/.test(y) ? y += "&_tst=" + C : y += "?_tst=" + C, b.image.setAttribute("src", y), b._dialog.open();
- var S = (0, f.refs)(b.editor), j = S.widthInput, E = S.heightInput, x = function() {
- b.isDestructed || (b.image.removeEventListener("load", x), b.naturalWidth = b.image.naturalWidth, b.naturalHeight = b.image.naturalHeight, j.value = b.naturalWidth.toString(), E.value = b.naturalHeight.toString(), b.ratio = b.naturalWidth / b.naturalHeight, b.resize_box.appendChild(b.image), b.cropImage = b.image.cloneNode(!0), b.crop_box.appendChild(b.cropImage), d.Dom.safeRemove.apply(null, (0, f.$$)(".jodit-icon_loader", b.editor)), b.activeTab === o && b.showCrop(), b.j.e.fire(b.resizeHandler, "updatesize"), b.j.e.fire(b.cropHandler, "updatesize"), b._dialog.setPosition(), b.j.e.fire("afterImageEditor"), w(b._dialog));
- };
- b.image.addEventListener("load", x), b.image.complete && x();
- });
- }, u.prototype.destruct = function() {
- this.isDestructed || (this._dialog && !this._dialog.isInDestruct && this._dialog.destruct(), d.Dom.safeRemove(this.editor), this.j.e && this.j.e.off(this.j.ow, "mousemove", this.onGlobalMouseMove).off(this.j.ow, "mouseup", this.onGlobalMouseUp).off(this.ow, ".".concat(p)).off(".".concat(p)), i.prototype.destruct.call(this));
- }, u.calcValueByPercent = function(y, g) {
- var b, w = g.toString(), C = parseFloat(y.toString());
- return (b = /^[-+]?[0-9]+(px)?$/.exec(w)) ? parseInt(w, 10) : (b = /^([-+]?[0-9.]+)%$/.exec(w)) ? Math.round(C * (parseFloat(b[1]) / 100)) : C || 0;
- }, n.__decorate([c.autobind], u.prototype, "onTitleModeClick", null), n.__decorate([(0, c.debounce)(), c.autobind], u.prototype, "onChangeSizeInput", null), n.__decorate([c.autobind], u.prototype, "onResizeHandleMouseDown", null), n.__decorate([c.autobind], u.prototype, "onGlobalMouseUp", null), n.__decorate([(0, c.throttle)(10)], u.prototype, "onGlobalMouseMove", null), n.__decorate([c.autobind], u.prototype, "hide", null), n.__decorate([c.autobind], u.prototype, "open", null), v = n.__decorate([c.component], u);
- }(h.ViewComponent);
- t.ImageEditor = r, t.openImageEditor = function(i, u, v, y, g, b) {
- var w = this;
- return this.getInstance("ImageEditor", this.o).open(i, function(C, S, j, E) {
- return (0, f.call)(S.action === "resize" ? w.dataProvider.resize : w.dataProvider.crop, v, y, u, C, S.box).then(function(x) {
- x && (j(), g && g());
- }).catch(function(x) {
- E(x), b && b(x);
- });
- });
- };
- }, 9249: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.form = void 0;
- var n = e(2074), m = "jodit-image-editor", h = n.Icon.get.bind(n.Icon), f = function(d, a) {
- return a === void 0 && (a = "jodti-image-editor_active"), d ? a : "";
- };
- t.form = function(d, a) {
- var s = d.i18n.bind(d), c = function(p, l, o) {
- return o === void 0 && (o = !0), `<div class="jodit-form__group">
- <label>`.concat(s(p), `</label>
- <label class='jodit-switcher'>
- <input `).concat(f(o, "checked"), ' data-ref="').concat(l, `" type="checkbox"/>
- <span class="jodit-switcher__slider"></span>
- </label>
- </div>`);
- };
- return d.create.fromHTML('<form class="'.concat(m, ` jodit-properties">
- <div class="jodit-grid jodit-grid_xs-column">
- <div class="jodit_col-lg-3-4 jodit_col-sm-5-5">
- `).concat(a.resize ? '<div class="'.concat(m, "__area ").concat(m, "__area_resize ").concat(m, `_active">
- <div data-ref="resizeBox" class="`).concat(m, `__box"></div>
- <div class="`).concat(m, `__resizer">
- <i class="jodit_bottomright"></i>
- </div>
- </div>`) : "", `
- `).concat(a.crop ? '<div class="'.concat(m, "__area ").concat(m, "__area_crop ").concat(f(!a.resize), `">
- <div data-ref="cropBox" class="`).concat(m, `__box">
- <div class="`).concat(m, `__croper">
- <i class="jodit_bottomright"></i>
- <i class="`).concat(m, `__sizes"></i>
- </div>
- </div>
- </div>`) : "", `
- </div>
- <div class="jodit_col-lg-1-4 jodit_col-sm-5-5">
- `).concat(a.resize ? '<div data-area="resize" class="'.concat(m, "__slider ").concat(m, `_active">
- <div class="`).concat(m, `__slider-title">
- `).concat(h("resize"), `
- `).concat(s("Resize"), `
- </div>
- <div class="`).concat(m, `__slider-content">
- <div class="jodit-form__group">
- <label>
- `).concat(s("Width"), `
- </label>
- <input type="number" data-ref="widthInput" class="jodit-input"/>
- </div>
- <div class="jodit-form__group">
- <label>
- `).concat(s("Height"), `
- </label>
- <input type="number" data-ref="heightInput" class="jodit-input"/>
- </div>
- `).concat(c("Keep Aspect Ratio", "keepAspectRatioResize"), `
- </div>
- </div>`) : "", `
- `).concat(a.crop ? '<div data-area="crop" class="'.concat(m, "__slider ").concat(f(!a.resize), `'">
- <div class="`).concat(m, `__slider-title">
- `).concat(h("crop"), `
- `).concat(s("Crop"), `
- </div>
- <div class="`).concat(m, `__slider-content">
- `).concat(c("Keep Aspect Ratio", "keepAspectRatioCrop"), `
- </div>
- </div>`) : "", `
- </div>
- </div>
- </form>`));
- };
- }, 87837: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.PluginSystem = t.UIMessages = t.Uploader = t.ToolbarCollection = t.ToolbarEditorCollection = t.Table = t.StatusBar = t.CommitStyle = t.Select = t.Snapshot = t.History = t.ImageEditor = t.Helpers = t.ViewWithToolbar = t.View = t.Icon = t.ProgressBar = t.UIBlock = t.UICheckbox = t.UITextArea = t.UIInput = t.UIForm = t.UIList = t.UIGroup = t.UISeparator = t.Popup = t.UIButton = t.UIElement = t.Create = t.Plugin = t.LazyWalker = t.Dom = t.ContextMenu = t.STATUSES = t.ViewComponent = t.Component = t.Async = void 0;
- var n = e(20255);
- n.__exportStar(e(55395), t);
- var m = e(22630);
- Object.defineProperty(t, "Async", { enumerable: !0, get: function() {
- return m.Async;
- } }), n.__exportStar(e(30056), t);
- var h = e(56562);
- Object.defineProperty(t, "Component", { enumerable: !0, get: function() {
- return h.Component;
- } }), Object.defineProperty(t, "ViewComponent", { enumerable: !0, get: function() {
- return h.ViewComponent;
- } }), Object.defineProperty(t, "STATUSES", { enumerable: !0, get: function() {
- return h.STATUSES;
- } });
- var f = e(60403);
- Object.defineProperty(t, "ContextMenu", { enumerable: !0, get: function() {
- return f.ContextMenu;
- } }), n.__exportStar(e(92080), t);
- var d = e(64968);
- Object.defineProperty(t, "Dom", { enumerable: !0, get: function() {
- return d.Dom;
- } }), Object.defineProperty(t, "LazyWalker", { enumerable: !0, get: function() {
- return d.LazyWalker;
- } });
- var a = e(57549);
- Object.defineProperty(t, "Plugin", { enumerable: !0, get: function() {
- return a.Plugin;
- } });
- var s = e(42841);
- Object.defineProperty(t, "Create", { enumerable: !0, get: function() {
- return s.Create;
- } });
- var c = e(2074);
- Object.defineProperty(t, "UIElement", { enumerable: !0, get: function() {
- return c.UIElement;
- } }), Object.defineProperty(t, "UIButton", { enumerable: !0, get: function() {
- return c.UIButton;
- } }), Object.defineProperty(t, "Popup", { enumerable: !0, get: function() {
- return c.Popup;
- } }), Object.defineProperty(t, "UISeparator", { enumerable: !0, get: function() {
- return c.UISeparator;
- } }), Object.defineProperty(t, "UIGroup", { enumerable: !0, get: function() {
- return c.UIGroup;
- } }), Object.defineProperty(t, "UIList", { enumerable: !0, get: function() {
- return c.UIList;
- } }), Object.defineProperty(t, "UIForm", { enumerable: !0, get: function() {
- return c.UIForm;
- } }), Object.defineProperty(t, "UIInput", { enumerable: !0, get: function() {
- return c.UIInput;
- } }), Object.defineProperty(t, "UITextArea", { enumerable: !0, get: function() {
- return c.UITextArea;
- } }), Object.defineProperty(t, "UICheckbox", { enumerable: !0, get: function() {
- return c.UICheckbox;
- } }), Object.defineProperty(t, "UIBlock", { enumerable: !0, get: function() {
- return c.UIBlock;
- } }), Object.defineProperty(t, "ProgressBar", { enumerable: !0, get: function() {
- return c.ProgressBar;
- } }), Object.defineProperty(t, "Icon", { enumerable: !0, get: function() {
- return c.Icon;
- } });
- var p = e(75902);
- Object.defineProperty(t, "View", { enumerable: !0, get: function() {
- return p.View;
- } });
- var l = e(43608);
- Object.defineProperty(t, "ViewWithToolbar", { enumerable: !0, get: function() {
- return l.ViewWithToolbar;
- } }), n.__exportStar(e(63463), t);
- var o = e(40332);
- t.Helpers = o;
- var r = e(35503);
- Object.defineProperty(t, "ImageEditor", { enumerable: !0, get: function() {
- return r.ImageEditor;
- } });
- var i = e(15432);
- Object.defineProperty(t, "History", { enumerable: !0, get: function() {
- return i.History;
- } });
- var u = e(31648);
- Object.defineProperty(t, "Snapshot", { enumerable: !0, get: function() {
- return u.Snapshot;
- } });
- var v = e(2123);
- Object.defineProperty(t, "Select", { enumerable: !0, get: function() {
- return v.Select;
- } }), Object.defineProperty(t, "CommitStyle", { enumerable: !0, get: function() {
- return v.CommitStyle;
- } });
- var y = e(38603);
- Object.defineProperty(t, "StatusBar", { enumerable: !0, get: function() {
- return y.StatusBar;
- } });
- var g = e(25120);
- Object.defineProperty(t, "Table", { enumerable: !0, get: function() {
- return g.Table;
- } });
- var b = e(81698);
- Object.defineProperty(t, "ToolbarEditorCollection", { enumerable: !0, get: function() {
- return b.ToolbarEditorCollection;
- } });
- var w = e(72719);
- Object.defineProperty(t, "ToolbarCollection", { enumerable: !0, get: function() {
- return w.ToolbarCollection;
- } }), n.__exportStar(e(3890), t);
- var C = e(50454);
- Object.defineProperty(t, "Uploader", { enumerable: !0, get: function() {
- return C.Uploader;
- } });
- var S = e(71014);
- Object.defineProperty(t, "UIMessages", { enumerable: !0, get: function() {
- return S.UIMessages;
- } });
- var j = e(44540);
- Object.defineProperty(t, "PluginSystem", { enumerable: !0, get: function() {
- return j.PluginSystem;
- } });
- }, 37762: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIMessage = void 0;
- var n = e(20255), m = e(2074), h = e(11441), f = function(d) {
- function a(s, c) {
- var p = d.call(this, s) || this;
- return p.setMod("active", !0), p.setMod("variant", c.variant), p.container.textContent = c.text, p;
- }
- return n.__extends(a, d), a.prototype.className = function() {
- return "UIMessage";
- }, n.__decorate([h.component], a);
- }(m.UIElement);
- t.UIMessage = f;
- }, 71014: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UIMessages = void 0;
- var n = e(20255);
- e(63421);
- var m = e(26911), h = e(61479), f = e(11441), d = e(46163), a = e(37762), s = function(c) {
- function p(l, o, r) {
- r === void 0 && (r = { defaultTimeout: 3e3, defaultOffset: 5 });
- var i = c.call(this, l) || this;
- return i.__box = o, i.options = r, i.__messages = /* @__PURE__ */ new Set(), i;
- }
- return n.__extends(p, c), p.prototype.className = function() {
- return "UIMessages";
- }, p.prototype.info = function(l, o) {
- this.__message(l, "info", o);
- }, p.prototype.success = function(l, o) {
- this.__message(l, "success", o);
- }, p.prototype.error = function(l, o) {
- this.__message(l, "error", o);
- }, p.prototype.message = function(l, o, r) {
- this.__message(l, o, r);
- }, p.prototype.__message = function(l, o, r) {
- o === void 0 && (o = "info");
- var i = l + ":" + o;
- if (this.__messages.has(i)) this.async.updateTimeout(i, r || this.options.defaultTimeout);
- else {
- this.__box.appendChild(this.container);
- var u = new a.UIMessage(this.j, { text: l, variant: o });
- this.append(u), this.__calcOffsets(), this.__messages.add(i);
- var v = this.__getRemoveCallback(u, i);
- this.j.e.on(u.container, "pointerdown", v), this.async.setTimeout(v, { label: i, timeout: r || this.options.defaultTimeout });
- }
- }, p.prototype.__getRemoveCallback = function(l, o) {
- var r = this, i = function(u) {
- u && u.preventDefault(), l.isInDestruct || (r.async.clearTimeout(o), r.j.e.off(l.container, "pointerdown", i), r.__messages.delete(o), l.setMod("active", !1), r.async.setTimeout(function() {
- r.remove(l), l.destruct(), r.__calcOffsets();
- }, 300));
- };
- return i;
- }, p.prototype.__calcOffsets = function() {
- var l = this, o = 5;
- this.elements.forEach(function(r) {
- (0, m.css)(r.container, "bottom", o + "px"), o += r.container.offsetHeight + l.options.defaultOffset;
- });
- }, n.__decorate([(0, d.watch)(":errorMessage")], p.prototype, "__message", null), n.__decorate([f.component], p);
- }(h.UIGroup);
- t.UIMessages = s;
- }, 38603: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.StatusBar = void 0;
- var n = e(20255);
- e(32115);
- var m = e(56562), h = e(64968), f = e(59829), d = e(43441), a = function(s) {
- function c(p, l) {
- var o = s.call(this, p) || this;
- return o.target = l, o.mods = {}, o.container = p.c.div("jodit-status-bar"), l.appendChild(o.container), o.hide(), o;
- }
- return n.__extends(c, s), c.prototype.className = function() {
- return "StatusBar";
- }, c.prototype.hide = function() {
- this.container.classList.add("jodit_hidden");
- }, c.prototype.show = function() {
- this.container.classList.remove("jodit_hidden");
- }, Object.defineProperty(c.prototype, "isShown", { get: function() {
- return !this.container.classList.contains("jodit_hidden");
- }, enumerable: !1, configurable: !0 }), c.prototype.getHeight = function() {
- var p, l;
- return (l = (p = this.container) === null || p === void 0 ? void 0 : p.offsetHeight) !== null && l !== void 0 ? l : 0;
- }, c.prototype.findEmpty = function(p) {
- p === void 0 && (p = !1);
- for (var l = this.getElms(p ? "item-right" : "item"), o = 0; l.length > o; o += 1) if (!l[o].innerHTML.trim().length) return l[o];
- }, c.prototype.append = function(p, l) {
- var o;
- l === void 0 && (l = !1);
- var r = this.findEmpty(l) || this.j.c.div(this.getFullElName("item"));
- l && r.classList.add(this.getFullElName("item-right")), r.appendChild(p), (o = this.container) === null || o === void 0 || o.appendChild(r), this.j.o.statusbar && this.show(), this.j.e.fire("resize");
- }, c.prototype.destruct = function() {
- this.isInDestruct || (this.setStatus(m.STATUSES.beforeDestruct), h.Dom.safeRemove(this.container), s.prototype.destruct.call(this));
- }, n.__decorate([d.component, (0, d.derive)(f.Mods, f.Elms)], c);
- }(m.ViewComponent);
- t.StatusBar = a;
- }, 25120: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Table = void 0;
- var n = e(20255), m = e(86893), h = e(64968), f = e(40332), d = e(56562), a = e(17332), s = e(43441), c = /* @__PURE__ */ new WeakMap(), p = function(o) {
- function r() {
- var i = o !== null && o.apply(this, arguments) || this;
- return i.selected = /* @__PURE__ */ new Set(), i;
- }
- return n.__extends(r, o), r.prototype.className = function() {
- return "Table";
- }, r.prototype.recalculateStyles = function() {
- var i = (0, a.getContainer)(this.j, r, "style", !0), u = [];
- this.selected.forEach(function(v) {
- var y = (0, f.cssPath)(v);
- y && u.push(y);
- }), i.innerHTML = u.length ? u.join(",") + "{".concat(this.jodit.options.table.selectionCellStyle, "}") : "";
- }, r.prototype.addSelection = function(i) {
- this.selected.add(i), this.recalculateStyles();
- var u = h.Dom.closest(i, "table", this.j.editor);
- if (u) {
- var v = r.selectedByTable.get(u) || /* @__PURE__ */ new Set();
- v.add(i), r.selectedByTable.set(u, v);
- }
- }, r.prototype.removeSelection = function(i) {
- this.selected.delete(i), this.recalculateStyles();
- var u = h.Dom.closest(i, "table", this.j.editor);
- if (u) {
- var v = r.selectedByTable.get(u);
- v && (v.delete(i), v.size || r.selectedByTable.delete(u));
- }
- }, r.prototype.getAllSelectedCells = function() {
- return (0, f.toArray)(this.selected);
- }, r.getSelectedCellsByTable = function(i) {
- var u = r.selectedByTable.get(i);
- return u ? (0, f.toArray)(u) : [];
- }, r.prototype.destruct = function() {
- return this.selected.clear(), o.prototype.destruct.call(this);
- }, r.getRowsCount = function(i) {
- return i.rows.length;
- }, r.getColumnsCount = function(i) {
- return r.formalMatrix(i).reduce(function(u, v) {
- return Math.max(u, v.length);
- }, 0);
- }, r.formalMatrix = function(i, u) {
- for (var v = [[]], y = (0, f.toArray)(i.rows), g = function(S, j) {
- v[j] === void 0 && (v[j] = []);
- for (var E, x, k = S.colSpan, I = S.rowSpan, M = 0; v[j][M]; ) M += 1;
- for (x = 0; I > x; x += 1) for (E = 0; k > E; E += 1) {
- if (v[j + x] === void 0 && (v[j + x] = []), u && u(S, j + x, M + E, k, I) === !1) return !1;
- v[j + x][M + E] = S;
- }
- }, b = 0; y.length > b; b += 1) for (var w = (0, f.toArray)(y[b].cells), C = 0; w.length > C; C += 1) if (g(w[C], b) === !1) return v;
- return v;
- }, r.formalCoordinate = function(i, u, v) {
- v === void 0 && (v = !1);
- var y = 0, g = 0, b = 1, w = 1;
- return r.formalMatrix(i, function(C, S, j, E, x) {
- if (u === C) return y = S, g = j, b = E || 1, w = x || 1, v && (g += (E || 1) - 1, y += (x || 1) - 1), !1;
- }), [y, g, b, w];
- }, r.appendRow = function(i, u, v, y) {
- var g, b;
- if (u) b = u.cloneNode(!0), (0, f.$$)("td,th", u).forEach(function(S) {
- var j = (0, f.attr)(S, "rowspan");
- if (j && parseInt(j, 10) > 1) {
- var E = parseInt(j, 10) - 1;
- (0, f.attr)(S, "rowspan", E > 1 ? E : null);
- }
- }), (0, f.$$)("td,th", b).forEach(function(S) {
- S.innerHTML = "";
- });
- else {
- var w = r.getColumnsCount(i);
- b = y.element("tr");
- for (var C = 0; w > C; C += 1) b.appendChild(y.element("td"));
- }
- v && u && u.nextSibling ? u.parentNode && u.parentNode.insertBefore(b, u.nextSibling) : !v && u ? u.parentNode && u.parentNode.insertBefore(b, u) : (((g = i.getElementsByTagName("tbody")) === null || g === void 0 ? void 0 : g[0]) || i).appendChild(b);
- }, r.removeRow = function(i, u) {
- var v, y = r.formalMatrix(i), g = i.rows[u];
- y[u].forEach(function(b, w) {
- if (v = !1, 0 > u - 1 || y[u - 1][w] !== b) if (y[u + 1] && y[u + 1][w] === b) {
- if (b.parentNode === g && b.parentNode.nextSibling) {
- v = !0;
- for (var C = w + 1; y[u + 1][C] === b; ) C += 1;
- var S = h.Dom.next(b.parentNode, function(E) {
- return h.Dom.isTag(E, "tr");
- }, i);
- S && (y[u + 1][C] ? S.insertBefore(b, y[u + 1][C]) : S.appendChild(b));
- }
- } else h.Dom.safeRemove(b);
- else v = !0;
- if (v && (b.parentNode === g || b !== y[u][w - 1])) {
- var j = b.rowSpan;
- (0, f.attr)(b, "rowspan", j - 1 > 1 ? j - 1 : null);
- }
- }), h.Dom.safeRemove(g);
- }, r.appendColumn = function(i, u, v, y) {
- var g, b = r.formalMatrix(i);
- for ((u === void 0 || 0 > u) && (u = r.getColumnsCount(i) - 1), g = 0; b.length > g; g += 1) {
- var w = y.element("td"), C = b[g][u], S = !1;
- v ? (b[g] && C && u + 1 >= b[g].length || C !== b[g][u + 1]) && (C.nextSibling ? h.Dom.before(C.nextSibling, w) : C.parentNode && C.parentNode.appendChild(w), S = !0) : (0 > u - 1 || b[g][u] !== b[g][u - 1] && b[g][u].parentNode) && (h.Dom.before(b[g][u], w), S = !0), S || (0, f.attr)(b[g][u], "colspan", parseInt((0, f.attr)(b[g][u], "colspan") || "1", 10) + 1);
- }
- }, r.removeColumn = function(i, u) {
- var v, y = r.formalMatrix(i);
- y.forEach(function(g, b) {
- var w = g[u];
- if (v = !1, 0 > u - 1 || y[b][u - 1] !== w ? g.length > u + 1 && y[b][u + 1] === w ? v = !0 : h.Dom.safeRemove(w) : v = !0, v && (0 > b - 1 || w !== y[b - 1][u])) {
- var C = w.colSpan;
- (0, f.attr)(w, "colspan", C - 1 > 1 ? (C - 1).toString() : null);
- }
- });
- }, r.getSelectedBound = function(i, u) {
- var v, y, g, b = [[1 / 0, 1 / 0], [0, 0]], w = r.formalMatrix(i);
- for (v = 0; w.length > v; v += 1) for (y = 0; w[v] && w[v].length > y; y += 1) u.includes(w[v][y]) && (b[0][0] = Math.min(v, b[0][0]), b[0][1] = Math.min(y, b[0][1]), b[1][0] = Math.max(v, b[1][0]), b[1][1] = Math.max(y, b[1][1]));
- for (v = b[0][0]; b[1][0] >= v; v += 1) for (g = 1, y = b[0][1]; b[1][1] >= y; y += 1) {
- for (; w[v] && w[v][y - g] && w[v][y] === w[v][y - g]; ) b[0][1] = Math.min(y - g, b[0][1]), b[1][1] = Math.max(y - g, b[1][1]), g += 1;
- for (g = 1; w[v] && w[v][y + g] && w[v][y] === w[v][y + g]; ) b[0][1] = Math.min(y + g, b[0][1]), b[1][1] = Math.max(y + g, b[1][1]), g += 1;
- for (g = 1; w[v - g] && w[v][y] === w[v - g][y]; ) b[0][0] = Math.min(v - g, b[0][0]), b[1][0] = Math.max(v - g, b[1][0]), g += 1;
- for (g = 1; w[v + g] && w[v][y] === w[v + g][y]; ) b[0][0] = Math.min(v + g, b[0][0]), b[1][0] = Math.max(v + g, b[1][0]), g += 1;
- }
- return b;
- }, r.normalizeTable = function(i) {
- var u, v, y, g, b = [], w = r.formalMatrix(i);
- for (v = 0; w[0].length > v; v += 1) {
- for (y = 1e6, g = !1, u = 0; w.length > u; u += 1) if (w[u][v] !== void 0) {
- if (2 > w[u][v].colSpan) {
- g = !0;
- break;
- }
- y = Math.min(y, w[u][v].colSpan);
- }
- if (!g) for (u = 0; w.length > u; u += 1) w[u][v] !== void 0 && r.mark(w[u][v], "colspan", w[u][v].colSpan - y + 1, b);
- }
- for (u = 0; w.length > u; u += 1) {
- for (y = 1e6, g = !1, v = 0; w[u].length > v; v += 1) if (w[u][v] !== void 0) {
- if (2 > w[u][v].rowSpan) {
- g = !0;
- break;
- }
- y = Math.min(y, w[u][v].rowSpan);
- }
- if (!g) for (v = 0; w[u].length > v; v += 1) w[u][v] !== void 0 && r.mark(w[u][v], "rowspan", w[u][v].rowSpan - y + 1, b);
- }
- for (u = 0; w.length > u; u += 1) for (v = 0; w[u].length > v; v += 1) w[u][v] !== void 0 && (w[u][v].hasAttribute("rowspan") && w[u][v].rowSpan === 1 && (0, f.attr)(w[u][v], "rowspan", null), w[u][v].hasAttribute("colspan") && w[u][v].colSpan === 1 && (0, f.attr)(w[u][v], "colspan", null), w[u][v].hasAttribute("class") && !(0, f.attr)(w[u][v], "class") && (0, f.attr)(w[u][v], "class", null));
- r.unmark(b);
- }, r.mergeSelected = function(i, u) {
- var v, y = [], g = r.getSelectedBound(i, r.getSelectedCellsByTable(i)), b = 0, w = null, C = 0, S = 0, j = 0, E = /* @__PURE__ */ new Set(), x = [];
- g && (g[0][0] - g[1][0] || g[0][1] - g[1][1]) && (r.formalMatrix(i, function(k, I, M, T, O) {
- if (!(g[0][0] > I || I > g[1][0] || g[0][1] > M || M > g[1][1])) {
- if (E.has(v = k)) return;
- E.add(v), I === g[0][0] && v.style.width && (b += v.offsetWidth), (0, f.trim)(k.innerHTML.replace(/<br(\/)?>/g, "")) !== "" && y.push(k.innerHTML), T > 1 && (S += T - 1), O > 1 && (j += O - 1), w ? (r.mark(v, "remove", 1, x), l(u).removeSelection(v)) : (w = k, C = M);
- }
- }), S = g[1][1] - g[0][1] + 1, j = g[1][0] - g[0][0] + 1, w && (S > 1 && r.mark(w, "colspan", S, x), j > 1 && r.mark(w, "rowspan", j, x), b && (r.mark(w, "width", (b / i.offsetWidth * 100).toFixed(m.ACCURACY) + "%", x), C && r.setColumnWidthByDelta(i, C, 0, !0, x)), w.innerHTML = y.join("<br/>"), l(u).addSelection(w), E.delete(w), r.unmark(x), r.normalizeTable(i), (0, f.toArray)(i.rows).forEach(function(k, I) {
- k.cells.length || h.Dom.safeRemove(k);
- })));
- }, r.splitHorizontal = function(i, u) {
- var v, y, g, b, w, C = [];
- r.getSelectedCellsByTable(i).forEach(function(S) {
- (y = u.createInside.element("td")).appendChild(u.createInside.element("br")), g = u.createInside.element("tr"), v = r.formalCoordinate(i, S), 2 > S.rowSpan ? (r.formalMatrix(i, function(j, E, x) {
- v[0] === E && v[1] !== x && j !== S && r.mark(j, "rowspan", j.rowSpan + 1, C);
- }), h.Dom.after(h.Dom.closest(S, "tr", i), g), g.appendChild(y)) : (r.mark(S, "rowspan", S.rowSpan - 1, C), r.formalMatrix(i, function(j, E, x) {
- E > v[0] && v[0] + S.rowSpan > E && v[1] > x && j.parentNode.rowIndex === E && (w = j), E > v[0] && j === S && (b = i.rows[E]);
- }), w ? h.Dom.after(w, y) : b.insertBefore(y, b.firstChild)), S.colSpan > 1 && r.mark(y, "colspan", S.colSpan, C), r.unmark(C), l(u).removeSelection(S);
- }), this.normalizeTable(i);
- }, r.splitVertical = function(i, u) {
- var v, y, g, b = [];
- r.getSelectedCellsByTable(i).forEach(function(w) {
- v = r.formalCoordinate(i, w), 2 > w.colSpan ? r.formalMatrix(i, function(S, j, E) {
- v[1] === E && v[0] !== j && S !== w && r.mark(S, "colspan", S.colSpan + 1, b);
- }) : r.mark(w, "colspan", w.colSpan - 1, b), (y = u.createInside.element("td")).appendChild(u.createInside.element("br")), w.rowSpan > 1 && r.mark(y, "rowspan", w.rowSpan, b);
- var C = w.offsetWidth;
- h.Dom.after(w, y), r.mark(w, "width", (100 * (g = C / i.offsetWidth / 2)).toFixed(m.ACCURACY) + "%", b), r.mark(y, "width", (100 * g).toFixed(m.ACCURACY) + "%", b), r.unmark(b), l(u).removeSelection(w);
- }), r.normalizeTable(i);
- }, r.setColumnWidthByDelta = function(i, u, v, y, g) {
- for (var b = r.formalMatrix(i), w = 0, C = 0; b.length > C; C += 1) if (1 >= (S = b[C][u]).colSpan || 1 >= b.length) {
- r.mark(S, "width", ((S.offsetWidth + v) / i.offsetWidth * 100).toFixed(m.ACCURACY) + "%", g), w = C;
- break;
- }
- for (C = w + 1; b.length > C; C += 1) {
- var S;
- r.mark(S = b[C][u], "width", null, g);
- }
- y || r.unmark(g);
- }, r.mark = function(i, u, v, y) {
- var g;
- y.push(i);
- var b = (g = c.get(i)) !== null && g !== void 0 ? g : {};
- b[u] = v === void 0 ? 1 : v, c.set(i, b);
- }, r.unmark = function(i) {
- i.forEach(function(u) {
- var v = c.get(u);
- v && (Object.keys(v).forEach(function(y) {
- var g = v[y];
- switch (y) {
- case "remove":
- h.Dom.safeRemove(u);
- break;
- case "rowspan":
- (0, f.attr)(u, "rowspan", (0, f.isNumber)(g) && g > 1 ? g : null);
- break;
- case "colspan":
- (0, f.attr)(u, "colspan", (0, f.isNumber)(g) && g > 1 ? g : null);
- break;
- case "width":
- g == null ? (u.style.removeProperty("width"), (0, f.attr)(u, "style") || (0, f.attr)(u, "style", null)) : u.style.width = g.toString();
- }
- delete v[y];
- }), c.delete(u));
- });
- }, r.selectedByTable = /* @__PURE__ */ new WeakMap(), n.__decorate([(0, s.debounce)()], r.prototype, "recalculateStyles", null), r;
- }(d.ViewComponent);
- t.Table = p;
- var l = function(o) {
- return o.getInstance("Table", o.o);
- };
- }, 48197: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarButton = void 0;
- var n = e(20255);
- e(53362);
- var m = e(96516), h = e(43441), f = e(64968), d = e(12680), a = e(81438), s = e(40332), c = e(77904), p = e(72719), l = e(29411), o = e(38546), r = function(i) {
- function u(v, y, g) {
- g === void 0 && (g = null);
- var b = i.call(this, v) || this;
- return b.control = y, b.target = g, b.state = n.__assign(n.__assign({}, (0, m.UIButtonState)()), { theme: "toolbar", currentValue: "", hasTrigger: !1 }), b.openedPopup = null, v.e.on([b.button, b.trigger], "mousedown", function(w) {
- return w.preventDefault();
- }), b.onAction(b.onClick), b.hookStatus(l.STATUSES.ready, function() {
- b.initFromControl(), b.initTooltip(), b.update();
- }), y.mods && Object.keys(y.mods).forEach(function(w) {
- y.mods && b.setMod(w, y.mods[w]);
- }), b;
- }
- return n.__extends(u, i), u.prototype.className = function() {
- return "ToolbarButton";
- }, Object.defineProperty(u.prototype, "toolbar", { get: function() {
- return this.closest(p.ToolbarCollection);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(u.prototype, "button", { get: function() {
- return this.container.querySelector("button.".concat(this.componentName, "__button"));
- }, enumerable: !1, configurable: !0 }), u.prototype.update = function() {
- var v = this.control, y = this.state, g = this.closest(p.ToolbarCollection);
- y.disabled = this.calculateDisabledStatus(g), y.activated = this.calculateActivatedStatus(g), (0, s.isFunction)(v.update) && g && v.update(this, g.jodit), i.prototype.update.call(this);
- }, u.prototype.calculateActivatedStatus = function(v) {
- return !((0, s.isJoditObject)(this.j) && !this.j.editorIsActive) && (!(!(0, s.isFunction)(this.control.isActive) || !this.control.isActive(this.j, this.control, this)) || !!(v && v.shouldBeActive(this)));
- }, u.prototype.calculateDisabledStatus = function(v) {
- return !!this.j.o.disabled || !(!this.j.o.readonly || this.j.o.activeButtonsInReadOnly && this.j.o.activeButtonsInReadOnly.includes(this.control.name)) || !(!(0, s.isFunction)(this.control.isDisabled) || !this.control.isDisabled(this.j, this.control, this)) || !!(v && v.shouldBeDisabled(this));
- }, u.prototype.onChangeActivated = function() {
- (0, s.attr)(this.button, "aria-pressed", this.state.activated), i.prototype.onChangeActivated.call(this);
- }, u.prototype.onChangeText = function() {
- (0, s.isFunction)(this.control.template) ? this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text)) : i.prototype.onChangeText.call(this), this.setMod("text-icons", !!this.text.innerText.trim().length);
- }, u.prototype.onChangeTabIndex = function() {
- (0, s.attr)(this.button, "tabindex", this.state.tabIndex);
- }, u.prototype.onChangeTooltip = function() {
- (0, s.attr)(this.button, "aria-label", this.state.tooltip), i.prototype.onChangeTooltip.call(this);
- }, u.prototype.createContainer = function() {
- var v = this.componentName, y = this.j.c.span(v), g = i.prototype.createContainer.call(this);
- return (0, s.attr)(y, "role", "listitem"), g.classList.remove(v), g.classList.add(v + "__button"), Object.defineProperty(g, "component", { value: this }), y.appendChild(g), this.trigger = this.j.c.fromHTML('<span role="trigger" class="'.concat(v, '__trigger">').concat(c.Icon.get("chevron"), "</span>")), y;
- }, u.prototype.focus = function() {
- var v;
- (v = this.container.querySelector("button")) === null || v === void 0 || v.focus();
- }, u.prototype.onChangeHasTrigger = function() {
- this.state.hasTrigger ? this.container.appendChild(this.trigger) : f.Dom.safeRemove(this.trigger), this.setMod("with-trigger", this.state.hasTrigger || null);
- }, u.prototype.onChangeDisabled = function() {
- var v = this.state.disabled ? "disabled" : null;
- (0, s.attr)(this.trigger, "disabled", v), (0, s.attr)(this.button, "disabled", v), (0, s.attr)(this.container, "disabled", v);
- }, u.prototype.initTooltip = function() {
- var v = this;
- this.j.o.textIcons || !this.j.o.showTooltip || this.j.o.useNativeTooltip || this.j.e.off(this.container, "mouseenter mouseleave").on(this.container, "mousemove", function(y) {
- v.state.tooltip && !v.state.disabled && v.j.e.fire("delayShowTooltip", function() {
- return { x: y.clientX + 10, y: y.clientY + 10 };
- }, v.state.tooltip);
- }).on(this.container, "mouseleave", function() {
- v.j.e.fire("hideTooltip");
- });
- }, u.prototype.initFromControl = function() {
- var v, y = this.control, g = this.state;
- this.updateSize(), g.name = y.name;
- var b = this.j.o.textIcons;
- if (b === !0 || (0, s.isFunction)(b) && b(y.name) || y.template) g.icon = (0, m.UIButtonState)().icon, g.text = y.text || y.name;
- else {
- if (y.iconURL) g.icon.iconURL = y.iconURL;
- else {
- var w = y.icon || y.name;
- g.icon.name = c.Icon.exists(w) || !((v = this.j.o.extraIcons) === null || v === void 0) && v[w] ? w : "";
- }
- y.iconURL || g.icon.name || (g.text = y.text || y.name);
- }
- y.tooltip && (g.tooltip = this.j.i18n((0, s.isFunction)(y.tooltip) ? y.tooltip(this.j, y, this) : y.tooltip)), g.hasTrigger = !!(y.list || y.popup && y.exec);
- }, u.prototype.onTriggerClick = function(v) {
- var y, g, b, w = this;
- if (this.openedPopup) this.closePopup();
- else {
- var C = this.control;
- if (v.buffer = { actionTrigger: this }, C.list) return this.openControlList(C);
- if ((0, s.isFunction)(C.popup)) {
- var S = this.openPopup();
- if (S.parentElement = this, this.j.e.fire((0, s.camelCase)("before-".concat(C.name, "-open-popup")), this.target, C, S) !== !1) {
- var j = (b = (g = (y = this.toolbar) === null || y === void 0 ? void 0 : y.getTarget(this)) !== null && g !== void 0 ? g : this.target) !== null && b !== void 0 ? b : null, E = C.popup(this.j, j, C, this.closePopup, this);
- E && S.setContent((0, s.isString)(E) ? this.j.c.fromHTML(E) : E).open(function() {
- return (0, s.position)(w.container);
- }, !1, this.j.o.allowTabNavigation ? this.container : void 0);
- }
- this.j.e.fire((0, s.camelCase)("after-".concat(C.name, "-open-popup")), S.container);
- }
- }
- }, u.prototype.openControlList = function(v) {
- var y, g = this, b = (y = this.jodit.options.controls) !== null && y !== void 0 ? y : {}, w = function(x) {
- return (0, o.findControlType)(x, b);
- }, C = v.list, S = this.openPopup(), j = (0, a.makeCollection)(this.j);
- S.parentElement = this, j.parentElement = S, j.mode = "vertical";
- var E = function(x, k) {
- if ((0, s.isString)(k) && w(k)) return n.__assign({ name: k.toString() }, w(k));
- if ((0, s.isString)(x) && w(x)) return n.__assign(n.__assign({ name: x.toString() }, w(x)), typeof k == "object" ? k : {});
- (function(T) {
- return (0, s.isPlainObject)(T) && "title" in T && "value" in T;
- })(x) && (k = x.value, x = x.title);
- var I = v.childTemplate, M = { name: x.toString(), template: I && function(T, O, L) {
- return I(T, O, L, g);
- }, exec: v.childExec ? function(T, O, L) {
- var N;
- return (N = v.childExec) === null || N === void 0 ? void 0 : N.call(v, T, O, n.__assign(n.__assign({}, L), { parentControl: v }));
- } : v.exec, data: v.data, command: v.command, isActive: v.isChildActive, isDisabled: v.isChildDisabled, mode: v.mode, args: n.__spreadArray(n.__spreadArray([], n.__read(v.args ? v.args : []), !1), [x, k], !1) };
- return (0, s.isString)(k) && (M.text = k), M;
- };
- j.build((0, s.isArray)(C) ? C.map(E) : (0, s.keys)(C, !1).map(function(x) {
- return E(x, C[x]);
- }), this.target), S.setContent(j.container).open(function() {
- return (0, s.position)(g.container);
- }, !1, this.j.o.allowTabNavigation ? this.container : void 0), this.state.activated = !0;
- }, u.prototype.onOutsideClick = function(v) {
- this.openedPopup && (v && f.Dom.isNode(v.target) && (f.Dom.isOrContains(this.container, v.target) || this.openedPopup.isOwnClick(v)) || this.closePopup());
- }, u.prototype.openPopup = function() {
- return this.closePopup(), this.openedPopup = new d.Popup(this.j, !1), this.j.e.on(this.ow, "mousedown touchstart", this.onOutsideClick).on("escape closeAllPopups", this.onOutsideClick), this.openedPopup;
- }, u.prototype.closePopup = function() {
- this.openedPopup && (this.j.e.off(this.ow, "mousedown touchstart", this.onOutsideClick).off("escape closeAllPopups", this.onOutsideClick), this.state.activated = !1, this.openedPopup.close(), this.openedPopup.destruct(), this.openedPopup = null);
- }, u.prototype.onClick = function(v) {
- var y, g, b, w, C, S, j, E = this.control;
- if ((0, s.isFunction)(E.exec)) {
- var x = (b = (g = (y = this.toolbar) === null || y === void 0 ? void 0 : y.getTarget(this)) !== null && g !== void 0 ? g : this.target) !== null && b !== void 0 ? b : null, k = E.exec(this.j, x, { control: E, originalEvent: v, button: this });
- if (k !== !1 && k !== !0 && ((C = (w = this.j) === null || w === void 0 ? void 0 : w.e) === null || C === void 0 || C.fire("synchro"), this.parentElement && this.parentElement.update(), (j = (S = this.j) === null || S === void 0 ? void 0 : S.e) === null || j === void 0 || j.fire("closeAllPopups afterExec")), k !== !1) return;
- }
- return E.list ? this.openControlList(E) : (0, s.isFunction)(E.popup) ? this.onTriggerClick(v) : void ((E.command || E.name) && ((0, s.call)((0, s.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), E.command || E.name, !1, E.args && E.args[0]), this.j.e.fire("closeAllPopups")));
- }, u.prototype.destruct = function() {
- return this.closePopup(), i.prototype.destruct.call(this);
- }, n.__decorate([(0, h.watch)("state.tooltip")], u.prototype, "onChangeTooltip", null), n.__decorate([(0, h.watch)("state.hasTrigger")], u.prototype, "onChangeHasTrigger", null), n.__decorate([(0, h.watch)("trigger:click")], u.prototype, "onTriggerClick", null), n.__decorate([h.autobind], u.prototype, "onOutsideClick", null), n.__decorate([h.autobind], u.prototype, "closePopup", null), n.__decorate([h.component], u);
- }(m.UIButton);
- t.ToolbarButton = r;
- }, 34375: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarContent = void 0;
- var n = e(20255);
- e(48904);
- var m = e(96516), h = e(64968), f = e(40332), d = e(43441), a = function(s) {
- function c(p, l, o) {
- o === void 0 && (o = null);
- var r = s.call(this, p) || this;
- return r.control = l, r.target = o, r.container.classList.add("".concat(r.componentName, "_").concat(r.clearName(l.name))), (0, f.attr)(r.container, "role", "content"), r;
- }
- return n.__extends(c, s), c.prototype.className = function() {
- return "ToolbarContent";
- }, c.prototype.update = function() {
- var p = this.control.getContent(this.j, this.control, this);
- ((0, f.isString)(p) || p.parentNode !== this.container) && (h.Dom.detach(this.container), this.container.appendChild((0, f.isString)(p) ? this.j.create.fromHTML(p) : p)), s.prototype.update.call(this);
- }, c.prototype.createContainer = function() {
- return this.j.c.span(this.componentName);
- }, n.__decorate([d.component], c);
- }(m.UIButton);
- t.ToolbarContent = a;
- }, 3890: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(48197), t), n.__exportStar(e(34375), t);
- }, 72719: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarCollection = void 0;
- var n = e(20255);
- e(85796);
- var m = e(40332), h = e(2074), f = e(81438), d = e(43441), a = function(s) {
- function c(p) {
- var l = s.call(this, p) || this;
- return l.__listenEvents = "updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur", l.update = l.j.async.debounce(l.__immediateUpdate, function() {
- return l.j.defaultTimeout;
- }), l.__tooltip = null, l.__initEvents(), l.__tooltip = h.UITooltip.make(p), l;
- }
- return n.__extends(c, s), c.prototype.className = function() {
- return "ToolbarCollection";
- }, Object.defineProperty(c.prototype, "firstButton", { get: function() {
- return n.__read(this.buttons, 1)[0] || null;
- }, enumerable: !1, configurable: !0 }), c.prototype.makeButton = function(p, l) {
- return l === void 0 && (l = null), (0, f.makeButton)(this.j, p, l);
- }, c.prototype.shouldBeActive = function(p) {
- }, c.prototype.shouldBeDisabled = function(p) {
- }, c.prototype.getTarget = function(p) {
- return p.target || null;
- }, c.prototype.__immediateUpdate = function() {
- this.isDestructed || this.j.isLocked || (s.prototype.update.call(this), this.j.e.fire("afterUpdateToolbar"));
- }, c.prototype.setDirection = function(p) {
- this.container.style.direction = p, this.container.setAttribute("dir", p);
- }, c.prototype.__initEvents = function() {
- this.j.e.on(this.__listenEvents, this.update).on("afterSetMode focus", this.__immediateUpdate);
- }, c.prototype.hide = function() {
- this.container.remove();
- }, c.prototype.show = function() {
- this.appendTo(this.j.toolbarContainer);
- }, c.prototype.showInline = function(p) {
- throw (0, m.error)("The method is not implemented for this class.");
- }, c.prototype.build = function(p, l) {
- l === void 0 && (l = null);
- var o = this.j.e.fire("beforeToolbarBuild", p);
- return o && (p = o), s.prototype.build.call(this, p, l), this;
- }, c.prototype.destruct = function() {
- var p;
- this.isDestructed || ((p = this.__tooltip) === null || p === void 0 || p.destruct(), this.j.e.off(this.__listenEvents, this.update).off("afterSetMode focus", this.__immediateUpdate), s.prototype.destruct.call(this));
- }, n.__decorate([d.autobind], c.prototype, "__immediateUpdate", null), n.__decorate([d.component], c);
- }(h.UIList);
- t.ToolbarCollection = a;
- }, 81698: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ToolbarEditorCollection = void 0;
- var n = e(20255), m = e(72719), h = e(86893), f = e(64968), d = e(40332), a = e(43441), s = function(c) {
- function p(l) {
- var o = c.call(this, l) || this;
- return o.checkActiveStatus = function(r, i) {
- var u = 0, v = 0;
- return Object.keys(r).forEach(function(y) {
- var g = r[y];
- (0, d.isFunction)(g) ? g(o.j, (0, d.css)(i, y).toString()) && (u += 1) : g.indexOf((0, d.css)(i, y).toString()) !== -1 && (u += 1), v += 1;
- }), v === u;
- }, o.prependInvisibleInput(o.container), o;
- }
- return n.__extends(p, c), p.prototype.className = function() {
- return "ToolbarEditorCollection";
- }, p.prototype.shouldBeDisabled = function(l) {
- var o = c.prototype.shouldBeDisabled.call(this, l);
- if (o !== void 0) return o;
- var r = l.control.mode === void 0 ? h.MODE_WYSIWYG : l.control.mode;
- return !(r === h.MODE_SPLIT || r === this.j.getRealMode());
- }, p.prototype.shouldBeActive = function(l) {
- var o = this, r = c.prototype.shouldBeActive.call(this, l);
- if (r !== void 0) return r;
- var i = this.j.selection ? this.j.s.current() : null;
- if (!i) return !1;
- if (l.control.tags) {
- var u = l.control.tags;
- if (f.Dom.up(i, function(y) {
- if (y && u.indexOf(y.nodeName.toLowerCase()) !== -1) return !0;
- }, this.j.editor)) return !0;
- }
- if (l.control.css) {
- var v = l.control.css;
- if (f.Dom.up(i, function(y) {
- if (y && !f.Dom.isText(y)) return o.checkActiveStatus(v, y);
- }, this.j.editor)) return !0;
- }
- return !1;
- }, p.prototype.getTarget = function(l) {
- return l.target || this.j.s.current() || null;
- }, p.prototype.prependInvisibleInput = function(l) {
- var o = this.j.create.element("input", { tabIndex: -1, disabled: !0, style: "width: 0; height:0; position: absolute; visibility: hidden;" });
- f.Dom.appendChildFirst(l, o);
- }, p.prototype.showInline = function(l) {
- this.jodit.e.fire("showInlineToolbar", l);
- }, p.prototype.hide = function() {
- this.jodit.e.fire("hidePopup"), c.prototype.hide.call(this), this.jodit.e.fire("toggleToolbar");
- }, p.prototype.show = function() {
- c.prototype.show.call(this), this.jodit.e.fire("toggleToolbar");
- }, n.__decorate([a.component], p);
- }(m.ToolbarCollection);
- t.ToolbarEditorCollection = s;
- }, 81438: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.makeButton = t.makeCollection = void 0;
- var n = e(40332), m = e(72719), h = e(81698), f = e(48197), d = e(34375);
- t.makeCollection = function(a, s) {
- var c = (0, n.isJoditObject)(a) ? new h.ToolbarEditorCollection(a) : new m.ToolbarCollection(a);
- return a.o.textIcons && c.container.classList.add("jodit_text_icons"), s && (c.parentElement = s), a.o.toolbarButtonSize && (c.buttonSize = a.o.toolbarButtonSize), c;
- }, t.makeButton = function(a, s, c) {
- if (c === void 0 && (c = null), (0, n.isFunction)(s.getContent)) return new d.ToolbarContent(a, s, c);
- var p = new f.ToolbarButton(a, s, c);
- return p.state.tabIndex = a.o.allowTabNavigation ? 0 : -1, p;
- };
- }, 36262: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255), m = e(93166), h = e(49781), f = e(77892);
- m.Config.prototype.enableDragAndDropFileToEditor = !0, m.Config.prototype.uploader = { url: "", insertImageAsBase64URI: !1, imagesExtensions: ["jpg", "png", "jpeg", "gif"], headers: null, data: null, filesVariableName: function(d) {
- return "files[".concat(d, "]");
- }, withCredentials: !1, pathVariableName: "path", format: "json", method: "POST", prepareData: function(d) {
- return d;
- }, isSuccess: function(d) {
- return d.success;
- }, getMessage: function(d) {
- return d.data.messages !== void 0 && (0, h.isArray)(d.data.messages) ? d.data.messages.join(" ") : "";
- }, processFileName: function(d, a, s) {
- return [d, a, s];
- }, process: function(d) {
- return d.data;
- }, error: function(d) {
- this.j.e.fire("errorMessage", d.message, "error", 4e3);
- }, getDisplayName: function(d, a) {
- return d + a;
- }, defaultHandlerSuccess: function(d) {
- var a = this, s = this.j || this;
- (0, f.isJoditObject)(s) && d.files && d.files.length && d.files.forEach(function(c, p) {
- var l = n.__read(d.isImages && d.isImages[p] ? ["img", "src"] : ["a", "href"], 2), o = l[0], r = l[1], i = s.createInside.element(o);
- i.setAttribute(r, d.baseurl + c), o === "a" && (i.textContent = s.o.uploader.getDisplayName.call(a, d.baseurl, c)), o === "img" ? s.s.insertImage(i, null, s.o.imageDefaultWidth) : s.s.insertNode(i);
- });
- }, defaultHandlerError: function(d) {
- this.j.e.fire("errorMessage", d.message);
- }, contentType: function(d) {
- return (this.ow.FormData === void 0 || typeof d == "string") && "application/x-www-form-urlencoded; charset=UTF-8";
- } };
- }, 55778: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.buildData = void 0;
- var n = e(40332);
- t.buildData = function(m, h) {
- if ((0, n.isFunction)(m.o.buildData)) return m.o.buildData.call(m, h);
- var f = m.ow.FormData;
- if (f !== void 0) {
- if (h instanceof f || (0, n.isString)(h)) return h;
- var d = new f();
- return Object.keys(h).forEach(function(a) {
- d.append(a, h[a]);
- }), d;
- }
- return h;
- };
- }, 98099: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.dataURItoBlob = void 0, t.dataURItoBlob = function(e) {
- for (var n = atob(e.split(",")[1]), m = e.split(",")[0].split(":")[1].split(";")[0], h = new ArrayBuffer(n.length), f = new Uint8Array(h), d = 0; n.length > d; d += 1) f[d] = n.charCodeAt(d);
- return new Blob([f], { type: m });
- };
- }, 41566: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.hasItems = t.hasFiles = void 0;
- var n = e(20255);
- n.__exportStar(e(32937), t), n.__exportStar(e(98099), t), n.__exportStar(e(55778), t), n.__exportStar(e(30863), t), n.__exportStar(e(20704), t), t.hasFiles = function(m) {
- return !!(m && m.files && m.files.length > 0);
- }, t.hasItems = function(m) {
- return !!(m && m.items && m.items.length > 0);
- };
- }, 32937: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.processOldBrowserDrag = void 0;
- var n = e(86893), m = e(17332), h = e(40332), f = e(64968), d = e(41566);
- t.processOldBrowserDrag = function(a, s, c, p, l) {
- if (s && (!s.types.length || s.types[0] !== n.TEXT_PLAIN)) {
- var o = a.j.c.div("", { tabindex: -1, style: "left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;", contenteditable: !0 });
- (0, m.getContainer)(a.j, a.constructor).appendChild(o);
- var r = (0, h.isJoditObject)(a.j) ? a.j.s.save() : null;
- o.focus(), a.j.async.setTimeout(function() {
- var i = o.firstChild;
- if (f.Dom.safeRemove(o), i && i.hasAttribute("src")) {
- var u = (0, h.attr)(i, "src") || "";
- r && (0, h.isJoditObject)(a.j) && a.j.s.restore(), (0, d.sendFiles)(a, [(0, d.dataURItoBlob)(u)], c, p).finally(l);
- }
- }, a.j.defaultTimeout);
- }
- };
- }, 20704: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.sendFiles = void 0;
- var n = e(20255), m = e(40332), h = e(30863);
- t.sendFiles = function(f, d, a, s, c) {
- if (!d) return Promise.reject((0, m.error)("Need files"));
- var p = f.o, l = (0, m.toArray)(d);
- if (!l.length) return Promise.reject((0, m.error)("Need files"));
- var o = [];
- if (p.insertImageAsBase64URI) {
- var r, i = void 0, u = function() {
- if ((r = l[i]) && r.type) {
- var E = r.type.match(/\/([a-z0-9]+)/i), x = E[1] ? E[1].toLowerCase() : "";
- if (p.imagesExtensions.includes(x)) {
- var k = new FileReader();
- o.push(f.j.async.promise(function(I, M) {
- k.onerror = M, k.onloadend = function() {
- var T = { baseurl: "", files: [k.result], isImages: [!0] };
- ((0, m.isFunction)(a) ? a : p.defaultHandlerSuccess).call(f, T), I(T);
- }, k.readAsDataURL(r);
- })), l[i] = null;
- }
- }
- };
- for (i = 0; l.length > i; i += 1) u();
- }
- if ((l = l.filter(function(E) {
- return E;
- })).length) {
- var v = new FormData();
- v.append(p.pathVariableName, f.path), v.append("source", f.source);
- var y = void 0;
- for (i = 0; l.length > i; i += 1) if (y = l[i]) {
- var g = /\.[\d\w]+$/.test(y.name), b = y.type.match(/\/([a-z0-9]+)/i), w = b && b[1] ? b[1].toLowerCase() : "", C = l[i].name || Math.random().toString().replace(".", "");
- if (!g && w) {
- var S = w;
- ["jpeg", "jpg"].includes(S) && (S = "jpeg|jpg"), new RegExp(".(" + S + ")$", "i").test(C) || (C += "." + w);
- }
- var j = n.__read(p.processFileName.call(f, p.filesVariableName(i), l[i], C), 3);
- v.append(j[0], j[1], j[2]);
- }
- c && c(v), p.data && (0, m.isPlainObject)(p.data) && Object.keys(p.data).forEach(function(E) {
- v.append(E, p.data[E]);
- }), p.prepareData.call(f, v), o.push((0, h.send)(f, v).then(function(E) {
- return p.isSuccess.call(f, E) ? (((0, m.isFunction)(a) ? a : p.defaultHandlerSuccess).call(f, p.process.call(f, E)), E) : (((0, m.isFunction)(s) ? s : p.defaultHandlerError).call(f, (0, m.error)(p.getMessage.call(f, E))), E);
- }).then(function() {
- f.j.events && f.j.e.fire("filesWereUploaded");
- }));
- }
- return Promise.all(o);
- };
- }, 30863: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.send = t.ajaxInstances = void 0;
- var n = e(30056), m = e(40332), h = e(55778);
- t.ajaxInstances = /* @__PURE__ */ new WeakMap(), t.send = function(f, d) {
- var a = (0, h.buildData)(f, d), s = function(c) {
- var p = new n.Ajax({ xhr: function() {
- var o = new XMLHttpRequest();
- return f.j.ow.FormData !== void 0 && o.upload ? (f.j.progressbar.show().progress(10), o.upload.addEventListener("progress", function(r) {
- if (r.lengthComputable) {
- var i = r.loaded / r.total;
- i *= 100, f.j.progressbar.show().progress(i), 100 > i || f.j.progressbar.hide();
- }
- }, !1)) : f.j.progressbar.hide(), o;
- }, method: f.o.method || "POST", data: c, url: (0, m.isFunction)(f.o.url) ? f.o.url(c) : f.o.url, headers: f.o.headers, queryBuild: f.o.queryBuild, contentType: f.o.contentType.call(f, c), withCredentials: f.o.withCredentials || !1 }), l = t.ajaxInstances.get(f);
- return l || (l = /* @__PURE__ */ new Set(), t.ajaxInstances.set(f, l)), l.add(p), f.j.e.one("beforeDestruct", p.destruct), p.send().then(function(o) {
- return o.json();
- }).catch(function(o) {
- f.o.error.call(f, o);
- }).finally(function() {
- p.destruct(), l == null || l.delete(p);
- });
- };
- return (0, m.isPromise)(a) ? a.then(s).catch(function(c) {
- f.o.error.call(f, c);
- }) : s(a);
- };
- }, 50454: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.Uploader = void 0;
- var n = e(20255);
- e(28654);
- var m = e(93166), h = e(86893), f = e(40332), d = e(56562), a = e(41566);
- e(36262);
- var s = function(c) {
- function p(l, o) {
- var r = c.call(this, l) || this;
- return r.path = "", r.source = "default", r.options = (0, f.ConfigProto)(o || {}, (0, f.ConfigProto)(m.Config.defaultOptions.uploader, (0, f.isJoditObject)(l) ? l.o.uploader : {})), r;
- }
- return n.__extends(p, c), Object.defineProperty(p.prototype, "j", { get: function() {
- return this.jodit;
- }, enumerable: !1, configurable: !0 }), p.prototype.className = function() {
- return "Uploader";
- }, Object.defineProperty(p.prototype, "o", { get: function() {
- return this.options;
- }, enumerable: !1, configurable: !0 }), p.prototype.setPath = function(l) {
- return this.path = l, this;
- }, p.prototype.setSource = function(l) {
- return this.source = l, this;
- }, p.prototype.bind = function(l, o, r) {
- var i = function() {
- l.classList.remove("jodit_drag_hover");
- }, u = this, v = function(y) {
- var g, b, w, C = y.clipboardData, S = function(x) {
- b && (x.append("extension", w), x.append("mimetype", b.type));
- };
- if (!h.IS_IE && (0, a.hasFiles)(C)) return (0, a.sendFiles)(u, C.files, o, r).finally(i), !1;
- if (h.IS_IE) return (0, a.processOldBrowserDrag)(u, C, o, r, i);
- if ((0, a.hasItems)(C)) {
- var j = C.items;
- for (g = 0; j.length > g; g += 1) if (j[g].kind === "file" && j[g].type === "image/png") {
- if (b = j[g].getAsFile()) {
- var E = b.type.match(/\/([a-z0-9]+)/i);
- w = E[1] ? E[1].toLowerCase() : "", (0, a.sendFiles)(u, [b], o, r, S).finally(i);
- }
- y.preventDefault();
- break;
- }
- }
- };
- u.j && u.j.editor !== l ? u.j.e.on(l, "paste", v) : u.j.e.on("beforePaste", v), this.attachEvents(l, o, r, i);
- }, p.prototype.attachEvents = function(l, o, r, i) {
- var u = this;
- u.j.e.on(l, "dragend dragover dragenter dragleave drop", function(y) {
- y.preventDefault();
- }).on(l, "dragover", function(y) {
- ((0, a.hasFiles)(y.dataTransfer) || (0, a.hasItems)(y.dataTransfer)) && (l.classList.add("jodit_drag_hover"), y.preventDefault());
- }).on(l, "dragend dragleave", function(y) {
- l.classList.remove("jodit_drag_hover"), (0, a.hasFiles)(y.dataTransfer) && y.preventDefault();
- }).on(l, "drop", function(y) {
- l.classList.remove("jodit_drag_hover"), (0, a.hasFiles)(y.dataTransfer) && (y.preventDefault(), y.stopImmediatePropagation(), (0, a.sendFiles)(u, y.dataTransfer.files, o, r).finally(i));
- });
- var v = l.querySelector("input[type=file]");
- v && u.j.e.on(v, "change", function() {
- (0, a.sendFiles)(u, v.files, o, r).then(function() {
- v.value = "", /safari/i.test(navigator.userAgent) || (v.type = "", v.type = "file");
- }).finally(i);
- });
- }, p.prototype.uploadRemoteImage = function(l, o, r) {
- var i = this, u = i.o, v = (0, f.isFunction)(r) ? r : u.defaultHandlerError;
- (0, a.send)(i, { action: "fileUploadRemote", url: l }).then(function(y) {
- u.isSuccess.call(i, y) ? ((0, f.isFunction)(o) ? o : u.defaultHandlerSuccess).call(i, u.process.call(i, y)) : v.call(i, (0, f.error)(u.getMessage.call(i, y)));
- }).catch(function(y) {
- return v.call(i, y);
- });
- }, p.prototype.destruct = function() {
- this.setStatus(d.STATUSES.beforeDestruct);
- var l = a.ajaxInstances.get(this);
- l && (l.forEach(function(o) {
- try {
- o.destruct();
- } catch (r) {
- }
- }), l.clear()), c.prototype.destruct.call(this);
- }, p;
- }(d.ViewComponent);
- t.Uploader = s;
- }, 75243: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.ColorPickerWidget = void 0, e(60819);
- var n = e(40332), m = e(2074), h = e(64968);
- m.Icon.set("palette", e(95331)), t.ColorPickerWidget = function(f, d, a) {
- var s = "jodit-color-picker", c = (0, n.normalizeColor)(a), p = f.c.div(s), l = f.o.textIcons ? "<span>".concat(f.i18n("palette"), "</span>") : m.Icon.get("palette"), o = function(i) {
- var u = [];
- return (0, n.isPlainObject)(i) ? Object.keys(i).forEach(function(v) {
- u.push('<div class="'.concat(s, "__group ").concat(s, "__group-").concat(v, '">')), u.push(o(i[v])), u.push("</div>");
- }) : (0, n.isArray)(i) && i.forEach(function(v) {
- u.push("<span class='".concat(s, "__color-item ").concat(c === v ? s + "__color-item_active_true" : "", `' title="`).concat(v, '" style="background-color:').concat(v, '" data-color="').concat(v, '"></span>'));
- }), u.join("");
- };
- p.appendChild(f.c.fromHTML('<div class="'.concat(s, '__groups">').concat(o(f.o.colors), "</div>"))), p.appendChild(f.c.fromHTML('<div data-ref="extra" class="'.concat(s, '__extra"></div>')));
- var r = (0, n.refs)(p).extra;
- return f.o.showBrowserColorPicker && (0, n.hasBrowserColorPicker)() && (r.appendChild(f.c.fromHTML('<div class="'.concat(s, '__native">').concat(l, '<input type="color" value="#ffffff"/></div>'))), f.e.on(p, "change", function(i) {
- i.stopPropagation();
- var u = i.target;
- if (u && u.tagName && h.Dom.isTag(u, "input")) {
- var v = u.value || "";
- (0, n.isFunction)(d) && d(v), i.preventDefault();
- }
- })), f.e.on(p, "mousedown touchend", function(i) {
- i.stopPropagation(), i.preventDefault();
- var u = i.target;
- if (u && u.tagName && !h.Dom.isTag(u, "svg") && !h.Dom.isTag(u, "path") || !u.parentNode || (u = h.Dom.closest(u.parentNode, "span", f.editor)), h.Dom.isTag(u, "span") && u.classList.contains(s + "__color-item")) {
- var v = (0, n.attr)(u, "-color") || "";
- d && (0, n.isFunction)(d) && d(v);
- }
- }), f.e.fire("afterGenerateColorPicker", p, r, d, c), p;
- };
- }, 83029: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.FileSelectorWidget = void 0;
- var n = e(40332), m = e(64968), h = e(2074), f = e(60929);
- t.FileSelectorWidget = function(d, a, s, c, p) {
- var l;
- p === void 0 && (p = !0);
- var o = [];
- if (a.upload && d.o.uploader && (d.o.uploader.url || d.o.uploader.insertImageAsBase64URI)) {
- var r = d.c.fromHTML('<div class="jodit-drag-and-drop__file-box">' + "<strong>".concat(d.i18n(p ? "Drop image" : "Drop file"), "</strong>") + "<span><br>".concat(d.i18n("or click"), "</span>") + '<input type="file" accept="'.concat(p ? "image/*" : "*", '" tabindex="-1" dir="auto" multiple=""/>') + "</div>");
- d.uploader.bind(r, function(v) {
- var y = (0, n.isFunction)(a.upload) ? a.upload : d.o.uploader.defaultHandlerSuccess;
- (0, n.isFunction)(y) && y.call(d, v), d.e.fire("closeAllPopups");
- }, function(v) {
- d.e.fire("errorMessage", v.message), d.e.fire("closeAllPopups");
- }), o.push({ icon: "upload", name: "Upload", content: r });
- }
- if (a.filebrowser && (d.o.filebrowser.ajax.url || d.o.filebrowser.items.url) && o.push({ icon: "folder", name: "Browse", content: function() {
- c && c(), a.filebrowser && d.filebrowser.open(a.filebrowser, p);
- } }), a.url) {
- var i = new h.UIButton(d, { type: "submit", variant: "primary", text: "Insert" }), u = new h.UIForm(d, [new h.UIInput(d, { required: !0, label: "URL", name: "url", type: "text", placeholder: "https://" }), new h.UIInput(d, { name: "text", label: "Alternative text" }), new h.UIBlock(d, [i])]);
- l = null, s && !m.Dom.isText(s) && (m.Dom.isTag(s, "img") || (0, n.$$)("img", s).length) && (l = s.tagName === "IMG" ? s : (0, n.$$)("img", s)[0], (0, n.val)(u.container, "input[name=url]", (0, n.attr)(l, "src")), (0, n.val)(u.container, "input[name=text]", (0, n.attr)(l, "alt")), i.state.text = "Update"), s && m.Dom.isTag(s, "a") && ((0, n.val)(u.container, "input[name=url]", (0, n.attr)(s, "href")), (0, n.val)(u.container, "input[name=text]", (0, n.attr)(s, "title")), i.state.text = "Update"), u.onSubmit(function(v) {
- (0, n.isFunction)(a.url) && a.url.call(d, v.url, v.text);
- }), o.push({ icon: "link", name: "URL", content: u.container });
- }
- return (0, f.TabsWidget)(d, o);
- };
- }, 718: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(75243), t), n.__exportStar(e(60929), t), n.__exportStar(e(83029), t);
- }, 60929: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.TabsWidget = void 0, e(96410);
- var n = e(40332), m = e(42096), h = e(2074), f = e(56562), d = e(24263);
- t.TabsWidget = function(a, s, c) {
- var p = a.c.div("jodit-tabs"), l = a.c.div("jodit-tabs__wrapper"), o = a.c.div("jodit-tabs__buttons"), r = {}, i = [], u = "", v = 0;
- p.appendChild(o), p.appendChild(l);
- var y = function(b) {
- r[b] && (i.forEach(function(w) {
- w.state.activated = !1;
- }), (0, n.$$)(".jodit-tab", l).forEach(function(w) {
- w.classList.remove("jodit-tab_active");
- }), r[b].button.state.activated = !0, r[b].tab.classList.add("jodit-tab_active"));
- };
- if (s.forEach(function(b) {
- var w = b.icon, C = b.name, S = b.content, j = a.c.div("jodit-tab"), E = (0, h.Button)(a, w || C, C);
- a.e.on(E.container, "mousedown", function(x) {
- return x.preventDefault();
- }), u || (u = C), o.appendChild(E.container), i.push(E), E.container.classList.add("jodit-tabs__button", "jodit-tabs__button_columns_" + s.length), (0, m.isFunction)(S) ? j.appendChild(a.c.div("jodit-tab_empty")) : j.appendChild(f.Component.isInstanceOf(S, h.UIElement) ? S.container : S), l.appendChild(j), E.onAction(function() {
- return y(C), (0, m.isFunction)(S) && !d.Dom.isElement(S) && S.call(a), c && (c.__activeTab = C), !1;
- }), r[C] = { button: E, tab: j }, v += 1;
- }), !v) return p;
- if ((0, n.$$)("a", o).forEach(function(b) {
- b.style.width = (100 / v).toFixed(10) + "%";
- }), y(c && c.__activeTab && r[c.__activeTab] ? c.__activeTab : u), c) {
- var g = c.__activeTab;
- Object.defineProperty(c, "__activeTab", { configurable: !0, enumerable: !1, get: function() {
- return g;
- }, set: function(b) {
- g = b, y(b);
- } });
- }
- return p;
- };
- }, 55692: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(33126);
- var n = e(93166), m = e(40332), h = e(86893), f = e(17332), d = e(77904);
- n.Config.prototype.controls.about = { exec: function(a) {
- var s = a.dlg(), c = a.i18n.bind(a);
- s.setMod("theme", a.o.theme).setHeader(c("About Jodit")).setContent(`<div class="jodit-about">
- <div>`.concat(c("Jodit Editor"), " v.").concat(a.getVersion(), `</div>
- <div>`).concat(c("License: %s", (0, m.isLicense)(a.o.license) ? (0, m.normalizeLicense)(a.o.license) : "MIT"), `</div>
- <div>
- <a href="`).concat("https://xdsoft.net/jodit/", '" target="_blank">').concat("https://xdsoft.net/jodit/", `</a>
- </div>
- <div>
- <a href="https://xdsoft.net/jodit/doc/" target="_blank">`).concat(c("Jodit User's Guide"), `</a>
- `).concat(c("contains detailed help for using"), `
- </div>
- <div>`).concat(c("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved."), `</div>
- </div>`)), (0, m.css)(s.dialog, { minHeight: 200, minWidth: 420 }), s.open(!0);
- }, tooltip: "About Jodit", mode: h.MODE_SOURCE + h.MODE_WYSIWYG }, f.pluginSystem.add("about", function(a) {
- a.registerButton({ name: "about", group: "info" });
- }), d.Icon.set("about", e(84279));
- }, 66031: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.addNewLine = void 0;
- var n = e(20255);
- e(30724);
- var m = e(87837), h = e(40332), f = e(43441), d = e(17332);
- e(46360);
- var a = "addnewline", s = function(c) {
- function p() {
- var l = c !== null && c.apply(this, arguments) || this;
- return l.line = l.j.c.fromHTML('<div role="button" tabindex="-1" title="'.concat(l.j.i18n("Break"), '" class="jodit-add-new-line"><span>').concat(m.Icon.get("enter"), "</span></div>")), l.isMatchedTag = function(o) {
- return !!(o && l.j.o.addNewLineTagsTriggers.includes(o.nodeName.toLowerCase()));
- }, l.preview = !1, l.lineInFocus = !1, l.isShown = !1, l.hideForce = function() {
- l.isShown && (l.isShown = !1, l.j.async.clearTimeout(l.timeout), l.lineInFocus = !1, m.Dom.safeRemove(l.line), l.line.style.setProperty("--jd-offset-handle", "0"));
- }, l.canGetFocus = function(o) {
- return o != null && m.Dom.isBlock(o) && !/^(img|table|iframe|hr)$/i.test(o.nodeName);
- }, l.onClickLine = function(o) {
- var r = l.j, i = r.createInside.element(r.o.enter);
- l.preview && l.current && l.current.parentNode ? l.current === r.editor ? m.Dom.prepend(r.editor, i) : l.current.parentNode.insertBefore(i, l.current) : r.editor.appendChild(i), r.s.setCursorIn(i), (0, h.scrollIntoViewIfNeeded)(i, r.editor, r.ed), r.synchronizeValues(), l.hideForce(), o.preventDefault();
- }, l;
- }
- return n.__extends(p, c), p.prototype.show = function() {
- this.isShown || this.j.o.readonly || this.j.isLocked || (this.isShown = !0, this.j.async.clearTimeout(this.timeout), this.line.classList.toggle("jodit-add-new-line_after", !this.preview), this.j.container.appendChild(this.line), this.line.style.width = this.j.container.clientWidth + "px");
- }, p.prototype.onLock = function(l) {
- l && this.isShown && this.hideForce();
- }, p.prototype.hide = function() {
- this.isShown && !this.lineInFocus && (this.timeout = this.j.async.setTimeout(this.hideForce, { timeout: 500, label: "add-new-line-hide" }));
- }, p.prototype.afterInit = function(l) {
- var o = this;
- l.o.addNewLine && (l.e.on(this.line, "mousemove", function(r) {
- r.stopPropagation();
- }).on(this.line, "mousedown touchstart", this.onClickLine).on("change", this.hideForce).on(this.line, "mouseenter", function() {
- o.j.async.clearTimeout(o.timeout), o.lineInFocus = !0;
- }).on(this.line, "mouseleave", function() {
- o.lineInFocus = !1;
- }).on("changePlace", this.addEventListeners.bind(this)), this.addEventListeners());
- }, p.prototype.addEventListeners = function() {
- var l = this.j;
- l.e.off(l.editor, "." + a).off(l.container, "." + a).on([l.ow, l.ew, l.editor], "scroll." + a, this.hideForce).on(l.editor, "click." + a, this.hide).on(l.container, "mouseleave." + a, this.hide).on(l.editor, "mousemove." + a, this.onMouseMove);
- }, p.prototype.onDblClickEditor = function(l) {
- var o = this.j;
- if (!o.o.readonly && o.o.addNewLineOnDBLClick && l.target === o.editor && o.s.isCollapsed()) {
- var r = (0, h.offset)(o.editor, o, o.ed), i = l.pageY - o.ew.pageYOffset, u = o.createInside.element(o.o.enter);
- Math.abs(i - r.top) < Math.abs(i - (r.height + r.top)) && o.editor.firstChild ? o.editor.insertBefore(u, o.editor.firstChild) : o.editor.appendChild(u), o.s.setCursorIn(u), o.synchronizeValues(), this.hideForce(), l.preventDefault();
- }
- }, p.prototype.onMouseMove = function(l) {
- var o = this.j, r = o.ed.elementFromPoint(l.clientX, l.clientY);
- if (m.Dom.isHTMLElement(r) && !m.Dom.isOrContains(this.line, r) && m.Dom.isOrContains(o.editor, r)) if (o.editor === r || this.isMatchedTag(r) || (r = m.Dom.closest(r, this.isMatchedTag, o.editor)), r) {
- if (this.isMatchedTag(r)) {
- var i = m.Dom.up(r, m.Dom.isBlock, o.editor);
- i && i !== o.editor && (r = i);
- }
- var u = (0, h.position)(r, this.j), v = !1, y = l.clientY, g = l.clientX;
- if (this.j.iframe) {
- var b = (0, h.position)(this.j.iframe, this.j, !0);
- y += b.top, g += b.left;
- }
- var w = this.j.o.addNewLineDeltaShow;
- Math.abs(y - u.top) > w || (v = u.top, this.preview = !0), Math.abs(y - (u.top + u.height)) > w || (v = u.top + u.height, this.preview = !1), v === !1 || (o.editor !== r || this.preview) && (0, h.call)(this.preview ? m.Dom.prev : m.Dom.next, r, this.canGetFocus, o.editor) ? (this.current = !1, this.hide()) : (this.line.style.top = v + "px", this.current = r, this.show(), this.line.style.setProperty("--jd-offset-handle", g - u.left - 10 + "px"));
- } else this.hide();
- }, p.prototype.beforeDestruct = function() {
- this.j.async.clearTimeout(this.timeout), this.j.e.off(this.line).off("changePlace", this.addEventListeners), m.Dom.safeRemove(this.line), this.j.e.off([this.j.ow, this.j.ew, this.j.editor], "." + a).off(this.j.container, "." + a);
- }, n.__decorate([(0, f.watch)(":lock")], p.prototype, "onLock", null), n.__decorate([f.autobind], p.prototype, "hide", null), n.__decorate([(0, f.watch)(":dblclick")], p.prototype, "onDblClickEditor", null), n.__decorate([(0, f.debounce)(function(l) {
- return 5 * l.defaultTimeout;
- })], p.prototype, "onMouseMove", null), p;
- }(m.Plugin);
- t.addNewLine = s, d.pluginSystem.add("addNewLine", s);
- }, 46360: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(2074);
- n.Config.prototype.addNewLine = !0, n.Config.prototype.addNewLineOnDBLClick = !0, n.Config.prototype.addNewLineTagsTriggers = ["table", "iframe", "img", "hr", "pre", "jodit"], n.Config.prototype.addNewLineDeltaShow = 20, m.Icon.set("enter", e(11257));
- }, 91241: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.backspace = void 0;
- var n = e(20255), m = e(57549), h = e(64968), f = e(86893), d = e(40332), a = e(10109), s = e(17332), c = e(90089), p = e(95441);
- e(48229);
- var l = function(o) {
- function r() {
- var i = o !== null && o.apply(this, arguments) || this;
- return i.requires = ["hotkeys"], i;
- }
- return n.__extends(r, o), r.prototype.afterInit = function(i) {
- var u = this;
- i.e.on("afterCommand.delete", function(v) {
- v === "delete" && u.afterDeleteCommand();
- }), i.registerCommand("deleteButton", { exec: function() {
- return u.onDelete(!1);
- }, hotkeys: i.o.delete.hotkeys.delete }, { stopPropagation: !1 }).registerCommand("backspaceButton", { exec: function() {
- return u.onDelete(!0);
- }, hotkeys: i.o.delete.hotkeys.backspace }, { stopPropagation: !1 }).registerCommand("deleteWordButton", { exec: function() {
- return u.onDelete(!1, "word");
- }, hotkeys: i.o.delete.hotkeys.deleteWord }).registerCommand("backspaceWordButton", { exec: function() {
- return u.onDelete(!0, "word");
- }, hotkeys: i.o.delete.hotkeys.backspaceWord }).registerCommand("deleteSentenceButton", { exec: function() {
- return u.onDelete(!1, "sentence");
- }, hotkeys: i.o.delete.hotkeys.deleteSentence }).registerCommand("backspaceSentenceButton", { exec: function() {
- return u.onDelete(!0, "sentence");
- }, hotkeys: i.o.delete.hotkeys.backspaceSentence });
- }, r.prototype.beforeDestruct = function(i) {
- i.e.off("afterCommand.delete");
- }, r.prototype.afterDeleteCommand = function() {
- var i = this.j, u = i.s.current();
- if (u && h.Dom.isTag(u.firstChild, "br") && i.s.removeNode(u.firstChild), !((0, d.trim)(i.editor.textContent || "") || i.editor.querySelector("img,table,jodit,iframe,hr") || u && h.Dom.closest(u, "table", i.editor))) {
- i.editor.innerHTML = "";
- var v = i.s.setCursorIn(i.editor);
- i.s.removeNode(v);
- }
- }, r.prototype.onDelete = function(i, u) {
- u === void 0 && (u = "char");
- var v = this.j, y = v.selection;
- if (y.isFocused() || y.focus(), (0, p.checkNotCollapsed)(v)) return !1;
- var g = y.range, b = v.createInside.text(f.INVISIBLE_SPACE);
- try {
- if (h.Dom.safeInsertNode(g, b), !h.Dom.isOrContains(v.editor, b)) return;
- if (v.e.fire("backSpaceBeforeCases", i, b) || ((0, a.moveNodeInsideStart)(v, b, i), c.cases.some(function(w) {
- if ((0, d.isFunction)(w) && w(v, b, i, u)) return !0;
- }))) return !1;
- } catch (w) {
- throw w;
- } finally {
- v.e.fire("backSpaceAfterDelete", i, b), this.safeRemoveEmptyNode(b);
- }
- return !1;
- }, r.prototype.safeRemoveEmptyNode = function(i) {
- var u, v, y = this.j.s.range;
- y.startContainer === i && (i.previousSibling ? h.Dom.isText(i.previousSibling) ? y.setStart(i.previousSibling, (v = (u = i.previousSibling.nodeValue) === null || u === void 0 ? void 0 : u.length) !== null && v !== void 0 ? v : 0) : y.setStartAfter(i.previousSibling) : i.nextSibling && (h.Dom.isText(i.nextSibling) ? y.setStart(i.nextSibling, 0) : y.setStartBefore(i.nextSibling)), y.collapse(!0), this.j.s.selectRange(y)), h.Dom.safeRemove(i);
- }, r;
- }(m.Plugin);
- t.backspace = l, s.pluginSystem.add("backspace", l);
- }, 31078: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkJoinNeighbors = void 0;
- var n = e(24263), m = e(30861);
- function h(f, d, a, s) {
- if (d && n.Dom.isElement(a)) {
- n.Dom.moveContent(d, a, !s, (0, m.getMoveFilter)(f));
- for (var c = d; c && c !== f.editor && n.Dom.isEmpty(c); ) {
- var p = c.parentElement;
- n.Dom.safeRemove(c), c = p;
- }
- return !0;
- }
- return !1;
- }
- t.checkJoinNeighbors = function(f, d, a) {
- for (var s = d, c = s; s && !n.Dom.findNotEmptySibling(s, a) && s.parentElement !== f.editor; ) c = s = s.parentElement;
- if (n.Dom.isElement(c) && n.Dom.isContentEditable(c, f.editor)) {
- var p = n.Dom.findNotEmptySibling(c, a);
- if (p && (function(l, o, r, i) {
- var u = n.Dom.isTag(r, ["ol", "ul"]), v = n.Dom.isTag(o, ["ol", "ul"]), y = function(g, b) {
- return b ? g.firstElementChild : g.lastElementChild;
- };
- return v ? (r = l.createInside.element(l.o.enterBlock), n.Dom.before(o, r), h(l, y(o, i), r, i)) : !(!r || !u || v) && h(l, o, y(r, !i), i);
- }(f, c, p, a) || h(f, c, p, a))) return f.s.setCursorBefore(d), !0;
- }
- return !1;
- };
- }, 92156: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkJoinTwoLists = void 0;
- var n = e(24263), m = e(67309), h = e(30861);
- t.checkJoinTwoLists = function(f, d, a) {
- var s = n.Dom.findSibling(d, a), c = n.Dom.findSibling(d, !a);
- if (!n.Dom.closest(d, n.Dom.isElement, f.editor) && n.Dom.isTag(s, ["ul", "ol"]) && n.Dom.isTag(c, ["ul", "ol"]) && n.Dom.isTag(s.lastElementChild, "li") && n.Dom.isTag(c.firstElementChild, "li")) {
- var p = f.s, l = p.setCursorBefore, o = p.setCursorAfter, r = s.lastElementChild;
- return (0, m.call)(a ? n.Dom.prepend : n.Dom.append, c.firstElementChild, d), n.Dom.moveContent(c, s, !a, (0, h.getMoveFilter)(f)), n.Dom.safeRemove(c), (0, m.call)(a ? n.Dom.append : n.Dom.prepend, r, d), (0, m.call)(a ? l : o, d), !0;
- }
- return !1;
- };
- }, 95441: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkNotCollapsed = void 0, t.checkNotCollapsed = function(e) {
- return !e.s.isCollapsed() && (e.execCommand("Delete"), !0);
- };
- }, 13116: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveChar = void 0;
- var n = e(64968), m = e(40332), h = e(86893), f = e(30861);
- t.checkRemoveChar = function d(a, s, c, p) {
- var l, o, r, i, u = c ? -1 : 1, v = n.Dom.sibling(s, !c), y = n.Dom.sibling(s, c), g = null, b = !1, w = function(k) {
- var I = n.Dom.sibling(k, c);
- return !I && k.parentNode && k.parentNode !== a.editor && (I = (0, f.findMostNestedNeighbor)(k, !c, a.editor, !0)), I;
- };
- for (y || (y = w(s)); y && (n.Dom.isText(y) || n.Dom.isInlineBlock(y)); ) {
- for (; n.Dom.isInlineBlock(y); ) y = c ? y == null ? void 0 : y.lastChild : y == null ? void 0 : y.firstChild;
- if (!y) break;
- if (!((l = y.nodeValue) === null || l === void 0) && l.length) {
- var C = (0, m.toArray)(y.nodeValue), S = C.length, j = c ? S - 1 : 0;
- if (C[j] === h.INVISIBLE_SPACE) for (; C[j] === h.INVISIBLE_SPACE; ) j += u;
- if (i = C[j], C[j + u] === h.INVISIBLE_SPACE) {
- for (j += u; C[j] === h.INVISIBLE_SPACE; ) j += u;
- j += c ? 1 : -1;
- }
- if (C = c && 0 > j ? [] : C.slice(c ? 0 : j + 1, c ? j : S), !v || !n.Dom.isText(v) || (c ? /^ / : / $/).test((o = v.nodeValue) !== null && o !== void 0 ? o : "") || !(0, m.trimInv)(v.nodeValue || "").length) for (var E = c ? C.length - 1 : 0; (c ? E >= 0 : C.length > E) && C[E] === " "; E += c ? -1 : 1) C[E] = h.NBSP_SPACE;
- y.nodeValue = C.join("");
- }
- if (!((r = y.nodeValue) === null || r === void 0) && r.length || (g = y), !(0, m.isVoid)(i) && i !== h.INVISIBLE_SPACE) {
- b = !0, (0, m.call)(c ? n.Dom.after : n.Dom.before, y, s), (p === "sentence" || p === "word" && i !== " " && i !== h.NBSP_SPACE) && d(a, s, c, p);
- break;
- }
- var x = w(y);
- g && (n.Dom.safeRemove(g), g = null), y = x;
- }
- return g && (n.Dom.safeRemove(g), g = null), b && (function(k, I) {
- for (var M = k.parentElement; M && n.Dom.isInlineBlock(M) && n.Dom.isTag(M, I); ) {
- var T = M.parentElement;
- n.Dom.isEmpty(M) && (n.Dom.after(M, k), n.Dom.safeRemove(M)), M = T;
- }
- }(s, ["a"]), function(k, I) {
- I.parentElement !== k.editor && n.Dom.isBlock(I.parentElement) && n.Dom.each(I.parentElement, n.Dom.isEmptyTextNode) && n.Dom.after(I, k.createInside.element("br"));
- }(a, s), a.s.setCursorBefore(s), n.Dom.isTag(s.previousSibling, "br") && !n.Dom.findNotEmptySibling(s, !1) && n.Dom.after(s, a.createInside.element("br"))), b;
- };
- }, 74217: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveContentNotEditable = void 0;
- var n = e(64968), m = e(40332), h = e(10109);
- t.checkRemoveContentNotEditable = function(f, d, a) {
- var s = n.Dom.findSibling(d, a);
- return !s && d.parentElement && d.parentElement !== f.editor && (s = n.Dom.findSibling(d.parentElement, a)), !(!n.Dom.isElement(s) || n.Dom.isContentEditable(s, f.editor) || ((0, m.call)(a ? n.Dom.before : n.Dom.after, s, d), n.Dom.safeRemove(s), (0, h.moveNodeInsideStart)(f, d, a), (0, m.call)(a ? f.s.setCursorBefore : f.s.setCursorAfter, d), 0));
- };
- }, 34181: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveEmptyNeighbor = void 0;
- var n = e(24263);
- t.checkRemoveEmptyNeighbor = function(m, h, f) {
- var d = n.Dom.closest(h, n.Dom.isElement, m.editor);
- if (!d) return !1;
- var a = n.Dom.findNotEmptySibling(d, f);
- return !(!a || !n.Dom.isEmpty(a) || (n.Dom.safeRemove(a), m.s.setCursorBefore(h), 0));
- };
- }, 13890: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveEmptyParent = void 0;
- var n = e(64968), m = e(86893), h = e(92156);
- t.checkRemoveEmptyParent = function(f, d, a) {
- var s = !1, c = f.s, p = c.setCursorBefore, l = c.setCursorIn, o = n.Dom.closest(d, n.Dom.isElement, f.editor);
- if (!o || !n.Dom.isEmpty(o)) return !1;
- var r = n.Dom.findNotEmptyNeighbor(d, a, f.editor);
- do {
- if (!o || !n.Dom.isEmpty(o) || n.Dom.isCell(o)) break;
- n.Dom.after(o, d);
- var i = n.Dom.closest(o, function(u) {
- return n.Dom.isElement(u) && u !== o;
- }, f.editor);
- n.Dom.safeRemove(o), s = !0, o = i;
- } while (o);
- return !(!s || !(0, h.checkJoinTwoLists)(f, d, a)) || (!r || n.Dom.isText(r) || n.Dom.isTag(r, m.INSEPARABLE_TAGS) ? p(d) : l(r, !a), s);
- };
- }, 8249: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkRemoveUnbreakableElement = void 0;
- var n = e(24263), m = e(86893), h = e(13890);
- t.checkRemoveUnbreakableElement = function(f, d, a) {
- var s = n.Dom.findSibling(d, a);
- return !(!n.Dom.isElement(s) || !n.Dom.isTag(s, m.INSEPARABLE_TAGS) && !n.Dom.isEmpty(s) || (n.Dom.safeRemove(s), n.Dom.isTag(s, "br") && !n.Dom.findNotEmptySibling(d, !1) && n.Dom.after(d, f.createInside.element("br")), f.s.setCursorBefore(d), n.Dom.isTag(s, "br") && (0, h.checkRemoveEmptyParent)(f, d, a), 0));
- };
- }, 58368: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkTableCell = void 0;
- var n = e(24263);
- t.checkTableCell = function(m, h) {
- return !!n.Dom.isCell(h.parentElement);
- };
- }, 6028: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkUnwrapFirstListItem = void 0;
- var n = e(24263), m = e(76502);
- t.checkUnwrapFirstListItem = function(h, f, d) {
- var a, s = n.Dom.closest(f, n.Dom.isElement, h.editor), c = h.s;
- if (n.Dom.isTag(s, "li") && ((a = s == null ? void 0 : s.parentElement) === null || a === void 0 ? void 0 : a[d ? "firstElementChild" : "lastElementChild"]) === s && c.cursorInTheEdge(d, s)) {
- var p = s.parentElement, l = h.createInside.element(h.o.enterBlock);
- return (0, m.call)(d ? n.Dom.before : n.Dom.after, p, l), n.Dom.moveContent(s, l), n.Dom.safeRemove(s), n.Dom.isEmpty(p) && n.Dom.safeRemove(p), (0, m.call)(d ? c.setCursorBefore : c.setCursorAfter, f), !0;
- }
- return !1;
- };
- }, 90089: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.cases = void 0;
- var n = e(8249), m = e(74217), h = e(13116), f = e(58368), d = e(13890), a = e(34181), s = e(92156), c = e(31078), p = e(6028);
- t.cases = [n.checkRemoveUnbreakableElement, m.checkRemoveContentNotEditable, h.checkRemoveChar, f.checkTableCell, d.checkRemoveEmptyParent, a.checkRemoveEmptyNeighbor, s.checkJoinTwoLists, c.checkJoinNeighbors, p.checkUnwrapFirstListItem];
- }, 48229: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.delete = { hotkeys: { delete: ["delete", "cmd+backspace"], deleteWord: ["ctrl+delete", "cmd+alt+backspace", "ctrl+alt+backspace"], deleteSentence: ["ctrl+shift+delete", "cmd+shift+delete"], backspace: ["backspace"], backspaceWord: ["ctrl+backspace"], backspaceSentence: ["ctrl+shift+backspace", "cmd+shift+backspace"] } };
- }, 30861: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getMoveFilter = t.findMostNestedNeighbor = void 0;
- var n = e(64968);
- t.findMostNestedNeighbor = function(m, h, f, d) {
- d === void 0 && (d = !1);
- var a = function(c) {
- return h ? c.firstChild : c.lastChild;
- }, s = n.Dom.findNotEmptyNeighbor(m, !h, f);
- if (d && n.Dom.isElement(s) && !n.Dom.isInlineBlock(s)) return null;
- if (s) do {
- if (!a(s)) return s;
- s = a(s);
- } while (s);
- return null;
- }, t.getMoveFilter = function(m) {
- return function(h) {
- return m.e.fire("backSpaceIsMovedIgnore", h) !== !0;
- };
- };
- }, 87565: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.bold = void 0;
- var n = e(20255), m = e(93166), h = e(40332), f = e(17332), d = e(77904);
- function a(s) {
- var c = function(p) {
- var l, o = m.Config.defaultOptions.controls[p], r = n.__assign({}, o.css);
- return Object.keys(r).forEach(function(i) {
- l || (l = {}), l[i] = (0, h.isArray)(r[i]) ? r[i][0] : r[i];
- }), s.s.applyStyle(l, { element: o.tags ? o.tags[0] : void 0 }), s.synchronizeValues(), !1;
- };
- ["bold", "italic", "underline", "strikethrough"].forEach(function(p) {
- s.registerButton({ name: p, group: "font-style" });
- }), ["superscript", "subscript"].forEach(function(p) {
- s.registerButton({ name: p, group: "script" });
- }), s.registerCommand("bold", { exec: c, hotkeys: ["ctrl+b", "cmd+b"] }).registerCommand("italic", { exec: c, hotkeys: ["ctrl+i", "cmd+i"] }).registerCommand("underline", { exec: c, hotkeys: ["ctrl+u", "cmd+u"] }).registerCommand("strikethrough", { exec: c }).registerCommand("subscript", { exec: c }).registerCommand("superscript", { exec: c });
- }
- e(58334), e(90740), t.bold = a, f.pluginSystem.add("bold", a), d.Icon.set("bold", e(25141)).set("italic", e(24557)).set("strikethrough", e(10859)).set("subscript", e(9813)).set("superscript", e(93395)).set("underline", e(98213));
- }, 90740: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.controls.subscript = { tags: ["sub"], tooltip: "subscript" }, n.Config.prototype.controls.superscript = { tags: ["sup"], tooltip: "superscript" }, n.Config.prototype.controls.bold = { tagRegExp: /^(strong|b)$/i, tags: ["strong", "b"], css: { "font-weight": ["bold", "700"] }, tooltip: "Bold" }, n.Config.prototype.controls.italic = { tagRegExp: /^(em|i)$/i, tags: ["em", "i"], css: { "font-style": "italic" }, tooltip: "Italic" }, n.Config.prototype.controls.underline = { tagRegExp: /^(u)$/i, tags: ["u"], css: { "text-decoration-line": "underline" }, tooltip: "Underline" }, n.Config.prototype.controls.strikethrough = { tagRegExp: /^(s)$/i, tags: ["s"], css: { "text-decoration-line": "line-through" }, tooltip: "Strike through" };
- }, 58334: function() {
- }, 60894: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.classSpan = void 0;
- var n = e(20255), m = e(57549), h = e(93166), f = e(64968), d = e(40332), a = e(17332), s = e(2074);
- h.Config.prototype.controls.classSpan = { command: "applyClassName", exec: d.memorizeExec, list: ["enabled", "disabled", "activated", "text-left", "text-center", "text-right", "warning", "error"], isChildActive: function(p, l) {
- var o = p.s.current();
- if (o) {
- var r = f.Dom.closest(o, f.Dom.isElement, p.editor) || p.editor;
- return !!(l.args && r.classList.contains(l.args[0].toString()));
- }
- return !1;
- }, isActive: function(p, l) {
- var o = p.s.current();
- if (o) {
- var r = f.Dom.closest(o, f.Dom.isElement, p.editor) || p.editor, i = !1;
- return l.list && Object.keys(l.list).forEach(function(u) {
- r.classList.contains(u) && (i = !0);
- }), !!(r && r !== p.editor && l.list !== void 0 && i);
- }
- return !1;
- }, childTemplate: function(p, l, o) {
- return '<span class="'.concat(l, '">').concat(p.i18n(o), "</span>");
- }, tooltip: "Insert className" };
- var c = function(p) {
- function l() {
- var o = p !== null && p.apply(this, arguments) || this;
- return o.buttons = [{ name: "classSpan", group: "font" }], o;
- }
- return n.__extends(l, p), l.prototype.afterInit = function(o) {
- o.registerCommand("applyClassName", function(r, i, u) {
- return o.s.applyStyle(void 0, { className: u }), !1;
- });
- }, l.prototype.beforeDestruct = function() {
- }, l;
- }(m.Plugin);
- t.classSpan = c, a.pluginSystem.add("classSpan", c), s.Icon.set("class-span", e(20026));
- }, 90302: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.cleanHtml = void 0;
- var n = e(20255), m = e(67128), h = e(85605), f = e(43441), d = e(33841), a = e(17332), s = e(24263), c = e(57713);
- e(98889);
- var p = function(l) {
- function o() {
- var r = l !== null && l.apply(this, arguments) || this;
- return r.buttons = [{ name: "eraser", group: "font-style" }], r.currentSelectionNode = null, r.walker = new d.LazyWalker(r.j.async, { timeout: r.j.o.cleanHTML.timeout }), r;
- }
- return n.__extends(o, l), o.prototype.afterInit = function(r) {
- }, Object.defineProperty(o.prototype, "isEditMode", { get: function() {
- return !(this.j.isInDestruct || !this.j.isEditorMode() || this.j.getReadOnly());
- }, enumerable: !1, configurable: !0 }), o.prototype.onChangeCleanHTML = function() {
- if (this.isEditMode) {
- var r = this.j;
- this.walker.setWork(r.editor), this.currentSelectionNode = r.s.current();
- }
- }, o.prototype.startWalker = function() {
- var r = this, i = this.jodit, u = (0, c.getHash)(this.j.o.cleanHTML.allowTags), v = (0, c.getHash)(this.j.o.cleanHTML.denyTags);
- this.walker.on("visit", function(y) {
- return (0, c.visitNodeWalker)(i, y, u, v, r.currentSelectionNode);
- }).on("end", function(y) {
- r.j.e.fire(y ? "internalChange finishedCleanHTMLWorker" : "finishedCleanHTMLWorker");
- });
- }, o.prototype.beforeCommand = function(r) {
- if (r.toLowerCase() === "removeformat") return this.j.s.isCollapsed() ? (0, c.removeFormatForCollapsedSelection)(this.j) : (0, c.removeFormatForSelection)(this.j), !1;
- }, o.prototype.onBeforeSetNativeEditorValue = function(r) {
- var i = this.j.o.cleanHTML.useIframeSandbox ? this.j.createInside.sandbox() : this.j.createInside.div();
- return i.innerHTML = r.value, this.onSafeHTML(i), r.value = i.innerHTML, (0, m.safeHTML)(i, { safeJavaScriptLink: !0, removeOnError: !0 }), s.Dom.safeRemove(i), !1;
- }, o.prototype.onSafeHTML = function(r) {
- (0, m.safeHTML)(r, this.j.o.cleanHTML);
- }, o.prototype.beforeDestruct = function() {
- this.walker.destruct();
- }, n.__decorate([(0, f.watch)([":change", ":afterSetMode", ":afterInit", ":mousedown", ":keydown"])], o.prototype, "onChangeCleanHTML", null), n.__decorate([(0, f.hook)("ready")], o.prototype, "startWalker", null), n.__decorate([(0, f.watch)(":beforeCommand")], o.prototype, "beforeCommand", null), n.__decorate([(0, f.watch)(":beforeSetNativeEditorValue")], o.prototype, "onBeforeSetNativeEditorValue", null), n.__decorate([(0, f.watch)(":safeHTML")], o.prototype, "onSafeHTML", null), o;
- }(h.Plugin);
- t.cleanHtml = p, a.pluginSystem.add("cleanHtml", p);
- }, 98889: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(77904);
- n.Config.prototype.cleanHTML = { timeout: 300, removeEmptyElements: !0, fillEmptyParagraph: !0, replaceNBSP: !0, replaceOldTags: { i: "em", b: "strong" }, allowTags: !1, denyTags: "script", useIframeSandbox: !1, removeOnError: !0, safeJavaScriptLink: !0, disableCleanFilter: null }, n.Config.prototype.controls.eraser = { command: "removeFormat", tooltip: "Clear Formatting" }, m.Icon.set("eraser", e(66911));
- }, 38655: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getHash = void 0;
- var n = e(33941), m = e(24421);
- t.getHash = function(h) {
- var f = /([^[]*)\[([^\]]+)]/, d = /[\s]*,[\s]*/, a = /^(.*)[\s]*=[\s]*(.*)$/, s = {};
- return (0, m.isString)(h) ? (h.split(d).map(function(c) {
- c = (0, n.trim)(c);
- var p = f.exec(c), l = {};
- if (p) {
- var o = p[2].split(d);
- p[1] && (o.forEach(function(r) {
- r = (0, n.trim)(r);
- var i = a.exec(r);
- i ? l[i[1]] = i[2] : l[r] = !0;
- }), s[p[1].toUpperCase()] = l);
- } else s[c.toUpperCase()] = !0;
- }), s) : !!h && (Object.keys(h).forEach(function(c) {
- s[c.toUpperCase()] = h[c];
- }), s);
- };
- }, 57713: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(38655), t), n.__exportStar(e(72170), t), n.__exportStar(e(87783), t), n.__exportStar(e(88972), t);
- }, 72170: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isInlineBlock = t.removeFormatForCollapsedSelection = void 0;
- var n = e(24263), m = e(86893);
- function h(f) {
- return n.Dom.isInlineBlock(f) && !n.Dom.isTag(f, m.INSEPARABLE_TAGS);
- }
- t.removeFormatForCollapsedSelection = function(f, d) {
- var a = f.s, s = d;
- if (!s) {
- s = f.createInside.fake();
- var c = a.range;
- n.Dom.safeInsertNode(c, s), c.collapse();
- }
- var p = n.Dom.furthest(s, h, f.editor);
- if (p) if (a.cursorOnTheLeft(p)) n.Dom.before(p, s);
- else if (a.cursorOnTheRight(p)) n.Dom.after(p, s);
- else {
- var l = a.splitSelection(p);
- l && n.Dom.after(l, s);
- }
- d || (a.setCursorBefore(s), n.Dom.safeRemove(s));
- }, t.isInlineBlock = h;
- }, 87783: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.removeFormatForSelection = void 0;
- var n = e(24263), m = e(76502), h = e(72170);
- t.removeFormatForSelection = function(f) {
- var d = f.s, a = f.editor, s = f.createInside, c = d.range, p = c.cloneRange(), l = c.cloneRange(), o = s.fake(), r = s.fake();
- p.collapse(!0), l.collapse(!1), n.Dom.safeInsertNode(p, o), n.Dom.safeInsertNode(l, r), c.setStartBefore(o), c.collapse(!0), d.selectRange(c), (0, h.removeFormatForCollapsedSelection)(f, o), c.setEndAfter(r), c.collapse(!1), d.selectRange(c), (0, h.removeFormatForCollapsedSelection)(f, r);
- var i = [];
- n.Dom.between(o, r, function(v) {
- (0, h.isInlineBlock)(v) && !n.Dom.isTag(v, ["a"]) && i.push(v), n.Dom.isElement(v) && (0, m.attr)(v, "style") && (0, m.attr)(v, "style", null);
- }), i.forEach(function(v) {
- return n.Dom.unwrap(v);
- });
- var u = function(v, y) {
- if (!n.Dom.findNotEmptySibling(v, y)) {
- var g = v.parentNode;
- if (g && g !== a && (0, m.attr)(g, "style")) return (0, m.attr)(g, "style", null), u(g, y), !0;
- }
- };
- u(o, !0) && u(r, !1), c.setStartAfter(o), c.setEndBefore(r), d.selectRange(c), n.Dom.safeRemove(o), n.Dom.safeRemove(r);
- };
- }, 9948: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.allowAttributes = void 0;
- var n = e(24263);
- t.allowAttributes = function(m, h, f, d) {
- if (d && n.Dom.isElement(h) && d[h.nodeName] !== !0) {
- var a = h.attributes;
- if (a && a.length) {
- for (var s = [], c = 0; a.length > c; c += 1) {
- var p = d[h.nodeName][a[c].name];
- (!p || p !== !0 && p !== a[c].value) && s.push(a[c].name);
- }
- s.length && (f = !0), s.forEach(function(l) {
- h.removeAttribute(l);
- });
- }
- }
- return f;
- };
- }, 74722: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.fillEmptyParagraph = void 0;
- var n = e(24263), m = e(86893);
- t.fillEmptyParagraph = function(h, f, d) {
- if (h.o.cleanHTML.fillEmptyParagraph && n.Dom.isBlock(f) && n.Dom.isEmpty(f, m.INSEPARABLE_TAGS)) {
- var a = h.createInside.element("br");
- return f.appendChild(a), !0;
- }
- return d;
- };
- }, 2549: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(55901), t), n.__exportStar(e(9948), t), n.__exportStar(e(74722), t), n.__exportStar(e(75096), t), n.__exportStar(e(28194), t), n.__exportStar(e(94254), t), n.__exportStar(e(64701), t);
- }, 28194: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.removeEmptyTextNode = void 0;
- var n = e(24263);
- t.removeEmptyTextNode = function(m, h, f, d, a, s) {
- return n.Dom.isText(h) && !h.nodeValue ? (h === s && m.s.isCollapsed() && m.s.setCursorAfter(h), n.Dom.safeRemove(h), !0) : f;
- };
- }, 94254: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.removeInvTextNodes = void 0;
- var n = e(86893), m = e(24263);
- t.removeInvTextNodes = function(h, f, d, a, s, c) {
- return c !== f && m.Dom.isText(f) && f.nodeValue != null && (0, n.INVISIBLE_SPACE_REG_EXP)().test(f.nodeValue) ? (f.nodeValue = f.nodeValue.replace((0, n.INVISIBLE_SPACE_REG_EXP)(), ""), f === c && h.s.isCollapsed() && h.s.setCursorAfter(f), f.nodeValue || m.Dom.safeRemove(f), !0) : d;
- };
- }, 55901: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.replaceOldTags = void 0;
- var n = e(24263);
- t.replaceOldTags = function(m, h, f) {
- var d = function(a, s, c) {
- if (!c || !n.Dom.isHTMLElement(s)) return s;
- var p = c[s.nodeName.toLowerCase()] || c[s.nodeName];
- return p ? n.Dom.replace(s, p, a.createInside, !0, !1) : s;
- }(m, h, m.o.cleanHTML.replaceOldTags);
- return h !== d ? (h = d, !0) : f;
- };
- }, 64701: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.sanitizeAttributes = void 0;
- var n = e(24263), m = e(40332);
- t.sanitizeAttributes = function(h, f, d) {
- return !(!n.Dom.isElement(f) || !(0, m.sanitizeHTMLElement)(f, { safeJavaScriptLink: h.options.cleanHTML.safeJavaScriptLink, removeOnError: h.options.cleanHTML.removeOnError })) || d;
- };
- }, 75096: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.tryRemoveNode = void 0;
- var n = e(24263), m = e(86893), h = e(33941);
- t.tryRemoveNode = function(f, d, a, s, c, p) {
- return function(l, o, r, i, u) {
- return !(n.Dom.isText(o) || !(i && !i[o.nodeName] || u && u[o.nodeName])) || l.o.cleanHTML.removeEmptyElements && n.Dom.isElement(o) && o.nodeName.match(m.IS_INLINE) != null && !n.Dom.isTemporary(o) && (0, h.trim)(o.innerHTML).length === 0 && (r == null || !n.Dom.isOrContains(o, r));
- }(f, d, p, s, c) ? (n.Dom.safeRemove(d), !0) : a;
- };
- }, 88972: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.visitNodeWalker = void 0;
- var n = e(20255), m = e(2549), h = Object.keys(m);
- t.visitNodeWalker = function(f, d, a, s, c) {
- var p, l, o = !1, r = f.o.cleanHTML.disableCleanFilter;
- try {
- for (var i = n.__values(h), u = i.next(); !u.done; u = i.next()) {
- var v = u.value;
- if (!(r && r.has(v) || (o = (0, m[v])(f, d, o, a, s, c), d.isConnected))) return !0;
- }
- } catch (y) {
- p = { error: y };
- } finally {
- try {
- u && !u.done && (l = i.return) && l.call(i);
- } finally {
- if (p) throw p.error;
- }
- }
- return o;
- };
- }, 92138: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.clipboard = void 0;
- var n = e(86893), m = e(40332), h = e(17332);
- e(31473);
- var f = function() {
- function d() {
- this.buttons = [{ name: "cut", group: "clipboard" }, { name: "copy", group: "clipboard" }, { name: "paste", group: "clipboard" }, { name: "selectall", group: "clipboard" }];
- }
- return d.prototype.init = function(a) {
- var s;
- (s = this.buttons) === null || s === void 0 || s.forEach(function(c) {
- return a.registerButton(c);
- }), a.e.off("copy.".concat(n.CLIPBOARD_ID, " cut.").concat(n.CLIPBOARD_ID)).on("copy.".concat(n.CLIPBOARD_ID, " cut.").concat(n.CLIPBOARD_ID), function(c) {
- var p, l = a.s.html, o = (0, m.getDataTransfer)(c) || (0, m.getDataTransfer)(a.ew) || (0, m.getDataTransfer)(c.originalEvent);
- o && (o.setData(n.TEXT_PLAIN, (0, m.stripTags)(l)), o.setData(n.TEXT_HTML, l)), a.buffer.set(n.CLIPBOARD_ID, l), a.e.fire("pasteStack", { html: l, action: a.o.defaultActionOnPaste || n.INSERT_AS_HTML }), c.type === "cut" && (a.s.remove(), a.s.focus()), c.preventDefault(), (p = a == null ? void 0 : a.events) === null || p === void 0 || p.fire("afterCopy", l);
- });
- }, d.prototype.destruct = function(a) {
- var s, c;
- (s = a == null ? void 0 : a.buffer) === null || s === void 0 || s.set(n.CLIPBOARD_ID, ""), (c = a == null ? void 0 : a.events) === null || c === void 0 || c.off("." + n.CLIPBOARD_ID);
- }, d;
- }();
- t.clipboard = f, h.pluginSystem.add("clipboard", f);
- }, 31473: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(77904);
- n.Config.prototype.controls.cut = { command: "cut", isDisabled: function(h) {
- return h.s.isCollapsed();
- }, tooltip: "Cut selection" }, n.Config.prototype.controls.copy = { command: "copy", isDisabled: function(h) {
- return h.s.isCollapsed();
- }, tooltip: "Copy selection" }, n.Config.prototype.controls.selectall = { icon: "select-all", command: "selectall", tooltip: "Select all" }, m.Icon.set("copy", e(50018)).set("cut", e(99738)).set("paste", e(9185)).set("select-all", e(8619));
- }, 88412: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.color = void 0;
- var n = e(40332), m = e(17332);
- function h(f) {
- f.registerButton({ name: "brush", group: "color" });
- var d = function(a, s, c) {
- var p = (0, n.normalizeColor)(c);
- switch (a) {
- case "background":
- f.s.applyStyle({ backgroundColor: p || "" });
- break;
- case "forecolor":
- f.s.applyStyle({ color: p || "" });
- }
- return f.synchronizeValues(), !1;
- };
- f.registerCommand("forecolor", d).registerCommand("background", d);
- }
- e(21924), t.color = h, m.pluginSystem.add("color", h);
- }, 21924: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(40332), h = e(718), f = e(77904), d = e(24263);
- f.Icon.set("brush", e(73894)), n.Config.prototype.controls.brush = { update: function(a, s) {
- var c = (0, m.dataBind)(a, "color"), p = function(i, u) {
- u && u !== (0, m.css)(s.editor, i).toString() && (a.state.icon.fill = u);
- };
- if (c) {
- var l = (0, m.dataBind)(a, "color");
- p(l === "color" ? l : "background-color", c);
- } else {
- var o = s.s.current();
- if (o && !a.state.disabled) {
- var r = d.Dom.closest(o, d.Dom.isElement, s.editor) || s.editor;
- p("color", (0, m.css)(r, "color").toString()), p("background-color", (0, m.css)(r, "background-color").toString());
- }
- a.state.icon.fill = "", a.state.activated = !1;
- }
- }, popup: function(a, s, c, p, l) {
- var o = "", r = "", i = [], u = null;
- return s && s !== a.editor && d.Dom.isNode(s) && (d.Dom.isElement(s) && a.s.isCollapsed() && !d.Dom.isTag(s, ["br", "hr"]) && (u = s), d.Dom.up(s, function(v) {
- if (d.Dom.isHTMLElement(v)) {
- var y = (0, m.css)(v, "color", !0), g = (0, m.css)(v, "background-color", !0);
- if (y) return o = y.toString(), !0;
- if (g) return r = g.toString(), !0;
- }
- }, a.editor)), i = [{ name: "Background", content: (0, h.ColorPickerWidget)(a, function(v) {
- u ? u.style.backgroundColor = v : a.execCommand("background", !1, v), (0, m.dataBind)(l, "color", v), (0, m.dataBind)(l, "color-mode", "background"), p();
- }, r) }, { name: "Text", content: (0, h.ColorPickerWidget)(a, function(v) {
- u ? u.style.color = v : a.execCommand("forecolor", !1, v), (0, m.dataBind)(l, "color", v), (0, m.dataBind)(l, "color-mode", "color"), p();
- }, o) }], a.o.colorPickerDefaultTab !== "background" && (i = i.reverse()), (0, h.TabsWidget)(a, i, u);
- }, exec: function(a, s, c) {
- var p = c.button, l = (0, m.dataBind)(p, "color-mode"), o = (0, m.dataBind)(p, "color");
- if (!l) return !1;
- if (s && s !== a.editor && d.Dom.isNode(s) && d.Dom.isElement(s)) switch (l) {
- case "color":
- s.style.color = o;
- break;
- case "background":
- s.style.backgroundColor = o;
- }
- else a.execCommand(l === "background" ? l : "forecolor", !1, o);
- }, tooltip: "Fill color or set the text color" };
- }, 79308: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.copyFormat = void 0;
- var n = e(93166), m = e(24263), h = e(26911), f = e(17332), d = e(77904), a = "copy-format", s = ["fontWeight", "fontStyle", "fontSize", "color", "margin", "padding", "borderWidth", "borderStyle", "borderColor", "borderRadius", "backgroundColor", "textDecorationLine", "fontFamily"], c = function(l, o, r, i) {
- var u = (0, h.css)(r, o);
- return u === i[o] && (u = r.parentNode && r !== l.editor && r.parentNode !== l.editor ? c(l, o, r.parentNode, i) : void 0), u;
- };
- function p(l) {
- l.registerButton({ name: "copyformat", group: "clipboard" }), (0, f.extendLang)(e(9188));
- }
- n.Config.prototype.controls.copyformat = { exec: function(l, o, r) {
- var i = r.button;
- if (o) {
- if (l.buffer.exists(a)) l.buffer.delete(a), l.e.off(l.editor, "mouseup." + a);
- else {
- var u = {}, v = m.Dom.up(o, function(b) {
- return b && !m.Dom.isText(b);
- }, l.editor) || l.editor, y = l.createInside.span();
- l.editor.appendChild(y), s.forEach(function(b) {
- u[b] = (0, h.css)(y, b);
- }), y !== l.editor && m.Dom.safeRemove(y);
- var g = function(b, w, C) {
- var S = {};
- return w && s.forEach(function(j) {
- S[j] = c(b, j, w, C), j.match(/border(Style|Color)/) && !S.borderWidth && (S[j] = void 0);
- }), S;
- }(l, v, u);
- l.e.on(l.editor, "mouseup." + a, function() {
- l.buffer.delete(a);
- var b = l.s.current();
- b && (m.Dom.isTag(b, "img") ? (0, h.css)(b, g) : l.s.applyStyle(g)), l.e.off(l.editor, "mouseup." + a);
- }), l.buffer.set(a, !0);
- }
- i.update();
- }
- }, isActive: function(l) {
- return l.buffer.exists(a);
- }, tooltip: "Paint format" }, t.copyFormat = p, f.pluginSystem.add("copyformat", p), d.Icon.set("copyformat", e(83301));
- }, 9188: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
- var n = e(80078);
- t.ar = n;
- var m = e(16986);
- t.cs_cz = m;
- var h = e(59347);
- t.de = h;
- var f = e(63640);
- t.es = f;
- var d = e(53434);
- t.fa = d;
- var a = e(85638);
- t.fr = a;
- var s = e(31743);
- t.he = s;
- var c = e(66219);
- t.hu = c;
- var p = e(50331);
- t.id = p;
- var l = e(25582);
- t.it = l;
- var o = e(82066);
- t.ja = o;
- var r = e(71925);
- t.ko = r;
- var i = e(65274);
- t.nl = i;
- var u = e(58548);
- t.pl = u;
- var v = e(82958);
- t.pt_br = v;
- var y = e(52315);
- t.ru = y;
- var g = e(87727);
- t.tr = g;
- var b = e(9396);
- t.zh_cn = b;
- var w = e(28765);
- t.zh_tw = w;
- }, 9412: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.draggableTags = ["img", "jodit-media", "jodit"];
- }, 30598: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.dragAndDropElement = void 0;
- var n, m = e(20255), h = e(40332), f = e(57549), d = e(64968), a = e(17332), s = e(43441);
- e(9412), function(p) {
- p[p.IDLE = 0] = "IDLE", p[p.WAIT_DRAGGING = 1] = "WAIT_DRAGGING", p[p.DRAGGING = 2] = "DRAGGING";
- }(n || (n = {}));
- var c = function(p) {
- function l() {
- var o = p !== null && p.apply(this, arguments) || this;
- return o.dragList = [], o.draggable = null, o.isCopyMode = !1, o.diffStep = 10, o.startX = 0, o.startY = 0, o.state = n.IDLE, o;
- }
- return m.__extends(l, p), l.prototype.afterInit = function() {
- this.dragList = this.j.o.draggableTags ? (0, h.splitArray)(this.j.o.draggableTags).filter(Boolean).map(function(o) {
- return o.toLowerCase();
- }) : [], this.dragList.length && this.j.e.on("mousedown dragstart", this.onDragStart);
- }, l.prototype.onDragStart = function(o) {
- var r = this;
- if (o.type === "dragstart" && this.draggable) return !1;
- if (n.IDLE >= this.state) {
- var i = o.target;
- if (this.dragList.length && i) {
- var u = function(y) {
- return !!(y && r.dragList.includes(y.nodeName.toLowerCase()));
- }, v = d.Dom.furthest(i, u, this.j.editor) || (u(i) ? i : null);
- v && (d.Dom.isTag(v.parentElement, "a") && v.parentElement.firstChild === v && v.parentElement.lastChild === v && (v = v.parentElement), this.startX = o.clientX, this.startY = o.clientY, this.isCopyMode = (0, h.ctrlKey)(o), this.draggable = v.cloneNode(!0), (0, h.dataBind)(this.draggable, "target", v), this.state = n.WAIT_DRAGGING, this.addDragListeners());
- }
- }
- }, l.prototype.onDrag = function(o) {
- var r, i;
- if (this.draggable && this.state !== n.IDLE) {
- var u = o.clientY;
- if (this.state !== n.WAIT_DRAGGING || Math.sqrt(Math.pow(o.clientX - this.startX, 2) + Math.pow(u - this.startY, 2)) >= this.diffStep) {
- if (this.state === n.WAIT_DRAGGING && (this.j.lock("drag-and-drop-element"), this.state = n.DRAGGING), this.j.e.fire("hidePopup hideResizer"), !this.draggable.parentNode) {
- var v = (0, h.dataBind)(this.draggable, "target");
- (0, h.css)(this.draggable, { zIndex: 1e13, pointerEvents: "none", pointer: "drag", position: "fixed", opacity: 0.7, display: "inline-block", left: o.clientX, top: o.clientY, width: (r = v == null ? void 0 : v.offsetWidth) !== null && r !== void 0 ? r : 100, height: (i = v == null ? void 0 : v.offsetHeight) !== null && i !== void 0 ? i : 100 }), (0, a.getContainer)(this.j, l).appendChild(this.draggable);
- }
- (0, h.css)(this.draggable, { left: o.clientX, top: o.clientY }), this.j.s.insertCursorAtPoint(o.clientX, o.clientY);
- }
- }
- }, l.prototype.onDragEnd = function() {
- this.isInDestruct || (this.removeDragListeners(), this.j.unlock(), this.state = n.IDLE, this.draggable && (d.Dom.safeRemove(this.draggable), this.draggable = null));
- }, l.prototype.onDrop = function() {
- if (this.draggable && this.state >= n.DRAGGING) {
- var o = (0, h.dataBind)(this.draggable, "target");
- this.onDragEnd(), this.isCopyMode && (o = o.cloneNode(!0));
- var r = o.parentElement;
- this.j.s.insertNode(o, !0, !1), r && d.Dom.isEmpty(r) && !d.Dom.isTag(r, ["td", "th"]) && d.Dom.safeRemove(r), d.Dom.isTag(o, "img") && this.j.e && this.j.e.fire("afterInsertImage", o), this.j.e.fire("synchro");
- } else this.onDragEnd();
- }, l.prototype.addDragListeners = function() {
- this.j.e.on(this.j.editor, "mousemove", this.onDrag).on("mouseup", this.onDrop).on([this.j.ew, this.ow], "mouseup", this.onDragEnd);
- }, l.prototype.removeDragListeners = function() {
- this.j.e.off(this.j.editor, "mousemove", this.onDrag).off("mouseup", this.onDrop).off([this.j.ew, this.ow], "mouseup", this.onDragEnd);
- }, l.prototype.beforeDestruct = function() {
- this.onDragEnd(), this.j.e.off("mousedown dragstart", this.onDragStart), this.removeDragListeners();
- }, m.__decorate([s.autobind], l.prototype, "onDragStart", null), m.__decorate([(0, s.throttle)(function(o) {
- return o.defaultTimeout / 10;
- })], l.prototype, "onDrag", null), m.__decorate([s.autobind], l.prototype, "onDragEnd", null), m.__decorate([s.autobind], l.prototype, "onDrop", null), l;
- }(f.Plugin);
- t.dragAndDropElement = c, a.pluginSystem.add("dragAndDropElement", c);
- }, 19268: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.dragAndDrop = void 0;
- var n = e(20255), m = e(86893), h = e(24263), f = e(40332), d = e(57549), a = e(43441), s = e(63463), c = e(17332), p = function(l) {
- function o() {
- var r = l !== null && l.apply(this, arguments) || this;
- return r.isFragmentFromEditor = !1, r.isCopyMode = !1, r.startDragPoint = { x: 0, y: 0 }, r.draggable = null, r.bufferRange = null, r.getText = function(i) {
- var u = (0, f.getDataTransfer)(i);
- return u ? u.getData(m.TEXT_HTML) || u.getData(m.TEXT_PLAIN) : null;
- }, r;
- }
- return n.__extends(o, l), o.prototype.afterInit = function() {
- this.j.e.on([window, this.j.ed, this.j.editor], "dragstart.DragAndDrop", this.onDragStart);
- }, o.prototype.onDragStart = function(r) {
- var i = r.target;
- if (this.onDragEnd(), this.isFragmentFromEditor = h.Dom.isOrContains(this.j.editor, i, !0), this.isCopyMode = !this.isFragmentFromEditor || (0, f.ctrlKey)(r), this.isFragmentFromEditor) {
- var u = this.j.s.sel, v = u && u.rangeCount ? u.getRangeAt(0) : null;
- v && (this.bufferRange = v.cloneRange());
- } else this.bufferRange = null;
- this.startDragPoint.x = r.clientX, this.startDragPoint.y = r.clientY, (0, s.isFileBrowserFilesItem)(i) && (i = i.querySelector("img")), h.Dom.isTag(i, "img") && (this.draggable = i.cloneNode(!0), (0, f.dataBind)(this.draggable, "target", i)), this.addDragListeners();
- }, o.prototype.addDragListeners = function() {
- this.j.e.on("dragover", this.onDrag).on("drop.DragAndDrop", this.onDrop).on(window, "dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop", this.onDragEnd);
- }, o.prototype.removeDragListeners = function() {
- this.j.e.off("dragover", this.onDrag).off("drop.DragAndDrop", this.onDrop).off(window, "dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop", this.onDragEnd);
- }, o.prototype.onDrag = function(r) {
- this.draggable && (this.j.e.fire("hidePopup"), this.j.s.insertCursorAtPoint(r.clientX, r.clientY), r.preventDefault(), r.stopPropagation());
- }, o.prototype.onDragEnd = function() {
- this.draggable && (h.Dom.safeRemove(this.draggable), this.draggable = null), this.isCopyMode = !1, this.removeDragListeners();
- }, o.prototype.onDrop = function(r) {
- if (!r.dataTransfer || !r.dataTransfer.files || !r.dataTransfer.files.length) {
- if (!this.isFragmentFromEditor && !this.draggable) return this.j.e.fire("paste", r), r.preventDefault(), r.stopPropagation(), !1;
- var i = this.j.s.sel, u = this.bufferRange || (i && i.rangeCount ? i.getRangeAt(0) : null), v = null;
- if (!this.draggable && u) v = this.isCopyMode ? u.cloneContents() : u.extractContents();
- else if (this.draggable) if (this.isCopyMode) {
- var y = n.__read((0, f.attr)(this.draggable, "-is-file") === "1" ? ["a", "href"] : ["img", "src"], 2), g = y[0], b = y[1];
- (v = this.j.createInside.element(g)).setAttribute(b, (0, f.attr)(this.draggable, "data-src") || (0, f.attr)(this.draggable, "src") || ""), g === "a" && (v.textContent = (0, f.attr)(v, b) || "");
- } else v = (0, f.dataBind)(this.draggable, "target");
- else this.getText(r) && (v = this.j.createInside.fromHTML(this.getText(r)));
- i && i.removeAllRanges(), this.j.s.insertCursorAtPoint(r.clientX, r.clientY), v && (this.j.s.insertNode(v, !1, !1), u && v.firstChild && v.lastChild && (u.setStartBefore(v.firstChild), u.setEndAfter(v.lastChild), this.j.s.selectRange(u), this.j.e.fire("synchro")), h.Dom.isTag(v, "img") && this.j.events && this.j.e.fire("afterInsertImage", v)), r.preventDefault(), r.stopPropagation();
- }
- this.isFragmentFromEditor = !1, this.removeDragListeners();
- }, o.prototype.beforeDestruct = function() {
- this.onDragEnd(), this.j.e.off(window, ".DragAndDrop").off(".DragAndDrop").off([window, this.j.ed, this.j.editor], "dragstart.DragAndDrop", this.onDragStart);
- }, n.__decorate([a.autobind], o.prototype, "onDragStart", null), n.__decorate([(0, a.throttle)(function(r) {
- return r.defaultTimeout / 10;
- })], o.prototype, "onDrag", null), n.__decorate([a.autobind], o.prototype, "onDragEnd", null), n.__decorate([a.autobind], o.prototype, "onDrop", null), o;
- }(d.Plugin);
- t.dragAndDrop = p, c.pluginSystem.add("dragAndDrop", p);
- }, 95049: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(69516), t);
- }, 69516: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.removeExtraBr = void 0;
- var n = e(24263);
- t.removeExtraBr = function(m, h) {
- if (m.o.dtd.removeExtraBr && !n.Dom.isTag(h, "br")) {
- var f = n.Dom.furthest(h, n.Dom.isBlock, m.editor);
- if (f && !n.Dom.isTag(f, ["table", "pre", "blockquote", "code"])) {
- var d = n.Dom.isTag(h, "br") ? h : n.Dom.findNotEmptySibling(h, !1);
- if (!n.Dom.isTag(d, "br")) return;
- m.s.setCursorBefore(d), n.Dom.safeRemove(d);
- }
- }
- };
- }, 73967: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkBlockNesting = void 0;
- var n = e(24263);
- t.checkBlockNesting = function(m, h) {
- if (n.Dom.isFragment(h) && (h = h.firstChild), m.o.dtd.checkBlockNesting && n.Dom.isBlock(h)) {
- var f = n.Dom.furthest(m.s.current(), n.Dom.isBlock, m.editor);
- f && !m.o.dtd.blockLimits[f.tagName.toLowerCase()] && (m.s.setCursorAfter(f), n.Dom.isEmpty(f) && n.Dom.safeRemove(f));
- }
- };
- }, 73690: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(73967), t);
- }, 20173: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.dtd = { removeExtraBr: !0, checkBlockNesting: !0, blockLimits: { article: 1, aside: 1, audio: 1, body: 1, caption: 1, details: 1, dir: 1, div: 1, dl: 1, fieldset: 1, figcaption: 1, figure: 1, footer: 1, form: 1, header: 1, hgroup: 1, main: 1, menu: 1, nav: 1, ol: 1, section: 1, table: 1, td: 1, th: 1, tr: 1, ul: 1, video: 1 } };
- }, 96899: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255), m = e(57549), h = e(17332), f = e(46163);
- e(20173);
- var d = e(73690), a = e(95049), s = function(c) {
- function p() {
- return c !== null && c.apply(this, arguments) || this;
- }
- return n.__extends(p, c), p.prototype.afterInit = function(l) {
- }, p.prototype.beforeDestruct = function(l) {
- }, p.prototype.__onBeforeInsertNode = function(l) {
- var o = this;
- Object.keys(d).forEach(function(r) {
- d[r](o.j, l);
- });
- }, p.prototype.__onAfterInsertNode = function(l) {
- var o = this;
- Object.keys(a).forEach(function(r) {
- a[r](o.j, l);
- });
- }, n.__decorate([(0, f.watch)(":beforeInsertNode")], p.prototype, "__onBeforeInsertNode", null), n.__decorate([(0, f.watch)(":afterInsertNode")], p.prototype, "__onAfterInsertNode", null), p;
- }(m.Plugin);
- h.pluginSystem.add("dtd", s);
- }, 33122: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.enter = void 0;
- var n = e(20255), m = e(24263), h = e(85605), f = e(86893), d = e(43441), a = e(67749), s = e(23217), c = e(17332);
- e(26231);
- var p = function(l) {
- function o() {
- return l !== null && l.apply(this, arguments) || this;
- }
- return n.__extends(o, l), o.prototype.afterInit = function(r) {
- var i = this, u = r.o.enter.toLowerCase(), v = u === f.BR.toLowerCase();
- r.o.enterBlock || (r.o.enterBlock = v ? f.PARAGRAPH : u), r.registerCommand("enter", function(y, g, b) {
- return b === void 0 && (b = {}), i.onEnter(b);
- });
- }, o.prototype.onEnterKeyDown = function(r) {
- if (r.key === f.KEY_ENTER) {
- var i = this.j, u = i.e.fire("beforeEnter", r);
- return u !== void 0 ? u : (i.s.isCollapsed() || i.execCommand("Delete"), i.s.focus(), this.onEnter(r), i.e.fire("afterEnter", r), i.synchronizeValues(), !1);
- }
- }, o.prototype.onEnter = function(r) {
- var i = this.jodit, u = i.createInside.fake();
- try {
- m.Dom.safeInsertNode(i.s.range, u), (0, s.moveCursorOutFromSpecialTags)(i, u, ["a"]);
- var v = (0, s.getBlockWrapper)(u, i), y = m.Dom.isTag(v, "li");
- if ((!y || r != null && r.shiftKey) && (0, s.checkBR)(u, i, r == null ? void 0 : r.shiftKey)) return !1;
- if (v || (0, s.hasPreviousBlock)(u, i) || (v = (0, s.wrapText)(u, i)), !v) return (0, s.insertParagraph)(u, i, y ? "li" : i.o.enter), !1;
- if (!(0, s.checkUnsplittableBox)(u, i, v)) return !1;
- if (y && this.__isEmptyListLeaf(v)) return (0, s.processEmptyLILeaf)(u, i, v), !1;
- (0, s.splitFragment)(u, i, v);
- } finally {
- u.isConnected && i.s.setCursorBefore(u), m.Dom.safeRemove(u);
- }
- }, o.prototype.__isEmptyListLeaf = function(r) {
- var i = this.j.e.fire("enterIsEmptyListLeaf", r);
- return (0, a.isBoolean)(i) ? i : m.Dom.isEmpty(r);
- }, o.prototype.beforeDestruct = function(r) {
- r.e.off("keydown.enter");
- }, n.__decorate([(0, d.watch)(":keydown.enter")], o.prototype, "onEnterKeyDown", null), o;
- }(h.Plugin);
- t.enter = p, c.pluginSystem.add("enter", p);
- }, 94149: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkBR = void 0;
- var n = e(24263), m = e(9005), h = e(86893);
- function f(d) {
- if (!d) return !1;
- var a = n.Dom.findSibling(d, !0);
- return !(!a || !n.Dom.isTag(a, "br")) && a;
- }
- t.checkBR = function(d, a, s) {
- var c = !!n.Dom.closest(d, ["pre", "blockquote"], a.editor);
- if (a.o.enter.toLowerCase() === h.BR.toLowerCase() || s && !c || !s && c) {
- if (c && function(o) {
- var r = f(f(o));
- return !!r && (n.Dom.safeRemove(f(o)), n.Dom.safeRemove(r), !0);
- }(d)) return !1;
- var p = a.createInside.element("br");
- if (n.Dom.before(d, p), !n.Dom.findNotEmptySibling(p, !1)) {
- var l = p.cloneNode();
- n.Dom.after(p, l), n.Dom.before(l, d);
- }
- return (0, m.scrollIntoViewIfNeeded)(p, a.editor, a.ed), !0;
- }
- return !1;
- };
- }, 58921: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.checkUnsplittableBox = void 0;
- var n = e(24263);
- t.checkUnsplittableBox = function(m, h, f) {
- return !!n.Dom.canSplitBlock(f) || (n.Dom.before(m, h.createInside.element("br")), !1);
- };
- }, 70638: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getBlockWrapper = void 0;
- var n = e(86893), m = e(24263);
- t.getBlockWrapper = function h(f, d, a) {
- a === void 0 && (a = n.IS_BLOCK);
- var s = f, c = d.editor;
- do {
- if (!s || s === c) break;
- if (a.test(s.nodeName)) return m.Dom.isTag(s, "li") ? s : h(s.parentNode, d, /^li$/i) || s;
- s = s.parentNode;
- } while (s && s !== c);
- return null;
- };
- }, 50781: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.hasPreviousBlock = void 0;
- var n = e(24263);
- t.hasPreviousBlock = function(m, h) {
- return !!n.Dom.prev(m, function(f) {
- return n.Dom.isBlock(f) || n.Dom.isImage(f);
- }, h.editor);
- };
- }, 23217: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(94149), t), n.__exportStar(e(58921), t), n.__exportStar(e(92291), t), n.__exportStar(e(70638), t), n.__exportStar(e(50781), t), n.__exportStar(e(90443), t), n.__exportStar(e(52521), t), n.__exportStar(e(81512), t), n.__exportStar(e(29575), t);
- }, 90443: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.insertParagraph = void 0;
- var n = e(24263), m = e(9005);
- t.insertParagraph = function(h, f, d, a) {
- var s = d.toLowerCase() === "br", c = f.createInside, p = c.element(d), l = c.element("br");
- return s || p.appendChild(l), a && a.cssText && p.setAttribute("style", a.cssText), n.Dom.after(h, p), n.Dom.before(s ? p : l, h), (0, m.scrollIntoViewIfNeeded)(p, f.editor, f.ed), p;
- };
- }, 29575: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.moveCursorOutFromSpecialTags = void 0;
- var n = e(24263);
- t.moveCursorOutFromSpecialTags = function(m, h, f) {
- var d = m.s, a = n.Dom.closest(h, f, m.editor);
- a && (d.cursorOnTheRight(a, h) ? n.Dom.after(a, h) : d.cursorOnTheLeft(a, h) && n.Dom.before(a, h));
- };
- }, 92291: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.processEmptyLILeaf = void 0;
- var n = e(24263), m = e(54188), h = e(90443);
- t.processEmptyLILeaf = function(f, d, a) {
- var s = n.Dom.closest(a, ["ol", "ul"], d.editor);
- if (s) {
- var c = s.parentElement, p = n.Dom.isTag(c, "li"), l = p ? c : s, o = d.s.createRange();
- o.setStartAfter(a), o.setEndAfter(s);
- var r = o.extractContents();
- n.Dom.after(l, f), n.Dom.safeRemove(a), (0, m.$$)("li", s).length || n.Dom.safeRemove(s);
- var i = (0, h.insertParagraph)(f, d, p ? "li" : d.o.enter);
- r.querySelector("li") && (p ? i.appendChild(r) : n.Dom.after(i, r));
- }
- };
- }, 52521: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.splitFragment = void 0;
- var n = e(9005), m = e(24263), h = e(90443);
- t.splitFragment = function(f, d, a) {
- var s = d.s, c = d.o.enter.toLowerCase(), p = m.Dom.isTag(a, "li"), l = a.tagName.toLowerCase() === c || p, o = s.cursorOnTheRight(a, f), r = s.cursorOnTheLeft(a, f);
- if (!l && (o || r)) return o ? m.Dom.after(a, f) : m.Dom.before(a, f), (0, h.insertParagraph)(f, d, c), void (r && !o && m.Dom.prepend(a, f));
- var i = s.splitSelection(a, f);
- (0, n.scrollIntoViewIfNeeded)(i, d.editor, d.ed);
- };
- }, 81512: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.wrapText = void 0;
- var n = e(24263);
- t.wrapText = function(m, h) {
- var f = m;
- n.Dom.up(f, function(s) {
- s && s.hasChildNodes() && s !== h.editor && (f = s);
- }, h.editor);
- var d = n.Dom.wrapInline(f, h.o.enter, h);
- if (n.Dom.isEmpty(d)) {
- var a = h.createInside.element("br");
- d.appendChild(a), n.Dom.before(a, m);
- }
- return d;
- };
- }, 26231: function() {
- }, 10135: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.file = void 0;
- var n = e(93166), m = e(24263), h = e(718), f = e(17332);
- function d(a) {
- a.registerButton({ name: "file", group: "media" });
- }
- n.Config.prototype.controls.file = { popup: function(a, s, c, p) {
- var l = function(r, i) {
- i === void 0 && (i = ""), a.s.insertNode(a.createInside.fromHTML('<a href="'.concat(r, '" title="').concat(i, '">').concat(i || r, "</a>")));
- }, o = null;
- return s && (m.Dom.isTag(s, "a") || m.Dom.closest(s, "a", a.editor)) && (o = m.Dom.isTag(s, "a") ? s : m.Dom.closest(s, "a", a.editor)), (0, h.FileSelectorWidget)(a, { filebrowser: function(r) {
- r.files && r.files.forEach(function(i) {
- return l(r.baseurl + i);
- }), p();
- }, upload: !0, url: function(r, i) {
- o ? (o.setAttribute("href", r), o.setAttribute("title", i)) : l(r, i), p();
- } }, o, p, !1);
- }, tags: ["a"], tooltip: "Insert file" }, t.file = d, f.pluginSystem.add("file", d);
- }, 66994: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.focus = void 0;
- var n = e(93166), m = e(64968), h = e(17332);
- function f(d) {
- d.o.saveSelectionOnBlur && d.e.on("blur", function() {
- d.isEditorMode() && d.s.save(!0);
- }).on("focus", function() {
- d.s.restore();
- });
- var a = function() {
- if (d.s.focus(), d.o.cursorAfterAutofocus === "end") {
- var s = m.Dom.last(d.editor, function(c) {
- return m.Dom.isText(c);
- });
- s && d.s.setCursorIn(s, !1);
- }
- };
- d.e.on("afterInit", function() {
- d.o.autofocus && (d.defaultTimeout ? d.async.setTimeout(a, 300) : a());
- }), d.e.on("afterInit afterAddPlace", function() {
- d.e.off(d.editor, "mousedown.autofocus").on(d.editor, "mousedown.autofocus", function(s) {
- d.isEditorMode() && s.target && m.Dom.isBlock(s.target) && !s.target.childNodes.length && (d.editor === s.target ? d.s.focus() : d.s.setCursorIn(s.target));
- });
- });
- }
- n.Config.prototype.autofocus = !1, n.Config.prototype.cursorAfterAutofocus = "end", n.Config.prototype.saveSelectionOnBlur = !0, t.focus = f, h.pluginSystem.add("focus", f);
- }, 8082: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255), m = e(93166), h = e(24263), f = e(76502), d = e(77904);
- m.Config.prototype.defaultFontSizePoints = "px", d.Icon.set("font", e(84142)).set("fontsize", e(57292)), m.Config.prototype.controls.fontsize = { command: "fontsize", data: { cssRule: "font-size" }, list: ["8", "9", "10", "11", "12", "14", "16", "18", "24", "30", "36", "48", "60", "72", "96"], exec: function(a, s, c) {
- var p = c.control;
- return (0, f.memorizeExec)(a, s, { control: p }, function(l) {
- var o;
- return ((o = p.command) === null || o === void 0 ? void 0 : o.toLowerCase()) === "fontsize" ? "".concat(l).concat(a.o.defaultFontSizePoints) : l;
- });
- }, childTemplate: function(a, s, c) {
- return "".concat(c).concat(a.o.defaultFontSizePoints);
- }, tooltip: "Font size", isChildActive: function(a, s) {
- var c, p, l = a.s.current(), o = ((c = s.data) === null || c === void 0 ? void 0 : c.cssRule) || "font-size", r = ((p = s.data) === null || p === void 0 ? void 0 : p.normalize) || function(v) {
- return /pt$/i.test(v) && a.o.defaultFontSizePoints === "pt" ? v.replace(/pt$/i, "") : v;
- };
- if (l) {
- var i = h.Dom.closest(l, h.Dom.isElement, a.editor) || a.editor, u = (0, f.css)(i, o);
- return !!(u && s.args && r(s.args[0].toString()) === r(u.toString()));
- }
- return !1;
- } }, m.Config.prototype.controls.font = n.__assign(n.__assign({}, m.Config.prototype.controls.fontsize), { command: "fontname", list: { "": "Default", "helvetica,sans-serif": "Helvetica", "arial,helvetica,sans-serif": "Arial", "georgia,palatino,serif": "Georgia", "impact,charcoal,sans-serif": "Impact", "tahoma,geneva,sans-serif": "Tahoma", "times new roman,times,serif": "Times New Roman", "verdana,geneva,sans-serif": "Verdana" }, childTemplate: function(a, s, c) {
- var p = !1;
- try {
- p = s.indexOf("dings") === -1 && document.fonts.check("16px ".concat(s), c);
- } catch (l) {
- }
- return '<span data-style="'.concat(s, '" style="').concat(p ? "font-family: ".concat(s, "!important;") : "", '">').concat(c, "</span>");
- }, data: { cssRule: "font-family", normalize: function(a) {
- return a.toLowerCase().replace(/['"]+/g, "").replace(/[^a-z0-9]+/g, ",");
- } }, tooltip: "Font family" });
- }, 54798: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.font = void 0;
- var n = e(40332), m = e(17332);
- function h(f) {
- f.registerButton({ name: "font", group: "font" }).registerButton({ name: "fontsize", group: "font" });
- var d = function(a, s, c) {
- switch (a) {
- case "fontsize":
- f.s.applyStyle({ fontSize: (0, n.normalizeSize)(c) });
- break;
- case "fontname":
- f.s.applyStyle({ fontFamily: c });
- }
- return f.synchronizeValues(), !1;
- };
- f.registerCommand("fontsize", d).registerCommand("fontname", d);
- }
- e(8082), t.font = h, m.pluginSystem.add("font", h);
- }, 12908: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.formatBlock = void 0;
- var n = e(93166), m = e(87837), h = e(40332), f = e(17332);
- function d(a) {
- a.registerButton({ name: "paragraph", group: "font" }), a.registerCommand("formatblock", function(s, c, p) {
- return a.s.applyStyle(void 0, { element: p }), a.synchronizeValues(), !1;
- });
- }
- e(77904).Icon.set("paragraph", e(18019)), n.Config.prototype.controls.paragraph = { command: "formatBlock", update: function(a, s) {
- var c = a.control, p = s.s.current();
- if (p && s.o.textIcons) {
- var l = (m.Dom.closest(p, m.Dom.isBlock, s.editor) || s.editor).nodeName.toLowerCase(), o = c.list;
- a && c.data && c.data.currentValue !== l && o && o[l] && (s.o.textIcons ? a.state.text = l : a.state.icon.name = l, c.data.currentValue = l);
- }
- return !1;
- }, exec: h.memorizeExec, data: { currentValue: "left" }, list: { p: "Normal", h1: "Heading 1", h2: "Heading 2", h3: "Heading 3", h4: "Heading 4", blockquote: "Quote", pre: "Code" }, isChildActive: function(a, s) {
- var c = a.s.current();
- if (c) {
- var p = m.Dom.closest(c, m.Dom.isBlock, a.editor);
- return !!(p && p !== a.editor && s.args !== void 0 && p.nodeName.toLowerCase() === s.args[0]);
- }
- return !1;
- }, isActive: function(a, s) {
- var c = a.s.current();
- if (c) {
- var p = m.Dom.closest(c, m.Dom.isBlock, a.editor);
- return !!(p && p !== a.editor && s.list !== void 0 && !m.Dom.isTag(p, "p") && s.list[p.nodeName.toLowerCase()] !== void 0);
- }
- return !1;
- }, childTemplate: function(a, s, c) {
- return "<".concat(s, ' style="margin:0;padding:0"><span>').concat(a.i18n(c), "</span></").concat(s, ">");
- }, tooltip: "Insert format block" }, t.formatBlock = d, f.pluginSystem.add("formatBlock", d);
- }, 15045: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(14320);
- var n = e(93166), m = e(86893), h = e(77904);
- n.Config.prototype.fullsize = !1, n.Config.prototype.globalFullSize = !0, h.Icon.set("fullsize", e(45146)).set("shrink", e(53576)), n.Config.prototype.controls.fullsize = { exec: function(f) {
- f.toggleFullSize();
- }, update: function(f, d) {
- var a = d.isFullSize ? "shrink" : "fullsize";
- f.state.activated = d.isFullSize, d.o.textIcons ? f.state.text = a : f.state.icon.name = a;
- }, tooltip: "Open in fullsize", mode: m.MODE_SOURCE + m.MODE_WYSIWYG };
- }, 65123: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.fullsize = void 0, e(14320);
- var n = e(26911), m = e(77892), h = e(17332);
- e(15045);
- var f = /* @__PURE__ */ new Set();
- function d(a) {
- a.registerButton({ name: "fullsize" });
- var s = !1, c = 0, p = 0, l = !1, o = function() {
- var i = a.container;
- a.events && (s ? (c = (0, n.css)(i, "height", !0), p = (0, n.css)(i, "width", !0), (0, n.css)(i, { height: a.ow.innerHeight, width: a.ow.innerWidth }), l = !0) : l && (0, n.css)(i, { height: c || "auto", width: p || "auto" }));
- }, r = function(i) {
- var u = a.container, v = a.events;
- if (u) {
- if (i === void 0 && (i = !u.classList.contains("jodit_fullsize")), a.setMod("fullsize", i), a.o.fullsize = i, s = i, u.classList.toggle("jodit_fullsize", i), a.toolbar && ((0, m.isJoditObject)(a) && a.toolbarContainer.appendChild(a.toolbar.container), (0, n.css)(a.toolbar.container, "width", "auto")), i ? f.add(u) : f.delete(u), a.o.globalFullSize && (f.size === 1 && i || f.size === 0 && !i)) {
- for (var y = u.parentNode; y && y.nodeType !== Node.DOCUMENT_NODE && y.nodeType !== Node.DOCUMENT_FRAGMENT_NODE; ) y.classList.toggle("jodit_fullsize-box_true", i), y = y.parentNode;
- o();
- }
- v.fire("afterResize");
- }
- };
- a.o.globalFullSize && a.e.on(a.ow, "resize", o), a.e.on("afterInit afterOpen", function() {
- var i;
- a.toggleFullSize((i = a == null ? void 0 : a.options) === null || i === void 0 ? void 0 : i.fullsize);
- }).on("toggleFullSize", r).on("beforeDestruct", function() {
- s && r(!1);
- }).on("beforeDestruct", function() {
- a.events && a.e.off(a.ow, "resize", o);
- });
- }
- t.fullsize = d, h.pluginSystem.add("fullsize", d);
- }, 16829: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.commandToHotkeys = { removeFormat: ["ctrl+shift+m", "cmd+shift+m"], insertOrderedList: ["ctrl+shift+7", "cmd+shift+7"], insertUnorderedList: ["ctrl+shift+8, cmd+shift+8"], selectall: ["ctrl+a", "cmd+a"] };
- }, 83228: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.hotkeys = void 0;
- var n = e(20255), m = e(57549), h = e(40332), f = e(86893), d = e(17332);
- e(16829);
- var a = function(s) {
- function c() {
- var p = s !== null && s.apply(this, arguments) || this;
- return p.onKeyPress = function(l) {
- var o = p.specialKeys[l.which], r = (l.key || String.fromCharCode(l.which)).toLowerCase(), i = [o || r];
- return ["alt", "ctrl", "shift", "meta"].forEach(function(u) {
- l[u + "Key"] && o !== u && i.push(u);
- }), (0, h.normalizeKeyAliases)(i.join("+"));
- }, p.specialKeys = { 8: "backspace", 9: "tab", 10: "return", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause", 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home", 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", 59: ";", 61: "=", 91: "meta", 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7", 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111: "/", 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'" }, p;
- }
- return n.__extends(c, s), c.prototype.afterInit = function(p) {
- var l = this;
- (0, h.keys)(p.o.commandToHotkeys, !1).forEach(function(r) {
- var i = p.o.commandToHotkeys[r];
- i && ((0, h.isArray)(i) || (0, h.isString)(i)) && p.registerHotkeyToCommand(i, r);
- });
- var o = !1;
- p.e.off(".hotkeys").on([p.ow, p.ew], "keydown.hotkeys", function(r) {
- if (r.key === f.KEY_ESC) return l.j.e.fire("escape", r);
- }).on("keydown.hotkeys", function(r) {
- var i = l.onKeyPress(r), u = { shouldStop: !0 };
- if (l.j.e.fire(i + ".hotkey", r.type, u) === !1) {
- if (u.shouldStop) return o = !0, p.e.stopPropagation("keydown"), !1;
- r.preventDefault();
- }
- }, { top: !0 }).on("keyup.hotkeys", function() {
- if (o) return o = !1, p.e.stopPropagation("keyup"), !1;
- }, { top: !0 });
- }, c.prototype.beforeDestruct = function(p) {
- p.events && p.e.off(".hotkeys");
- }, c;
- }(m.Plugin);
- t.hotkeys = a, d.pluginSystem.add("hotkeys", a);
- }, 43889: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.hr = void 0;
- var n = e(93166), m = e(64968), h = e(17332);
- function f(d) {
- d.registerButton({ name: "hr", group: "insert" }), d.registerCommand("insertHorizontalRule", function() {
- var a = d.createInside.element("hr");
- d.s.insertNode(a, !1, !1);
- var s = m.Dom.closest(a.parentElement, m.Dom.isBlock, d.editor);
- s && m.Dom.isEmpty(s) && s !== d.editor && (m.Dom.after(s, a), m.Dom.safeRemove(s));
- var c = m.Dom.next(a, m.Dom.isBlock, d.editor, !1);
- return c || (c = d.createInside.element(d.o.enter), m.Dom.after(a, c)), d.s.setCursorIn(c), !1;
- });
- }
- e(77904).Icon.set("hr", e(14655)), n.Config.prototype.controls.hr = { command: "insertHorizontalRule", tags: ["hr"], tooltip: "Insert Horizontal Line" }, t.hr = f, h.pluginSystem.add("hr", f);
- }, 2509: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.iframeBaseUrl = "", n.Config.prototype.iframeTitle = "Jodit Editor", n.Config.prototype.iframeDoctype = "<!DOCTYPE html>", n.Config.prototype.iframeDefaultSrc = "about:blank", n.Config.prototype.iframeStyle = 'html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}', n.Config.prototype.iframeCSSLinks = [];
- }, 93300: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.iframe = void 0;
- var n = e(40332), m = e(40332), h = e(86893), f = e(17332);
- function d(a) {
- var s = a.options;
- a.e.on("afterSetMode", function() {
- a.isEditorMode() && a.s.focus();
- }).on("generateDocumentStructure.iframe", function(c, p) {
- var l = c || p.iframe.contentWindow.document;
- if (l.open(), l.write(s.iframeDoctype + '<html dir="'.concat(s.direction, '" class="jodit" lang="').concat((0, n.defaultLanguage)(s.language), '">') + "<head>" + "<title>".concat(s.iframeTitle, "</title>") + (s.iframeBaseUrl ? '<base href="'.concat(s.iframeBaseUrl, '"/>') : "") + '</head><body class="jodit-wysiwyg"></body></html>'), l.close(), s.iframeCSSLinks && s.iframeCSSLinks.forEach(function(r) {
- var i = l.createElement("link");
- i.setAttribute("rel", "stylesheet"), i.setAttribute("href", r), l.head && l.head.appendChild(i);
- }), s.iframeStyle) {
- var o = l.createElement("style");
- o.innerHTML = s.iframeStyle, l.head && l.head.appendChild(o);
- }
- }).on("createEditor", function() {
- if (s.iframe) {
- var c = a.c.element("iframe");
- c.style.display = "block", c.src = "about:blank", c.className = "jodit-wysiwyg_iframe", c.setAttribute("allowtransparency", "true"), c.setAttribute("tabindex", s.tabIndex.toString()), c.setAttribute("frameborder", "0"), a.workplace.appendChild(c), a.iframe = c;
- var p = a.e.fire("generateDocumentStructure.iframe", null, a);
- return (0, n.callPromise)(p, function() {
- if (!a.iframe) return !1;
- var l = a.iframe.contentWindow.document;
- a.editorWindow = a.iframe.contentWindow;
- var o = function() {
- (0, n.attr)(l.body, "contenteditable", a.getMode() !== h.MODE_SOURCE && !a.getReadOnly() || null);
- }, r = function(y) {
- var g = /<body.*<\/body>/im, b = "{%%BODY%%}", w = g.exec(y);
- return w && (y = y.replace(g, b).replace(/<span([^>]*?)>(.*?)<\/span>/gim, "").replace(/<span([^&]*?)>(.*?)<\/span>/gim, "").replace(b, w[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im, "$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im, "$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g, "")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g, "$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim, "$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim, "$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim, "$1")), y;
- };
- if (s.editHTMLDocumentMode) {
- var i = a.element.tagName;
- if (i !== "TEXTAREA" && i !== "INPUT") throw (0, m.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");
- a.e.on("beforeGetNativeEditorValue", function() {
- return r(a.o.iframeDoctype + l.documentElement.outerHTML);
- }).on("beforeSetNativeEditorValue", function(y) {
- var g = y.value;
- return !a.isLocked && (/<(html|body)/i.test(g) ? r(l.documentElement.outerHTML) !== r(g) && (l.open(), l.write(a.o.iframeDoctype + r(g)), l.close(), a.editor = l.body, a.e.fire("safeHTML", a.editor), o(), a.e.fire("prepareWYSIWYGEditor"), a.e.stopPropagation("beforeSetNativeEditorValue")) : l.body.innerHTML = g, !0);
- }, { top: !0 });
- }
- if (a.editor = l.body, a.e.on("afterSetMode afterInit afterAddPlace", o), s.height === "auto") {
- l.documentElement && (l.documentElement.style.overflowY = "hidden");
- var u = a.async.throttle(function() {
- if (a.editor && a.iframe && s.height === "auto") {
- var y = a.ew.getComputedStyle(a.editor), g = parseInt(y.marginTop || "0", 10) + parseInt(y.marginBottom || "0", 10);
- (0, n.css)(a.iframe, "height", a.editor.offsetHeight + g);
- }
- }, a.defaultTimeout / 2);
- if (a.e.on("change afterInit afterSetMode resize", u).on([a.iframe, a.ew, l.documentElement], "load", u).on(l, "readystatechange DOMContentLoaded", u), typeof ResizeObserver == "function") {
- var v = new ResizeObserver(u);
- v.observe(l.body), a.e.on("beforeDestruct", function() {
- v.unobserve(l.body);
- });
- }
- }
- return l.documentElement && a.e.on(l.documentElement, "mousedown touchend", function() {
- a.s.isFocused() || (a.s.focus(), a.editor === l.body && a.s.setCursorIn(l.body));
- }).on(a.ew, "mousedown touchstart keydown keyup touchend click mouseup mousemove scroll", function(y) {
- var g;
- (g = a.events) === null || g === void 0 || g.fire(a.ow, y);
- }), !1;
- });
- }
- });
- }
- e(2509), t.iframe = d, f.pluginSystem.add("iframe", d);
- }, 18226: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.imageProcessor = { replaceDataURIToBlobIdInView: !0 };
- }, 92575: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.imageProcessor = void 0;
- var n = e(20255), m = e(40332), h = e(57549), f = e(43441), d = e(86893), a = e(17332);
- e(18226);
- var s = "__jodit_imageprocessor_binded", c = "__jodit_imageprocessor_bindedblob-id", p = function(l) {
- function o() {
- return l !== null && l.apply(this, arguments) || this;
- }
- return n.__extends(o, l), o.prototype.afterInit = function(r) {
- }, o.prototype.beforeDestruct = function(r) {
- var i, u, v = r.buffer.get(c);
- if (v) {
- var y = Object.keys(v);
- try {
- for (var g = n.__values(y), b = g.next(); !b.done; b = g.next()) URL.revokeObjectURL(b.value);
- } catch (w) {
- i = { error: w };
- } finally {
- try {
- b && !b.done && (u = g.return) && u.call(g);
- } finally {
- if (i) throw i.error;
- }
- }
- r.buffer.delete(c);
- }
- }, o.prototype.onAfterGetValueFromEditor = function(r, i) {
- if (i !== d.SOURCE_CONSUMER) return this.onBeforeSetElementValue(r);
- }, o.prototype.onBeforeSetElementValue = function(r) {
- var i, u, v = this.jodit;
- if (v.o.imageProcessor.replaceDataURIToBlobIdInView) {
- var y = v.buffer.get(c);
- if (y) {
- var g = Object.keys(y);
- try {
- for (var b = n.__values(g), w = b.next(); !w.done; w = b.next()) for (var C = w.value; r.value.includes(C); ) r.value = r.value.replace(C, y[C]);
- } catch (S) {
- i = { error: S };
- } finally {
- try {
- w && !w.done && (u = b.return) && u.call(b);
- } finally {
- if (i) throw i.error;
- }
- }
- }
- }
- }, o.prototype.afterChange = function(r) {
- return n.__awaiter(this, void 0, Promise, function() {
- var i;
- return n.__generator(this, function(u) {
- return (i = this.jodit).editor ? ((0, m.$$)("img", i.editor).forEach(function(v) {
- (0, m.dataBind)(v, s) || ((0, m.dataBind)(v, s, !0), v.complete || i.e.on(v, "load", function y() {
- var g;
- !i.isInDestruct && ((g = i.e) === null || g === void 0 || g.fire("resize")), i.e.off(v, "load", y);
- }), v.src && /^data:/.test(v.src) && function(y, g) {
- if (y.o.imageProcessor.replaceDataURIToBlobIdInView && typeof ArrayBuffer != "undefined" && typeof URL != "undefined") {
- var b = g.src, w = function(S) {
- for (var j = atob(S.split(",")[1]), E = S.split(",")[0].split(":")[1].split(";")[0], x = new ArrayBuffer(j.length), k = new Uint8Array(x), I = 0; j.length > I; I++) k[I] = j.charCodeAt(I);
- return new Blob([x], { type: E });
- }(b);
- g.src = URL.createObjectURL(w), y.e.fire("internalUpdate");
- var C = y.buffer.get(c) || {};
- C[g.src] = b, y.buffer.set(c, C);
- }
- }(i, v), i.e.on(v, "mousedown touchstart", function() {
- i.s.select(v);
- }));
- }), [2]) : [2];
- });
- });
- }, n.__decorate([(0, f.watch)(":afterGetValueFromEditor")], o.prototype, "onAfterGetValueFromEditor", null), n.__decorate([(0, f.watch)(":beforeSetElementValue")], o.prototype, "onBeforeSetElementValue", null), n.__decorate([(0, f.watch)([":change", ":afterInit", ":changePlace"]), (0, f.debounce)()], o.prototype, "afterChange", null), o;
- }(h.Plugin);
- t.imageProcessor = p, a.pluginSystem.add("imageProcessor", p);
- }, 1601: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.image = { dialogWidth: 600, openOnDblClick: !0, editSrc: !0, useImageEditor: !0, editTitle: !0, editAlt: !0, editLink: !0, editSize: !0, editBorderRadius: !0, editMargins: !0, editClass: !0, availableClasses: [], editStyle: !0, editId: !0, editAlign: !0, showPreview: !0, selectImageAfterClose: !0 };
- }, 15747: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.imageProperties = void 0;
- var n = e(20255);
- e(9947);
- var m = e(87837), h = e(40332), f = e(718), d = e(96516), a = e(43441), s = e(35503), c = e(17332), p = e(49391), l = e(27506), o = e(50109);
- e(1601);
- var r = function(v) {
- return v = (0, h.trim)(v), /^[0-9]+$/.test(v) ? v + "px" : v;
- }, i = function(v) {
- return /^[-+]?[0-9.]+px$/.test(v.toString()) ? parseFloat(v.toString()) : v;
- }, u = function(v) {
- function y() {
- var g = v !== null && v.apply(this, arguments) || this;
- return g.state = { image: new Image(), get ratio() {
- return this.image.naturalWidth / this.image.naturalHeight || 1;
- }, sizeIsLocked: !0, marginIsLocked: !0 }, g.activeTabState = { __activeTab: "Image" }, g;
- }
- return n.__extends(y, v), y.prototype.onChangeMarginIsLocked = function() {
- var g = this;
- if (this.form) {
- var b = (0, h.refs)(this.form), w = b.lockMargin;
- [b.marginRight, b.marginBottom, b.marginLeft].forEach(function(C) {
- (0, h.attr)(C, "disabled", g.state.marginIsLocked || null);
- }), w.innerHTML = m.Icon.get(this.state.marginIsLocked ? "lock" : "unlock");
- }
- }, y.prototype.onChangeSizeIsLocked = function() {
- if (this.form) {
- var g = (0, h.refs)(this.form), b = g.lockSize, w = g.imageWidth;
- b.innerHTML = m.Icon.get(this.state.sizeIsLocked ? "lock" : "unlock"), b.classList.remove("jodit-properties__lock"), b.classList.remove("jodit-properties__unlock"), b.classList.add(this.state.sizeIsLocked ? "jodit-properties__lock" : "jodit-properties__unlock"), this.j.e.fire(w, "change");
- }
- }, y.prototype.open = function() {
- return this.makeForm(), this.activeTabState.__activeTab = "Image", this.j.e.fire("hidePopup"), (0, h.markOwner)(this.j, this.dialog.container), this.state.marginIsLocked = !0, this.state.sizeIsLocked = !0, this.onChangeMarginIsLocked(), this.onChangeSizeIsLocked(), this.updateValues(), this.dialog.open().setModal(!0).setPosition(), !1;
- }, y.prototype.makeForm = function() {
- var g = this;
- if (!this.dialog) {
- this.dialog = this.j.dlg({ minWidth: Math.min(400, screen.width), minHeight: 590, buttons: ["fullsize", "dialog.close"] });
- var b = this.j, w = b.o, C = b.i18n.bind(b), S = { check: (0, d.Button)(b, "ok", "Apply", "primary"), remove: (0, d.Button)(b, "bin", "Delete") };
- b.e.on(this.dialog, "afterClose", function() {
- g.state.image.parentNode && w.image.selectImageAfterClose && b.s.select(g.state.image);
- }), S.remove.onAction(function() {
- b.s.removeNode(g.state.image), g.dialog.close();
- });
- var j = this.dialog;
- j.setHeader(C("Image properties"));
- var E = (0, p.form)(b);
- this.form = E, j.setContent(E);
- var x = (0, h.refs)(this.form).tabsBox;
- x && x.appendChild((0, f.TabsWidget)(b, [{ name: "Image", content: (0, l.mainTab)(b) }, { name: "Advanced", content: (0, o.positionTab)(b) }], this.activeTabState)), S.check.onAction(this.onApply);
- var k = (0, h.refs)(this.form), I = k.editImage;
- b.e.on(k.changeImage, "click", this.openImagePopup), w.image.useImageEditor && b.e.on(I, "click", this.openImageEditor);
- var M = (0, h.refs)(E), T = M.lockSize, O = M.lockMargin, L = M.imageWidth, N = M.imageHeight;
- T && b.e.on(T, "click", function() {
- g.state.sizeIsLocked = !g.state.sizeIsLocked;
- }), b.e.on(O, "click", function(q) {
- g.state.marginIsLocked = !g.state.marginIsLocked, q.preventDefault();
- });
- var H = function(q) {
- if ((0, h.isNumeric)(L.value) && (0, h.isNumeric)(N.value)) {
- var F = parseFloat(L.value), U = parseFloat(N.value);
- q.target === L ? N.value = Math.round(F / g.state.ratio).toString() : L.value = Math.round(U * g.state.ratio).toString();
- }
- };
- b.e.on([L, N], "change keydown mousedown paste", function(q) {
- g.state.sizeIsLocked && b.async.setTimeout(H.bind(g, q), { timeout: b.defaultTimeout, label: "image-properties-changeSize" });
- }), j.setFooter([S.remove, S.check]), j.setSize(this.j.o.image.dialogWidth);
- }
- }, y.prototype.updateValues = function() {
- var g, b, w = this, C = this.j.o, S = this.state.image, j = (0, h.refs)(this.form), E = j.marginTop, x = j.marginRight, k = j.marginBottom, I = j.marginLeft, M = j.imageSrc, T = j.id, O = j.classes, L = j.align, N = j.style, H = j.imageTitle, q = j.imageAlt, F = j.borderRadius, U = j.imageLink, Y = j.imageWidth, P = j.imageHeight, D = j.imageLinkOpenInNewTab, z = j.imageViewSrc, R = j.lockSize;
- j.lockMargin.checked = w.state.marginIsLocked, R.checked = w.state.sizeIsLocked, M.value = (0, h.attr)(S, "src") || "", z && (0, h.attr)(z, "src", (0, h.attr)(S, "src") || ""), function() {
- H.value = (0, h.attr)(S, "title") || "", q.value = (0, h.attr)(S, "alt") || "";
- var A = m.Dom.closest(S, "a", w.j.editor);
- A ? (U.value = (0, h.attr)(A, "href") || "", D.checked = (0, h.attr)(A, "target") === "_blank") : (U.value = "", D.checked = !1);
- }(), g = (0, h.attr)(S, "width") || (0, h.css)(S, "width", !0) || !1, b = (0, h.attr)(S, "height") || (0, h.css)(S, "height", !0) || !1, Y.value = g !== !1 ? i(g).toString() : S.offsetWidth.toString(), P.value = b !== !1 ? i(b).toString() : S.offsetHeight.toString(), w.state.sizeIsLocked = function() {
- if (!(0, h.isNumeric)(Y.value) || !(0, h.isNumeric)(P.value)) return !1;
- var A = parseFloat(Y.value), B = parseFloat(P.value);
- return 1 > Math.abs(A - B * w.state.ratio);
- }(), function() {
- if (C.image.editMargins) {
- var A = !0, B = !1;
- [E, x, k, I].forEach(function(X) {
- var W = (0, h.attr)(X, "data-ref") || "", Q = S.style.getPropertyValue((0, h.kebabCase)(W));
- if (!Q) return B = !0, void (X.value = "");
- /^[0-9]+(px)?$/.test(Q) && (Q = parseInt(Q, 10)), X.value = Q.toString() || "", (B && X.value || A && W !== "marginTop" && X.value !== E.value) && (A = !1);
- }), w.state.marginIsLocked = A;
- }
- }(), O.value = ((0, h.attr)(S, "class") || "").replace(/jodit_focused_image[\s]*/, ""), T.value = (0, h.attr)(S, "id") || "", F.value = (parseInt(S.style.borderRadius || "0", 10) || "0").toString(), S.style.cssFloat && ["left", "right"].indexOf(S.style.cssFloat.toLowerCase()) !== -1 ? L.value = (0, h.css)(S, "float") : (0, h.css)(S, "display") === "block" && S.style.marginLeft === "auto" && S.style.marginRight === "auto" && (L.value = "center"), N.value = (0, h.attr)(S, "style") || "";
- }, y.prototype.onApply = function() {
- var g = (0, h.refs)(this.form), b = g.imageSrc, w = g.borderRadius, C = g.imageTitle, S = g.imageAlt, j = g.imageLink, E = g.imageWidth, x = g.imageHeight, k = g.marginTop, I = g.marginRight, M = g.marginBottom, T = g.marginLeft, O = g.imageLinkOpenInNewTab, L = g.align, N = g.classes, H = g.id, q = this.j.o, F = this.state.image;
- if (q.image.editStyle && (0, h.attr)(F, "style", g.style.value || null), !b.value) return m.Dom.safeRemove(F), void this.dialog.close();
- (0, h.attr)(F, "src", b.value), F.style.borderRadius = w.value !== "0" && /^[0-9]+$/.test(w.value) ? w.value + "px" : "", (0, h.attr)(F, "title", C.value || null), (0, h.attr)(F, "alt", S.value || null);
- var U = m.Dom.closest(F, "a", this.j.editor);
- if (j.value ? (U || (U = m.Dom.wrap(F, "a", this.j.createInside)), (0, h.attr)(U, "href", j.value), (0, h.attr)(U, "target", O.checked ? "_blank" : null)) : U && U.parentNode && U.parentNode.replaceChild(F, U), E.value !== F.offsetWidth.toString() || x.value !== F.offsetHeight.toString()) {
- var Y = (0, h.trim)(E.value) ? r(E.value) : null, P = (0, h.trim)(x.value) ? r(x.value) : null;
- (0, h.css)(F, { width: Y, height: P }), (0, h.attr)(F, "width", (0, h.attr)(F, "width") ? Y : null), (0, h.attr)(F, "height", (0, h.attr)(F, "height") ? P : null);
- }
- var D = [k, I, M, T];
- q.image.editMargins && (this.state.marginIsLocked ? (0, h.css)(F, "margin", r(k.value)) : D.forEach(function(z) {
- var R = (0, h.attr)(z, "data-ref") || "";
- (0, h.css)(F, R, r(z.value));
- })), q.image.editClass && (0, h.attr)(F, "class", N.value || null), q.image.editId && (0, h.attr)(F, "id", H.value || null), q.image.editAlign && (0, h.hAlignElement)(F, L.value), this.j.synchronizeValues(), this.dialog.close();
- }, y.prototype.openImageEditor = function() {
- var g = this, b = (0, h.attr)(this.state.image, "src") || "", w = this.j.c.element("a"), C = function() {
- w.host === location.host || g.j.confirm("You can only edit your own images. Download this image on the host?", function(S) {
- S && g.j.uploader && g.j.uploader.uploadRemoteImage(w.href.toString(), function(j) {
- g.j.alert("The image has been successfully uploaded to the host!", function() {
- (0, h.isString)(j.newfilename) && ((0, h.attr)(g.state.image, "src", j.baseurl + j.newfilename), g.updateValues());
- });
- }, function(j) {
- g.j.alert("There was an error loading %s", j.message);
- });
- });
- };
- w.href = b, this.j.filebrowser.dataProvider.getPathByUrl(w.href.toString()).then(function(S) {
- s.openImageEditor.call(g.j.filebrowser, w.href, S.name, S.path, S.source, function() {
- var j = (/* @__PURE__ */ new Date()).getTime();
- (0, h.attr)(g.state.image, "src", b + (b.indexOf("?") !== -1 ? "" : "?") + "&_tmp=" + j.toString()), g.updateValues();
- }, function(j) {
- g.j.alert(j.message);
- });
- }).catch(function(S) {
- g.j.alert(S.message, C);
- });
- }, y.prototype.openImagePopup = function(g) {
- var b = this, w = new m.Popup(this.j), C = (0, h.refs)(this.form).changeImage;
- w.setZIndex(this.dialog.getZIndex() + 1), w.setContent((0, f.FileSelectorWidget)(this.j, { upload: function(S) {
- S.files && S.files.length && (0, h.attr)(b.state.image, "src", S.baseurl + S.files[0]), b.updateValues(), w.close();
- }, filebrowser: function(S) {
- S && (0, h.isArray)(S.files) && S.files.length && ((0, h.attr)(b.state.image, "src", S.files[0]), w.close(), b.updateValues());
- } }, this.state.image, w.close)).open(function() {
- return (0, h.position)(C);
- }), g.stopPropagation();
- }, y.prototype.afterInit = function(g) {
- var b = this, w = this;
- g.e.on("afterConstructor changePlace", function() {
- g.e.off(g.editor, ".imageproperties").on(g.editor, "dblclick.imageproperties", function(C) {
- var S = C.target;
- if (m.Dom.isTag(S, "img")) if (g.o.image.openOnDblClick) {
- if (b.j.e.fire("openOnDblClick", S) === !1) return;
- w.state.image = S, g.o.readonly || (C.stopImmediatePropagation(), C.preventDefault(), w.open());
- } else C.stopImmediatePropagation(), g.s.select(S);
- });
- }).on("openImageProperties.imageproperties", function(C) {
- b.state.image = C, b.open();
- });
- }, y.prototype.beforeDestruct = function(g) {
- this.dialog && this.dialog.destruct(), g.e.off(g.editor, ".imageproperties").off(".imageproperties");
- }, n.__decorate([(0, a.watch)("state.marginIsLocked")], y.prototype, "onChangeMarginIsLocked", null), n.__decorate([(0, a.watch)("state.sizeIsLocked")], y.prototype, "onChangeSizeIsLocked", null), n.__decorate([a.autobind], y.prototype, "onApply", null), n.__decorate([a.autobind], y.prototype, "openImageEditor", null), n.__decorate([a.autobind], y.prototype, "openImagePopup", null), y;
- }(m.Plugin);
- t.imageProperties = u, c.pluginSystem.add("imageProperties", u);
- }, 49391: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.form = void 0;
- var n = e(77904);
- t.form = function(m) {
- var h = m.o.image, f = h.showPreview, d = h.editSize, a = n.Icon.get.bind(n.Icon);
- return m.c.fromHTML(`<form class="jodit-properties">
- <div class="jodit-grid jodit-grid_xs-column">
- <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
- <div class="jodit-properties_view_box">
- <div style="`.concat(f ? "" : "display:none", `" class="jodit-properties_image_view">
- <img data-ref="imageViewSrc" src="" alt=""/>
- </div>
- <div style="`).concat(d ? "" : "display:none", `" class="jodit-form__group jodit-properties_image_sizes">
- <input data-ref="imageWidth" type="text" class="jodit-input"/>
- <a data-ref="lockSize" class="jodit-properties__lock">`).concat(a("lock"), `</a>
- <input data-ref="imageHeight" type="text" class="imageHeight jodit-input"/>
- </div>
- </div>
- </div>
- <div data-ref="tabsBox" class="jodit_col-lg-3-5 jodit_col-xs-5-5"></div>
- </div>
- </form>`));
- };
- }, 27506: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.mainTab = void 0;
- var n = e(77904);
- t.mainTab = function(m) {
- var h = m.o, f = m.i18n.bind(m), d = n.Icon.get.bind(n.Icon), a = h.filebrowser.ajax.url || h.uploader.url, s = h.image.useImageEditor;
- return m.c.fromHTML('<div style="'.concat(h.image.editSrc ? "" : "display:none", `" class="jodit-form__group">
- <label>`).concat(f("Src"), `</label>
- <div class="jodit-input_group">
- <input data-ref="imageSrc" class="jodit-input" type="text"/>
- <div
- class="jodit-input_group-buttons"
- style="`).concat(a ? "" : "display: none", `"
- >
- <a
- data-ref="changeImage"
- class="jodit-button"
- >`).concat(d("image"), `</a>
- <a
- data-ref="editImage"
- class="jodit-button"
- style="`).concat(s ? "" : "display: none", `"
- >`).concat(d("crop"), `</a>
- </div>
- </div>
- </div>
- <div style="`).concat(h.image.editTitle ? "" : "display:none", `" class="jodit-form__group">
- <label>`).concat(f("Title"), `</label>
- <input data-ref="imageTitle" type="text" class="jodit-input"/>
- </div>
- <div style="`).concat(h.image.editAlt ? "" : "display:none", `" class="jodit-form__group">
- <label>`).concat(f("Alternative"), `</label>
- <input data-ref="imageAlt" type="text" class="jodit-input"/>
- </div>
- <div style="`).concat(h.image.editLink ? "" : "display:none", `" class="jodit-form__group">
- <label>`).concat(f("Link"), `</label>
- <input data-ref="imageLink" type="text" class="jodit-input"/>
- </div>
- <div style="`).concat(h.image.editLink ? "" : "display:none", `" class="jodit-form__group">
- <label class="jodit_vertical_middle">
- <input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>
- <span>`).concat(f("Open link in new tab"), `</span>
- </label>
- </div>`));
- };
- }, 50109: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.positionTab = void 0;
- var n = e(77904);
- t.positionTab = function(m) {
- var h = m.o, f = m.i18n.bind(m), d = n.Icon.get.bind(n.Icon), a = [];
- return h.image.availableClasses.length > 0 ? (a.push('<select data-ref="classes" class="jodit-input jodit-select">'), h.image.availableClasses.forEach(function(s) {
- a.push(typeof s == "string" ? '<option value="'.concat(s, '">').concat(s, "</option>") : '<option value="'.concat(s[0], '">').concat(s[1], "</option>"));
- }), a.push("</select>")) : a.push('<input data-ref="classes" type="text" class="jodit-input"/>'), m.c.fromHTML('<div style="'.concat(h.image.editMargins ? "" : "display:none", `" class="jodit-form__group">
- <label>`).concat(f("Margins"), `</label>
- <div class="jodit-grid jodit_vertical_middle">
- <input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="`).concat(f("top"), `"/>
- <a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">`).concat(d("lock"), `</a>
- <input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="`).concat(f("right"), `"/>
- <input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="`).concat(f("bottom"), `"/>
- <input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="`).concat(f("left"), `"/>
- </div>
- </div>
- <div
- style="`).concat(h.image.editAlign ? "" : "display:none", `"
- class="jodit-form__group"
- >
- <label>`).concat(f("Align"), `</label>
- <select data-ref="align" class="jodit-select">
- <option value="">`).concat(f("--Not Set--"), `</option>
- <option value="left">`).concat(f("Left"), `</option>
- <option value="center">`).concat(f("Center"), `</option>
- <option value="right">`).concat(f("Right"), `</option>
- </select>
- </div>
- <div style="`).concat(h.image.editStyle ? "" : "display:none", `" class="jodit-form__group">
- <label>`).concat(f("Styles"), `</label>
- <input data-ref="style" type="text" class="jodit-input"/>
- </div>
- <div style="`).concat(h.image.editClass ? "" : "display:none", `" class="jodit-form__group">
- <label>`).concat(f("Classes"), `</label>
- `).concat(a.join(""), `
- </div>
- <div style="`).concat(h.image.editId ? "" : "display:none", `" class="jodit-form__group">
- <label>Id</label>
- <input data-ref="id" type="text" class="jodit-input"/>
- </div>
- <div
- style="`).concat(h.image.editBorderRadius ? "" : "display:none", `"
- class="jodit-form__group"
- >
- <label>`).concat(f("Border radius"), `</label>
- <input data-ref="borderRadius" type="number" class="jodit-input"/>
- </div>`));
- };
- }, 67547: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.image = void 0;
- var n = e(20255), m = e(64968), h = e(40332), f = e(718), d = e(93166), a = e(17332);
- function s(c) {
- c.registerButton({ name: "image", group: "media" });
- }
- e(77904).Icon.set("image", e(53477)), d.Config.prototype.controls.image = { popup: function(c, p, l, o) {
- var r = null;
- return p && !m.Dom.isText(p) && m.Dom.isHTMLElement(p) && (m.Dom.isTag(p, "img") || (0, h.$$)("img", p).length) && (r = m.Dom.isTag(p, "img") ? p : (0, h.$$)("img", p)[0]), c.s.save(), (0, f.FileSelectorWidget)(c, { filebrowser: function(i) {
- c.s.restore(), i.files && i.files.forEach(function(u) {
- return c.s.insertImage(i.baseurl + u, null, c.o.imageDefaultWidth);
- }), o();
- }, upload: !0, url: function(i, u) {
- return n.__awaiter(void 0, void 0, void 0, function() {
- var v;
- return n.__generator(this, function(y) {
- switch (y.label) {
- case 0:
- return c.s.restore(), /^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(i) && (i = "//" + i), (v = r || c.createInside.element("img")).setAttribute("src", i), v.setAttribute("alt", u), r ? [3, 2] : [4, c.s.insertImage(v, null, c.o.imageDefaultWidth)];
- case 1:
- y.sent(), y.label = 2;
- case 2:
- return o(), [2];
- }
- });
- });
- } }, r, o);
- }, tags: ["img"], tooltip: "Insert Image" }, t.image = s, a.pluginSystem.add("image", s);
- }, 2916: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(64968), h = e(77904), f = e(26011);
- h.Icon.set("indent", e(90053)).set("outdent", e(72230)), n.Config.prototype.controls.indent = { tooltip: "Increase Indent" }, n.Config.prototype.controls.outdent = { isDisabled: function(d) {
- var a = d.s.current();
- if (a) {
- var s = m.Dom.closest(a, m.Dom.isBlock, d.editor);
- if (s) {
- var c = (0, f.getKey)(d.o.direction, s);
- return !s.style[c] || 0 >= parseInt(s.style[c], 10);
- }
- }
- return !0;
- }, tooltip: "Decrease Indent" }, n.Config.prototype.indentMargin = 10;
- }, 26011: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.getKey = void 0;
- var n = e(24263);
- t.getKey = function(m, h) {
- return "".concat(n.Dom.isCell(h) ? "padding" : "margin").concat(m === "rtl" ? "Right" : "Left");
- };
- }, 71838: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.indent = void 0;
- var n = e(86893), m = e(64968), h = e(40332), f = e(17332);
- e(2916);
- var d = e(26011);
- function a(s) {
- s.registerButton({ name: "indent", group: "indent" }).registerButton({ name: "outdent", group: "indent" });
- var c = function(p) {
- var l = [];
- return s.s.eachSelection(function(o) {
- s.s.save();
- var r = !!o && m.Dom.up(o, m.Dom.isBlock, s.editor), i = s.o.enter;
- if (!r && o && (r = m.Dom.wrapInline(o, i !== n.BR ? i : n.PARAGRAPH, s)), !r) return s.s.restore(), !1;
- var u = l.includes(r);
- if (r && !u) {
- var v = (0, d.getKey)(s.o.direction, r);
- l.push(r);
- var y = r.style[v] ? parseInt(r.style[v], 10) : 0;
- r.style[v] = (y += s.o.indentMargin * (p === "outdent" ? -1 : 1)) > 0 ? y + "px" : "", (0, h.attr)(r, "style") || (0, h.attr)(r, "style", null);
- }
- s.s.restore();
- }), s.synchronizeValues(), !1;
- };
- s.registerCommand("indent", { exec: c, hotkeys: ["ctrl+]", "cmd+]"] }), s.registerCommand("outdent", { exec: c, hotkeys: ["ctrl+[", "cmd+["] });
- }
- t.indent = a, f.pluginSystem.add("indent", a);
- }, 70022: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(55692), e(66031), e(91241), e(87565), e(60894), e(90302), e(92138), e(88412), e(79308), e(19268), e(30598), e(33122), e(10135), e(66994), e(54798), e(12908), e(65123), e(83228), e(43889), e(93300), e(67547), e(92575), e(15747), e(71838), e(54752), e(54452), e(46324), e(27738), e(61421), e(27582), e(76303), e(19806), e(52598), e(19483), e(15428), e(47224), e(83211), e(88297), e(72930), e(51197), e(2327), e(47608), e(90523), e(69257), e(14889), e(95323), e(37458), e(71003), e(86030), e(17002), e(1557), e(82808), e(48560), e(32246), e(45842), e(23308), e(19889), e(20728), e(96899), e(18238);
- }, 35387: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(77904);
- n.Config.prototype.toolbarInline = !0, n.Config.prototype.toolbarInlineForSelection = !1, n.Config.prototype.toolbarInlineDisableFor = [], n.Config.prototype.toolbarInlineDisabledButtons = ["source"], m.Icon.set("addcolumn", e(78321)).set("addrow", e(77654)).set("merge", e(43371)).set("th", e(52242)).set("splitg", e(44563)).set("splitv", e(53183)).set("th-list", e(18548)), n.Config.prototype.popup = { a: e(27487).Z, img: e(97425).default, cells: e(59500).Z, toolbar: e(55350).Z, jodit: e(66686).Z, iframe: e(66686).Z, "jodit-media": e(66686).Z, selection: ["bold", "underline", "italic", "ul", "ol", `
- `, "outdent", "indent", "fontsize", "brush", "cut", `
- `, "paragraph", "link", "align", "dots"] };
- }, 27487: function(_, t, e) {
- var n = e(76502);
- t.Z = [{ name: "eye", tooltip: "Open link", exec: function(m, h) {
- var f = (0, n.attr)(h, "href");
- h && f && m.ow.open(f);
- } }, { name: "link", tooltip: "Edit link", icon: "pencil" }, "unlink", "brush", "file"];
- }, 59500: function(_, t, e) {
- var n = e(10172), m = e(26911), h = e(718), f = function(d) {
- return d.args && (0, n.isString)(d.args[0]) ? d.args[0].toLowerCase() : "";
- };
- t.Z = [{ name: "brush", popup: function(d, a, s, c) {
- if ((0, n.isJoditObject)(d)) {
- var p = d.getInstance("Table", d.o).getAllSelectedCells();
- if (!p.length) return !1;
- var l = function(o) {
- return (0, h.ColorPickerWidget)(d, function(r) {
- p.forEach(function(i) {
- (0, m.css)(i, o, r);
- }), d.lock(), d.synchronizeValues(), c(), d.unlock();
- }, (0, m.css)(p[0], o));
- };
- return (0, h.TabsWidget)(d, [{ name: "Background", content: l("background-color") }, { name: "Text", content: l("color") }, { name: "Border", content: l("border-color") }]);
- }
- }, tooltip: "Background" }, { name: "valign", list: ["Top", "Middle", "Bottom", "Normal"], childTemplate: function(d, a, s) {
- return s;
- }, exec: function(d, a, s) {
- var c = f(s.control);
- d.getInstance("Table", d.o).getAllSelectedCells().forEach(function(p) {
- (0, m.css)(p, "vertical-align", c === "normal" ? "" : c);
- });
- }, tooltip: "Vertical align" }, { name: "splitv", list: { tablesplitv: "Split vertical", tablesplitg: "Split horizontal" }, tooltip: "Split" }, { name: "align", icon: "left" }, `
- `, { name: "merge", command: "tablemerge", tooltip: "Merge" }, { name: "addcolumn", list: { tableaddcolumnbefore: "Insert column before", tableaddcolumnafter: "Insert column after" }, exec: function(d, a, s) {
- var c = s.control;
- if ((0, n.isJoditObject)(d)) {
- var p = f(c);
- d.execCommand(p, !1, a);
- }
- }, tooltip: "Add column" }, { name: "addrow", list: { tableaddrowbefore: "Insert row above", tableaddrowafter: "Insert row below" }, exec: function(d, a, s) {
- var c = s.control;
- if ((0, n.isJoditObject)(d)) {
- var p = f(c);
- d.execCommand(p, !1, a);
- }
- }, tooltip: "Add row" }, { name: "delete", icon: "bin", list: { tablebin: "Delete table", tablebinrow: "Delete row", tablebincolumn: "Delete column", tableempty: "Empty cell" }, exec: function(d, a, s) {
- var c = s.control;
- if ((0, n.isJoditObject)(d)) {
- var p = f(c);
- d.execCommand(p, !1, a), d.e.fire("hidePopup");
- }
- }, tooltip: "Delete" }];
- }, 66686: function(_, t, e) {
- var n = e(97425);
- t.Z = [{ name: "bin", tooltip: "Delete", exec: function(m, h) {
- h && m.s.removeNode(h);
- } }, n.align];
- }, 97425: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.align = void 0;
- var n = e(64968), m = e(24421), h = e(26911), f = e(60303);
- t.align = { name: "left", childTemplate: function(d, a, s) {
- return s;
- }, list: ["Left", "Right", "Center", "Normal"], exec: function(d, a, s) {
- var c = s.control;
- if (n.Dom.isTag(a, ["img", "jodit", "jodit-media"])) {
- var p = c.args && (0, m.isString)(c.args[0]) ? c.args[0].toLowerCase() : "";
- if (!p) return !1;
- (0, f.hAlignElement)(a, p), n.Dom.isTag(a, ["jodit", "jodit-media"]) && a.firstElementChild && (0, f.hAlignElement)(a.firstElementChild, p), d.synchronizeValues(), d.e.fire("recalcPositionPopup");
- }
- }, tooltip: "Horizontal align" }, t.default = [{ name: "delete", icon: "bin", tooltip: "Delete", exec: function(d, a) {
- a && d.s.removeNode(a);
- } }, { name: "pencil", exec: function(d, a) {
- a.tagName.toLowerCase() === "img" && d.e.fire("openImageProperties", a);
- }, tooltip: "Edit" }, { name: "valign", list: ["Top", "Middle", "Bottom", "Normal"], tooltip: "Vertical align", exec: function(d, a, s) {
- var c = s.control;
- if (n.Dom.isTag(a, "img")) {
- var p = c.args && (0, m.isString)(c.args[0]) ? c.args[0].toLowerCase() : "";
- if (!p) return !1;
- (0, h.css)(a, "vertical-align", p === "normal" ? "" : p), d.e.fire("recalcPositionPopup");
- }
- } }, t.align];
- }, 55350: function(_, t) {
- t.Z = ["bold", "italic", "|", "ul", "ol", "eraser", "|", "fontsize", "brush", "paragraph", "---", "image", "table", `
- `, "link", "|", "align", "|", "undo", "redo", "|", "copyformat", "fullsize", "---", "dots"];
- }, 54752: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.inlinePopup = void 0;
- var n = e(20255);
- e(45109);
- var m = e(57549), h = e(81438), f = e(35799), d = e(40332), a = e(64968), s = e(2074), c = e(43441), p = e(17332);
- e(35387);
- var l = function(o) {
- function r() {
- var i = o !== null && o.apply(this, arguments) || this;
- return i.requires = ["select"], i.type = null, i.popup = new f.Popup(i.jodit, !1), i.toolbar = (0, h.makeCollection)(i.jodit, i.popup), i.snapRange = null, i.elmsList = (0, d.keys)(i.j.o.popup, !1).filter(function(u) {
- return !i.isExcludedTarget(u);
- }), i;
- }
- return n.__extends(r, o), r.prototype.onClick = function(i) {
- var u = this, v = this.elmsList, y = a.Dom.isTag(i, "img") ? i : a.Dom.closest(i, v, this.j.editor);
- if (y && this.canShowPopupForType(y.nodeName.toLowerCase())) return this.showPopup(function() {
- return (0, d.position)(y, u.j);
- }, y.nodeName.toLowerCase(), y), !1;
- }, r.prototype.showPopup = function(i, u, v) {
- if (u = u.toLowerCase(), !this.canShowPopupForType(u)) return !1;
- if (this.type !== u || v !== this.previousTarget) {
- this.previousTarget = v;
- var y = this.j.o.popup[u], g = void 0;
- g = (0, d.isFunction)(y) ? y(this.j, v, this.popup.close) : y, (0, d.isArray)(g) && (this.toolbar.build(g, v), this.toolbar.buttonSize = this.j.o.toolbarButtonSize, g = this.toolbar.container), this.popup.setContent(g), this.type = u;
- }
- return this.popup.open(i), !0;
- }, r.prototype.hidePopup = function(i) {
- (0, d.isString)(i) && i !== this.type || this.popup.close();
- }, r.prototype.onOutsideClick = function() {
- this.popup.close();
- }, r.prototype.canShowPopupForType = function(i) {
- var u = this.j.o.popup[i.toLowerCase()];
- return !(this.j.o.readonly || !this.j.o.toolbarInline || !u || this.isExcludedTarget(i));
- }, r.prototype.isExcludedTarget = function(i) {
- return (0, d.splitArray)(this.j.o.toolbarInlineDisableFor).map(function(u) {
- return u.toLowerCase();
- }).includes(i.toLowerCase());
- }, r.prototype.afterInit = function(i) {
- var u = this;
- this.j.e.on("getDiffButtons.mobile", function(v) {
- if (u.toolbar === v) {
- var y = u.toolbar.getButtonsNames();
- return (0, d.toArray)(i.registeredButtons).filter(function(g) {
- return !u.j.o.toolbarInlineDisabledButtons.includes(g.name);
- }).filter(function(g) {
- var b = (0, d.isString)(g) ? g : g.name;
- return b && b !== "|" && b !== `
- ` && !y.includes(b);
- });
- }
- }).on("hidePopup", this.hidePopup).on("showInlineToolbar", this.showInlineToolbar).on("showPopup", function(v, y, g) {
- u.showPopup(y, g || ((0, d.isString)(v) ? v : v.nodeName), (0, d.isString)(v) ? void 0 : v);
- }).on("mousedown keydown", this.onSelectionStart).on("change", function() {
- u.popup.isOpened && u.previousTarget && !u.previousTarget.parentNode && (u.hidePopup(), u.previousTarget = void 0);
- }).on([this.j.ew, this.j.ow], "mouseup keyup", this.onSelectionEnd), this.addListenersForElements();
- }, r.prototype.onSelectionStart = function() {
- this.snapRange = this.j.s.range.cloneRange();
- }, r.prototype.onSelectionEnd = function(i) {
- if (!(i && i.target && s.UIElement.closestElement(i.target, f.Popup))) {
- var u = this.snapRange, v = this.j.s.range;
- u && !v.collapsed && v.startContainer === u.startContainer && v.startOffset === u.startOffset && v.endContainer === u.endContainer && v.endOffset === u.endOffset || this.onSelectionChange();
- }
- }, r.prototype.onSelectionChange = function() {
- if (this.j.o.toolbarInlineForSelection) {
- var i = "selection", u = this.j.s.sel, v = this.j.s.range;
- u != null && u.isCollapsed || this.isSelectedTarget(v) || this.tableModule.getAllSelectedCells().length ? this.type === i && this.popup.isOpened && this.hidePopup() : this.j.s.current() && this.showPopup(function() {
- return v.getBoundingClientRect();
- }, i);
- }
- }, r.prototype.isSelectedTarget = function(i) {
- var u = i.startContainer;
- return a.Dom.isElement(u) && u === i.endContainer && a.Dom.isTag(u.childNodes[i.startOffset], (0, d.keys)(this.j.o.popup, !1)) && i.startOffset === i.endOffset - 1;
- }, Object.defineProperty(r.prototype, "tableModule", { get: function() {
- return this.j.getInstance("Table", this.j.o);
- }, enumerable: !1, configurable: !0 }), r.prototype.beforeDestruct = function(i) {
- i.e.off("showPopup").off([this.j.ew, this.j.ow], "mouseup keyup", this.onSelectionEnd), this.removeListenersForElements();
- }, r.prototype._eventsList = function() {
- var i = this.elmsList;
- return i.map(function(u) {
- return (0, d.camelCase)("click_".concat(u));
- }).concat(i.map(function(u) {
- return (0, d.camelCase)("touchstart_".concat(u));
- })).join(" ");
- }, r.prototype.addListenersForElements = function() {
- this.j.e.on(this._eventsList(), this.onClick);
- }, r.prototype.removeListenersForElements = function() {
- this.j.e.off(this._eventsList(), this.onClick);
- }, r.prototype.showInlineToolbar = function(i) {
- var u = this;
- this.showPopup(function() {
- return i || u.j.s.range.getBoundingClientRect();
- }, "toolbar");
- }, n.__decorate([c.autobind], r.prototype, "onClick", null), n.__decorate([(0, c.wait)(function(i) {
- return !i.j.isLocked;
- })], r.prototype, "showPopup", null), n.__decorate([(0, c.watch)(":clickEditor"), c.autobind], r.prototype, "hidePopup", null), n.__decorate([(0, c.watch)(":outsideClick")], r.prototype, "onOutsideClick", null), n.__decorate([c.autobind], r.prototype, "onSelectionStart", null), n.__decorate([c.autobind], r.prototype, "onSelectionEnd", null), n.__decorate([(0, c.debounce)(function(i) {
- return i.defaultTimeout;
- })], r.prototype, "onSelectionChange", null), n.__decorate([c.autobind], r.prototype, "showInlineToolbar", null), r;
- }(m.Plugin);
- t.inlinePopup = l, p.pluginSystem.add("inlinePopup", l);
- }, 54452: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.justify = void 0;
- var n = e(93166), m = e(24263), h = e(26911), f = e(60303), d = e(17332);
- function a(s) {
- s.registerButton({ name: "align", group: "indent" });
- var c = function(p) {
- return s.s.focus(), s.s.eachSelection(function(l) {
- if (l) {
- var o = m.Dom.up(l, m.Dom.isBlock, s.editor);
- o || (o = m.Dom.wrapInline(l, s.o.enterBlock, s)), (0, f.alignElement)(p, o);
- }
- }), !1;
- };
- s.registerCommand("justifyfull", c), s.registerCommand("justifyright", c), s.registerCommand("justifyleft", c), s.registerCommand("justifycenter", c);
- }
- e(77904).Icon.set("justify", e(87498)), n.Config.prototype.controls.align = { name: "left", tooltip: "Align", update: function(s, c) {
- var p = s.control, l = c.s.current();
- if (l) {
- var o = m.Dom.closest(l, m.Dom.isBlock, c.editor) || c.editor, r = (0, h.css)(o, "text-align").toString();
- p.defaultValue && p.defaultValue.indexOf(r) !== -1 && (r = "left"), p.data && p.data.currentValue !== r && p.list && p.list.indexOf(r) !== -1 && (c.o.textIcons ? s.state.text = r : s.state.icon.name = r, p.data.currentValue = r);
- }
- }, isActive: function(s, c) {
- var p = s.s.current();
- if (p && c.defaultValue) {
- var l = m.Dom.closest(p, m.Dom.isBlock, s.editor) || s.editor;
- return c.defaultValue.indexOf((0, h.css)(l, "text-align").toString()) === -1;
- }
- return !1;
- }, defaultValue: ["left", "start", "inherit"], data: { currentValue: "left" }, list: ["center", "left", "right", "justify"] }, n.Config.prototype.controls.center = { command: "justifyCenter", css: { "text-align": "center" }, tooltip: "Align Center" }, n.Config.prototype.controls.justify = { command: "justifyFull", css: { "text-align": "justify" }, tooltip: "Align Justify" }, n.Config.prototype.controls.left = { command: "justifyLeft", css: { "text-align": "left" }, tooltip: "Align Left" }, n.Config.prototype.controls.right = { command: "justifyRight", css: { "text-align": "right" }, tooltip: "Align Right" }, t.justify = a, d.pluginSystem.add("justify", a);
- }, 46324: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.keyArrowOutside = void 0;
- var n = e(20255), m = e(57549), h = e(43441), f = e(86893), d = e(24263), a = e(17332), s = function(c) {
- function p() {
- return c !== null && c.apply(this, arguments) || this;
- }
- return n.__extends(p, c), p.prototype.afterInit = function(l) {
- }, p.prototype.beforeDestruct = function(l) {
- }, p.prototype.onKeyDownArrow = function(l) {
- var o;
- if (l.key === f.KEY_RIGHT && this.j.selection.isCollapsed()) {
- var r = this.j.selection.range, i = r.endContainer, u = r.endOffset;
- if (d.Dom.isText(i) && ((o = i.nodeValue) === null || o === void 0 ? void 0 : o.length) === u) {
- var v = i.parentNode;
- d.Dom.isInlineBlock(v) && !d.Dom.findNotEmptyNeighbor(v, !1, this.j.editor) && d.Dom.after(v, this.j.createInside.text(f.NBSP_SPACE));
- }
- }
- }, n.__decorate([(0, h.watch)(":keydown")], p.prototype, "onKeyDownArrow", null), p;
- }(m.Plugin);
- t.keyArrowOutside = s, a.pluginSystem.add("keyArrowOutside", s);
- }, 19250: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.limitWords = !1, n.Config.prototype.limitChars = !1, n.Config.prototype.limitHTML = !1;
- }, 27738: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.limit = void 0;
- var n = e(20255), m = e(57549), h = e(86893), f = e(43441), d = e(17332);
- e(19250);
- var a = function(c) {
- function p() {
- return c !== null && c.apply(this, arguments) || this;
- }
- return n.__extends(p, c), p.prototype.afterInit = function(l) {
- var o = this, r = l.o;
- if (l && (r.limitWords || r.limitChars)) {
- var i = null;
- l.e.off(".limit").on("beforePaste.limit", function() {
- i = l.history.snapshot.make();
- }).on("keydown.limit keyup.limit beforeEnter.limit", this.checkPreventKeyPressOrPaste).on("change.limit", this.checkPreventChanging).on("afterPaste.limit", function() {
- if (o.__shouldDenyInput(!0) && i) return l.history.snapshot.restore(i), l.e.fire("denyPaste.limit"), !1;
- });
- }
- }, p.prototype.shouldPreventInsertHTML = function(l) {
- return (!l || !(h.COMMAND_KEYS.includes(l.key) || l.ctrlKey || l.metaKey)) && this.__shouldDenyInput(!1);
- }, p.prototype.__shouldDenyInput = function(l) {
- var o = this.jodit, r = o.o, i = r.limitWords, u = r.limitChars, v = this.__splitWords(o.o.limitHTML ? o.value : o.text);
- if (i && s(v.length, i, l)) return o.e.fire("denyWords.limit limit.limit"), !0;
- var y = !!(u && s(v.join("").length, u, l));
- return y && o.e.fire("denyChars.limit limit.limit"), y;
- }, p.prototype.checkPreventKeyPressOrPaste = function(l) {
- if (this.shouldPreventInsertHTML(l)) return !1;
- }, p.prototype.checkPreventChanging = function(l, o) {
- var r = this.jodit;
- this.__shouldDenyInput(!0) && (r.value = o);
- }, p.prototype.__splitWords = function(l) {
- return l.replace((0, h.INVISIBLE_SPACE_REG_EXP)(), "").split((0, h.SPACE_REG_EXP)()).filter(function(o) {
- return o.length;
- });
- }, p.prototype.beforeDestruct = function(l) {
- l.e.off(".limit");
- }, n.__decorate([f.autobind], p.prototype, "checkPreventKeyPressOrPaste", null), n.__decorate([f.autobind], p.prototype, "checkPreventChanging", null), p;
- }(m.Plugin);
- function s(c, p, l) {
- return l ? c > p : c >= p;
- }
- t.limit = a, d.pluginSystem.add("limit", a);
- }, 29490: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(40332), h = e(77904);
- n.Config.prototype.defaultLineHeight = null, h.Icon.set("line-height", e(7986)), n.Config.prototype.controls.lineHeight = { command: "applyLineHeight", tags: ["ol"], tooltip: "Line height", list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2], exec: function(f, d, a) {
- return (0, m.memorizeExec)(f, d, { control: a.control }, function(s) {
- return s;
- });
- } };
- }, 26752: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
- var n = e(47762);
- t.ar = n;
- var m = e(97495);
- t.cs_cz = m;
- var h = e(80131);
- t.de = h;
- var f = e(1201);
- t.es = f;
- var d = e(89912);
- t.fa = d;
- var a = e(3405);
- t.fr = a;
- var s = e(14129);
- t.he = s;
- var c = e(93729);
- t.hu = c;
- var p = e(16106);
- t.id = p;
- var l = e(89690);
- t.it = l;
- var o = e(33216);
- t.ja = o;
- var r = e(17282);
- t.ko = r;
- var i = e(91761);
- t.nl = i;
- var u = e(61675);
- t.pl = u;
- var v = e(69709);
- t.pt_br = v;
- var y = e(82591);
- t.ru = y;
- var g = e(87649);
- t.tr = g;
- var b = e(60268);
- t.zh_cn = b;
- var w = e(58214);
- t.zh_tw = w;
- }, 61421: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.lineHeight = void 0;
- var n = e(20255), m = e(57549), h = e(40332), f = e(43441), d = e(24263), a = e(17332);
- e(29490);
- var s = function(c) {
- function p(l) {
- var o = c.call(this, l) || this;
- return o.buttons = [{ name: "lineHeight", group: "font" }], (0, a.extendLang)(e(26752)), o;
- }
- return n.__extends(p, c), p.prototype.afterInit = function(l) {
- (0, h.css)(l.editor, { lineHeight: l.o.defaultLineHeight }), l.registerCommand("applyLineHeight", this.applyLineHeight);
- }, p.prototype.applyLineHeight = function(l, o, r) {
- var i, u = this.j, v = u.s, y = u.createInside, g = u.editor, b = u.o;
- v.isFocused() || v.focus(), v.save();
- var w = function(S) {
- var j = d.Dom.closest(S, d.Dom.isBlock, g);
- j || (j = d.Dom.wrap(S, b.enter, y));
- var E = (0, h.css)(j, "lineHeight");
- i === void 0 && (i = E.toString() !== r.toString()), (0, h.css)(j, "lineHeight", i ? r : null);
- };
- try {
- if (v.isCollapsed()) {
- var C = y.fake();
- v.insertNode(C, !1, !1), w(C), d.Dom.safeRemove(C);
- } else v.eachSelection(w);
- } finally {
- v.restore();
- }
- }, p.prototype.beforeDestruct = function(l) {
- (0, h.css)(l.editor, { lineHeight: null });
- }, n.__decorate([f.autobind], p.prototype, "applyLineHeight", null), p;
- }(m.Plugin);
- t.lineHeight = s, a.pluginSystem.add("lineHeight", s);
- }, 56367: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(54238), h = e(24263), f = e(77904);
- n.Config.prototype.link = { formTemplate: m.formTemplate, followOnDblClick: !1, processVideoLink: !0, processPastedLink: !0, noFollowCheckbox: !0, openInNewTabCheckbox: !0, modeClassName: "input", selectMultipleClassName: !0, selectSizeClassName: 3, selectOptionsClassName: [], hotkeys: ["ctrl+k", "cmd+k"] }, f.Icon.set("link", e(23075)).set("unlink", e(10655)), n.Config.prototype.controls.unlink = { exec: function(d, a) {
- var s = h.Dom.closest(a, "a", d.editor);
- s && h.Dom.unwrap(s), d.synchronizeValues(), d.e.fire("hidePopup");
- }, tooltip: "Unlink" }, n.Config.prototype.controls.link = { isActive: function(d) {
- var a = d.s.current();
- return !!(a && h.Dom.closest(a, "a", d.editor));
- }, popup: function(d, a, s, c) {
- return d.e.fire("generateLinkForm.link", a, c);
- }, tags: ["a"], tooltip: "Insert link" };
- }, 27582: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.link = void 0;
- var n = e(20255), m = e(64968), h = e(40332), f = e(57549), d = e(43441), a = e(17332);
- e(56367);
- var s = function(c) {
- function p() {
- var l = c !== null && c.apply(this, arguments) || this;
- return l.buttons = [{ name: "link", group: "insert" }], l;
- }
- return n.__extends(p, c), p.prototype.afterInit = function(l) {
- var o = this;
- l.o.link.followOnDblClick && l.e.on("dblclick.link", this.onDblClickOnLink), l.o.link.processPastedLink && l.e.on("processPaste.link", this.onProcessPasteLink), l.e.on("generateLinkForm.link", this.__generateForm), l.registerCommand("openLinkDialog", { exec: function() {
- var r = l.dlg({ resizable: !1 }), i = o.__generateForm(l.s.current(), function() {
- r.close();
- });
- i.container.classList.add("jodit-dialog_alert"), r.setContent(i), r.open(), l.async.requestIdleCallback(function() {
- var u = (0, h.refs)(i.container).url_input;
- u == null || u.focus();
- });
- }, hotkeys: l.o.link.hotkeys });
- }, p.prototype.onDblClickOnLink = function(l) {
- if (m.Dom.isTag(l.target, "a")) {
- var o = (0, h.attr)(l.target, "href");
- o && (location.href = o, l.preventDefault());
- }
- }, p.prototype.onProcessPasteLink = function(l, o) {
- var r = this.jodit;
- if ((0, h.isURL)(o) && r.o.link.processPastedLink) {
- if (r.e.stopPropagation("processPaste"), r.o.link.processVideoLink) {
- var i = (0, h.convertMediaUrlToVideoEmbed)(o);
- if (i !== o) return r.createInside.fromHTML(i);
- }
- if (r.s.isCollapsed()) {
- var u = r.createInside.element("a");
- return u.setAttribute("href", o), u.textContent = o, r.e.fire("applyLink", r, u, null), u;
- }
- return r.s.applyStyle(void 0, { element: "a", attributes: { href: o } }), !0;
- }
- }, p.prototype.__generateForm = function(l, o) {
- var r, i = this.jodit, u = i.i18n.bind(i), v = i.o.link, y = v.openInNewTabCheckbox, g = v.noFollowCheckbox, b = v.formClassName, w = v.modeClassName, C = (0, v.formTemplate)(i), S = (0, h.isString)(C) ? i.c.fromHTML(C, { target_checkbox_box: y, nofollow_checkbox_box: g }) : C, j = m.Dom.isElement(S) ? S : S.container, E = (0, h.refs)(j), x = E.insert, k = E.unlink, I = E.content_input_box, M = E.target_checkbox, T = E.nofollow_checkbox, O = E.url_input, L = m.Dom.isImage(l), N = E.content_input, H = E.className_input, q = E.className_select;
- N || (N = i.c.element("input", { type: "hidden", ref: "content_input" })), b && j.classList.add(b), L && m.Dom.hide(I);
- var F = function() {
- return r ? r.innerText : (0, h.stripTags)(i.s.range.cloneContents(), i.ed);
- };
- if (r = !(!l || !m.Dom.closest(l, "a", i.editor)) && m.Dom.closest(l, "a", i.editor), !L && l && (N.value = F()), r) {
- if (O.value = (0, h.attr)(r, "href") || "", w) switch (w) {
- case "input":
- H && (H.value = (0, h.attr)(r, "class") || "");
- break;
- case "select":
- if (q) {
- for (var U = 0; q.selectedOptions.length > U; U++) {
- var Y = q.options.item(U);
- Y && (Y.selected = !1);
- }
- ((0, h.attr)(r, "class") || "").split(" ").forEach(function(z) {
- if (z) for (var R = 0; q.options.length > R; R++) {
- var A = q.options.item(R);
- A != null && A.value && A.value === z && (A.selected = !0);
- }
- });
- }
- }
- y && M && (M.checked = (0, h.attr)(r, "target") === "_blank"), g && T && (T.checked = (0, h.attr)(r, "rel") === "nofollow"), x.textContent = u("Update");
- } else m.Dom.hide(k);
- i.editor.normalize();
- var P = i.history.snapshot.make();
- k && i.e.on(k, "click", function(z) {
- i.s.restore(), i.history.snapshot.restore(P), r && m.Dom.unwrap(r), i.synchronizeValues(), o(), z.preventDefault();
- });
- var D = function() {
- if (!O.value.trim().length) return O.focus(), O.classList.add("jodit_error"), !1;
- var z;
- i.s.restore(), i.s.removeMarkers(), i.editor.normalize(), i.history.snapshot.restore(P);
- var R = F() !== N.value.trim(), A = i.createInside;
- if (r) z = [r];
- else {
- if (i.s.isCollapsed()) {
- var B = A.element("a");
- i.s.insertNode(B, !1, !1), z = [B];
- } else {
- var X = i.s.current();
- z = m.Dom.isTag(X, ["img"]) ? [m.Dom.wrap(X, "a", A)] : i.s.wrapInTag("a");
- }
- z.forEach(function(W) {
- return i.s.select(W);
- });
- }
- return z.forEach(function(W) {
- var Q;
- if ((0, h.attr)(W, "href", O.value), w && (H != null ? H : q)) {
- if (w === "input") H.value === "" && W.hasAttribute("class") && (0, h.attr)(W, "class", null), H.value !== "" && (0, h.attr)(W, "class", H.value);
- else if (w === "select") {
- W.hasAttribute("class") && (0, h.attr)(W, "class", null);
- for (var ne = 0; q.selectedOptions.length > ne; ne++) {
- var ce = (Q = q.selectedOptions.item(ne)) === null || Q === void 0 ? void 0 : Q.value;
- ce && W.classList.add(ce);
- }
- }
- }
- if (!L) {
- var re = W.textContent;
- N.value.trim().length ? R && (re = N.value) : re = O.value, re !== W.textContent && (W.textContent = re);
- }
- y && M && (0, h.attr)(W, "target", M.checked ? "_blank" : null), g && T && (0, h.attr)(W, "rel", T.checked ? "nofollow" : null), i.e.fire("applyLink", i, W, S);
- }), i.synchronizeValues(), o(), !1;
- };
- return m.Dom.isElement(S) ? i.e.on(S, "submit", function(z) {
- return z.preventDefault(), z.stopImmediatePropagation(), D(), !1;
- }) : S.onSubmit(D), S;
- }, p.prototype.beforeDestruct = function(l) {
- l.e.off("generateLinkForm.link", this.__generateForm).off("dblclick.link", this.onDblClickOnLink).off("processPaste.link", this.onProcessPasteLink);
- }, n.__decorate([d.autobind], p.prototype, "onDblClickOnLink", null), n.__decorate([d.autobind], p.prototype, "onProcessPasteLink", null), n.__decorate([d.autobind], p.prototype, "__generateForm", null), p;
- }(f.Plugin);
- t.link = s, a.pluginSystem.add("link", s);
- }, 54238: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.formTemplate = void 0;
- var n = e(95963), m = e(96516);
- t.formTemplate = function(h) {
- var f = h.o.link, d = f.openInNewTabCheckbox, a = f.noFollowCheckbox, s = f.modeClassName, c = f.selectSizeClassName, p = f.selectMultipleClassName, l = f.selectOptionsClassName;
- return new n.UIForm(h, [new n.UIBlock(h, [new n.UIInput(h, { name: "url", type: "text", ref: "url_input", label: "URL", placeholder: "http://", required: !0 })]), new n.UIBlock(h, [new n.UIInput(h, { name: "content", ref: "content_input", label: "Text" })], { ref: "content_input_box" }), s ? new n.UIBlock(h, [s === "input" ? new n.UIInput(h, { name: "className", ref: "className_input", label: "Class name" }) : s === "select" ? new n.UISelect(h, { name: "className", ref: "className_select", label: "Class name", size: c, multiple: p, options: l }) : null]) : null, d ? new n.UICheckbox(h, { name: "target", ref: "target_checkbox", label: "Open in new tab" }) : null, a ? new n.UICheckbox(h, { name: "nofollow", ref: "nofollow_checkbox", label: "No follow" }) : null, new n.UIBlock(h, [new m.UIButton(h, { name: "unlink", variant: "default", text: "Unlink" }), new m.UIButton(h, { name: "insert", type: "submit", variant: "primary", text: "Insert" })], { align: "full" })]);
- };
- }, 11737: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.mediaFakeTag = "jodit-media", n.Config.prototype.mediaInFakeBlock = !0, n.Config.prototype.mediaBlocks = ["video", "audio"];
- }, 76303: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.media = void 0;
- var n = e(86893), m = e(76502), h = e(17332);
- function f(d) {
- var a = "jodit_fake_wrapper", s = d.options, c = s.mediaFakeTag, p = s.mediaBlocks;
- s.mediaInFakeBlock && d.e.on("afterGetValueFromEditor", function(l) {
- var o = new RegExp("<".concat(c, "[^>]+data-").concat(a, "[^>]+>([^]+?)</").concat(c, ">"), "ig");
- o.test(l.value) && (l.value = l.value.replace(o, "$1"));
- }).on("change afterInit afterSetMode changePlace", d.async.debounce(function() {
- d.isDestructed || d.getMode() === n.MODE_SOURCE || (0, m.$$)(p.join(","), d.editor).forEach(function(l) {
- (0, m.dataBind)(l, a) || ((0, m.dataBind)(l, a, !0), function(o) {
- var r;
- if (o.parentNode && (0, m.attr)(o.parentNode, "data-jodit_iframe_wrapper")) o = o.parentNode;
- else {
- var i = d.createInside.element(c, ((r = { "data-jodit-temp": 1, contenteditable: !1, draggable: !0 })["data-".concat(a)] = 1, r));
- (0, m.attr)(i, "style", (0, m.attr)(o, "style")), i.style.display = o.style.display === "inline-block" ? "inline-block" : "block", i.style.width = o.offsetWidth + "px", i.style.height = o.offsetHeight + "px", o.parentNode && o.parentNode.insertBefore(i, o), i.appendChild(o), o = i;
- }
- d.e.off(o, "mousedown.select touchstart.select").on(o, "mousedown.select touchstart.select", function() {
- d.s.setCursorAfter(o);
- });
- }(l));
- });
- }, d.defaultTimeout));
- }
- e(11737), t.media = f, h.pluginSystem.add("media", f);
- }, 8860: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(86893), h = e(81438), f = e(40332), d = e(72719);
- n.Config.prototype.mobileTapTimeout = 300, n.Config.prototype.toolbarAdaptive = !0, n.Config.prototype.controls.dots = { mode: m.MODE_SOURCE + m.MODE_WYSIWYG, popup: function(a, s, c, p, l) {
- var o = c.data;
- return o === void 0 && (o = { toolbar: (0, h.makeCollection)(a), rebuild: function() {
- var r;
- if (l) {
- var i = a.e.fire("getDiffButtons.mobile", l.closest(d.ToolbarCollection));
- if (i && o) {
- o.toolbar.build((0, f.splitArray)(i));
- var u = ((r = a.toolbar.firstButton) === null || r === void 0 ? void 0 : r.container.offsetWidth) || 36;
- o.toolbar.container.style.width = 3 * (u + 4) + "px";
- }
- }
- } }, c.data = o), o.rebuild(), o.toolbar;
- }, tooltip: "Show all" };
- }, 19806: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.mobile = void 0;
- var n = e(40332), m = e(97642), h = e(17332);
- function f(d) {
- var a = 0, s = (0, n.splitArray)(d.o.buttons);
- d.o.mobileTapTimeout && d.e.on("touchend", function(c) {
- if (c.changedTouches && c.changedTouches.length) {
- var p = (/* @__PURE__ */ new Date()).getTime(), l = p - a;
- l > d.o.mobileTapTimeout && (a = p, 1.5 * d.o.mobileTapTimeout > l && d.s.insertCursorAtPoint(c.clientX, c.clientY));
- }
- }), d.e.on("getDiffButtons.mobile", function(c) {
- if (c === d.toolbar) {
- var p = (0, m.flatButtonsSet)((0, n.splitArray)(d.o.buttons), d), l = (0, m.flatButtonsSet)(s, d);
- return (0, n.toArray)(p).reduce(function(o, r) {
- return l.has(r) || o.push(r), o;
- }, []);
- }
- }), d.o.toolbarAdaptive && d.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace", function() {
- var c;
- if (d.o.toolbar) {
- var p = ((c = d.container.parentElement) !== null && c !== void 0 ? c : d.container).offsetWidth, l = (0, n.splitArray)(d.isFullSize || p >= d.o.sizeLG ? d.o.buttons : d.o.sizeMD > p ? d.o.sizeSM > p ? d.o.buttonsXS : d.o.buttonsSM : d.o.buttonsMD);
- l.toString() !== s.toString() && (s = l, d.e.fire("closeAllPopups"), d.toolbar.setRemoveButtons(d.o.removeButtons).build(s.concat(d.o.extraButtons)));
- }
- }).on(d.ow, "load resize", function() {
- return d.e.fire("recalcAdaptive");
- });
- }
- e(8860), t.mobile = f, h.pluginSystem.add("mobile", f);
- }, 73013: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(63122), h = function(f, d, a) {
- var s, c = a.control, p = "button".concat(c.command), l = (s = c.args && c.args[0]) !== null && s !== void 0 ? s : (0, m.dataBind)(f, p);
- (0, m.dataBind)(f, p, l), f.execCommand(c.command, !1, l === "default" ? null : l);
- };
- e(77904).Icon.set("ol", e(15476)).set("ul", e(59403)), n.Config.prototype.controls.ul = { command: "insertUnorderedList", tags: ["ul"], tooltip: "Insert Unordered List", list: { default: "Default", circle: "Circle", disc: "Dot", square: "Quadrate" }, exec: h }, n.Config.prototype.controls.ol = { command: "insertOrderedList", tags: ["ol"], tooltip: "Insert Ordered List", list: { default: "Default", "lower-alpha": "Lower Alpha", "lower-greek": "Lower Greek", "lower-roman": "Lower Roman", "upper-alpha": "Upper Alpha", "upper-roman": "Upper Roman" }, exec: h };
- }, 52598: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.orderedList = void 0;
- var n = e(20255), m = e(57549), h = e(43441), f = e(17332);
- e(73013);
- var d = function(a) {
- function s() {
- var c = a !== null && a.apply(this, arguments) || this;
- return c.buttons = [{ name: "ul", group: "list" }, { name: "ol", group: "list" }], c;
- }
- return n.__extends(s, a), s.prototype.afterInit = function(c) {
- c.registerCommand("insertUnorderedList", this.onCommand).registerCommand("insertOrderedList", this.onCommand);
- }, s.prototype.onCommand = function(c, p, l) {
- return this.jodit.s.applyStyle({ listStyleType: l != null ? l : null }, { element: c === "insertunorderedlist" ? "ul" : "ol" }), this.jodit.synchronizeValues(), !1;
- }, s.prototype.beforeDestruct = function(c) {
- }, n.__decorate([h.autobind], s.prototype, "onCommand", null), s;
- }(m.Plugin);
- t.orderedList = d, f.pluginSystem.add("orderedList", d);
- }, 47470: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(86893);
- n.Config.prototype.askBeforePasteFromWord = !0, n.Config.prototype.processPasteFromWord = !0, n.Config.prototype.defaultActionOnPasteFromWord = null, n.Config.prototype.pasteFromWordActionList = [{ value: m.INSERT_AS_HTML, text: "Keep" }, { value: m.INSERT_AS_TEXT, text: "Clean" }, { value: m.INSERT_ONLY_TEXT, text: "Insert only Text" }];
- }, 15428: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.pasteFromWord = void 0;
- var n = e(20255), m = e(57549), h = e(40332), f = e(86893), d = e(43441), a = e(64280), s = e(17332);
- e(47470);
- var c = function(p) {
- function l() {
- var o = p !== null && p.apply(this, arguments) || this;
- return o.requires = ["paste"], o;
- }
- return n.__extends(l, p), l.prototype.afterInit = function(o) {
- }, l.prototype.beforeDestruct = function(o) {
- }, l.prototype.processWordHTML = function(o, r, i) {
- var u = this, v = this.j, y = v.o, g = y.askBeforePasteFromWord, b = y.defaultActionOnPasteFromWord, w = y.defaultActionOnPaste, C = y.pasteFromWordActionList;
- return !(!y.processPasteFromWord || !(0, h.isHtmlFromWord)(r) || (g ? (0, a.askInsertTypeDialog)(v, "The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?", "Word Paste Detected", function(S) {
- u.insertFromWordByType(o, r, S, i);
- }, C) : this.insertFromWordByType(o, r, b || w, i), 0));
- }, l.prototype.insertFromWordByType = function(o, r, i, u) {
- var v;
- switch (i) {
- case f.INSERT_AS_HTML:
- r = (0, h.applyStyles)(r);
- var y = (v = this.j.events) === null || v === void 0 ? void 0 : v.fire("beautifyHTML", r);
- (0, h.isString)(y) && (r = y);
- break;
- case f.INSERT_AS_TEXT:
- r = (0, h.cleanFromWord)(r);
- break;
- case f.INSERT_ONLY_TEXT:
- r = (0, h.stripTags)((0, h.cleanFromWord)(r));
- }
- (0, a.pasteInsertHtml)(o, this.j, r);
- }, n.__decorate([(0, d.watch)(":processHTML")], l.prototype, "processWordHTML", null), l;
- }(m.Plugin);
- t.pasteFromWord = c, s.pluginSystem.add("pasteFromWord", c);
- }, 47224: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.pasteStorage = void 0;
- var n = e(20255);
- e(71708);
- var m = e(86893), h = e(85605), f = e(24263), d = e(40332), a = e(96031), s = e(17332), c = function(p) {
- function l() {
- var o = p !== null && p.apply(this, arguments) || this;
- return o.currentIndex = 0, o.list = [], o.container = null, o.listBox = null, o.previewBox = null, o.dialog = null, o.paste = function() {
- if (o.j.s.focus(), o.j.s.insertHTML(o.list[o.currentIndex]), o.currentIndex !== 0) {
- var r = o.list[0];
- o.list[0] = o.list[o.currentIndex], o.list[o.currentIndex] = r;
- }
- o.dialog && o.dialog.close(), o.j.synchronizeValues(), o.j.e.fire("afterPaste");
- }, o.onKeyDown = function(r) {
- var i = o.currentIndex;
- [m.KEY_UP, m.KEY_DOWN, m.KEY_ENTER].indexOf(r.key) !== -1 && (r.key === m.KEY_UP && (i === 0 ? i = o.list.length - 1 : i -= 1), r.key === m.KEY_DOWN && (i === o.list.length - 1 ? i = 0 : i += 1), r.key !== m.KEY_ENTER ? (i !== o.currentIndex && o.selectIndex(i), r.stopImmediatePropagation(), r.preventDefault()) : o.paste());
- }, o.selectIndex = function(r) {
- o.listBox && (0, d.toArray)(o.listBox.childNodes).forEach(function(i, u) {
- i.classList.remove("jodit_active"), r === u && o.previewBox && (i.classList.add("jodit_active"), o.previewBox.innerHTML = o.list[r], i.focus());
- }), o.currentIndex = r;
- }, o.showDialog = function() {
- 2 > o.list.length || (o.dialog || o.createDialog(), o.listBox && (o.listBox.innerHTML = ""), o.previewBox && (o.previewBox.innerHTML = ""), o.list.forEach(function(r, i) {
- var u = o.j.c.element("a");
- u.textContent = i + 1 + ". " + r.replace((0, m.SPACE_REG_EXP)(), ""), o.j.e.on(u, "keydown", o.onKeyDown), (0, d.attr)(u, "href", "#"), (0, d.attr)(u, "data-index", i.toString()), (0, d.attr)(u, "tab-index", "-1"), o.listBox && o.listBox.appendChild(u);
- }), o.dialog && o.dialog.open(), o.j.async.setTimeout(function() {
- o.selectIndex(0);
- }, 100));
- }, o;
- }
- return n.__extends(l, p), l.prototype.createDialog = function() {
- var o = this;
- this.dialog = this.j.dlg();
- var r = (0, a.Button)(this.j, "paste", "Paste", "primary");
- r.onAction(this.paste);
- var i = (0, a.Button)(this.j, "", "Cancel");
- i.onAction(this.dialog.close), this.container = this.j.c.div(), this.container.classList.add("jodit-paste-storage"), this.listBox = this.j.c.div(), this.previewBox = this.j.c.div(), this.container.appendChild(this.listBox), this.container.appendChild(this.previewBox), this.dialog.setHeader(this.j.i18n("Choose Content to Paste")), this.dialog.setContent(this.container), this.dialog.setFooter([r, i]), this.j.e.on(this.listBox, "click dblclick", function(u) {
- var v = u.target;
- return f.Dom.isTag(v, "a") && v.hasAttribute("data-index") && o.selectIndex(parseInt((0, d.attr)(v, "-index") || "0", 10)), u.type === "dblclick" && o.paste(), !1;
- });
- }, l.prototype.afterInit = function() {
- var o = this;
- this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage", function() {
- return o.list.length;
- }).on("afterCopy.paste-storage", function(r) {
- o.list.indexOf(r) !== -1 && o.list.splice(o.list.indexOf(r), 1), o.list.unshift(r), o.list.length > 5 && (o.list.length = 5);
- }), this.j.registerCommand("showPasteStorage", { exec: this.showDialog, hotkeys: ["ctrl+shift+v", "cmd+shift+v"] });
- }, l.prototype.beforeDestruct = function() {
- this.dialog && this.dialog.destruct(), this.j.e.off(".paste-storage"), f.Dom.safeRemove(this.previewBox), f.Dom.safeRemove(this.listBox), f.Dom.safeRemove(this.container), this.container = null, this.listBox = null, this.previewBox = null, this.dialog = null, this.list = [];
- }, l;
- }(h.Plugin);
- t.pasteStorage = c, s.pluginSystem.add("pasteStorage", c);
- }, 24703: function(_, t, e) {
- var n;
- Object.defineProperty(t, "__esModule", { value: !0 });
- var m = e(20255), h = e(86893), f = e(93166), d = e(64280);
- f.Config.prototype.askBeforePasteHTML = !0, f.Config.prototype.processPasteHTML = !0, f.Config.prototype.pasteHTMLActionList = [{ value: h.INSERT_AS_HTML, text: "Keep" }, { value: h.INSERT_AS_TEXT, text: "Insert as Text" }, { value: h.INSERT_ONLY_TEXT, text: "Insert only Text" }], f.Config.prototype.memorizeChoiceWhenPasteFragment = !1, f.Config.prototype.nl2brInPlainText = !0;
- var a = "pasteStorage";
- f.Config.prototype.controls.paste = { tooltip: "Paste from clipboard", exec: function(s, c, p) {
- var l = p.control;
- return m.__awaiter(this, void 0, void 0, function() {
- var o, r, i, u, v;
- return m.__generator(this, function(y) {
- switch (y.label) {
- case 0:
- if (l.name === a) return s.execCommand("showPasteStorage"), [2];
- if (s.s.focus(), o = "", r = !0, !navigator.clipboard) return [3, 11];
- y.label = 1;
- case 1:
- return y.trys.push([1, 6, , 7]), [4, navigator.clipboard.read()];
- case 2:
- return (i = y.sent()) && i.length ? [4, i[0].getType(h.TEXT_PLAIN)] : [3, 5];
- case 3:
- return u = y.sent(), [4, new Response(u).text()];
- case 4:
- o = y.sent(), y.label = 5;
- case 5:
- return r = !1, [3, 7];
- case 6:
- return y.sent(), [3, 7];
- case 7:
- if (!r) return [3, 11];
- y.label = 8;
- case 8:
- return y.trys.push([8, 10, , 11]), [4, navigator.clipboard.readText()];
- case 9:
- return o = y.sent(), r = !1, [3, 11];
- case 10:
- return y.sent(), [3, 11];
- case 11:
- return r && (o = s.buffer.get(h.CLIPBOARD_ID) || "", r = o.length === 0), v = s.value, r ? (s.ed.execCommand("paste"), !(r = v === s.value) && s.e.fire("afterPaste")) : o.length ? ((0, d.pasteInsertHtml)(null, s, o), s.e.fire("afterPaste")) : r && s.alert("Your browser doesn't support direct access to the clipboard.", function() {
- s.s.focus();
- }), [2];
- }
- });
- });
- }, list: (n = {}, n[a] = "Paste Storage", n), isChildDisabled: function(s) {
- return 2 > s.e.fire("pasteStorageList");
- } };
- }, 64280: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.askInsertTypeDialog = t.getAllTypes = t.pasteInsertHtml = void 0;
- var n = e(20255), m = e(10172), h = e(24263), f = e(86893), d = e(96031);
- t.pasteInsertHtml = function(a, s, c) {
- if (!s.isInDestruct) {
- (function(l) {
- return !!(l && l.type === "drop");
- })(a) && s.s.insertCursorAtPoint(a.clientX, a.clientY);
- var p = s.e.fire("beforePasteInsert", c);
- !(0, m.isVoid)(p) && ((0, m.isString)(p) || (0, m.isNumber)(p) || h.Dom.isNode(p)) && (c = p), (0, m.isString)(c) && (c = function(l) {
- var o = (l = l.replace(/<meta[^>]+?>/g, "")).search(/<!--StartFragment-->/i);
- o !== -1 && (l = l.substring(o + 20));
- var r = l.search(/<!--EndFragment-->/i);
- return r !== -1 && (l = l.substring(0, r)), l;
- }(c)), s.s.insertHTML(c);
- }
- }, t.getAllTypes = function(a) {
- var s = a.types, c = "";
- if ((0, m.isArray)(s) || {}.toString.call(s) === "[object DOMStringList]") for (var p = 0; s.length > p; p += 1) c += s[p] + ";";
- else c = (s || f.TEXT_PLAIN).toString() + ";";
- return c;
- }, t.askInsertTypeDialog = function(a, s, c, p, l) {
- if (a.e.fire("beforeOpenPasteDialog", s, c, p, l) !== !1) {
- var o = a.confirm('<div style="word-break: normal; white-space: normal">'.concat(a.i18n(s), "</div>"), a.i18n(c)), r = l.map(function(u) {
- var v = u.text, y = u.value;
- return (0, d.Button)(a, { text: v, name: v.toLowerCase(), tabIndex: 0 }).onAction(function() {
- o.close(), p(y);
- });
- });
- o.e.one(o, "afterClose", function() {
- a.s.isFocused() || a.s.focus();
- });
- var i = (0, d.Button)(a, { text: "Cancel", tabIndex: 0 }).onAction(function() {
- o.close();
- });
- return o.setFooter(n.__spreadArray(n.__spreadArray([], n.__read(r), !1), [i], !1)), r[0].focus(), r[0].state.variant = "primary", a.e.fire("afterOpenPasteDialog", o, s, c, p, l), o;
- }
- };
- }, 19483: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.paste = void 0;
- var n = e(20255), m = e(85605), h = e(86893), f = e(24263), d = e(43441), a = e(40332), s = e(17332), c = e(64280);
- e(24703);
- var p = function(l) {
- function o() {
- var r = l !== null && l.apply(this, arguments) || this;
- return r.pasteStack = new a.LimitedStack(20), r._isDialogOpened = !1, r;
- }
- return n.__extends(o, l), o.prototype.afterInit = function(r) {
- var i = this;
- r.e.on("paste.paste", this.onPaste).on("pasteStack.paste", function(u) {
- return i.pasteStack.push(u);
- }), r.o.nl2brInPlainText && this.j.e.on("processPaste.paste", this.onProcessPasteReplaceNl2Br);
- }, o.prototype.beforeDestruct = function(r) {
- r.e.off("paste.paste", this.onPaste).off("processPaste.paste", this.onProcessPasteReplaceNl2Br).off(".paste");
- }, o.prototype.onPaste = function(r) {
- try {
- if (this.customPasteProcess(r) === !1 || this.j.e.fire("beforePaste", r) === !1) return r.preventDefault(), !1;
- this.defaultPasteProcess(r);
- } finally {
- this.j.e.fire("afterPaste", r);
- }
- }, o.prototype.customPasteProcess = function(r) {
- if (this.j.o.processPasteHTML) {
- var i, u = (0, a.getDataTransfer)(r), v = { html: u == null ? void 0 : u.getData(h.TEXT_HTML), plain: u == null ? void 0 : u.getData(h.TEXT_PLAIN), rtf: u == null ? void 0 : u.getData(h.TEXT_RTF) };
- for (i in v) {
- var y = v[i];
- if ((0, a.isHTML)(y) && (this.j.e.fire("processHTML", r, y, v) || this.processHTML(r, y))) return !1;
- }
- }
- }, o.prototype.defaultPasteProcess = function(r) {
- var i = (0, a.getDataTransfer)(r), u = (i == null ? void 0 : i.getData(h.TEXT_HTML)) || (i == null ? void 0 : i.getData(h.TEXT_PLAIN));
- if (i && u && (0, a.trim)(u) !== "") {
- var v = this.j.e.fire("processPaste", r, u, (0, c.getAllTypes)(i));
- v !== void 0 && (u = v), ((0, a.isString)(u) || f.Dom.isNode(u)) && this.insertByType(r, u, this.j.o.defaultActionOnPaste), r.preventDefault(), r.stopPropagation();
- }
- }, o.prototype.processHTML = function(r, i) {
- var u = this;
- if (this.j.o.askBeforePasteHTML) {
- if (this.j.o.memorizeChoiceWhenPasteFragment) {
- var v = this.pasteStack.find(function(g) {
- return g.html === i;
- });
- if (v) return this.insertByType(r, i, v.action || this.j.o.defaultActionOnPaste), !0;
- }
- if (this._isDialogOpened) return !0;
- var y = (0, c.askInsertTypeDialog)(this.j, "Your code is similar to HTML. Keep as HTML?", "Paste as HTML", function(g) {
- u._isDialogOpened = !1, u.insertByType(r, i, g);
- }, this.j.o.pasteHTMLActionList);
- return y && (this._isDialogOpened = !0, y.e.on("beforeClose", function() {
- u._isDialogOpened = !1;
- })), !0;
- }
- return !1;
- }, o.prototype.insertByType = function(r, i, u) {
- if (this.pasteStack.push({ html: i, action: u }), (0, a.isString)(i)) switch (this.j.buffer.set(h.CLIPBOARD_ID, i), u) {
- case h.INSERT_CLEAR_HTML:
- i = (0, a.cleanFromWord)(i);
- break;
- case h.INSERT_ONLY_TEXT:
- i = (0, a.stripTags)(i);
- break;
- case h.INSERT_AS_TEXT:
- i = (0, a.htmlspecialchars)(i);
- }
- (0, c.pasteInsertHtml)(r, this.j, i);
- }, o.prototype.onProcessPasteReplaceNl2Br = function(r, i, u) {
- if (u === h.TEXT_PLAIN + ";" && !(0, a.isHTML)(i)) return (0, a.nl2br)(i);
- }, n.__decorate([d.autobind], o.prototype, "onPaste", null), n.__decorate([d.autobind], o.prototype, "onProcessPasteReplaceNl2Br", null), o;
- }(m.Plugin);
- t.paste = p, s.pluginSystem.add("paste", p);
- }, 76952: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.showPlaceholder = !0, n.Config.prototype.placeholder = "Type something", n.Config.prototype.useInputsPlaceholder = !0;
- }, 83211: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.placeholder = t.isEditorEmpty = void 0;
- var n = e(20255);
- e(51629);
- var m = e(86893), h = e(67309), f = e(26911), d = e(37204), a = e(24263), s = e(85605), c = e(86893), p = e(43441), l = e(17332);
- function o(i) {
- var u;
- if (!i.firstChild) return !0;
- var v = i.firstChild;
- if (c.INSEPARABLE_TAGS.has((u = v.nodeName) === null || u === void 0 ? void 0 : u.toLowerCase()) || /^(TABLE)$/i.test(v.nodeName)) return !1;
- var y = a.Dom.next(v, function(g) {
- return g && !a.Dom.isEmptyTextNode(g);
- }, i);
- return a.Dom.isText(v) && !y ? a.Dom.isEmptyTextNode(v) : !y && a.Dom.each(v, function(g) {
- return !a.Dom.isTag(g, ["ul", "li", "ol"]) && (a.Dom.isEmpty(g) || a.Dom.isTag(g, "br"));
- });
- }
- e(76952), t.isEditorEmpty = o;
- var r = function(i) {
- function u() {
- var v = i !== null && i.apply(this, arguments) || this;
- return v.addNativeListeners = function() {
- v.j.e.off(v.j.editor, "input.placeholder keydown.placeholder").on(v.j.editor, "input.placeholder keydown.placeholder", v.toggle);
- }, v.addEvents = function() {
- var y = v.j;
- y.o.useInputsPlaceholder && y.element.hasAttribute("placeholder") && (v.placeholderElm.innerHTML = (0, h.attr)(y.element, "placeholder") || ""), y.e.fire("placeholder", v.placeholderElm.innerHTML), y.e.off(".placeholder").on("changePlace.placeholder", v.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder", v.toggle).on(window, "load", v.toggle), v.addNativeListeners(), v.toggle();
- }, v;
- }
- return n.__extends(u, i), u.prototype.afterInit = function(v) {
- var y = this;
- v.o.showPlaceholder && (this.placeholderElm = v.c.fromHTML('<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">'.concat(v.i18n(v.o.placeholder), "</span>")), v.o.direction === "rtl" && (this.placeholderElm.style.right = "0px", this.placeholderElm.style.direction = "rtl"), v.e.on("readonly", function(g) {
- g ? y.hide() : y.toggle();
- }).on("changePlace", this.addEvents), this.addEvents());
- }, u.prototype.show = function() {
- var v = this.j;
- if (!v.o.readonly) {
- var y = 0, g = 0, b = v.s.current(), w = b && a.Dom.closest(b, a.Dom.isBlock, v.editor) || v.editor, C = v.ew.getComputedStyle(w), S = v.ew.getComputedStyle(v.editor);
- v.workplace.appendChild(this.placeholderElm);
- var j = v.editor.firstChild;
- if (a.Dom.isElement(j) && !(0, d.isMarker)(j)) {
- var E = v.ew.getComputedStyle(j);
- y = parseInt(E.getPropertyValue("margin-top"), 10), g = parseInt(E.getPropertyValue("margin-left"), 10), this.placeholderElm.style.fontSize = parseInt(E.getPropertyValue("font-size"), 10) + "px", this.placeholderElm.style.lineHeight = E.getPropertyValue("line-height");
- } else this.placeholderElm.style.fontSize = parseInt(C.getPropertyValue("font-size"), 10) + "px", this.placeholderElm.style.lineHeight = C.getPropertyValue("line-height");
- (0, f.css)(this.placeholderElm, { display: "block", textAlign: C.getPropertyValue("text-align"), paddingTop: parseInt(S.paddingTop, 10) + "px", paddingLeft: parseInt(S.paddingLeft, 10) + "px", paddingRight: parseInt(S.paddingRight, 10) + "px", marginTop: Math.max(parseInt(C.getPropertyValue("margin-top"), 10), y), marginLeft: Math.max(parseInt(C.getPropertyValue("margin-left"), 10), g) });
- }
- }, u.prototype.hide = function() {
- a.Dom.safeRemove(this.placeholderElm);
- }, u.prototype.toggle = function() {
- var v = this.j;
- v.editor && !v.isInDestruct && (v.getRealMode() === m.MODE_WYSIWYG && o(v.editor) ? this.show() : this.hide());
- }, u.prototype.beforeDestruct = function(v) {
- this.hide(), v.e.off(".placeholder").off(window, "load", this.toggle);
- }, n.__decorate([(0, p.debounce)(function(v) {
- return v.defaultTimeout / 10;
- }, !0)], u.prototype, "toggle", null), u;
- }(s.Plugin);
- t.placeholder = r, l.pluginSystem.add("placeholder", r);
- }, 88297: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.poweredByJodit = void 0;
- var n = e(17332);
- function m(h) {
- var f = h.o;
- f.hidePoweredByJodit || f.inline || !(f.showCharsCounter || f.showWordsCounter || f.showXPathInStatusbar) || h.hookStatus("ready", function() {
- h.statusbar.append(h.create.fromHTML(`<a
- tabindex="-1"
- style="text-transform: uppercase"
- class="jodit-status-bar-link"
- target="_blank"
- href="https://xdsoft.net/jodit/">
- Powered by Jodit
- </a>`), !0);
- });
- }
- t.poweredByJodit = m, n.pluginSystem.add("poweredByJodit", m);
- }, 72930: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.preview = void 0, e(54860);
- var n = e(93166), m = e(86893), h = e(21498), f = e(17332);
- function d(a) {
- a.registerButton({ name: "preview" }), a.registerCommand("preview", function(s, c, p) {
- var l = a.dlg();
- l.setSize(1024, 600).open("", a.i18n("Preview")).setModal(!0), (0, h.previewBox)(a, p, "px", l.getElm("content"));
- });
- }
- n.Config.prototype.controls.preview = { icon: "eye", command: "preview", mode: m.MODE_SOURCE + m.MODE_WYSIWYG, tooltip: "Preview" }, t.preview = d, f.pluginSystem.add("preview", d);
- }, 20137: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.generateCriticalCSS = void 0;
- var n = e(20255), m = e(1853);
- t.generateCriticalCSS = function(h) {
- var f = function(a, s) {
- return s === void 0 && (s = a.ownerDocument.styleSheets), (0, m.toArray)(s).map(function(c) {
- try {
- return (0, m.toArray)(c.cssRules);
- } catch (p) {
- }
- return [];
- }).flat().filter(function(c) {
- try {
- return !!(c && a.matches(c.selectorText));
- } catch (p) {
- }
- return !1;
- });
- }, d = function() {
- function a(s, c, p) {
- var l = this;
- this.css = {};
- var o = p || {}, r = function(i) {
- var u = i.selectorText.split(",").map(function(b) {
- return b.trim();
- }).sort().join(",");
- !l.css[u] && (l.css[u] = {});
- for (var v = i.style.cssText.split(/;(?![A-Za-z0-9])/), y = 0; v.length > y; y++) if (v[y]) {
- var g = v[y].split(":");
- g[0] = g[0].trim(), g[1] = g[1].trim(), l.css[u][g[0]] = g[1].replace(/var\(([^)]+)\)/g, function(b, w) {
- var C = n.__read(w.split(","), 2), S = C[0], j = C[1];
- return (h.ew.getComputedStyle(h.editor).getPropertyValue(S.trim()) || j || b).trim();
- });
- }
- };
- (function() {
- for (var i = s.innerHeight, u = c.createTreeWalker(h.editor, NodeFilter.SHOW_ELEMENT, function() {
- return NodeFilter.FILTER_ACCEPT;
- }); u.nextNode(); ) {
- var v = u.currentNode;
- if (i > v.getBoundingClientRect().top || o.scanFullPage) {
- var y = f(v);
- if (y) for (var g = 0; y.length > g; g++) r(y[g]);
- }
- }
- })();
- }
- return a.prototype.generateCSS = function() {
- var s = "";
- for (var c in this.css) if (!/:not\(/.test(c)) {
- for (var p in s += c + " { ", this.css[c]) s += p + ": " + this.css[c][p] + "; ";
- s += `}
- `;
- }
- return s;
- }, a;
- }();
- try {
- return new d(h.ew, h.ed, { scanFullPage: !0 }).generateCSS();
- } catch (a) {
- }
- return "";
- };
- }, 51197: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.print = void 0;
- var n = e(93166), m = e(17332), h = e(64968), f = e(93351), d = e(86893), a = e(17332), s = e(77904), c = e(20137), p = e(21498);
- function l(o) {
- o.registerButton({ name: "print" });
- }
- s.Icon.set("print", e(22860)), n.Config.prototype.controls.print = { exec: function(o) {
- var r = o.create.element("iframe");
- Object.assign(r.style, { position: "fixed", right: 0, bottom: 0, width: 0, height: 0, border: 0 }), (0, m.getContainer)(o, n.Config).appendChild(r);
- var i = function() {
- o.e.off(o.ow, "mousemove", i), h.Dom.safeRemove(r);
- }, u = r.contentWindow;
- if (u) {
- o.e.on(u, "onbeforeunload onafterprint", i).on(o.ow, "mousemove", i), o.o.iframe ? (o.e.fire("generateDocumentStructure.iframe", u.document, o), u.document.body.innerHTML = o.value) : (u.document.write('<!doctype html><html lang="' + (0, f.defaultLanguage)(o.o.language) + '"><head><title></title></head><style>' + (0, c.generateCriticalCSS)(o) + "</style><body></body></html>"), u.document.close(), (0, p.previewBox)(o, void 0, "px", u.document.body));
- var v = u.document.createElement("style");
- v.innerHTML = `@media print {
- body {
- -webkit-print-color-adjust: exact;
- }
- }`, u.document.head.appendChild(v), u.focus(), u.print();
- }
- }, mode: d.MODE_SOURCE + d.MODE_WYSIWYG, tooltip: "Print" }, t.print = l, a.pluginSystem.add("print", l);
- }, 2327: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.redoUndo = void 0;
- var n = e(20255), m = e(93166), h = e(86893), f = e(85605), d = e(17332);
- e(77904).Icon.set("redo", e(95600)).set("undo", e(76214)), m.Config.prototype.controls.redo = { mode: h.MODE_SPLIT, isDisabled: function(s) {
- return !s.history.canRedo();
- }, tooltip: "Redo" }, m.Config.prototype.controls.undo = { mode: h.MODE_SPLIT, isDisabled: function(s) {
- return !s.history.canUndo();
- }, tooltip: "Undo" };
- var a = function(s) {
- function c() {
- var p = s !== null && s.apply(this, arguments) || this;
- return p.buttons = [{ name: "undo", group: "history" }, { name: "redo", group: "history" }], p;
- }
- return n.__extends(c, s), c.prototype.beforeDestruct = function() {
- }, c.prototype.afterInit = function(p) {
- var l = function(o) {
- return p.history[o](), !1;
- };
- p.registerCommand("redo", { exec: l, hotkeys: ["ctrl+y", "ctrl+shift+z", "cmd+y", "cmd+shift+z"] }), p.registerCommand("undo", { exec: l, hotkeys: ["ctrl+z", "cmd+z"] });
- }, c;
- }(f.Plugin);
- t.redoUndo = a, d.pluginSystem.add("redoUndo", a);
- }, 52444: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.tableAllowCellResize = !0;
- }, 47608: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.resizeCells = void 0;
- var n = e(20255);
- e(47818);
- var m = e(86893), h = e(87837), f = e(40332), d = e(43441), a = e(24263), s = e(17332);
- e(52444);
- var c = "table_processor_observer-resize", p = function(l) {
- function o() {
- var r = l !== null && l.apply(this, arguments) || this;
- return r.selectMode = !1, r.resizeDelta = 0, r.createResizeHandle = function() {
- r.resizeHandler || (r.resizeHandler = r.j.c.div("jodit-table-resizer"), r.j.e.on(r.resizeHandler, "mousedown.table touchstart.table", r.onHandleMouseDown).on(r.resizeHandler, "mouseenter.table", function() {
- r.j.async.clearTimeout(r.hideTimeout);
- }));
- }, r.hideTimeout = 0, r.drag = !1, r.minX = 0, r.maxX = 0, r.startX = 0, r;
- }
- return n.__extends(o, l), Object.defineProperty(o.prototype, "module", { get: function() {
- return this.j.getInstance("Table", this.j.o);
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(o.prototype, "isRTL", { get: function() {
- return this.j.o.direction === "rtl";
- }, enumerable: !1, configurable: !0 }), o.prototype.showResizeHandle = function() {
- this.j.async.clearTimeout(this.hideTimeout), this.j.workplace.appendChild(this.resizeHandler);
- }, o.prototype.hideResizeHandle = function() {
- var r = this;
- this.hideTimeout = this.j.async.setTimeout(function() {
- a.Dom.safeRemove(r.resizeHandler);
- }, { timeout: this.j.defaultTimeout, label: "hideResizer" });
- }, o.prototype.onHandleMouseDown = function(r) {
- var i = this;
- if (!this.j.isLocked) {
- this.drag = !0, this.j.e.on(this.j.ow, "mouseup.resize-cells touchend.resize-cells", this.onMouseUp).on(this.j.ew, "mousemove.table touchmove.table", this.onMouseMove), this.startX = r.clientX, this.j.lock(c), this.resizeHandler.classList.add("jodit-table-resizer_moved");
- var u, v = this.workTable.getBoundingClientRect();
- if (this.minX = 0, this.maxX = 1e6, this.wholeTable != null) v = this.workTable.parentNode.getBoundingClientRect(), this.minX = v.left, this.maxX = this.minX + v.width;
- else {
- var y = h.Table.formalCoordinate(this.workTable, this.workCell, !0);
- h.Table.formalMatrix(this.workTable, function(g, b, w) {
- y[1] === w && (u = g.getBoundingClientRect(), i.minX = Math.max(u.left + m.NEARBY / 2, i.minX)), y[1] + (i.isRTL ? -1 : 1) === w && (u = g.getBoundingClientRect(), i.maxX = Math.min(u.left + u.width - m.NEARBY / 2, i.maxX));
- });
- }
- return !1;
- }
- }, o.prototype.onMouseMove = function(r) {
- if (this.drag) {
- this.j.e.fire("closeAllPopups");
- var i = r.clientX, u = (0, f.offset)(this.resizeHandler.parentNode || this.j.od.documentElement, this.j, this.j.od, !0);
- this.minX > i && (i = this.minX), i > this.maxX && (i = this.maxX), this.resizeDelta = i - this.startX + (this.j.o.iframe ? u.left : 0), this.resizeHandler.style.left = i - (this.j.o.iframe ? 0 : u.left) + "px";
- var v = this.j.s.sel;
- v && v.removeAllRanges();
- }
- }, o.prototype.onMouseUp = function(r) {
- (this.selectMode || this.drag) && (this.selectMode = !1, this.j.unlock()), this.resizeHandler && this.drag && (this.drag = !1, this.j.e.off(this.j.ew, "mousemove.table touchmove.table", this.onMouseMove), this.resizeHandler.classList.remove("jodit-table-resizer_moved"), this.startX !== r.clientX && (this.wholeTable == null ? this.resizeColumns() : this.resizeTable()), this.j.synchronizeValues(), this.j.s.focus());
- }, o.prototype.resizeColumns = function() {
- var r = this.resizeDelta, i = [];
- h.Table.setColumnWidthByDelta(this.workTable, h.Table.formalCoordinate(this.workTable, this.workCell, !0)[1], r, !0, i);
- var u = (0, f.call)(this.isRTL ? a.Dom.prev : a.Dom.next, this.workCell, a.Dom.isCell, this.workCell.parentNode);
- h.Table.setColumnWidthByDelta(this.workTable, h.Table.formalCoordinate(this.workTable, u)[1], -r, !1, i);
- }, o.prototype.resizeTable = function() {
- var r = this.resizeDelta * (this.isRTL ? -1 : 1), i = this.workTable.offsetWidth, u = (0, f.getContentWidth)(this.workTable.parentNode, this.j.ew), v = !this.wholeTable;
- if (this.isRTL ? !v : v) this.workTable.style.width = (i + r) / u * 100 + "%";
- else {
- var y = this.isRTL ? "marginRight" : "marginLeft", g = parseInt(this.j.ew.getComputedStyle(this.workTable)[y] || "0", 10);
- this.workTable.style.width = (i - r) / u * 100 + "%", this.workTable.style[y] = (g + r) / u * 100 + "%";
- }
- }, o.prototype.setWorkCell = function(r, i) {
- i === void 0 && (i = null), this.wholeTable = i, this.workCell = r, this.workTable = a.Dom.up(r, function(u) {
- return a.Dom.isTag(u, "table");
- }, this.j.editor);
- }, o.prototype.calcHandlePosition = function(r, i, u, v) {
- u === void 0 && (u = 0), v === void 0 && (v = 0);
- var y = (0, f.offset)(i, this.j, this.j.ed);
- if (u > m.NEARBY && y.width - m.NEARBY > u) this.hideResizeHandle();
- else {
- var g = (0, f.offset)(this.j.workplace, this.j, this.j.od, !0), b = (0, f.offset)(r, this.j, this.j.ed);
- if (this.resizeHandler.style.left = (u > m.NEARBY ? y.left + y.width : y.left) - g.left + v + "px", Object.assign(this.resizeHandler.style, { height: b.height + "px", top: b.top - g.top + "px" }), this.showResizeHandle(), u > m.NEARBY) {
- var w = (0, f.call)(this.isRTL ? a.Dom.prev : a.Dom.next, i, a.Dom.isCell, i.parentNode);
- this.setWorkCell(i, !!w && null);
- } else {
- var C = (0, f.call)(this.isRTL ? a.Dom.next : a.Dom.prev, i, a.Dom.isCell, i.parentNode);
- this.setWorkCell(C || i, !C || null);
- }
- }
- }, o.prototype.afterInit = function(r) {
- var i = this;
- r.o.tableAllowCellResize && r.e.off(this.j.ow, ".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells", function() {
- (0, f.$$)("table", r.editor).forEach(i.observe);
- }).on(this.j.ow, "scroll.resize-cells", function() {
- if (i.drag) {
- var u = a.Dom.up(i.workCell, function(y) {
- return a.Dom.isTag(y, "table");
- }, r.editor);
- if (u) {
- var v = u.getBoundingClientRect();
- i.resizeHandler.style.top = v.top + "px";
- }
- }
- }).on("beforeSetMode.resize-cells", function() {
- i.module.getAllSelectedCells().forEach(function(u) {
- i.module.removeSelection(u), h.Table.normalizeTable(a.Dom.closest(u, "table", r.editor));
- });
- });
- }, o.prototype.observe = function(r) {
- var i = this;
- (0, f.dataBind)(r, c) || ((0, f.dataBind)(r, c, !0), this.j.e.on(r, "mouseleave.resize-cells", function(u) {
- i.resizeHandler && i.resizeHandler !== u.relatedTarget && i.hideResizeHandle();
- }).on(r, "mousemove.resize-cells touchmove.resize-cells", this.j.async.throttle(function(u) {
- if (!i.j.isLocked) {
- var v = a.Dom.up(u.target, a.Dom.isCell, r);
- v && i.calcHandlePosition(r, v, u.offsetX);
- }
- }, { timeout: this.j.defaultTimeout })), this.createResizeHandle());
- }, o.prototype.beforeDestruct = function(r) {
- r.events && (r.e.off(this.j.ow, ".resize-cells"), r.e.off(".resize-cells"));
- }, n.__decorate([d.autobind], o.prototype, "onHandleMouseDown", null), n.__decorate([d.autobind], o.prototype, "onMouseMove", null), n.__decorate([d.autobind], o.prototype, "onMouseUp", null), n.__decorate([d.autobind], o.prototype, "observe", null), o;
- }(h.Plugin);
- t.resizeCells = p, s.pluginSystem.add("resizeCells", p);
- }, 91637: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.allowResizeX = !1, n.Config.prototype.allowResizeY = !0;
- }, 90523: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.resizeHandler = void 0;
- var n = e(20255), m = e(57549), h = e(64968), f = e(43441), d = e(2074), a = e(17332);
- e(91637);
- var s = function(c) {
- function p() {
- var l = c !== null && c.apply(this, arguments) || this;
- return l.isResized = !1, l.start = { x: 0, y: 0, w: 0, h: 0 }, l.handle = l.j.c.div("jodit-editor__resize", d.Icon.get("resize_handler")), l;
- }
- return n.__extends(p, c), p.prototype.afterInit = function(l) {
- var o = this, r = l.o, i = r.height, u = r.width, v = l.o.allowResizeY;
- i === "auto" && u !== "auto" && (v = !1), i === "auto" && u === "auto" || !r.allowResizeX && !v || (l.statusbar.setMod("resize-handle", !0), l.e.on("toggleFullSize.resizeHandler", function() {
- o.handle.style.display = l.isFullSize ? "none" : "block";
- }).on(this.handle, "mousedown touchstart", this.onHandleResizeStart).on(l.ow, "mouseup touchend", this.onHandleResizeEnd), l.container.appendChild(this.handle));
- }, p.prototype.onHandleResizeStart = function(l) {
- this.isResized = !0, this.start.x = l.clientX, this.start.y = l.clientY, this.start.w = this.j.container.offsetWidth, this.start.h = this.j.container.offsetHeight, this.j.lock(), this.j.e.on(this.j.ow, "mousemove touchmove", this.onHandleResize), l.preventDefault();
- }, p.prototype.onHandleResize = function(l) {
- this.isResized && (this.j.o.allowResizeY && this.j.e.fire("setHeight", this.start.h + l.clientY - this.start.y), this.j.o.allowResizeX && this.j.e.fire("setWidth", this.start.w + l.clientX - this.start.x), this.j.e.fire("resize"));
- }, p.prototype.onHandleResizeEnd = function() {
- this.isResized && (this.isResized = !1, this.j.e.off(this.j.ow, "mousemove touchmove", this.onHandleResize), this.j.unlock());
- }, p.prototype.beforeDestruct = function() {
- h.Dom.safeRemove(this.handle), this.j.e.off(this.j.ow, "mouseup touchsend", this.onHandleResizeEnd);
- }, p.requires = ["size"], n.__decorate([f.autobind], p);
- }(m.Plugin);
- t.resizeHandler = s, a.pluginSystem.add("resizeHandler", s);
- }, 36560: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.allowResizeTags = ["img", "iframe", "table", "jodit"], n.Config.prototype.resizer = { showSize: !0, hideSizeTimeout: 1e3, forImageChangeAttributes: !0, min_width: 10, min_height: 10, useAspectRatio: ["img"] };
- }, 69257: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.resizer = void 0;
- var n = e(20255);
- e(6316);
- var m = e(86893), h = e(86893), f = e(24263), d = e(40332), a = e(85605), s = e(17332), c = e(43441), p = e(17332);
- e(36560);
- var l = "__jodit-resizer_binded", o = function(r) {
- function i() {
- var u = r !== null && r.apply(this, arguments) || this;
- return u.LOCK_KEY = "resizer", u.element = null, u.isResizeMode = !1, u.isShown = !1, u.startX = 0, u.startY = 0, u.width = 0, u.height = 0, u.ratio = 0, u.rect = u.j.c.fromHTML('<div title="'.concat(u.j.i18n("Press Alt for custom resizing"), `" class="jodit-resizer">
- <div class="jodit-resizer__top-left"></div>
- <div class="jodit-resizer__top-right"></div>
- <div class="jodit-resizer__bottom-right"></div>
- <div class="jodit-resizer__bottom-left"></div>
- <span>100x100</span>
- </div>`)), u.sizeViewer = u.rect.getElementsByTagName("span")[0], u.pointerX = 0, u.pointerY = 0, u.isAltMode = !1, u.onClickElement = function(v) {
- u.isResizeMode || u.element === v && u.isShown || (u.element = v, u.show(), f.Dom.isTag(u.element, "img") && !u.element.complete && u.j.e.one(u.element, "load", u.updateSize));
- }, u.updateSize = function() {
- if (!u.isInDestruct && u.isShown && u.element && u.rect) {
- var v = u.getWorkplacePosition(), y = (0, d.offset)(u.element, u.j, u.j.ed), g = parseInt(u.rect.style.left || "0", 10), b = parseInt(u.rect.style.top || "0", 10), w = y.top - v.top, C = y.left - v.left;
- b === w && g === C && u.rect.offsetWidth === u.element.offsetWidth && u.rect.offsetHeight === u.element.offsetHeight || ((0, d.css)(u.rect, { top: w, left: C, width: u.element.offsetWidth, height: u.element.offsetHeight }), u.j.events && (u.j.e.fire(u.element, "changesize"), isNaN(g) || u.j.e.fire("resize")));
- }
- }, u.hideSizeViewer = function() {
- u.sizeViewer.style.opacity = "0";
- }, u;
- }
- return n.__extends(i, r), i.prototype.afterInit = function(u) {
- var v = this;
- (0, d.$$)("div", this.rect).forEach(function(y) {
- u.e.on(y, "mousedown.resizer touchstart.resizer", v.onStartResizing.bind(v, y));
- }), s.eventEmitter.on("hideHelpers", this.hide), u.e.on("readonly", function(y) {
- y && v.hide();
- }).on("afterInit changePlace", this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer", function(y) {
- var g = /<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;
- g.test(y.value) && (y.value = y.value.replace(g, "$1"));
- }).on("hideResizer", this.hide).on("change afterInit afterSetMode", this.onChangeEditor), this.addEventListeners(), this.onChangeEditor();
- }, i.prototype.onEditorClick = function(u) {
- for (var v = u.target, y = this.j, g = y.editor, b = y.options.allowResizeTags; v && v !== g; ) {
- if (f.Dom.isTag(v, b)) return this.bind(v), void this.onClickElement(v);
- v = v.parentNode;
- }
- }, i.prototype.addEventListeners = function() {
- var u = this, v = this.j;
- v.e.off(v.editor, ".resizer").off(v.ow, ".resizer").on(v.editor, "keydown.resizer", function(y) {
- u.isShown && y.key === m.KEY_DELETE && u.element && !f.Dom.isTag(u.element, "table") && u.onDelete(y);
- }).on(v.ow, "resize.resizer", this.updateSize).on("resize.resizer", this.updateSize).on([v.ow, v.editor], "scroll.resizer", function() {
- u.isShown && !u.isResizeMode && u.hide();
- }).on(v.ow, "keydown.resizer", this.onKeyDown).on(v.ow, "keyup.resizer", this.onKeyUp).on(v.ow, "mouseup.resizer touchend.resizer", this.onClickOutside);
- }, i.prototype.onStartResizing = function(u, v) {
- if (!this.element || !this.element.parentNode) return this.hide(), !1;
- this.handle = u, v.cancelable && v.preventDefault(), v.stopImmediatePropagation(), this.width = this.element.offsetWidth, this.height = this.element.offsetHeight, this.ratio = this.width / this.height, this.isResizeMode = !0, this.startX = v.clientX, this.startY = v.clientY, this.pointerX = v.clientX, this.pointerY = v.clientY;
- var y = this.j;
- y.e.fire("hidePopup"), y.lock(this.LOCK_KEY), y.e.on(y.ow, "mousemove.resizer touchmove.resizer", this.onResize);
- }, i.prototype.onEndResizing = function() {
- var u = this.j;
- u.unlock(), this.isResizeMode = !1, this.isAltMode = !1, u.synchronizeValues(), u.e.off(u.ow, "mousemove.resizer touchmove.resizer", this.onResize);
- }, i.prototype.onResize = function(u) {
- if (this.isResizeMode) {
- if (!this.element) return;
- this.pointerX = u.clientX, this.pointerY = u.clientY;
- var v = void 0, y = void 0;
- if (this.j.options.iframe) {
- var g = this.getWorkplacePosition();
- v = u.clientX + g.left - this.startX, y = u.clientY + g.top - this.startY;
- } else v = this.pointerX - this.startX, y = this.pointerY - this.startY;
- var b = this.handle.className, w = 0, C = 0, S = this.j.o.resizer.useAspectRatio;
- !this.isAltMode && (S === !0 || Array.isArray(S) && f.Dom.isTag(this.element, S)) ? (v ? (w = this.width + (b.match(/left/) ? -1 : 1) * v, C = Math.round(w / this.ratio)) : (C = this.height + (b.match(/top/) ? -1 : 1) * y, w = Math.round(C * this.ratio)), w > (0, d.innerWidth)(this.j.editor, this.j.ow) && (w = (0, d.innerWidth)(this.j.editor, this.j.ow), C = Math.round(w / this.ratio))) : (w = this.width + (b.match(/left/) ? -1 : 1) * v, C = this.height + (b.match(/top/) ? -1 : 1) * y), w > this.j.o.resizer.min_width && this.applySize(this.element, "width", this.rect.parentNode.offsetWidth > w ? w : "100%"), C > this.j.o.resizer.min_height && this.applySize(this.element, "height", C), this.updateSize(), this.showSizeViewer(this.element.offsetWidth, this.element.offsetHeight), u.stopImmediatePropagation();
- }
- }, i.prototype.onKeyDown = function(u) {
- this.isAltMode = u.key === h.KEY_ALT, !this.isAltMode && this.isResizeMode && this.onEndResizing();
- }, i.prototype.onKeyUp = function() {
- this.isAltMode && this.isResizeMode && this.element && (this.width = this.element.offsetWidth, this.height = this.element.offsetHeight, this.ratio = this.width / this.height, this.startX = this.pointerX, this.startY = this.pointerY), this.isAltMode = !1;
- }, i.prototype.onClickOutside = function(u) {
- if (this.isShown) {
- if (!this.isResizeMode) return this.hide();
- u.stopImmediatePropagation(), this.onEndResizing();
- }
- }, i.prototype.getWorkplacePosition = function() {
- return (0, d.offset)(this.rect.parentNode || this.j.od.documentElement, this.j, this.j.od, !0);
- }, i.prototype.applySize = function(u, v, y) {
- var g = f.Dom.isImage(u) && this.j.o.resizer.forImageChangeAttributes;
- g && (0, d.attr)(u, v, y), g && !u.style[v] || (0, d.css)(u, v, y);
- }, i.prototype.onDelete = function(u) {
- this.element && (this.element.tagName !== "JODIT" ? this.j.s.select(this.element) : (f.Dom.safeRemove(this.element), this.hide(), u.preventDefault()));
- }, i.prototype.onChangeEditor = function() {
- this.isShown && (this.element && this.element.parentNode ? this.updateSize() : this.hide()), (0, d.$$)("iframe", this.j.editor).forEach(this.bind);
- }, i.prototype.bind = function(u) {
- var v = this;
- if (f.Dom.isHTMLElement(u) && this.j.o.allowResizeTags.includes(u.tagName.toLowerCase()) && !(0, d.dataBind)(u, l)) {
- var y;
- if ((0, d.dataBind)(u, l, !0), f.Dom.isTag(u, "iframe")) {
- var g = u;
- f.Dom.isHTMLElement(u.parentNode) && (0, d.attr)(u.parentNode, "-jodit_iframe_wrapper") ? u = u.parentNode : (y = this.j.createInside.element("jodit", { "data-jodit-temp": 1, contenteditable: !1, draggable: !0, "data-jodit_iframe_wrapper": 1 }), (0, d.attr)(y, "style", (0, d.attr)(u, "style")), (0, d.css)(y, { display: u.style.display === "inline-block" ? "inline-block" : "block", width: u.offsetWidth, height: u.offsetHeight }), u.parentNode && u.parentNode.insertBefore(y, u), y.appendChild(u), this.j.e.on(y, "click", function() {
- (0, d.attr)(y, "data-jodit-wrapper_active", !0);
- }), u = y), this.j.e.off(u, "mousedown.select touchstart.select").on(u, "mousedown.select touchstart.select", function() {
- v.j.s.select(u);
- }).off(u, "changesize").on(u, "changesize", function() {
- g.setAttribute("width", u.offsetWidth + "px"), g.setAttribute("height", u.offsetHeight + "px");
- });
- }
- this.j.e.on(u, "dragstart", this.hide), h.IS_IE && this.j.e.on(u, "mousedown", function(b) {
- f.Dom.isTag(u, "img") && b.preventDefault();
- });
- }
- }, i.prototype.showSizeViewer = function(u, v) {
- this.j.o.resizer.showSize && (this.sizeViewer.offsetWidth > u || this.sizeViewer.offsetHeight > v ? this.hideSizeViewer() : (this.sizeViewer.style.opacity = "1", this.sizeViewer.textContent = "".concat(u, " x ").concat(v), this.j.async.setTimeout(this.hideSizeViewer, { timeout: this.j.o.resizer.hideSizeTimeout, label: "hideSizeViewer" })));
- }, i.prototype.show = function() {
- this.j.o.readonly || this.isShown || (this.isShown = !0, this.rect.parentNode || ((0, d.markOwner)(this.j, this.rect), this.j.workplace.appendChild(this.rect)), this.j.isFullSize && (this.rect.style.zIndex = (0, d.css)(this.j.container, "zIndex").toString()), this.updateSize());
- }, i.prototype.hide = function() {
- this.isResizeMode || (this.isResizeMode = !1, this.isShown = !1, this.element = null, f.Dom.safeRemove(this.rect), (0, d.$$)("[data-jodit-wrapper_active='true']", this.j.editor).forEach(function(u) {
- return (0, d.attr)(u, "data-jodit-wrapper_active", !1);
- }));
- }, i.prototype.beforeDestruct = function(u) {
- this.hide(), s.eventEmitter.off("hideHelpers", this.hide), u.e.off(this.j.ow, ".resizer").off(".resizer");
- }, n.__decorate([(0, c.watch)(":click")], i.prototype, "onEditorClick", null), n.__decorate([c.autobind], i.prototype, "onStartResizing", null), n.__decorate([c.autobind], i.prototype, "onEndResizing", null), n.__decorate([c.autobind], i.prototype, "onResize", null), n.__decorate([c.autobind], i.prototype, "onKeyDown", null), n.__decorate([c.autobind], i.prototype, "onKeyUp", null), n.__decorate([c.autobind], i.prototype, "onClickOutside", null), n.__decorate([(0, c.debounce)()], i.prototype, "onChangeEditor", null), n.__decorate([c.autobind], i.prototype, "bind", null), n.__decorate([c.autobind], i.prototype, "hide", null), i;
- }(a.Plugin);
- t.resizer = o, p.pluginSystem.add("resizer", o);
- }, 61975: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(77904);
- e(59535), n.Config.prototype.useSearch = !0, n.Config.prototype.search = { lazyIdleTimeout: 0 }, m.Icon.set("search", e(41197)), n.Config.prototype.controls.find = { tooltip: "Find", icon: "search", exec: function(h, f, d) {
- var a = d.control;
- switch (a.args && a.args[0]) {
- case "findPrevious":
- h.e.fire("searchPrevious");
- break;
- case "findNext":
- h.e.fire("searchNext");
- break;
- case "replace":
- h.execCommand("openReplaceDialog");
- break;
- default:
- h.execCommand("openSearchDialog");
- }
- }, list: { search: "Find", findNext: "Find Next", findPrevious: "Find Previous", replace: "Replace" }, childTemplate: function(h, f, d) {
- return d;
- } };
- }, 73934: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(18562), t), n.__exportStar(e(3928), t);
- }, 18562: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.SentenceFinder = void 0;
- var n = e(20255), m = e(93163), h = function() {
- function f(d) {
- d === void 0 && (d = m.fuzzySearchIndex), this.searchIndex = d, this.queue = [], this.value = "";
- }
- return f.prototype.add = function(d) {
- var a, s = ((a = d.nodeValue) !== null && a !== void 0 ? a : "").toLowerCase();
- if (s.length) {
- var c = this.value.length;
- this.queue.push({ startIndex: c, endIndex: c + s.length, node: d }), this.value += s;
- }
- }, f.prototype.ranges = function(d, a) {
- var s;
- a === void 0 && (a = 0);
- var c = [], p = a, l = 0, o = 0;
- do
- if (l = (s = n.__read(this.searchIndex(d, this.value, p), 2))[1], (p = s[0]) !== -1) {
- for (var r = void 0, i = 0, u = void 0, v = 0, y = o; this.queue.length > y; y += 1) if (!r && this.queue[y].endIndex > p && (r = this.queue[y].node, i = p - this.queue[y].startIndex), r && this.queue[y].endIndex >= p + l) {
- u = this.queue[y].node, v = p + l - this.queue[y].startIndex, o = y;
- break;
- }
- r && u && c.push({ startContainer: r, startOffset: i, endContainer: u, endOffset: v }), p += l;
- }
- while (p !== -1);
- return c.length === 0 ? null : c;
- }, f;
- }();
- t.SentenceFinder = h;
- }, 3928: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isSelectionWrapper = t.clearSelectionWrappersFromHTML = t.clearSelectionWrappers = t.getSelectionWrappers = t.wrapRangesTextsInTmpSpan = void 0;
- var n = e(20255), m = e(24263), h = e(54188), f = "jd-tmp-selection";
- function d(s) {
- return (0, h.$$)("[".concat(f, "]"), s);
- }
- function a(s) {
- return m.Dom.isElement(s) && s.hasAttribute(f);
- }
- t.wrapRangesTextsInTmpSpan = function(s, c, p, l) {
- var o, r, i;
- if (s.startContainer.nodeValue != null && s.endContainer.nodeValue != null) {
- var u = p.element("span", ((o = {})[f] = !0, o));
- m.Dom.markTemporary(u);
- var v = s.startContainer.nodeValue, y = 0;
- if (s.startOffset !== 0) {
- var g = p.text(v.substring(0, s.startOffset));
- s.startContainer.nodeValue = v.substring(s.startOffset), m.Dom.before(s.startContainer, g), s.startContainer === s.endContainer && (s.endOffset -= y = s.startOffset), s.startOffset = 0;
- }
- var b = s.endContainer.nodeValue;
- if (s.endOffset !== b.length) {
- g = p.text(b.substring(s.endOffset)), s.endContainer.nodeValue = b.substring(0, s.endOffset), m.Dom.after(s.endContainer, g);
- try {
- for (var w = n.__values(c), C = w.next(); !C.done; C = w.next()) {
- var S = C.value;
- if (S.startContainer !== s.endContainer) break;
- S.startContainer = g, S.startOffset = S.startOffset - s.endOffset - y, S.endContainer === s.endContainer && (S.endContainer = g, S.endOffset = S.endOffset - s.endOffset - y);
- }
- } catch (x) {
- r = { error: x };
- } finally {
- try {
- C && !C.done && (i = w.return) && i.call(w);
- } finally {
- if (r) throw r.error;
- }
- }
- s.endOffset = s.endContainer.nodeValue.length;
- }
- var j = s.startContainer;
- do {
- if (!j || (m.Dom.isText(j) && !a(j.parentNode) && m.Dom.wrap(j, u.cloneNode(), p), j === s.endContainer)) break;
- var E = j.firstChild || j.nextSibling;
- if (!E) {
- for (; j && !j.nextSibling && j !== l; ) j = j.parentNode;
- E = j == null ? void 0 : j.nextSibling;
- }
- j = E;
- } while (j && j !== l);
- }
- }, t.getSelectionWrappers = d, t.clearSelectionWrappers = function(s) {
- d(s).forEach(function(c) {
- return m.Dom.unwrap(c);
- });
- }, t.clearSelectionWrappersFromHTML = function(s) {
- return s.replace(RegExp("<span[^>]+".concat(f, "[^>]+>(.*?)</span>"), "g"), "$1");
- }, t.isSelectionWrapper = a;
- }, 59535: function() {
- }, 14889: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.search = void 0;
- var n = e(20255), m = e(64968), h = e(57549), f = e(43441), d = e(72235), a = e(40332), s = e(17332), c = e(73934);
- e(61975);
- var p = function(l) {
- function o() {
- var r = l !== null && l.apply(this, arguments) || this;
- return r.buttons = [{ name: "find", group: "search" }], r.previousQuery = "", r.drawPromise = null, r.walker = null, r.walkerCount = null, r.cache = {}, r.wrapFrameRequest = 0, r;
- }
- return n.__extends(o, l), Object.defineProperty(o.prototype, "ui", { get: function() {
- return new d.UISearch(this.j);
- }, enumerable: !1, configurable: !0 }), o.prototype.updateCounters = function() {
- return n.__awaiter(this, void 0, Promise, function() {
- var r;
- return n.__generator(this, function(i) {
- switch (i.label) {
- case 0:
- return this.ui.isOpened ? (r = this.ui, [4, this.calcCounts(this.ui.query)]) : [2];
- case 1:
- return r.count = i.sent(), [2];
- }
- });
- });
- }, o.prototype.onPressReplaceButton = function() {
- this.findAndReplace(this.ui.query), this.updateCounters();
- }, o.prototype.tryScrollToElement = function(r) {
- var i = m.Dom.closest(r, m.Dom.isElement, this.j.editor);
- i || (i = m.Dom.prev(r, m.Dom.isElement, this.j.editor)), i && i !== this.j.editor && (0, a.scrollIntoViewIfNeeded)(i, this.j.editor, this.j.ed);
- }, o.prototype.calcCounts = function(r) {
- return n.__awaiter(this, void 0, Promise, function() {
- return n.__generator(this, function(i) {
- switch (i.label) {
- case 0:
- return [4, this.findQueryBounds(r, "walkerCount")];
- case 1:
- return [2, i.sent().length];
- }
- });
- });
- }, o.prototype.findQueryBounds = function(r, i) {
- return n.__awaiter(this, void 0, Promise, function() {
- var u;
- return n.__generator(this, function(v) {
- return (u = this[i]) && u.break(), u = new m.LazyWalker(this.j.async, { timeout: this.j.o.search.lazyIdleTimeout }), this[i] = u, [2, this.find(u, r).catch(function(y) {
- return [];
- })];
- });
- });
- }, o.prototype.findAndReplace = function(r) {
- return n.__awaiter(this, void 0, Promise, function() {
- var i, u, v, y, g;
- return n.__generator(this, function(b) {
- switch (b.label) {
- case 0:
- return [4, this.findQueryBounds(r, "walker")];
- case 1:
- if (!(i = b.sent()).length) return [2, !1];
- if ((u = this.findCurrentIndexInRanges(i, this.j.s.range)) === -1 && (u = 0), !(v = i[u])) return [3, 6];
- b.label = 2;
- case 2:
- return b.trys.push([2, , 4, 5]), (y = this.j.ed.createRange()).setStart(v.startContainer, v.startOffset), y.setEnd(v.endContainer, v.endOffset), y.deleteContents(), g = this.j.createInside.text(this.ui.replace), m.Dom.safeInsertNode(y, g), (0, c.clearSelectionWrappers)(this.j.editor), this.j.s.setCursorAfter(g), this.tryScrollToElement(g), this.cache = {}, this.ui.currentIndex = u, [4, this.findAndSelect(r, !0).catch(function(w) {
- return null;
- })];
- case 3:
- return b.sent(), [3, 5];
- case 4:
- return this.j.synchronizeValues(), [7];
- case 5:
- return this.j.e.fire("afterFindAndReplace"), [2, !0];
- case 6:
- return [2, !1];
- }
- });
- });
- }, o.prototype.findAndSelect = function(r, i) {
- var u;
- return n.__awaiter(this, void 0, Promise, function() {
- var v, y, g, b;
- return n.__generator(this, function(w) {
- switch (w.label) {
- case 0:
- return [4, this.findQueryBounds(r, "walker")];
- case 1:
- if (!(v = w.sent()).length) return [2, !1];
- if (this.previousQuery === r && (0, c.getSelectionWrappers)(this.j.editor).length || ((u = this.drawPromise) === null || u === void 0 || u.rejectCallback(), this.j.async.cancelAnimationFrame(this.wrapFrameRequest), (0, c.clearSelectionWrappers)(this.j.editor), this.drawPromise = this.drawSelectionRanges(v)), this.previousQuery = r, this.ui.currentIndex = (y = (y = this.ui.currentIndex - 1) == -1 ? 0 : i ? y === v.length - 1 ? 0 : y + 1 : y === 0 ? v.length - 1 : y - 1) + 1, !(g = v[y])) return [3, 4];
- b = this.j.ed.createRange();
- try {
- b.setStart(g.startContainer, g.startOffset), b.setEnd(g.endContainer, g.endOffset), this.j.s.selectRange(b);
- } catch (C) {
- }
- return this.tryScrollToElement(g.startContainer), [4, this.updateCounters()];
- case 2:
- return w.sent(), [4, this.drawPromise];
- case 3:
- return w.sent(), this.j.e.fire("afterFindAndSelect"), [2, !0];
- case 4:
- return [2, !1];
- }
- });
- });
- }, o.prototype.findCurrentIndexInRanges = function(r, i) {
- return r.findIndex(function(u) {
- return u.startContainer === i.startContainer && u.startOffset === i.startOffset && u.endContainer === i.startContainer && u.endOffset === i.endOffset;
- });
- }, o.prototype.isValidCache = function(r) {
- return n.__awaiter(this, void 0, Promise, function() {
- return n.__generator(this, function(i) {
- switch (i.label) {
- case 0:
- return [4, r];
- case 1:
- return [2, i.sent().every(function(u) {
- var v, y, g, b;
- return u.startContainer.isConnected && u.startOffset <= ((y = (v = u.startContainer.nodeValue) === null || v === void 0 ? void 0 : v.length) !== null && y !== void 0 ? y : 0) && u.endContainer.isConnected && u.endOffset <= ((b = (g = u.endContainer.nodeValue) === null || g === void 0 ? void 0 : g.length) !== null && b !== void 0 ? b : 0);
- })];
- }
- });
- });
- }, o.prototype.find = function(r, i) {
- return n.__awaiter(this, void 0, Promise, function() {
- var u, v, y = this;
- return n.__generator(this, function(g) {
- switch (g.label) {
- case 0:
- return i.length ? (v = u = this.cache[i]) ? [4, this.isValidCache(u)] : [3, 2] : [2, []];
- case 1:
- v = g.sent(), g.label = 2;
- case 2:
- return v ? [2, u] : (this.cache[i] = this.j.async.promise(function(b) {
- var w = new c.SentenceFinder(y.j.o.search.fuzzySearch);
- r.on("break", function() {
- b([]);
- }).on("visit", function(C) {
- return m.Dom.isText(C) && w.add(C), !1;
- }).on("end", function() {
- var C;
- b((C = w.ranges(i)) !== null && C !== void 0 ? C : []);
- }).setWork(y.j.editor);
- }), [2, this.cache[i]]);
- }
- });
- });
- }, o.prototype.drawSelectionRanges = function(r) {
- var i = this, u = this.j, v = u.async, y = u.createInside, g = u.editor;
- v.cancelAnimationFrame(this.wrapFrameRequest);
- var b, w = n.__spreadArray([], n.__read(r), !1), C = 0;
- return v.promise(function(S) {
- var j = function() {
- do
- (b = w.shift()) && (0, c.wrapRangesTextsInTmpSpan)(b, w, y, g), C += 1;
- while (b && 5 >= C);
- w.length ? i.wrapFrameRequest = v.requestAnimationFrame(j) : S();
- };
- j();
- });
- }, o.prototype.onAfterGetValueFromEditor = function(r) {
- r.value = (0, c.clearSelectionWrappersFromHTML)(r.value);
- }, o.prototype.afterInit = function(r) {
- var i = this;
- if (r.o.useSearch) {
- var u = this;
- r.e.on("beforeSetMode.search", function() {
- i.ui.close();
- }).on(this.ui, "afterClose", function() {
- (0, c.clearSelectionWrappers)(r.editor), i.ui.currentIndex = 0, i.ui.count = 0, i.cache = {};
- }).on("click", function() {
- i.ui.currentIndex = 0, (0, c.clearSelectionWrappers)(r.editor);
- }).on("change.search", function() {
- i.cache = {};
- }).on("keydown.search mousedown.search", r.async.debounce(function() {
- i.ui.selInfo && (r.s.removeMarkers(), i.ui.selInfo = null), i.ui.isOpened && i.updateCounters();
- }, r.defaultTimeout)).on("searchNext.search searchPrevious.search", function() {
- return i.ui.isOpened || i.ui.open(), u.findAndSelect(u.ui.query, r.e.current === "searchNext").catch(function(v) {
- });
- }).on("search.search", function(v, y) {
- return y === void 0 && (y = !0), i.ui.currentIndex = 0, u.findAndSelect(v || "", y).catch(function(g) {
- });
- }), r.registerCommand("search", { exec: function(v, y, g) {
- return g === void 0 && (g = !0), y && u.findAndSelect(y, g).catch(function(b) {
- }), !1;
- } }).registerCommand("openSearchDialog", { exec: function(v, y) {
- return u.ui.open(y), !1;
- }, hotkeys: ["ctrl+f", "cmd+f"] }).registerCommand("openReplaceDialog", { exec: function(v, y, g) {
- return r.o.readonly || u.ui.open(y, g, !0), !1;
- }, hotkeys: ["ctrl+h", "cmd+h"] });
- }
- }, o.prototype.beforeDestruct = function(r) {
- this.ui.destruct(), r.e.off(".search");
- }, n.__decorate([f.cache], o.prototype, "ui", null), n.__decorate([(0, f.watch)("ui:needUpdateCounters")], o.prototype, "updateCounters", null), n.__decorate([(0, f.watch)("ui:pressReplaceButton")], o.prototype, "onPressReplaceButton", null), n.__decorate([f.autobind], o.prototype, "findQueryBounds", null), n.__decorate([f.autobind], o.prototype, "findAndReplace", null), n.__decorate([f.autobind], o.prototype, "findAndSelect", null), n.__decorate([f.autobind], o.prototype, "find", null), n.__decorate([(0, f.watch)(":afterGetValueFromEditor")], o.prototype, "onAfterGetValueFromEditor", null), o;
- }(h.Plugin);
- t.search = p, s.pluginSystem.add("search", p);
- }, 72235: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.UISearch = void 0;
- var n = e(20255);
- e(88582);
- var m = e(2074), h = e(40332), f = e(86893), d = e(86893), a = e(43441), s = e(64968), c = function(p) {
- function l(o) {
- var r = p.call(this, o) || this;
- r.selInfo = null, r._currentIndex = 0, r.isOpened = !1;
- var i = (0, h.refs)(r.container), u = i.replace, v = i.cancel, y = i.next, g = i.prev, b = i.replaceBtn, w = i.current, C = i.count;
- return r.queryInput = i.query, r.replaceInput = u, r.closeButton = v, r.replaceButton = b, r.currentBox = w, r.countBox = C, o.e.on(r.closeButton, "pointerdown", function() {
- return r.close(), !1;
- }).on(r.queryInput, "input", function() {
- r.currentIndex = 0;
- }).on(r.queryInput, "pointerdown", function() {
- o.s.isFocused() && (o.s.removeMarkers(), r.selInfo = o.s.save());
- }).on(r.replaceButton, "pointerdown", function() {
- return o.e.fire(r, "pressReplaceButton"), !1;
- }).on(y, "pointerdown", function() {
- return o.e.fire("searchNext"), !1;
- }).on(g, "pointerdown", function() {
- return o.e.fire("searchPrevious"), !1;
- }).on(r.queryInput, "input", function() {
- r.setMod("empty-query", !(0, h.trim)(r.queryInput.value).length);
- }).on(r.queryInput, "keydown", r.j.async.debounce(function(S) {
- S.key === d.KEY_ENTER ? (S.preventDefault(), S.stopImmediatePropagation(), o.e.fire("searchNext") && r.close()) : o.e.fire(r, "needUpdateCounters");
- }, r.j.defaultTimeout)), r;
- }
- return n.__extends(l, p), l.prototype.className = function() {
- return "UISearch";
- }, l.prototype.render = function() {
- return `<div>
- <div class="&__box">
- <div class="&__inputs">
- <input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>
- <input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>
- </div>
- <div class="&__counts">
- <span data-ref="counter-box">
- <span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>
- </span>
- </div>
- <div class="&__buttons">
- <button data-ref="next" tabindex="0" type="button">`.concat(m.Icon.get("angle-down"), `</button>
- <button data-ref="prev" tabindex="0" type="button">`).concat(m.Icon.get("angle-up"), `</button>
- <button data-ref="cancel" tabindex="0" type="button">`).concat(m.Icon.get("cancel"), `</button>
- <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
- </div>
- </div>
- </div>`);
- }, Object.defineProperty(l.prototype, "currentIndex", { get: function() {
- return this._currentIndex;
- }, set: function(o) {
- this._currentIndex = o, this.currentBox.innerText = o.toString();
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(l.prototype, "count", { set: function(o) {
- this.countBox.innerText = o.toString();
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(l.prototype, "query", { get: function() {
- return this.queryInput.value;
- }, enumerable: !1, configurable: !0 }), Object.defineProperty(l.prototype, "replace", { get: function() {
- return this.replaceInput.value;
- }, enumerable: !1, configurable: !0 }), l.prototype.onEditorKeyDown = function(o) {
- if (this.isOpened) {
- var r = this.j;
- if (r.getRealMode() === f.MODE_WYSIWYG) switch (o.key) {
- case d.KEY_ESC:
- this.close();
- break;
- case d.KEY_F3:
- this.queryInput.value && (r.e.fire(o.shiftKey ? "searchPrevious" : "searchNext"), o.preventDefault());
- }
- }
- }, l.prototype.open = function(o, r, i) {
- i === void 0 && (i = !1), this.isOpened || (this.j.workplace.appendChild(this.container), this.isOpened = !0), this.calcSticky(this.j.e.fire("getStickyState.sticky") || !1), this.j.e.fire("hidePopup"), this.setMod("replace", i);
- var u = o != null ? o : (this.j.s.sel || "").toString();
- u && (this.queryInput.value = u), r && (this.replaceInput.value = r), this.setMod("empty-query", !u.length), this.j.e.fire(this, "needUpdateCounters"), u ? this.queryInput.select() : this.queryInput.focus();
- }, l.prototype.close = function() {
- this.isOpened && (this.j.s.restore(), s.Dom.safeRemove(this.container), this.isOpened = !1, this.j.e.fire(this, "afterClose"));
- }, l.prototype.calcSticky = function(o) {
- if (this.isOpened) if (this.setMod("sticky", o), o) {
- var r = (0, h.position)(this.j.toolbarContainer);
- (0, h.css)(this.container, { top: r.top + r.height, left: r.left + r.width });
- } else (0, h.css)(this.container, { top: null, left: null });
- }, n.__decorate([(0, a.watch)([":keydown", "queryInput:keydown"])], l.prototype, "onEditorKeyDown", null), n.__decorate([a.autobind], l.prototype, "open", null), n.__decorate([a.autobind], l.prototype, "close", null), n.__decorate([(0, a.watch)(":toggleSticky")], l.prototype, "calcSticky", null), n.__decorate([a.component], l);
- }(m.UIElement);
- t.UISearch = c;
- }, 14189: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.tableAllowCellSelection = !0;
- }, 37458: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.selectCells = void 0;
- var n = e(20255), m = e(57549), h = e(87837), f = e(24263), d = e(40332), a = e(86893), s = e(43441), c = e(17332);
- e(14189);
- var p = "table_processor_observer", l = "onMoveTableSelectCell", o = function(r) {
- function i() {
- var u = r !== null && r.apply(this, arguments) || this;
- return u.requires = ["select"], u.selectedCell = null, u.isSelectionMode = !1, u;
- }
- return n.__extends(i, r), Object.defineProperty(i.prototype, "module", { get: function() {
- return this.j.getInstance("Table", this.j.o);
- }, enumerable: !1, configurable: !0 }), i.prototype.afterInit = function(u) {
- var v = this;
- u.o.tableAllowCellSelection && u.e.on("keydown.select-cells", function(y) {
- y.key === a.KEY_TAB && v.unselectCells();
- }).on("beforeCommand.select-cells", this.onExecCommand).on("afterCommand.select-cells", this.onAfterCommand).on(["clickEditor", "mousedownTd", "mousedownTh", "touchstartTd", "touchstartTh"].map(function(y) {
- return y + ".select-cells";
- }).join(" "), this.onStartSelection).on("clickTr clickTbody", function() {
- var y, g = v.module.getAllSelectedCells().length;
- if (g) return g > 1 && ((y = v.j.s.sel) === null || y === void 0 || y.removeAllRanges()), !1;
- });
- }, i.prototype.onStartSelection = function(u) {
- if (!this.j.o.readonly && (this.unselectCells(), u !== this.j.editor)) {
- var v = f.Dom.closest(u, "table", this.j.editor);
- if (u && v) return u.firstChild || u.appendChild(this.j.createInside.element("br")), this.isSelectionMode = !0, this.selectedCell = u, this.module.addSelection(u), this.j.e.on(v, "mousemove.select-cells touchmove.select-cells", this.j.async.throttle(this.onMove.bind(this, v), { label: l, timeout: this.j.defaultTimeout / 2 })).on(v, "mouseup.select-cells touchend.select-cells", this.onStopSelection.bind(this, v)), !1;
- }
- }, i.prototype.onOutsideClick = function() {
- this.selectedCell = null, this.onRemoveSelection();
- }, i.prototype.onChange = function() {
- this.j.isLocked || this.isSelectionMode || this.onRemoveSelection();
- }, i.prototype.onMove = function(u, v) {
- var y, g = this;
- if ((!this.j.o.readonly || this.j.isLocked) && !this.j.isLockedNotBy(p)) {
- var b = this.j.ed.elementFromPoint(v.clientX, v.clientY);
- if (b) {
- var w = f.Dom.closest(b, ["td", "th"], u);
- if (w && this.selectedCell) {
- w !== this.selectedCell && this.j.lock(p), this.unselectCells();
- for (var C = h.Table.getSelectedBound(u, [w, this.selectedCell]), S = h.Table.formalMatrix(u), j = C[0][0]; C[1][0] >= j; j += 1) for (var E = C[0][1]; C[1][1] >= E; E += 1) this.module.addSelection(S[j][E]);
- var x;
- this.module.getAllSelectedCells().length > 1 && ((y = this.j.s.sel) === null || y === void 0 || y.removeAllRanges()), this.j.e.fire("hidePopup"), v.stopPropagation(), x = g.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>'), w.appendChild(x), g.j.async.setTimeout(function() {
- var k;
- (k = x.parentNode) === null || k === void 0 || k.removeChild(x);
- }, g.j.defaultTimeout / 5);
- }
- }
- }
- }, i.prototype.onRemoveSelection = function(u) {
- var v;
- if (!(!((v = u == null ? void 0 : u.buffer) === null || v === void 0) && v.actionTrigger) && !this.selectedCell && this.module.getAllSelectedCells().length) return this.j.unlock(), this.unselectCells(), void this.j.e.fire("hidePopup", "cells");
- this.isSelectionMode = !1, this.selectedCell = null;
- }, i.prototype.onStopSelection = function(u, v) {
- var y = this;
- if (this.selectedCell) {
- this.isSelectionMode = !1, this.j.unlock();
- var g = this.j.ed.elementFromPoint(v.clientX, v.clientY);
- if (g) {
- var b = f.Dom.closest(g, ["td", "th"], u);
- if (b) {
- var w = f.Dom.closest(b, "table", u);
- if (!w || w === u) {
- var C = h.Table.getSelectedBound(u, [b, this.selectedCell]), S = h.Table.formalMatrix(u), j = S[C[1][0]][C[1][1]], E = S[C[0][0]][C[0][1]];
- this.j.e.fire("showPopup", u, function() {
- var x = (0, d.position)(E, y.j), k = (0, d.position)(j, y.j);
- return { left: x.left, top: x.top, width: k.left - x.left + k.width, height: k.top - x.top + k.height };
- }, "cells"), (0, d.$$)("table", this.j.editor).forEach(function(x) {
- y.j.e.off(x, "mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells");
- }), this.j.async.clearTimeout(l);
- }
- }
- }
- }
- }, i.prototype.unselectCells = function(u) {
- var v = this.module, y = v.getAllSelectedCells();
- y.length && y.forEach(function(g) {
- u && u === g || v.removeSelection(g);
- });
- }, i.prototype.onExecCommand = function(u) {
- if (/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(u)) {
- u = u.replace("table", "");
- var v = this.module.getAllSelectedCells();
- if (v.length) {
- var y = n.__read(v, 1)[0];
- if (!y) return;
- var g = f.Dom.closest(y, "table", this.j.editor);
- if (!g) return;
- switch (u) {
- case "splitv":
- h.Table.splitVertical(g, this.j);
- break;
- case "splitg":
- h.Table.splitHorizontal(g, this.j);
- break;
- case "merge":
- h.Table.mergeSelected(g, this.j);
- break;
- case "empty":
- v.forEach(function(w) {
- return f.Dom.detach(w);
- });
- break;
- case "bin":
- f.Dom.safeRemove(g);
- break;
- case "binrow":
- new Set(v.map(function(w) {
- return w.parentNode;
- })).forEach(function(w) {
- h.Table.removeRow(g, w.rowIndex);
- });
- break;
- case "bincolumn":
- var b = /* @__PURE__ */ new Set();
- v.reduce(function(w, C) {
- return b.has(C.cellIndex) || (w.push(C), b.add(C.cellIndex)), w;
- }, []).forEach(function(w) {
- h.Table.removeColumn(g, w.cellIndex);
- });
- break;
- case "addcolumnafter":
- case "addcolumnbefore":
- h.Table.appendColumn(g, y.cellIndex, u === "addcolumnafter", this.j.createInside);
- break;
- case "addrowafter":
- case "addrowbefore":
- h.Table.appendRow(g, y.parentNode, u === "addrowafter", this.j.createInside);
- }
- }
- return !1;
- }
- }, i.prototype.onAfterCommand = function(u) {
- /^justify/.test(u) && this.module.getAllSelectedCells().forEach(function(v) {
- return (0, d.alignElement)(u, v);
- });
- }, i.prototype.beforeDestruct = function(u) {
- this.onRemoveSelection(), u.e.off(".select-cells");
- }, n.__decorate([s.autobind], i.prototype, "onStartSelection", null), n.__decorate([(0, s.watch)(":outsideClick")], i.prototype, "onOutsideClick", null), n.__decorate([(0, s.watch)(":change")], i.prototype, "onChange", null), n.__decorate([s.autobind], i.prototype, "onRemoveSelection", null), n.__decorate([s.autobind], i.prototype, "onStopSelection", null), n.__decorate([s.autobind], i.prototype, "onExecCommand", null), n.__decorate([s.autobind], i.prototype, "onAfterCommand", null), i;
- }(m.Plugin);
- t.selectCells = o, c.pluginSystem.add("selectCells", o);
- }, 33100: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.select = { normalizeSelectionBeforeCutAndCopy: !1 };
- }, 95323: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.select = void 0;
- var n = e(20255), m = e(57549), h = e(43441), f = e(26596), d = e(24263), a = e(2074), s = e(17332);
- e(33100);
- var c = function(p) {
- function l() {
- var o = p !== null && p.apply(this, arguments) || this;
- return o.proxyEventsList = ["click", "mousedown", "touchstart", "mouseup", "touchend"], o;
- }
- return n.__extends(l, p), l.prototype.afterInit = function(o) {
- var r = this;
- this.proxyEventsList.forEach(function(i) {
- o.e.on(i + ".select", r.onStartSelection);
- });
- }, l.prototype.beforeDestruct = function(o) {
- var r = this;
- this.proxyEventsList.forEach(function(i) {
- o.e.on(i + ".select", r.onStartSelection);
- });
- }, l.prototype.onStartSelection = function(o) {
- for (var r, i = this.j, u = o.target; r === void 0 && u && u !== i.editor; ) r = i.e.fire((0, f.camelCase)(o.type + "_" + u.nodeName.toLowerCase()), u, o), u = u.parentElement;
- o.type === "click" && r === void 0 && u === i.editor && i.e.fire(o.type + "Editor", u, o);
- }, l.prototype.onOutsideClick = function(o) {
- var r = this, i = o.target;
- d.Dom.up(i, function(u) {
- return u === r.j.editor;
- }) || a.UIElement.closestElement(i, a.Popup) || this.j.e.fire("outsideClick", o);
- }, l.prototype.beforeCommandCut = function(o) {
- var r = this.j.s;
- if (o === "cut" && !r.isCollapsed()) {
- var i = r.current();
- i && d.Dom.isOrContains(this.j.editor, i) && this.onCopyNormalizeSelectionBound();
- }
- }, l.prototype.onCopyNormalizeSelectionBound = function(o) {
- var r = this.j, i = r.editor;
- r.o.select.normalizeSelectionBeforeCutAndCopy && !r.s.isCollapsed() && (!o || o.isTrusted && d.Dom.isNode(o.target) && d.Dom.isOrContains(i, o.target)) && this.jodit.s.expandSelection();
- }, n.__decorate([h.autobind], l.prototype, "onStartSelection", null), n.__decorate([(0, h.watch)("ow:click")], l.prototype, "onOutsideClick", null), n.__decorate([(0, h.watch)([":beforeCommand"])], l.prototype, "beforeCommandCut", null), n.__decorate([(0, h.watch)([":copy", ":cut"])], l.prototype, "onCopyNormalizeSelectionBound", null), l;
- }(m.Plugin);
- t.select = c, s.pluginSystem.add("select", c);
- }, 53387: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.minWidth = 200, n.Config.prototype.maxWidth = "100%", n.Config.prototype.minHeight = 200, n.Config.prototype.maxHeight = "auto", n.Config.prototype.saveHeightInStorage = !1;
- }, 71003: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.size = void 0;
- var n = e(20255);
- e(30962);
- var m = e(40332), h = e(85605), f = e(43441), d = e(17332);
- e(53387);
- var a = function(s) {
- function c() {
- var p = s !== null && s.apply(this, arguments) || this;
- return p.resizeWorkspaces = p.j.async.debounce(p.resizeWorkspaceImd, p.j.defaultTimeout, !0), p;
- }
- return n.__extends(c, s), c.prototype.afterInit = function(p) {
- p.e.on("setHeight.size", this.setHeight).on("setWidth.size", this.setWidth).on("afterInit.size changePlace.size", this.initialize, { top: !0 }).on(p.ow, "load.size", this.resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size", this.resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size", this.resizeWorkspaceImd), this.initialize();
- }, c.prototype.initialize = function() {
- var p = this.j;
- if (!p.o.inline) {
- var l = p.o.height;
- if (p.o.saveHeightInStorage && l !== "auto") {
- var o = p.storage.get("height");
- o && (l = o);
- }
- (0, m.css)(p.editor, { minHeight: "100%" }), (0, m.css)(p.container, { minHeight: p.o.minHeight, maxHeight: p.o.maxHeight, minWidth: p.o.minWidth, maxWidth: p.o.maxWidth }), this.setHeight(l), this.setWidth(p.o.width);
- }
- }, c.prototype.setHeight = function(p) {
- if ((0, m.isNumber)(p)) {
- var l = this.j.o, o = l.minHeight, r = l.maxHeight;
- (0, m.isNumber)(o) && o > p && (p = o), (0, m.isNumber)(r) && p > r && (p = r);
- }
- (0, m.css)(this.j.container, "height", p), this.j.o.saveHeightInStorage && this.j.storage.set("height", p), this.resizeWorkspaceImd();
- }, c.prototype.setWidth = function(p) {
- if ((0, m.isNumber)(p)) {
- var l = this.j.o, o = l.minWidth, r = l.maxWidth;
- (0, m.isNumber)(o) && o > p && (p = o), (0, m.isNumber)(r) && p > r && (p = r);
- }
- (0, m.css)(this.j.container, "width", p), this.resizeWorkspaceImd();
- }, c.prototype.getNotWorkHeight = function() {
- var p, l;
- return (((p = this.j.toolbarContainer) === null || p === void 0 ? void 0 : p.offsetHeight) || 0) + (((l = this.j.statusbar) === null || l === void 0 ? void 0 : l.getHeight()) || 0) + 2;
- }, c.prototype.resizeWorkspaceImd = function() {
- if (this.j && !this.j.isDestructed && this.j.o && !this.j.o.inline && this.j.container && this.j.container.parentNode) {
- var p = ((0, m.css)(this.j.container, "minHeight") || 0) - this.getNotWorkHeight();
- if ((0, m.isNumber)(p) && p > 0 && ([this.j.workplace, this.j.iframe, this.j.editor].map(function(o) {
- o && (0, m.css)(o, "minHeight", p);
- }), this.j.e.fire("setMinHeight", p)), (0, m.isNumber)(this.j.o.maxHeight)) {
- var l = this.j.o.maxHeight - this.getNotWorkHeight();
- [this.j.workplace, this.j.iframe, this.j.editor].map(function(o) {
- o && (0, m.css)(o, "maxHeight", l);
- }), this.j.e.fire("setMaxHeight", l);
- }
- this.j.container && (0, m.css)(this.j.workplace, "height", this.j.o.height !== "auto" || this.j.isFullSize ? this.j.container.offsetHeight - this.getNotWorkHeight() : "auto");
- }
- }, c.prototype.beforeDestruct = function(p) {
- p.e.off(p.ow, "load.size", this.resizeWorkspaces).off(".size");
- }, n.__decorate([f.autobind], c.prototype, "resizeWorkspaceImd", null), n.__decorate([f.autobind], c);
- }(h.Plugin);
- t.size = a, d.pluginSystem.add("size", a);
- }, 13985: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(86893), h = e(77904);
- n.Config.prototype.beautifyHTML = !m.IS_IE, n.Config.prototype.sourceEditor = "ace", n.Config.prototype.sourceEditorNativeOptions = { showGutter: !0, theme: "ace/theme/idle_fingers", mode: "ace/mode/html", wrap: !0, highlightActiveLine: !0 }, n.Config.prototype.sourceEditorCDNUrlsJS = ["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"], n.Config.prototype.beautifyHTMLCDNUrlsJS = ["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js", "https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"], h.Icon.set("source", e(9342)), n.Config.prototype.controls.source = { mode: m.MODE_SPLIT, exec: function(f) {
- f.toggleMode();
- }, isActive: function(f) {
- return f.getRealMode() === m.MODE_SOURCE;
- }, tooltip: "Change mode" };
- }, 34186: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.AceEditor = void 0;
- var n = e(20255), m = e(86893), h = e(40332), f = function(d) {
- function a() {
- var s = d !== null && d.apply(this, arguments) || this;
- return s.className = "jodit_ace_editor", s.proxyOnBlur = function(c) {
- s.j.e.fire("blur", c);
- }, s.proxyOnFocus = function(c) {
- s.j.e.fire("focus", c);
- }, s.proxyOnMouseDown = function(c) {
- s.j.e.fire("mousedown", c);
- }, s;
- }
- return n.__extends(a, d), a.prototype.aceExists = function() {
- return this.j.ow.ace !== void 0;
- }, a.prototype.getLastColumnIndex = function(s) {
- return this.instance.session.getLine(s).length;
- }, a.prototype.getLastColumnIndices = function() {
- for (var s = this.instance.session.getLength(), c = [], p = 0, l = 0; s > l; l++) p += this.getLastColumnIndex(l), l > 0 && (p += 1), c[l] = p;
- return c;
- }, a.prototype.getRowColumnIndices = function(s) {
- var c = this.getLastColumnIndices();
- if (c[0] >= s) return { row: 0, column: s };
- for (var p = 1, l = 1; c.length > l; l++) s > c[l] && (p = l + 1);
- return { row: p, column: s - c[p - 1] - 1 };
- }, a.prototype.setSelectionRangeIndices = function(s, c) {
- var p = this.getRowColumnIndices(s), l = this.getRowColumnIndices(c);
- this.instance.getSelection().setSelectionRange({ start: p, end: l });
- }, a.prototype.getIndexByRowColumn = function(s, c) {
- return this.getLastColumnIndices()[s] - this.getLastColumnIndex(s) + c;
- }, a.prototype.init = function(s) {
- var c = this, p = function() {
- if (c.instance === void 0 && c.aceExists()) {
- var l = c.j.c.div("jodit-source__mirror-fake");
- c.container.appendChild(l), c.instance = s.ow.ace.edit(l), c.instance.setTheme(s.o.sourceEditorNativeOptions.theme), c.instance.renderer.setShowGutter(s.o.sourceEditorNativeOptions.showGutter), c.instance.getSession().setMode(s.o.sourceEditorNativeOptions.mode), c.instance.setHighlightActiveLine(s.o.sourceEditorNativeOptions.highlightActiveLine), c.instance.getSession().setUseWrapMode(!0), c.instance.setOption("indentedSoftWrap", !1), c.instance.setOption("wrap", s.o.sourceEditorNativeOptions.wrap), c.instance.getSession().setUseWorker(!1), c.instance.$blockScrolling = 1 / 0, c.instance.on("change", c.toWYSIWYG), c.instance.on("focus", c.proxyOnFocus), c.instance.on("mousedown", c.proxyOnMouseDown), c.instance.on("blur", c.proxyOnBlur), s.getRealMode() !== m.MODE_WYSIWYG && c.setValue(c.getValue());
- var o = c.j.async.debounce(function() {
- s.isInDestruct || (c.instance.setOption("maxLines", s.o.height !== "auto" ? s.workplace.offsetHeight / c.instance.renderer.lineHeight : 1 / 0), c.instance.resize());
- }, 2 * c.j.defaultTimeout);
- s.e.on("afterResize afterSetMode", o), o(), c.onReady();
- }
- };
- s.e.on("afterSetMode", function() {
- s.getRealMode() !== m.MODE_SOURCE && s.getMode() !== m.MODE_SPLIT || (c.fromWYSIWYG(), p());
- }), p(), this.aceExists() || (0, h.loadNext)(s, s.o.sourceEditorCDNUrlsJS).then(function() {
- s.isInDestruct || p();
- }).catch(function() {
- return null;
- });
- }, a.prototype.destruct = function() {
- var s, c;
- this.instance.off("change", this.toWYSIWYG), this.instance.off("focus", this.proxyOnFocus), this.instance.off("mousedown", this.proxyOnMouseDown), this.instance.destroy(), (c = (s = this.j) === null || s === void 0 ? void 0 : s.events) === null || c === void 0 || c.off("aceInited.source");
- }, a.prototype.setValue = function(s) {
- if (!this.j.o.editHTMLDocumentMode && this.j.o.beautifyHTML) {
- var c = this.j.e.fire("beautifyHTML", s);
- (0, h.isString)(c) && (s = c);
- }
- this.instance.setValue(s), this.instance.clearSelection();
- }, a.prototype.getValue = function() {
- return this.instance.getValue();
- }, a.prototype.setReadOnly = function(s) {
- this.instance.setReadOnly(s);
- }, Object.defineProperty(a.prototype, "isFocused", { get: function() {
- return this.instance.isFocused();
- }, enumerable: !1, configurable: !0 }), a.prototype.focus = function() {
- this.instance.focus();
- }, a.prototype.blur = function() {
- this.instance.blur();
- }, a.prototype.getSelectionStart = function() {
- var s = this.instance.selection.getRange();
- return this.getIndexByRowColumn(s.start.row, s.start.column);
- }, a.prototype.getSelectionEnd = function() {
- var s = this.instance.selection.getRange();
- return this.getIndexByRowColumn(s.end.row, s.end.column);
- }, a.prototype.selectAll = function() {
- this.instance.selection.selectAll();
- }, a.prototype.insertRaw = function(s) {
- var c = this.instance.selection.getCursor(), p = this.instance.session.insert(c, s);
- this.instance.selection.setRange({ start: c, end: p }, !1);
- }, a.prototype.setSelectionRange = function(s, c) {
- this.setSelectionRangeIndices(s, c);
- }, a.prototype.setPlaceHolder = function(s) {
- }, a.prototype.replaceUndoManager = function() {
- var s = this.jodit.history;
- this.instance.commands.addCommand({ name: "Undo", bindKey: { win: "Ctrl-Z", mac: "Command-Z" }, exec: function() {
- s.undo();
- } }), this.instance.commands.addCommand({ name: "Redo", bindKey: { win: "Ctrl-Shift-Z", mac: "Command-Shift-Z" }, exec: function() {
- s.redo();
- } });
- }, a;
- }(e(36729).SourceEditor);
- t.AceEditor = f;
- }, 58633: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.TextAreaEditor = void 0;
- var n = e(20255), m = e(26911), h = e(24263), f = function(d) {
- function a() {
- var s = d !== null && d.apply(this, arguments) || this;
- return s.autosize = s.j.async.debounce(function() {
- s.instance.style.height = "auto", s.instance.style.height = s.instance.scrollHeight + "px";
- }, s.j.defaultTimeout), s;
- }
- return n.__extends(a, d), a.prototype.init = function(s) {
- var c = this;
- this.instance = s.c.element("textarea", { class: "jodit-source__mirror" }), this.container.appendChild(this.instance), s.e.on(this.instance, "mousedown keydown touchstart input", s.async.debounce(this.toWYSIWYG, s.defaultTimeout)).on("setMinHeight.source", function(p) {
- (0, m.css)(c.instance, "minHeight", p);
- }).on(this.instance, "change keydown mousedown touchstart input", this.autosize).on("afterSetMode.source", this.autosize).on(this.instance, "mousedown focus", function(p) {
- s.e.fire(p.type, p);
- }), this.autosize(), this.onReady();
- }, a.prototype.destruct = function() {
- h.Dom.safeRemove(this.instance);
- }, a.prototype.getValue = function() {
- return this.instance.value;
- }, a.prototype.setValue = function(s) {
- this.instance.value = s;
- }, a.prototype.insertRaw = function(s) {
- var c = this.getValue();
- if (0 > this.getSelectionStart()) this.setValue(c + s);
- else {
- var p = this.getSelectionStart(), l = this.getSelectionEnd();
- this.setValue(c.substring(0, p) + s + c.substring(l, c.length));
- }
- }, a.prototype.getSelectionStart = function() {
- return this.instance.selectionStart;
- }, a.prototype.getSelectionEnd = function() {
- return this.instance.selectionEnd;
- }, a.prototype.setSelectionRange = function(s, c) {
- c === void 0 && (c = s), this.instance.setSelectionRange(s, c);
- }, Object.defineProperty(a.prototype, "isFocused", { get: function() {
- return this.instance === this.j.od.activeElement;
- }, enumerable: !1, configurable: !0 }), a.prototype.focus = function() {
- this.instance.focus();
- }, a.prototype.blur = function() {
- this.instance.blur();
- }, a.prototype.setPlaceHolder = function(s) {
- this.instance.setAttribute("placeholder", s);
- }, a.prototype.setReadOnly = function(s) {
- s ? this.instance.setAttribute("readonly", "true") : this.instance.removeAttribute("readonly");
- }, a.prototype.selectAll = function() {
- this.instance.select();
- }, a.prototype.replaceUndoManager = function() {
- var s = this, c = this.jodit.history;
- this.j.e.on(this.instance, "keydown", function(p) {
- if ((p.ctrlKey || p.metaKey) && p.key === "z") return p.shiftKey ? c.redo() : c.undo(), s.setSelectionRange(s.getValue().length), !1;
- });
- }, a;
- }(e(36729).SourceEditor);
- t.TextAreaEditor = f;
- }, 52834: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- n.__exportStar(e(58633), t), n.__exportStar(e(34186), t);
- }, 94785: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.createSourceEditor = void 0;
- var n = e(40332), m = e(52834);
- t.createSourceEditor = function(h, f, d, a, s) {
- var c;
- if ((0, n.isFunction)(h)) c = h(f);
- else switch (h) {
- case "ace":
- if (!f.o.shadowRoot) {
- c = new m.AceEditor(f, d, a, s);
- break;
- }
- default:
- c = new m.TextAreaEditor(f, d, a, s);
- }
- return c.init(f), c.onReadyAlways(function() {
- c.setReadOnly(f.o.readonly);
- }), c;
- };
- }, 36729: function(_, t) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.SourceEditor = void 0;
- var e = function() {
- function n(m, h, f, d) {
- this.jodit = m, this.container = h, this.toWYSIWYG = f, this.fromWYSIWYG = d, this.className = "", this.isReady = !1;
- }
- return Object.defineProperty(n.prototype, "j", { get: function() {
- return this.jodit;
- }, enumerable: !1, configurable: !0 }), n.prototype.onReady = function() {
- this.replaceUndoManager(), this.isReady = !0, this.j.e.fire(this, "ready");
- }, n.prototype.onReadyAlways = function(m) {
- var h;
- this.isReady ? m() : (h = this.j.events) === null || h === void 0 || h.on(this, "ready", m);
- }, n;
- }();
- t.SourceEditor = e;
- }, 86030: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.source = void 0;
- var n = e(20255);
- e(68197);
- var m = e(86893), h = e(86893), f = e(57549), d = e(24263), a = e(40332), s = e(43441), c = e(17332), p = e(94785);
- e(13985);
- var l = function(o) {
- function r() {
- var i = o !== null && o.apply(this, arguments) || this;
- return i.buttons = [{ name: "source", group: "source" }], i.__lock = !1, i.__oldMirrorValue = "", i.tempMarkerStart = "{start-jodit-selection}", i.tempMarkerStartReg = /{start-jodit-selection}/g, i.tempMarkerEnd = "{end-jodit-selection}", i.tempMarkerEndReg = /{end-jodit-selection}/g, i.getSelectionStart = function() {
- var u, v;
- return (v = (u = i.sourceEditor) === null || u === void 0 ? void 0 : u.getSelectionStart()) !== null && v !== void 0 ? v : 0;
- }, i.getSelectionEnd = function() {
- var u, v;
- return (v = (u = i.sourceEditor) === null || u === void 0 ? void 0 : u.getSelectionEnd()) !== null && v !== void 0 ? v : 0;
- }, i;
- }
- return n.__extends(r, o), r.prototype.onInsertHTML = function(i) {
- var u;
- if (!this.j.o.readonly && !this.j.isEditorMode()) return (u = this.sourceEditor) === null || u === void 0 || u.insertRaw(i), this.toWYSIWYG(), !1;
- }, r.prototype.fromWYSIWYG = function(i) {
- if (i === void 0 && (i = !1), !this.__lock || i === !0) {
- this.__lock = !0;
- var u = this.j.getEditorValue(!1, h.SOURCE_CONSUMER);
- u !== this.getMirrorValue() && this.setMirrorValue(u), this.__lock = !1;
- }
- }, r.prototype.toWYSIWYG = function() {
- if (!this.__lock) {
- var i = this.getMirrorValue();
- i !== this.__oldMirrorValue && (this.__lock = !0, this.j.value = i, this.__lock = !1, this.__oldMirrorValue = i);
- }
- }, r.prototype.getNormalPosition = function(i, u) {
- for (u = u.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im, function(y) {
- for (var g = "", b = 0; y.length > b; b += 1) g += h.INVISIBLE_SPACE;
- return g;
- }); i > 0 && u[i] === h.INVISIBLE_SPACE; ) i--;
- for (var v = i; v > 0; ) {
- if (u[--v] === "<" && u[v + 1] !== void 0 && u[v + 1].match(/[\w/]+/i)) return v;
- if (u[v] === ">") return i;
- }
- return i;
- }, r.prototype.clnInv = function(i) {
- return i.replace(m.INVISIBLE_SPACE_REG_EXP(), "");
- }, r.prototype.onSelectAll = function(i) {
- var u;
- if (i.toLowerCase() === "selectall" && this.j.getRealMode() === h.MODE_SOURCE) return (u = this.sourceEditor) === null || u === void 0 || u.selectAll(), !1;
- }, r.prototype.getMirrorValue = function() {
- var i;
- return ((i = this.sourceEditor) === null || i === void 0 ? void 0 : i.getValue()) || "";
- }, r.prototype.setMirrorValue = function(i) {
- var u;
- (u = this.sourceEditor) === null || u === void 0 || u.setValue(i);
- }, r.prototype.setFocusToMirror = function() {
- var i;
- (i = this.sourceEditor) === null || i === void 0 || i.focus();
- }, r.prototype.saveSelection = function() {
- if (this.j.getRealMode() === m.MODE_WYSIWYG) this.j.s.save(), this.j.synchronizeValues(), this.fromWYSIWYG(!0);
- else {
- if (this.j.o.editHTMLDocumentMode) return;
- var i = this.getMirrorValue();
- if (this.getSelectionStart() === this.getSelectionEnd()) {
- var u = this.j.s.marker(!0), v = this.getNormalPosition(this.getSelectionStart(), this.getMirrorValue());
- this.setMirrorValue(i.substring(0, v) + this.clnInv(u.outerHTML) + i.substring(v));
- } else {
- var y = this.j.s.marker(!0), g = this.j.s.marker(!1), b = (v = this.getNormalPosition(this.getSelectionStart(), i), this.getNormalPosition(this.getSelectionEnd(), i));
- this.setMirrorValue(i.substring(0, v) + this.clnInv(y.outerHTML) + i.substring(v, b - v) + this.clnInv(g.outerHTML) + i.substring(b));
- }
- this.toWYSIWYG();
- }
- }, r.prototype.removeSelection = function() {
- if (this.j.getRealMode() === m.MODE_WYSIWYG) return this.__lock = !0, this.j.s.restore(), void (this.__lock = !1);
- var i = this.getMirrorValue(), u = 0, v = 0;
- try {
- if (i = i.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim, this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim, this.tempMarkerEnd), !this.j.o.editHTMLDocumentMode && this.j.o.beautifyHTML) {
- var y = this.j.e.fire("beautifyHTML", i);
- (0, a.isString)(y) && (i = y);
- }
- if (v = u = i.indexOf(this.tempMarkerStart), i = i.replace(this.tempMarkerStartReg, ""), u !== -1) {
- var g = i.indexOf(this.tempMarkerEnd);
- g !== -1 && (v = g);
- }
- i = i.replace(this.tempMarkerEndReg, "");
- } finally {
- i = i.replace(this.tempMarkerEndReg, "").replace(this.tempMarkerStartReg, "");
- }
- this.setMirrorValue(i), this.setMirrorSelectionRange(u, v), this.toWYSIWYG(), this.setFocusToMirror();
- }, r.prototype.setMirrorSelectionRange = function(i, u) {
- var v;
- (v = this.sourceEditor) === null || v === void 0 || v.setSelectionRange(i, u);
- }, r.prototype.onReadonlyReact = function() {
- var i;
- (i = this.sourceEditor) === null || i === void 0 || i.setReadOnly(this.j.o.readonly);
- }, r.prototype.afterInit = function(i) {
- var u = this;
- if (this.mirrorContainer = i.c.div("jodit-source"), i.workplace.appendChild(this.mirrorContainer), i.e.on("afterAddPlace changePlace afterInit", function() {
- i.workplace.appendChild(u.mirrorContainer);
- }), this.sourceEditor = (0, p.createSourceEditor)("area", i, this.mirrorContainer, this.toWYSIWYG, this.fromWYSIWYG), i.e.on(i.ow, "keydown", function(y) {
- var g;
- y.key === h.KEY_ESC && (!((g = u.sourceEditor) === null || g === void 0) && g.isFocused) && u.sourceEditor.blur();
- }), this.onReadonlyReact(), i.e.on("placeholder.source", function(y) {
- var g;
- (g = u.sourceEditor) === null || g === void 0 || g.setPlaceHolder(y);
- }).on("change.source", this.syncValueFromWYSIWYG).on("beautifyHTML", function(y) {
- return y;
- }), i.o.beautifyHTML) {
- var v = function() {
- var y, g = i.ow.html_beautify;
- return !(!g || i.isInDestruct || ((y = i.events) === null || y === void 0 || y.off("beautifyHTML").on("beautifyHTML", function(b) {
- return g(b);
- }), 0));
- };
- v() || (0, a.loadNext)(i, i.o.beautifyHTMLCDNUrlsJS).then(v);
- }
- this.syncValueFromWYSIWYG(!0), this.initSourceEditor(i);
- }, r.prototype.syncValueFromWYSIWYG = function(i) {
- i === void 0 && (i = !1);
- var u = this.j;
- u.getMode() !== h.MODE_SPLIT && u.getMode() !== h.MODE_SOURCE || this.fromWYSIWYG(i);
- }, r.prototype.initSourceEditor = function(i) {
- var u, v = this;
- if (i.o.sourceEditor !== "area") {
- var y = (0, p.createSourceEditor)(i.o.sourceEditor, i, this.mirrorContainer, this.toWYSIWYG, this.fromWYSIWYG);
- y.onReadyAlways(function() {
- var g, b;
- (g = v.sourceEditor) === null || g === void 0 || g.destruct(), v.sourceEditor = y, v.syncValueFromWYSIWYG(!0), (b = i.events) === null || b === void 0 || b.fire("sourceEditorReady", i);
- });
- } else (u = this.sourceEditor) === null || u === void 0 || u.onReadyAlways(function() {
- var g;
- v.syncValueFromWYSIWYG(!0), (g = i.events) === null || g === void 0 || g.fire("sourceEditorReady", i);
- });
- }, r.prototype.beforeDestruct = function() {
- this.sourceEditor && (this.sourceEditor.destruct(), delete this.sourceEditor), d.Dom.safeRemove(this.mirrorContainer);
- }, n.__decorate([(0, s.watch)(":insertHTML.source")], r.prototype, "onInsertHTML", null), n.__decorate([s.autobind], r.prototype, "fromWYSIWYG", null), n.__decorate([s.autobind], r.prototype, "toWYSIWYG", null), n.__decorate([s.autobind], r.prototype, "getNormalPosition", null), n.__decorate([(0, s.watch)(":beforeCommand.source")], r.prototype, "onSelectAll", null), n.__decorate([(0, s.watch)(":beforeSetMode.source")], r.prototype, "saveSelection", null), n.__decorate([(0, s.watch)(":afterSetMode.source")], r.prototype, "removeSelection", null), n.__decorate([s.autobind], r.prototype, "setMirrorSelectionRange", null), n.__decorate([(0, s.watch)(":readonly.source")], r.prototype, "onReadonlyReact", null), n.__decorate([s.autobind], r.prototype, "syncValueFromWYSIWYG", null), r;
- }(f.Plugin);
- t.source = l, c.pluginSystem.add("source", l);
- }, 50876: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(77904);
- n.Config.prototype.spellcheck = !1, m.Icon.set("spellcheck", e(69546)), n.Config.prototype.controls.spellcheck = { isActive: function(h) {
- return h.o.spellcheck;
- }, icon: e(69546), name: "spellcheck", command: "toggleSpellcheck", tooltip: "Spellcheck" };
- }, 87882: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
- var n = e(5586);
- t.ar = n;
- var m = e(66023);
- t.cs_cz = m;
- var h = e(65860);
- t.de = h;
- var f = e(86055);
- t.es = f;
- var d = e(50037);
- t.fa = d;
- var a = e(7118);
- t.fr = a;
- var s = e(30298);
- t.he = s;
- var c = e(52107);
- t.hu = c;
- var p = e(31240);
- t.id = p;
- var l = e(4101);
- t.it = l;
- var o = e(69286);
- t.ja = o;
- var r = e(13402);
- t.ko = r;
- var i = e(89574);
- t.nl = i;
- var u = e(63630);
- t.pl = u;
- var v = e(72212);
- t.pt_br = v;
- var y = e(82570);
- t.ru = y;
- var g = e(19323);
- t.tr = g;
- var b = e(50279);
- t.zh_cn = b;
- var w = e(98364);
- t.zh_tw = w;
- }, 17002: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.spellcheck = void 0;
- var n = e(20255), m = e(57549), h = e(67309), f = e(43441), d = e(17332);
- e(50876);
- var a = function(s) {
- function c(p) {
- var l = s.call(this, p) || this;
- return l.buttons = [{ group: "state", name: "spellcheck" }], (0, d.extendLang)(e(87882)), l;
- }
- return n.__extends(c, s), c.prototype.afterInit = function(p) {
- var l = this;
- p.e.on("afterInit afterAddPlace prepareWYSIWYGEditor", this.toggleSpellcheck), this.toggleSpellcheck(), p.registerCommand("toggleSpellcheck", function() {
- l.jodit.o.spellcheck = !l.jodit.o.spellcheck, l.toggleSpellcheck(), l.j.e.fire("updateToolbar");
- });
- }, c.prototype.toggleSpellcheck = function() {
- (0, h.attr)(this.jodit.editor, "spellcheck", this.jodit.o.spellcheck);
- }, c.prototype.beforeDestruct = function(p) {
- }, n.__decorate([f.autobind], c.prototype, "toggleSpellcheck", null), c;
- }(m.Plugin);
- t.spellcheck = a, d.pluginSystem.add("spellcheck", a);
- }, 59818: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.showCharsCounter = !0, n.Config.prototype.countHTMLChars = !1, n.Config.prototype.showWordsCounter = !0;
- }, 1557: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.stat = void 0;
- var n = e(20255), m = e(86893), h = e(85605), f = e(24263), d = e(17332);
- e(59818);
- var a = function(s) {
- function c() {
- var p = s !== null && s.apply(this, arguments) || this;
- return p.charCounter = null, p.wordCounter = null, p.reInit = function() {
- p.j.o.showCharsCounter && p.charCounter && p.j.statusbar.append(p.charCounter, !0), p.j.o.showWordsCounter && p.wordCounter && p.j.statusbar.append(p.wordCounter, !0), p.j.e.off("change keyup", p.calc).on("change keyup", p.calc), p.calc();
- }, p.calc = p.j.async.throttle(function() {
- var l = p.j.text;
- if (p.j.o.showCharsCounter && p.charCounter) {
- var o = p.j.o.countHTMLChars ? p.j.value : l.replace((0, m.SPACE_REG_EXP)(), "");
- p.charCounter.textContent = p.j.i18n("Chars: %d", o.length);
- }
- p.j.o.showWordsCounter && p.wordCounter && (p.wordCounter.textContent = p.j.i18n("Words: %d", l.replace((0, m.INVISIBLE_SPACE_REG_EXP)(), "").split((0, m.SPACE_REG_EXP)()).filter(function(r) {
- return r.length;
- }).length));
- }, p.j.defaultTimeout), p;
- }
- return n.__extends(c, s), c.prototype.afterInit = function() {
- this.charCounter = this.j.c.span(), this.wordCounter = this.j.c.span(), this.j.e.on("afterInit changePlace afterAddPlace", this.reInit), this.reInit();
- }, c.prototype.beforeDestruct = function() {
- f.Dom.safeRemove(this.charCounter), f.Dom.safeRemove(this.wordCounter), this.j.e.off("afterInit changePlace afterAddPlace", this.reInit), this.charCounter = null, this.wordCounter = null;
- }, c;
- }(h.Plugin);
- t.stat = a, d.pluginSystem.add("stat", a);
- }, 40790: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166);
- n.Config.prototype.toolbarSticky = !0, n.Config.prototype.toolbarDisableStickyForMobile = !0, n.Config.prototype.toolbarStickyOffset = 0;
- }, 82808: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.sticky = void 0;
- var n = e(20255);
- e(60057);
- var m = e(86893), h = e(85605), f = e(24263), d = e(40332), a = e(43441), s = e(17332);
- e(40790);
- var c = function(p) {
- function l() {
- var o = p !== null && p.apply(this, arguments) || this;
- return o.isToolbarSticked = !1, o.createDummy = function(r) {
- m.IS_IE && !o.dummyBox && (o.dummyBox = o.j.c.div(), o.dummyBox.classList.add("jodit_sticky-dummy_toolbar"), o.j.container.insertBefore(o.dummyBox, r));
- }, o.addSticky = function(r) {
- o.isToolbarSticked || (o.createDummy(r), o.j.container.classList.add("jodit_sticky"), o.isToolbarSticked = !0), (0, d.css)(r, { top: o.j.o.toolbarStickyOffset || null, width: o.j.container.offsetWidth - 2 }), m.IS_IE && o.dummyBox && (0, d.css)(o.dummyBox, { height: r.offsetHeight });
- }, o.removeSticky = function(r) {
- o.isToolbarSticked && ((0, d.css)(r, { width: "", top: "" }), o.j.container.classList.remove("jodit_sticky"), o.isToolbarSticked = !1);
- }, o;
- }
- return n.__extends(l, p), l.prototype.afterInit = function(o) {
- var r = this;
- o.e.on(o.ow, "scroll.sticky wheel.sticky mousewheel.sticky resize.sticky", this.onScroll).on("getStickyState.sticky", function() {
- return r.isToolbarSticked;
- });
- }, l.prototype.onScroll = function() {
- var o = this.jodit, r = o.ow.pageYOffset || o.od.documentElement && o.od.documentElement.scrollTop || 0, i = (0, d.offset)(o.container, o, o.od, !0), u = o.getMode() === m.MODE_WYSIWYG && r + o.o.toolbarStickyOffset > i.top && i.top + i.height > r + o.o.toolbarStickyOffset && !(o.o.toolbarDisableStickyForMobile && this.isMobile());
- if (o.o.toolbarSticky && o.o.toolbar === !0 && this.isToolbarSticked !== u) {
- var v = o.toolbarContainer;
- v && (u ? this.addSticky(v) : this.removeSticky(v)), o.e.fire("toggleSticky", u);
- }
- }, l.prototype.isMobile = function() {
- return this.j && this.j.options && this.j.container && this.j.o.sizeSM >= this.j.container.offsetWidth;
- }, l.prototype.beforeDestruct = function(o) {
- this.dummyBox && f.Dom.safeRemove(this.dummyBox), o.e.off(o.ow, "scroll.sticky wheel.sticky mousewheel.sticky resize.sticky", this.onScroll).off(".sticky");
- }, n.__decorate([(0, a.throttle)()], l.prototype, "onScroll", null), l;
- }(h.Plugin);
- t.sticky = c, s.pluginSystem.add("sticky", c);
- }, 31750: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(77904);
- n.Config.prototype.usePopupForSpecialCharacters = !1, n.Config.prototype.specialCharacters = ["!", """, "#", "$", "%", "&", "'", "(", ")", "*", "+", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?", "@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "]", "^", "_", "`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "{", "|", "}", "~", "€", "‘", "’", "“", "”", "–", "—", "¡", "¢", "£", "¤", "¥", "¦", "§", "¨", "©", "ª", "«", "»", "¬", "®", "¯", "°", "²", "³", "´", "µ", "¶", "·", "¸", "¹", "º", "¼", "½", "¾", "¿", "À", "Á", "Â", "Ã", "Ä", "Å", "Æ", "Ç", "È", "É", "Ê", "Ë", "Ì", "Í", "Î", "Ï", "Ð", "Ñ", "Ò", "Ó", "Ô", "Õ", "Ö", "×", "Ø", "Ù", "Ú", "Û", "Ü", "Ý", "Þ", "ß", "à", "á", "â", "ã", "ä", "å", "æ", "ç", "è", "é", "ê", "ë", "ì", "í", "î", "ï", "ð", "ñ", "ò", "ó", "ô", "õ", "ö", "÷", "ø", "ù", "ú", "û", "ü", "ý", "þ", "ÿ", "Œ", "œ", "Ŵ", "Ŷ", "ŵ", "ŷ", "‚", "‛", "„", "…", "™", "►", "•", "→", "⇒", "⇔", "♦", "≈"], m.Icon.set("symbols", e(43158)), n.Config.prototype.controls.symbols = { hotkeys: ["ctrl+shift+i", "cmd+shift+i"], tooltip: "Insert Special Character", popup: function(h, f, d, a) {
- var s = h.e.fire("generateSpecialCharactersTable.symbols");
- if (s) {
- if (h.o.usePopupForSpecialCharacters) {
- var c = h.c.div();
- return c.classList.add("jodit-symbols"), c.appendChild(s), h.e.on(s, "close_dialog", a), c;
- }
- h.alert(s, "Select Special Character", void 0, "jodit-symbols").bindDestruct(h);
- var p = s.querySelector("a");
- p && p.focus();
- }
- } };
- }, 21236: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.zh_tw = t.zh_cn = t.tr = t.ru = t.pt_br = t.pl = t.nl = t.ko = t.ja = t.it = t.id = t.hu = t.he = t.fr = t.fa = t.es = t.de = t.cs_cz = t.ar = void 0;
- var n = e(54261);
- t.ar = n;
- var m = e(60425);
- t.cs_cz = m;
- var h = e(7057);
- t.de = h;
- var f = e(48356);
- t.es = f;
- var d = e(11428);
- t.fa = d;
- var a = e(29084);
- t.fr = a;
- var s = e(22876);
- t.he = s;
- var c = e(20890);
- t.hu = c;
- var p = e(75987);
- t.id = p;
- var l = e(60379);
- t.it = l;
- var o = e(99950);
- t.ja = o;
- var r = e(60934);
- t.ko = r;
- var i = e(21994);
- t.nl = i;
- var u = e(38128);
- t.pl = u;
- var v = e(71515);
- t.pt_br = v;
- var y = e(58194);
- t.ru = y;
- var g = e(65802);
- t.tr = g;
- var b = e(86628);
- t.zh_cn = b;
- var w = e(32210);
- t.zh_tw = w;
- }, 48560: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.symbols = void 0;
- var n = e(20255);
- e(33393);
- var m = e(86893), h = e(85605), f = e(24263), d = e(76502), a = e(17332);
- e(31750);
- var s = function(c) {
- function p(l) {
- var o = c.call(this, l) || this;
- return o.buttons = [{ name: "symbols", group: "insert" }], o.countInRow = 17, (0, a.extendLang)(e(21236)), o;
- }
- return n.__extends(p, c), p.prototype.afterInit = function(l) {
- var o = this;
- l.e.on("generateSpecialCharactersTable.symbols", function() {
- for (var r = l.c.fromHTML(`<div class="jodit-symbols__container">
- <div class="jodit-symbols__container_table">
- <table class="jodit-symbols__table"><tbody></tbody></table>
- </div>
- <div class="jodit-symbols__container_preview">
- <div class="jodit-symbols__preview"></div>
- </div>
- </div>`), i = r.querySelector(".jodit-symbols__preview"), u = r.querySelector("table").tBodies[0], v = [], y = 0; l.o.specialCharacters.length > y; ) {
- for (var g = l.c.element("tr"), b = 0; o.countInRow > b && l.o.specialCharacters.length > y; b += 1, y += 1) {
- var w = l.c.element("td"), C = l.c.fromHTML(`<a
- data-index="`.concat(y, `"
- data-index-j="`).concat(b, `"
- role="option"
- tabindex="-1"
- >`).concat(l.o.specialCharacters[y], "</a>"));
- v.push(C), w.appendChild(C), g.appendChild(w);
- }
- u.appendChild(g);
- }
- var S = o;
- return l.e.on(v, "focus", function() {
- i.innerHTML = this.innerHTML;
- }).on(v, "mousedown", function(j) {
- f.Dom.isTag(this, "a") && (l.s.focus(), l.s.insertHTML(this.innerHTML), l.e.fire(this, "close_dialog"), j && j.preventDefault(), j && j.stopImmediatePropagation());
- }).on(v, "mouseenter", function() {
- f.Dom.isTag(this, "a") && this.focus();
- }).on(v, "keydown", function(j) {
- var E = j.target;
- if (f.Dom.isTag(E, "a")) {
- var x = parseInt((0, d.attr)(E, "-index") || "0", 10), k = parseInt((0, d.attr)(E, "data-index-j") || "0", 10), I = void 0;
- switch (j.key) {
- case m.KEY_UP:
- case m.KEY_DOWN:
- v[I = j.key === m.KEY_UP ? x - S.countInRow : x + S.countInRow] === void 0 && (I = j.key === m.KEY_UP ? Math.floor(v.length / S.countInRow) * S.countInRow + k : k) > v.length - 1 && (I -= S.countInRow), v[I] && v[I].focus();
- break;
- case m.KEY_RIGHT:
- case m.KEY_LEFT:
- v[I = j.key === m.KEY_LEFT ? x - 1 : x + 1] === void 0 && (I = j.key === m.KEY_LEFT ? v.length - 1 : 0), v[I] && v[I].focus();
- break;
- case m.KEY_ENTER:
- l.e.fire(E, "mousedown"), j.stopImmediatePropagation(), j.preventDefault();
- }
- }
- }), r;
- });
- }, p.prototype.beforeDestruct = function(l) {
- l.e.off("generateSpecialCharactersTable.symbols");
- }, p;
- }(h.Plugin);
- t.symbols = s, a.pluginSystem.add("symbols", s);
- }, 15797: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(20255).__exportStar(e(41170), t);
- }, 41170: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.onTabInsideLi = void 0;
- var n = e(20255), m = e(24263);
- e(603), t.onTabInsideLi = function(h, f) {
- if (f === void 0 && (f = !1), !h.o.tab.tabInsideLiInsertNewList) return !1;
- var d = n.__read(function(o) {
- var r = o.createInside.fake(), i = o.createInside.fake(), u = o.s.range.cloneRange();
- u.collapse(!0), u.insertNode(r);
- var v = o.s.range.cloneRange();
- return v.collapse(!1), v.insertNode(i), [r, i];
- }(h), 2), a = d[0], s = d[1];
- try {
- var c = function(o, r, i) {
- var u = m.Dom.closest(r, "li", o.editor);
- return !!u && !(!i && !m.Dom.isTag(u.previousElementSibling, "li")) && !(i && !m.Dom.closest(u, "li", o.editor)) && u;
- }(h, a, f);
- if (!c || !function(o, r, i) {
- var u = m.Dom.closest(i, "li", r.editor);
- return !(!u || u !== o && !o.contains(u));
- }(c, h, a)) return !1;
- var p = m.Dom.closest(c, ["ol", "ul"], h.editor);
- return !(!p || f && !m.Dom.closest(p, "li", h.editor) || (f ? function(o, r, i) {
- var u = m.Dom.closest(r, "li", o.editor), v = Array.from(r.children).filter(function(w) {
- return m.Dom.isTag(w, "li");
- });
- m.Dom.after(u, i);
- var y = v.indexOf(i);
- if (y !== 0 && v.length !== 1 || m.Dom.safeRemove(r), y !== v.length - 1) {
- var g = r.cloneNode();
- m.Dom.append(i, g);
- for (var b = y + 1; v.length > b; b += 1) m.Dom.append(g, v[b]);
- }
- }(h, p, c) : function(o, r, i) {
- var u = i.previousElementSibling, v = u.lastElementChild, y = m.Dom.isTag(v, r.tagName) ? v : o.createInside.element(r.tagName, Array.from(r.attributes).reduce(function(g, b) {
- return g[b.name] = b.value, g;
- }, {}));
- y.appendChild(i), v !== y && u.appendChild(y);
- }(h, p, c), 0));
- } finally {
- var l = h.s.createRange();
- l.setStartAfter(a), l.setEndBefore(s), h.s.selectRange(l), m.Dom.safeRemove(a), m.Dom.safeRemove(s);
- }
- return !1;
- };
- }, 56198: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.tab = { tabInsideLiInsertNewList: !0 };
- }, 32246: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255), m = e(57549), h = e(43441), f = e(86893), d = e(17332), a = e(15797);
- e(56198);
- var s = function(c) {
- function p() {
- return c !== null && c.apply(this, arguments) || this;
- }
- return n.__extends(p, c), p.prototype.afterInit = function(l) {
- }, p.prototype.__onTab = function(l) {
- if (l.key === f.KEY_TAB && this.__onShift(l.shiftKey)) return !1;
- }, p.prototype.__onCommand = function(l) {
- if ((l === "indent" || l === "outdent") && this.__onShift(l === "outdent")) return !1;
- }, p.prototype.__onShift = function(l) {
- var o = (0, a.onTabInsideLi)(this.j, l);
- return o && this.j.e.fire("afterTab", l), o;
- }, p.prototype.beforeDestruct = function(l) {
- }, n.__decorate([(0, h.watch)(":keydown.tab")], p.prototype, "__onTab", null), n.__decorate([(0, h.watch)(":beforeCommand.tab")], p.prototype, "__onCommand", null), p;
- }(m.Plugin);
- d.pluginSystem.add("tab", s);
- }, 23308: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.tableKeyboardNavigation = void 0;
- var n = e(86893), m = e(24263), h = e(25120), f = e(17332);
- function d(a) {
- a.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation", function(s) {
- var c, p;
- if ((s.key === n.KEY_TAB || s.key === n.KEY_LEFT || s.key === n.KEY_RIGHT || s.key === n.KEY_UP || s.key === n.KEY_DOWN) && (c = a.s.current(), p = m.Dom.up(c, function(b) {
- return b && b.nodeName && /^td|th$/i.test(b.nodeName);
- }, a.editor))) {
- var l = a.s.range;
- if (s.key === n.KEY_TAB || c === p || (s.key !== n.KEY_LEFT && s.key !== n.KEY_UP || !(m.Dom.prev(c, function(b) {
- return s.key === n.KEY_UP ? m.Dom.isTag(b, "br") : !!b;
- }, p) || s.key !== n.KEY_UP && m.Dom.isText(c) && l.startOffset !== 0)) && (s.key !== n.KEY_RIGHT && s.key !== n.KEY_DOWN || !(m.Dom.next(c, function(b) {
- return s.key === n.KEY_DOWN ? m.Dom.isTag(b, "br") : !!b;
- }, p) || s.key !== n.KEY_DOWN && m.Dom.isText(c) && c.nodeValue && l.startOffset !== c.nodeValue.length))) {
- var o = m.Dom.up(p, function(b) {
- return b && /^table$/i.test(b.nodeName);
- }, a.editor), r = null;
- switch (s.key) {
- case n.KEY_TAB:
- case n.KEY_LEFT:
- var i = s.key === n.KEY_LEFT || s.shiftKey ? "prev" : "next";
- (r = m.Dom[i](p, function(b) {
- return b && /^td|th$/i.test(b.tagName);
- }, o)) || (h.Table.appendRow(o, i !== "next" && o.querySelector("tr"), i === "next", a.createInside), r = m.Dom[i](p, m.Dom.isCell, o));
- break;
- case n.KEY_UP:
- case n.KEY_DOWN:
- var u = 0, v = 0, y = h.Table.formalMatrix(o, function(b, w, C) {
- b === p && (u = w, v = C);
- });
- s.key === n.KEY_UP ? y[u - 1] !== void 0 && (r = y[u - 1][v]) : y[u + 1] !== void 0 && (r = y[u + 1][v]);
- }
- if (r) {
- if (r.firstChild) s.key === n.KEY_TAB ? a.s.select(r, !0) : a.s.setCursorIn(r, s.key === n.KEY_RIGHT || s.key === n.KEY_DOWN);
- else {
- var g = a.createInside.element("br");
- r.appendChild(g), a.s.setCursorBefore(g);
- }
- return !1;
- }
- }
- }
- });
- }
- t.tableKeyboardNavigation = d, f.pluginSystem.add("tableKeyboardNavigation", d);
- }, 30739: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(64968), h = e(76502), f = e(40332), d = e(77904);
- n.Config.prototype.table = { selectionCellStyle: "border: 1px double #1e88e5 !important;", useExtraClassesOptions: !1 }, d.Icon.set("table", e(51716)), n.Config.prototype.controls.table = { data: { cols: 10, rows: 10, classList: { "table table-bordered": "Bootstrap Bordered", "table table-striped": "Bootstrap Striped", "table table-dark": "Bootstrap Dark" } }, popup: function(a, s, c, p, l) {
- for (var o = c.data && c.data.rows ? c.data.rows : 10, r = c.data && c.data.cols ? c.data.cols : 10, i = a.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">' + function() {
- if (!a.o.table.useExtraClassesOptions) return "";
- var E = [];
- if (c.data) {
- var x = c.data.classList;
- Object.keys(x).forEach(function(k) {
- E.push('<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="'.concat(k, '" type="checkbox"/>').concat(x[k], "</label>"));
- });
- }
- return E.join("");
- }() + '</div></div><label class="jodit-form__center"><span>1</span> × <span>1</span></label></form>'), u = i.querySelectorAll("span")[0], v = i.querySelectorAll("span")[1], y = i.querySelector(".jodit-form__container"), g = i.querySelector(".jodit-form__options"), b = [], w = o * r, C = 0; w > C; C += 1) b[C] || b.push(a.c.element("span", { dataIndex: C }));
- if (a.e.on(y, "mousemove", function(E, x) {
- var k = E.target;
- if (m.Dom.isTag(k, "span")) {
- for (var I = x === void 0 || isNaN(x) ? parseInt((0, h.attr)(k, "-index") || "0", 10) : x || 0, M = Math.ceil((I + 1) / r), T = I % r + 1, O = 0; b.length > O; O += 1) b[O].className = O % r + 1 > T || M < Math.ceil((O + 1) / r) ? "" : "jodit_hovered";
- v.textContent = T.toString(), u.textContent = M.toString();
- }
- }).on(y, "touchstart mousedown", function(E) {
- var x = E.target;
- if (E.preventDefault(), E.stopImmediatePropagation(), m.Dom.isTag(x, "span")) {
- var k = parseInt((0, h.attr)(x, "-index") || "0", 10), I = Math.ceil((k + 1) / r), M = k % r + 1, T = a.createInside, O = T.element("tbody"), L = T.element("table");
- L.appendChild(O);
- for (var N, H, q = null, F = 1; I >= F; F += 1) {
- N = T.element("tr");
- for (var U = 1; M >= U; U += 1) H = T.element("td"), q || (q = H), (0, f.css)(H, "width", (100 / M).toFixed(4) + "%"), H.appendChild(T.element("br")), N.appendChild(T.text(`
- `)), N.appendChild(T.text(" ")), N.appendChild(H);
- O.appendChild(T.text(`
- `)), O.appendChild(N);
- }
- (0, f.$$)("input[type=checkbox]:checked", g).forEach(function(Y) {
- Y.value.split(/[\s]+/).forEach(function(P) {
- L.classList.add(P);
- });
- }), a.editor.firstChild && a.s.insertNode(T.text(`
- `), !1, !1), a.s.insertNode(L, !1), q && (a.s.setCursorIn(q), (0, f.scrollIntoViewIfNeeded)(q, a.editor, a.ed)), p();
- }
- }), l && l.parentElement) {
- for (C = 0; o > C; C += 1) {
- for (var S = a.c.div(), j = 0; r > j; j += 1) S.appendChild(b[C * r + j]);
- y.appendChild(S);
- }
- b[0] && (b[0].className = "hovered");
- }
- return i;
- }, tooltip: "Insert table" };
- }, 45842: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.table = void 0, e(51057);
- var n = e(17332);
- function m(h) {
- h.registerButton({ name: "table", group: "insert" });
- }
- e(30739), t.table = m, n.pluginSystem.add("table", m);
- }, 79114: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(93166), m = e(718), h = e(40332), f = e(95963), d = e(96516);
- e(77904).Icon.set("video", e(49222)), n.Config.prototype.controls.video = { popup: function(a, s, c, p) {
- var l = new f.UIForm(a, [new f.UIBlock(a, [new f.UIInput(a, { name: "url", required: !0, label: "URL", placeholder: "https://", validators: ["url"] })]), new f.UIBlock(a, [(0, d.Button)(a, "", "Insert", "primary").onAction(function() {
- return l.submit();
- })])]), o = new f.UIForm(a, [new f.UIBlock(a, [new f.UITextArea(a, { name: "code", required: !0, label: "Embed code" })]), new f.UIBlock(a, [(0, d.Button)(a, "", "Insert", "primary").onAction(function() {
- return o.submit();
- })])]), r = [], i = function(u) {
- a.s.restore(), a.s.insertHTML(u), p();
- };
- return a.s.save(), r.push({ icon: "link", name: "Link", content: l.container }, { icon: "source", name: "Code", content: o.container }), l.onSubmit(function(u) {
- i((0, h.convertMediaUrlToVideoEmbed)(u.url));
- }), o.onSubmit(function(u) {
- i(u.code);
- }), (0, m.TabsWidget)(a, r);
- }, tags: ["iframe"], tooltip: "Insert youtube/vimeo video" };
- }, 19889: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(17332);
- e(79114), n.pluginSystem.add("video", function(m) {
- m.registerButton({ name: "video", group: "media" });
- });
- }, 64401: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.wrapNodes = { exclude: ["hr", "style", "br"], emptyBlockAfterInit: !0 };
- }, 20728: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255), m = e(57549), h = e(64968), f = e(24421), d = e(43441), a = e(17332);
- e(64401);
- var s = function(c) {
- function p() {
- var l = c !== null && c.apply(this, arguments) || this;
- return l.isSuitableStart = function(o) {
- return h.Dom.isText(o) && (0, f.isString)(o.nodeValue) && /[^\s]/.test(o.nodeValue) || l.isNotClosed(o) && !h.Dom.isTemporary(o);
- }, l.isSuitable = function(o) {
- return h.Dom.isText(o) || l.isNotClosed(o);
- }, l.isNotClosed = function(o) {
- return h.Dom.isElement(o) && !(h.Dom.isBlock(o) || h.Dom.isTag(o, l.j.o.wrapNodes.exclude));
- }, l;
- }
- return n.__extends(p, c), p.prototype.afterInit = function(l) {
- l.o.enter.toLowerCase() !== "br" && l.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn", this.preprocessInput, { top: !0 }).on("afterInit.wtn postProcessSetEditorValue.wtn", this.postProcessSetEditorValue);
- }, p.prototype.beforeDestruct = function(l) {
- l.e.off(".wtn");
- }, p.prototype.postProcessSetEditorValue = function() {
- var l = this.jodit;
- if (l.isEditorMode()) {
- for (var o = l.editor.firstChild, r = !1; o; ) {
- if (o = this.checkAloneListLeaf(o, l), this.isSuitableStart(o)) {
- r || l.s.save(), r = !0;
- var i = l.createInside.element(l.o.enter);
- for (h.Dom.before(o, i); o && this.isSuitable(o); ) {
- var u = o.nextSibling;
- i.appendChild(o), o = u;
- }
- i.normalize(), o = i;
- }
- o = o && o.nextSibling;
- }
- r && (l.s.restore(), l.e.current === "afterInit" && l.e.fire("internalChange"));
- }
- }, p.prototype.checkAloneListLeaf = function(l, o) {
- var r = l, i = l;
- do {
- if (!h.Dom.isElement(i) || !h.Dom.isTag(i, "li") || h.Dom.isTag(i.parentElement, ["ul", "ol"])) break;
- var u = h.Dom.findNotEmptySibling(i, !1);
- h.Dom.isTag(r, "ul") ? r.appendChild(i) : r = h.Dom.wrap(i, "ul", o.createInside), i = u;
- } while (i);
- return r;
- }, p.prototype.preprocessInput = function() {
- var l = this.jodit, o = l.e.current === "afterInit";
- if (l.isEditorMode() && !l.editor.firstChild && (l.o.wrapNodes.emptyBlockAfterInit || !o)) {
- var r = l.createInside.element(l.o.enter), i = l.createInside.element("br");
- h.Dom.append(r, i), h.Dom.append(l.editor, r), l.s.isFocused() && l.s.setCursorBefore(i), l.e.fire("internalChange");
- }
- }, n.__decorate([d.autobind], p.prototype, "postProcessSetEditorValue", null), n.__decorate([d.autobind], p.prototype, "preprocessInput", null), p;
- }(m.Plugin);
- a.pluginSystem.add("wrapNodes", s);
- }, 71707: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(93166).Config.prototype.showXPathInStatusbar = !0;
- }, 18238: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 });
- var n = e(20255);
- e(64618);
- var m = e(86893), h = e(60403), f = e(64968), d = e(40332), a = e(57549), s = e(81438), c = e(17332);
- e(71707);
- var p = function(l) {
- function o() {
- var r = l !== null && l.apply(this, arguments) || this;
- return r.onContext = function(i, u) {
- return r.menu || (r.menu = new h.ContextMenu(r.j)), r.menu.show(u.clientX, u.clientY, [{ icon: "bin", title: i === r.j.editor ? "Clear" : "Remove", exec: function() {
- i !== r.j.editor ? f.Dom.safeRemove(i) : r.j.value = "", r.j.synchronizeValues();
- } }, { icon: "select-all", title: "Select", exec: function() {
- r.j.s.select(i);
- } }]), !1;
- }, r.onSelectPath = function(i, u) {
- r.j.s.focus();
- var v = (0, d.attr)(u.target, "-path") || "/";
- if (v === "/") return r.j.execCommand("selectall"), !1;
- try {
- var y = r.j.ed.evaluate(v, r.j.editor, null, XPathResult.ANY_TYPE, null).iterateNext();
- if (y) return r.j.s.select(y), !1;
- } catch (g) {
- }
- return r.j.s.select(i), !1;
- }, r.tpl = function(i, u, v, y) {
- var g = r.j.c.fromHTML('<span class="jodit-xpath__item"><a role="button" data-path="'.concat(u, '" title="').concat(y, `" tabindex="-1"'>`).concat((0, d.trim)(v), "</a></span>")), b = g.firstChild;
- return r.j.e.on(b, "click", r.onSelectPath.bind(r, i)).on(b, "contextmenu", r.onContext.bind(r, i)), g;
- }, r.removeSelectAll = function() {
- r.selectAllButton && (r.selectAllButton.destruct(), delete r.selectAllButton);
- }, r.appendSelectAll = function() {
- r.removeSelectAll(), r.selectAllButton = (0, s.makeButton)(r.j, n.__assign({ name: "selectall" }, r.j.o.controls.selectall)), r.selectAllButton.state.size = "tiny", r.container && r.container.insertBefore(r.selectAllButton.container, r.container.firstChild);
- }, r.calcPathImd = function() {
- if (!r.isDestructed) {
- var i, u, v, y = r.j.s.current();
- r.container && (r.container.innerHTML = m.INVISIBLE_SPACE), y && f.Dom.up(y, function(g) {
- g && r.j.editor !== g && !f.Dom.isText(g) && (i = g.nodeName.toLowerCase(), u = (0, d.getXPathByElement)(g, r.j.editor).replace(/^\//, ""), v = r.tpl(g, u, i, r.j.i18n("Select %s", i)), r.container && r.container.insertBefore(v, r.container.firstChild));
- }, r.j.editor), r.appendSelectAll();
- }
- }, r.calcPath = r.j.async.debounce(r.calcPathImd, 2 * r.j.defaultTimeout), r;
- }
- return n.__extends(o, l), o.prototype.afterInit = function() {
- var r = this;
- this.j.o.showXPathInStatusbar && (this.container = this.j.c.div("jodit-xpath"), this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath", this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath", function() {
- r.j.o.showXPathInStatusbar && r.container && (r.j.statusbar.append(r.container), r.j.getRealMode() === m.MODE_WYSIWYG ? r.calcPath() : (r.container && (r.container.innerHTML = m.INVISIBLE_SPACE), r.appendSelectAll()));
- }), this.calcPath());
- }, o.prototype.beforeDestruct = function() {
- this.j && this.j.events && this.j.e.off(".xpath"), this.removeSelectAll(), this.menu && this.menu.destruct(), f.Dom.safeRemove(this.container), delete this.menu, delete this.container;
- }, o;
- }(a.Plugin);
- c.pluginSystem.add("xpath", p);
- }, 89019: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), e(61227), e(690), e(66622), e(69220), e(10444), Array.prototype.includes || (Array.prototype.includes = function(n) {
- return this.indexOf(n) > -1;
- }), typeof Object.assign != "function" && Object.defineProperty(Object, "assign", { value: function(n, m) {
- if (n == null) throw new TypeError("Cannot convert undefined or null to object");
- for (var h = Object(n), f = 1; arguments.length > f; f++) {
- var d = arguments[f];
- if (d != null) for (var a in d) Object.prototype.hasOwnProperty.call(d, a) && (h[a] = d[a]);
- }
- return h;
- }, writable: !0, configurable: !0 }), Array.prototype.find || (Array.prototype.find = function(n) {
- return this.indexOf(n) > -1 ? n : void 0;
- }), String.prototype.endsWith || (String.prototype.endsWith = function(n) {
- return this[this.length - 1] === n;
- });
- }, 15261: function(_, t, e) {
- Object.defineProperty(t, "__esModule", { value: !0 }), t.valign = t.upload = t.update = t.unlock = t.settings = t.save = t.right = t.resize_handler = t.plus = t.pencil = t.ok = t.lock = t.left = t.info_circle = t.folder = t.file = t.eye = t.dots = t.chevron = t.check = t.center = t.cancel = t.bin = t.angle_up = t.angle_right = t.angle_left = t.angle_down = void 0;
- var n = e(1755);
- t.angle_down = n;
- var m = e(74911);
- t.angle_left = m;
- var h = e(8805);
- t.angle_right = h;
- var f = e(16547);
- t.angle_up = f;
- var d = e(10856);
- t.bin = d;
- var a = e(98441);
- t.cancel = a;
- var s = e(52488);
- t.center = s;
- var c = e(9370);
- t.check = c;
- var p = e(66543);
- t.chevron = p;
- var l = e(608);
- t.dots = l;
- var o = e(42840);
- t.eye = o;
- var r = e(79096);
- t.file = r;
- var i = e(33014);
- t.folder = i;
- var u = e(91677);
- t.info_circle = u;
- var v = e(8259);
- t.left = v;
- var y = e(64467);
- t.lock = y;
- var g = e(86934);
- t.ok = g;
- var b = e(76133);
- t.pencil = b;
- var w = e(45519);
- t.plus = w;
- var C = e(90265);
- t.resize_handler = C;
- var S = e(81279);
- t.right = S;
- var j = e(68899);
- t.save = j;
- var E = e(70744);
- t.settings = E;
- var x = e(19201);
- t.unlock = x;
- var k = e(84930);
- t.update = k;
- var I = e(99704);
- t.upload = I;
- var M = e(2304);
- t.valign = M;
- }, 80078: function(_) {
- _.exports = { "copy-format": "نسخ التنسيق" };
- }, 16986: function(_) {
- _.exports = { "copy-format": "Kopírovat formát" };
- }, 59347: function(_) {
- _.exports = { "copy-format": "Format kopierenт" };
- }, 63640: function(_) {
- _.exports = { "copy-format": "Copiar formato" };
- }, 53434: function(_) {
- _.exports = { "copy-format": "کپی کردن قالب" };
- }, 85638: function(_) {
- _.exports = { "copy-format": "Format de copie" };
- }, 31743: function(_) {
- _.exports = { "copy-format": "העתק עיצוב" };
- }, 66219: function(_) {
- _.exports = { "copy-format": "Formátum másolás" };
- }, 50331: function(_) {
- _.exports = { "copy-format": "salin format" };
- }, 25582: function(_) {
- _.exports = { "copy-format": "Copia il formato" };
- }, 82066: function(_) {
- _.exports = { "copy-format": "copyformat" };
- }, 71925: function(_) {
- _.exports = { "copy-format": "복사 형식" };
- }, 65274: function(_) {
- _.exports = { "copy-format": "opmaak kopiëren" };
- }, 58548: function(_) {
- _.exports = { "copy-format": "format kopii" };
- }, 82958: function(_) {
- _.exports = { "copy-format": "Copiar formato" };
- }, 52315: function(_) {
- _.exports = { "copy-format": "Копировать формат" };
- }, 87727: function(_) {
- _.exports = { "copy-format": "Kopyalama Biçimi" };
- }, 9396: function(_) {
- _.exports = { "copy-format": "复制格式" };
- }, 28765: function(_) {
- _.exports = { "copy-format": "複製格式" };
- }, 47762: function(_) {
- _.exports = { "Line height": "ارتفاع الخط" };
- }, 97495: function(_) {
- _.exports = { "Line height": "Výška čáry" };
- }, 80131: function(_) {
- _.exports = { "Line height": "Zeilenhöhe" };
- }, 1201: function(_) {
- _.exports = { "Line height": "Altura de la línea" };
- }, 89912: function(_) {
- _.exports = { "Line height": "ارتفاع خط" };
- }, 3405: function(_) {
- _.exports = { "Line height": "Hauteur de ligne" };
- }, 14129: function(_) {
- _.exports = { "Line height": "גובה שורה" };
- }, 93729: function(_) {
- _.exports = { "Line height": "Vonal magassága" };
- }, 16106: function(_) {
- _.exports = { "Line height": "Tinggi baris" };
- }, 89690: function(_) {
- _.exports = { "Line height": "Altezza linea" };
- }, 33216: function(_) {
- _.exports = { "Line height": "ラインの高さ" };
- }, 17282: function(_) {
- _.exports = { "Line height": "선 높이" };
- }, 91761: function(_) {
- _.exports = { "Line height": "Lijnhoogte" };
- }, 61675: function(_) {
- _.exports = { "Line height": "Wysokość linii" };
- }, 69709: function(_) {
- _.exports = { "Line height": "Altura da linha" };
- }, 82591: function(_) {
- _.exports = { "Line height": "Высота линии" };
- }, 87649: function(_) {
- _.exports = { "Line height": "Çizgi yüksekliği" };
- }, 60268: function(_) {
- _.exports = { "Line height": "线高" };
- }, 58214: function(_) {
- _.exports = { "Line height": "ความสูงเส้น" };
- }, 5586: function(_) {
- _.exports = { Spellcheck: "التدقيق الإملائي" };
- }, 66023: function(_) {
- _.exports = { Spellcheck: "Kontrola pravopisu" };
- }, 65860: function(_) {
- _.exports = { Spellcheck: "Rechtschreibprüfung" };
- }, 86055: function(_) {
- _.exports = { Spellcheck: "Corrección ortográfica" };
- }, 50037: function(_) {
- _.exports = { Spellcheck: "غلطیابی املایی" };
- }, 7118: function(_) {
- _.exports = { Spellcheck: "Vérification Orthographique" };
- }, 30298: function(_) {
- _.exports = { Spellcheck: "בדיקת איות" };
- }, 52107: function(_) {
- _.exports = { Spellcheck: "Helyesírás-ellenőrzés" };
- }, 31240: function(_) {
- _.exports = { Spellcheck: "Spellchecking" };
- }, 4101: function(_) {
- _.exports = { Spellcheck: "Controllo ortografico" };
- }, 69286: function(_) {
- _.exports = { Spellcheck: "スペルチェック" };
- }, 13402: function(_) {
- _.exports = { Spellcheck: "맞춤법 검사" };
- }, 89574: function(_) {
- _.exports = { Spellcheck: "Spellingcontrole" };
- }, 63630: function(_) {
- _.exports = { Spellcheck: "Sprawdzanie pisowni" };
- }, 72212: function(_) {
- _.exports = { Spellcheck: "Verificação ortográfica" };
- }, 82570: function(_) {
- _.exports = { Spellcheck: "Проверка орфографии" };
- }, 19323: function(_) {
- _.exports = { Spellcheck: "Yazım denetimi" };
- }, 50279: function(_) {
- _.exports = { Spellcheck: "拼写检查" };
- }, 98364: function(_) {
- _.exports = { Spellcheck: "สะกดคำ" };
- }, 54261: function(_) {
- _.exports = { symbols: "رمز" };
- }, 60425: function(_) {
- _.exports = { symbols: "symbol" };
- }, 7057: function(_) {
- _.exports = { symbols: "Symbol" };
- }, 48356: function(_) {
- _.exports = { symbols: "Símbolo" };
- }, 11428: function(_) {
- _.exports = { symbols: "سمبل" };
- }, 29084: function(_) {
- _.exports = { symbols: "caractère" };
- }, 22876: function(_) {
- _.exports = { symbols: "תו מיוחד" };
- }, 20890: function(_) {
- _.exports = { symbols: "Szimbólum" };
- }, 75987: function(_) {
- _.exports = { symbols: "simbol" };
- }, 60379: function(_) {
- _.exports = { symbols: "Simbolo" };
- }, 99950: function(_) {
- _.exports = { symbols: "symbol" };
- }, 60934: function(_) {
- _.exports = { symbols: "기호" };
- }, 21994: function(_) {
- _.exports = { symbols: "symbool" };
- }, 38128: function(_) {
- _.exports = { symbols: "symbol" };
- }, 71515: function(_) {
- _.exports = { symbols: "Símbolo" };
- }, 58194: function(_) {
- _.exports = { symbols: "символ" };
- }, 65802: function(_) {
- _.exports = { symbols: "Sembol" };
- }, 86628: function(_) {
- _.exports = { symbols: "符号" };
- }, 32210: function(_) {
- _.exports = { symbols: "符號" };
- }, 52378: function(_) {
- _.exports = { assert() {
- } };
- } }, le = {};
- function $(_) {
- var t = le[_];
- if (t !== void 0) return t.exports;
- var e = le[_] = { exports: {} };
- return ue[_].call(e.exports, e, e.exports, $), e.exports;
- }
- $.m = ue, Z = [], $.O = function(_, t, e, n) {
- if (!t) {
- var m = 1 / 0;
- for (a = 0; Z.length > a; a++) {
- t = Z[a][0], e = Z[a][1], n = Z[a][2];
- for (var h = !0, f = 0; t.length > f; f++) (!1 & n || m >= n) && Object.keys($.O).every(function(s) {
- return $.O[s](t[f]);
- }) ? t.splice(f--, 1) : (h = !1, m > n && (m = n));
- if (h) {
- Z.splice(a--, 1);
- var d = e();
- d !== void 0 && (_ = d);
- }
- }
- return _;
- }
- n = n || 0;
- for (var a = Z.length; a > 0 && Z[a - 1][2] > n; a--) Z[a] = Z[a - 1];
- Z[a] = [t, e, n];
- }, $.g = function() {
- if (typeof globalThis == "object") return globalThis;
- try {
- return this || new Function("return this")();
- } catch (_) {
- if (typeof window == "object") return window;
- }
- }(), $.o = function(_, t) {
- return Object.prototype.hasOwnProperty.call(_, t);
- }, $.r = function(_) {
- typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(_, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(_, "__esModule", { value: !0 });
- }, function() {
- var _ = { 670: 0 };
- $.O.j = function(n) {
- return _[n] === 0;
- };
- var t = function(n, m) {
- var h, f, d = m[0], a = m[1], s = m[2], c = 0;
- if (d.some(function(l) {
- return _[l] !== 0;
- })) {
- for (h in a) $.o(a, h) && ($.m[h] = a[h]);
- if (s) var p = s($);
- }
- for (n && n(m); d.length > c; c++) $.o(_, f = d[c]) && _[f] && _[f][0](), _[f] = 0;
- return $.O(p);
- }, e = self.webpackChunkjodit = self.webpackChunkjodit || [];
- e.forEach(t.bind(null, 0)), e.push = t.bind(null, e.push.bind(e));
- }();
- var ie = {};
- return function() {
- var _ = ie;
- Object.defineProperty(_, "__esModule", { value: !0 }), _.CommitMode = _.Jodit = void 0, $(90176), typeof window != "undefined" && $(89019);
- var t = $(37920);
- Object.defineProperty(_, "Jodit", { enumerable: !0, get: function() {
- return t.Jodit;
- } });
- var e = $(26435), n = $(43441), m = $(86893), h = $(87837), f = $(15261);
- $(70022), $(91147), Object.keys(m).forEach(function(a) {
- t.Jodit[a] = m[a];
- });
- var d = function(a) {
- return a !== "__esModule";
- };
- Object.keys(f).filter(d).forEach(function(a) {
- h.Icon.set(a.replace("_", "-"), f[a]);
- }), Object.keys(h).filter(d).forEach(function(a) {
- t.Jodit.modules[a] = h[a];
- }), Object.keys(n).filter(d).forEach(function(a) {
- t.Jodit.decorators[a] = n[a];
- }), ["Confirm", "Alert", "Prompt"].forEach(function(a) {
- t.Jodit[a] = h[a];
- }), Object.keys(e.default).filter(d).forEach(function(a) {
- t.Jodit.lang[a] = e.default[a];
- }), _.CommitMode = function() {
- };
- }(), $.O(ie);
- }();
- });
- })(Pe);
- var Te = Pe.exports;
- const Ye = { class: "s-editor-wrap" }, Ge = {
- __name: "SEditor",
- props: {
- // 富文本内容(HTML 字符串),支持 v-model
- modelValue: { type: String, default: "" },
- // jodit 配置覆盖项,合并在内置默认配置之上;imageAdjust 为 true 时注入图片尺寸调整按钮
- config: { type: Object, default: () => ({}) }
- },
- emits: ["update:modelValue"],
- setup(te, { emit: ee }) {
- var e, n;
- let Z = xe(null);
- const ue = xe(null), le = te, $ = ee;
- let ie;
- const _ = {
- theme: "default",
- //主题:默认default,暗色dark
- placeholder: window.$l("请输入内容..."),
- zIndex: 10,
- language: ((n = (e = window.$utils) == null ? void 0 : e.ls) == null ? void 0 : n.get("lang")) === "en" ? "en" : "zh_cn",
- width: "100%",
- height: "100%",
- minHeight: 400,
- saveModeInCookie: !1,
- toolbarSticky: !1,
- //工具栏设置sticky
- statusbar: !1,
- //底部状态栏(左:html元素;右:单词数,字符数统计)
- image: {
- //图片相关配置
- editSrc: !1,
- editStyle: !1,
- useImageEditor: !1
- },
- link: {
- noFollowCheckbox: !1,
- modeClassName: ""
- },
- i18n: {
- zh_cn: {
- top: "上",
- right: "右",
- bottom: "下",
- left: "左",
- Title: "标题",
- Link: "链接",
- "Line height": "行高",
- Alternative: "描述",
- "Alternative text": "描述",
- "Lower Alpha": "小写英文字母",
- "Lower Greek": "小写希腊字母",
- "Lower Roman": "小写罗马数字",
- "Upper Alpha": "大写英文字母",
- "Upper Roman": "大写罗马数字"
- }
- },
- createAttributes: {
- blockquote: {
- style: `
- display: block;
- padding: 16px;
- margin: 0 0 24px;
- border-left: 8px solid var(--s-border-color-base);
- background: var(--s-bg-color-hover);
- color: var(--s-text-color-secondary);
- overflow: auto;
- word-break: break-word !important;`,
- class: "blockquote-box"
- //在css中编写类名对应的样式
- }
- },
- sourceEditorCDNUrlsJS: [
- // "https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js",
- "https://cdn.staticfile.org/ace/1.4.2/ace.js"
- ],
- beautifyHTMLCDNUrlsJS: [
- "https://cdn.staticfile.org/js-beautify/1.14.4/beautifier.min.js",
- "https://cdn.staticfile.org/js-beautify/1.14.4/beautify-html.min.js"
- ],
- disablePlugins: "stat, selectall, hr",
- //要禁用的插件,以逗号分割。stat是底部字符数与单词数统计
- buttons: `source,
- bold,
- italic,
- underline,
- strikethrough,
- eraser,
- superscript,
- subscript,
- ol,
- ul,
- indent,
- outdent,
- left,
- font,
- fontsize,
- paragraph,
- brush,
- lineHeight,
- image,
- file,
- video,
- copyformat,
- table,
- link,
- symbols,
- undo,
- redo,
- fullsize,
- preview`,
- controls: {
- font: {
- list: Te.Jodit.atom({
- "Microsoft YaHei": "微软雅黑",
- KaiTi: "楷体",
- 方正喵呜体: "方正喵呜体",
- "思源宋体 Heavy": "思源宋体",
- SimHei: "黑体",
- NSimSun: "新宋体",
- 华文行楷: "华文行楷"
- })
- }
- },
- uploader: {
- url: "/api/uploads",
- //上传地址
- isSuccess(m) {
- return m;
- },
- defaultHandlerSuccess(m) {
- console.log("defaultHandlerSuccess", m), m.forEach((h) => {
- this.s.insertImage(h.url);
- });
- },
- defaultHandlerError(m) {
- console.log("defaultHandlerError", m), this.jodit.events.fire("errorMessage", m);
- },
- error(m) {
- console.log("error", m), this.jodit.events.fire("errorMessage", window.$l("文件上传失败"));
- }
- }
- }, t = (m) => {
- const h = (f) => {
- const d = f.selection && f.selection.sel;
- if (!d || !d.rangeCount) return null;
- let a = d.getRangeAt(0).startContainer;
- for (; a && a !== f.o.editor; ) {
- if (a.tagName === "IMG") return a;
- a = a.parentNode;
- }
- return null;
- };
- return ke(pe({}, m && typeof m == "object" ? m : {}), {
- imageAdjust: {
- name: "imageAdjust",
- tooltip: window.$l("调整图片宽高"),
- isDisabled: (f) => !h(f),
- exec: (f) => {
- var a;
- const d = h(f);
- if (!d) {
- window.$message.warning(window.$l("请先选中一张图片"));
- return;
- }
- (a = ue.value) == null || a.open({ editor: f, image: d });
- }
- }
- });
- };
- return Ne(() => {
- const m = pe(pe({}, _), le.config);
- if (le.config.imageAdjust) {
- const h = String(m.buttons || "").split(",").map((d) => d.trim()).filter(Boolean), f = h.indexOf("image");
- h.splice(f === -1 ? h.length : f + 1, 0, "imageAdjust"), m.buttons = h.join(","), m.controls = t(m.controls);
- }
- ie = Te.Jodit.make("#editorRef", m), ie.value = le.modelValue, ie.events.on("change", (h) => {
- $("update:modelValue", h);
- });
- }), Re(() => {
- ie.destruct(), ie = null;
- }), Be(
- () => le.modelValue,
- (m) => {
- ie.value !== m && (ie.value = m);
- }
- ), (m, h) => (Ie(), qe("div", Ye, [
- Fe("textarea", {
- id: "editorRef",
- ref_key: "editorRef",
- ref: Z,
- name: "editor"
- }, null, 512),
- le.config.imageAdjust ? (Ie(), He(Ue, {
- key: 0,
- ref_key: "imageAdjustRef",
- ref: ue
- }, null, 512)) : Ve("", !0)
- ]));
- }
- }, Ze = /* @__PURE__ */ We(Ge, [["__scopeId", "data-v-e5945cfc"]]);
- export {
- Ze as default
- };
|