markstream-vue 2.0.11 → 2.0.13
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.
- package/dist/CodeBlockNode.js +1 -1
- package/dist/diagramHeight.js +1 -1
- package/dist/exports.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.px.css +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/index10.js +1 -1
- package/dist/index7.js +1 -1
- package/dist/index9.js +1 -1
- package/dist/layout.js +1 -0
- package/dist/mermaidSequenceSemicolons.js +1 -1
- package/dist/tailwind.js +0 -0
- package/package.json +4 -3
package/dist/layout.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(n,t,r)=>t in n?e(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r;const i=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],u=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function l(e){if(e<=255)return i[e];let n=0,t=u.length-1;for(;n<=t;){const r=n+t>>1,s=u[r];if(e<s[0])t=r-1;else{if(!(e>s[1]))return s[2];n=r+1}}return"L"}function o(e,n,t,r){let s=0;for(let o=t;o<r;o++){const n=e[o];if("L"===n){s=0;break}if("R"===n||"AL"===n){s=1;break}}const i=1&s?"R":"L",u=i;let l=u;for(let o=t;o<r;o++)"NSM"===e[o]?e[o]=l:l=e[o];l=u;for(let o=t;o<r;o++){const n=e[o];"EN"===n?e[o]="AL"===l?"AN":"EN":"R"!==n&&"L"!==n&&"AL"!==n||(l=n)}for(let o=t;o<r;o++)"AL"===e[o]&&(e[o]="R");for(let o=t+1;o<r-1;o++)"ES"===e[o]&&"EN"===e[o-1]&&"EN"===e[o+1]&&(e[o]="EN"),"CS"!==e[o]||"EN"!==e[o-1]&&"AN"!==e[o-1]||e[o+1]!==e[o-1]||(e[o]=e[o-1]);for(let o=t;o<r;o++){if("EN"!==e[o])continue;let n;for(n=o-1;n>=t&&"ET"===e[n];n--)e[n]="EN";for(n=o+1;n<r&&"ET"===e[n];n++)e[n]="EN"}for(let o=t;o<r;o++){const n=e[o];"WS"!==n&&"ES"!==n&&"ET"!==n&&"CS"!==n||(e[o]="ON")}l=u;for(let o=t;o<r;o++){const n=e[o];"EN"===n?e[o]="L"===l?"L":"EN":"R"!==n&&"L"!==n||(l=n)}for(let o=t;o<r;o++){if("ON"!==e[o])continue;let n=o+1;for(;n<r&&"ON"===e[n];)n++;const s="L"!==(o>t?e[o-1]:u)?"R":"L";if(s===("L"!==(n<r?e[n]:u)?"R":"L"))for(let t=o;t<n;t++)e[t]=s;o=n-1}for(let o=t;o<r;o++)"ON"===e[o]&&(e[o]=i);for(let o=t;o<r;o++){const t=e[o];let r=s;1&s?"L"!==t&&"AN"!==t&&"EN"!==t||r++:"R"===t?r++:"AN"!==t&&"EN"!==t||(r+=2),n[o]=r}return s}const N=/[ \t\n\r\f]+/g,c=/[\t\n\r\f]| {2,}|^ | $/;let f=null;function a(){return null===f&&(f=new Intl.Segmenter(void 0,{granularity:"grapheme"})),f}let S,d=null;const h=new RegExp("\\p{Script=Arabic}","u"),M=new RegExp("\\p{M}","u"),g=new RegExp("\\p{Nd}","u");function p(e){return h.test(e)}const O=/[\u3000-\u30FF\u3130-\u318F\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF00-\uFFEF\u{20000}-\u{2A6DF}\u{2A700}-\u{2EE5D}\u{2F800}-\u{2FA1F}\u{30000}-\u{33479}]/u;function x(e){return O.test(e)}const L=/* @__PURE__ */new Set([" "," ","","\ufeff"]),m=/* @__PURE__ */new Set(["-","‐","–","—"]);function k(e,n){return!(function(e){const n=P(e);return null!==n&&L.has(n)}(e)||n&&(function(e){const n=P(e);return null!==n&&(A.has(n)||b.has(n))}(e)||function(e){const n=P(e);return null!==n&&m.has(n)}(e)))}const A=/* @__PURE__ */new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),E=/* @__PURE__ */new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),I=/* @__PURE__ */new Set(["'","’"]),b=/* @__PURE__ */new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),B=/* @__PURE__ */new Set([":",".","،","؛"]),v=/* @__PURE__ */new Set(["၏"]),w=/* @__PURE__ */new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function C(e){if(W(e))return!0;let n=!1;for(const t of e)if(b.has(t)||j(t))n=!0;else if(!n||!M.test(t))return!1;return n}function F(e){for(const n of e)if(!A.has(n)&&!b.has(n))return!1;return e.length>0}function R(e){if(W(e))return!0;for(const n of e)if(!(E.has(n)||I.has(n)||M.test(n)||j(n)))return!1;return e.length>0}function W(e){let n=!1;for(const t of e)if("\\"!==t&&!M.test(t)){if(!(E.has(t)||b.has(t)||I.has(t)))return!1;n=!0}return n}function y(e,n){const t=n-1;if(t<=0)return Math.max(t,0);const r=e.charCodeAt(t);if(r<56320||r>57343)return t;const s=t-1;if(s<0)return t;const i=e.charCodeAt(s);return i>=55296&&i<=56319?s:t}function P(e){if(0===e.length)return null;const n=y(e,e.length);return e.slice(n)}function T(e,n=e.length){for(;n>0;){const t=y(e,n),r=e.slice(t,n);if(!M.test(r))return r;n=t}return null}const z=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function j(e){const n=e.codePointAt(0);return void 0!==n&&function(e,n){for(let t=0;t<n.length;t+=2)if(e>=n[t]&&e<=n[t+1])return!0;return!1}(n,z)}function _(e){const n=function(e){for(const n of e)if(!M.test(n))return n;return null}(e);return null!==n&&g.test(n)}function G(e){let n=e.length;for(;n>0;){const t=y(e,n),r=e.slice(t,n);if(!(M.test(r)||E.has(r)||I.has(r)))break;n=t}return n<=0||n===e.length?null:{head:e.slice(0,n),tail:e.slice(n)}}function K(e,n,t){return"text"!==t||n||1!==e.length||"-"===e||"—"===e?null:e}function D(e,n){return e&&null!==n&&B.has(n)}function H(e){const n=P(e);return null!==n&&v.has(n)}function $(e){if(e.length<2||" "!==e[0])return null;const n=e.slice(1);return new RegExp("^\\p{M}+$","u").test(n)?{space:" ",marks:n}:null}function J(e){let n=e.length;for(;n>0;){const t=y(e,n),r=e.slice(t,n);if(w.has(r))return!0;if(!b.has(r))return!1;n=t}return!1}function Q(e,n){if("pre-wrap"===n){if(" "===e)return"preserved-space";if("\t"===e)return"tab";if("\n"===e)return"hard-break"}return" "===e?"space":" "===e||" "===e||""===e||"\ufeff"===e?"glue":""===e?"zero-width-break":""===e?"soft-hyphen":"text"}const Z=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function V(e){return 1===e.length?e[0]:e.join("")}function Y(e,n){const t=[];for(let r=e.length-1;r>=0;r--)t.push(e[r]);return t.push(n),V(t)}function q(e,n,t,r){if(!Z.test(e))return[{text:e,isWordLike:n,kind:"text",start:t}];const s=[];let i=null,u=0,l=!1,o=0;for(const N of e){const c=Q(N,r),f="text"===c&&n;null===i||c!==i||f!==l?(null!==i&&s.push({text:e.slice(u,o),isWordLike:l,kind:i,start:t+u}),i=c,u=o,l=f,o+=N.length):o+=N.length}return null!==i&&s.push({text:e.slice(u),isWordLike:l,kind:i,start:t+u}),s}function U(e){return"space"===e||"preserved-space"===e||"zero-width-break"===e||"hard-break"===e}const X=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function ee(e,n){const t=e.texts[n];return!!t.startsWith("www.")||X.test(t)&&n+1<e.len&&"text"===e.kinds[n+1]&&"//"===e.texts[n+1]}function ne(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}const te=/* @__PURE__ */new Set([":","-","/","×",",",".","+","–","—"]),re=/[\p{P}\p{S}\p{Co}]/u,se=new RegExp("\\p{Emoji_Presentation}","u"),ie=/* @__PURE__ */new Set(["?","֊","-","‐","‒","–","—","…","‼","‽","⁉"]);function ue(e){const n=e.charCodeAt(0);return n<128?function(e){return e>=33&&e<=47&&45!==e||e>=58&&e<=64&&63!==e||e>=91&&e<=96||e>=123&&e<=126}(n):!ie.has(e)&&!se.test(e)&&re.test(e)}function le(e){let n=!1;for(const t of e)if(!M.test(t)){if(!ue(t))return!1;n=!0}return n}const oe=/[A-Za-z#&*<=>@^_`~]/;function Ne(e,n){return e.charCodeAt(0)<128&&n.charCodeAt(0)<128}function ce(e,n,t){if(!t.geckoAsciiLineBreaks||n<=0||n>=e.length)return null;const r=T(e,n),s=String.fromCodePoint(e.codePointAt(n));if(null===r||!Ne(r,s))return null;const i=j(r),u=j(s);return i||u?!!(")"===s||"]"===s||"}"===s||"!,.:;?/".includes(s)||"([{".includes(r)||'"'===r||"'"===r||'"'===s||"'"===s||"|"===s||"-"===s||i&&oe.test(s)||oe.test(r)&&u||u&&(")]}".includes(r)||/[0-9]/.test(r))||i&&("([{".includes(s)||/[0-9]/.test(s))):null}function fe(e,n,t,r=e.length){const s=n[0];if(void 0===s||!"([{".includes(s))return null;const i=T(e,r);return null===i?null:t.geckoAsciiLineBreaks&&Ne(i,s)?oe.test(i)||g.test(i)||"\"'([{".includes(i)||j(i):i.charCodeAt(0)>=128?!(x(i)||!/[\p{L}\p{N}]/u.test(i))||null:/[A-Za-z0-9]/.test(i)||"$'(/<@[^_`{".includes(i)}function ae(e,n,t,r,s){if("-"===t[0]&&x(e))return!0;if(x(e)||x(t))return!1;const i=fe(e,t,s);if(null!==i)return i;const u=!n&&le(e),l=!r&&le(t),o=function(e){const n=T(e);return null!==n&&j(n)}(e),N=(n||o)&&function(e){for(let n=e.length;n>0;){const t=y(e,n),r=e.slice(t,n);if(!M.test(r))return ue(r)||j(r);n=t}return!1}(e);return!!(u||l||N)&&(n||u||o)&&(r||l)}function Se(e){for(const n of e)if(g.test(n))return!0;return!1}function de(e){if(0===e.length)return!1;for(const n of e)if(!g.test(n)&&!te.has(n))return!1;return!0}function he(e,n){const t=e.charCodeAt(n+1);if(t<128){if(t<48||t>57)return!1}else{const t=e.codePointAt(n+1);if(void 0===t||!g.test(String.fromCodePoint(t)))return!1}for(let r=n;r>0;){const n=y(e,r),t=e.slice(n,r);if(!M.test(t))return x(t)||!/[\p{L}\p{N}]/u.test(t);r=n}return!0}function Me(e,n,t){const r=function(e,n){const t=[];let r=0,s=0,i=!1,u=!1,l=!1,o=!1,N=!1;function c(){s!==r&&(t.push({text:e.slice(r,s),start:r,overflow:i?o?"grapheme":"none":"word-like"}),r=s,i=!1,u=!1,l=!1,o=!1,N=!1)}function f(e,n,t){r=n,s=n+e.length,i=t,o="-"===e,u=J(e),l=E.has(e)}function S(e,n){s+=e.length,i=i||n,o=o||"-"===e;const t=J(e);u=1===e.length&&b.has(e)&&u||t,l=!1}for(const d of a().segment(e)){const t=d.segment,o=x(t);if(s===r){f(t,d.index,o);continue}const a="-"===t&&i;a&&he(e,d.index)&&(N=!0),l||A.has(t)||b.has(t)||a||N&&!o||n.carryCJKAfterClosingQuote&&o&&u?S(t,o):i||o?(c(),f(t,d.index,o)):S(t,o)}return c(),t}(e,n);return"keep-all"===t?function(e,n,t){if(n.length<=1)return n;const r=[];let s=-1,i=!1;function u(t){if(!(s<0)){if(i)s+1===t?r.push(n[s]):function(t,s){const i=n[t].start,u=s<n.length?n[s].start:e.length;r.push({text:e.slice(i,u),start:i,overflow:"word-like"})}(s,t);else for(let e=s;e<t;e++)r.push(n[e]);s=-1,i=!1}}for(let l=0;l<n.length;l++){const r=n[l];s>=0&&(!k(n[l-1].text,t.breakKeepAllAfterPunctuation)||!1===ce(e,r.start,t))&&u(l),s<0&&(s=l),i=i||x(r.text)}return u(n.length),r}(e,r,n):r}function ge(e){return"-"===e||"֊"===e||"‐"===e||"‒"===e||"–"===e||"—"===e}function pe(e){if(0===e.length||new RegExp("\\p{Cf}","u").test(e))return!1;for(const{segment:n}of a().segment(e)){const e=String.fromCodePoint(n.codePointAt(0));if(!/[\p{P}\p{S}]/u.test(e)||se.test(e)||n.includes("️")||new RegExp("\\p{Emoji_Modifier}","u").test(e))return!1}return!0}function Oe(e,i,u="normal",l="normal"){const o="pre-wrap"===u?function(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,"\n").replace(/[\r\f]/g,"\n"):e}(e):function(e){if(!c.test(e))return e;let n=e.replace(N," ");return 32===n.charCodeAt(0)&&(n=n.slice(1)),n.length>0&&32===n.charCodeAt(n.length-1)&&(n=n.slice(0,-1)),n}(e);if(0===o.length)return{normalized:o,len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const f=function(e,n,t){var r,s,i,u,l;const o=(null===d&&(d=new Intl.Segmenter(S,{granularity:"word"})),d);let N=0;const c=[],f=[],a=[],h=[];let M=!1,g=0,O=0,L=!1,m="text",k=null,A=!1,E=!1,I=!1,b=!1,B=!1;for(const S of o.segment(e))for(const i of q(S.segment,null!=(r=S.isWordLike)&&r,S.index,t)){const t="text"===i.kind,r=K(i.text,i.isWordLike,i.kind),u=x(i.text),l=p(i.text),o=P(i.text),S=J(i.text),d=H(i.text),v=i.start+i.text.length,w=null!=(s=ce(e,i.start,n))?s:A||u?null:fe(e,i.text,n,i.start);let R=!1;if(n.carryCJKAfterClosingQuote&&t&&M&&"text"===m&&u&&A&&I)R=!0;else if(t&&M&&"text"===m&&F(i.text)&&A)R=!0;else if(t&&M&&"text"===m&&b)R=!0;else if(t&&M&&"text"===m&&i.isWordLike&&l&&B)R=!0;else{if(null!==r&&M&&"text"===m&&k===r&&!1!==w){O=v;continue}t&&!i.isWordLike&&M&&"text"===m&&!A&&(C(i.text)||"-"===i.text&&L)&&(R=!0)}t&&M&&"text"===m&&null!==w&&(R=w),R?(O=v,L=L||i.isWordLike,k=null,A=A||u,E=E||l,I=S,b=d,B=D(E,o)):(M&&(c[N]=e.slice(g,O),f[N]=L,a[N]=m,h[N]=g,N++),M=!0,g=i.start,O=v,L=i.isWordLike,m=i.kind,k=r,A=u,E=l,I=S,b=d,B=D(l,o))}M&&(c[N]=e.slice(g,O),f[N]=L,a[N]=m,h[N]=g,N++);for(let S=1;S<N;S++)"text"!==a[S]||f[S]||!W(c[S])||"text"!==a[S-1]||x(c[S-1])||!1===(null!=(i=ce(e,h[S],n))?i:fe(e,c[S],n,h[S]))||(c[S-1]+=c[S],f[S-1]=f[S-1]||f[S],c[S]="");let v=-1,w=null;for(let S=N-1;S>=0;S--){const t=c[S];if(0===t.length)continue;const r=null!=(u=null==w?void 0:w.at(-1))?u:v>=0?c[v]:null;"text"!==a[S]||f[S]||null===r||"text"!==a[v]||!((null!=(l=ce(e,h[S]+t.length,n))?l:R(t)&&!1!==fe(t,r,n))||"-"===t&&_(r))?(null!==w&&(c[v]=Y(w,c[v]),w=null),v=S):(null===w&&(w=[]),w.push(t),h[v]=h[S],c[S]="")}null!==w&&(c[v]=Y(w,c[v]));let y=0;for(let S=0;S<N;S++){const e=c[S];0!==e.length&&(y!==S&&(c[y]=e,f[y]=f[S],a[y]=a[S],h[y]=h[S]),y++)}c.length=y,f.length=y,a.length=y,h.length=y;const T=function(e,n,t){var r;const s=[],i=[],u=[],l=[];let o=0;for(;o<e.len;){const N=e.texts[o],c=e.kinds[o],f=e.isWordLike[o];if("text"===c){const c=[N];let a=o+1,S=f;for(;a<e.len&&"text"===e.kinds[a]&&(null!=(r=ce(n,e.starts[a],t))?r:ae(e.texts[a-1],e.isWordLike[a-1],e.texts[a],e.isWordLike[a],t));){const n=e.texts[a];c.push(n),S=S||e.isWordLike[a],a++}if(a>o+1){s.push(V(c)),i.push(S),u.push("text"),l.push(e.starts[o]),o=a;continue}}s.push(N),i.push(f),u.push(c),l.push(e.starts[o]),o++}return{len:s.length,texts:s,isWordLike:i,kinds:u,starts:l}}(function(e,n,t){const r=[],s=[],i=[],u=[];function l(e,n){if(e.includes("-")){const t=e.split("-");let l=t.length>1;for(let e=0;e<t.length;e++){const n=t[e];if(!l)break;0!==n.length&&Se(n)&&de(n)||(l=!1)}if(l){let e=0;for(let l=0;l<t.length;l++){const o=t[l],N=l<t.length-1?`${o}-`:o;r.push(N),s.push(!0),i.push("text"),u.push(n+e),e+=N.length}return}}r.push(e),s.push(!0),i.push("text"),u.push(n)}for(let o=0;o<e.len;o++){const N=e.texts[o],c=e.kinds[o];if("text"===c&&de(N)&&Se(N)){const r=[N];let s=o+1;for(;s<e.len&&"text"===e.kinds[s]&&de(e.texts[s])&&!1!==ce(n,e.starts[s],t);)r.push(e.texts[s]),s++;l(V(r),e.starts[o]),o=s-1;continue}r.push(N),s.push(e.isWordLike[o]),i.push(c),u.push(e.starts[o])}return{len:r.length,texts:r,isWordLike:s,kinds:i,starts:u}}(function(e,n,t){const r=[],s=[],i=[],u=[];for(let l=0;l<e.len;l++){const o=e.starts[l];let N=e.texts[l],c=e.isWordLike[l];const f=e.kinds[l];let a=-1;if("text"===f&&ee(e,l)){const r=[N];let s=l+1;for(;s<e.len&&!U(e.kinds[s])&&!1!==ce(n,e.starts[s],t);){a<0&&ee(e,s)&&(a=e.starts[s]);const n=e.texts[s];if(r.push(n),c=!0,s++,n.includes("?"))break}N=V(r),l=s-1}if(r.push(N),s.push(c),i.push(f),u.push(o),!ne(N))continue;const S=l+1;if(S>=e.len||U(e.kinds[S]))continue;const d=[],h=a<0?e.starts[S]:a;let M=S;for(;M<e.len&&!U(e.kinds[M])&&!1!==ce(n,e.starts[M],t);)d.push(e.texts[M]),M++;d.length>0&&(r.push(V(d)),s.push(!0),i.push("text"),u.push(h),l=M-1)}return{len:r.length,texts:r,isWordLike:s,kinds:i,starts:u}}(function(e){const n=[],t=[],r=[],s=[];let i=0;for(;i<e.len;){const u=[e.texts[i]];let l=e.isWordLike[i],o=e.kinds[i],N=e.starts[i];if("glue"===o){const c=[u[0]],f=N;for(i++;i<e.len&&"glue"===e.kinds[i];)c.push(e.texts[i]),i++;const a=V(c);if(!(i<e.len&&"text"===e.kinds[i])){n.push(a),t.push(!1),r.push("glue"),s.push(f);continue}u[0]=a,u.push(e.texts[i]),l=e.isWordLike[i],o="text",N=f,i++}else i++;if("text"===o)for(;i<e.len&&"glue"===e.kinds[i];){const n=[];for(;i<e.len&&"glue"===e.kinds[i];)n.push(e.texts[i]),i++;const t=V(n);i<e.len&&"text"===e.kinds[i]?(u.push(t,e.texts[i]),l=l||e.isWordLike[i],i++):u.push(t)}n.push(V(u)),t.push(l),r.push(o),s.push(N)}return{len:n.length,texts:n,isWordLike:t,kinds:r,starts:s}}({len:y,texts:c,isWordLike:f,kinds:a,starts:h}),e,n),e,n),e,n);!function(e){const{texts:n,kinds:t,starts:r}=e;for(let s=0;s<n.length-1;s++){if("text"!==t[s]||"text"!==t[s+1])continue;if(!x(n[s])||!x(n[s+1]))continue;const e=G(n[s]);null!==e&&(n[s]=e.head,n[s+1]=e.tail+n[s+1],r[s+1]=r[s]+e.head.length)}}(T);for(let S=0;S<T.len-1;S++){const e=$(T.texts[S]);null!==e&&("space"!==T.kinds[S]&&"preserved-space"!==T.kinds[S]||"text"!==T.kinds[S+1]||!p(T.texts[S+1])||(T.texts[S]=e.space,T.isWordLike[S]=!1,T.kinds[S]="preserved-space"===T.kinds[S]?"preserved-space":"space",T.texts[S+1]=e.marks+T.texts[S+1],T.starts[S+1]=T.starts[S]+e.space.length))}return T}(o,i,u);return((e,i)=>{for(var u in i||(i={}))t.call(i,u)&&s(e,u,i[u]);if(n)for(var u of n(i))r.call(i,u)&&s(e,u,i[u]);return e})({normalized:o},"keep-all"===l?function(e,n,t){if(n.len<=1)return n;const r=[],s=[],i=[],u=[];let l=-1,o=!1;function N(e){r.push(n.texts[e]),s.push(n.isWordLike[e]),i.push("text"),u.push(n.starts[e])}function c(t){if(!(l<0)){if(o)l+1===t?N(l):function(t,l){let o=!1;for(let e=t;e<l;e++)o=o||n.isWordLike[e];const N=n.starts[t],c=l<n.len?n.starts[l]:e.length;r.push(e.slice(N,c)),s.push(o),i.push("text"),u.push(N)}(l,t);else for(let e=l;e<t;e++)N(e);l=-1,o=!1}}for(let f=0;f<n.len;f++){const N=n.texts[f],a=n.kinds[f];"text"!==a?(c(f),r.push(N),s.push(n.isWordLike[f]),i.push(a),u.push(n.starts[f])):(l>=0&&(!k(n.texts[f-1],t.breakKeepAllAfterPunctuation)||!1===ce(e,n.starts[f],t))&&c(f),l<0&&(l=f),o=o||x(N))}return c(n.len),{len:r.length,texts:r,isWordLike:s,kinds:i,starts:u}}(o,f,i):f)}let xe=null;const Le=/* @__PURE__ */new Map;let me=null;const ke=new RegExp("\\p{Emoji_Presentation}","u"),Ae=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,Ee=/* @__PURE__ */new Map;function Ie(){if(null!==xe)return xe;if("undefined"!=typeof OffscreenCanvas)return xe=new OffscreenCanvas(1,1).getContext("2d"),xe;if("undefined"!=typeof document)return xe=document.createElement("canvas").getContext("2d"),xe;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function be(e,n){let t=n.get(e);return void 0===t&&(t={width:Ie().measureText(e).width},n.set(e,t)),t}function Be(){if(null!==me)return me;if("undefined"==typeof navigator)return me={geckoAsciiLineBreaks:!1,lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1},me;const e=navigator.userAgent,n="Apple Computer, Inc."===navigator.vendor&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),t=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/"),r=e.includes("Firefox/")&&!e.includes("FxiOS/");return me={geckoAsciiLineBreaks:r,lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:t,breakKeepAllAfterPunctuation:!n,preferPrefixWidthsForBreakableRuns:n},me}function ve(e){return ke.test(e)||e.includes("️")}function we(e){let n=Ee.get(e);if(void 0!==n)return n;const t=function(e){const n=e.match(/(?:^|\D)(\d+(?:\.\d+)?)\s*px/);return n?parseFloat(n[1]):16}(e),r=Ie();r.font=e;const s=r.measureText("😀").width;if(n=0,s>t+.5&&"undefined"!=typeof document&&null!==document.body){const t=document.createElement("span");t.style.font=e,t.style.display="inline-block",t.style.visibility="hidden",t.style.position="absolute",t.textContent="😀",document.body.appendChild(t);const r=t.getBoundingClientRect().width;document.body.removeChild(t),s-r>.5&&(n=s-r)}return Ee.set(e,n),n}function Ce(e,n,t){return 0===t?n.width:n.width-function(e,n){return void 0===n.emojiCount&&(n.emojiCount=function(e){let n=0;const t=a();for(const r of t.segment(e))ve(r.segment)&&n++;return n}(e)),n.emojiCount}(e,n)*t}function Fe(e,n,t){return 0===t&&n>0&&n<e.length&&"soft-hyphen"===e[n-1]}function Re(e){return"space"===e||"zero-width-break"===e||"soft-hyphen"===e}function We(e){return"space"===e||"preserved-space"===e||"tab"===e||"zero-width-break"===e||"soft-hyphen"===e}function ye(e,n,t=e.widths.length){for(;n<t&&Re(e.kinds[n]);)n++;return n}function Pe(e,n){if(n<=0)return 0;const t=e%n;return Math.abs(t)<=1e-6?n:n-t}function Te(e,n,t){return 0!==e.letterSpacing&&n&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function ze(e,n){return 0===n?0:e+n}function je(e,n,t,r,s){return ze(r,"tab"===n?s+function(e,n){return 0!==e.letterSpacing&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}(e,t):e.lineEndFitAdvances[t])}function _e(e,n,t,r){return ze(r,"tab"===n?0:e.lineEndFitAdvances[t])}function Ge(e,n,t,r,s){return ze(r,"tab"===n?s:e.lineEndPaintAdvances[t])}function Ke(e,n,t){return 0!==e.letterSpacing&&n?t+e.letterSpacing:t}function De(e,n){return 0===e.letterSpacing?n:n+e.letterSpacing}function He(e,n,t){let r=n;if(r>=e.length||e[r]>=t)return r;let s=e.length;for(r++;r<s;){const n=Math.floor((r+s)/2);e[n]<t?r=n+1:s=n}return r}function $e(e,n,t){let r=t.segmentIndex;if(t.graphemeIndex>0)return n;for(let s=n;s<e.chunks.length;s++){const n=e.chunks[s];if(n.startSegmentIndex===n.endSegmentIndex&&r===n.startSegmentIndex)return t.segmentIndex=r,t.graphemeIndex=0,s;if(r<n.startSegmentIndex&&(r=n.startSegmentIndex),r=ye(e,r,n.endSegmentIndex),r<n.endSegmentIndex)return t.segmentIndex=r,t.graphemeIndex=0,s;if(n.consumedEndSegmentIndex>=e.widths.length)return-1;r=n.consumedEndSegmentIndex,t.segmentIndex=r,t.graphemeIndex=0}return-1}function Je(e,n){if(n.segmentIndex>=e.widths.length)return-1;const t=function(e,n){let t=0,r=e.chunks.length;for(;t<r;){const s=Math.floor((t+r)/2);n<e.chunks[s].consumedEndSegmentIndex?r=s:t=s+1}return t<e.chunks.length?t:-1}(e,n.segmentIndex);return t<0?-1:$e(e,t,n)}function Qe(e,n,t){if(t.segmentIndex>=e.widths.length)return-1;let r=n;for(;r<e.chunks.length&&t.segmentIndex>=e.chunks[r].consumedEndSegmentIndex;)r++;return r>=e.chunks.length?-1:$e(e,r,t)}function Ze(e,n,t){if(e.simpleLineWalkFastPath)return function(e,n,t){const{widths:r,kinds:s,breakableFitAdvances:i,breakablePreferredBreaks:u}=e;if(0===r.length)return 0;const l=n+Be().lineFitEpsilon;let o=0,N=0,c=!1,f=0,a=0,S=0,d=0,h=-1,M=0;function g(e=S,n=d,r=N){o++,null==t||t(r,f,a,e,n),N=0,c=!1,h=-1,M=0}function p(e,n){c=!0,f=e,a=0,S=e+1,d=0,N=n}function O(e,n,t){c=!0,f=e,a=n,S=e,d=n+1,N=t}function x(e,n){c?(N+=n,S=e+1,d=0):p(e,n)}function L(e,n){var t;const r=i[e],s=null!=(t=u[e])?t:null;let o=null===s?-1:He(s,0,n+1),f=-1,a=0,h=n;for(;h<r.length;){const t=r[h];if(c)if(N+t>l){if(null!==s&&f>n){g(e,f,a),h=f,o=He(s,o,h+1),f=-1,a=0;continue}g(),O(e,h,t)}else N+=t,S=e,d=h+1;else O(e,h,t);const i=h+1;null!==s&&s[o]===i&&(f=i,a=N,o++),h++}c&&S===e&&d===r.length&&(S=e+1,d=0)}let m=0;for(;m<r.length&&(c||(m=ye(e,m),!(m>=r.length)));){const e=r[m],n=We(s[m]);if(c)if(N+e>l){if(n){x(m,e),g(m+1,0,N-e),m++;continue}if(h>=0){if(S>h||S===h&&d>0){g();continue}g(h,0,M);continue}if(e>l&&null!==i[m]){g(),L(m,0),m++;continue}g()}else x(m,e),n&&(h=m+1,M=N-e),m++;else e>l&&null!==i[m]?L(m,0):p(m,e),n&&(h=m+1,M=N-e),m++}return c&&g(),o}(e,n,t);const r={segmentIndex:0,graphemeIndex:0};return Ve(e,r,Je(e,r),n,t).lineCount}function Ve(e,n,t,r,s,i=Number.POSITIVE_INFINITY){const{widths:u,kinds:l,breakableFitAdvances:o,breakablePreferredBreaks:N,discretionaryHyphenWidth:c}=e,f=r+Be().lineFitEpsilon;let a,S,d,h,M,g,p,O,x,L;function m(t=M,r=g,s=function(){return"soft-hyphen"===L&&p===M&&0===g?x:d}()){return h?(n.segmentIndex=t,n.graphemeIndex=r,function(e,n,t,r,s,i){return n+function(e,n,t,r,s){if(0===e.letterSpacing)return 0;if(s>0)return e.spacingGraphemeCounts[r]>0?e.letterSpacing:0;if(Fe(e.kinds,r,s))return 0;for(let i=r-1;i>=n;i--){const r=e.kinds[i];if("space"!==r&&"zero-width-break"!==r&&"hard-break"!==r&&"soft-hyphen"!==r)return i===n&&t>0||e.spacingGraphemeCounts[i]>0?e.letterSpacing:0}return 0}(e,t,r,s,i)}(e,s,a,S,t,r)):null}function k(e,n){h=!0,M=e+1,g=0,d=n}function A(e,n,t){h=!0,M=e,g=n+1,d=t}function E(e,n){h?(d+=n,M=e+1,g=0):k(e,n)}function I(n,t,r,s,i,u){if(!t)return;const l=_e(e,n,r,i),o=Ge(e,n,r,i,s);p=r+1,O=d-u+l,x=d-u+o,L=n}function b(n,t){var r;const s=o[n],i=null!=(r=N[n])?r:null;let u=null===i?-1:He(i,0,t+1),l=-1,c=0;for(let o=t;o<s.length;o++){const r=s[o];if(h){const s=Ke(e,!0,r),u=d+s;if(De(e,u)>f)return null!==i&&l>t?m(n,l,c):m();d=u,M=n,g=o+1}else A(n,o,r);const N=o+1;null!==i&&i[u]===N&&(l=N,c=d,u++)}return h&&M===n&&g===s.length&&(M=n+1,g=0),null}let B=0,v=null;for(;t>=0&&B<i;){a=n.segmentIndex,S=n.graphemeIndex,d=0,h=!1,M=n.segmentIndex,g=n.graphemeIndex,p=-1,O=0,x=0,L=null;const r=e.chunks[t];let N=null;if(r.startSegmentIndex===r.endSegmentIndex)n.segmentIndex=r.consumedEndSegmentIndex,n.graphemeIndex=0,N=0;else{e:for(let t=n.segmentIndex;t<r.endSegmentIndex;t++){const s=l[t],i=We(s),a=t===n.segmentIndex?n.graphemeIndex:0,S=Te(e,h,t),A="tab"===s?Pe(d+S,e.tabStopAdvance):u[t],B=S+A,v=je(e,s,t,S,A);if("soft-hyphen"!==s||0!==a)if(h){if(d+v>f){const n=d+_e(e,s,t,S),r=d+Ge(e,s,t,S,A);if(i&&n<=f){E(t,B),N=m(t+1,0,r);break e}if(p>=0&&O<=f){if(M>p||M===p&&g>0){N=m();break e}N=m(p,0,x);break e}N=m();break e}E(t,B),I(s,i,t,A,S,B)}else{if(a>0){const e=b(t,a);if(null!==e){N=e;break e}}else if(v>f&&null!==o[t]){const e=b(t,0);if(null!==e){N=e;break e}}else k(t,A);I(s,i,t,A,S,B)}else h&&(M=t+1,g=0,t+1<r.endSegmentIndex&&(p=t+1,O=d+c,x=d+c,L=s))}null===N&&(N=p===r.consumedEndSegmentIndex&&0===g?m(r.consumedEndSegmentIndex,0,x):m(r.consumedEndSegmentIndex,0,d))}if(null===N)break;v=N,B++,null==s||s(N,a,S,n.segmentIndex,n.graphemeIndex),B<i&&(t=Qe(e,t,n))}return{lineCount:B,lastLineWidth:v}}function Ye(e,n,t,r){return e.simpleLineWalkFastPath?function(e,n,t){var r;const{widths:s,kinds:i,breakableFitAdvances:u,breakablePreferredBreaks:l}=e,o=t+Be().lineFitEpsilon;let N=0,c=!1,f=n.segmentIndex,a=n.graphemeIndex,S=-1,d=0;for(let h=n.segmentIndex;h<s.length;h++){const e=We(i[h]),t=h===n.segmentIndex?n.graphemeIndex:0,M=u[h],g=s[h];if(c){if(N+g>o)return e?(n.segmentIndex=h+1,n.graphemeIndex=0,N):S>=0?f>S||f===S&&a>0?(n.segmentIndex=f,n.graphemeIndex=a,N):(n.segmentIndex=S,n.graphemeIndex=0,d):(n.segmentIndex=f,n.graphemeIndex=a,N);N+=g,f=h+1,a=0,e&&(S=h+1,d=N-g)}else{if(t>0||g>o&&null!==M){const e=M,s=null!=(r=l[h])?r:null;let i=null===s?-1:He(s,0,t+1),u=-1,S=0;c=!0,N=e[t],f=h,a=t+1,null!==s&&s[i]===a&&(u=a,S=N,i++);for(let r=t+1;r<e.length;r++){const l=e[r];if(N+l>o)return null!==s&&u>t?(n.segmentIndex=h,n.graphemeIndex=u,S):(n.segmentIndex=f,n.graphemeIndex=a,N);N+=l,f=h,a=r+1,null!==s&&s[i]===a&&(u=a,S=N,i++)}f===h&&a===e.length&&(f=h+1,a=0)}else c=!0,N=g,f=h+1,a=0;e&&(S=h+1,d=N-g)}}return c?(n.segmentIndex=f,n.graphemeIndex=a,N):null}(e,n,r):function(e,n,t,r){return Ve(e,n,t,r,void 0,1).lastLineWidth}(e,n,t,r)}function qe(e,n,t){const r=Je(e,n);return r<0?null:Ye(e,n,r,t)}let Ue=/* @__PURE__ */new WeakMap;function Xe(e,n,t){let r=t.get(e);if(void 0!==r)return r;r=[0];const s=a();for(const i of s.segment(n[e]))r.push(i.index+i.segment.length);return t.set(e,r),r}function en(e){let n=Ue.get(e);return void 0!==n||(n=/* @__PURE__ */new Map,Ue.set(e,n)),n}function nn(e,n,t,r,s,i){let u="";for(let l=t;l<s;l++)if("soft-hyphen"!==e.kinds[l]&&"hard-break"!==e.kinds[l])if(l===t&&r>0){const t=Xe(l,e.segments,n);u+=e.segments[l].slice(t[r])}else u+=e.segments[l];if(i>0){const l=Xe(s,e.segments,n);u+=e.segments[s].slice(l[t===s?r:0],l[i])}return Fe(e.kinds,s,i)?u+"-":u}function tn(e,n){if("zero-width-break"===n||"soft-hyphen"===n||"hard-break"===n)return 0;if("tab"===n)return 1;let t=0;const r=a();for(const s of r.segment(e))t++;return t}function rn(e,n,t,r,s){const i=Be(),{cache:u,emojiCorrection:N}=function(e,n){Ie().font=e;const t=function(e){let n=Le.get(e);return n||(n=/* @__PURE__ */new Map,Le.set(e,n)),n}(e);return{cache:t,emojiCorrection:n?we(e):0}}(n,(c=e.normalized,Ae.test(c)));var c;const f=Ce("-",be("-",u),N)+(0===s?0:2*s),S=8*Ce(" ",be(" ",u),N),d=0!==s;if(0===e.len)return function(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}(t);const h=[],M=[],g=[],p=[];let O=!d;const L=t?[]:null,m=[],k=[],A=[],E=t?[]:null,I=[];let b=0;function B(e,n,t,r,s,i,u,l,o){"text"!==s&&"space"!==s&&"zero-width-break"!==s&&(O=!1),h.push(n),M.push(t),g.push(r),p.push(s),null==L||L.push(i),m.push(u),k.push(l),d&&A.push(o),null!==E&&E.push(e)}function v(e,n,t,l,o){const c=d?tn(e,t):0,f=function(e,n,t){return n>1?e+(n-1)*t:e}(Ce(e,n,N),c,s),S="space"===t||"preserved-space"===t||"zero-width-break"===t?0:f,h=0===S?0:S+(c>0?s:0),M="space"===t||"zero-width-break"===t?0:f;if(o&&e.length>1){let o="sum-graphemes";0!==s?o="segment-prefixes":de(e)?o="pair-context":i.preferPrefixWidthsForBreakableRuns&&(o="segment-prefixes");const S=function(e,n,t,r,s){if(void 0!==n.breakableFitAdvances&&n.breakableFitMode===s)return n.breakableFitAdvances;n.breakableFitMode=s;const i=a(),u=[];for(const c of i.segment(e))u.push(c.segment);if(u.length<=1)return n.breakableFitAdvances=null,n.breakableFitAdvances;if("sum-graphemes"===s){const e=[];for(const n of u){const s=be(n,t);e.push(Ce(n,s,r))}return n.breakableFitAdvances=e,n.breakableFitAdvances}if("pair-context"===s||u.length>96){const e=[];let s=null,i=0;for(const n of u){const u=Ce(n,be(n,t),r);if(null===s)e.push(u);else{const u=s+n,l=be(u,t);e.push(Ce(u,l,r)-i)}s=n,i=u}return n.breakableFitAdvances=e,n.breakableFitAdvances}const l=[];let o="",N=0;for(const c of u){o+=c;const e=Ce(o,be(o,t),r);l.push(e-N),N=e}return n.breakableFitAdvances=l,n.breakableFitAdvances}(e,n,u,N,o),d=null===S||"keep-all"===r?null:function(e){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(e))return null;const n=[];let t=0;for(const r of a().segment(e)){t++;const s="-"===r.segment&&he(e,r.index);ge(r.segment)&&!s&&n.push(t)}return 0===n.length?null:n}(e);return void B(e,f,h,M,t,l,S,d,c)}B(e,f,h,M,t,l,null,null,c)}for(let l=0;l<e.len;l++){const n=e.texts[l],t=e.kinds[l],s=e.starts[l];if("soft-hyphen"!==t){if("hard-break"===t){const e=h.length;B(n,0,0,0,t,s,null,null,0),I.push({startSegmentIndex:b,endSegmentIndex:e,consumedEndSegmentIndex:h.length}),b=h.length;continue}if("tab"!==t){if("text"===t&&x(n)){const t=Me(n,i,r);for(let n=0;n<t.length;n++){const i=t[n],o=be(i.text,u);v(i.text,o,"text",s+i.start,"grapheme"===i.overflow||e.isWordLike[l]&&("keep-all"===r||"word-like"===i.overflow))}continue}v(n,be(n,u),t,s,"text"===t&&(e.isWordLike[l]||pe(n)))}else B(n,0,0,0,t,s,null,null,d?tn(n,t):0)}else B(n,0,f,f,t,s,null,null,0)}b<h.length&&I.push({startSegmentIndex:b,endSegmentIndex:h.length,consumedEndSegmentIndex:h.length});const w=null===L?null:function(e,n){const t=function(e){const n=e.length;if(0===n)return null;const t=new Array(n);let r=!1,s=0,i=null;for(let u=0;u<n;){const N=e.charCodeAt(u);let c=N,f=1;if(N>=55296&&N<=56319&&u+1<n){const n=e.charCodeAt(u+1);n>=56320&&n<=57343&&(c=n-56320+(N-55296<<10)+65536,f=2)}const a=l(c);"R"!==a&&"AL"!==a&&"AN"!==a||(r=!0);for(let e=0;e<f;e++)t[u+e]=a;"B"===a&&(r&&(null!=i||(i=new Int8Array(n)),i[u]=o(t,i,s,u)),s=u+f,r=!1),u+=f}return r&&(null!=i||(i=new Int8Array(n)),o(t,i,s,n)),i}(e);if(null===t)return null;const r=new Int8Array(n.length);for(let s=0;s<n.length;s++)r[s]=t[n[s]];return r}(e.normalized,L);return null!==E?{widths:h,lineEndFitAdvances:M,lineEndPaintAdvances:g,kinds:p,simpleLineWalkFastPath:O,segLevels:w,breakableFitAdvances:m,breakablePreferredBreaks:k,letterSpacing:s,spacingGraphemeCounts:A,discretionaryHyphenWidth:f,tabStopAdvance:S,chunks:I,segments:E}:{widths:h,lineEndFitAdvances:M,lineEndPaintAdvances:g,kinds:p,simpleLineWalkFastPath:O,segLevels:w,breakableFitAdvances:m,breakablePreferredBreaks:k,letterSpacing:s,spacingGraphemeCounts:A,discretionaryHyphenWidth:f,tabStopAdvance:S,chunks:I}}function sn(e,n,t,r){var s,i;const u=null!=(s=null==r?void 0:r.wordBreak)?s:"normal",l=null!=(i=null==r?void 0:r.letterSpacing)?i:0;return rn(Oe(e,Be(),null==r?void 0:r.whiteSpace,u),n,t,u,l)}function un(e,n,t){return sn(e,n,!1,t)}function ln(e,n,t){return sn(e,n,!0,t)}function on(e,n,t){const r=function(e,n){return Ze(e,n)}(e,n);return{lineCount:r,height:r*t}}function Nn(e,n,t,r,s,i,u){return{text:nn(e,n,r,s,i,u),width:t,start:{segmentIndex:r,graphemeIndex:s},end:{segmentIndex:i,graphemeIndex:u}}}function cn(e,n,t,r,s){return{width:e,start:{segmentIndex:n,graphemeIndex:t},end:{segmentIndex:r,graphemeIndex:s}}}function fn(e,n){return Nn(e,en(e),n.width,n.start.segmentIndex,n.start.graphemeIndex,n.end.segmentIndex,n.end.graphemeIndex)}function an(e,n,t){return 0===e.widths.length?0:Ze(e,n,(e,n,r,s,i)=>{t(cn(e,n,r,s,i))})}function Sn(e,n){return function(e,n){if(0===e.widths.length)return{lineCount:0,maxLineWidth:0};const t={segmentIndex:0,graphemeIndex:0};let r=0,s=0;if(!e.simpleLineWalkFastPath)return r=Ve(e,t,Je(e,t),n,e=>{e>s&&(s=e)}).lineCount,{lineCount:r,maxLineWidth:s};for(;;){const i=qe(e,t,n);if(null===i)return{lineCount:r,maxLineWidth:s};r++,i>s&&(s=i)}}(e,n)}function dn(e){let n=0;return Ze(e,Number.POSITIVE_INFINITY,e=>{e>n&&(n=e)}),n}function hn(e,n,t){const r=e,s={segmentIndex:n.segmentIndex,graphemeIndex:n.graphemeIndex},i=Je(r,s);if(i<0)return null;const u=s.segmentIndex,l=s.graphemeIndex,o=Ye(r,s,i,t);return null===o?null:Nn(e,en(e),o,u,l,s.segmentIndex,s.graphemeIndex)}function Mn(e,n,t){const r=e,s={segmentIndex:n.segmentIndex,graphemeIndex:n.graphemeIndex},i=Je(r,s);if(i<0)return null;const u=s.segmentIndex,l=s.graphemeIndex,o=Ye(r,s,i,t);return null===o?null:cn(o,u,l,s.segmentIndex,s.graphemeIndex)}function gn(e,n,t){const r=[];if(0===e.widths.length)return{lineCount:0,height:0,lines:r};const s=en(e),i=Ze(e,n,(n,t,i,u,l)=>{r.push(Nn(e,s,n,t,i,u,l))});return{lineCount:i,height:i*t,lines:r}}function pn(){f=null,d=null,Ue=/* @__PURE__ */new WeakMap,Le.clear(),Ee.clear()}function On(e){!function(e){const n=e&&e.length>0?e:void 0;S!==n&&(S=n,d=null)}(e),pn()}export{pn as clearCache,on as layout,hn as layoutNextLine,Mn as layoutNextLineRange,gn as layoutWithLines,fn as materializeLineRange,Sn as measureLineStats,dn as measureNaturalWidth,un as prepare,ln as prepareWithSegments,On as setLocale,an as walkLineRanges};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as t}from"./diagramHeight.js";function e(t,e){return/(?:&#\d+|#\d+|&[a-z]+)$/i.test(t.slice(Math.max(0,e-12),e))}function n(t){return t.includes("->")||t.includes("--\x3e")||t.includes("->>")||t.includes("--\x3e>")||t.includes("-x")||t.includes("--x")||t.includes("-)")||t.includes("--)")||t.includes("-+")||t.includes("--+")}function i(t){const e=t.trimStart();return/^(?:accDescr|accTitle|activate|actor|and|alt|autonumber|box|break|critical|create\s+(?:actor|participant)|deactivate|destroy|else|end|link|links|loop|Note|opt|option|par|participant|properties|rect)\b/i.test(e)||function(t){const e=t.split(";",1)[0],i=e.indexOf(":");return i>0&&n(e.slice(0,i))}(e)}function c(t){if(!t.includes(";"))return t;const c=t.indexOf(":");if(-1===c||!function(t,e){const i=t.slice(0,e);return/^\s*Note\b/i.test(i)||n(i)}(t,c))return t;const r=t.slice(0,c+1),s=t.slice(c+1),o=function(t){let n="",c=!1;for(let r=0;r<t.length;r++){const s=t[r];";"!==s||e(t,r)||i(t.slice(r+1))?n+=s:(n+="#59;",c=!0)}return c?n:t}(s);return o===s?t:`${r}${o}`}function r(e){if("sequencediagram"!==t(e))return e;const n=e.split(/(\r\n|\n|\r)/);let i=!1;for(let t=0;t<n.length;t+=2){const e=n[t],r=c(e);r!==e&&(n[t]=r,i=!0)}return i?n.join(""):e}export{r as e};
|
package/dist/tailwind.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markstream-vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.13",
|
|
5
5
|
"description": "Vue/Nuxt streaming Markdown renderer for AI chat, LLM token streams, SSE/WebSocket output, incomplete Markdown, long documents, Mermaid, KaTeX, and stream-diffs powered code blocks.",
|
|
6
6
|
"author": "Simon He",
|
|
7
7
|
"license": "MIT",
|
|
@@ -135,9 +135,9 @@
|
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
"dependencies": {
|
|
138
|
-
"@chenglou/pretext": "^0.0.
|
|
138
|
+
"@chenglou/pretext": "^0.0.9",
|
|
139
139
|
"@floating-ui/dom": "^1.8.0",
|
|
140
|
-
"markstream-core": "2.0.
|
|
140
|
+
"markstream-core": "2.0.13",
|
|
141
141
|
"stream-markdown-parser": "1.2.16"
|
|
142
142
|
},
|
|
143
143
|
"devDependencies": {
|
|
@@ -217,6 +217,7 @@
|
|
|
217
217
|
"test:e2e:virtual-scroll:stress": "node scripts/e2e-virtual-scroll.mjs --mode=stress",
|
|
218
218
|
"test:e2e:virtual-scroll:ci": "pnpm run test:e2e:virtual-scroll",
|
|
219
219
|
"test:e2e:virtual-scroll:ci:stress": "pnpm run test:e2e:virtual-scroll:stress",
|
|
220
|
+
"test:e2e:mermaid-fit-height": "node scripts/e2e-mermaid-fit-height.mjs",
|
|
220
221
|
"benchmark:streaming-split": "node scripts/benchmark-streaming-split.mjs",
|
|
221
222
|
"benchmark:heavy-restore": "node scripts/benchmark-heavy-restore.mjs",
|
|
222
223
|
"benchmark:parser-perf": "pnpm run build:parser && node --expose-gc scripts/benchmark-parser-performance.mjs --profile=deep",
|