xmmath 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,25 @@
1
- (function(P,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(P=typeof globalThis<"u"?globalThis:P||self,$(P.xmmath={}))})(this,function(P){"use strict";function $(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var c={exports:{}};(function(n){function l(){var t=0,r=1,C=2,B=3,a=4,p=5,f=6,h=7,b=8,v=9,i=10,s=11,F=12,u=13,D=14,m=15,O=16,X=17,N=0,o=1,d=2,M0=3,S0=4;function j0(x,g){return 55296<=x.charCodeAt(g)&&x.charCodeAt(g)<=56319&&56320<=x.charCodeAt(g+1)&&x.charCodeAt(g+1)<=57343}function D0(x,g){g===void 0&&(g=0);var q=x.charCodeAt(g);if(55296<=q&&q<=56319&&g<x.length-1){var y=q,k=x.charCodeAt(g+1);return 56320<=k&&k<=57343?(y-55296)*1024+(k-56320)+65536:y}if(56320<=q&&q<=57343&&g>=1){var y=x.charCodeAt(g-1),k=q;return 55296<=y&&y<=56319?(y-55296)*1024+(k-56320)+65536:k}return q}function O0(x,g,q){var y=[x].concat(g).concat([q]),k=y[y.length-2],w=q,A0=y.lastIndexOf(D);if(A0>1&&y.slice(1,A0).every(function(I){return I==B})&&[B,u,X].indexOf(x)==-1)return d;var f0=y.lastIndexOf(a);if(f0>0&&y.slice(1,f0).every(function(I){return I==a})&&[F,a].indexOf(k)==-1)return y.filter(function(I){return I==a}).length%2==1?M0:S0;if(k==t&&w==r)return N;if(k==C||k==t||k==r)return w==D&&g.every(function(I){return I==B})?d:o;if(w==C||w==t||w==r)return o;if(k==f&&(w==f||w==h||w==v||w==i))return N;if((k==v||k==h)&&(w==h||w==b))return N;if((k==i||k==b)&&w==b)return N;if(w==B||w==m)return N;if(w==p)return N;if(k==F)return N;var p0=y.indexOf(B)!=-1?y.lastIndexOf(B)-1:y.length-2;return[u,X].indexOf(y[p0])!=-1&&y.slice(p0+1,-1).every(function(I){return I==B})&&w==D||k==m&&[O,X].indexOf(w)!=-1?N:g.indexOf(a)!=-1?d:k==a&&w==a?N:o}this.nextBreak=function(x,g){if(g===void 0&&(g=0),g<0)return 0;if(g>=x.length-1)return x.length;for(var q=s0(D0(x,g)),y=[],k=g+1;k<x.length;k++)if(!j0(x,k-1)){var w=s0(D0(x,k));if(O0(q,y,w))return k;y.push(w)}return x.length},this.splitGraphemes=function(x){for(var g=[],q=0,y;(y=this.nextBreak(x,q))<x.length;)g.push(x.slice(q,y)),q=y;return q<x.length&&g.push(x.slice(q)),g},this.iterateGraphemes=function(x){var g=0,q={next:function(){var y,k;return(k=this.nextBreak(x,g))<x.length?(y=x.slice(g,k),g=k,{value:y,done:!1}):g<x.length?(y=x.slice(g),g=x.length,{value:y,done:!1}):{value:void 0,done:!0}}.bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(q[Symbol.iterator]=function(){return q}),q},this.countGraphemes=function(x){for(var g=0,q=0,y;(y=this.nextBreak(x,q))<x.length;)q=y,g++;return q<x.length&&g++,g};function s0(x){return 1536<=x&&x<=1541||x==1757||x==1807||x==2274||x==3406||x==69821||70082<=x&&x<=70083||x==72250||72326<=x&&x<=72329||x==73030?F:x==13?t:x==10?r:0<=x&&x<=9||11<=x&&x<=12||14<=x&&x<=31||127<=x&&x<=159||x==173||x==1564||x==6158||x==8203||8206<=x&&x<=8207||x==8232||x==8233||8234<=x&&x<=8238||8288<=x&&x<=8292||x==8293||8294<=x&&x<=8303||55296<=x&&x<=57343||x==65279||65520<=x&&x<=65528||65529<=x&&x<=65531||113824<=x&&x<=113827||119155<=x&&x<=119162||x==917504||x==917505||917506<=x&&x<=917535||917632<=x&&x<=917759||918e3<=x&&x<=921599?C:768<=x&&x<=879||1155<=x&&x<=1159||1160<=x&&x<=1161||1425<=x&&x<=1469||x==1471||1473<=x&&x<=1474||1476<=x&&x<=1477||x==1479||1552<=x&&x<=1562||1611<=x&&x<=1631||x==1648||1750<=x&&x<=1756||1759<=x&&x<=1764||1767<=x&&x<=1768||1770<=x&&x<=1773||x==1809||1840<=x&&x<=1866||1958<=x&&x<=1968||2027<=x&&x<=2035||2070<=x&&x<=2073||2075<=x&&x<=2083||2085<=x&&x<=2087||2089<=x&&x<=2093||2137<=x&&x<=2139||2260<=x&&x<=2273||2275<=x&&x<=2306||x==2362||x==2364||2369<=x&&x<=2376||x==2381||2385<=x&&x<=2391||2402<=x&&x<=2403||x==2433||x==2492||x==2494||2497<=x&&x<=2500||x==2509||x==2519||2530<=x&&x<=2531||2561<=x&&x<=2562||x==2620||2625<=x&&x<=2626||2631<=x&&x<=2632||2635<=x&&x<=2637||x==2641||2672<=x&&x<=2673||x==2677||2689<=x&&x<=2690||x==2748||2753<=x&&x<=2757||2759<=x&&x<=2760||x==2765||2786<=x&&x<=2787||2810<=x&&x<=2815||x==2817||x==2876||x==2878||x==2879||2881<=x&&x<=2884||x==2893||x==2902||x==2903||2914<=x&&x<=2915||x==2946||x==3006||x==3008||x==3021||x==3031||x==3072||3134<=x&&x<=3136||3142<=x&&x<=3144||3146<=x&&x<=3149||3157<=x&&x<=3158||3170<=x&&x<=3171||x==3201||x==3260||x==3263||x==3266||x==3270||3276<=x&&x<=3277||3285<=x&&x<=3286||3298<=x&&x<=3299||3328<=x&&x<=3329||3387<=x&&x<=3388||x==3390||3393<=x&&x<=3396||x==3405||x==3415||3426<=x&&x<=3427||x==3530||x==3535||3538<=x&&x<=3540||x==3542||x==3551||x==3633||3636<=x&&x<=3642||3655<=x&&x<=3662||x==3761||3764<=x&&x<=3769||3771<=x&&x<=3772||3784<=x&&x<=3789||3864<=x&&x<=3865||x==3893||x==3895||x==3897||3953<=x&&x<=3966||3968<=x&&x<=3972||3974<=x&&x<=3975||3981<=x&&x<=3991||3993<=x&&x<=4028||x==4038||4141<=x&&x<=4144||4146<=x&&x<=4151||4153<=x&&x<=4154||4157<=x&&x<=4158||4184<=x&&x<=4185||4190<=x&&x<=4192||4209<=x&&x<=4212||x==4226||4229<=x&&x<=4230||x==4237||x==4253||4957<=x&&x<=4959||5906<=x&&x<=5908||5938<=x&&x<=5940||5970<=x&&x<=5971||6002<=x&&x<=6003||6068<=x&&x<=6069||6071<=x&&x<=6077||x==6086||6089<=x&&x<=6099||x==6109||6155<=x&&x<=6157||6277<=x&&x<=6278||x==6313||6432<=x&&x<=6434||6439<=x&&x<=6440||x==6450||6457<=x&&x<=6459||6679<=x&&x<=6680||x==6683||x==6742||6744<=x&&x<=6750||x==6752||x==6754||6757<=x&&x<=6764||6771<=x&&x<=6780||x==6783||6832<=x&&x<=6845||x==6846||6912<=x&&x<=6915||x==6964||6966<=x&&x<=6970||x==6972||x==6978||7019<=x&&x<=7027||7040<=x&&x<=7041||7074<=x&&x<=7077||7080<=x&&x<=7081||7083<=x&&x<=7085||x==7142||7144<=x&&x<=7145||x==7149||7151<=x&&x<=7153||7212<=x&&x<=7219||7222<=x&&x<=7223||7376<=x&&x<=7378||7380<=x&&x<=7392||7394<=x&&x<=7400||x==7405||x==7412||7416<=x&&x<=7417||7616<=x&&x<=7673||7675<=x&&x<=7679||x==8204||8400<=x&&x<=8412||8413<=x&&x<=8416||x==8417||8418<=x&&x<=8420||8421<=x&&x<=8432||11503<=x&&x<=11505||x==11647||11744<=x&&x<=11775||12330<=x&&x<=12333||12334<=x&&x<=12335||12441<=x&&x<=12442||x==42607||42608<=x&&x<=42610||42612<=x&&x<=42621||42654<=x&&x<=42655||42736<=x&&x<=42737||x==43010||x==43014||x==43019||43045<=x&&x<=43046||43204<=x&&x<=43205||43232<=x&&x<=43249||43302<=x&&x<=43309||43335<=x&&x<=43345||43392<=x&&x<=43394||x==43443||43446<=x&&x<=43449||x==43452||x==43493||43561<=x&&x<=43566||43569<=x&&x<=43570||43573<=x&&x<=43574||x==43587||x==43596||x==43644||x==43696||43698<=x&&x<=43700||43703<=x&&x<=43704||43710<=x&&x<=43711||x==43713||43756<=x&&x<=43757||x==43766||x==44005||x==44008||x==44013||x==64286||65024<=x&&x<=65039||65056<=x&&x<=65071||65438<=x&&x<=65439||x==66045||x==66272||66422<=x&&x<=66426||68097<=x&&x<=68099||68101<=x&&x<=68102||68108<=x&&x<=68111||68152<=x&&x<=68154||x==68159||68325<=x&&x<=68326||x==69633||69688<=x&&x<=69702||69759<=x&&x<=69761||69811<=x&&x<=69814||69817<=x&&x<=69818||69888<=x&&x<=69890||69927<=x&&x<=69931||69933<=x&&x<=69940||x==70003||70016<=x&&x<=70017||70070<=x&&x<=70078||70090<=x&&x<=70092||70191<=x&&x<=70193||x==70196||70198<=x&&x<=70199||x==70206||x==70367||70371<=x&&x<=70378||70400<=x&&x<=70401||x==70460||x==70462||x==70464||x==70487||70502<=x&&x<=70508||70512<=x&&x<=70516||70712<=x&&x<=70719||70722<=x&&x<=70724||x==70726||x==70832||70835<=x&&x<=70840||x==70842||x==70845||70847<=x&&x<=70848||70850<=x&&x<=70851||x==71087||71090<=x&&x<=71093||71100<=x&&x<=71101||71103<=x&&x<=71104||71132<=x&&x<=71133||71219<=x&&x<=71226||x==71229||71231<=x&&x<=71232||x==71339||x==71341||71344<=x&&x<=71349||x==71351||71453<=x&&x<=71455||71458<=x&&x<=71461||71463<=x&&x<=71467||72193<=x&&x<=72198||72201<=x&&x<=72202||72243<=x&&x<=72248||72251<=x&&x<=72254||x==72263||72273<=x&&x<=72278||72281<=x&&x<=72283||72330<=x&&x<=72342||72344<=x&&x<=72345||72752<=x&&x<=72758||72760<=x&&x<=72765||x==72767||72850<=x&&x<=72871||72874<=x&&x<=72880||72882<=x&&x<=72883||72885<=x&&x<=72886||73009<=x&&x<=73014||x==73018||73020<=x&&x<=73021||73023<=x&&x<=73029||x==73031||92912<=x&&x<=92916||92976<=x&&x<=92982||94095<=x&&x<=94098||113821<=x&&x<=113822||x==119141||119143<=x&&x<=119145||119150<=x&&x<=119154||119163<=x&&x<=119170||119173<=x&&x<=119179||119210<=x&&x<=119213||119362<=x&&x<=119364||121344<=x&&x<=121398||121403<=x&&x<=121452||x==121461||x==121476||121499<=x&&x<=121503||121505<=x&&x<=121519||122880<=x&&x<=122886||122888<=x&&x<=122904||122907<=x&&x<=122913||122915<=x&&x<=122916||122918<=x&&x<=122922||125136<=x&&x<=125142||125252<=x&&x<=125258||917536<=x&&x<=917631||917760<=x&&x<=917999?B:127462<=x&&x<=127487?a:x==2307||x==2363||2366<=x&&x<=2368||2377<=x&&x<=2380||2382<=x&&x<=2383||2434<=x&&x<=2435||2495<=x&&x<=2496||2503<=x&&x<=2504||2507<=x&&x<=2508||x==2563||2622<=x&&x<=2624||x==2691||2750<=x&&x<=2752||x==2761||2763<=x&&x<=2764||2818<=x&&x<=2819||x==2880||2887<=x&&x<=2888||2891<=x&&x<=2892||x==3007||3009<=x&&x<=3010||3014<=x&&x<=3016||3018<=x&&x<=3020||3073<=x&&x<=3075||3137<=x&&x<=3140||3202<=x&&x<=3203||x==3262||3264<=x&&x<=3265||3267<=x&&x<=3268||3271<=x&&x<=3272||3274<=x&&x<=3275||3330<=x&&x<=3331||3391<=x&&x<=3392||3398<=x&&x<=3400||3402<=x&&x<=3404||3458<=x&&x<=3459||3536<=x&&x<=3537||3544<=x&&x<=3550||3570<=x&&x<=3571||x==3635||x==3763||3902<=x&&x<=3903||x==3967||x==4145||4155<=x&&x<=4156||4182<=x&&x<=4183||x==4228||x==6070||6078<=x&&x<=6085||6087<=x&&x<=6088||6435<=x&&x<=6438||6441<=x&&x<=6443||6448<=x&&x<=6449||6451<=x&&x<=6456||6681<=x&&x<=6682||x==6741||x==6743||6765<=x&&x<=6770||x==6916||x==6965||x==6971||6973<=x&&x<=6977||6979<=x&&x<=6980||x==7042||x==7073||7078<=x&&x<=7079||x==7082||x==7143||7146<=x&&x<=7148||x==7150||7154<=x&&x<=7155||7204<=x&&x<=7211||7220<=x&&x<=7221||x==7393||7410<=x&&x<=7411||x==7415||43043<=x&&x<=43044||x==43047||43136<=x&&x<=43137||43188<=x&&x<=43203||43346<=x&&x<=43347||x==43395||43444<=x&&x<=43445||43450<=x&&x<=43451||43453<=x&&x<=43456||43567<=x&&x<=43568||43571<=x&&x<=43572||x==43597||x==43755||43758<=x&&x<=43759||x==43765||44003<=x&&x<=44004||44006<=x&&x<=44007||44009<=x&&x<=44010||x==44012||x==69632||x==69634||x==69762||69808<=x&&x<=69810||69815<=x&&x<=69816||x==69932||x==70018||70067<=x&&x<=70069||70079<=x&&x<=70080||70188<=x&&x<=70190||70194<=x&&x<=70195||x==70197||70368<=x&&x<=70370||70402<=x&&x<=70403||x==70463||70465<=x&&x<=70468||70471<=x&&x<=70472||70475<=x&&x<=70477||70498<=x&&x<=70499||70709<=x&&x<=70711||70720<=x&&x<=70721||x==70725||70833<=x&&x<=70834||x==70841||70843<=x&&x<=70844||x==70846||x==70849||71088<=x&&x<=71089||71096<=x&&x<=71099||x==71102||71216<=x&&x<=71218||71227<=x&&x<=71228||x==71230||x==71340||71342<=x&&x<=71343||x==71350||71456<=x&&x<=71457||x==71462||72199<=x&&x<=72200||x==72249||72279<=x&&x<=72280||x==72343||x==72751||x==72766||x==72873||x==72881||x==72884||94033<=x&&x<=94078||x==119142||x==119149?p:4352<=x&&x<=4447||43360<=x&&x<=43388?f:4448<=x&&x<=4519||55216<=x&&x<=55238?h:4520<=x&&x<=4607||55243<=x&&x<=55291?b:x==44032||x==44060||x==44088||x==44116||x==44144||x==44172||x==44200||x==44228||x==44256||x==44284||x==44312||x==44340||x==44368||x==44396||x==44424||x==44452||x==44480||x==44508||x==44536||x==44564||x==44592||x==44620||x==44648||x==44676||x==44704||x==44732||x==44760||x==44788||x==44816||x==44844||x==44872||x==44900||x==44928||x==44956||x==44984||x==45012||x==45040||x==45068||x==45096||x==45124||x==45152||x==45180||x==45208||x==45236||x==45264||x==45292||x==45320||x==45348||x==45376||x==45404||x==45432||x==45460||x==45488||x==45516||x==45544||x==45572||x==45600||x==45628||x==45656||x==45684||x==45712||x==45740||x==45768||x==45796||x==45824||x==45852||x==45880||x==45908||x==45936||x==45964||x==45992||x==46020||x==46048||x==46076||x==46104||x==46132||x==46160||x==46188||x==46216||x==46244||x==46272||x==46300||x==46328||x==46356||x==46384||x==46412||x==46440||x==46468||x==46496||x==46524||x==46552||x==46580||x==46608||x==46636||x==46664||x==46692||x==46720||x==46748||x==46776||x==46804||x==46832||x==46860||x==46888||x==46916||x==46944||x==46972||x==47e3||x==47028||x==47056||x==47084||x==47112||x==47140||x==47168||x==47196||x==47224||x==47252||x==47280||x==47308||x==47336||x==47364||x==47392||x==47420||x==47448||x==47476||x==47504||x==47532||x==47560||x==47588||x==47616||x==47644||x==47672||x==47700||x==47728||x==47756||x==47784||x==47812||x==47840||x==47868||x==47896||x==47924||x==47952||x==47980||x==48008||x==48036||x==48064||x==48092||x==48120||x==48148||x==48176||x==48204||x==48232||x==48260||x==48288||x==48316||x==48344||x==48372||x==48400||x==48428||x==48456||x==48484||x==48512||x==48540||x==48568||x==48596||x==48624||x==48652||x==48680||x==48708||x==48736||x==48764||x==48792||x==48820||x==48848||x==48876||x==48904||x==48932||x==48960||x==48988||x==49016||x==49044||x==49072||x==49100||x==49128||x==49156||x==49184||x==49212||x==49240||x==49268||x==49296||x==49324||x==49352||x==49380||x==49408||x==49436||x==49464||x==49492||x==49520||x==49548||x==49576||x==49604||x==49632||x==49660||x==49688||x==49716||x==49744||x==49772||x==49800||x==49828||x==49856||x==49884||x==49912||x==49940||x==49968||x==49996||x==50024||x==50052||x==50080||x==50108||x==50136||x==50164||x==50192||x==50220||x==50248||x==50276||x==50304||x==50332||x==50360||x==50388||x==50416||x==50444||x==50472||x==50500||x==50528||x==50556||x==50584||x==50612||x==50640||x==50668||x==50696||x==50724||x==50752||x==50780||x==50808||x==50836||x==50864||x==50892||x==50920||x==50948||x==50976||x==51004||x==51032||x==51060||x==51088||x==51116||x==51144||x==51172||x==51200||x==51228||x==51256||x==51284||x==51312||x==51340||x==51368||x==51396||x==51424||x==51452||x==51480||x==51508||x==51536||x==51564||x==51592||x==51620||x==51648||x==51676||x==51704||x==51732||x==51760||x==51788||x==51816||x==51844||x==51872||x==51900||x==51928||x==51956||x==51984||x==52012||x==52040||x==52068||x==52096||x==52124||x==52152||x==52180||x==52208||x==52236||x==52264||x==52292||x==52320||x==52348||x==52376||x==52404||x==52432||x==52460||x==52488||x==52516||x==52544||x==52572||x==52600||x==52628||x==52656||x==52684||x==52712||x==52740||x==52768||x==52796||x==52824||x==52852||x==52880||x==52908||x==52936||x==52964||x==52992||x==53020||x==53048||x==53076||x==53104||x==53132||x==53160||x==53188||x==53216||x==53244||x==53272||x==53300||x==53328||x==53356||x==53384||x==53412||x==53440||x==53468||x==53496||x==53524||x==53552||x==53580||x==53608||x==53636||x==53664||x==53692||x==53720||x==53748||x==53776||x==53804||x==53832||x==53860||x==53888||x==53916||x==53944||x==53972||x==54e3||x==54028||x==54056||x==54084||x==54112||x==54140||x==54168||x==54196||x==54224||x==54252||x==54280||x==54308||x==54336||x==54364||x==54392||x==54420||x==54448||x==54476||x==54504||x==54532||x==54560||x==54588||x==54616||x==54644||x==54672||x==54700||x==54728||x==54756||x==54784||x==54812||x==54840||x==54868||x==54896||x==54924||x==54952||x==54980||x==55008||x==55036||x==55064||x==55092||x==55120||x==55148||x==55176?v:44033<=x&&x<=44059||44061<=x&&x<=44087||44089<=x&&x<=44115||44117<=x&&x<=44143||44145<=x&&x<=44171||44173<=x&&x<=44199||44201<=x&&x<=44227||44229<=x&&x<=44255||44257<=x&&x<=44283||44285<=x&&x<=44311||44313<=x&&x<=44339||44341<=x&&x<=44367||44369<=x&&x<=44395||44397<=x&&x<=44423||44425<=x&&x<=44451||44453<=x&&x<=44479||44481<=x&&x<=44507||44509<=x&&x<=44535||44537<=x&&x<=44563||44565<=x&&x<=44591||44593<=x&&x<=44619||44621<=x&&x<=44647||44649<=x&&x<=44675||44677<=x&&x<=44703||44705<=x&&x<=44731||44733<=x&&x<=44759||44761<=x&&x<=44787||44789<=x&&x<=44815||44817<=x&&x<=44843||44845<=x&&x<=44871||44873<=x&&x<=44899||44901<=x&&x<=44927||44929<=x&&x<=44955||44957<=x&&x<=44983||44985<=x&&x<=45011||45013<=x&&x<=45039||45041<=x&&x<=45067||45069<=x&&x<=45095||45097<=x&&x<=45123||45125<=x&&x<=45151||45153<=x&&x<=45179||45181<=x&&x<=45207||45209<=x&&x<=45235||45237<=x&&x<=45263||45265<=x&&x<=45291||45293<=x&&x<=45319||45321<=x&&x<=45347||45349<=x&&x<=45375||45377<=x&&x<=45403||45405<=x&&x<=45431||45433<=x&&x<=45459||45461<=x&&x<=45487||45489<=x&&x<=45515||45517<=x&&x<=45543||45545<=x&&x<=45571||45573<=x&&x<=45599||45601<=x&&x<=45627||45629<=x&&x<=45655||45657<=x&&x<=45683||45685<=x&&x<=45711||45713<=x&&x<=45739||45741<=x&&x<=45767||45769<=x&&x<=45795||45797<=x&&x<=45823||45825<=x&&x<=45851||45853<=x&&x<=45879||45881<=x&&x<=45907||45909<=x&&x<=45935||45937<=x&&x<=45963||45965<=x&&x<=45991||45993<=x&&x<=46019||46021<=x&&x<=46047||46049<=x&&x<=46075||46077<=x&&x<=46103||46105<=x&&x<=46131||46133<=x&&x<=46159||46161<=x&&x<=46187||46189<=x&&x<=46215||46217<=x&&x<=46243||46245<=x&&x<=46271||46273<=x&&x<=46299||46301<=x&&x<=46327||46329<=x&&x<=46355||46357<=x&&x<=46383||46385<=x&&x<=46411||46413<=x&&x<=46439||46441<=x&&x<=46467||46469<=x&&x<=46495||46497<=x&&x<=46523||46525<=x&&x<=46551||46553<=x&&x<=46579||46581<=x&&x<=46607||46609<=x&&x<=46635||46637<=x&&x<=46663||46665<=x&&x<=46691||46693<=x&&x<=46719||46721<=x&&x<=46747||46749<=x&&x<=46775||46777<=x&&x<=46803||46805<=x&&x<=46831||46833<=x&&x<=46859||46861<=x&&x<=46887||46889<=x&&x<=46915||46917<=x&&x<=46943||46945<=x&&x<=46971||46973<=x&&x<=46999||47001<=x&&x<=47027||47029<=x&&x<=47055||47057<=x&&x<=47083||47085<=x&&x<=47111||47113<=x&&x<=47139||47141<=x&&x<=47167||47169<=x&&x<=47195||47197<=x&&x<=47223||47225<=x&&x<=47251||47253<=x&&x<=47279||47281<=x&&x<=47307||47309<=x&&x<=47335||47337<=x&&x<=47363||47365<=x&&x<=47391||47393<=x&&x<=47419||47421<=x&&x<=47447||47449<=x&&x<=47475||47477<=x&&x<=47503||47505<=x&&x<=47531||47533<=x&&x<=47559||47561<=x&&x<=47587||47589<=x&&x<=47615||47617<=x&&x<=47643||47645<=x&&x<=47671||47673<=x&&x<=47699||47701<=x&&x<=47727||47729<=x&&x<=47755||47757<=x&&x<=47783||47785<=x&&x<=47811||47813<=x&&x<=47839||47841<=x&&x<=47867||47869<=x&&x<=47895||47897<=x&&x<=47923||47925<=x&&x<=47951||47953<=x&&x<=47979||47981<=x&&x<=48007||48009<=x&&x<=48035||48037<=x&&x<=48063||48065<=x&&x<=48091||48093<=x&&x<=48119||48121<=x&&x<=48147||48149<=x&&x<=48175||48177<=x&&x<=48203||48205<=x&&x<=48231||48233<=x&&x<=48259||48261<=x&&x<=48287||48289<=x&&x<=48315||48317<=x&&x<=48343||48345<=x&&x<=48371||48373<=x&&x<=48399||48401<=x&&x<=48427||48429<=x&&x<=48455||48457<=x&&x<=48483||48485<=x&&x<=48511||48513<=x&&x<=48539||48541<=x&&x<=48567||48569<=x&&x<=48595||48597<=x&&x<=48623||48625<=x&&x<=48651||48653<=x&&x<=48679||48681<=x&&x<=48707||48709<=x&&x<=48735||48737<=x&&x<=48763||48765<=x&&x<=48791||48793<=x&&x<=48819||48821<=x&&x<=48847||48849<=x&&x<=48875||48877<=x&&x<=48903||48905<=x&&x<=48931||48933<=x&&x<=48959||48961<=x&&x<=48987||48989<=x&&x<=49015||49017<=x&&x<=49043||49045<=x&&x<=49071||49073<=x&&x<=49099||49101<=x&&x<=49127||49129<=x&&x<=49155||49157<=x&&x<=49183||49185<=x&&x<=49211||49213<=x&&x<=49239||49241<=x&&x<=49267||49269<=x&&x<=49295||49297<=x&&x<=49323||49325<=x&&x<=49351||49353<=x&&x<=49379||49381<=x&&x<=49407||49409<=x&&x<=49435||49437<=x&&x<=49463||49465<=x&&x<=49491||49493<=x&&x<=49519||49521<=x&&x<=49547||49549<=x&&x<=49575||49577<=x&&x<=49603||49605<=x&&x<=49631||49633<=x&&x<=49659||49661<=x&&x<=49687||49689<=x&&x<=49715||49717<=x&&x<=49743||49745<=x&&x<=49771||49773<=x&&x<=49799||49801<=x&&x<=49827||49829<=x&&x<=49855||49857<=x&&x<=49883||49885<=x&&x<=49911||49913<=x&&x<=49939||49941<=x&&x<=49967||49969<=x&&x<=49995||49997<=x&&x<=50023||50025<=x&&x<=50051||50053<=x&&x<=50079||50081<=x&&x<=50107||50109<=x&&x<=50135||50137<=x&&x<=50163||50165<=x&&x<=50191||50193<=x&&x<=50219||50221<=x&&x<=50247||50249<=x&&x<=50275||50277<=x&&x<=50303||50305<=x&&x<=50331||50333<=x&&x<=50359||50361<=x&&x<=50387||50389<=x&&x<=50415||50417<=x&&x<=50443||50445<=x&&x<=50471||50473<=x&&x<=50499||50501<=x&&x<=50527||50529<=x&&x<=50555||50557<=x&&x<=50583||50585<=x&&x<=50611||50613<=x&&x<=50639||50641<=x&&x<=50667||50669<=x&&x<=50695||50697<=x&&x<=50723||50725<=x&&x<=50751||50753<=x&&x<=50779||50781<=x&&x<=50807||50809<=x&&x<=50835||50837<=x&&x<=50863||50865<=x&&x<=50891||50893<=x&&x<=50919||50921<=x&&x<=50947||50949<=x&&x<=50975||50977<=x&&x<=51003||51005<=x&&x<=51031||51033<=x&&x<=51059||51061<=x&&x<=51087||51089<=x&&x<=51115||51117<=x&&x<=51143||51145<=x&&x<=51171||51173<=x&&x<=51199||51201<=x&&x<=51227||51229<=x&&x<=51255||51257<=x&&x<=51283||51285<=x&&x<=51311||51313<=x&&x<=51339||51341<=x&&x<=51367||51369<=x&&x<=51395||51397<=x&&x<=51423||51425<=x&&x<=51451||51453<=x&&x<=51479||51481<=x&&x<=51507||51509<=x&&x<=51535||51537<=x&&x<=51563||51565<=x&&x<=51591||51593<=x&&x<=51619||51621<=x&&x<=51647||51649<=x&&x<=51675||51677<=x&&x<=51703||51705<=x&&x<=51731||51733<=x&&x<=51759||51761<=x&&x<=51787||51789<=x&&x<=51815||51817<=x&&x<=51843||51845<=x&&x<=51871||51873<=x&&x<=51899||51901<=x&&x<=51927||51929<=x&&x<=51955||51957<=x&&x<=51983||51985<=x&&x<=52011||52013<=x&&x<=52039||52041<=x&&x<=52067||52069<=x&&x<=52095||52097<=x&&x<=52123||52125<=x&&x<=52151||52153<=x&&x<=52179||52181<=x&&x<=52207||52209<=x&&x<=52235||52237<=x&&x<=52263||52265<=x&&x<=52291||52293<=x&&x<=52319||52321<=x&&x<=52347||52349<=x&&x<=52375||52377<=x&&x<=52403||52405<=x&&x<=52431||52433<=x&&x<=52459||52461<=x&&x<=52487||52489<=x&&x<=52515||52517<=x&&x<=52543||52545<=x&&x<=52571||52573<=x&&x<=52599||52601<=x&&x<=52627||52629<=x&&x<=52655||52657<=x&&x<=52683||52685<=x&&x<=52711||52713<=x&&x<=52739||52741<=x&&x<=52767||52769<=x&&x<=52795||52797<=x&&x<=52823||52825<=x&&x<=52851||52853<=x&&x<=52879||52881<=x&&x<=52907||52909<=x&&x<=52935||52937<=x&&x<=52963||52965<=x&&x<=52991||52993<=x&&x<=53019||53021<=x&&x<=53047||53049<=x&&x<=53075||53077<=x&&x<=53103||53105<=x&&x<=53131||53133<=x&&x<=53159||53161<=x&&x<=53187||53189<=x&&x<=53215||53217<=x&&x<=53243||53245<=x&&x<=53271||53273<=x&&x<=53299||53301<=x&&x<=53327||53329<=x&&x<=53355||53357<=x&&x<=53383||53385<=x&&x<=53411||53413<=x&&x<=53439||53441<=x&&x<=53467||53469<=x&&x<=53495||53497<=x&&x<=53523||53525<=x&&x<=53551||53553<=x&&x<=53579||53581<=x&&x<=53607||53609<=x&&x<=53635||53637<=x&&x<=53663||53665<=x&&x<=53691||53693<=x&&x<=53719||53721<=x&&x<=53747||53749<=x&&x<=53775||53777<=x&&x<=53803||53805<=x&&x<=53831||53833<=x&&x<=53859||53861<=x&&x<=53887||53889<=x&&x<=53915||53917<=x&&x<=53943||53945<=x&&x<=53971||53973<=x&&x<=53999||54001<=x&&x<=54027||54029<=x&&x<=54055||54057<=x&&x<=54083||54085<=x&&x<=54111||54113<=x&&x<=54139||54141<=x&&x<=54167||54169<=x&&x<=54195||54197<=x&&x<=54223||54225<=x&&x<=54251||54253<=x&&x<=54279||54281<=x&&x<=54307||54309<=x&&x<=54335||54337<=x&&x<=54363||54365<=x&&x<=54391||54393<=x&&x<=54419||54421<=x&&x<=54447||54449<=x&&x<=54475||54477<=x&&x<=54503||54505<=x&&x<=54531||54533<=x&&x<=54559||54561<=x&&x<=54587||54589<=x&&x<=54615||54617<=x&&x<=54643||54645<=x&&x<=54671||54673<=x&&x<=54699||54701<=x&&x<=54727||54729<=x&&x<=54755||54757<=x&&x<=54783||54785<=x&&x<=54811||54813<=x&&x<=54839||54841<=x&&x<=54867||54869<=x&&x<=54895||54897<=x&&x<=54923||54925<=x&&x<=54951||54953<=x&&x<=54979||54981<=x&&x<=55007||55009<=x&&x<=55035||55037<=x&&x<=55063||55065<=x&&x<=55091||55093<=x&&x<=55119||55121<=x&&x<=55147||55149<=x&&x<=55175||55177<=x&&x<=55203?i:x==9757||x==9977||9994<=x&&x<=9997||x==127877||127938<=x&&x<=127940||x==127943||127946<=x&&x<=127948||128066<=x&&x<=128067||128070<=x&&x<=128080||x==128110||128112<=x&&x<=128120||x==128124||128129<=x&&x<=128131||128133<=x&&x<=128135||x==128170||128372<=x&&x<=128373||x==128378||x==128400||128405<=x&&x<=128406||128581<=x&&x<=128583||128587<=x&&x<=128591||x==128675||128692<=x&&x<=128694||x==128704||x==128716||129304<=x&&x<=129308||129310<=x&&x<=129311||x==129318||129328<=x&&x<=129337||129341<=x&&x<=129342||129489<=x&&x<=129501?u:127995<=x&&x<=127999?D:x==8205?m:x==9792||x==9794||9877<=x&&x<=9878||x==9992||x==10084||x==127752||x==127806||x==127859||x==127891||x==127908||x==127912||x==127979||x==127981||x==128139||128187<=x&&x<=128188||x==128295||x==128300||x==128488||x==128640||x==128658?O:128102<=x&&x<=128105?X:s}return this}n.exports&&(n.exports=l)})(c);var F0=c.exports;const h0=$(F0),b0=`{
1
+ (function(N,O){typeof exports=="object"&&typeof module<"u"?O(exports):typeof define=="function"&&define.amd?define(["exports"],O):(N=typeof globalThis<"u"?globalThis:N||self,O(N.xmmath={}))})(this,function(N){"use strict";const O=`{
2
2
  "wj": "⁠",
3
3
  "zwj": "‍",
4
4
  "zwnj": "‌",
5
5
  "zws": "​",
6
+ "lrm": "\\u200E",
7
+ "rlm": "\\u200F",
6
8
  "space": [
7
9
  " ",
8
10
  {
9
11
  "nobreak": " ",
10
- "en": " ",
11
- "quad": " ",
12
- "third": " ",
13
- "quarter": " ",
14
- "sixth": " ",
15
- "med": " ",
16
- "fig": " ",
17
- "punct": " ",
18
- "thin": " ",
19
- "hair": " "
12
+ "nobreak.narrow": "\\u202F",
13
+ "en": "\\u2002",
14
+ "quad": "\\u2003",
15
+ "third": "\\u2004",
16
+ "quarter": "\\u2005",
17
+ "sixth": "\\u2006",
18
+ "med": "\\u205f",
19
+ "fig": "\\u2007",
20
+ "punct": "\\u2008",
21
+ "thin": "\\u2009",
22
+ "hair": "\\u200a"
20
23
  }
21
24
  ],
22
25
  "paren": [{ "l": "(", "r": ")", "t": "⏜", "b": "⏝" }],
@@ -49,12 +52,21 @@
49
52
  ],
50
53
  "amp": ["&", { "inv": "⅋" }],
51
54
  "ast": [
52
- { "op": "∗", "basic": "*", "low": "⁎", "double": "⁑", "triple": "⁂", "small": "﹡", "circle": "⊛", "sq": "⧆" }
55
+ {
56
+ "op": "∗",
57
+ "basic": "*",
58
+ "low": "⁎",
59
+ "double": "⁑",
60
+ "triple": "⁂",
61
+ "small": "﹡",
62
+ "circle": "⊛",
63
+ "square": "⧆"
64
+ }
53
65
  ],
54
66
  "at": "@",
55
67
  "backslash": ["\\\\\\\\", { "circle": "⦸", "not": "⧷" }],
56
68
  "co": "℅",
57
- "colon": [":", { "eq": "≔", "double.eq": "⩴" }],
69
+ "colon": [":", { "double": "∷", "eq": "≔", "double.eq": "⩴" }],
58
70
  "comma": ",",
59
71
  "dagger": ["†", { "double": "‡" }],
60
72
  "dash": [{ "en": "–", "em": "—", "fig": "‒", "wave": "〜", "colon": "∹", "circle": "⊝", "wave.double": "〰" }],
@@ -88,15 +100,16 @@
88
100
  {
89
101
  "op": "∼",
90
102
  "basic": "~",
103
+ "dot": "⩪",
91
104
  "eq": "≃",
92
105
  "eq.not": "≄",
93
106
  "eq.rev": "⋍",
94
- "eqq": "≅",
95
- "eqq.not": "≇",
96
- "neqq": "≆",
107
+ "equiv": "≅",
108
+ "equiv.not": "≇",
109
+ "nequiv": "≆",
97
110
  "not": "≁",
98
111
  "rev": "∽",
99
- "rev.eqq": "≌",
112
+ "rev.equiv": "≌",
100
113
  "triple": "≋"
101
114
  }
102
115
  ],
@@ -175,23 +188,38 @@
175
188
  "prec": "⋞",
176
189
  "quest": "≟",
177
190
  "small": "﹦",
178
- "succ": "⋟"
191
+ "succ": "⋟",
192
+ "triple": "≡",
193
+ "quad": "≣"
179
194
  }
180
195
  ],
181
196
  "gt": [
182
197
  ">",
183
198
  {
184
199
  "circle": "⧁",
200
+ "curly": "≻",
201
+ "curly.approx": "⪸",
202
+ "curly.double": "⪼",
203
+ "curly.eq": "≽",
204
+ "curly.eq.not": "⋡",
205
+ "curly.equiv": "⪴",
206
+ "curly.napprox": "⪺",
207
+ "curly.nequiv": "⪶",
208
+ "curly.not": "⊁",
209
+ "curly.ntilde": "⋩",
210
+ "curly.tilde": "≿",
185
211
  "dot": "⋗",
212
+ "approx": "⪆",
186
213
  "double": "≫",
187
214
  "eq": "≥",
188
215
  "eq.slant": "⩾",
189
216
  "eq.lt": "⋛",
190
217
  "eq.not": "≱",
191
- "eqq": "≧",
218
+ "equiv": "≧",
192
219
  "lt": "≷",
193
220
  "lt.not": "≹",
194
- "neqq": "≩",
221
+ "napprox": "⪊",
222
+ "nequiv": "≩",
195
223
  "not": "≯",
196
224
  "ntilde": "⋧",
197
225
  "small": "﹥",
@@ -209,16 +237,29 @@
209
237
  "<",
210
238
  {
211
239
  "circle": "⧀",
240
+ "curly": "≺",
241
+ "curly.approx": "⪷",
242
+ "curly.double": "⪻",
243
+ "curly.eq": "≼",
244
+ "curly.eq.not": "⋠",
245
+ "curly.equiv": "⪳",
246
+ "curly.napprox": "⪹",
247
+ "curly.nequiv": "⪵",
248
+ "curly.not": "⊀",
249
+ "curly.ntilde": "⋨",
250
+ "curly.tilde": "≾",
212
251
  "dot": "⋖",
252
+ "approx": "⪅",
213
253
  "double": "≪",
214
254
  "eq": "≤",
215
255
  "eq.slant": "⩽",
216
256
  "eq.gt": "⋚",
217
257
  "eq.not": "≰",
218
- "eqq": "≦",
258
+ "equiv": "≦",
219
259
  "gt": "≶",
220
260
  "gt.not": "≸",
221
- "neqq": "≨",
261
+ "napprox": "⪉",
262
+ "nequiv": "≨",
222
263
  "not": "≮",
223
264
  "ntilde": "⋦",
224
265
  "small": "﹤",
@@ -240,9 +281,9 @@
240
281
  "double": "⪻",
241
282
  "eq": "≼",
242
283
  "eq.not": "⋠",
243
- "eqq": "⪳",
284
+ "equiv": "⪳",
244
285
  "napprox": "⪹",
245
- "neqq": "⪵",
286
+ "nequiv": "⪵",
246
287
  "not": "⊀",
247
288
  "ntilde": "⋨",
248
289
  "tilde": "≾"
@@ -255,16 +296,17 @@
255
296
  "double": "⪼",
256
297
  "eq": "≽",
257
298
  "eq.not": "⋡",
258
- "eqq": "⪴",
299
+ "equiv": "⪴",
259
300
  "napprox": "⪺",
260
- "neqq": "⪶",
301
+ "nequiv": "⪶",
261
302
  "not": "⊁",
262
303
  "ntilde": "⋩",
263
304
  "tilde": "≿"
264
305
  }
265
306
  ],
266
- "ident": ["≡", { "not": "≢", "strict": "≣" }],
307
+ "equiv": ["≡", { "not": "≢" }],
267
308
  "prop": "∝",
309
+ "emptyset": ["∅", { "rev": "⦰" }],
268
310
  "nothing": ["∅", { "rev": "⦰" }],
269
311
  "without": "∖",
270
312
  "complement": "∁",
@@ -320,6 +362,8 @@
320
362
  "infinity": "∞",
321
363
  "oo": "∞",
322
364
  "diff": "∂",
365
+ "partial": "∂",
366
+ "gradient": "∇",
323
367
  "nabla": "∇",
324
368
  "sum": ["∑", { "integral": "⨋" }],
325
369
  "product": ["∏", { "co": "∐" }],
@@ -332,10 +376,13 @@
332
376
  "cont.ccw": "∳",
333
377
  "cont.cw": "∲",
334
378
  "cw": "∱",
379
+ "dash": "⨍",
380
+ "dash.double": "⨎",
335
381
  "double": "∬",
336
382
  "quad": "⨌",
337
383
  "sect": "⨙",
338
- "sq": "⨖",
384
+ "slash": "⨏",
385
+ "square": "⨖",
339
386
  "surf": "∯",
340
387
  "times": "⨘",
341
388
  "triple": "∭",
@@ -353,6 +400,7 @@
353
400
  "or": ["∨", { "big": "⋁", "curly": "⋎", "dot": "⟇", "double": "⩔" }],
354
401
  "xor": ["⊕", { "big": "⨁" }],
355
402
  "models": "⊧",
403
+ "forces": ["⊩", { "not": "⊮" }],
356
404
  "therefore": "∴",
357
405
  "because": "∵",
358
406
  "qed": "∎",
@@ -360,9 +408,9 @@
360
408
  "convolve": "∗",
361
409
  "multimap": "⊸",
362
410
  "divides": ["∣", { "not": "∤" }],
363
- "perp": ["⟂", { "circle": "⦹" }],
364
411
  "wreath": "≀",
365
412
  "parallel": ["∥", { "circle": "⦷", "not": "∦" }],
413
+ "perp": ["⟂", { "circle": "⦹" }],
366
414
  "diameter": "⌀",
367
415
  "join": ["⨝", { "r": "⟖", "l": "⟕", "l.r": "⟗" }],
368
416
  "degree": ["°", { "c": "℃", "f": "℉" }],
@@ -473,7 +521,7 @@
473
521
  "filled.medium": "⬧"
474
522
  }
475
523
  ],
476
- "star": [{ "op": "⋆", "stroked": "★", "filled": "★" }],
524
+ "star": [{ "op": "⋆", "stroked": "☆", "filled": "★" }],
477
525
  "arrow": [
478
526
  {
479
527
  "r": "→",
@@ -498,6 +546,7 @@
498
546
  "r.stop": "⇥",
499
547
  "r.stroked": "⇨",
500
548
  "r.tail": "↣",
549
+ "r.tilde": "⥲",
501
550
  "r.triple": "⇛",
502
551
  "r.twohead.bar": "⤅",
503
552
  "r.twohead": "↠",
@@ -524,6 +573,7 @@
524
573
  "l.stop": "⇤",
525
574
  "l.stroked": "⇦",
526
575
  "l.tail": "↢",
576
+ "l.tilde": "⭉",
527
577
  "l.triple": "⇚",
528
578
  "l.twohead.bar": "⬶",
529
579
  "l.twohead": "↞",
@@ -734,9 +784,14 @@
734
784
  "Upsilon": "Υ",
735
785
  "Xi": "Ξ",
736
786
  "Zeta": "Ζ",
787
+ "aleph": "א",
737
788
  "alef": "א",
789
+ "beth": "ב",
738
790
  "bet": "ב",
791
+ "gimmel": "ג",
739
792
  "gimel": "ג",
793
+ "daleth": "ד",
794
+ "dalet": "ד",
740
795
  "shin": "ש",
741
796
  "AA": "𝔸",
742
797
  "BB": "𝔹",
@@ -772,5 +827,1465 @@
772
827
  "Im": "ℑ",
773
828
  "dotless": [{ "i": "𝚤", "j": "𝚥" }]
774
829
  }
775
- `;function A(n,l,t){let r=document.createElementNS("http://www.w3.org/1998/Math/MathML",n);if(l&&(r.textContent=l),t)for(let C in t)r.setAttribute(C,t[C]);return r}const Z="mathvariant";var E0=new h0;function m0(n){let l=/[a-zA-Z]/,t=/[\(\)]/,r=/[ \t\n\r]+/,C="",B=[],a=[],p=B,f="";n=n.replace(/(\\u\{[\dA-Fa-f]+\})/g,v=>{const i=parseInt(v.slice(3,-1),16);return String.fromCodePoint(i)});let h=[];for(let v=0;v<n.length;v++){const i=n[v];if(i=='"'&&n[v-1]!="\\"){C!="str"?C="str":C="";continue}C!="str"&&(i=="("&&h.push(v),i==")"&&(h.length==0||n[v-1]!="\\"&&h.pop()))}let b=e.emoji?E0.splitGraphemes(n):[...n];for(let v=0;v<b.length;v++){const i=b[v];if(i=='"'&&b[v-1]!="\\"){C!="str"?C="str":(p.push({type:C,value:f}),C="",f="");continue}if(C=="str"){f+=i;continue}if(i.match(r)&&(C="blank"),C=="blank"&&!i.match(r)&&(p.push({type:C,value:""}),C=""),C==""&&(!b[v-1]||!b[v-1].match(l))&&(!b[v+1]||!b[v+1].match(l))&&!i.match(t)){p.push({type:"v",value:i});continue}if(C==""&&!i.match(l)&&!i.match(t)){p.push({type:"v",value:i});continue}if((b[v-1]&&b[v-1].match(l)||b[v+1]&&b[v+1].match(l))&&i.match(l)&&(C="f"),C=="f"&&(f+=i),C=="f"&&(!b[v+1]||!b[v+1].match(l))&&(p.push({type:C,value:f}),C="",f=""),i=="(")if(h.includes(v)||b[v-1]=="\\")p.push({type:"v",value:i});else{a.push({tree:p,close:!1}),p.push({type:"group",value:f,children:[]}),p=p.at(-1).children,f="";continue}if(i==")")if(a.at(-1)){if(a.at(-1).close==!1){a.at(-1).close=!0,p=a.at(-1).tree,a.pop();continue}}else p.push({type:"v",value:i})}return B}let K=JSON.parse(b0),_={};for(let n in K)if(typeof K[n]=="string")_[n]=K[n];else for(let l of K[n])if(typeof l=="string")_[n]=l;else{_[n]||(_[n]=l[Object.keys(l)[0]]);for(let t in l){_[`${n}.${t}`]=l[t];let r=t.split(".");for(let C=1;C<r.length;C++){let B=r.slice(0,C).join(".");l[B]||(_[`${n}.${B}`]=l[t])}}}let V={"->":"arrow.r","|->":"arrow.r.bar","=>":"arrow.r.double","|=>":"arrow.r.double.bar","==>":"arrow.r.double.long","-->":"arrow.r.long","~~>":"arrow.r.long.squiggly","~>":"arrow.r.squiggly",">->":"arrow.r.tail","->>":"arrow.r.twohead","<-":"arrow.l","<==":"arrow.l.double.long","<--":"arrow.l.long","<~~":"arrow.l.long.squiggly","<~":"arrow.l.squiggly","<-<":"arrow.l.tail","<<-":"arrow.l.twohead","<->":"arrow.l.r","<=>":"arrow.l.r.double","<==>":"arrow.l.r.double.long","<-->":"arrow.l.r.long","*":"convolve","||":"bar.v.double","[|":"bracket.l.double","|]":"bracket.r.double",":=":"colon.eq","::=":"colon.double.eq","--":"dash.en","---":"dash.em","...":"dots.h","=:":"eq.colon","!=":"eq.not",">>":"gt.double",">=":"gt.eq",">>>":"gt.triple","-?":"hyph.soft","<<":"lt.double","<=":"lt.eq","<<<":"lt.triple","-":"minus","'":"prime","~":"space.nobreak"},Q=0;for(let n in V)n.length>Q&&(Q=n.length);let S={accent:(n,l)=>{let t=A("mrow");t.append(E(n[0]));let r=A("mrow");r.append(E(n[1]));let C=A("mover");return C.setAttribute("accent","true"),C.append(t,r),C},attach:(n,l)=>{let t=A("mrow");t.append(E(n[0]));let r,C=A("mrow");l.tl&&C.append(E(l.tl));let B=A("mrow");l.bl&&B.append(E(l.bl));let a=A("mrow");l.tr&&a.append(E(l.tr));let p=A("mrow");if(l.br&&p.append(E(l.br)),(l.tl||l.bl||l.tr||l.br)&&(l.tl||l.bl?(r=A("mmultiscripts"),r.append(t,p,a,A("mprescripts"),B,C)):l.tr&&l.br?(r=A("msubsup"),r.append(t,p,a)):l.tr?(r=A("msup"),r.append(t,a)):(r=A("msub"),r.append(t,p))),l.t||l.b){let f=A("munderover");r?f.append(r):f.append(t);let h=A("mrow");l.t&&h.append(E(l.t));let b=A("mrow");l.b&&b.append(E(l.b)),f.append(b,h),r=f}return r},scripts:(n,l)=>E(n[0]),limits:(n,l)=>E(n[0]),binom:(n,l)=>{let t=A("mrow"),r=A("mrow");r.append(E(n[0]));let C=A("mrow");C.append(E(n[1]));let B=A("mfrac",null,{linethickness:"0"});B.append(r,C);let a=A("mo","("),p=A("mo",")");return t.append(a,B,p),t},cancel:(n,l)=>{let t=A("mrow");const r=B=>`linear-gradient(to ${B?"left":"right"} top, transparent 47.75%, currentColor 49.5%, currentColor 50.5%, transparent 52.25%)`;let C="";return B0(l.cross)?C=r(!0)+","+r(!1):B0(l.inverted)?C=r(!1):C=r(!0),t.style.backgroundImage=C,t.append(E(n[0])),t},cases:(n,l)=>{var B,a;let t=A("mrow"),r=A("mo",((a=(B=l==null?void 0:l.delim)==null?void 0:B[0])==null?void 0:a.value)||"{"),C=S.x_table(n,{cases:[]});return t.append(r,C),t},frac:(n,l)=>{console.log(n);let t=A("mrow");t.append(E(n[0]));let r=A("mrow");r.append(E(n[1]));let C=A("mfrac");return C.append(t,r),C},lr:(n,l)=>{let t=n[0],r,C;for(let h=0;h<t.length;h++){const b=t[h];if(b.type!="blank"){r={c:[b],n:h};break}}for(let h=t.length-1;h>=0;h--){const b=t[h];if(b.type!="blank"){C={c:[b],n:h};break}}let B=document.createDocumentFragment();B.append(E(r.c));let a=document.createDocumentFragment();a.append(E(C.c));let p=document.createDocumentFragment();p.append(E(t.slice(r.n+1,C.n)));let f=A("mrow");return f.append(B,p,a),f},mat:(n,l,t)=>{var h,b;let r=((b=(h=l==null?void 0:l.delim)==null?void 0:h[0])==null?void 0:b.value)||"(",C={"(":["(",")"],"[":["[","]"],"{":["{","}"],"|":["|","|"],"||":["‖","‖"]},B=A("mrow"),a=A("mo",C[r][0]),p=A("mo",C[r][1]),f=A("mtable");for(let v of t){let i=A("mtr");for(let s of v){let F=A("mtd");F.append(E(s)),i.append(F)}f.append(i)}return B.append(a,f,p),B},root:(n,l)=>{let t=A("mrow");t.append(E(n[0]));let r=A("mrow");r.append(E(n[1]));let C=A("mroot");return C.append(r,t),C},sqrt:(n,l)=>S.root([[],n[0]],null),display:(n,l)=>{let t=A("mrow",null,{displaystyle:"true"});return t.append(E(n[0])),t},inline:(n,l)=>{let t=A("mrow",null,{displaystyle:"false",scriptlevel:"0"});return t.append(E(n[0])),t},script:(n,l)=>{let t=A("mrow",null,{displaystyle:"false",scriptlevel:"1"});return t.append(E(n[0])),t},sscript:(n,l)=>{let t=A("mrow",null,{displaystyle:"false",scriptlevel:"2"});return t.append(E(n[0])),t},upright:(n,l)=>{let t=A("mrow");return t.append(E(n[0])),t.querySelectorAll("mi").forEach(r=>{r.getAttribute(Z)||r.setAttribute(Z,"normal")}),t.querySelectorAll("ms").forEach(r=>{r.getAttribute(Z)||r.setAttribute(Z,"normal")}),t},italic:(n,l)=>{let t=A("mrow");return t.querySelectorAll("mi").forEach(r=>{r.getAttribute(Z)||r.setAttribute(Z,"italic")}),t.querySelectorAll("ms").forEach(r=>{r.getAttribute(Z)||r.setAttribute(Z,"italic")}),t.append(E(n[0])),t},bold:(n,l)=>{let t=A("mrow");return t.style.fontWeight="bold",t.append(E(n[0])),t},op:(n,l,t,r)=>{let C=A("mrow"),B=A("ms",Y(n[0][0].value,r));return C.append(B),C},underline:(n,l)=>R("under",n[0],"_",n==null?void 0:n[1]),overline:(n,l)=>R("over",n[0],"‾",n==null?void 0:n[1]),underbrace:(n,l)=>R("under",n[0],"⏟",n==null?void 0:n[1]),overbrace:(n,l)=>R("over",n[0],"⏞",n==null?void 0:n[1]),underbracket:(n,l)=>R("under",n[0],"⎵",n==null?void 0:n[1]),overbracket:(n,l)=>R("over",n[0],"⎴",n==null?void 0:n[1]),serif:(n,l)=>E(n[0],"serif"),sans:(n,l)=>E(n[0],"sans"),frak:(n,l)=>E(n[0],"frak"),mono:(n,l)=>E(n[0],"mono"),bb:(n,l)=>E(n[0],"bb"),cal:(n,l)=>E(n[0],"cal"),vec:(n,l)=>{var f,h;let t=((h=(f=l==null?void 0:l.delim)==null?void 0:f[0])==null?void 0:h.value)||"(",r={"(":["(",")"],"[":["[","]"],"{":["{","}"],"|":["|","|"],"||":["‖","‖"]},C=A("mrow"),B=A("mo",r[t][0]),a=A("mo",r[t][1]),p=A("mtable");for(let b of n){let v=A("mtr");v.append(E(b)),p.append(v)}return C.append(B,p,a),C},x_table:(n,l)=>{let t=0,r=A("mtable");for(let B of n){let a=A("mtr"),p=[],f=[];for(let h=0;h<B.length;h++)!B[h].esc&&B[h].value=="&"?f.length>0&&(p.push(f),f=[]):f.push(B[h]);f.length>0&&p.push(f),p.length>t&&(t=p.length);for(let h of p){let b=A("mtd");a.append(b),b.append(E(h))}r.append(a)}let C=[];if(l.cases)C.push("left");else for(let B=0;B<t;B++)B%2==0?C.push("right"):C.push("left");return r.setAttribute("columnalign",C.join(" ")),r}},x0=[{id:"arccos"},{id:"arcsin"},{id:"arctan"},{id:"arg"},{id:"cos"},{id:"cosh"},{id:"cot"},{id:"ctg"},{id:"coth"},{id:"csc"},{id:"deg"},{id:"det",limits:!0},{id:"dim"},{id:"exp"},{id:"gcd",limits:!0},{id:"hom"},{id:"mod"},{id:"inf",limits:!0},{id:"ker"},{id:"lg"},{id:"lim",limits:!0},{id:"ln"},{id:"log"},{id:"max",limits:!0},{id:"min",limits:!0},{id:"Pr",limits:!0},{id:"sec"},{id:"sin"},{id:"sinc"},{id:"sinh"},{id:"sup",limits:!0},{id:"tan"},{id:"tg"},{id:"tanh"},{id:"liminf",str:"lim inf",limits:!0},{id:"limsup",str:"lim sup",limits:!0}];function v0(){for(let n of x0)S[n.id]=(l,t,r,C)=>{let B=S.op([[{type:"str",value:n.str||n.id}]],{},null,C);if(l){let a=document.createDocumentFragment();return a.append(B,t0(l[0])),a}else return B}}v0();let n0=[],l0=["∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨃","⨄","⨅","⨆"];for(let n in _)for(let l of l0)_[n]==l&&n0.push(n);function g0(){const n=["grave","acute","acute.double","hat","tilde","macron","breve","dot","dot.double","dot.triple","dot.quad","diaer","circle","arrow","arrow.l"];for(let l of n)S[l]=t=>S.accent([t[0],[{type:"f",value:l}]],{})}g0();function y0(){let n=[{name:"abs",l:j("|"),r:j("|")},{name:"norm",l:j("‖"),r:j("‖")},{name:"floor",l:j("⌊"),r:j("⌋")},{name:"ceil",l:j("⌈"),r:j("⌉")},{name:"round",l:j("⌊"),r:j("⌉")}];for(let l of n)S[l.name]=t=>S.lr([[l.l,...t[0],l.r]],{})}y0();function R(n,l,t,r){let C=n=="under"?A("munder",null,{accentunder:"true"}):A("mover",null,{accent:"true"}),B=A("mrow");if(B.append(E(l)),r){let a=A("mrow");a.append(E(r));let p=n=="under"?A("munder"):A("mover"),f=A("mo",t);p.append(f,a),C.append(B,p)}else{let a=A("mo",t);C.append(B,a)}return C}function t0(n){let l=A("mrow"),t=A("mo");t.textContent="(";let r=E(n),C=A("mo");return C.textContent=")",l.append(t,r,C),l}function M(n){return n.type=="group"?n.children:[n]}function k0(n){return[{type:"group",value:"",children:n}]}function z(n){return n&&n.type=="v"&&n.value=="^"&&!n.esc}function L(n){return n&&n.type=="v"&&n.value=="_"&&!n.esc}function G(n){return n&&n.type=="v"&&n.value=="/"&&!n.esc}function r0(n){return n&&n.value=="br"&&n.esc}function J(n){if(n.length==1){let l=n[0];if(l.type=="f"){if(n0.includes(l.value))return!0;for(let t of x0)if(t.limits&&l.value==t.id)return!0;if(l.value=="scripts")return!1;if(l.value=="op"){let{dic:t}=a0(l),r="";if(t.limits)for(let C of t.limits)r+=C.value;return r=="#true"}}if(l.type=="v"&&l0.includes(l.value))return!0}else return!1}function H(n,l){return n.value==l&&n.type=="v"&&!n.esc}function W(n){return n&&n.type=="v"&&n.value=="."}function C0(n){return n&&(n.type=="f"||n.type=="v"&&n.value.match(/[a-z]/))}function q0(n){return n&&n.type=="v"&&n.value=="!"&&!n.esc}let T={type:"v",value:","};function j(n){return{type:"v",value:n}}function U(n){let l=[];for(let t in n){l.push({type:"f",value:t}),l.push({type:"v",value:":"});for(let r of n[t])r.type=="v"&&r.value==","&&(r.esc=!0);l.push(...n[t]),Number(t)+1!=Object.keys(n).length&&l.push(T)}return l}function B0(n){let l=0;return!!(n&&(n[0].type=="blank"&&l++,n[l]&&n[l].type=="v"&&n[l].value=="#"&&n[l+1]&&n[l+1].type=="f"&&n[l+1].value=="true"))}function i0(n){var l,t,r,C,B,a,p,f,h,b,v;{let i=[],s=/[0-9]/,F="";for(let u=0;u<n.length;u++){let D=n[u];D.value.match(s)||(l=n[u-1])!=null&&l.value.match(s)&&W(D)&&((t=n[u+1])!=null&&t.value.match(s))?F+=D.value:i.push(D),D.value.match(s)&&(!n[u+1]||!n[u+1].value.match(s))&&!(W(n[u+1])&&((r=n[u+2])!=null&&r.value.match(s)))&&(i.push({type:"v",value:F}),F="")}n=i}{let i=[];for(let s=0;s<n.length;s++){let F=n[s];if(((C=n==null?void 0:n[s-1])==null?void 0:C.value)!="\\")if(F.type=="v"){let u=s,D=F.value,m=[];for(V[D]&&m.push(D);((B=n==null?void 0:n[u+1])==null?void 0:B.type)=="v"&&D.length<=Q;)D+=n[u+1].value,V[D]&&m.push(D),u++;if(m.length){let O={type:"f",value:V[m.at(-1)]};i.push(O),s+=m.at(-1).length-1}else i.push(F)}else i.push(F);else i.push(F)}n=i}{let i=[];for(let s=0;s<n.length;s++){let F=n[s];if(F.value=="\\"&&F.type=="v"){if(n!=null&&n[s+1]){let u=n[s+1];if(u.value=="\\"&&u.type=="v")i.push({type:"v",value:"\\"}),s++;else if(u.type=="blank")i.push({type:"v",value:"br",esc:!0}),s++;else if(u.type=="f"){let D=u.value;i.push({type:"v",value:D[0]}),i.push({type:D.length==2?"v":"f",value:D.slice(1)}),s++}else{let D=u;D.esc=!0,i.push(D),s++}}}else i.push(F)}n=i}{let i=[];for(let s=0;s<n.length;s++){let F=n[s];F.type=="v"&&((a=n==null?void 0:n[s+1])==null?void 0:a.type)=="blank"&&((p=n==null?void 0:n[s+2])==null?void 0:p.type)=="str"?(i.push(F),i.push({type:"f",value:"space"})):F.type=="str"&&((f=n==null?void 0:n[s+1])==null?void 0:f.type)=="blank"&&((h=n==null?void 0:n[s+2])==null?void 0:h.type)=="v"?(i.push(F),i.push({type:"f",value:"space"})):i.push(F)}n=i}{let i=[],s=[];for(let F=0;F<n.length;F++){let u=n[F];q0(n==null?void 0:n[F+1])&&!z(u)&&!L(u)&&!G(u)?s.push(u):s.length?(s.push(u),i.push({type:"group1",value:"",children:s}),s=[]):i.push(u)}n=i}{let i=[],s="";for(let F=0;F<n.length;F++){let u=n[F];if(C0(u)&&W(n[F+1]))if(s||!s&&u.type=="f"){s+=u.value+".",F++;continue}else i.push(u);else s&&C0(u)?(s+=u.value,W(n[F+1])||(i.push({type:"f",value:s}),s="")):i.push(u)}n=i}{let i=[];for(let s=0;s<n.length;s++){let F=n[s];if(F.type=="f"&&n[s+1]&&n[s+1].type=="group"){F.children=n[s+1].children;for(let u in F.children)F.children[u].value=="\\"&&F.children[u].type=="v"&&F.children[Number(u)+1]&&(F.children[Number(u)+1].esc=!0);i.push(F),s++;continue}else i.push(F)}n=i}{let i=[];for(let s of n)s.type!="blank"&&i.push(s);n=i}{let i=[],s=NaN;for(let u=0;u<n.length;u++){const D=n[u];!z(D)&&!L(D)&&((z(n[u+1])||L(n[u+1]))&&!(z(n[u-1])||L(n[u-1]))&&(s||(s=u)),(z(n[u-1])||L(n[u-1]))&&!(z(n[u+1])||L(n[u+1]))&&(i.push([s,u]),s=NaN))}let F=[];for(let u=0;u<n.length;u++){if(u==((b=i==null?void 0:i[0])==null?void 0:b[0])){{let D=n[i[0][1]];for(let m=i[0][1];m>=i[0][0];m--){if(z(n[m-1])&&L(n[m-3])){let O=J([n[m-4]])?{t:M(D),b:M(n[m-2])}:{tr:M(D),br:M(n[m-2])};D={type:"f",value:"attach",children:[n[m-4],T,...U(O)]},m-=4-1;continue}if(L(n[m-1])&&z(n[m-3])){let O=J([n[m-4]])?{t:M(n[m-2]),b:M(D)}:{tr:M(n[m-2]),br:M(D)};D={type:"f",value:"attach",children:[n[m-4],T,...U(O)]},m-=4-1;continue}if(z(n[m-1])){let O=J([n[m-2]])?{t:M(D)}:{tr:M(D)};D={type:"f",value:"attach",children:[n[m-2],T,...U(O)]},m-=2-1;continue}if(L(n[m-1])){let O=J([n[m-2]])?{b:M(D)}:{br:M(D)};D={type:"f",value:"attach",children:[n[m-2],T,...U(O)]},m-=2-1;continue}}F.push(D)}u+=i[0][1]-i[0][0],i=i.slice(1);continue}F.push(n[u])}n=F}{let i=[],s=NaN;for(let u=0;u<n.length;u++){const D=n[u];G(D)||(G(n[u+1])&&!G(n[u-1])&&(s||(s=u)),G(n[u-1])&&!G(n[u+1])&&(i.push([s,u]),s=NaN))}let F=[];for(let u=0;u<n.length;u++){if(u==((v=i==null?void 0:i[0])==null?void 0:v[0])){{let D=n[i[0][0]];for(let m=i[0][0];m<=i[0][1];m++)if(G(n[m+1])){D={type:"f",value:"frac",children:[...M(D),T,...M(n[m+2])]},m+=2-1;continue}console.log(1,D),F.push(D)}u+=i[0][1]-i[0][0],i.splice(0,1);continue}F.push(n[u])}n=F}return n}function a0(n){let l="array",t=[],r=[],C=[],B=[];for(let p in n.children){const f=n.children[p];if(Number(p)+1==n.children.length){if(f.type=="blank"&&n.children[Number(p)-1].value.match(/[,;]/))break;!H(f,",")&&!H(f,";")&&B.push(f),l=="dic"?(r.push(B),B=[]):t.push(B),C.length&&(C.push(t),t=[]),B=[]}else H(f,",")?(l=="dic"?(r.push(B),l="array"):t.push(B),B=[]):H(f,";")?(t.push(B),B=[],C.push(t),t=[]):(B.push(f),H(f,":")&&(l="dic"))}let a={};for(let p of r){let f="",h=[];for(let b of p)f?b.value!=":"&&h.push(b):f=b.value;a[f]=h}return{attr:t,dic:a,array:C}}function Y(n,l="serif"){function t(r){return"abcdefghijklmnopqrstuvwxyz".indexOf(r.toLowerCase())}switch(l){case"serif":return n;case"sans":const r=[..."𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫"],C=[..."𝖺𝖻𝖼𝖽𝖾𝖿𝗀𝗁𝗂𝗃𝗄𝗅𝗆𝗇𝗈𝗉𝗊𝗋𝗌𝗍𝗎𝗏𝗐𝗑𝗒𝗓"],B=[..."𝖠𝖡𝖢𝖣𝖤𝖥𝖦𝖧𝖨𝖩𝖪𝖫𝖬𝖭𝖮𝖯𝖰𝖱𝖲𝖳𝖴𝖵𝖶𝖷𝖸𝖹"];return n=n.replace(/[0-9]+/g,D=>r[D]),n=n.replace(/[a-z]/g,D=>C[t(D)]),n=n.replace(/[A-Z]/g,D=>B[t(D)]),n;case"frak":const a=[..."𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷"],p=[..."𝔄𝔅ℭ𝔇𝔈𝔉𝔊ℌℑ𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔ℜ𝔖𝔗𝔘𝔙𝔚𝔛𝔜ℨ"];return n=n.replace(/[a-z]/g,D=>a[t(D)]),n=n.replace(/[A-Z]/g,D=>p[t(D)]),n;case"mono":const f=[..."0𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿"],h=[..."𝚊𝚋𝚌𝚍𝚎𝚏𝚐𝚑𝚒𝚓𝚔𝚕𝚖𝚗𝚘𝚙𝚚𝚛𝚜𝚝𝚞𝚟𝚠𝚡𝚢𝚣"],b=[..."𝙰𝙱𝙲𝙳𝙴𝙵𝙶𝙷𝙸𝙹𝙺𝙻𝙼𝙽𝙾𝙿𝚀𝚁𝚂𝚃𝚄𝚅𝚆𝚇𝚈𝚉"];return n=n.replace(/[0-9]+/g,D=>f[D]),n=n.replace(/[a-z]/g,D=>h[t(D)]),n=n.replace(/[A-Z]/g,D=>b[t(D)]),n;case"bb":const v=[..."𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡"],i=[..."𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫"],s=[..."𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ"];return n=n.replace(/[0-9]+/g,D=>v[D]),n=n.replace(/[a-z]/g,D=>i[t(D)]),n=n.replace(/[A-Z]/g,D=>s[t(D)]),n;case"cal":const F=[..."𝒶𝒷𝒸𝒹ℯ𝒻ℊ𝒽𝒾𝒿𝓀𝓁𝓂𝓃ℴ𝓅𝓆𝓇𝓈𝓉𝓊𝓋𝓌𝓍𝓎𝓏"],u=[..."𝒜ℬ𝒞𝒟ℰℱ𝒢ℋℐ𝒥𝒦ℒℳ𝒩𝒪𝒫𝒬ℛ𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵"];return n=n.replace(/[a-z]/g,D=>F[t(D)]),n=n.replace(/[A-Z]/g,D=>u[t(D)]),n}}function E(n,l){let t=document.createDocumentFragment();n=i0(n);{let r=!1,C=B=>{for(let a of B){if(r0(a)){r=!0;return}a.type=="group"&&C(a.children)}};if(C(n),r){{let a=[];for(let p in n){let f=n[p];f.type=="group"?(a.push(j("(")),a.push(...i0(f.children)),a.push(j(")"))):a.push(f)}n=a}for(let a=0;a<n.length;a++){const p=n[a];r0(p)&&(n[a]=T)}let B=[];B.push({type:"f",value:"x_table",children:n}),n=B}else{let B=[];for(let a of n)a.type=="v"&&a.value=="&"&&!a.esc||B.push(a);n=B}}{let r=[];for(let C of n)C.type=="group1"?r.push(...C.children):r.push(C);n=r}for(let r in n){let C=Number(r),B=n[C];if(B.type=="f"&&B.children){let{attr:a,dic:p,array:f}=a0(B);if(S[B.value]){console.log(a,p,f);let h=S[B.value](a,p,f,l);t.append(h)}else if(_[B.value]){let h=A("mo",_[B.value]);t.append(h,E(k0(B.children)))}}if(B.type=="f"&&!B.children){if(_[B.value]){let a,p=null;const f={" ":"0.36em"," ":"0.5em"," ":"3.75em"," ":"0.333em"," ":"0.25em"," ":"0.166em"," ":"0.222em"," ":"1ch"," ":"0.27em"," ":"0.2em"," ":"0.09em"};_[B.value].match(/[a-zA-Z\u0391-\u03C9]/)?a="mi":f[_[B.value]]?(a="mspace",p={width:f[_[B.value]]}):a="mo";let h=A(a,_[B.value],p);t.append(h)}else if(S[B.value]){let a=S[B.value](null,null,null,l);t.append(a)}}if(B.type=="str"){let a=A("ms",Y(B.value,l));t.append(a)}if(B.type=="v"){let a;B.value.match(/[0-9.]+/)?a="mn":B.value.match(/[a-zA-Z\u0391-\u03C9]/)?a="mi":a="mo";let p=A(a,Y(B.value,l));t.append(p)}B.type=="group"&&t.append(t0(B.children))}return t}var e={emoji:!1};function w0(n){for(let l in n)e[l]&&(e[l]=n[l])}function u0(n){let l=m0(n);console.log(l);let t=A("math");t.setAttribute("display","block");let r=E(l);return t.append(r),t}function _0(n){return u0(n).outerHTML}P.init=w0,P.toMML=u0,P.toMMLHTML=_0,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
830
+ `,un=`{
831
+ "abacus": "🧮",
832
+ "abc": "🔤",
833
+ "abcd": "🔡",
834
+ "ABCD": "🔠",
835
+ "accordion": "🪗",
836
+ "aesculapius": "⚕",
837
+ "airplane": [
838
+ "✈",
839
+ {
840
+ "landing": "🛬",
841
+ "small": "🛩",
842
+ "takeoff": "🛫"
843
+ }
844
+ ],
845
+ "alembic": "⚗",
846
+ "alien": ["👽", { "monster": "👾" }],
847
+ "ambulance": "🚑",
848
+ "amphora": "🏺",
849
+ "anchor": "⚓",
850
+ "anger": "💢",
851
+ "ant": "🐜",
852
+ "apple": [{ "green": "🍏", "red": "🍎" }],
853
+ "arm": [{ "mech": "🦾", "muscle": "💪", "selfie": "🤳" }],
854
+ "arrow": [
855
+ {
856
+ "r.filled": "➡",
857
+ "r.hook": "↪",
858
+ "r.soon": "🔜",
859
+ "l.filled": "⬅",
860
+ "l.hook": "↩",
861
+ "l.back": "🔙",
862
+ "l.end": "🔚",
863
+ "t.filled": "⬆",
864
+ "t.curve": "⤴",
865
+ "t.top": "🔝",
866
+ "b.filled": "⬇",
867
+ "b.curve": "⤵",
868
+ "l.r": "↔",
869
+ "l.r.on": "🔛",
870
+ "t.b": "↕",
871
+ "bl": "↙",
872
+ "br": "↘",
873
+ "tl": "↖",
874
+ "tr": "↗"
875
+ }
876
+ ],
877
+ "arrows": [{ "cycle": "🔄" }],
878
+ "ast": ["*", { "box": "✳" }],
879
+ "atm": "🏧",
880
+ "atom": "⚛",
881
+ "aubergine": "🍆",
882
+ "avocado": "🥑",
883
+ "axe": "🪓",
884
+ "baby": ["👶", { "angel": "👼", "box": "🚼" }],
885
+ "babybottle": "🍼",
886
+ "backpack": "🎒",
887
+ "bacon": "🥓",
888
+ "badger": "🦡",
889
+ "badminton": "🏸",
890
+ "bagel": "🥯",
891
+ "baggageclaim": "🛄",
892
+ "baguette": "🥖",
893
+ "balloon": "🎈",
894
+ "ballot": [{ "check": "☑" }],
895
+ "ballotbox": "🗳",
896
+ "banana": "🍌",
897
+ "banjo": "🪕",
898
+ "bank": "🏦",
899
+ "barberpole": "💈",
900
+ "baseball": "⚾",
901
+ "basecap": "🧢",
902
+ "basket": "🧺",
903
+ "basketball": ["⛹", { "ball": "🏀" }],
904
+ "bat": "🦇",
905
+ "bathtub": ["🛀", { "foam": "🛁" }],
906
+ "battery": ["🔋", { "low": "🪫" }],
907
+ "beach": [{ "palm": "🏝", "umbrella": "🏖" }],
908
+ "beads": "📿",
909
+ "beans": "🫘",
910
+ "bear": "🐻",
911
+ "beaver": "🦫",
912
+ "bed": ["🛏", { "person": "🛌" }],
913
+ "bee": "🐝",
914
+ "beer": ["🍺", { "clink": "🍻" }],
915
+ "beetle": ["🪲", { "lady": "🐞" }],
916
+ "bell": ["🔔", { "ding": "🛎", "not": "🔕" }],
917
+ "bento": "🍱",
918
+ "bicyclist": ["🚴", { "mountain": "🚵" }],
919
+ "bike": ["🚲", { "not": "🚳" }],
920
+ "bikini": "👙",
921
+ "billiards": "🎱",
922
+ "bin": "🗑",
923
+ "biohazard": "☣",
924
+ "bird": "🐦",
925
+ "bison": "🦬",
926
+ "blood": "🩸",
927
+ "blouse": "👚",
928
+ "blowfish": "🐡",
929
+ "blueberries": "🫐",
930
+ "boar": "🐗",
931
+ "boat": [
932
+ {
933
+ "sail": "⛵",
934
+ "row": "🚣",
935
+ "motor": "🛥",
936
+ "speed": "🚤",
937
+ "canoe": "🛶"
938
+ }
939
+ ],
940
+ "bolt": "🔩",
941
+ "bomb": "💣",
942
+ "bone": "🦴",
943
+ "book": [
944
+ {
945
+ "red": "📕",
946
+ "blue": "📘",
947
+ "green": "📗",
948
+ "orange": "📙",
949
+ "spiral": "📒",
950
+ "open": "📖"
951
+ }
952
+ ],
953
+ "bookmark": "🔖",
954
+ "books": "📚",
955
+ "boomerang": "🪃",
956
+ "bordercontrol": "🛂",
957
+ "bouquet": "💐",
958
+ "bow": "🏹",
959
+ "bowl": [{ "spoon": "🥣", "steam": "🍜" }],
960
+ "bowling": "🎳",
961
+ "boxing": "🥊",
962
+ "boy": "👦",
963
+ "brain": "🧠",
964
+ "bread": "🍞",
965
+ "brick": "🧱",
966
+ "bride": "👰",
967
+ "bridge": [{ "fog": "🌁", "night": "🌉" }],
968
+ "briefcase": "💼",
969
+ "briefs": "🩲",
970
+ "brightness": [{ "high": "🔆", "low": "🔅" }],
971
+ "broccoli": "🥦",
972
+ "broom": "🧹",
973
+ "brush": "🖌",
974
+ "bubble": [
975
+ {
976
+ "speech.r": "💬",
977
+ "speech.l": "🗨",
978
+ "thought": "💭",
979
+ "anger.r": "🗯"
980
+ }
981
+ ],
982
+ "bubbles": "🫧",
983
+ "bubbletea": "🧋",
984
+ "bucket": "🪣",
985
+ "buffalo": [{ "water": "🐃" }],
986
+ "bug": "🐛",
987
+ "builder": "👷",
988
+ "burger": "🍔",
989
+ "burrito": "🌯",
990
+ "bus": [
991
+ "🚌",
992
+ {
993
+ "front": "🚍",
994
+ "small": "🚐",
995
+ "stop": "🚏",
996
+ "trolley": "🚎"
997
+ }
998
+ ],
999
+ "butter": "🧈",
1000
+ "butterfly": "🦋",
1001
+ "button": ["🔲", { "alt": "🔳", "radio": "🔘" }],
1002
+ "cabinet": [{ "file": "🗄" }],
1003
+ "cablecar": ["🚠", { "small": "🚡" }],
1004
+ "cactus": "🌵",
1005
+ "cake": [
1006
+ "🎂",
1007
+ {
1008
+ "fish": "🍥",
1009
+ "moon": "🥮",
1010
+ "slice": "🍰"
1011
+ }
1012
+ ],
1013
+ "calendar": ["📅", { "spiral": "🗓", "tearoff": "📆" }],
1014
+ "camel": ["🐫", { "dromedar": "🐪" }],
1015
+ "camera": [
1016
+ "📷",
1017
+ {
1018
+ "flash": "📸",
1019
+ "movie": "🎥",
1020
+ "movie.box": "🎦",
1021
+ "video": "📹"
1022
+ }
1023
+ ],
1024
+ "camping": "🏕",
1025
+ "can": "🥫",
1026
+ "candle": "🕯",
1027
+ "candy": "🍬",
1028
+ "cane": "🦯",
1029
+ "car": [
1030
+ "🚗",
1031
+ {
1032
+ "front": "🚘",
1033
+ "pickup": "🛻",
1034
+ "police": "🚓",
1035
+ "police.front": "🚔",
1036
+ "racing": "🏎",
1037
+ "rickshaw": "🛺",
1038
+ "suv": "🚙"
1039
+ }
1040
+ ],
1041
+ "card": [{ "credit": "💳", "id": "🪪" }],
1042
+ "cardindex": "📇",
1043
+ "carrot": "🥕",
1044
+ "cart": "🛒",
1045
+ "cassette": "📼",
1046
+ "castle": [{ "eu": "🏰", "jp": "🏯" }],
1047
+ "cat": [
1048
+ "🐈",
1049
+ {
1050
+ "face": "🐱",
1051
+ "face.angry": "😾",
1052
+ "face.cry": "😿",
1053
+ "face.heart": "😻",
1054
+ "face.joy": "😹",
1055
+ "face.kiss": "😽",
1056
+ "face.laugh": "😸",
1057
+ "face.shock": "🙀",
1058
+ "face.smile": "😺",
1059
+ "face.smirk": "😼"
1060
+ }
1061
+ ],
1062
+ "chain": "🔗",
1063
+ "chains": "⛓",
1064
+ "chair": "🪑",
1065
+ "champagne": "🍾",
1066
+ "chart": [
1067
+ {
1068
+ "bar": "📊",
1069
+ "up": "📈",
1070
+ "down": "📉",
1071
+ "yen.up": "💹"
1072
+ }
1073
+ ],
1074
+ "checkmark": [{ "heavy": "✔", "box": "✅" }],
1075
+ "cheese": "🧀",
1076
+ "cherries": "🍒",
1077
+ "chess": "♟",
1078
+ "chestnut": "🌰",
1079
+ "chicken": [
1080
+ "🐔",
1081
+ {
1082
+ "baby": "🐥",
1083
+ "baby.egg": "🐣",
1084
+ "baby.head": "🐤",
1085
+ "leg": "🍗",
1086
+ "male": "🐓"
1087
+ }
1088
+ ],
1089
+ "child": "🧒",
1090
+ "chipmunk": "🐿",
1091
+ "chocolate": "🍫",
1092
+ "chopsticks": "🥢",
1093
+ "church": ["⛪", { "love": "💒" }],
1094
+ "cigarette": ["🚬", { "not": "🚭" }],
1095
+ "circle": [
1096
+ {
1097
+ "black": "⚫",
1098
+ "blue": "🔵",
1099
+ "brown": "🟤",
1100
+ "green": "🟢",
1101
+ "orange": "🟠",
1102
+ "purple": "🟣",
1103
+ "white": "⚪",
1104
+ "red": "🔴",
1105
+ "yellow": "🟡",
1106
+ "stroked": "⭕"
1107
+ }
1108
+ ],
1109
+ "circus": "🎪",
1110
+ "city": [
1111
+ "🏙",
1112
+ {
1113
+ "dusk": "🌆",
1114
+ "night": "🌃",
1115
+ "sunset": "🌇"
1116
+ }
1117
+ ],
1118
+ "clamp": "🗜",
1119
+ "clapperboard": "🎬",
1120
+ "climbing": "🧗",
1121
+ "clip": "📎",
1122
+ "clipboard": "📋",
1123
+ "clips": "🖇",
1124
+ "clock": [
1125
+ {
1126
+ "one": "🕐",
1127
+ "one.thirty": "🕜",
1128
+ "two": "🕑",
1129
+ "two.thirty": "🕝",
1130
+ "three": "🕒",
1131
+ "three.thirty": "🕞",
1132
+ "four": "🕓",
1133
+ "four.thirty": "🕟",
1134
+ "five": "🕔",
1135
+ "five.thirty": "🕠",
1136
+ "six": "🕕",
1137
+ "six.thirty": "🕡",
1138
+ "seven": "🕖",
1139
+ "seven.thirty": "🕢",
1140
+ "eight": "🕗",
1141
+ "eight.thirty": "🕣",
1142
+ "nine": "🕘",
1143
+ "nine.thirty": "🕤",
1144
+ "ten": "🕙",
1145
+ "ten.thirty": "🕥",
1146
+ "eleven": "🕚",
1147
+ "eleven.thirty": "🕦",
1148
+ "twelve": "🕛",
1149
+ "twelve.thirty": "🕧",
1150
+ "alarm": "⏰",
1151
+ "old": "🕰",
1152
+ "timer": "⏲"
1153
+ }
1154
+ ],
1155
+ "cloud": [
1156
+ "☁",
1157
+ {
1158
+ "dust": "💨",
1159
+ "rain": "🌧",
1160
+ "snow": "🌨",
1161
+ "storm": "⛈",
1162
+ "sun": "⛅",
1163
+ "sun.hidden": "🌥",
1164
+ "sun.rain": "🌦",
1165
+ "thunder": "🌩"
1166
+ }
1167
+ ],
1168
+ "coat": ["🧥", { "lab": "🥼" }],
1169
+ "cockroach": "🪳",
1170
+ "cocktail": [{ "martini": "🍸", "tropical": "🍹" }],
1171
+ "coconut": "🥥",
1172
+ "coffee": "☕",
1173
+ "coffin": "⚰",
1174
+ "coin": "🪙",
1175
+ "comet": "☄",
1176
+ "compass": "🧭",
1177
+ "computer": "🖥",
1178
+ "computermouse": "🖱",
1179
+ "confetti": "🎊",
1180
+ "construction": "🚧",
1181
+ "controller": "🎮",
1182
+ "cookie": ["🍪", { "fortune": "🥠" }],
1183
+ "cooking": "🍳",
1184
+ "cool": "🆒",
1185
+ "copyright": "©",
1186
+ "coral": "🪸",
1187
+ "corn": "🌽",
1188
+ "couch": "🛋",
1189
+ "couple": "💑",
1190
+ "cow": ["🐄", { "face": "🐮" }],
1191
+ "crab": "🦀",
1192
+ "crane": "🏗",
1193
+ "crayon": "🖍",
1194
+ "cricket": "🦗",
1195
+ "cricketbat": "🏏",
1196
+ "crocodile": "🐊",
1197
+ "croissant": "🥐",
1198
+ "crossmark": ["❌", { "box": "❎" }],
1199
+ "crown": "👑",
1200
+ "crutch": "🩼",
1201
+ "crystal": "🔮",
1202
+ "cucumber": "🥒",
1203
+ "cup": [{ "straw": "🥤" }],
1204
+ "cupcake": "🧁",
1205
+ "curling": "🥌",
1206
+ "curry": "🍛",
1207
+ "custard": "🍮",
1208
+ "customs": "🛃",
1209
+ "cutlery": "🍴",
1210
+ "cyclone": "🌀",
1211
+ "dancing": [{ "man": "🕺", "woman": "💃", "women.bunny": "👯" }],
1212
+ "darts": "🎯",
1213
+ "dash": [{ "wave.double": "〰" }],
1214
+ "deer": "🦌",
1215
+ "desert": "🏜",
1216
+ "detective": "🕵",
1217
+ "diamond": [
1218
+ {
1219
+ "blue": "🔷",
1220
+ "blue.small": "🔹",
1221
+ "orange": "🔶",
1222
+ "orange.small": "🔸",
1223
+ "dot": "💠"
1224
+ }
1225
+ ],
1226
+ "die": "🎲",
1227
+ "dino": [{ "pod": "🦕", "rex": "🦖" }],
1228
+ "disc": [{ "cd": "💿", "dvd": "📀", "mini": "💽" }],
1229
+ "discoball": "🪩",
1230
+ "diving": "🤿",
1231
+ "dodo": "🦤",
1232
+ "dog": [
1233
+ "🐕",
1234
+ {
1235
+ "face": "🐶",
1236
+ "guide": "🦮",
1237
+ "poodle": "🐩"
1238
+ }
1239
+ ],
1240
+ "dollar": "💲",
1241
+ "dolphin": "🐬",
1242
+ "donut": "🍩",
1243
+ "door": "🚪",
1244
+ "dove": [{ "peace": "🕊" }],
1245
+ "dragon": ["🐉", { "face": "🐲" }],
1246
+ "dress": ["👗", { "kimono": "👘", "sari": "🥻" }],
1247
+ "drop": "💧",
1248
+ "drops": "💦",
1249
+ "drum": ["🥁", { "big": "🪘" }],
1250
+ "duck": "🦆",
1251
+ "dumpling": "🥟",
1252
+ "eagle": "🦅",
1253
+ "ear": ["👂", { "aid": "🦻" }],
1254
+ "egg": "🥚",
1255
+ "eighteen": [{ "not": "🔞" }],
1256
+ "elephant": "🐘",
1257
+ "elevator": "🛗",
1258
+ "elf": "🧝",
1259
+ "email": "📧",
1260
+ "excl": [
1261
+ "❗",
1262
+ {
1263
+ "white": "❕",
1264
+ "double": "‼",
1265
+ "quest": "⁉"
1266
+ }
1267
+ ],
1268
+ "explosion": "💥",
1269
+ "extinguisher": "🧯",
1270
+ "eye": "👁",
1271
+ "eyes": "👀",
1272
+ "face": [
1273
+ {
1274
+ "grin": "😀",
1275
+ "angry": "😠",
1276
+ "angry.red": "😡",
1277
+ "anguish": "😧",
1278
+ "astonish": "😲",
1279
+ "bandage": "🤕",
1280
+ "beam": "😁",
1281
+ "blank": "😶",
1282
+ "clown": "🤡",
1283
+ "cold": "🥶",
1284
+ "concern": "😦",
1285
+ "cool": "😎",
1286
+ "cover": "🤭",
1287
+ "cowboy": "🤠",
1288
+ "cry": "😭",
1289
+ "devil.smile": "😈",
1290
+ "devil.frown": "👿",
1291
+ "diagonal": "🫤",
1292
+ "disguise": "🥸",
1293
+ "dizzy": "😵",
1294
+ "dotted": "🫥",
1295
+ "down": "😞",
1296
+ "down.sweat": "😓",
1297
+ "drool": "🤤",
1298
+ "explode": "🤯",
1299
+ "eyeroll": "🙄",
1300
+ "friendly": "☺",
1301
+ "fear": "😨",
1302
+ "fear.sweat": "😰",
1303
+ "fever": "🤒",
1304
+ "flush": "😳",
1305
+ "frown": "☹",
1306
+ "frown.slight": "🙁",
1307
+ "frust": "😣",
1308
+ "goofy": "🤪",
1309
+ "halo": "😇",
1310
+ "happy": "😊",
1311
+ "heart": "😍",
1312
+ "hearts": "🥰",
1313
+ "heat": "🥵",
1314
+ "hug": "🤗",
1315
+ "inv": "🙃",
1316
+ "joy": "😂",
1317
+ "kiss": "😗",
1318
+ "kiss.smile": "😙",
1319
+ "kiss.heart": "😘",
1320
+ "kiss.blush": "😚",
1321
+ "lick": "😋",
1322
+ "lie": "🤥",
1323
+ "mask": "😷",
1324
+ "meh": "😒",
1325
+ "melt": "🫠",
1326
+ "money": "🤑",
1327
+ "monocle": "🧐",
1328
+ "nausea": "🤢",
1329
+ "nerd": "🤓",
1330
+ "neutral": "😐",
1331
+ "open": "😃",
1332
+ "party": "🥳",
1333
+ "peek": "🫣",
1334
+ "plead": "🥺",
1335
+ "relief": "😌",
1336
+ "rofl": "🤣",
1337
+ "sad": "😔",
1338
+ "salute": "🫡",
1339
+ "shock": "😱",
1340
+ "shush": "🤫",
1341
+ "skeptic": "🤨",
1342
+ "sleep": "😴",
1343
+ "sleepy": "😪",
1344
+ "smile": "😄",
1345
+ "smile.slight": "🙂",
1346
+ "smile.sweat": "😅",
1347
+ "smile.tear": "🥲",
1348
+ "smirk": "😏",
1349
+ "sneeze": "🤧",
1350
+ "speak.not": "🫢",
1351
+ "squint": "😆",
1352
+ "stars": "🤩",
1353
+ "straight": "😑",
1354
+ "suffer": "😖",
1355
+ "surprise": "😯",
1356
+ "symbols": "🤬",
1357
+ "tear": "😢",
1358
+ "tear.relief": "😥",
1359
+ "tear.withheld": "🥹",
1360
+ "teeth": "😬",
1361
+ "think": "🤔",
1362
+ "tired": "😫",
1363
+ "tongue": "😛",
1364
+ "tongue.squint": "😝",
1365
+ "tongue.wink": "😜",
1366
+ "triumph": "😤",
1367
+ "unhappy": "😕",
1368
+ "vomit": "🤮",
1369
+ "weary": "😩",
1370
+ "wink": "😉",
1371
+ "woozy": "🥴",
1372
+ "worry": "😟",
1373
+ "wow": "😮",
1374
+ "yawn": "🥱",
1375
+ "zip": "🤐"
1376
+ }
1377
+ ],
1378
+ "factory": "🏭",
1379
+ "fairy": "🧚",
1380
+ "faith": [
1381
+ {
1382
+ "christ": "✝",
1383
+ "dharma": "☸",
1384
+ "islam": "☪",
1385
+ "judaism": "✡",
1386
+ "menorah": "🕎",
1387
+ "om": "🕉",
1388
+ "orthodox": "☦",
1389
+ "peace": "☮",
1390
+ "star.dot": "🔯",
1391
+ "worship": "🛐",
1392
+ "yinyang": "☯"
1393
+ }
1394
+ ],
1395
+ "falafel": "🧆",
1396
+ "family": "👪",
1397
+ "fax": "📠",
1398
+ "feather": "🪶",
1399
+ "feeding": [{ "breast": "🤱" }],
1400
+ "fencing": "🤺",
1401
+ "ferriswheel": "🎡",
1402
+ "filebox": "🗃",
1403
+ "filedividers": "🗂",
1404
+ "film": "🎞",
1405
+ "finger": [
1406
+ {
1407
+ "r": "👉",
1408
+ "l": "👈",
1409
+ "t": "👆",
1410
+ "t.alt": "☝",
1411
+ "b": "👇",
1412
+ "front": "🫵",
1413
+ "m": "🖕"
1414
+ }
1415
+ ],
1416
+ "fingers": [{ "cross": "🤞", "pinch": "🤌", "snap": "🫰" }],
1417
+ "fire": "🔥",
1418
+ "firecracker": "🧨",
1419
+ "fireengine": "🚒",
1420
+ "fireworks": "🎆",
1421
+ "fish": ["🐟", { "tropical": "🐠" }],
1422
+ "fishing": "🎣",
1423
+ "fist": [
1424
+ {
1425
+ "front": "👊",
1426
+ "r": "🤜",
1427
+ "l": "🤛",
1428
+ "raised": "✊"
1429
+ }
1430
+ ],
1431
+ "flag": [
1432
+ {
1433
+ "black": "🏴",
1434
+ "white": "🏳",
1435
+ "goal": "🏁",
1436
+ "golf": "⛳",
1437
+ "red": "🚩"
1438
+ }
1439
+ ],
1440
+ "flags": [{ "jp.crossed": "🎌" }],
1441
+ "flamingo": "🦩",
1442
+ "flashlight": "🔦",
1443
+ "flatbread": "🫓",
1444
+ "fleur": "⚜",
1445
+ "floppy": "💾",
1446
+ "flower": [
1447
+ {
1448
+ "hibiscus": "🌺",
1449
+ "lotus": "🪷",
1450
+ "pink": "🌸",
1451
+ "rose": "🌹",
1452
+ "sun": "🌻",
1453
+ "tulip": "🌷",
1454
+ "white": "💮",
1455
+ "wilted": "🥀",
1456
+ "yellow": "🌼"
1457
+ }
1458
+ ],
1459
+ "fly": "🪰",
1460
+ "fog": "🌫",
1461
+ "folder": ["📁", { "open": "📂" }],
1462
+ "fondue": "🫕",
1463
+ "foot": "🦶",
1464
+ "football": ["⚽", { "am": "🏈" }],
1465
+ "forex": "💱",
1466
+ "fountain": "⛲",
1467
+ "fox": "🦊",
1468
+ "free": "🆓",
1469
+ "fries": "🍟",
1470
+ "frisbee": "🥏",
1471
+ "frog": [{ "face": "🐸" }],
1472
+ "fuelpump": "⛽",
1473
+ "garlic": "🧄",
1474
+ "gear": "⚙",
1475
+ "gem": "💎",
1476
+ "genie": "🧞",
1477
+ "ghost": "👻",
1478
+ "giraffe": "🦒",
1479
+ "girl": "👧",
1480
+ "glass": [
1481
+ {
1482
+ "clink": "🥂",
1483
+ "milk": "🥛",
1484
+ "pour": "🫗",
1485
+ "tumbler": "🥃"
1486
+ }
1487
+ ],
1488
+ "glasses": ["👓", { "sun": "🕶" }],
1489
+ "globe": [
1490
+ {
1491
+ "am": "🌎",
1492
+ "as.au": "🌏",
1493
+ "eu.af": "🌍",
1494
+ "meridian": "🌐"
1495
+ }
1496
+ ],
1497
+ "gloves": "🧤",
1498
+ "goal": "🥅",
1499
+ "goat": "🐐",
1500
+ "goggles": "🥽",
1501
+ "golfing": "🏌",
1502
+ "gorilla": "🦍",
1503
+ "grapes": "🍇",
1504
+ "guard": [{ "man": "💂" }],
1505
+ "guitar": "🎸",
1506
+ "gymnastics": "🤸",
1507
+ "haircut": "💇",
1508
+ "hammer": ["🔨", { "pick": "⚒", "wrench": "🛠" }],
1509
+ "hamsa": "🪬",
1510
+ "hamster": [{ "face": "🐹" }],
1511
+ "hand": [
1512
+ {
1513
+ "raised": "✋",
1514
+ "raised.alt": "🤚",
1515
+ "r": "🫱",
1516
+ "l": "🫲",
1517
+ "t": "🫴",
1518
+ "b": "🫳",
1519
+ "ok": "👌",
1520
+ "call": "🤙",
1521
+ "love": "🤟",
1522
+ "part": "🖖",
1523
+ "peace": "✌",
1524
+ "pinch": "🤏",
1525
+ "rock": "🤘",
1526
+ "splay": "🖐",
1527
+ "wave": "👋",
1528
+ "write": "✍"
1529
+ }
1530
+ ],
1531
+ "handbag": "👜",
1532
+ "handball": "🤾",
1533
+ "handholding": [{ "man.man": "👬", "woman.man": "👫", "woman.woman": "👭" }],
1534
+ "hands": [
1535
+ {
1536
+ "folded": "🙏",
1537
+ "palms": "🤲",
1538
+ "clap": "👏",
1539
+ "heart": "🫶",
1540
+ "open": "👐",
1541
+ "raised": "🙌",
1542
+ "shake": "🤝"
1543
+ }
1544
+ ],
1545
+ "hash": "#",
1546
+ "hat": [{ "ribbon": "👒", "top": "🎩" }],
1547
+ "headphone": "🎧",
1548
+ "heart": [
1549
+ "❤",
1550
+ {
1551
+ "arrow": "💘",
1552
+ "beat": "💓",
1553
+ "black": "🖤",
1554
+ "blue": "💙",
1555
+ "box": "💟",
1556
+ "broken": "💔",
1557
+ "brown": "🤎",
1558
+ "double": "💕",
1559
+ "excl": "❣",
1560
+ "green": "💚",
1561
+ "grow": "💗",
1562
+ "orange": "🧡",
1563
+ "purple": "💜",
1564
+ "real": "🫀",
1565
+ "revolve": "💞",
1566
+ "ribbon": "💝",
1567
+ "spark": "💖",
1568
+ "white": "🤍",
1569
+ "yellow": "💛"
1570
+ }
1571
+ ],
1572
+ "hedgehog": "🦔",
1573
+ "helicopter": "🚁",
1574
+ "helix": "🧬",
1575
+ "helmet": [{ "cross": "⛑", "military": "🪖" }],
1576
+ "hippo": "🦛",
1577
+ "hockey": "🏑",
1578
+ "hole": "🕳",
1579
+ "honey": "🍯",
1580
+ "hongbao": "🧧",
1581
+ "hook": "🪝",
1582
+ "horn": [{ "postal": "📯" }],
1583
+ "horse": [
1584
+ "🐎",
1585
+ {
1586
+ "carousel": "🎠",
1587
+ "face": "🐴",
1588
+ "race": "🏇"
1589
+ }
1590
+ ],
1591
+ "hospital": "🏥",
1592
+ "hotdog": "🌭",
1593
+ "hotel": ["🏨", { "love": "🏩" }],
1594
+ "hotspring": "♨",
1595
+ "hourglass": ["⌛", { "flow": "⏳" }],
1596
+ "house": [
1597
+ "🏠",
1598
+ {
1599
+ "derelict": "🏚",
1600
+ "garden": "🏡",
1601
+ "multiple": "🏘"
1602
+ }
1603
+ ],
1604
+ "hundred": "💯",
1605
+ "hut": "🛖",
1606
+ "ice": "🧊",
1607
+ "icecream": ["🍨", { "shaved": "🍧", "soft": "🍦" }],
1608
+ "icehockey": "🏒",
1609
+ "id": "🆔",
1610
+ "info": "ℹ",
1611
+ "izakaya": "🏮",
1612
+ "jar": "🫙",
1613
+ "jeans": "👖",
1614
+ "jigsaw": "🧩",
1615
+ "joystick": "🕹",
1616
+ "juggling": "🤹",
1617
+ "juice": "🧃",
1618
+ "kaaba": "🕋",
1619
+ "kadomatsu": "🎍",
1620
+ "kangaroo": "🦘",
1621
+ "gachi": "🈷",
1622
+ "go": "🈴",
1623
+ "hi": "㊙",
1624
+ "ka": "🉑",
1625
+ "kachi": "🈹",
1626
+ "kara": "🈳",
1627
+ "kon": "🈲",
1628
+ "man1": "🈵",
1629
+ "muryo": "🈚",
1630
+ "shin": "🈸",
1631
+ "shuku": "㊗",
1632
+ "toku": "🉐",
1633
+ "yo": "🈺",
1634
+ "yubi": "🈯",
1635
+ "yuryo": "🈶",
1636
+ "koko": "🈁",
1637
+ "sa": "🈂",
1638
+ "kebab": "🥙",
1639
+ "key": ["🔑", { "old": "🗝" }],
1640
+ "keyboard": "⌨",
1641
+ "kiss": "💏",
1642
+ "kissmark": "💋",
1643
+ "kite": "🪁",
1644
+ "kiwi": "🥝",
1645
+ "knife": ["🔪", { "dagger": "🗡" }],
1646
+ "knot": "🪢",
1647
+ "koala": "🐨",
1648
+ "koinobori": "🎏",
1649
+ "label": "🏷",
1650
+ "lacrosse": "🥍",
1651
+ "ladder": "🪜",
1652
+ "lamp": [{ "diya": "🪔" }],
1653
+ "laptop": "💻",
1654
+ "a": "🅰",
1655
+ "ab": "🆎",
1656
+ "b": "🅱",
1657
+ "cl": "🆑",
1658
+ "o": "🅾",
1659
+ "leaf": [
1660
+ {
1661
+ "clover.three": "☘",
1662
+ "clover.four": "🍀",
1663
+ "fall": "🍂",
1664
+ "herb": "🌿",
1665
+ "maple": "🍁",
1666
+ "wind": "🍃"
1667
+ }
1668
+ ],
1669
+ "leftluggage": "🛅",
1670
+ "leg": ["🦵", { "mech": "🦿" }],
1671
+ "lemon": "🍋",
1672
+ "leopard": "🐆",
1673
+ "letter": [{ "love": "💌" }],
1674
+ "liberty": "🗽",
1675
+ "lightbulb": "💡",
1676
+ "lightning": "⚡",
1677
+ "lion": "🦁",
1678
+ "lipstick": "💄",
1679
+ "litter": ["🚮", { "not": "🚯" }],
1680
+ "lizard": "🦎",
1681
+ "llama": "🦙",
1682
+ "lobster": "🦞",
1683
+ "lock": [
1684
+ "🔒",
1685
+ {
1686
+ "key": "🔐",
1687
+ "open": "🔓",
1688
+ "pen": "🔏"
1689
+ }
1690
+ ],
1691
+ "lollipop": "🍭",
1692
+ "lotion": "🧴",
1693
+ "luggage": "🧳",
1694
+ "lungs": "🫁",
1695
+ "mage": "🧙",
1696
+ "magnet": "🧲",
1697
+ "magnify": [{ "r": "🔎", "l": "🔍" }],
1698
+ "mahjong": [{ "dragon.red": "🀄" }],
1699
+ "mail": ["✉", { "arrow": "📩" }],
1700
+ "mailbox": [
1701
+ {
1702
+ "closed.empty": "📪",
1703
+ "closed.full": "📫",
1704
+ "open.empty": "📭",
1705
+ "open.full": "📬"
1706
+ }
1707
+ ],
1708
+ "mammoth": "🦣",
1709
+ "man": [
1710
+ "👨",
1711
+ {
1712
+ "box": "🚹",
1713
+ "crown": "🤴",
1714
+ "guapimao": "👲",
1715
+ "levitate": "🕴",
1716
+ "old": "👴",
1717
+ "pregnant": "🫃",
1718
+ "turban": "👳",
1719
+ "tuxedo": "🤵"
1720
+ }
1721
+ ],
1722
+ "mango": "🥭",
1723
+ "map": [{ "world": "🗺", "jp": "🗾" }],
1724
+ "martialarts": "🥋",
1725
+ "masks": "🎭",
1726
+ "mate": "🧉",
1727
+ "matryoshka": "🪆",
1728
+ "meat": ["🥩", { "bone": "🍖" }],
1729
+ "medal": [
1730
+ {
1731
+ "first": "🥇",
1732
+ "second": "🥈",
1733
+ "third": "🥉",
1734
+ "sports": "🏅",
1735
+ "military": "🎖"
1736
+ }
1737
+ ],
1738
+ "megaphone": ["📢", { "simple": "📣" }],
1739
+ "melon": "🍈",
1740
+ "merperson": "🧜",
1741
+ "metro": "Ⓜ",
1742
+ "microbe": "🦠",
1743
+ "microphone": ["🎤", { "studio": "🎙" }],
1744
+ "microscope": "🔬",
1745
+ "milkyway": "🌌",
1746
+ "mirror": "🪞",
1747
+ "mixer": "🎛",
1748
+ "money": [
1749
+ {
1750
+ "bag": "💰",
1751
+ "dollar": "💵",
1752
+ "euro": "💶",
1753
+ "pound": "💷",
1754
+ "yen": "💴",
1755
+ "wings": "💸"
1756
+ }
1757
+ ],
1758
+ "monkey": [
1759
+ "🐒",
1760
+ {
1761
+ "face": "🐵",
1762
+ "hear.not": "🙉",
1763
+ "see.not": "🙈",
1764
+ "speak.not": "🙊"
1765
+ }
1766
+ ],
1767
+ "moon": [
1768
+ {
1769
+ "crescent": "🌙",
1770
+ "full": "🌕",
1771
+ "full.face": "🌝",
1772
+ "new": "🌑",
1773
+ "new.face": "🌚",
1774
+ "wane.one": "🌖",
1775
+ "wane.two": "🌗",
1776
+ "wane.three.face": "🌜",
1777
+ "wane.three": "🌘",
1778
+ "wax.one": "🌒",
1779
+ "wax.two": "🌓",
1780
+ "wax.two.face": "🌛",
1781
+ "wax.three": "🌔"
1782
+ }
1783
+ ],
1784
+ "mortarboard": "🎓",
1785
+ "mosque": "🕌",
1786
+ "mosquito": "🦟",
1787
+ "motorcycle": "🏍",
1788
+ "motorway": "🛣",
1789
+ "mountain": [
1790
+ "⛰",
1791
+ {
1792
+ "fuji": "🗻",
1793
+ "snow": "🏔",
1794
+ "sunrise": "🌄"
1795
+ }
1796
+ ],
1797
+ "mouse": ["🐁", { "face": "🐭" }],
1798
+ "mousetrap": "🪤",
1799
+ "mouth": ["👄", { "bite": "🫦" }],
1800
+ "moyai": "🗿",
1801
+ "museum": "🏛",
1802
+ "mushroom": "🍄",
1803
+ "musicalscore": "🎼",
1804
+ "nails": [{ "polish": "💅" }],
1805
+ "namebadge": "📛",
1806
+ "nazar": "🧿",
1807
+ "necktie": "👔",
1808
+ "needle": "🪡",
1809
+ "nest": [{ "empty": "🪹", "eggs": "🪺" }],
1810
+ "new": "🆕",
1811
+ "newspaper": ["📰", { "rolled": "🗞" }],
1812
+ "ng": "🆖",
1813
+ "ningyo": "🎎",
1814
+ "ninja": "🥷",
1815
+ "noentry": "⛔",
1816
+ "nose": "👃",
1817
+ "notebook": ["📓", { "deco": "📔" }],
1818
+ "notepad": "🗒",
1819
+ "notes": ["🎵", { "triple": "🎶" }],
1820
+ "numbers": "🔢",
1821
+ "octopus": "🐙",
1822
+ "office": "🏢",
1823
+ "oil": "🛢",
1824
+ "ok": "🆗",
1825
+ "olive": "🫒",
1826
+ "oni": "👹",
1827
+ "onion": "🧅",
1828
+ "orangutan": "🦧",
1829
+ "otter": "🦦",
1830
+ "owl": "🦉",
1831
+ "ox": "🐂",
1832
+ "oyster": "🦪",
1833
+ "package": "📦",
1834
+ "paella": "🥘",
1835
+ "page": ["📄", { "curl": "📃", "pencil": "📝" }],
1836
+ "pager": "📟",
1837
+ "pages": [{ "tabs": "📑" }],
1838
+ "painting": "🖼",
1839
+ "palette": "🎨",
1840
+ "pancakes": "🥞",
1841
+ "panda": "🐼",
1842
+ "parachute": "🪂",
1843
+ "park": "🏞",
1844
+ "parking": "🅿",
1845
+ "parrot": "🦜",
1846
+ "partalteration": "〽",
1847
+ "party": "🎉",
1848
+ "peach": "🍑",
1849
+ "peacock": "🦚",
1850
+ "peanuts": "🥜",
1851
+ "pear": "🍐",
1852
+ "pedestrian": ["🚶", { "not": "🚷" }],
1853
+ "pen": [{ "ball": "🖊", "fountain": "🖋" }],
1854
+ "pencil": "✏",
1855
+ "penguin": "🐧",
1856
+ "pepper": ["🫑", { "hot": "🌶" }],
1857
+ "person": [
1858
+ "🧑",
1859
+ {
1860
+ "angry": "🙎",
1861
+ "beard": "🧔",
1862
+ "blonde": "👱",
1863
+ "bow": "🙇",
1864
+ "crown": "🫅",
1865
+ "deaf": "🧏",
1866
+ "facepalm": "🤦",
1867
+ "frown": "🙍",
1868
+ "hijab": "🧕",
1869
+ "kneel": "🧎",
1870
+ "lotus": "🧘",
1871
+ "massage": "💆",
1872
+ "no": "🙅",
1873
+ "ok": "🙆",
1874
+ "old": "🧓",
1875
+ "pregnant": "🫄",
1876
+ "raise": "🙋",
1877
+ "sassy": "💁",
1878
+ "shrug": "🤷",
1879
+ "stand": "🧍",
1880
+ "steam": "🧖"
1881
+ }
1882
+ ],
1883
+ "petri": "🧫",
1884
+ "phone": [
1885
+ "📱",
1886
+ {
1887
+ "arrow": "📲",
1888
+ "classic": "☎",
1889
+ "not": "📵",
1890
+ "off": "📴",
1891
+ "receiver": "📞",
1892
+ "signal": "📶",
1893
+ "vibrate": "📳"
1894
+ }
1895
+ ],
1896
+ "piano": "🎹",
1897
+ "pick": "⛏",
1898
+ "pie": "🥧",
1899
+ "pig": ["🐖", { "face": "🐷", "nose": "🐽" }],
1900
+ "pill": "💊",
1901
+ "pin": ["📌", { "round": "📍" }],
1902
+ "pinata": "🪅",
1903
+ "pineapple": "🍍",
1904
+ "pingpong": "🏓",
1905
+ "pistol": "🔫",
1906
+ "pizza": "🍕",
1907
+ "placard": "🪧",
1908
+ "planet": "🪐",
1909
+ "plant": "🪴",
1910
+ "plaster": "🩹",
1911
+ "plate": [{ "cutlery": "🍽" }],
1912
+ "playback": [
1913
+ {
1914
+ "down": "⏬",
1915
+ "eject": "⏏",
1916
+ "forward": "⏩",
1917
+ "pause": "⏸",
1918
+ "record": "⏺",
1919
+ "repeat": "🔁",
1920
+ "repeat.once": "🔂",
1921
+ "repeat.v": "🔃",
1922
+ "restart": "⏮",
1923
+ "rewind": "⏪",
1924
+ "shuffle": "🔀",
1925
+ "skip": "⏭",
1926
+ "stop": "⏹",
1927
+ "toggle": "⏯",
1928
+ "up": "⏫"
1929
+ }
1930
+ ],
1931
+ "playingcard": [{ "flower": "🎴", "joker": "🃏" }],
1932
+ "plunger": "🪠",
1933
+ "policeofficer": "👮",
1934
+ "poo": "💩",
1935
+ "popcorn": "🍿",
1936
+ "post": [{ "eu": "🏤", "jp": "🏣" }],
1937
+ "postbox": "📮",
1938
+ "potato": ["🥔", { "sweet": "🍠" }],
1939
+ "pouch": "👝",
1940
+ "powerplug": "🔌",
1941
+ "present": "🎁",
1942
+ "pretzel": "🥨",
1943
+ "printer": "🖨",
1944
+ "prints": [{ "foot": "👣", "paw": "🐾" }],
1945
+ "prohibited": "🚫",
1946
+ "projector": "📽",
1947
+ "pumpkin": [{ "lantern": "🎃" }],
1948
+ "purse": "👛",
1949
+ "quest": ["❓", { "white": "❔" }],
1950
+ "rabbit": ["🐇", { "face": "🐰" }],
1951
+ "raccoon": "🦝",
1952
+ "radio": "📻",
1953
+ "radioactive": "☢",
1954
+ "railway": "🛤",
1955
+ "rainbow": "🌈",
1956
+ "ram": "🐏",
1957
+ "rat": "🐀",
1958
+ "razor": "🪒",
1959
+ "receipt": "🧾",
1960
+ "recycling": "♻",
1961
+ "reg": "®",
1962
+ "restroom": "🚻",
1963
+ "rhino": "🦏",
1964
+ "ribbon": ["🎀", { "remind": "🎗" }],
1965
+ "rice": [
1966
+ "🍚",
1967
+ {
1968
+ "cracker": "🍘",
1969
+ "ear": "🌾",
1970
+ "onigiri": "🍙"
1971
+ }
1972
+ ],
1973
+ "ring": "💍",
1974
+ "ringbuoy": "🛟",
1975
+ "robot": "🤖",
1976
+ "rock": "🪨",
1977
+ "rocket": "🚀",
1978
+ "rollercoaster": "🎢",
1979
+ "rosette": "🏵",
1980
+ "rugby": "🏉",
1981
+ "ruler": ["📏", { "triangle": "📐" }],
1982
+ "running": "🏃",
1983
+ "safetypin": "🧷",
1984
+ "safetyvest": "🦺",
1985
+ "sake": "🍶",
1986
+ "salad": "🥗",
1987
+ "salt": "🧂",
1988
+ "sandwich": "🥪",
1989
+ "santa": [{ "man": "🎅", "woman": "🤶" }],
1990
+ "satdish": "📡",
1991
+ "satellite": "🛰",
1992
+ "saw": "🪚",
1993
+ "saxophone": "🎷",
1994
+ "scales": "⚖",
1995
+ "scarf": "🧣",
1996
+ "school": "🏫",
1997
+ "scissors": "✂",
1998
+ "scooter": ["🛴", { "motor": "🛵" }],
1999
+ "scorpion": "🦂",
2000
+ "screwdriver": "🪛",
2001
+ "scroll": "📜",
2002
+ "seal": "🦭",
2003
+ "seat": "💺",
2004
+ "seedling": "🌱",
2005
+ "shark": "🦈",
2006
+ "sheep": "🐑",
2007
+ "shell": [{ "spiral": "🐚" }],
2008
+ "shield": "🛡",
2009
+ "ship": ["🚢", { "cruise": "🛳", "ferry": "⛴" }],
2010
+ "shirt": [{ "sports": "🎽", "t": "👕" }],
2011
+ "shoe": [
2012
+ "👞",
2013
+ {
2014
+ "ballet": "🩰",
2015
+ "flat": "🥿",
2016
+ "heel": "👠",
2017
+ "hike": "🥾",
2018
+ "ice": "⛸",
2019
+ "roller": "🛼",
2020
+ "sandal.heel": "👡",
2021
+ "ski": "🎿",
2022
+ "sneaker": "👟",
2023
+ "tall": "👢",
2024
+ "thong": "🩴"
2025
+ }
2026
+ ],
2027
+ "shopping": "🛍",
2028
+ "shorts": "🩳",
2029
+ "shoshinsha": "🔰",
2030
+ "shower": "🚿",
2031
+ "shrimp": ["🦐", { "fried": "🍤" }],
2032
+ "shrine": "⛩",
2033
+ "sign": [{ "crossing": "🚸", "stop": "🛑" }],
2034
+ "silhouette": [
2035
+ "👤",
2036
+ {
2037
+ "double": "👥",
2038
+ "hug": "🫂",
2039
+ "speak": "🗣"
2040
+ }
2041
+ ],
2042
+ "siren": "🚨",
2043
+ "skateboard": "🛹",
2044
+ "skewer": [{ "dango": "🍡", "oden": "🍢" }],
2045
+ "skiing": "⛷",
2046
+ "skull": ["💀", { "bones": "☠" }],
2047
+ "skunk": "🦨",
2048
+ "sled": "🛷",
2049
+ "slide": "🛝",
2050
+ "slider": "🎚",
2051
+ "sloth": "🦥",
2052
+ "slots": "🎰",
2053
+ "snail": "🐌",
2054
+ "snake": "🐍",
2055
+ "snowboarding": "🏂",
2056
+ "snowflake": "❄",
2057
+ "snowman": ["⛄", { "snow": "☃" }],
2058
+ "soap": "🧼",
2059
+ "socks": "🧦",
2060
+ "softball": "🥎",
2061
+ "sos": "🆘",
2062
+ "soup": "🍲",
2063
+ "spaghetti": "🍝",
2064
+ "sparkle": [{ "box": "❇" }],
2065
+ "sparkler": "🎇",
2066
+ "sparkles": "✨",
2067
+ "speaker": [
2068
+ "🔈",
2069
+ {
2070
+ "not": "🔇",
2071
+ "wave": "🔉",
2072
+ "waves": "🔊"
2073
+ }
2074
+ ],
2075
+ "spider": "🕷",
2076
+ "spiderweb": "🕸",
2077
+ "spinach": "🥬",
2078
+ "sponge": "🧽",
2079
+ "spoon": "🥄",
2080
+ "square": [
2081
+ {
2082
+ "black": "⬛",
2083
+ "black.tiny": "▪",
2084
+ "black.small": "◾",
2085
+ "black.medium": "◼",
2086
+ "white": "⬜",
2087
+ "white.tiny": "▫",
2088
+ "white.small": "◽",
2089
+ "white.medium": "◻",
2090
+ "blue": "🟦",
2091
+ "brown": "🟫",
2092
+ "green": "🟩",
2093
+ "orange": "🟧",
2094
+ "purple": "🟪",
2095
+ "red": "🟥",
2096
+ "yellow": "🟨"
2097
+ }
2098
+ ],
2099
+ "squid": "🦑",
2100
+ "stadium": "🏟",
2101
+ "star": [
2102
+ "⭐",
2103
+ {
2104
+ "arc": "💫",
2105
+ "box": "✴",
2106
+ "glow": "🌟",
2107
+ "shoot": "🌠"
2108
+ }
2109
+ ],
2110
+ "stethoscope": "🩺",
2111
+ "store": [{ "big": "🏬", "small": "🏪" }],
2112
+ "strawberry": "🍓",
2113
+ "suit": [
2114
+ {
2115
+ "club": "♣",
2116
+ "diamond": "♦",
2117
+ "heart": "♥",
2118
+ "spade": "♠"
2119
+ }
2120
+ ],
2121
+ "sun": ["☀", { "cloud": "🌤", "face": "🌞" }],
2122
+ "sunrise": "🌅",
2123
+ "superhero": "🦸",
2124
+ "supervillain": "🦹",
2125
+ "surfing": "🏄",
2126
+ "sushi": "🍣",
2127
+ "swan": "🦢",
2128
+ "swimming": "🏊",
2129
+ "swimsuit": "🩱",
2130
+ "swords": "⚔",
2131
+ "symbols": "🔣",
2132
+ "synagogue": "🕍",
2133
+ "syringe": "💉",
2134
+ "taco": "🌮",
2135
+ "takeout": "🥡",
2136
+ "tamale": "🫔",
2137
+ "tanabata": "🎋",
2138
+ "tangerine": "🍊",
2139
+ "tap": ["🚰", { "not": "🚱" }],
2140
+ "taxi": ["🚕", { "front": "🚖" }],
2141
+ "teacup": "🍵",
2142
+ "teapot": "🫖",
2143
+ "teddy": "🧸",
2144
+ "telescope": "🔭",
2145
+ "temple": "🛕",
2146
+ "ten": "🔟",
2147
+ "tengu": "👺",
2148
+ "tennis": "🎾",
2149
+ "tent": "⛺",
2150
+ "testtube": "🧪",
2151
+ "thermometer": "🌡",
2152
+ "thread": "🧵",
2153
+ "thumb": [{ "up": "👍", "down": "👎" }],
2154
+ "ticket": [{ "event": "🎟", "travel": "🎫" }],
2155
+ "tiger": ["🐅", { "face": "🐯" }],
2156
+ "tm": "™",
2157
+ "toilet": "🚽",
2158
+ "toiletpaper": "🧻",
2159
+ "tomato": "🍅",
2160
+ "tombstone": "🪦",
2161
+ "tongue": "👅",
2162
+ "toolbox": "🧰",
2163
+ "tooth": "🦷",
2164
+ "toothbrush": "🪥",
2165
+ "tornado": "🌪",
2166
+ "tower": [{ "tokyo": "🗼" }],
2167
+ "trackball": "🖲",
2168
+ "tractor": "🚜",
2169
+ "trafficlight": [{ "v": "🚦", "h": "🚥" }],
2170
+ "train": [
2171
+ "🚆",
2172
+ {
2173
+ "car": "🚃",
2174
+ "light": "🚈",
2175
+ "metro": "🚇",
2176
+ "mono": "🚝",
2177
+ "mountain": "🚞",
2178
+ "speed": "🚄",
2179
+ "speed.bullet": "🚅",
2180
+ "steam": "🚂",
2181
+ "stop": "🚉",
2182
+ "suspend": "🚟",
2183
+ "tram": "🚊",
2184
+ "tram.car": "🚋"
2185
+ }
2186
+ ],
2187
+ "transgender": "⚧",
2188
+ "tray": [{ "inbox": "📥", "mail": "📨", "outbox": "📤" }],
2189
+ "tree": [
2190
+ {
2191
+ "deciduous": "🌳",
2192
+ "evergreen": "🌲",
2193
+ "palm": "🌴",
2194
+ "xmas": "🎄"
2195
+ }
2196
+ ],
2197
+ "triangle": [
2198
+ {
2199
+ "r": "▶",
2200
+ "l": "◀",
2201
+ "t": "🔼",
2202
+ "b": "🔽",
2203
+ "t.red": "🔺",
2204
+ "b.red": "🔻"
2205
+ }
2206
+ ],
2207
+ "trident": "🔱",
2208
+ "troll": "🧌",
2209
+ "trophy": "🏆",
2210
+ "truck": ["🚚", { "trailer": "🚛" }],
2211
+ "trumpet": "🎺",
2212
+ "tsukimi": "🎑",
2213
+ "turkey": "🦃",
2214
+ "turtle": "🐢",
2215
+ "tv": "📺",
2216
+ "ufo": "🛸",
2217
+ "umbrella": [
2218
+ {
2219
+ "open": "☂",
2220
+ "closed": "🌂",
2221
+ "rain": "☔",
2222
+ "sun": "⛱"
2223
+ }
2224
+ ],
2225
+ "unicorn": "🦄",
2226
+ "unknown": "🦳",
2227
+ "up": "🆙",
2228
+ "urn": "⚱",
2229
+ "vampire": "🧛",
2230
+ "violin": "🎻",
2231
+ "volcano": "🌋",
2232
+ "volleyball": "🏐",
2233
+ "vs": "🆚",
2234
+ "waffle": "🧇",
2235
+ "wand": "🪄",
2236
+ "warning": "⚠",
2237
+ "watch": ["⌚", { "stop": "⏱" }],
2238
+ "watermelon": "🍉",
2239
+ "waterpolo": "🤽",
2240
+ "wave": "🌊",
2241
+ "wc": "🚾",
2242
+ "weightlifting": "🏋",
2243
+ "whale": ["🐋", { "spout": "🐳" }],
2244
+ "wheel": "🛞",
2245
+ "wheelchair": ["🦽", { "box": "♿", "motor": "🦼" }],
2246
+ "wind": "🌬",
2247
+ "windchime": "🎐",
2248
+ "window": "🪟",
2249
+ "wine": "🍷",
2250
+ "wolf": "🐺",
2251
+ "woman": [
2252
+ "👩",
2253
+ {
2254
+ "box": "🚺",
2255
+ "crown": "👸",
2256
+ "old": "👵",
2257
+ "pregnant": "🤰"
2258
+ }
2259
+ ],
2260
+ "wood": "🪵",
2261
+ "worm": "🪱",
2262
+ "wrench": "🔧",
2263
+ "wrestling": "🤼",
2264
+ "xray": "🩻",
2265
+ "yarn": "🧶",
2266
+ "yoyo": "🪀",
2267
+ "zebra": "🦓",
2268
+ "zodiac": [
2269
+ {
2270
+ "aquarius": "♒",
2271
+ "aries": "♈",
2272
+ "cancer": "♋",
2273
+ "capri": "♑",
2274
+ "gemini": "♊",
2275
+ "leo": "♌",
2276
+ "libra": "♎",
2277
+ "ophi": "⛎",
2278
+ "pisces": "♓",
2279
+ "sagit": "♐",
2280
+ "scorpio": "♏",
2281
+ "taurus": "♉",
2282
+ "virgo": "♍"
2283
+ }
2284
+ ],
2285
+ "zombie": "🧟",
2286
+ "zzz": "💤"
2287
+ }
2288
+ `;function b(n,e,l){let r=document.createElementNS("http://www.w3.org/1998/Math/MathML",n);if(e&&(r.textContent=e),l)for(let t in l)r.setAttribute(t,l[t]);return r}const M="mathvariant",cn=Intl.Segmenter,pn=new cn("emoji",{granularity:"grapheme"});function dn(n){let e=/[a-zA-Z]/,l=/[\(\)\{\}\[\]]/;const r=/[\(\{\[]/,t=/[\)\}\]]/;let o=/^[ \t\n\r]+$/,h="",d=!1,i=[],m=[],v=i,f="";n=n.replace(/(\\u\{[\dA-Fa-f]+\})/g,a=>{const c=parseInt(a.slice(3,-1),16);return String.fromCodePoint(c)});let p=[];for(let a=0;a<n.length;a++){const c=n[a],y=n[a-1];if(c==='"'&&y!="\\"&&!d){h!="str"?h="str":h="";continue}if(h!=="str"){{const W=n[a+1];if(c==="/"&&W==="/"&&(d="line"),d==="line"&&c===`
2289
+ `){a++,d=!1;continue}if(c==="/"&&W==="*"&&(d="block"),d==="block"&&c==="*"&&W==="/"){a++,d=!1;continue}}c.match(r)&&!d&&y!="\\"&&p.push(a),c.match(t)&&!d&&y!="\\"&&(p.length===0||p.pop())}}d=!1;let u=Z.emoji?Z.emoji(n):Array.from(pn.segment(n)).map(a=>a.segment),s=[];for(let a of u)a.length>1&&a.includes(",")?s.push(...a):s.push(a);u=s;for(let a=0;a<u.length;a++){const c=u[a],y=u[a+1];if(c==="/"&&y==="/"&&(d="line"),d==="line"&&c===`
2290
+ `){a++,d=!1;continue}if(c==="/"&&y==="*"&&(d="block"),d==="block"&&c==="*"&&y==="/"){a++,d=!1;continue}if(!d){if(h==="blank"&&!c.match(o)&&(v.push({type:h,value:""}),h=""),c==='"'&&u[a-1]!="\\"){h!="str"?h="str":(v.push({type:h,value:f}),h="",f="");continue}if(h=="str"){f+=c;continue}if(c.match(o)&&(h="blank"),c==="#"){v.push({type:"sharp",value:""});continue}if(h==""&&(!u[a-1]||!u[a-1].match(e))&&(!u[a+1]||!u[a+1].match(e))&&!c.match(l)){v.push({type:"v",value:c});continue}if(h==""&&!c.match(e)&&!c.match(l)){v.push({type:"v",value:c});continue}if((u[a-1]&&u[a-1].match(e)||u[a+1]&&u[a+1].match(e))&&c.match(e)&&(h="f"),h=="f"&&(f+=c),h=="f"&&(!u[a+1]||!u[a+1].match(e))&&(v.push({type:h,value:f}),h="",f=""),c.match(r))if(u[a-1]==="\\")v.push({type:"v",value:c,esc:!0});else if(p.includes(a))v.push({type:"v",value:c});else{m.push({tree:v,close:!1}),v.push({type:"group",value:f,children:[],kh:c}),v=v.at(-1).children,f="";continue}if(c.match(t))if(u[a-1]==="\\")v.push({type:"v",value:c,esc:!0});else if(m.at(-1)){if(m.at(-1).close===!1){m.at(-1).close=!0,v=m.at(-1).tree,v.at(-1).kh+=c,m.pop();continue}}else v.push({type:"v",value:c})}}return i}let fn=JSON.parse(O);function G(n){const e={};for(let l in n)if(typeof n[l]=="string")e[l]=n[l];else for(let r of n[l])if(typeof r=="string")e[l]=r;else{e[l]||(e[l]=r[Object.keys(r)[0]]);for(let t in r){e[`${l}.${t}`]=r[t];let o=t.split(".");for(let h=1;h<o.length;h++){let d=o.slice(0,h).join(".");r[d]||(e[`${l}.${d}`]=r[t])}}}return e}let z=G(fn),hn=G(JSON.parse(un)),$={"->":"arrow.r","|->":"arrow.r.bar","=>":"arrow.r.double","|=>":"arrow.r.double.bar","==>":"arrow.r.double.long","-->":"arrow.r.long","~~>":"arrow.r.long.squiggly","~>":"arrow.r.squiggly",">->":"arrow.r.tail","->>":"arrow.r.twohead","<-":"arrow.l","<==":"arrow.l.double.long","<--":"arrow.l.long","<~~":"arrow.l.long.squiggly","<~":"arrow.l.squiggly","<-<":"arrow.l.tail","<<-":"arrow.l.twohead","<->":"arrow.l.r","<=>":"arrow.l.r.double","<==>":"arrow.l.r.double.long","<-->":"arrow.l.r.long","*":"convolve","||":"bar.v.double","[|":"bracket.l.double","|]":"bracket.r.double",":=":"colon.eq","::=":"colon.double.eq","--":"dash.en","---":"dash.em","...":"dots.h","=:":"eq.colon","!=":"eq.not",">>":"gt.double",">=":"gt.eq",">>>":"gt.triple","-?":"hyph.soft","<<":"lt.double","<=":"lt.eq","<<<":"lt.triple","-":"minus","'":"prime","~":"space.nobreak"},B=0;for(let n in $)n.length>B&&(B=n.length);const bn={"(":["(",")"],"[":["[","]"],"{":["{","}"],"|":["|","|"],"||":["‖","‖"],"":["",""]};function K(n,e){const l=S(n,"delim");let r="";return l!==null&&(l===void 0?r=e:r=l),bn[r]}let k={accent:(n,e,l)=>{let r=b("mrow");r.append(g(n[0],l));let t=b("mrow");t.append(g(n[1],l)),t.children[0].innerHTML=gn(t.children[0].innerHTML);let o=b("mover");return o.setAttribute("accent","true"),o.append(r,t),o},attach:(n,e,l)=>{let r=b("mrow");r.append(g(n[0]));let t,o=b("mrow");e.tl&&o.append(g(e.tl,l));let h=b("mrow");e.bl&&h.append(g(e.bl,l));let d=b("mrow");e.tr&&d.append(g(e.tr,l));let i=b("mrow");if(e.br&&i.append(g(e.br,l)),(e.tl||e.bl||e.tr||e.br)&&(e.tl||e.bl?(t=b("mmultiscripts"),t.append(r,i,d,b("mprescripts"),h,o)):e.tr&&e.br?(t=b("msubsup"),t.append(r,i,d)):e.tr?(t=b("msup"),t.append(r,d)):(t=b("msub"),t.append(r,i))),e.t||e.b){let m=b("munderover");t?m.append(t):m.append(r);let v=b("mrow");e.t&&v.append(g(e.t,l));let f=b("mrow");e.b&&f.append(g(e.b,l)),m.append(f,v),t=m}return t},scripts:(n,e,l)=>g(n[0],l),limits:(n,e,l)=>g(n[0],l),binom:(n,e,l)=>{let r=b("mrow"),t=b("mrow");t.append(g(n[0],l));let o=b("mrow");const h=[];for(let v of n.slice(1))h.push(...v,A);o.append(g(h.slice(0,-1),l));let d=b("mfrac",null,{linethickness:"0"});d.append(t,o);let i=b("mo","("),m=b("mo",")");return r.append(i,d,m),r},cancel:(n,e,l)=>{let r=b("mrow");const t=h=>`linear-gradient(to ${h?"left":"right"} top, transparent 47.75%, currentColor 49.5%, currentColor 50.5%, transparent 52.25%)`;let o="";return I(e.cross)?o=t(!0)+","+t(!1):I(e.inverted)?o=t(!1):o=t(!0),r.style.backgroundImage=o,r.append(g(n[0],l)),r},cases:(n,e,l)=>{let r=b("mrow");const t=K(e,"{");let o=k.x_table(n,{cases:[]},l);const h=S(e,"gap")||"0.5em";if(o.setAttribute("rowspacing",h),I(e==null?void 0:e.reverse)){const d=b("mo",t[1]);r.append(o,d)}else{const d=b("mo",t[0]);r.append(d,o)}return r},frac:(n,e,l)=>{let r=b("mrow");r.append(g(n[0],l));let t=b("mrow");t.append(g(n[1],l));let o=b("mfrac");return o.append(r,t),o},lr:(n,e,l)=>{let r=on(n.map(i=>kn(i)));const t=E(r),o=S(e,"size"),h=g(t,l),d=b("mrow");if(d.append(h),o&&o!="auto"){const i=d.children[0],m=d.children[d.children.length-1];i==null||i.setAttribute("maxsize",o),i==null||i.setAttribute("minsize",o),m==null||m.setAttribute("maxsize",o),m==null||m.setAttribute("minsize",o)}return d},mid:(n,e)=>{var r,t;return b("mo",(t=(r=n==null?void 0:n[0])==null?void 0:r[0])==null?void 0:t.value,{stretchy:"true"})},mat:(n,e,l)=>{var u;let r=K(e,"("),t=b("mrow"),o=b("mo",r[0]),h=b("mo",r[1]),d=b("mtable"),i;(u=n[0][0])!=null&&u.type?i=[n]:i=n;let m=S(e,"augment");if(m){let s=NaN,a=NaN;if(typeof m!="object"?s=Number(m):(m.hline&&(a=Number(m.hline.map(c=>c.value).join(""))),m.vline&&(s=Number(m.vline.map(c=>c.value).join("")))),s<0&&(s=i[0].length+s),a<0&&(a=i.length+a),a){let c=[];for(let y=1;y<i.length;y++)c.push(y===a);d.setAttribute("rowlines",c.map(y=>y?"solid":"none").join(" "))}if(s){let c=[];for(let y=1;y<i[0].length;y++)c.push(y===s);d.setAttribute("columnlines",c.map(y=>y?"solid":"none").join(" "))}}const v=S(e,"gap"),f=S(e,"row-gap"),p=S(e,"column-gap");d.setAttribute("columnspacing",p||v||"0.5em"),d.setAttribute("rowspacing",f||v||"0.5em");for(let s of i){let a=b("mtr");for(let c of s){let y=b("mtd");y.append(g(c,l)),a.append(y)}d.append(a)}return t.append(o,d,h),t},root:(n,e,l)=>{let r=b("mrow");r.append(g(n[0],l));let t=b("mrow");t.append(g(n[1],l));let o=b("mroot");return o.append(t,r),o},sqrt:(n,e,l)=>k.root([[],n[0]],null,l),display:(n,e,l)=>{let r=b("mrow",null,{displaystyle:"true"});return r.append(g(n[0],l)),r},inline:(n,e,l)=>{let r=b("mrow",null,{displaystyle:"false",scriptlevel:"0"});return r.append(g(n[0],l)),r},script:(n,e,l)=>{let r=b("mrow",null,{displaystyle:"false",scriptlevel:"1"});return r.append(g(n[0],l)),r},sscript:(n,e,l)=>{let r=b("mrow",null,{displaystyle:"false",scriptlevel:"2"});return r.append(g(n[0],l)),r},upright:(n,e,l)=>{let r=b("mrow");return r.append(g(n[0],l)),r.querySelectorAll("mi").forEach(t=>{t.getAttribute(M)||t.setAttribute(M,"normal")}),r.querySelectorAll("ms").forEach(t=>{t.getAttribute(M)||t.setAttribute(M,"normal")}),r},italic:(n,e,l)=>{let r=b("mrow");return r.append(g(n[0],l)),r.querySelectorAll("mi").forEach(t=>{t.getAttribute(M)||t.setAttribute(M,"italic")}),r.querySelectorAll("ms").forEach(t=>{t.getAttribute(M)||t.setAttribute(M,"italic")}),r},bold:(n,e,l)=>{let r=b("mrow");return r.style.fontWeight="bold",r.append(g(n[0],l)),r},op:(n,e,l)=>{let r=b("mrow"),t=b("ms");return t.append(g(n[0],l)),r.append(t),r},underline:(n,e,l)=>Y("under",n[0],l),overline:(n,e,l)=>Y("over",n[0],l),underbrace:(n,e,l)=>D("under",n[0],"⏟",n==null?void 0:n[1],l),overbrace:(n,e,l)=>D("over",n[0],"⏞",n==null?void 0:n[1],l),underbracket:(n,e,l)=>D("under",n[0],"⎵",n==null?void 0:n[1],l),overbracket:(n,e,l)=>D("over",n[0],"⎴",n==null?void 0:n[1],l),serif:n=>g(n[0],"serif"),sans:n=>g(n[0],"sans"),frak:n=>g(n[0],"frak"),mono:n=>g(n[0],"mono"),bb:n=>g(n[0],"bb"),cal:n=>g(n[0],"cal"),vec:(n,e,l)=>{let r=K(e,"("),t=b("mrow"),o=b("mo",r[0]),h=b("mo",r[1]),d=J(n,l);const i=S(e,"gap")||"0.5em";return d.setAttribute("rowspacing",i),d.setAttribute("columnspacing","0.5em"),t.append(o,d,h),t},h:(n,e)=>b("mspace","",{width:n[0][0].value}),x_table:(n,e)=>{let l=J(n);return e.cases&&l.setAttribute("columnalign","left"),l}};function J(n,e){let l=0,r=b("mtable");for(let t of n){const o=t.filter(h=>q(h,w("&"))).length;o>l&&(l=o)}for(let t of n){let o=b("mtr"),h=[[]];for(let i=0;i<t.length;i++)q(t[i],w("&"))?h.push([]):h.at(-1).push(t[i]);for(let i of h){let m=b("mtd");o.append(m),m.append(g(i,e))}const d=[];for(let i=0;i<=l;i++)i%2===0?d.push("right"):d.push("left");r.setAttribute("columnalign",d.join(" ")),r.setAttribute("columnspacing","0"),r.append(o)}return r}let U=[{id:"arccos"},{id:"arcsin"},{id:"arctan"},{id:"arg"},{id:"cos"},{id:"cosh"},{id:"cot"},{id:"ctg"},{id:"coth"},{id:"csc"},{id:"csch"},{id:"deg"},{id:"det",limits:!0},{id:"dim"},{id:"exp"},{id:"gcd",limits:!0},{id:"hom"},{id:"mod"},{id:"id"},{id:"im"},{id:"inf",limits:!0},{id:"ker"},{id:"lg"},{id:"lim",limits:!0},{id:"ln"},{id:"log"},{id:"max",limits:!0},{id:"min",limits:!0},{id:"Pr",limits:!0},{id:"sec"},{id:"sech"},{id:"sin"},{id:"sinc"},{id:"sinh"},{id:"sup",limits:!0},{id:"tan"},{id:"tg"},{id:"tr"},{id:"tanh"},{id:"liminf",str:"lim inf",limits:!0},{id:"limsup",str:"lim sup",limits:!0},{id:"dif",str:"d"},{id:"Dif",str:"D"}];function mn(){for(let n of U)k[n.id]=(e,l,r)=>{let t=k.op([[{type:"str",value:n.str||n.id}]],{},r);if(e){let o=document.createDocumentFragment();return o.append(t,wn(on(e))),o}else return t}}mn();const X={quad:"1em",med:"0.222em",thin:"0.17em",thick:"0.28em",wide:"2em"};for(let n in X)k[n]=()=>k.h([[{type:"str",value:X[n]}]]);let Q=[],V=["∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨃","⨄","⨅","⨆"];for(let n in z)for(let e of V)z[n]==e&&Q.push(n);function gn(n){switch(n){case"̀":case"`":return"̀";case"́":case"´":return"́";case"̂":case"^":case"ˆ":return"̂";case"̃":case"~":case"∼":case"˜":return"̃";case"̄":case"¯":return"̄";case"̅":case"-":case"‾":case"−":return"̅";case"̆":case"˘":return"̆";case"̇":case".":case"˙":case"⋅":return"̇";case"̈":case"¨":return"̈";case"⃛":return"⃛";case"⃜":return"⃜";case"̊":case"∘":case"○":return"̊";case"̋":case"˝":return"̋";case"̌":case"ˇ":return"̌";case"⃖":case"←":return"⃖";case"⃗":case"→":case"⟶":return"⃗";case"⃡":case"↔":case"⟷":return"⃡";case"⃐":case"↼":return"⃐";case"⃑":case"⇀":return"⃑";default:return n}}function vn(){const n=["grave","acute","acute.double","hat","tilde","macron","breve","dot","dot.double","dot.triple","dot.quad","diaer","circle","arrow","arrow.r","arrow.l","arrow.l.r","caron","harpoon","harpoon.rt","harpoon.lt"];for(let e of n)k[e]=(l,r,t)=>k.accent([l[0],[{type:"f",value:e}]],{},t)}vn();function yn(){let n=[{name:"abs",l:w("|"),r:w("|")},{name:"norm",l:w("‖"),r:w("‖")},{name:"floor",l:w("⌊"),r:w("⌋")},{name:"ceil",l:w("⌈"),r:w("⌉")},{name:"round",l:w("⌊"),r:w("⌉")}];for(let e of n)k[e.name]=(l,r,t)=>k.lr([[e.l,...l[0],e.r]],r,t)}yn();function D(n,e,l,r,t){let o=n==="under"?b("munder",null,{accentunder:"true"}):b("mover",null,{accent:"true"}),h=b("mrow");if(h.append(g(e,t)),r){let d=b("mrow");d.append(g(r,t));let i=b(n==="under"?"munder":"mover"),m=b("mo",l);i.append(m,d),o.append(h,i)}else{let d=b("mo",l);o.append(h,d)}return o}function Y(n,e,l){let r=n==="under"?b("munder",null,{accentunder:"true"}):b("mover",null,{accent:"true"}),t=b("mrow");return t.append(g(e,l)),n==="under"&&(t.style.borderBottom="1px solid black"),n==="over"&&(t.style.borderTop="1px solid black"),r.append(t),r}const T={"√":k.sqrt,"∛":(n,e,l)=>k.root([[w("3")],n[0]],null,l),"∜":(n,e,l)=>k.root([[w("4")],n[0]],null,l)};function wn(n){let e=b("mrow"),l=b("mo");l.textContent="(";let r=g(n),t=b("mo");return t.textContent=")",e.append(l,r,t),e}function x(n){return n.type==="group"?n.kh==="()"?n.children:[n]:[n]}function kn(n){return n.length===1&&n[0].type==="group"&&(n=[w(n[0].kh[0]),...n[0].children,w(n[0].kh[1])]),n}function qn(n){return[{type:"group",value:"",children:n,kh:"()"}]}function j(n){return q(n,{type:"v",value:"^"})}function _(n){return q(n,{type:"v",value:"_"})}function C(n){return q(n,{type:"v",value:"/"})}function nn(n){return n&&n.value=="br"&&n.esc}function F(n){if(n.length==1){let e=n[0];if(e.type=="f"){if(Q.includes(e.value)||e.value.split(".").at(0)==="arrow")return!0;for(let l of U)if(l.limits&&e.value==l.id)return!0;if(e.value==="scripts")return!1;if(e.value==="limits")return!0;if(e.value==="op"){let{dic:l}=rn(e);return I(l.limits)}}if(e.type=="v"&&V.includes(e.value))return!0}else return!1}function H(n){return R(n,{type:"v",value:"."})}function en(n){return n&&(n.type=="f"||n.type=="v"&&n.value.match(/[a-z]/))}function xn(n){return n&&n.type=="v"&&n.value=="!"&&!n.esc}let A={type:"v",value:","};function w(n){return{type:"v",value:n}}function R(n,e){return!n||!e?!1:n.type===e.type&&n.value===e.value}function q(n,e){return!n||!e?!1:n.type===e.type&&n.value===e.value&&(n==null?void 0:n.esc)===(e==null?void 0:e.esc)}function L(n,...e){return e.includes(n==null?void 0:n.type)}function E(n){if(!n||!n[0])return[];let e=0,l=n.length;return n[0].type==="blank"&&(e=1),n.at(-1).type==="blank"&&l--,n.slice(e,l)}function P(n){let e=[];for(let l in n){e.push({type:"f",value:l}),e.push({type:"v",value:":"});for(let r of n[l])R(r,A)&&(r.esc=!0);e.push(...n[l]),Number(l)+1!=Object.keys(n).length&&e.push(A)}return e}function jn(n){n=E(n);const e=new Object;let l="",r=[];n.push(A);for(let t=0;t<n.length;t++)!l&&n[t].type!="blank"?l=n[t].value:r.length?q(n[t],A)?(e[l]=E(r),l="",r=[]):r.push(n[t]):q(n[t],w(":"))&&r.push(n[t+1]);return e}function S(n,e){var r;if(!((r=n==null?void 0:n[e])!=null&&r[0]))return;const l=n[e][0];if(l.type==="sharp"){if(l.value==="true")return!0;if(l.value==="false")return!1;if(l.value==="none")return null;if(l.children)return l.children.find(t=>q(t,w(":")))?jn(l.children):l.children.map(t=>t.value).join("")}return n[e].map(t=>t.value).join("")}function I(n){var e;return q((e=E(n))==null?void 0:e[0],{type:"sharp",value:"true"})}function ln(n){var e,l,r;{let t=[],o=/[0-9]/,h="";for(let d=0;d<n.length;d++){let i=n[d];i.value.match(o)||(e=n[d-1])!=null&&e.value.match(o)&&H(i)&&((l=n[d+1])!=null&&l.value.match(o))?h+=i.value:t.push(i),i.value.match(o)&&(!n[d+1]||!n[d+1].value.match(o))&&!(H(n[d+1])&&((r=n[d+2])!=null&&r.value.match(o)))&&(t.push({type:"v",value:h}),h="")}n=t}{let t=[];for(let o=0;o<n.length;o++){let h=n[o];if(q(h,w("\\"))){if(n!=null&&n[o+1]){let d=n[o+1];if(R(d,w("\\")))t.push({type:"v",value:"\\",esc:!0}),o++;else if(d.type==="blank")t.push({type:"v",value:"br",esc:!0}),o++;else if(d.type==="f"){let i=d.value;t.push({type:"v",value:i[0]}),t.push({type:i.length==2?"v":"f",value:i.slice(1)}),o++}else if(d.type==="sharp")t.push({type:"v",value:"#"}),o++;else{let i=d;i.esc=!0,t.push(i),o++}}}else t.push(h)}n=t}return n}function tn(n){var e,l,r,t,o,h,d,i,m,v;{let f=[];for(let p=0;p<n.length;p++){let u=n[p];if(u.esc)f.push(u);else if(u.type=="v"){let s=p,a=u.value,c=[];for($[a]&&c.push(a);((e=n==null?void 0:n[s+1])==null?void 0:e.type)=="v"&&a.length<=B;)a+=n[s+1].value,$[a]&&c.push(a),s++;if(c.length){let y={type:"f",value:$[c.at(-1)],src:c.at(-1)};f.push(y),p+=c.at(-1).length-1}else f.push(u)}else f.push(u)}n=f}{let f=[];for(let p=0;p<n.length;p++){let u=n[p];u.type=="v"&&((l=n==null?void 0:n[p+1])==null?void 0:l.type)=="blank"&&((r=n==null?void 0:n[p+2])==null?void 0:r.type)=="str"?(f.push(u),f.push({type:"f",value:"space"})):u.type=="str"&&((t=n==null?void 0:n[p+1])==null?void 0:t.type)=="blank"&&((o=n==null?void 0:n[p+2])==null?void 0:o.type)=="v"?(f.push(u),f.push({type:"f",value:"space"})):f.push(u)}n=f}{let f=[],p=[];for(let u=0;u<n.length;u++){let s=n[u];xn(n==null?void 0:n[u+1])&&!j(s)&&!_(s)&&!C(s)?p.push(s):p.length?(p.push(s),f.push({type:"group1",value:"",children:p}),p=[]):f.push(s)}n=f}{let f=[],p="";for(let u=0;u<n.length;u++){let s=n[u];if(en(s)&&H(n[u+1]))if(p||!p&&s.type=="f"){p+=s.value+".",u++;continue}else f.push(s);else p&&en(s)?(p+=s.value,H(n[u+1])||(f.push({type:"f",value:p}),p="")):f.push(s)}n=f}{const f=[];for(let p=0;p<n.length;p++){const u=n[p];if(u.type==="v"&&T[u.value]&&n[p+1]&&(u.type="f",!(L(n[p+1],"group")&&n[p+1].kh==="()"))){f.push(u),f.push({type:"group",children:[n[p+1]],value:"",kh:"()"}),p++;continue}f.push(u)}n=f}{let f=[];for(let p=0;p<n.length;p++){let u=n[p];const s=n[p+1];if(u.type==="f"&&s&&s.type==="group"){if(s.kh==="()"){u.children=n[p+1].children,f.push(u),p++;continue}else if(s.kh[0]==="("){const a=[];a.push(...s.children),a.push(w(s.kh[1]));for(let c=p+2;c<n.length;c++)if(n[c])if(q(n[c],w(")"))){p=c;break}else a.push(n[c]);u.children=a,f.push(u)}else f.push(u);for(let a in u.children||[])u.children[a].value==="\\"&&u.children[a].type==="v"&&u.children[Number(a)+1]&&(u.children[Number(a)+1].esc=!0)}else f.push(u)}n=f}{const f=[],p=["`","~","!","@","%","*","(",")","-","+","=","[","]","{","}","|",":",";","<",",",">",".","?"];for(let u=0;u<n.length;u++){const s=n[u],a=n[u+1];if(L(a,"group")&&a.kh!="()"&&L(s,"f","str","v")&&!s.value.match(/[0-9]/)&&!_(s)&&!j(s)&&(!(L(s,"f")&&p.includes(s.src)||L(s,"v")&&p.includes(s.value))||s.esc)){f.push({type:"group1",value:"",children:[s,a]}),u++;continue}f.push(s)}n=f}{const f=[];for(let p=0;p<n.length;p++){const u=n[p];if(u.type==="sharp"){if(!u.value)if(((h=n[p+1])==null?void 0:h.type)==="group"){u.children=n[p+1].children;for(let a in u.children)u.children[a].value==="\\"&&u.children[a].type==="v"&&u.children[Number(a)+1]&&(u.children[Number(a)+1].esc=!0);const s=u.children.map(a=>a.value).join("");s.match(/^[0-9\+\-\*\/()]+$/),u.value=s}else console.log("+1",n[p+1]),u.value=(d=n[p+1])==null?void 0:d.value,((i=n[p+2])==null?void 0:i.type)==="f"&&(u.value+=n[p+2].value,p++);f.push(u),p++;continue}else f.push(u)}n=f}{let f=[];for(let p=0;p<n.length;p++){const u=n[p+1],s=n[p];let a=p+1;if(q(u,{type:"f",value:"prime"})){for(;n[a]&&q(n[a],{type:"f",value:"prime"});)a++;const c=a-(p+1);if(!j(s)&&!_(s)&&s.type!="blank")f.push({type:"f",value:"attach",children:[s,A,...P({tr:[{type:"v",value:"'".repeat(c)}]})]});else{f.push(s);for(let y=0;y<c;y++)f.push({type:"f",value:"prime"})}p+=c;continue}f.push(s)}n=f}{let f=[];for(let p of n)p.type!="blank"&&f.push(p);n=f}{let f=[],p=NaN;for(let s=0;s<n.length;s++){const a=n[s];!j(a)&&!_(a)&&((j(n[s+1])||_(n[s+1]))&&!(j(n[s-1])||_(n[s-1]))&&(p||(p=s)),(j(n[s-1])||_(n[s-1]))&&!(j(n[s+1])||_(n[s+1]))&&(f.push([p,s]),p=NaN))}let u=[];for(let s=0;s<n.length;s++){if(s==((m=f==null?void 0:f[0])==null?void 0:m[0])){{let a=n[f[0][1]];for(let c=f[0][1];c>=f[0][0];c--){if(j(n[c-1])&&_(n[c-3])){let y=F([n[c-4]])?{t:x(a),b:x(n[c-2])}:{tr:x(a),br:x(n[c-2])};a={type:"f",value:"attach",children:[n[c-4],A,...P(y)]},c-=4-1;continue}if(_(n[c-1])&&j(n[c-3])){let y=F([n[c-4]])?{t:x(n[c-2]),b:x(a)}:{tr:x(n[c-2]),br:x(a)};a={type:"f",value:"attach",children:[n[c-4],A,...P(y)]},c-=4-1;continue}if(j(n[c-1])){let y=F([n[c-2]])?{t:x(a)}:{tr:x(a)};a={type:"f",value:"attach",children:[n[c-2],A,...P(y)]},c-=2-1;continue}if(_(n[c-1])){let y=F([n[c-2]])?{b:x(a)}:{br:x(a)};a={type:"f",value:"attach",children:[n[c-2],A,...P(y)]},c-=2-1;continue}}u.push(a)}s+=f[0][1]-f[0][0],f=f.slice(1);continue}u.push(n[s])}n=u}{let f=[],p=NaN;for(let s=0;s<n.length;s++){const a=n[s];C(a)||(C(n[s+1])&&!C(n[s-1])&&(p||(p=s)),C(n[s-1])&&!C(n[s+1])&&(f.push([p,s]),p=NaN))}let u=[];for(let s=0;s<n.length;s++){if(s==((v=f==null?void 0:f[0])==null?void 0:v[0])){{let a=n[f[0][0]];for(let c=f[0][0];c<=f[0][1];c++)if(C(n[c+1])){a={type:"f",value:"frac",children:[...x(a),A,...x(n[c+2])]},c+=2-1;continue}console.log(1,a),u.push(a)}s+=f[0][1]-f[0][0],f.splice(0,1);continue}u.push(n[s])}n=u}return n}function rn(n){const e=[[]];for(let i of n.children)q(i,{type:"v",value:","})||q(i,{type:"v",value:";"})?(e.push(i.value),e.push([])):e.at(-1).push(i);const l=[],r=[];for(let i of e)typeof i=="string"?r.push(i):i.find((m,v)=>L(i[v-1],"f","v")&&q(m,{type:"v",value:":"}))?l.push(i):r.push(i);let t=[];for(let i=0;i<r.length;i++){const m=r[i],v=r[i+1];m===","&&v===";"||m===";"&&v===","?(t.push(";"),i++):t.push(r[i])}let o;if(typeof t.at(-1)=="string"&&(t=t.slice(0,-1)),t.includes(";")){let i=_n(t,m=>m===";");i.at(-1)[0].length===0&&(i=i.slice(0,-1)),o=i.map(m=>m.filter(v=>typeof v!="string"))}else o=t.filter(i=>typeof i!="string").map(i=>E(i));let d={};for(let i of l){let m=!1,v="",f=[];for(let p of i){if(q(p,{type:"v",value:":"})){m=!0;continue}m?f.push(p):v+=p.value}d[v]=tn(ln(f))}return{attr:o,dic:d}}function _n(n,e){const l=[[]];for(let r of n)e(r)?l.push([]):l.at(-1).push(r);return l}function on(n){const e=[];for(let l of n)e.push(...l,w(","));return e.slice(0,-1)}function an(n,e="serif"){function l(t){return"abcdefghijklmnopqrstuvwxyz".indexOf(t.toLowerCase())}const r={sans:{num:"𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫",low:"𝖺𝖻𝖼𝖽𝖾𝖿𝗀𝗁𝗂𝗃𝗄𝗅𝗆𝗇𝗈𝗉𝗊𝗋𝗌𝗍𝗎𝗏𝗐𝗑𝗒𝗓",up:"𝖠𝖡𝖢𝖣𝖤𝖥𝖦𝖧𝖨𝖩𝖪𝖫𝖬𝖭𝖮𝖯𝖰𝖱𝖲𝖳𝖴𝖵𝖶𝖷𝖸𝖹"},frak:{low:"𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷",up:"𝔄𝔅ℭ𝔇𝔈𝔉𝔊ℌℑ𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔ℜ𝔖𝔗𝔘𝔙𝔚𝔛𝔜ℨ"},mono:{num:"𝟶𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿",low:"𝚊𝚋𝚌𝚍𝚎𝚏𝚐𝚑𝚒𝚓𝚔𝚕𝚖𝚗𝚘𝚙𝚚𝚛𝚜𝚝𝚞𝚟𝚠𝚡𝚢𝚣",up:"𝙰𝙱𝙲𝙳𝙴𝙵𝙶𝙷𝙸𝙹𝙺𝙻𝙼𝙽𝙾𝙿𝚀𝚁𝚂𝚃𝚄𝚅𝚆𝚇𝚈𝚉"},bb:{num:"𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡",low:"𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫",up:"𝔸𝔹ℂ𝔻𝔼𝔽𝔾ℍ𝕀𝕁𝕂𝕃𝕄ℕ𝕆ℙℚℝ𝕊𝕋𝕌𝕍𝕎𝕏𝕐ℤ"},cal:{low:"𝒶𝒷𝒸𝒹ℯ𝒻ℊ𝒽𝒾𝒿𝓀𝓁𝓂𝓃ℴ𝓅𝓆𝓇𝓈𝓉𝓊𝓋𝓌𝓍𝓎𝓏",up:"𝒜ℬ𝒞𝒟ℰℱ𝒢ℋℐ𝒥𝒦ℒℳ𝒩𝒪𝒫𝒬ℛ𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵"}};return e==="serif"||(n=n.replace(/[0-9]/g,t=>[...r[e].num][t]),n=n.replace(/[a-z]/g,t=>[...r[e].low][l(t)]),n=n.replace(/[A-Z]/g,t=>[...r[e].up][l(t)])),n}function g(n,e){let l=document.createDocumentFragment();n=ln(n);{let r=!1;for(let t in n){const o=n[t];if(nn(o)){r=!0;break}}if(r){const t=[[]];for(let o=0;o<n.length;o++){const h=n[o];nn(h)?t.push([]):t.at(-1).push(h)}return J(t)}}n=tn(n);{let r=[];for(let t of n)t.type=="v"&&t.value=="&"&&!t.esc||r.push(t);n=r}{let r=[];for(let t of n)t.type=="group1"?r.push(...t.children):r.push(t);n=r}console.log("ast3",structuredClone(n));for(let r in n){let t=Number(r),o=n[t];if(o.type==="f"){if(o.children&&(o.kh==="()"||!o.kh)){let{attr:h,dic:d}=rn(o);if(k[o.value]){let i=k[o.value](h,d,e);l.append(i)}else if(z[o.value]){let i=b("mi",z[o.value]);l.append(i,g(qn(o.children),e))}else if(T[o.value]){let i=T[o.value](h,d,e);l.append(i)}}else if(z[o.value]){let h,d=null;const i={" ":"0.36em"," ":"0.5em"," ":"1em"," ":"0.333em"," ":"0.25em"," ":"0.166em"," ":"0.222em"," ":"1ch"," ":"0.27em"," ":"0.17em"," ":"0.09em"};z[o.value].match(/[a-zA-Z\u0391-\u03C9]/)?h="mi":i[z[o.value]]?(h="mspace",d={width:i[z[o.value]]}):h="mo";let m=b(h,z[o.value],d);l.append(m)}else if(k[o.value]){let h=k[o.value](null,null,e);l.append(h)}else if(T[o.value]){let h=T[o.value]([o.children],null,e);l.append(h)}}if(o.type=="str"){let h=b("ms",an(o.value,e));l.append(h)}if(o.type==="v"||o.type==="sharp"){let h,d=o.value;o.value.match(/[0-9.]+/)?h="mn":o.value.match(/[a-zA-Z\u0391-\u03C9]/)?h="mi":(o.value.match(/^'+$/)&&(o.esc||(d=o.value.replaceAll("'",z.prime))),h="mo"),o.type==="sharp"&&o.value.startsWith("emoji.")&&(h="mi",d=hn[o.value.replace("emoji.","")]);let i=b(h,an(d,e));l.append(i)}o.type==="group"&&l.append(k.lr([[o]],null,e))}return l}var Z={emoji:null};function An(n){for(let e in n)Z[e]&&(Z[e]=n[e])}function sn(n,e){let l=dn(n);console.log("ast1",l);let r=b("math");e||r.setAttribute("display","block");let t=g(l);return r.append(t),r}function zn(n){return sn(n).outerHTML}const Nn={lan:"0.11.1",symbol:"0.11.1"};N.init=An,N.toMML=sn,N.toMMLHTML=zn,N.version=Nn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
776
2291
  //# sourceMappingURL=xmmath.umd.js.map