summaryrefslogtreecommitdiff
path: root/.localrepo/esxml-20230308.2254.tar
blob: 221d1a9afe0ed10c139571c41ecde80496ba2e6f (plain)
ofshex dumpascii
0000 65 73 78 6d 6c 2d 32 30 32 33 30 33 30 38 2e 32 32 35 34 2f 00 00 00 00 00 00 00 00 00 00 00 00 esxml-20230308.2254/............
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0060 00 00 00 00 30 30 30 30 37 35 35 00 30 30 30 30 30 30 30 00 30 30 30 30 30 30 30 00 30 30 30 30 ....0000755.0000000.0000000.0000
0080 30 30 30 30 30 30 30 00 30 30 30 30 30 30 30 30 30 30 30 00 30 31 32 31 33 37 00 20 35 00 00 00 0000000.00000000000.012137..5...
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0100 00 75 73 74 61 72 20 20 00 72 6f 6f 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar...root...................
0120 00 00 00 00 00 00 00 00 00 72 6f 6f 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .........root...................
0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0200 65 73 78 6d 6c 2d 32 30 32 33 30 33 30 38 2e 32 32 35 34 2f 65 73 78 6d 6c 2d 70 6b 67 2e 65 6c esxml-20230308.2254/esxml-pkg.el
0220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0260 00 00 00 00 30 30 30 30 36 34 34 00 30 30 30 30 30 30 30 00 30 30 30 30 30 30 30 00 30 30 30 30 ....0000644.0000000.0000000.0000
0280 30 30 30 30 36 35 35 00 30 30 30 30 30 30 30 30 30 30 30 00 30 31 34 33 37 36 00 20 30 00 00 00 0000655.00000000000.014376..0...
02a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
02e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0300 00 75 73 74 61 72 20 20 00 72 6f 6f 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar...root...................
0320 00 00 00 00 00 00 00 00 00 72 6f 6f 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .........root...................
0340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
03c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
03e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0400 3b 3b 20 2d 2a 2d 20 6e 6f 2d 62 79 74 65 2d 63 6f 6d 70 69 6c 65 3a 20 74 3b 20 6c 65 78 69 63 ;;.-*-.no-byte-compile:.t;.lexic
0420 61 6c 2d 62 69 6e 64 69 6e 67 3a 20 6e 69 6c 20 2d 2a 2d 0a 28 64 65 66 69 6e 65 2d 70 61 63 6b al-binding:.nil.-*-.(define-pack
0440 61 67 65 20 22 65 73 78 6d 6c 22 20 22 32 30 32 33 30 33 30 38 2e 32 32 35 34 22 0a 20 20 22 4c age."esxml"."20230308.2254"..."L
0460 69 62 72 61 72 79 20 66 6f 72 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 20 78 6d 6c 20 76 69 61 20 ibrary.for.working.with.xml.via.
0480 65 73 78 6d 6c 20 61 6e 64 20 73 78 6d 6c 2e 22 0a 20 20 27 28 28 65 6d 61 63 73 20 20 22 32 34 esxml.and.sxml."...'((emacs.."24
04a0 2e 31 22 29 0a 20 20 20 20 28 6b 76 20 20 20 20 20 22 30 2e 30 2e 35 22 29 0a 20 20 20 20 28 63 .1").....(kv....."0.0.5").....(c
04c0 6c 2d 6c 69 62 20 22 30 2e 35 22 29 29 0a 20 20 3a 75 72 6c 20 22 68 74 74 70 73 3a 2f 2f 67 69 l-lib."0.5"))...:url."https://gi
04e0 74 68 75 62 2e 63 6f 6d 2f 74 61 6c 69 37 31 33 2f 65 73 78 6d 6c 22 0a 20 20 3a 63 6f 6d 6d 69 thub.com/tali713/esxml"...:commi
0500 74 20 22 32 32 35 36 39 33 30 39 36 61 35 38 37 34 39 32 64 37 36 62 66 36 39 36 64 31 66 30 63 t."225693096a587492d76bf696d1f0c
0520 32 35 63 36 31 66 37 64 35 33 31 22 0a 20 20 3a 72 65 76 64 65 73 63 20 22 32 32 35 36 39 33 30 25c61f7d531"...:revdesc."2256930
0540 39 36 61 35 38 22 0a 20 20 3a 6b 65 79 77 6f 72 64 73 20 27 28 22 74 6f 6f 6c 73 22 20 22 6c 69 96a58"...:keywords.'("tools"."li
0560 73 70 22 20 22 63 6f 6d 6d 22 29 0a 20 20 3a 61 75 74 68 6f 72 73 20 27 28 28 22 56 61 6e 79 61 sp"."comm")...:authors.'(("Vanya
0580 20 49 7a 61 6b 73 6f 6e 61 73 2d 53 6d 69 74 68 22 20 2e 20 22 69 7a 61 6b 30 30 30 32 61 74 75 .Izaksonas-Smith"..."izak0002atu
05a0 6d 6e 64 6f 74 65 64 75 22 29 29 29 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 mndotedu")))....................
05c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
05e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0600 65 73 78 6d 6c 2d 32 30 32 33 30 33 30 38 2e 32 32 35 34 2f 65 73 78 6d 6c 2d 71 75 65 72 79 2e esxml-20230308.2254/esxml-query.
0620 65 6c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 el..............................
0640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0660 00 00 00 00 30 30 30 30 36 34 34 00 30 30 30 30 30 30 30 00 30 30 30 30 30 30 30 00 30 30 30 30 ....0000644.0000000.0000000.0000
0680 30 30 37 30 33 36 34 00 30 30 30 30 30 30 30 30 30 30 30 00 30 31 34 37 36 36 00 20 30 00 00 00 0070364.00000000000.014766..0...
06a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
06c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
06e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0700 00 75 73 74 61 72 20 20 00 72 6f 6f 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar...root...................
0720 00 00 00 00 00 00 00 00 00 72 6f 6f 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .........root...................
0740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
07a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
07c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
07e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0800 3b 3b 3b 20 65 73 78 6d 6c 2d 71 75 65 72 79 2e 65 6c 20 2d 2d 2d 20 73 65 6c 65 63 74 20 65 73 ;;;.esxml-query.el.---.select.es
0820 78 6d 6c 20 6e 6f 64 65 73 20 6a 51 75 65 72 79 2d 73 74 79 6c 65 0a 0a 3b 3b 20 43 6f 70 79 72 xml.nodes.jQuery-style..;;.Copyr
0840 69 67 68 74 20 28 43 29 20 32 30 31 37 20 56 61 73 69 6c 69 6a 20 53 63 68 6e 65 69 64 65 72 6d ight.(C).2017.Vasilij.Schneiderm
0860 61 6e 6e 20 3c 6d 61 69 6c 40 76 61 73 69 6c 69 6a 2e 64 65 3e 0a 0a 3b 3b 20 41 75 74 68 6f 72 ann.<mail@vasilij.de>..;;.Author
0880 3a 20 56 61 73 69 6c 69 6a 20 53 63 68 6e 65 69 64 65 72 6d 61 6e 6e 20 3c 6d 61 69 6c 40 76 61 :.Vasilij.Schneidermann.<mail@va
08a0 73 69 6c 69 6a 2e 64 65 3e 0a 3b 3b 20 4d 61 69 6e 74 61 69 6e 65 72 3a 20 56 61 73 69 6c 69 6a silij.de>.;;.Maintainer:.Vasilij
08c0 20 53 63 68 6e 65 69 64 65 72 6d 61 6e 6e 0a 3b 3b 20 4b 65 79 77 6f 72 64 73 3a 20 64 61 74 61 .Schneidermann.;;.Keywords:.data
08e0 2c 20 6c 69 73 70 0a 3b 3b 20 50 61 63 6b 61 67 65 2d 52 65 71 75 69 72 65 73 3a 20 28 28 63 6c ,.lisp.;;.Package-Requires:.((cl
0900 2d 6c 69 62 20 22 30 2e 31 22 29 29 0a 3b 3b 0a 3b 3b 20 54 68 69 73 20 70 72 6f 67 72 61 6d 20 -lib."0.1")).;;.;;.This.program.
0920 69 73 20 66 72 65 65 20 73 6f 66 74 77 61 72 65 3b 20 79 6f 75 20 63 61 6e 20 72 65 64 69 73 74 is.free.software;.you.can.redist
0940 72 69 62 75 74 65 20 69 74 20 61 6e 64 2f 6f 72 0a 3b 3b 20 6d 6f 64 69 66 79 20 69 74 20 75 6e ribute.it.and/or.;;.modify.it.un
0960 64 65 72 20 74 68 65 20 74 65 72 6d 73 20 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c der.the.terms.of.the.GNU.General
0980 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20 61 73 0a 3b 3b 20 70 75 62 6c 69 73 68 65 64 20 .Public.License.as.;;.published.
09a0 62 79 20 74 68 65 20 46 72 65 65 20 53 6f 66 74 77 61 72 65 20 46 6f 75 6e 64 61 74 69 6f 6e 2c by.the.Free.Software.Foundation,
09c0 20 65 69 74 68 65 72 20 76 65 72 73 69 6f 6e 20 33 20 6f 66 20 74 68 65 0a 3b 3b 20 4c 69 63 65 .either.version.3.of.the.;;.Lice
09e0 6e 73 65 2c 20 6f 72 20 28 61 74 20 79 6f 75 72 20 6f 70 74 69 6f 6e 29 20 61 6e 79 20 6c 61 74 nse,.or.(at.your.option).any.lat
0a00 65 72 20 76 65 72 73 69 6f 6e 2e 0a 0a 3b 3b 20 54 68 69 73 20 70 72 6f 67 72 61 6d 20 69 73 20 er.version...;;.This.program.is.
0a20 64 69 73 74 72 69 62 75 74 65 64 20 69 6e 20 74 68 65 20 68 6f 70 65 20 74 68 61 74 20 69 74 20 distributed.in.the.hope.that.it.
0a40 77 69 6c 6c 20 62 65 20 75 73 65 66 75 6c 2c 0a 3b 3b 20 62 75 74 20 57 49 54 48 4f 55 54 20 41 will.be.useful,.;;.but.WITHOUT.A
0a60 4e 59 20 57 41 52 52 41 4e 54 59 3b 20 77 69 74 68 6f 75 74 20 65 76 65 6e 20 74 68 65 20 69 6d NY.WARRANTY;.without.even.the.im
0a80 70 6c 69 65 64 20 77 61 72 72 61 6e 74 79 20 6f 66 0a 3b 3b 20 4d 45 52 43 48 41 4e 54 41 42 49 plied.warranty.of.;;.MERCHANTABI
0aa0 4c 49 54 59 20 6f 72 20 46 49 54 4e 45 53 53 20 46 4f 52 20 41 20 50 41 52 54 49 43 55 4c 41 52 LITY.or.FITNESS.FOR.A.PARTICULAR
0ac0 20 50 55 52 50 4f 53 45 2e 20 20 53 65 65 20 74 68 65 0a 3b 3b 20 47 4e 55 20 47 65 6e 65 72 61 .PURPOSE...See.the.;;.GNU.Genera
0ae0 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20 66 6f 72 20 6d 6f 72 65 20 64 65 74 61 69 6c l.Public.License.for.more.detail
0b00 73 2e 0a 0a 3b 3b 20 59 6f 75 20 73 68 6f 75 6c 64 20 68 61 76 65 20 72 65 63 65 69 76 65 64 20 s...;;.You.should.have.received.
0b20 61 20 63 6f 70 79 20 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 a.copy.of.the.GNU.General.Public
0b40 20 4c 69 63 65 6e 73 65 0a 3b 3b 20 61 6c 6f 6e 67 20 77 69 74 68 20 74 68 69 73 20 70 72 6f 67 .License.;;.along.with.this.prog
0b60 72 61 6d 2e 20 20 49 66 20 6e 6f 74 2c 20 73 65 65 20 3c 68 74 74 70 3a 2f 2f 77 77 77 2e 67 6e ram...If.not,.see.<http://www.gn
0b80 75 2e 6f 72 67 2f 6c 69 63 65 6e 73 65 73 2f 3e 2e 0a 0a 3b 3b 3b 20 43 6f 6d 6d 65 6e 74 61 72 u.org/licenses/>...;;;.Commentar
0ba0 79 3a 0a 0a 3b 3b 20 54 72 61 64 69 74 69 6f 6e 61 6c 6c 79 20 70 65 6f 70 6c 65 20 70 69 63 6b y:..;;.Traditionally.people.pick
0bc0 20 6f 6e 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6f 70 74 69 6f 6e 73 20 77 68 .one.of.the.following.options.wh
0be0 65 6e 20 66 61 63 65 64 0a 3b 3b 20 77 69 74 68 20 74 68 65 20 74 61 73 6b 20 6f 66 20 65 78 74 en.faced.;;.with.the.task.of.ext
0c00 72 61 63 74 69 6e 67 20 64 61 74 61 20 66 72 6f 6d 20 58 4d 4c 20 69 6e 20 45 6d 61 63 73 20 4c racting.data.from.XML.in.Emacs.L
0c20 69 73 70 3a 0a 3b 3b 0a 3b 3b 20 2d 20 55 73 69 6e 67 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 isp:.;;.;;.-.Using.regular.expre
0c40 73 73 69 6f 6e 73 20 6f 6e 20 74 68 65 20 75 6e 70 61 72 73 65 64 20 64 6f 63 75 6d 65 6e 74 0a ssions.on.the.unparsed.document.
0c60 3b 3b 20 2d 20 4d 61 6e 75 61 6c 20 74 72 65 65 20 74 72 61 76 65 72 73 61 6c 20 77 69 74 68 20 ;;.-.Manual.tree.traversal.with.
0c80 60 61 73 73 6f 63 27 2c 20 60 63 61 72 27 20 61 6e 64 20 60 63 64 72 27 0a 3b 3b 0a 3b 3b 20 42 `assoc',.`car'.and.`cdr'.;;.;;.B
0ca0 72 6f 77 73 65 72 73 20 66 61 63 65 64 20 61 20 73 69 6d 69 6c 61 72 20 70 72 6f 62 6c 65 6d 20 rowsers.faced.a.similar.problem.
0cc0 75 6e 74 69 6c 20 6a 51 75 65 72 79 20 68 61 70 70 65 6e 65 64 2c 20 73 68 6f 72 74 6c 79 0a 3b until.jQuery.happened,.shortly.;
0ce0 3b 20 61 66 74 65 72 77 61 72 64 73 20 74 68 65 79 20 73 74 61 72 74 65 64 20 70 72 6f 76 69 64 ;.afterwards.they.started.provid
0d00 69 6e 67 20 74 68 65 20 60 6e 6f 64 65 2e 71 75 65 72 79 53 65 6c 65 63 74 6f 72 27 20 61 6e 64 ing.the.`node.querySelector'.and
0d20 0a 3b 3b 20 60 6e 6f 64 65 2e 71 75 65 72 79 53 65 6c 65 63 74 6f 72 41 6c 6c 27 20 41 50 49 20 .;;.`node.querySelectorAll'.API.
0d40 66 6f 72 20 72 65 74 72 69 65 76 69 6e 67 20 6f 6e 65 20 6f 72 20 61 6c 6c 20 6e 6f 64 65 73 0a for.retrieving.one.or.all.nodes.
0d60 3b 3b 20 6d 61 74 63 68 69 6e 67 20 61 20 67 69 76 65 6e 20 43 53 53 20 73 65 6c 65 63 74 6f 72 ;;.matching.a.given.CSS.selector
0d80 2e 20 20 54 68 69 73 20 63 6f 64 65 20 69 6d 70 6c 65 6d 65 6e 74 73 20 74 68 65 20 73 61 6d 65 ...This.code.implements.the.same
0da0 20 41 50 49 0a 3b 3b 20 77 69 74 68 20 74 68 65 20 60 65 73 78 6d 6c 2d 71 75 65 72 79 27 20 61 .API.;;.with.the.`esxml-query'.a
0dc0 6e 64 20 60 65 73 78 6d 6c 2d 71 75 65 72 79 2d 61 6c 6c 27 20 66 75 6e 63 74 69 6f 6e 73 2e 20 nd.`esxml-query-all'.functions..
0de0 20 54 68 65 0a 3b 3b 20 66 6f 6c 6c 6f 77 69 6e 67 20 74 61 62 6c 65 20 73 75 6d 6d 61 72 69 7a .The.;;.following.table.summariz
0e00 65 73 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 73 75 70 70 6f 72 74 65 64 20 6d 6f 64 69 66 es.the.currently.supported.modif
0e20 69 65 72 73 20 61 6e 64 0a 3b 3b 20 63 6f 6d 62 69 6e 61 74 6f 72 73 3a 0a 3b 3b 0a 3b 3b 20 7c iers.and.;;.combinators:.;;.;;.|
0e40 20 4e 61 6d 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .Name...........................
0e60 20 20 20 20 7c 20 53 75 70 70 6f 72 74 65 64 3f 20 7c 20 53 79 6e 74 61 78 20 20 20 20 20 20 7c ....|.Supported?.|.Syntax......|
0e80 0a 3b 3b 20 7c 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d .;;.|---------------------------
0ea0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d ---------+------------+---------
0ec0 2d 2d 2d 2d 7c 0a 3b 3b 20 7c 20 4e 61 6d 65 73 70 61 63 65 73 20 20 20 20 20 20 20 20 20 20 20 ----|.;;.|.Namespaces...........
0ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 4e 6f 20 20 20 20 20 20 20 20 20 7c 20 66 6f 6f ..............|.No.........|.foo
0f00 7c 62 61 72 20 20 20 20 20 7c 0a 3b 3b 20 7c 20 43 6f 6d 6d 61 73 20 20 20 20 20 20 20 20 20 20 |bar.....|.;;.|.Commas..........
0f20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 59 65 73 20 20 20 20 20 20 20 20 ...................|.Yes........
0f40 7c 20 66 6f 6f 2c 20 62 61 72 20 20 20 20 7c 0a 3b 3b 20 7c 20 44 65 73 63 65 6e 64 61 6e 74 20 |.foo,.bar....|.;;.|.Descendant.
0f60 63 6f 6d 62 69 6e 61 74 6f 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 59 65 73 20 20 20 combinator..............|.Yes...
0f80 20 20 20 20 20 7c 20 66 6f 6f 20 62 61 72 20 20 20 20 20 7c 0a 3b 3b 20 7c 20 43 68 69 6c 64 20 .....|.foo.bar.....|.;;.|.Child.
0fa0 63 6f 6d 62 69 6e 61 74 6f 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 59 combinator...................|.Y
0fc0 65 73 20 20 20 20 20 20 20 20 7c 20 66 6f 6f 3e 62 61 72 20 20 20 20 20 7c 0a 3b 3b 20 7c 20 41 es........|.foo>bar.....|.;;.|.A
0fe0 64 6a 61 63 65 6e 74 20 73 69 62 6c 69 6e 67 20 63 6f 6d 62 69 6e 61 74 6f 72 20 20 20 20 20 20 djacent.sibling.combinator......
1000 20 20 7c 20 4e 6f 20 20 20 20 20 20 20 20 20 7c 20 66 6f 6f 2b 62 61 72 20 20 20 20 20 7c 0a 3b ..|.No.........|.foo+bar.....|.;
1020 3b 20 7c 20 47 65 6e 65 72 61 6c 20 73 69 62 6c 69 6e 67 20 63 6f 6d 62 69 6e 61 74 6f 72 20 20 ;.|.General.sibling.combinator..
1040 20 20 20 20 20 20 20 7c 20 4e 6f 20 20 20 20 20 20 20 20 20 7c 20 66 6f 6f 7e 62 61 72 20 20 20 .......|.No.........|.foo~bar...
1060 20 20 7c 0a 3b 3b 20 7c 20 55 6e 69 76 65 72 73 61 6c 20 73 65 6c 65 63 74 6f 72 20 20 20 20 20 ..|.;;.|.Universal.selector.....
1080 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 59 65 73 20 20 20 20 20 20 20 20 7c 20 2a 20 20 20 20 ............|.Yes........|.*....
10a0 20 20 20 20 20 20 20 7c 0a 3b 3b 20 7c 20 54 79 70 65 20 73 65 6c 65 63 74 6f 72 20 20 20 20 20 .......|.;;.|.Type.selector.....
10c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 59 65 73 20 20 20 20 20 20 20 20 7c 20 .................|.Yes........|.
10e0 74 61 67 20 20 20 20 20 20 20 20 20 7c 0a 3b 3b 20 7c 20 49 44 20 73 65 6c 65 63 74 6f 72 20 20 tag.........|.;;.|.ID.selector..
1100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 59 65 73 20 20 20 20 20 ......................|.Yes.....
1120 20 20 20 7c 20 23 66 6f 6f 20 20 20 20 20 20 20 20 7c 0a 3b 3b 20 7c 20 43 6c 61 73 73 20 73 65 ...|.#foo........|.;;.|.Class.se
1140 6c 65 63 74 6f 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 59 65 73 lector.....................|.Yes
1160 20 20 20 20 20 20 20 20 7c 20 2e 66 6f 6f 20 20 20 20 20 20 20 20 7c 0a 3b 3b 20 7c 20 41 74 74 ........|..foo........|.;;.|.Att
1180 72 69 62 75 74 65 20 73 65 6c 65 63 74 6f 72 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ribute.selector.................
11a0 7c 20 59 65 73 20 20 20 20 20 20 20 20 7c 20 5b 66 6f 6f 5d 20 20 20 20 20 20 20 7c 0a 3b 3b 20 |.Yes........|.[foo].......|.;;.
11c0 7c 20 45 78 61 63 74 20 6d 61 74 63 68 20 61 74 74 72 69 62 75 74 65 20 73 65 6c 65 63 74 6f 72 |.Exact.match.attribute.selector
11e0 20 20 20 20 20 7c 20 59 65 73 20 20 20 20 20 20 20 20 7c 20 5b 66 6f 6f 3d 62 61 72 5d 20 20 20 .....|.Yes........|.[foo=bar]...
1200 7c 0a 3b 3b 20 7c 20 50 72 65 66 69 78 20 6d 61 74 63 68 20 61 74 74 72 69 62 75 74 65 20 73 65 |.;;.|.Prefix.match.attribute.se
1220 6c 65 63 74 6f 72 20 20 20 20 7c 20 59 65 73 20 20 20 20 20 20 20 20 7c 20 5b 66 6f 6f 5e 3d 62 lector....|.Yes........|.[foo^=b
1240 61 72 5d 20 20 7c 0a 3b 3b 20 7c 20 53 75 66 66 69 78 20 6d 61 74 63 68 20 61 74 74 72 69 62 75 ar]..|.;;.|.Suffix.match.attribu
1260 74 65 20 73 65 6c 65 63 74 6f 72 20 20 20 20 7c 20 59 65 73 20 20 20 20 20 20 20 20 7c 20 5b 66 te.selector....|.Yes........|.[f
1280 6f 6f 24 3d 62 61 72 5d 20 20 7c 0a 3b 3b 20 7c 20 53 75 62 73 74 72 69 6e 67 20 6d 61 74 63 68 oo$=bar]..|.;;.|.Substring.match
12a0 20 61 74 74 72 69 62 75 74 65 20 73 65 6c 65 63 74 6f 72 20 7c 20 59 65 73 20 20 20 20 20 20 20 .attribute.selector.|.Yes.......
12c0 20 7c 20 5b 66 6f 6f 2a 3d 62 61 72 5d 20 20 7c 0a 3b 3b 20 7c 20 49 6e 63 6c 75 64 65 20 6d 61 .|.[foo*=bar]..|.;;.|.Include.ma
12e0 74 63 68 20 61 74 74 72 69 62 75 74 65 20 73 65 6c 65 63 74 6f 72 20 20 20 7c 20 59 65 73 20 20 tch.attribute.selector...|.Yes..
1300 20 20 20 20 20 20 7c 20 5b 66 6f 6f 7e 3d 62 61 72 5d 20 20 7c 0a 3b 3b 20 7c 20 44 61 73 68 20 ......|.[foo~=bar]..|.;;.|.Dash.
1320 6d 61 74 63 68 20 61 74 74 72 69 62 75 74 65 20 73 65 6c 65 63 74 6f 72 20 20 20 20 20 20 7c 20 match.attribute.selector......|.
1340 59 65 73 20 20 20 20 20 20 20 20 7c 20 5b 66 6f 6f 7c 3d 62 61 72 5d 20 20 7c 0a 3b 3b 20 7c 20 Yes........|.[foo|=bar]..|.;;.|.
1360 41 74 74 72 69 62 75 74 65 20 73 65 6c 65 63 74 6f 72 20 6d 6f 64 69 66 69 65 72 73 20 20 20 20 Attribute.selector.modifiers....
1380 20 20 20 7c 20 4e 6f 20 20 20 20 20 20 20 20 20 7c 20 5b 66 6f 6f 3d 62 61 72 20 69 5d 20 7c 0a ...|.No.........|.[foo=bar.i].|.
13a0 3b 3b 20 7c 20 50 73 65 75 64 6f 20 65 6c 65 6d 65 6e 74 73 20 20 20 20 20 20 20 20 20 20 20 20 ;;.|.Pseudo.elements............
13c0 20 20 20 20 20 20 20 20 7c 20 4e 6f 20 20 20 20 20 20 20 20 20 7c 20 3a 3a 66 6f 6f 20 20 20 20 ........|.No.........|.::foo....
13e0 20 20 20 7c 0a 3b 3b 20 7c 20 50 73 65 75 64 6f 20 63 6c 61 73 73 65 73 20 20 20 20 20 20 20 20 ...|.;;.|.Pseudo.classes........
1400 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 20 4e 6f 20 20 20 20 20 20 20 20 20 7c 20 3a 66 6f 6f .............|.No.........|.:foo
1420 20 20 20 20 20 20 20 20 7c 0a 0a 3b 3b 3b 20 43 6f 64 65 3a 0a 0a 28 72 65 71 75 69 72 65 20 27 ........|..;;;.Code:..(require.'
1440 63 6c 2d 6c 69 62 29 0a 0a 0c 0a 3b 3b 3b 20 43 53 53 20 73 65 6c 65 63 74 6f 72 20 70 61 72 73 cl-lib)....;;;.CSS.selector.pars
1460 69 6e 67 0a 0a 3b 3b 20 68 74 74 70 73 3a 2f 2f 77 77 77 2e 77 33 2e 6f 72 67 2f 54 52 2f 73 65 ing..;;.https://www.w3.org/TR/se
1480 6c 65 63 74 6f 72 73 2f 23 77 33 63 73 65 6c 67 72 61 6d 6d 61 72 0a 3b 3b 20 68 74 74 70 73 3a lectors/#w3cselgrammar.;;.https:
14a0 2f 2f 77 77 77 2e 77 33 2e 6f 72 67 2f 54 52 2f 73 65 6c 65 63 74 6f 72 73 34 2f 23 67 72 61 6d //www.w3.org/TR/selectors4/#gram
14c0 6d 61 72 0a 3b 3b 20 68 74 74 70 73 3a 2f 2f 77 77 77 2e 77 33 2e 6f 72 67 2f 54 52 2f 32 30 30 mar.;;.https://www.w3.org/TR/200
14e0 33 2f 57 44 2d 63 73 73 33 2d 73 79 6e 74 61 78 2d 32 30 30 33 30 38 31 33 2f 23 64 65 74 61 69 3/WD-css3-syntax-20030813/#detai
1500 6c 65 64 2d 67 72 61 6d 6d 61 72 0a 3b 3b 20 68 74 74 70 73 3a 2f 2f 77 77 77 2e 77 33 2e 6f 72 led-grammar.;;.https://www.w3.or
1520 67 2f 54 52 2f 32 30 30 33 2f 57 44 2d 63 73 73 33 2d 73 79 6e 74 61 78 2d 32 30 30 33 30 38 31 g/TR/2003/WD-css3-syntax-2003081
1540 33 2f 23 74 6f 6b 65 6e 69 7a 61 74 69 6f 6e 0a 0a 3b 3b 20 79 6f 75 20 6d 69 67 68 74 20 62 65 3/#tokenization..;;.you.might.be
1560 20 77 6f 6e 64 65 72 69 6e 67 20 77 68 79 20 49 27 6d 20 75 73 69 6e 67 20 62 6f 74 68 20 6c 65 .wondering.why.I'm.using.both.le
1580 76 65 6c 20 33 20 61 6e 64 20 34 20 73 74 61 6e 64 61 72 64 73 2c 0a 3b 3b 20 77 65 6c 6c 2c 20 vel.3.and.4.standards,.;;.well,.
15a0 74 68 65 20 6c 65 76 65 6c 20 33 20 6f 6e 65 20 68 61 73 20 61 20 62 75 67 67 79 20 6c 65 78 65 the.level.3.one.has.a.buggy.lexe
15c0 72 20 73 65 63 74 69 6f 6e 20 77 68 65 72 65 61 73 20 6c 65 76 65 6c 20 34 0a 3b 3b 20 6f 6d 69 r.section.whereas.level.4.;;.omi
15e0 74 73 20 63 72 75 63 69 61 6c 20 70 61 72 73 65 72 20 64 65 66 69 6e 69 74 69 6f 6e 73 2c 20 73 ts.crucial.parser.definitions,.s
1600 6f 20 62 6f 74 68 20 68 61 76 65 20 74 6f 20 62 65 20 75 73 65 64 2e 2e 2e 0a 0a 3b 3b 20 54 4f o.both.have.to.be.used.....;;.TO
1620 44 4f 3a 20 73 75 70 70 6f 72 74 20 3a 6e 6f 74 0a 28 64 65 66 76 61 72 20 65 73 78 6d 6c 2d 2d DO:.support.:not.(defvar.esxml--
1640 63 73 73 2d 73 65 6c 65 63 74 6f 72 2d 74 6f 6b 65 6e 2d 6d 61 74 63 68 65 72 73 0a 20 20 28 6c css-selector-token-matchers...(l
1660 65 74 2a 20 28 28 68 20 22 5b 30 2d 39 61 2d 66 5d 22 29 0a 20 20 20 20 20 20 20 20 20 28 6e 6c et*.((h."[0-9a-f]")..........(nl
1680 20 22 5c 6e 5c 5c 7c 5c 72 5c 6e 5c 5c 7c 5c 72 5c 5c 7c 5c 66 22 29 0a 20 20 20 20 20 20 20 20 ."\n\\|\r\n\\|\r\\|\f").........
16a0 20 28 6e 6f 6e 61 73 63 69 69 20 22 5b 5c 32 30 30 2d 5c 55 30 30 31 30 66 66 66 66 5d 22 29 0a .(nonascii."[\200-\U0010ffff]").
16c0 20 20 20 20 20 20 20 20 20 28 75 6e 69 63 6f 64 65 20 28 66 6f 72 6d 61 74 20 22 5c 5c 5c 5c 25 .........(unicode.(format."\\\\%
16e0 73 5c 5c 7b 31 2c 36 5c 5c 7d 5b 20 5c 74 5c 72 5c 6e 5c 66 5d 3f 22 20 68 29 29 0a 20 20 20 20 s\\{1,6\\}[.\t\r\n\f]?".h)).....
1700 20 20 20 20 20 28 65 73 63 61 70 65 20 28 66 6f 72 6d 61 74 20 22 5c 5c 28 3f 3a 25 73 5c 5c 29 .....(escape.(format."\\(?:%s\\)
1720 5c 5c 7c 5c 5c 5c 5c 5b 20 2d 7e 5c 32 30 30 2d 5c 55 30 30 31 30 66 66 66 66 5d 22 20 75 6e 69 \\|\\\\[.-~\200-\U0010ffff]".uni
1740 63 6f 64 65 29 29 0a 20 20 20 20 20 20 20 20 20 28 6e 6d 73 74 61 72 74 20 28 66 6f 72 6d 61 74 code))..........(nmstart.(format
1760 20 22 5b 61 2d 7a 5f 5d 5c 5c 7c 25 73 5c 5c 7c 5c 5c 28 3f 3a 25 73 5c 5c 29 22 20 6e 6f 6e 61 ."[a-z_]\\|%s\\|\\(?:%s\\)".nona
1780 73 63 69 69 20 65 73 63 61 70 65 29 29 0a 20 20 20 20 20 20 20 20 20 28 6e 6d 63 68 61 72 20 28 scii.escape))..........(nmchar.(
17a0 66 6f 72 6d 61 74 20 22 5b 61 2d 7a 30 2d 39 5f 2d 5d 5c 5c 7c 25 73 5c 5c 7c 5c 5c 28 3f 3a 25 format."[a-z0-9_-]\\|%s\\|\\(?:%
17c0 73 5c 5c 29 22 20 6e 6f 6e 61 73 63 69 69 20 65 73 63 61 70 65 29 29 0a 20 20 20 20 20 20 20 20 s\\)".nonascii.escape)).........
17e0 20 28 6e 75 6d 20 22 5b 30 2d 39 5d 2b 5c 5c 7c 5b 30 2d 39 5d 2a 5c 5c 2e 5b 30 2d 39 5d 2b 22 .(num."[0-9]+\\|[0-9]*\\.[0-9]+"
1800 29 0a 20 20 20 20 20 20 20 20 20 28 73 74 72 69 6e 67 31 20 28 66 6f 72 6d 61 74 20 22 5c 22 5c )..........(string1.(format."\"\
1820 5c 28 3f 3a 5b 5c 74 20 21 23 24 25 25 26 28 2d 7e 5d 5c 5c 7c 5c 5c 5c 5c 5c 5c 28 3f 3a 25 73 \(?:[\t.!#$%%&(-~]\\|\\\\\\(?:%s
1840 5c 5c 29 5c 5c 7c 27 5c 5c 7c 25 73 5c 5c 7c 5c 5c 28 3f 3a 25 73 5c 5c 29 5c 5c 29 2a 5c 22 22 \\)\\|'\\|%s\\|\\(?:%s\\)\\)*\""
1860 20 6e 6c 20 6e 6f 6e 61 73 63 69 69 20 65 73 63 61 70 65 29 29 0a 20 20 20 20 20 20 20 20 20 28 .nl.nonascii.escape))..........(
1880 73 74 72 69 6e 67 32 20 28 66 6f 72 6d 61 74 20 22 27 5c 5c 28 3f 3a 5b 5c 74 20 21 23 24 25 25 string2.(format."'\\(?:[\t.!#$%%
18a0 26 28 2d 7e 5d 5c 5c 7c 5c 5c 5c 5c 5c 5c 28 3f 3a 25 73 5c 5c 29 5c 5c 7c 5c 22 5c 5c 7c 25 73 &(-~]\\|\\\\\\(?:%s\\)\\|\"\\|%s
18c0 5c 5c 7c 5c 5c 28 3f 3a 25 73 5c 5c 29 5c 5c 29 2a 27 22 20 6e 6c 20 6e 6f 6e 61 73 63 69 69 20 \\|\\(?:%s\\)\\)*'".nl.nonascii.
18e0 65 73 63 61 70 65 29 29 0a 20 20 20 20 20 20 20 20 20 28 69 64 65 6e 74 20 28 66 6f 72 6d 61 74 escape))..........(ident.(format
1900 20 22 5b 2d 5d 3f 5c 5c 28 3f 3a 25 73 5c 5c 29 5c 5c 28 3f 3a 25 73 5c 5c 29 2a 22 20 6e 6d 73 ."[-]?\\(?:%s\\)\\(?:%s\\)*".nms
1920 74 61 72 74 20 6e 6d 63 68 61 72 29 29 0a 20 20 20 20 20 20 20 20 20 28 75 6e 69 74 20 28 66 6f tart.nmchar))..........(unit.(fo
1940 72 6d 61 74 20 22 5b 2d 5d 3f 5c 5c 28 3f 3a 25 73 5c 5c 29 5c 5c 28 3f 3a 25 73 5c 5c 29 2b 22 rmat."[-]?\\(?:%s\\)\\(?:%s\\)+"
1960 20 6e 6d 73 74 61 72 74 20 6e 6d 63 68 61 72 29 29 0a 20 20 20 20 20 20 20 20 20 28 6e 61 6d 65 .nmstart.nmchar))..........(name
1980 20 28 66 6f 72 6d 61 74 20 22 5c 5c 28 3f 3a 25 73 5c 5c 29 2b 22 20 6e 6d 63 68 61 72 29 29 29 .(format."\\(?:%s\\)+".nmchar)))
19a0 0a 0a 20 20 20 20 60 28 28 77 68 69 74 65 73 70 61 63 65 20 2e 20 22 5b 20 5c 74 5c 72 5c 6e 5c ......`((whitespace..."[.\t\r\n\
19c0 66 5d 2b 22 29 0a 20 20 20 20 20 20 28 73 74 72 69 6e 67 20 2e 20 2c 28 66 6f 72 6d 61 74 20 22 f]+").......(string...,(format."
19e0 5c 5c 28 3f 3a 25 73 5c 5c 7c 25 73 5c 5c 29 22 20 73 74 72 69 6e 67 31 20 73 74 72 69 6e 67 32 \\(?:%s\\|%s\\)".string1.string2
1a00 29 29 0a 20 20 20 20 20 20 28 69 64 65 6e 74 20 2e 20 2c 69 64 65 6e 74 29 0a 20 20 20 20 20 20 )).......(ident...,ident).......
1a20 28 68 61 73 68 20 2e 20 2c 28 66 6f 72 6d 61 74 20 22 23 25 73 22 20 6e 61 6d 65 29 29 0a 20 20 (hash...,(format."#%s".name))...
1a40 20 20 20 20 28 66 75 6e 63 74 69 6f 6e 20 2e 20 2c 28 66 6f 72 6d 61 74 20 22 25 73 28 22 20 69 ....(function...,(format."%s(".i
1a60 64 65 6e 74 29 29 0a 20 20 20 20 20 20 28 6e 75 6d 62 65 72 20 2e 20 2c 6e 75 6d 29 0a 20 20 20 dent)).......(number...,num)....
1a80 20 20 20 28 64 69 6d 65 6e 73 69 6f 6e 20 2e 20 2c 28 66 6f 72 6d 61 74 20 22 5c 5c 28 3f 3a 25 ...(dimension...,(format."\\(?:%
1aa0 73 5c 5c 29 25 73 22 20 6e 75 6d 20 75 6e 69 74 29 29 0a 20 20 20 20 20 20 28 70 72 65 66 69 78 s\\)%s".num.unit)).......(prefix
1ac0 2d 6d 61 74 63 68 20 2e 20 22 5c 5c 5e 3d 22 29 0a 20 20 20 20 20 20 28 73 75 66 66 69 78 2d 6d -match..."\\^=").......(suffix-m
1ae0 61 74 63 68 20 2e 20 22 5c 5c 24 3d 22 29 0a 20 20 20 20 20 20 28 73 75 62 73 74 72 69 6e 67 2d atch..."\\$=").......(substring-
1b00 6d 61 74 63 68 20 2e 20 22 5c 5c 2a 3d 22 29 0a 20 20 20 20 20 20 28 69 6e 63 6c 75 64 65 2d 6d match..."\\*=").......(include-m
1b20 61 74 63 68 20 2e 20 22 7e 3d 22 29 0a 20 20 20 20 20 20 28 64 61 73 68 2d 6d 61 74 63 68 20 2e atch..."~=").......(dash-match..
1b40 20 22 7c 3d 22 29 0a 20 20 20 20 20 20 28 63 6f 6d 6d 61 20 2e 20 22 2c 22 29 0a 20 20 20 20 20 ."|=").......(comma...",")......
1b60 20 28 67 74 20 2e 20 22 3e 22 29 0a 20 20 20 20 20 20 28 70 6c 75 73 20 2e 20 22 5c 5c 2b 22 29 .(gt...">").......(plus..."\\+")
1b80 0a 20 20 20 20 20 20 28 6d 69 6e 75 73 20 2e 20 22 2d 22 29 0a 20 20 20 20 20 20 28 74 69 6c 64 .......(minus..."-").......(tild
1ba0 65 20 2e 20 22 7e 22 29 0a 20 20 20 20 20 20 28 61 73 74 65 72 69 73 6b 20 2e 20 22 5c 5c 2a 22 e..."~").......(asterisk..."\\*"
1bc0 29 0a 20 20 20 20 20 20 28 70 65 72 69 6f 64 20 2e 20 22 5c 5c 2e 22 29 0a 20 20 20 20 20 20 28 ).......(period..."\\.").......(
1be0 65 71 75 61 6c 73 20 2e 20 22 3d 22 29 0a 20 20 20 20 20 20 28 63 6f 6c 6f 6e 20 2e 20 22 3a 22 equals..."=").......(colon...":"
1c00 29 0a 20 20 20 20 20 20 28 6c 62 72 61 63 6b 65 74 20 2e 20 22 5c 5c 5b 22 29 0a 20 20 20 20 20 ).......(lbracket..."\\[")......
1c20 20 28 72 62 72 61 63 6b 65 74 20 2e 20 22 5c 5c 5d 22 29 0a 20 20 20 20 20 20 28 72 70 61 72 65 .(rbracket..."\\]").......(rpare
1c40 6e 20 2e 20 22 29 22 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 74 6f 6b 65 6e n...")"))))..(defun.esxml--token
1c60 69 7a 65 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 20 28 73 74 72 69 6e 67 29 0a 20 20 28 6c 65 74 ize-css-selector.(string)...(let
1c80 20 28 72 65 73 75 6c 74 29 0a 20 20 20 20 28 77 69 74 68 2d 74 65 6d 70 2d 62 75 66 66 65 72 0a .(result).....(with-temp-buffer.
1ca0 20 20 20 20 20 20 28 69 6e 73 65 72 74 20 73 74 72 69 6e 67 29 0a 20 20 20 20 20 20 28 67 6f 74 ......(insert.string).......(got
1cc0 6f 2d 63 68 61 72 20 28 70 6f 69 6e 74 2d 6d 69 6e 29 29 0a 20 20 20 20 20 20 28 77 68 69 6c 65 o-char.(point-min)).......(while
1ce0 20 28 6e 6f 74 20 28 65 6f 62 70 29 29 0a 20 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 6d 61 78 .(not.(eobp)).........(let.((max
1d00 2d 6c 65 6e 67 74 68 20 30 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 6f 6e 67 65 73 74 -length.0)...............longest
1d20 29 0a 20 20 20 20 20 20 20 20 20 20 28 64 6f 6c 69 73 74 20 28 6d 61 74 63 68 65 72 20 65 73 78 )...........(dolist.(matcher.esx
1d40 6d 6c 2d 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 2d 74 6f 6b 65 6e 2d 6d 61 74 63 68 65 72 73 29 ml--css-selector-token-matchers)
1d60 0a 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 69 64 20 28 63 61 72 20 6d 61 74 63 .............(let.((id.(car.matc
1d80 68 65 72 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 72 65 20 28 63 64 72 her))...................(re.(cdr
1da0 20 6d 61 74 63 68 65 72 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 77 68 65 6e 20 .matcher)))...............(when.
1dc0 28 6c 6f 6f 6b 69 6e 67 2d 61 74 20 72 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 (looking-at.re).................
1de0 28 6c 65 74 2a 20 28 28 74 6f 6b 65 6e 20 28 6d 61 74 63 68 2d 73 74 72 69 6e 67 20 30 29 29 0a (let*.((token.(match-string.0)).
1e00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 6e 67 74 68 20 28 .......................(length.(
1e20 6c 65 6e 67 74 68 20 74 6f 6b 65 6e 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 length.token))).................
1e40 20 20 28 77 68 65 6e 20 28 3e 20 6c 65 6e 67 74 68 20 6d 61 78 2d 6c 65 6e 67 74 68 29 0a 20 20 ..(when.(>.length.max-length)...
1e60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 6d 61 78 2d 6c 65 6e 67 ..................(setq.max-leng
1e80 74 68 20 6c 65 6e 67 74 68 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 th.length).....................(
1ea0 73 65 74 71 20 6c 6f 6e 67 65 73 74 20 28 63 6f 6e 73 20 69 64 20 74 6f 6b 65 6e 29 29 29 29 29 setq.longest.(cons.id.token)))))
1ec0 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 77 68 65 6e 20 28 6e 6f 74 20 6c 6f 6e 67 65 73 74 29 ))...........(when.(not.longest)
1ee0 0a 20 20 20 20 20 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 49 6e 76 61 6c 69 64 20 74 6f 6b .............(error."Invalid.tok
1f00 65 6e 20 64 65 74 65 63 74 65 64 3a 20 25 73 22 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 en.detected:.%s"................
1f20 20 20 20 20 28 62 75 66 66 65 72 2d 73 75 62 73 74 72 69 6e 67 20 28 70 6f 69 6e 74 29 20 28 70 ....(buffer-substring.(point).(p
1f40 6f 69 6e 74 2d 6d 61 78 29 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 6c 6f 6e oint-max))))...........(push.lon
1f60 67 65 73 74 20 72 65 73 75 6c 74 29 0a 20 20 20 20 20 20 20 20 20 20 28 67 6f 74 6f 2d 63 68 61 gest.result)...........(goto-cha
1f80 72 20 28 2b 20 28 70 6f 69 6e 74 29 20 6d 61 78 2d 6c 65 6e 67 74 68 29 29 29 29 29 0a 20 20 20 r.(+.(point).max-length)))))....
1fa0 20 28 6e 72 65 76 65 72 73 65 20 72 65 73 75 6c 74 29 29 29 0a 0a 3b 3b 20 74 68 65 20 61 6c 74 .(nreverse.result)))..;;.the.alt
1fc0 65 72 6e 61 74 69 76 65 20 69 73 20 63 72 65 61 74 69 6e 67 20 61 20 6d 75 74 61 62 6c 65 20 6f ernative.is.creating.a.mutable.o
1fe0 62 6a 65 63 74 20 77 69 74 68 20 70 65 65 6b 2f 6e 65 78 74 20 6d 65 74 68 6f 64 73 0a 3b 3b 20 bject.with.peek/next.methods.;;.
2000 61 6e 64 20 70 61 73 73 69 6e 67 20 69 74 20 61 72 6f 75 6e 64 2c 20 73 6f 20 49 20 63 68 6f 73 and.passing.it.around,.so.I.chos
2020 65 20 74 68 65 20 6f 6e 65 20 72 65 71 75 69 72 69 6e 67 20 6c 65 73 73 20 74 79 70 69 6e 67 2c e.the.one.requiring.less.typing,
2040 20 61 0a 3b 3b 20 64 79 6e 61 6d 69 63 61 6c 6c 79 20 62 6f 75 6e 64 20 76 61 72 69 61 62 6c 65 .a.;;.dynamically.bound.variable
2060 20 3a 3c 0a 0a 28 64 65 66 76 61 72 20 65 73 78 6d 6c 2d 2d 74 6f 6b 65 6e 2d 73 74 72 65 61 6d .:<..(defvar.esxml--token-stream
2080 29 0a 0a 3b 3b 20 54 4f 44 4f 3a 20 73 75 70 70 6f 72 74 20 3a 6e 6f 74 0a 3b 3b 20 63 73 73 2d )..;;.TODO:.support.:not.;;.css-
20a0 73 65 6c 65 63 74 6f 72 3a 0a 3b 3b 20 20 20 63 73 73 2d 73 65 6c 65 63 74 6f 72 2d 6c 69 73 74 selector:.;;...css-selector-list
20c0 3b 0a 3b 3b 20 63 73 73 2d 73 65 6c 65 63 74 6f 72 2d 6c 69 73 74 3a 0a 3b 3b 20 20 20 63 6f 6d ;.;;.css-selector-list:.;;...com
20e0 70 6c 65 78 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 20 5b 20 63 6f 6d 6d 61 20 77 68 69 74 65 73 plex-css-selector.[.comma.whites
2100 70 61 63 65 2a 20 63 6f 6d 70 6c 65 78 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 20 5d 2a 3b 0a 3b pace*.complex-css-selector.]*;.;
2120 3b 20 63 6f 6d 70 6c 65 78 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 3a 0a 3b 3b 20 20 20 63 6f 6d ;.complex-css-selector:.;;...com
2140 70 6f 75 6e 64 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 20 5b 20 63 73 73 2d 63 6f 6d 62 69 6e 61 pound-css-selector.[.css-combina
2160 74 6f 72 20 63 6f 6d 70 6f 75 6e 64 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 20 5d 2a 20 77 68 69 tor.compound-css-selector.]*.whi
2180 74 65 73 70 61 63 65 2a 3b 0a 3b 3b 20 63 73 73 2d 63 6f 6d 62 69 6e 61 74 6f 72 3a 0a 3b 3b 20 tespace*;.;;.css-combinator:.;;.
21a0 20 20 77 68 69 74 65 73 70 61 63 65 2b 20 7c 20 77 68 69 74 65 73 70 61 63 65 2a 20 5b 20 27 3e ..whitespace+.|.whitespace*.[.'>
21c0 27 20 7c 20 27 2b 27 20 7c 20 27 7e 27 20 5d 20 77 68 69 74 65 73 70 61 63 65 2a 3b 0a 3b 3b 20 '.|.'+'.|.'~'.].whitespace*;.;;.
21e0 63 6f 6d 70 6f 75 6e 64 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 3a 0a 3b 3b 20 20 20 63 73 73 2d compound-css-selector:.;;...css-
2200 74 79 70 65 2d 73 65 6c 65 63 74 6f 72 20 63 73 73 2d 6d 6f 64 69 66 69 65 72 2a 20 7c 20 63 73 type-selector.css-modifier*.|.cs
2220 73 2d 6d 6f 64 69 66 69 65 72 2b 3b 0a 3b 3b 20 63 73 73 2d 74 79 70 65 2d 73 65 6c 65 63 74 6f s-modifier+;.;;.css-type-selecto
2240 72 3a 0a 3b 3b 20 20 20 49 44 45 4e 54 20 7c 20 2a 3b 0a 3b 3b 20 63 73 73 2d 6d 6f 64 69 66 69 r:.;;...IDENT.|.*;.;;.css-modifi
2260 65 72 3a 0a 3b 3b 20 20 20 20 63 73 73 2d 69 64 20 7c 20 63 73 73 2d 63 6c 61 73 73 20 7c 20 63 er:.;;....css-id.|.css-class.|.c
2280 73 73 2d 61 74 74 72 69 62 20 7c 20 63 73 73 2d 70 73 65 75 64 6f 3b 0a 3b 3b 20 63 73 73 2d 69 ss-attrib.|.css-pseudo;.;;.css-i
22a0 64 3a 0a 3b 3b 20 20 20 48 41 53 48 3b 0a 3b 3b 20 63 73 73 2d 63 6c 61 73 73 3a 0a 3b 3b 20 20 d:.;;...HASH;.;;.css-class:.;;..
22c0 20 27 2e 27 20 49 44 45 4e 54 3b 0a 3b 3b 20 63 73 73 2d 61 74 74 72 69 62 3a 0a 3b 3b 20 20 20 .'.'.IDENT;.;;.css-attrib:.;;...
22e0 27 5b 27 20 77 68 69 74 65 73 70 61 63 65 2a 20 63 73 73 2d 61 74 74 72 69 62 2d 6e 61 6d 65 20 '['.whitespace*.css-attrib-name.
2300 27 5d 27 0a 3b 3b 20 20 20 7c 20 27 5b 27 20 77 68 69 74 65 73 70 61 63 65 2a 20 63 73 73 2d 61 ']'.;;...|.'['.whitespace*.css-a
2320 74 74 72 69 62 2d 6e 61 6d 65 20 63 73 73 2d 61 74 74 72 69 62 2d 6d 61 74 63 68 20 63 73 73 2d ttrib-name.css-attrib-match.css-
2340 61 74 74 72 69 62 2d 76 61 6c 75 65 20 77 68 69 74 65 73 70 61 63 65 2a 20 27 5d 27 3b 0a 3b 3b attrib-value.whitespace*.']';.;;
2360 20 63 73 73 2d 61 74 74 72 69 62 2d 6e 61 6d 65 3a 0a 3b 3b 20 20 20 49 44 45 4e 54 20 77 68 69 .css-attrib-name:.;;...IDENT.whi
2380 74 65 73 70 61 63 65 2a 3b 0a 3b 3b 20 63 73 73 2d 61 74 74 72 69 62 2d 6d 61 74 63 68 3a 0a 3b tespace*;.;;.css-attrib-match:.;
23a0 3b 20 20 20 5b 20 27 3d 27 20 7c 20 50 52 45 46 49 58 2d 4d 41 54 43 48 20 7c 20 53 55 46 46 49 ;...[.'='.|.PREFIX-MATCH.|.SUFFI
23c0 58 2d 4d 41 54 43 48 20 7c 20 53 55 42 53 54 52 49 4e 47 2d 4d 41 54 43 48 20 7c 20 49 4e 43 4c X-MATCH.|.SUBSTRING-MATCH.|.INCL
23e0 55 44 45 2d 4d 41 54 43 48 20 7c 20 44 41 53 48 2d 4d 41 54 43 48 20 5d 20 77 68 69 74 65 73 70 UDE-MATCH.|.DASH-MATCH.].whitesp
2400 61 63 65 2a 3b 0a 3b 3b 20 63 73 73 2d 61 74 74 72 69 62 2d 76 61 6c 75 65 3a 0a 3b 3b 20 20 20 ace*;.;;.css-attrib-value:.;;...
2420 49 44 45 4e 54 20 7c 20 53 54 52 49 4e 47 3b 0a 3b 3b 20 63 73 73 2d 70 73 65 75 64 6f 3a 0a 3b IDENT.|.STRING;.;;.css-pseudo:.;
2440 3b 20 20 20 27 3a 27 20 27 3a 27 3f 20 5b 20 49 44 45 4e 54 20 7c 20 63 73 73 2d 66 75 6e 63 74 ;...':'.':'?.[.IDENT.|.css-funct
2460 69 6f 6e 61 6c 2d 70 73 65 75 64 6f 20 5d 3b 0a 3b 3b 20 63 73 73 2d 66 75 6e 63 74 69 6f 6e 61 ional-pseudo.];.;;.css-functiona
2480 6c 2d 70 73 65 75 64 6f 3a 0a 3b 3b 20 20 20 46 55 4e 43 54 49 4f 4e 20 77 68 69 74 65 73 70 61 l-pseudo:.;;...FUNCTION.whitespa
24a0 63 65 2a 20 5b 20 63 73 73 2d 65 78 70 72 65 73 73 69 6f 6e 20 77 68 69 74 65 73 70 61 63 65 2a ce*.[.css-expression.whitespace*
24c0 20 5d 2b 20 27 29 27 3b 0a 3b 3b 20 63 73 73 2d 65 78 70 72 65 73 73 69 6f 6e 3a 0a 3b 3b 20 20 .]+.')';.;;.css-expression:.;;..
24e0 20 27 2b 27 20 7c 20 27 2d 27 20 7c 20 44 49 4d 45 4e 53 49 4f 4e 20 7c 20 4e 55 4d 42 45 52 20 .'+'.|.'-'.|.DIMENSION.|.NUMBER.
2500 7c 20 53 54 52 49 4e 47 20 7c 20 49 44 45 4e 54 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 71 |.STRING.|.IDENT..(defun.esxml-q
2520 75 65 72 79 2d 63 73 73 2d 65 73 63 61 70 65 20 28 73 74 72 69 6e 67 29 0a 20 20 22 52 65 74 75 uery-css-escape.(string)..."Retu
2540 72 6e 73 20 65 73 63 61 70 65 64 20 76 65 72 73 69 6f 6e 20 6f 66 20 53 54 52 49 4e 47 20 66 6f rns.escaped.version.of.STRING.fo
2560 72 20 75 73 65 20 69 6e 20 73 65 6c 65 63 74 6f 72 73 2e 0a 54 68 65 20 6c 6f 67 69 63 20 75 73 r.use.in.selectors..The.logic.us
2580 65 64 20 68 65 72 65 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 74 68 65 20 43 53 53 2e 65 ed.here.corresponds.to.the.CSS.e
25a0 73 63 61 70 65 20 41 50 49 20 61 73 0a 73 70 65 63 69 66 69 65 64 20 69 6e 20 68 74 74 70 73 3a scape.API.as.specified.in.https:
25c0 2f 2f 64 72 61 66 74 73 2e 63 73 73 77 67 2e 6f 72 67 2f 63 73 73 6f 6d 2f 23 74 68 65 2d 63 73 //drafts.csswg.org/cssom/#the-cs
25e0 73 2e 65 73 63 61 70 65 28 29 2d 6d 65 74 68 6f 64 2e 22 0a 20 20 28 6c 65 74 20 28 63 68 61 72 s.escape()-method."...(let.(char
2600 73 29 0a 20 20 20 20 28 64 6f 74 69 6d 65 73 20 28 69 20 28 6c 65 6e 67 74 68 20 73 74 72 69 6e s).....(dotimes.(i.(length.strin
2620 67 29 29 0a 20 20 20 20 20 20 28 6c 65 74 2a 20 28 28 63 68 61 72 20 28 61 72 65 66 20 73 74 72 g)).......(let*.((char.(aref.str
2640 69 6e 67 20 69 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 75 6e 70 72 69 6e 74 61 62 6c ing.i))..............(unprintabl
2660 65 70 20 28 6f 72 20 28 61 6e 64 20 28 3e 3d 20 63 68 61 72 20 3f 5c 75 30 30 30 31 29 20 28 3c ep.(or.(and.(>=.char.?\u0001).(<
2680 3d 20 63 68 61 72 20 3f 5c 75 30 30 31 66 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 =.char.?\u001f))................
26a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 3d 20 63 68 61 72 20 3f 5c 75 30 30 37 66 29 ................(=.char.?\u007f)
26c0 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6e 6f 6e 61 73 63 69 69 70 20 28 3e 3d 20 63 ))..............(nonasciip.(>=.c
26e0 68 61 72 20 3f 5c 75 30 30 38 30 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 64 69 67 69 har.?\u0080))..............(digi
2700 74 70 20 28 61 6e 64 20 28 3e 3d 20 63 68 61 72 20 3f 5c 75 30 30 33 30 29 20 28 3c 3d 20 63 68 tp.(and.(>=.char.?\u0030).(<=.ch
2720 61 72 20 3f 5c 75 30 30 33 39 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 75 70 70 65 ar.?\u0039)))..............(uppe
2740 72 70 20 28 61 6e 64 20 28 3e 3d 20 63 68 61 72 20 3f 5c 75 30 30 34 31 29 20 28 3c 3d 20 63 68 rp.(and.(>=.char.?\u0041).(<=.ch
2760 61 72 20 3f 5c 75 30 30 35 61 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 6f 77 65 ar.?\u005a)))..............(lowe
2780 72 70 20 28 61 6e 64 20 28 3e 3d 20 63 68 61 72 20 3f 5c 75 30 30 36 31 29 20 28 3c 3d 20 63 68 rp.(and.(>=.char.?\u0061).(<=.ch
27a0 61 72 20 3f 5c 75 30 30 37 61 29 29 29 29 0a 20 20 20 20 20 20 20 20 28 63 6f 6e 64 0a 20 20 20 ar.?\u007a)))).........(cond....
27c0 20 20 20 20 20 20 28 28 3d 20 63 68 61 72 20 3f 5c 75 30 30 30 30 29 0a 20 20 20 20 20 20 20 20 ......((=.char.?\u0000).........
27e0 20 20 28 70 75 73 68 20 3f 5c 75 66 66 66 64 20 63 68 61 72 73 29 29 0a 20 20 20 20 20 20 20 20 ..(push.?\ufffd.chars)).........
2800 20 28 75 6e 70 72 69 6e 74 61 62 6c 65 70 0a 20 20 20 20 20 20 20 20 20 20 28 64 6f 6c 69 73 74 .(unprintablep...........(dolist
2820 20 28 63 68 61 72 20 28 73 74 72 69 6e 67 2d 74 6f 2d 6c 69 73 74 20 28 66 6f 72 6d 61 74 20 22 .(char.(string-to-list.(format."
2840 5c 5c 25 78 20 22 20 63 68 61 72 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 \\%x.".char))).............(push
2860 20 63 68 61 72 20 63 68 61 72 73 29 29 29 0a 20 20 20 20 20 20 20 20 20 28 28 61 6e 64 20 28 3d .char.chars)))..........((and.(=
2880 20 69 20 30 29 20 64 69 67 69 74 70 29 0a 20 20 20 20 20 20 20 20 20 20 28 64 6f 6c 69 73 74 20 .i.0).digitp)...........(dolist.
28a0 28 63 68 61 72 20 28 73 74 72 69 6e 67 2d 74 6f 2d 6c 69 73 74 20 28 66 6f 72 6d 61 74 20 22 5c (char.(string-to-list.(format."\
28c0 5c 25 78 20 22 20 63 68 61 72 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 \%x.".char))).............(push.
28e0 63 68 61 72 20 63 68 61 72 73 29 29 29 0a 20 20 20 20 20 20 20 20 20 28 28 61 6e 64 20 28 3d 20 char.chars)))..........((and.(=.
2900 69 20 31 29 20 64 69 67 69 74 70 20 28 3d 20 28 61 72 65 66 20 73 74 72 69 6e 67 20 30 29 20 3f i.1).digitp.(=.(aref.string.0).?
2920 2d 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 64 6f 6c 69 73 74 20 28 63 68 61 72 20 28 73 74 72 -))...........(dolist.(char.(str
2940 69 6e 67 2d 74 6f 2d 6c 69 73 74 20 28 66 6f 72 6d 61 74 20 22 5c 5c 25 78 20 22 20 63 68 61 72 ing-to-list.(format."\\%x.".char
2960 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 63 68 61 72 20 63 68 61 72 73 ))).............(push.char.chars
2980 29 29 29 0a 20 20 20 20 20 20 20 20 20 28 28 61 6e 64 20 28 3d 20 69 20 30 29 20 28 3d 20 63 68 )))..........((and.(=.i.0).(=.ch
29a0 61 72 20 3f 2d 29 20 28 3d 20 28 6c 65 6e 67 74 68 20 73 74 72 69 6e 67 29 20 31 29 29 0a 20 20 ar.?-).(=.(length.string).1))...
29c0 20 20 20 20 20 20 20 20 28 70 75 73 68 20 3f 5c 5c 20 63 68 61 72 73 29 0a 20 20 20 20 20 20 20 ........(push.?\\.chars)........
29e0 20 20 20 28 70 75 73 68 20 63 68 61 72 20 63 68 61 72 73 29 29 0a 20 20 20 20 20 20 20 20 20 28 ...(push.char.chars))..........(
2a00 28 6f 72 20 6e 6f 6e 61 73 63 69 69 70 20 28 3d 20 63 68 61 72 20 3f 2d 29 20 28 3d 20 63 68 61 (or.nonasciip.(=.char.?-).(=.cha
2a20 72 20 3f 5f 29 20 64 69 67 69 74 70 20 75 70 70 65 72 70 20 6c 6f 77 65 72 70 29 0a 20 20 20 20 r.?_).digitp.upperp.lowerp).....
2a40 20 20 20 20 20 20 28 70 75 73 68 20 63 68 61 72 20 63 68 61 72 73 29 29 0a 20 20 20 20 20 20 20 ......(push.char.chars))........
2a60 20 20 28 74 0a 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 3f 5c 5c 20 63 68 61 72 73 29 0a ..(t...........(push.?\\.chars).
2a80 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 63 68 61 72 20 63 68 61 72 73 29 29 29 29 29 0a ..........(push.char.chars))))).
2aa0 20 20 20 20 28 63 6f 6e 63 61 74 20 28 6e 72 65 76 65 72 73 65 20 63 68 61 72 73 29 29 29 29 0a ....(concat.(nreverse.chars)))).
2ac0 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 69 64 65 6e 74 69 66 .(defun.esxml--parse-css-identif
2ae0 69 65 72 20 28 73 74 72 69 6e 67 29 0a 20 20 3b 3b 20 68 74 74 70 73 3a 2f 2f 77 77 77 2e 77 33 ier.(string)...;;.https://www.w3
2b00 2e 6f 72 67 2f 54 52 2f 63 73 73 2d 73 79 6e 74 61 78 2d 33 2f 23 63 6f 6e 73 75 6d 65 2d 73 74 .org/TR/css-syntax-3/#consume-st
2b20 72 69 6e 67 2d 74 6f 6b 65 6e 0a 20 20 28 6c 65 74 2a 20 28 28 63 6f 64 65 2d 70 6f 69 6e 74 73 ring-token...(let*.((code-points
2b40 20 28 73 74 72 69 6e 67 2d 74 6f 2d 6c 69 73 74 20 73 74 72 69 6e 67 29 29 0a 20 20 20 20 20 20 .(string-to-list.string)).......
2b60 20 20 20 63 68 61 72 73 0a 20 20 20 20 20 20 20 20 20 74 6f 6b 65 6e 29 0a 20 20 20 20 28 77 68 ...chars..........token).....(wh
2b80 69 6c 65 20 63 6f 64 65 2d 70 6f 69 6e 74 73 0a 20 20 20 20 20 20 28 6c 65 74 20 28 28 63 68 61 ile.code-points.......(let.((cha
2ba0 72 20 28 70 6f 70 20 63 6f 64 65 2d 70 6f 69 6e 74 73 29 29 29 0a 20 20 20 20 20 20 20 20 28 69 r.(pop.code-points))).........(i
2bc0 66 20 28 3d 20 63 68 61 72 20 3f 5c 5c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 20 f.(=.char.?\\).............(let.
2be0 28 28 63 68 61 72 20 28 70 6f 70 20 63 6f 64 65 2d 70 6f 69 6e 74 73 29 29 29 0a 20 20 20 20 20 ((char.(pop.code-points)))......
2c00 20 20 20 20 20 20 20 20 20 28 63 6f 6e 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 28 .........(cond................((
2c20 6e 6f 74 20 63 68 61 72 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 28 3d 20 63 68 not.char))................((=.ch
2c40 61 72 20 3f 5c 6e 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 28 6f 72 20 28 61 6e ar.?\n))................((or.(an
2c60 64 20 28 3e 3d 20 63 68 61 72 20 3f 30 29 20 28 3c 3d 20 63 68 61 72 20 3f 39 29 29 0a 20 20 20 d.(>=.char.?0).(<=.char.?9))....
2c80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 61 6e 64 20 28 3e 3d 20 63 68 61 72 20 3f .................(and.(>=.char.?
2ca0 61 29 20 28 3c 3d 20 63 68 61 72 20 3f 66 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 a).(<=.char.?f))................
2cc0 20 20 20 20 20 28 61 6e 64 20 28 3e 3d 20 63 68 61 72 20 3f 41 29 20 28 3c 3d 20 63 68 61 72 20 .....(and.(>=.char.?A).(<=.char.
2ce0 3f 46 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 69 20 30 ?F))).................(let.((i.0
2d00 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 68 65 78 2d 63 68 61 ).......................(hex-cha
2d20 72 73 20 28 6c 69 73 74 20 63 68 61 72 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 rs.(list.char)))................
2d40 20 20 20 28 77 68 69 6c 65 20 28 61 6e 64 20 28 3c 20 69 20 35 29 20 63 6f 64 65 2d 70 6f 69 6e ...(while.(and.(<.i.5).code-poin
2d60 74 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 63 ts).....................(let.((c
2d80 68 61 72 20 28 63 61 72 20 63 6f 64 65 2d 70 6f 69 6e 74 73 29 29 29 0a 20 20 20 20 20 20 20 20 har.(car.code-points))).........
2da0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 69 66 20 28 6f 72 20 28 61 6e 64 20 28 3e 3d 20 63 ..............(if.(or.(and.(>=.c
2dc0 68 61 72 20 3f 30 29 20 28 3c 3d 20 63 68 61 72 20 3f 39 29 29 0a 20 20 20 20 20 20 20 20 20 20 har.?0).(<=.char.?9))...........
2de0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 61 6e 64 20 28 3e 3d 20 63 68 61 ....................(and.(>=.cha
2e00 72 20 3f 61 29 20 28 3c 3d 20 63 68 61 72 20 3f 66 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 r.?a).(<=.char.?f)).............
2e20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 61 6e 64 20 28 3e 3d 20 63 68 61 72 20 ..................(and.(>=.char.
2e40 3f 41 29 20 28 3c 3d 20 63 68 61 72 20 3f 46 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ?A).(<=.char.?F)))..............
2e60 20 20 20 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 28 70 6f 70 20 63 6f 64 65 2d 70 6f 69 .............(push.(pop.code-poi
2e80 6e 74 73 29 20 68 65 78 2d 63 68 61 72 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nts).hex-chars).................
2ea0 20 20 20 20 20 20 20 20 28 73 65 74 71 20 69 20 35 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 ........(setq.i.5)))............
2ec0 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 69 20 28 31 2b 20 69 29 29 29 0a 20 20 20 20 20 20 .........(setq.i.(1+.i))).......
2ee0 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 63 68 61 72 20 28 63 61 72 20 63 6f 64 ............(let.((char.(car.cod
2f00 65 2d 70 6f 69 6e 74 73 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e-points))).....................
2f20 28 77 68 65 6e 20 28 61 6e 64 20 63 68 61 72 20 28 3d 20 63 68 61 72 20 3f 5c 73 29 29 0a 20 20 (when.(and.char.(=.char.?\s))...
2f40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 70 6f 70 20 63 6f 64 65 2d 70 6f ....................(pop.code-po
2f60 69 6e 74 73 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 2a 20 ints)))...................(let*.
2f80 28 28 68 65 78 2d 74 6f 6b 65 6e 20 28 63 6f 6e 63 61 74 20 28 6e 72 65 76 65 72 73 65 20 68 65 ((hex-token.(concat.(nreverse.he
2fa0 78 2d 63 68 61 72 73 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 x-chars)))......................
2fc0 20 20 20 20 28 63 6f 64 65 2d 70 6f 69 6e 74 20 28 73 74 72 69 6e 67 2d 74 6f 2d 6e 75 6d 62 65 ....(code-point.(string-to-numbe
2fe0 72 20 68 65 78 2d 74 6f 6b 65 6e 20 31 36 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 r.hex-token.16)))...............
3000 20 20 20 20 20 20 28 69 66 20 28 6f 72 20 28 7a 65 72 6f 70 20 63 6f 64 65 2d 70 6f 69 6e 74 29 ......(if.(or.(zerop.code-point)
3020 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 61 6e .............................(an
3040 64 20 28 3e 3d 20 63 6f 64 65 2d 70 6f 69 6e 74 20 3f 5c 75 64 38 30 30 29 20 28 3c 3d 20 63 6f d.(>=.code-point.?\ud800).(<=.co
3060 64 65 2d 70 6f 69 6e 74 20 3f 5c 75 64 66 66 66 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 de-point.?\udfff))..............
3080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 3e 20 63 6f 64 65 2d 70 6f 69 6e 74 20 3f 5c 55 ...............(>.code-point.?\U
30a0 30 30 31 30 66 66 66 66 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0010ffff))......................
30c0 20 20 20 28 70 75 73 68 20 3f 5c 75 66 66 66 64 20 63 68 61 72 73 29 0a 20 20 20 20 20 20 20 20 ...(push.?\ufffd.chars).........
30e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 63 6f 64 65 2d 70 6f 69 6e 74 20 63 ..............(push.code-point.c
3100 68 61 72 73 29 29 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 74 20 3b 20 75 6e hars)))))................(t.;.un
3120 73 70 65 63 69 66 69 65 64 3a 20 6e 6f 6e 2d 68 65 78 20 64 69 67 69 74 0a 20 20 20 20 20 20 20 specified:.non-hex.digit........
3140 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 63 68 61 72 20 63 68 61 72 73 29 29 29 29 0a 20 20 .........(push.char.chars))))...
3160 20 20 20 20 20 20 20 20 28 70 75 73 68 20 63 68 61 72 20 63 68 61 72 73 29 29 29 29 0a 20 20 20 ........(push.char.chars))))....
3180 20 28 63 6f 6e 63 61 74 20 28 6e 72 65 76 65 72 73 65 20 63 68 61 72 73 29 29 29 29 0a 0a 28 64 .(concat.(nreverse.chars))))..(d
31a0 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 73 74 72 69 6e 67 2d 6c 69 74 efun.esxml--parse-css-string-lit
31c0 65 72 61 6c 20 28 73 74 72 69 6e 67 29 0a 20 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 eral.(string)...(esxml--parse-cs
31e0 73 2d 69 64 65 6e 74 69 66 69 65 72 20 28 73 75 62 73 74 72 69 6e 67 20 73 74 72 69 6e 67 20 31 s-identifier.(substring.string.1
3200 20 2d 31 29 29 29 0a 0a 28 64 65 66 6d 61 63 72 6f 20 65 73 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 .-1)))..(defmacro.esxml--with-pa
3220 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 20 28 26 72 65 73 74 20 62 6f 64 79 29 0a 20 20 60 28 rse-shorthands.(&rest.body)...`(
3240 63 6c 2d 6d 61 63 72 6f 6c 65 74 20 28 28 70 65 65 6b 20 28 29 20 27 28 63 61 72 20 65 73 78 6d cl-macrolet.((peek.().'(car.esxm
3260 6c 2d 2d 74 6f 6b 65 6e 2d 73 74 72 65 61 6d 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 l--token-stream))...............
3280 20 20 20 28 6e 65 78 74 20 28 29 20 27 28 70 6f 70 20 65 73 78 6d 6c 2d 2d 74 6f 6b 65 6e 2d 73 ...(next.().'(pop.esxml--token-s
32a0 74 72 65 61 6d 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 61 63 63 65 70 74 tream))..................(accept
32c0 20 28 74 79 70 65 29 20 60 28 61 6e 64 20 28 70 65 65 6b 29 20 28 65 71 20 28 63 61 72 20 28 70 .(type).`(and.(peek).(eq.(car.(p
32e0 65 65 6b 29 29 20 2c 74 79 70 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 eek)).,type)....................
3300 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 64 72 20 28 6e 65 78 74 29 29 29 ...................(cdr.(next)))
3320 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 61 74 2d 77 68 69 74 65 73 70 61 )..................(eat-whitespa
3340 63 65 20 28 29 20 27 28 77 68 69 6c 65 20 28 61 63 63 65 70 74 20 27 77 68 69 74 65 73 70 61 63 ce.().'(while.(accept.'whitespac
3360 65 29 29 29 29 0a 20 20 20 20 20 2c 40 62 6f 64 79 29 29 0a 28 64 65 66 2d 65 64 65 62 75 67 2d e))))......,@body)).(def-edebug-
3380 73 70 65 63 20 65 73 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 spec.esxml--with-parse-shorthand
33a0 73 20 28 62 6f 64 79 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 70 61 72 73 65 2d 63 73 s.(body))..(defun.esxml-parse-cs
33c0 73 2d 73 65 6c 65 63 74 6f 72 20 28 73 74 72 69 6e 67 29 0a 20 20 22 50 61 72 73 65 20 43 53 53 s-selector.(string)..."Parse.CSS
33e0 20 73 65 6c 65 63 74 6f 72 20 53 54 52 49 4e 47 20 69 6e 74 6f 20 61 20 6c 69 73 74 20 6f 66 20 .selector.STRING.into.a.list.of.
3400 61 6c 69 73 74 73 2e 0a 45 61 63 68 20 61 6c 69 73 74 20 72 65 70 72 65 73 65 6e 74 73 20 61 20 alists..Each.alist.represents.a.
3420 63 6f 6d 70 6c 65 78 20 43 53 53 20 73 65 6c 65 63 74 6f 72 2e 20 20 54 68 65 20 72 65 73 75 6c complex.CSS.selector...The.resul
3440 74 20 63 61 6e 20 62 65 0a 70 61 73 73 65 64 20 74 6f 20 60 65 73 78 6d 6c 2d 71 75 65 72 79 27 t.can.be.passed.to.`esxml-query'
3460 20 61 6e 64 20 60 65 73 78 6d 6c 2d 71 75 65 72 79 2d 61 6c 6c 27 20 61 73 20 74 68 65 20 73 65 .and.`esxml-query-all'.as.the.se
3480 6c 65 63 74 6f 72 0a 61 72 67 75 6d 65 6e 74 2e 22 0a 20 20 28 6c 65 74 2a 20 28 28 65 73 78 6d lector.argument."...(let*.((esxm
34a0 6c 2d 2d 74 6f 6b 65 6e 2d 73 74 72 65 61 6d 20 28 65 73 78 6d 6c 2d 2d 74 6f 6b 65 6e 69 7a 65 l--token-stream.(esxml--tokenize
34c0 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 20 73 74 72 69 6e 67 29 29 0a 20 20 20 20 20 20 20 20 20 -css-selector.string))..........
34e0 28 72 65 73 75 6c 74 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 73 65 6c 65 63 74 (result.(esxml--parse-css-select
3500 6f 72 2d 6c 69 73 74 29 29 29 0a 20 20 20 20 28 77 68 65 6e 20 65 73 78 6d 6c 2d 2d 74 6f 6b 65 or-list))).....(when.esxml--toke
3520 6e 2d 73 74 72 65 61 6d 0a 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 54 72 61 69 6c 69 6e 67 20 n-stream.......(error."Trailing.
3540 67 61 72 62 61 67 65 3a 20 25 73 22 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6d 61 70 63 6f garbage:.%s"..............(mapco
3560 6e 63 61 74 20 27 63 64 72 20 65 73 78 6d 6c 2d 2d 74 6f 6b 65 6e 2d 73 74 72 65 61 6d 20 22 22 ncat.'cdr.esxml--token-stream.""
3580 29 29 29 0a 20 20 20 20 72 65 73 75 6c 74 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d ))).....result))..(defun.esxml--
35a0 70 61 72 73 65 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 2d 6c 69 73 74 20 28 29 0a 20 20 28 65 73 parse-css-selector-list.()...(es
35c0 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a 20 20 20 28 6c xml--with-parse-shorthands....(l
35e0 65 74 20 28 28 66 69 72 73 74 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 6f 6d 70 6c 65 78 et.((first.(esxml--parse-complex
3600 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 29 29 0a 20 20 20 20 20 20 20 20 20 72 65 73 75 6c 74 29 -css-selector))..........result)
3620 0a 20 20 20 20 20 28 77 68 65 6e 20 28 6e 6f 74 20 66 69 72 73 74 29 0a 20 20 20 20 20 20 20 28 ......(when.(not.first)........(
3640 65 72 72 6f 72 20 22 45 78 70 65 63 74 65 64 20 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 73 65 6c error."Expected.at.least.one.sel
3660 65 63 74 6f 72 22 29 29 0a 20 20 20 20 20 28 70 75 73 68 20 66 69 72 73 74 20 72 65 73 75 6c 74 ector"))......(push.first.result
3680 29 0a 0a 20 20 20 20 20 28 77 68 69 6c 65 20 28 61 63 63 65 70 74 20 27 63 6f 6d 6d 61 29 0a 20 ).......(while.(accept.'comma)..
36a0 20 20 20 20 20 20 28 65 61 74 2d 77 68 69 74 65 73 70 61 63 65 29 0a 20 20 20 20 20 20 20 28 6c ......(eat-whitespace)........(l
36c0 65 74 20 28 28 73 65 6c 65 63 74 6f 72 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 6f 6d 70 et.((selector.(esxml--parse-comp
36e0 6c 65 78 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 29 29 29 0a 20 20 20 20 20 20 20 20 20 28 77 68 lex-css-selector)))..........(wh
3700 65 6e 20 28 6e 6f 74 20 73 65 6c 65 63 74 6f 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 65 72 en.(not.selector)............(er
3720 72 6f 72 20 22 45 78 70 65 63 74 65 64 20 73 65 6c 65 63 74 6f 72 20 61 66 74 65 72 20 63 6f 6d ror."Expected.selector.after.com
3740 6d 61 22 29 29 0a 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 73 65 6c 65 63 74 6f 72 20 72 65 ma"))..........(push.selector.re
3760 73 75 6c 74 29 29 29 0a 20 20 20 20 20 28 6e 72 65 76 65 72 73 65 20 72 65 73 75 6c 74 29 29 29 sult)))......(nreverse.result)))
3780 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 6f 6d 70 6c 65 78 2d 63 )..(defun.esxml--parse-complex-c
37a0 73 73 2d 73 65 6c 65 63 74 6f 72 20 28 29 0a 20 20 28 65 73 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 ss-selector.()...(esxml--with-pa
37c0 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a 20 20 20 28 6c 65 74 20 28 28 66 69 72 73 74 20 28 rse-shorthands....(let.((first.(
37e0 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 6f 6d 70 6f 75 6e 64 2d 63 73 73 2d 73 65 6c 65 63 74 esxml--parse-compound-css-select
3800 6f 72 29 29 0a 20 20 20 20 20 20 20 20 20 72 65 73 75 6c 74 20 64 6f 6e 65 29 0a 20 20 20 20 20 or))..........result.done)......
3820 28 77 68 65 6e 20 66 69 72 73 74 0a 20 20 20 20 20 20 20 28 70 75 73 68 20 66 69 72 73 74 20 72 (when.first........(push.first.r
3840 65 73 75 6c 74 29 0a 0a 20 20 20 20 20 20 20 28 77 68 69 6c 65 20 28 6e 6f 74 20 64 6f 6e 65 29 esult).........(while.(not.done)
3860 0a 20 20 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 63 6f 6d 62 69 6e 61 74 6f 72 20 28 65 73 78 ..........(let.((combinator.(esx
3880 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 63 6f 6d 62 69 6e 61 74 6f 72 29 29 29 0a 20 20 20 20 ml--parse-css-combinator))).....
38a0 20 20 20 20 20 20 20 28 69 66 20 63 6f 6d 62 69 6e 61 74 6f 72 0a 20 20 20 20 20 20 20 20 20 20 .......(if.combinator...........
38c0 20 20 20 20 20 28 6c 65 74 20 28 28 63 6f 6d 70 6f 75 6e 64 20 28 65 73 78 6d 6c 2d 2d 70 61 72 .....(let.((compound.(esxml--par
38e0 73 65 2d 63 6f 6d 70 6f 75 6e 64 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 29 29 29 0a 20 20 20 20 se-compound-css-selector))).....
3900 20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 6f 6e 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .............(cond..............
3920 20 20 20 20 20 28 63 6f 6d 70 6f 75 6e 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .....(compound..................
3940 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 28 61 70 70 65 6e 64 20 28 6c 69 73 74 20 63 6f 6d ..(setq.result.(append.(list.com
3960 70 6f 75 6e 64 20 63 6f 6d 62 69 6e 61 74 6f 72 29 20 72 65 73 75 6c 74 29 29 29 0a 20 20 20 20 pound.combinator).result))).....
3980 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 3b 20 61 6c 6c 6f 77 20 77 68 69 74 65 73 70 61 63 ..............;;.allow.whitespac
39a0 65 20 62 65 66 6f 72 65 20 63 6f 6d 6d 61 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e.before.comma..................
39c0 20 28 28 6e 6f 74 20 28 65 71 20 28 63 61 72 20 28 70 65 65 6b 29 29 20 27 63 6f 6d 6d 61 29 29 .((not.(eq.(car.(peek)).'comma))
39e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 54 72 61 69 ....................(error."Trai
3a00 6c 69 6e 67 20 63 6f 6d 62 69 6e 61 74 6f 72 22 29 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 ling.combinator"))))............
3a20 20 20 28 73 65 74 71 20 64 6f 6e 65 20 74 29 29 29 29 0a 20 20 20 20 20 20 20 28 6e 72 65 76 65 ..(setq.done.t))))........(nreve
3a40 72 73 65 20 72 65 73 75 6c 74 29 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 rse.result)))))..(defun.esxml--p
3a60 61 72 73 65 2d 63 73 73 2d 63 6f 6d 62 69 6e 61 74 6f 72 20 28 29 0a 20 20 28 65 73 78 6d 6c 2d arse-css-combinator.()...(esxml-
3a80 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a 20 20 20 3b 3b 20 4e 4f 54 -with-parse-shorthands....;;.NOT
3aa0 45 3a 20 77 68 69 74 65 73 70 61 63 65 2d 73 75 72 72 6f 75 6e 64 65 64 20 63 6f 6d 62 69 6e 61 E:.whitespace-surrounded.combina
3ac0 74 6f 72 73 20 61 72 65 20 64 69 73 74 69 6e 67 75 69 73 68 65 64 20 66 72 6f 6d 0a 20 20 20 3b tors.are.distinguished.from....;
3ae0 3b 20 77 68 69 74 65 73 70 61 63 65 2d 6f 6e 6c 79 20 6f 6e 65 73 20 62 79 20 63 68 65 63 6b 69 ;.whitespace-only.ones.by.checki
3b00 6e 67 20 77 68 65 74 68 65 72 20 74 68 65 72 65 20 68 61 73 20 62 65 65 6e 0a 20 20 20 3b 3b 20 ng.whether.there.has.been....;;.
3b20 77 68 69 74 65 73 70 61 63 65 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 61 20 6e 6f 6e 2d 62 6c 61 whitespace.followed.by.a.non-bla
3b40 6e 6b 20 63 6f 6d 62 69 6e 61 74 6f 72 0a 20 20 20 28 6c 65 74 20 28 28 6c 65 61 64 69 6e 67 2d nk.combinator....(let.((leading-
3b60 77 68 69 74 65 73 70 61 63 65 2d 70 20 28 65 71 20 28 63 61 72 20 28 70 65 65 6b 29 29 20 27 77 whitespace-p.(eq.(car.(peek)).'w
3b80 68 69 74 65 73 70 61 63 65 29 29 0a 20 20 20 20 20 20 20 20 20 72 65 73 75 6c 74 29 0a 20 20 20 hitespace))..........result)....
3ba0 20 20 28 65 61 74 2d 77 68 69 74 65 73 70 61 63 65 29 0a 20 20 20 20 20 28 6c 65 74 20 28 28 74 ..(eat-whitespace)......(let.((t
3bc0 79 70 65 20 28 63 61 72 20 28 70 65 65 6b 29 29 29 29 0a 20 20 20 20 20 20 20 28 63 6f 6e 64 0a ype.(car.(peek))))........(cond.
3be0 20 20 20 20 20 20 20 20 28 28 6d 65 6d 62 65 72 20 74 79 70 65 20 27 28 67 74 20 70 6c 75 73 20 ........((member.type.'(gt.plus.
3c00 74 69 6c 64 65 29 29 0a 20 20 20 20 20 20 20 20 20 28 6e 65 78 74 29 0a 20 20 20 20 20 20 20 20 tilde))..........(next).........
3c20 20 28 63 6f 6e 64 0a 20 20 20 20 20 20 20 20 20 20 28 28 65 71 20 74 79 70 65 20 27 67 74 29 0a .(cond...........((eq.type.'gt).
3c40 20 20 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 27 28 28 63 6f 6d 62 69 ...........(setq.result.'((combi
3c60 6e 61 74 6f 72 20 2e 20 63 68 69 6c 64 29 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 28 65 71 nator...child))))...........((eq
3c80 20 74 79 70 65 20 27 70 6c 75 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 72 65 .type.'plus)............(setq.re
3ca0 73 75 6c 74 20 27 28 28 63 6f 6d 62 69 6e 61 74 6f 72 20 2e 20 64 69 72 65 63 74 2d 73 69 62 6c sult.'((combinator...direct-sibl
3cc0 69 6e 67 29 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 28 65 71 20 74 79 70 65 20 27 74 69 6c ing))))...........((eq.type.'til
3ce0 64 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 27 28 28 63 de)............(setq.result.'((c
3d00 6f 6d 62 69 6e 61 74 6f 72 20 2e 20 69 6e 64 69 72 65 63 74 2d 73 69 62 6c 69 6e 67 29 29 29 29 ombinator...indirect-sibling))))
3d20 29 0a 20 20 20 20 20 20 20 20 20 28 65 61 74 2d 77 68 69 74 65 73 70 61 63 65 29 29 0a 20 20 20 )..........(eat-whitespace))....
3d40 20 20 20 20 20 28 6c 65 61 64 69 6e 67 2d 77 68 69 74 65 73 70 61 63 65 2d 70 0a 20 20 20 20 20 .....(leading-whitespace-p......
3d60 20 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 27 28 28 63 6f 6d 62 69 6e 61 74 6f 72 20 2e ....(setq.result.'((combinator..
3d80 20 64 65 73 63 65 6e 64 61 6e 74 29 29 29 29 0a 20 20 20 20 20 20 20 20 28 74 20 6e 69 6c 29 29 .descendant)))).........(t.nil))
3da0 29 0a 20 20 20 20 20 72 65 73 75 6c 74 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d )......result)))..(defun.esxml--
3dc0 70 61 72 73 65 2d 63 6f 6d 70 6f 75 6e 64 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 20 28 29 0a 20 parse-compound-css-selector.()..
3de0 20 28 65 73 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a 20 .(esxml--with-parse-shorthands..
3e00 20 20 28 6c 65 74 20 28 28 74 79 70 65 2d 73 65 6c 65 63 74 6f 72 20 28 65 73 78 6d 6c 2d 2d 70 ..(let.((type-selector.(esxml--p
3e20 61 72 73 65 2d 63 73 73 2d 74 79 70 65 2d 73 65 6c 65 63 74 6f 72 29 29 0a 20 20 20 20 20 20 20 arse-css-type-selector))........
3e40 20 20 64 6f 6e 65 0a 20 20 20 20 20 20 20 20 20 72 65 73 75 6c 74 29 0a 20 20 20 20 20 3b 3b 20 ..done..........result)......;;.
3e60 4e 4f 54 45 3a 20 63 73 73 2d 74 79 70 65 2d 73 65 6c 65 63 74 6f 72 20 63 73 73 2d 6d 6f 64 69 NOTE:.css-type-selector.css-modi
3e80 66 69 65 72 2a 20 7c 20 63 73 73 2d 6d 6f 64 69 66 69 65 72 2b 3b 20 69 73 0a 20 20 20 20 20 3b fier*.|.css-modifier+;.is......;
3ea0 3b 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 3a 20 5b 20 63 73 73 2d 74 79 70 65 2d 73 65 6c 65 ;.equivalent.to:.[.css-type-sele
3ec0 63 74 6f 72 20 7c 20 63 73 73 2d 6d 6f 64 69 66 69 65 72 20 5d 20 63 73 73 2d 6d 6f 64 69 66 69 ctor.|.css-modifier.].css-modifi
3ee0 65 72 2a 3b 0a 20 20 20 20 20 28 69 66 20 74 79 70 65 2d 73 65 6c 65 63 74 6f 72 0a 20 20 20 20 er*;......(if.type-selector.....
3f00 20 20 20 20 20 28 70 75 73 68 20 74 79 70 65 2d 73 65 6c 65 63 74 6f 72 20 72 65 73 75 6c 74 29 .....(push.type-selector.result)
3f20 0a 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 6d 6f 64 69 66 69 65 72 20 28 65 73 78 6d 6c 2d 2d ........(let.((modifier.(esxml--
3f40 70 61 72 73 65 2d 63 73 73 2d 6d 6f 64 69 66 69 65 72 29 29 29 0a 20 20 20 20 20 20 20 20 20 28 parse-css-modifier)))..........(
3f60 69 66 20 6d 6f 64 69 66 69 65 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 6d if.modifier..............(push.m
3f80 6f 64 69 66 69 65 72 20 72 65 73 75 6c 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 3b 3b 20 4e 4f odifier.result)............;;.NO
3fa0 54 45 3a 20 74 68 69 73 20 61 6c 6c 6f 77 73 20 74 68 65 20 74 72 61 69 6c 69 6e 67 20 63 6f 6d TE:.this.allows.the.trailing.com
3fc0 62 69 6e 61 74 6f 72 20 65 72 72 6f 72 20 74 6f 20 62 65 20 74 68 72 6f 77 6e 0a 20 20 20 20 20 binator.error.to.be.thrown......
3fe0 20 20 20 20 20 20 28 73 65 74 71 20 64 6f 6e 65 20 74 29 29 29 29 0a 0a 20 20 20 20 20 28 77 68 ......(setq.done.t)))).......(wh
4000 69 6c 65 20 28 6e 6f 74 20 64 6f 6e 65 29 0a 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 6d 6f 64 ile.(not.done)........(let.((mod
4020 69 66 69 65 72 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 6d 6f 64 69 66 69 65 72 ifier.(esxml--parse-css-modifier
4040 29 29 29 0a 20 20 20 20 20 20 20 20 20 28 69 66 20 6d 6f 64 69 66 69 65 72 0a 20 20 20 20 20 20 )))..........(if.modifier.......
4060 20 20 20 20 20 20 20 28 70 75 73 68 20 6d 6f 64 69 66 69 65 72 20 72 65 73 75 6c 74 29 0a 20 20 .......(push.modifier.result)...
4080 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 64 6f 6e 65 20 74 29 29 29 29 0a 20 20 20 20 20 28 .........(setq.done.t))))......(
40a0 77 68 65 6e 20 28 3e 20 28 63 6c 2d 63 6f 75 6e 74 20 27 69 64 20 72 65 73 75 6c 74 20 3a 6b 65 when.(>.(cl-count.'id.result.:ke
40c0 79 20 27 63 61 72 29 20 31 29 0a 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 4f 6e 6c 79 20 6f y.'car).1)........(error."Only.o
40e0 6e 65 20 69 64 20 73 65 6c 65 63 74 6f 72 20 61 6c 6c 6f 77 65 64 20 70 65 72 20 63 6f 6d 70 6f ne.id.selector.allowed.per.compo
4100 75 6e 64 22 29 29 0a 20 20 20 20 20 28 6e 72 65 76 65 72 73 65 20 72 65 73 75 6c 74 29 29 29 29 und"))......(nreverse.result))))
4120 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 74 79 70 65 2d 73 ..(defun.esxml--parse-css-type-s
4140 65 6c 65 63 74 6f 72 20 28 29 0a 20 20 28 65 73 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d elector.()...(esxml--with-parse-
4160 73 68 6f 72 74 68 61 6e 64 73 0a 20 20 20 28 6c 65 74 20 28 28 74 6f 6b 65 6e 20 28 70 65 65 6b shorthands....(let.((token.(peek
4180 29 29 29 0a 20 20 20 20 20 28 63 6f 6e 64 0a 20 20 20 20 20 20 28 28 65 71 20 28 63 61 72 20 74 )))......(cond.......((eq.(car.t
41a0 6f 6b 65 6e 29 20 27 69 64 65 6e 74 29 0a 20 20 20 20 20 20 20 28 6e 65 78 74 29 0a 20 20 20 20 oken).'ident)........(next).....
41c0 20 20 20 28 63 6f 6e 73 20 27 74 61 67 20 28 69 6e 74 65 72 6e 20 28 65 73 78 6d 6c 2d 2d 70 61 ...(cons.'tag.(intern.(esxml--pa
41e0 72 73 65 2d 63 73 73 2d 69 64 65 6e 74 69 66 69 65 72 20 28 63 64 72 20 74 6f 6b 65 6e 29 29 29 rse-css-identifier.(cdr.token)))
4200 29 29 0a 20 20 20 20 20 20 28 28 65 71 20 28 63 61 72 20 74 6f 6b 65 6e 29 20 27 61 73 74 65 72 )).......((eq.(car.token).'aster
4220 69 73 6b 29 0a 20 20 20 20 20 20 20 28 6e 65 78 74 29 0a 20 20 20 20 20 20 20 27 28 77 69 6c 64 isk)........(next)........'(wild
4240 63 61 72 64 29 29 0a 20 20 20 20 20 20 28 74 20 6e 69 6c 29 29 29 29 29 0a 0a 28 64 65 66 75 6e card)).......(t.nil)))))..(defun
4260 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 6d 6f 64 69 66 69 65 72 20 28 29 0a 20 20 .esxml--parse-css-modifier.()...
4280 28 6f 72 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 69 64 29 0a 20 20 20 20 20 20 (or.(esxml--parse-css-id).......
42a0 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 63 6c 61 73 73 29 0a 20 20 20 20 20 20 28 (esxml--parse-css-class).......(
42c0 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 61 74 74 72 69 62 29 0a 20 20 20 20 20 20 28 esxml--parse-css-attrib).......(
42e0 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 70 73 65 75 64 6f 29 29 29 0a 0a 28 64 65 66 esxml--parse-css-pseudo)))..(def
4300 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 69 64 20 28 29 0a 20 20 28 65 73 78 un.esxml--parse-css-id.()...(esx
4320 6d 6c 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a 20 20 20 28 6c 65 ml--with-parse-shorthands....(le
4340 74 20 28 28 76 61 6c 75 65 20 28 61 63 63 65 70 74 20 27 68 61 73 68 29 29 29 0a 20 20 20 20 20 t.((value.(accept.'hash)))......
4360 28 77 68 65 6e 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 28 63 6f 6e 73 20 27 69 64 20 28 73 75 (when.value........(cons.'id.(su
4380 62 73 74 72 69 6e 67 20 76 61 6c 75 65 20 31 29 29 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 bstring.value.1))))))..(defun.es
43a0 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 63 6c 61 73 73 20 28 29 0a 20 20 28 65 73 78 6d 6c xml--parse-css-class.()...(esxml
43c0 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a 20 20 20 28 77 68 65 6e --with-parse-shorthands....(when
43e0 20 28 61 63 63 65 70 74 20 27 70 65 72 69 6f 64 29 0a 20 20 20 20 20 28 6c 65 74 20 28 28 76 61 .(accept.'period)......(let.((va
4400 6c 75 65 20 28 61 63 63 65 70 74 20 27 69 64 65 6e 74 29 29 29 0a 20 20 20 20 20 20 20 28 69 66 lue.(accept.'ident)))........(if
4420 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 20 20 20 20 28 63 6f 6e 73 20 27 63 6c 61 73 73 20 76 .value............(cons.'class.v
4440 61 6c 75 65 29 0a 20 20 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 45 78 70 65 63 74 65 64 20 alue)..........(error."Expected.
4460 69 64 65 6e 74 69 66 69 65 72 20 61 66 74 65 72 20 70 65 72 69 6f 64 22 29 29 29 29 29 29 0a 0a identifier.after.period"))))))..
4480 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 61 74 74 72 69 62 20 28 (defun.esxml--parse-css-attrib.(
44a0 29 0a 20 20 28 65 73 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 )...(esxml--with-parse-shorthand
44c0 73 0a 20 20 20 28 6c 65 74 20 28 72 65 73 75 6c 74 29 0a 20 20 20 20 20 28 77 68 65 6e 20 28 61 s....(let.(result)......(when.(a
44e0 63 63 65 70 74 20 27 6c 62 72 61 63 6b 65 74 29 0a 20 20 20 20 20 20 20 28 65 61 74 2d 77 68 69 ccept.'lbracket)........(eat-whi
4500 74 65 73 70 61 63 65 29 0a 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 6e 61 6d 65 20 28 65 73 78 tespace)........(let.((name.(esx
4520 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 61 74 74 72 69 62 2d 6e 61 6d 65 29 29 29 0a 20 20 20 ml--parse-css-attrib-name)))....
4540 20 20 20 20 20 20 28 77 68 65 6e 20 28 6e 6f 74 20 6e 61 6d 65 29 0a 20 20 20 20 20 20 20 20 20 ......(when.(not.name)..........
4560 20 20 28 65 72 72 6f 72 20 22 45 78 70 65 63 74 65 64 20 61 74 74 72 69 62 75 74 65 20 6e 61 6d ..(error."Expected.attribute.nam
4580 65 22 29 29 0a 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 28 63 6f 6e 73 20 27 6e 61 6d 65 20 e"))..........(push.(cons.'name.
45a0 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 69 64 65 6e 74 69 66 69 65 72 20 6e 61 6d (esxml--parse-css-identifier.nam
45c0 65 29 29 20 72 65 73 75 6c 74 29 0a 20 20 20 20 20 20 20 20 20 28 77 68 65 6e 20 28 6e 6f 74 20 e)).result)..........(when.(not.
45e0 28 61 63 63 65 70 74 20 27 72 62 72 61 63 6b 65 74 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 (accept.'rbracket))............(
4600 6c 65 74 20 28 28 6d 61 74 63 68 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 61 74 let.((match.(esxml--parse-css-at
4620 74 72 69 62 2d 6d 61 74 63 68 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 77 68 65 6e trib-match)))..............(when
4640 20 28 6e 6f 74 20 6d 61 74 63 68 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 72 72 .(not.match)................(err
4660 6f 72 20 22 45 78 70 65 63 74 65 64 20 61 74 74 72 69 62 75 74 65 20 6d 61 74 63 68 65 72 22 29 or."Expected.attribute.matcher")
4680 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 76 61 6c 75 65 20 28 65 73 78 )..............(let.((value.(esx
46a0 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 61 74 74 72 69 62 2d 76 61 6c 75 65 29 29 29 0a 20 20 ml--parse-css-attrib-value)))...
46c0 20 20 20 20 20 20 20 20 20 20 20 20 20 28 77 68 65 6e 20 28 6e 6f 74 20 76 61 6c 75 65 29 0a 20 .............(when.(not.value)..
46e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 45 78 70 65 63 74 65 64 ................(error."Expected
4700 20 61 74 74 72 69 62 75 74 65 20 76 61 6c 75 65 22 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 .attribute.value")).............
4720 20 20 20 28 65 61 74 2d 77 68 69 74 65 73 70 61 63 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 ...(eat-whitespace).............
4740 20 20 20 28 77 68 65 6e 20 28 6e 6f 74 20 28 61 63 63 65 70 74 20 27 72 62 72 61 63 6b 65 74 29 ...(when.(not.(accept.'rbracket)
4760 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 55 6e 74 65 72 )..................(error."Unter
4780 6d 69 6e 61 74 65 64 20 61 74 74 72 69 62 75 74 65 22 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 minated.attribute"))............
47a0 20 20 20 20 28 70 75 73 68 20 28 63 6f 6e 73 20 6d 61 74 63 68 20 76 61 6c 75 65 29 20 72 65 73 ....(push.(cons.match.value).res
47c0 75 6c 74 29 29 29 29 29 0a 20 20 20 20 20 20 20 28 63 6f 6e 73 20 27 61 74 74 72 69 62 75 74 65 ult)))))........(cons.'attribute
47e0 20 28 6e 72 65 76 65 72 73 65 20 72 65 73 75 6c 74 29 29 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 .(nreverse.result))))))..(defun.
4800 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 61 74 74 72 69 62 2d 6e 61 6d 65 20 28 29 0a esxml--parse-css-attrib-name.().
4820 20 20 28 65 73 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a ..(esxml--with-parse-shorthands.
4840 20 20 20 28 6c 65 74 20 28 28 6e 61 6d 65 20 28 61 63 63 65 70 74 20 27 69 64 65 6e 74 29 29 29 ...(let.((name.(accept.'ident)))
4860 0a 20 20 20 20 20 28 77 68 65 6e 20 6e 61 6d 65 0a 20 20 20 20 20 20 20 28 65 61 74 2d 77 68 69 ......(when.name........(eat-whi
4880 74 65 73 70 61 63 65 29 0a 20 20 20 20 20 20 20 6e 61 6d 65 29 29 29 29 0a 0a 28 64 65 66 75 6e tespace)........name))))..(defun
48a0 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 61 74 74 72 69 62 2d 6d 61 74 63 68 20 28 .esxml--parse-css-attrib-match.(
48c0 29 0a 20 20 28 65 73 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 )...(esxml--with-parse-shorthand
48e0 73 0a 20 20 20 28 6c 65 74 20 28 72 65 73 75 6c 74 29 0a 20 20 20 20 20 28 63 6f 6e 64 0a 20 20 s....(let.(result)......(cond...
4900 20 20 20 20 28 28 61 63 63 65 70 74 20 27 65 71 75 61 6c 73 29 0a 20 20 20 20 20 20 20 28 73 65 ....((accept.'equals)........(se
4920 74 71 20 72 65 73 75 6c 74 20 27 65 78 61 63 74 2d 6d 61 74 63 68 29 29 0a 20 20 20 20 20 20 28 tq.result.'exact-match)).......(
4940 28 61 63 63 65 70 74 20 27 70 72 65 66 69 78 2d 6d 61 74 63 68 29 0a 20 20 20 20 20 20 20 28 73 (accept.'prefix-match)........(s
4960 65 74 71 20 72 65 73 75 6c 74 20 27 70 72 65 66 69 78 2d 6d 61 74 63 68 29 29 0a 20 20 20 20 20 etq.result.'prefix-match))......
4980 20 28 28 61 63 63 65 70 74 20 27 73 75 66 66 69 78 2d 6d 61 74 63 68 29 0a 20 20 20 20 20 20 20 .((accept.'suffix-match)........
49a0 28 73 65 74 71 20 72 65 73 75 6c 74 20 27 73 75 66 66 69 78 2d 6d 61 74 63 68 29 29 0a 20 20 20 (setq.result.'suffix-match))....
49c0 20 20 20 28 28 61 63 63 65 70 74 20 27 73 75 62 73 74 72 69 6e 67 2d 6d 61 74 63 68 29 0a 20 20 ...((accept.'substring-match)...
49e0 20 20 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 27 73 75 62 73 74 72 69 6e 67 2d 6d 61 74 .....(setq.result.'substring-mat
4a00 63 68 29 29 0a 20 20 20 20 20 20 28 28 61 63 63 65 70 74 20 27 69 6e 63 6c 75 64 65 2d 6d 61 74 ch)).......((accept.'include-mat
4a20 63 68 29 0a 20 20 20 20 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 27 69 6e 63 6c 75 64 65 ch)........(setq.result.'include
4a40 2d 6d 61 74 63 68 29 29 0a 20 20 20 20 20 20 28 28 61 63 63 65 70 74 20 27 64 61 73 68 2d 6d 61 -match)).......((accept.'dash-ma
4a60 74 63 68 29 0a 20 20 20 20 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 27 64 61 73 68 2d 6d tch)........(setq.result.'dash-m
4a80 61 74 63 68 29 29 29 0a 20 20 20 20 20 28 65 61 74 2d 77 68 69 74 65 73 70 61 63 65 29 0a 20 20 atch)))......(eat-whitespace)...
4aa0 20 20 20 72 65 73 75 6c 74 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 72 73 ...result)))..(defun.esxml--pars
4ac0 65 2d 63 73 73 2d 61 74 74 72 69 62 2d 76 61 6c 75 65 20 28 29 0a 20 20 28 65 73 78 6d 6c 2d 2d e-css-attrib-value.()...(esxml--
4ae0 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a 20 20 20 28 6c 65 74 20 28 28 with-parse-shorthands....(let.((
4b00 74 6f 6b 65 6e 20 28 70 65 65 6b 29 29 29 0a 20 20 20 20 20 28 63 6f 6e 64 0a 20 20 20 20 20 20 token.(peek)))......(cond.......
4b20 28 28 65 71 20 28 63 61 72 20 74 6f 6b 65 6e 29 20 27 69 64 65 6e 74 29 0a 20 20 20 20 20 20 20 ((eq.(car.token).'ident)........
4b40 28 6e 65 78 74 29 0a 20 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d (next)........(esxml--parse-css-
4b60 69 64 65 6e 74 69 66 69 65 72 20 28 63 64 72 20 74 6f 6b 65 6e 29 29 29 0a 20 20 20 20 20 20 28 identifier.(cdr.token))).......(
4b80 28 65 71 20 28 63 61 72 20 74 6f 6b 65 6e 29 20 27 73 74 72 69 6e 67 29 0a 20 20 20 20 20 20 20 (eq.(car.token).'string)........
4ba0 28 6e 65 78 74 29 0a 20 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d (next)........(esxml--parse-css-
4bc0 73 74 72 69 6e 67 2d 6c 69 74 65 72 61 6c 20 28 63 64 72 20 74 6f 6b 65 6e 29 29 29 0a 20 20 20 string-literal.(cdr.token)))....
4be0 20 20 20 28 74 20 6e 69 6c 29 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 ...(t.nil)))))..(defun.esxml--pa
4c00 72 73 65 2d 63 73 73 2d 70 73 65 75 64 6f 20 28 29 0a 20 20 28 65 73 78 6d 6c 2d 2d 77 69 74 68 rse-css-pseudo.()...(esxml--with
4c20 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a 20 20 20 28 6c 65 74 20 28 72 65 73 75 6c -parse-shorthands....(let.(resul
4c40 74 20 74 79 70 65 29 0a 20 20 20 20 20 28 77 68 65 6e 20 28 61 63 63 65 70 74 20 27 63 6f 6c 6f t.type)......(when.(accept.'colo
4c60 6e 29 0a 20 20 20 20 20 20 20 28 69 66 20 28 61 63 63 65 70 74 20 27 63 6f 6c 6f 6e 29 0a 20 20 n)........(if.(accept.'colon)...
4c80 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 74 79 70 65 20 27 70 73 65 75 64 6f 2d 65 6c 65 6d .........(setq.type.'pseudo-elem
4ca0 65 6e 74 29 0a 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 74 79 70 65 20 27 70 73 65 75 64 6f ent)..........(setq.type.'pseudo
4cc0 2d 63 6c 61 73 73 29 29 0a 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 66 75 6e 63 74 69 6f 6e 61 -class))........(let.((functiona
4ce0 6c 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 66 75 6e 63 74 69 6f 6e 61 6c 2d 70 l.(esxml--parse-css-functional-p
4d00 73 65 75 64 6f 29 29 29 0a 20 20 20 20 20 20 20 20 20 28 69 66 20 66 75 6e 63 74 69 6f 6e 61 6c seudo)))..........(if.functional
4d20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 69 66 20 28 65 71 20 74 79 70 65 20 27 70 73 65 75 ..............(if.(eq.type.'pseu
4d40 64 6f 2d 63 6c 61 73 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 20 do-class)..................(let.
4d60 28 28 76 61 6c 75 65 20 28 63 61 72 20 66 75 6e 63 74 69 6f 6e 61 6c 29 29 0a 20 20 20 20 20 20 ((value.(car.functional)).......
4d80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 61 72 67 73 20 28 63 64 72 20 66 75 6e 63 .................(args.(cdr.func
4da0 74 69 6f 6e 61 6c 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 70 75 tional)))....................(pu
4dc0 73 68 20 28 63 6f 6e 73 20 27 6e 61 6d 65 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 sh.(cons.'name.(esxml--parse-css
4de0 2d 69 64 65 6e 74 69 66 69 65 72 20 76 61 6c 75 65 29 29 20 72 65 73 75 6c 74 29 0a 20 20 20 20 -identifier.value)).result).....
4e00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 28 63 6f 6e 73 20 27 61 72 67 73 ...............(push.(cons.'args
4e20 20 61 72 67 73 29 20 72 65 73 75 6c 74 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 .args).result))................(
4e40 65 72 72 6f 72 20 22 50 73 65 75 64 6f 2d 65 6c 65 6d 65 6e 74 73 20 6d 61 79 20 6e 6f 74 20 68 error."Pseudo-elements.may.not.h
4e60 61 76 65 20 61 72 67 75 6d 65 6e 74 73 22 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 ave.arguments"))............(let
4e80 20 28 28 76 61 6c 75 65 20 28 61 63 63 65 70 74 20 27 69 64 65 6e 74 29 29 29 0a 20 20 20 20 20 .((value.(accept.'ident)))......
4ea0 20 20 20 20 20 20 20 20 28 69 66 20 76 61 6c 75 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ........(if.value...............
4ec0 20 20 20 28 70 75 73 68 20 28 63 6f 6e 73 20 27 6e 61 6d 65 20 28 65 73 78 6d 6c 2d 2d 70 61 72 ...(push.(cons.'name.(esxml--par
4ee0 73 65 2d 63 73 73 2d 69 64 65 6e 74 69 66 69 65 72 20 76 61 6c 75 65 29 29 20 72 65 73 75 6c 74 se-css-identifier.value)).result
4f00 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 45 78 70 65 63 74 65 )................(error."Expecte
4f20 64 20 66 75 6e 63 74 69 6f 6e 20 6f 72 20 69 64 65 6e 74 69 66 69 65 72 22 29 29 29 29 29 0a 20 d.function.or.identifier")))))..
4f40 20 20 20 20 20 20 28 63 6f 6e 73 20 74 79 70 65 20 28 6e 72 65 76 65 72 73 65 20 72 65 73 75 6c ......(cons.type.(nreverse.resul
4f60 74 29 29 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 t))))))..(defun.esxml--parse-css
4f80 2d 66 75 6e 63 74 69 6f 6e 61 6c 2d 70 73 65 75 64 6f 20 28 29 0a 20 20 28 65 73 78 6d 6c 2d 2d -functional-pseudo.()...(esxml--
4fa0 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 61 6e 64 73 0a 20 20 20 28 6c 65 74 20 28 28 with-parse-shorthands....(let.((
4fc0 66 75 6e 63 74 69 6f 6e 20 28 61 63 63 65 70 74 20 27 66 75 6e 63 74 69 6f 6e 29 29 0a 20 20 20 function.(accept.'function))....
4fe0 20 20 20 20 20 20 72 65 73 75 6c 74 29 0a 20 20 20 20 20 28 77 68 65 6e 20 66 75 6e 63 74 69 6f ......result)......(when.functio
5000 6e 0a 20 20 20 20 20 20 20 28 70 75 73 68 20 28 73 75 62 73 74 72 69 6e 67 20 66 75 6e 63 74 69 n........(push.(substring.functi
5020 6f 6e 20 30 20 2d 31 29 20 72 65 73 75 6c 74 29 0a 20 20 20 20 20 20 20 28 65 61 74 2d 77 68 69 on.0.-1).result)........(eat-whi
5040 74 65 73 70 61 63 65 29 0a 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 65 78 70 72 65 73 73 69 6f tespace)........(let.((expressio
5060 6e 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 65 78 70 72 65 73 73 69 6f 6e 29 29 n.(esxml--parse-css-expression))
5080 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 64 6f 6e 65 29 0a 20 20 20 20 20 20 20 20 20 28 65 61 ..............done)..........(ea
50a0 74 2d 77 68 69 74 65 73 70 61 63 65 29 0a 20 20 20 20 20 20 20 20 20 28 77 68 65 6e 20 28 6e 6f t-whitespace)..........(when.(no
50c0 74 20 65 78 70 72 65 73 73 69 6f 6e 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 t.expression)............(error.
50e0 22 45 78 70 65 63 74 65 64 20 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 65 78 70 72 65 73 73 69 6f "Expected.at.least.one.expressio
5100 6e 20 66 6f 72 20 66 75 6e 63 74 69 6f 6e 22 29 29 0a 20 20 20 20 20 20 20 20 20 28 70 75 73 68 n.for.function"))..........(push
5120 20 65 78 70 72 65 73 73 69 6f 6e 20 72 65 73 75 6c 74 29 0a 20 20 20 20 20 20 20 20 20 28 77 68 .expression.result)..........(wh
5140 69 6c 65 20 28 6e 6f 74 20 64 6f 6e 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 ile.(not.done)............(setq.
5160 65 78 70 72 65 73 73 69 6f 6e 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 65 78 70 expression.(esxml--parse-css-exp
5180 72 65 73 73 69 6f 6e 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 69 66 20 65 78 70 72 65 73 73 ression))............(if.express
51a0 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 70 72 6f 67 6e 0a 20 20 20 20 20 20 ion................(progn.......
51c0 20 20 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 65 78 70 72 65 73 73 69 6f 6e 20 72 65 73 75 ...........(push.expression.resu
51e0 6c 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 61 74 2d 77 68 69 74 65 73 lt)..................(eat-whites
5200 70 61 63 65 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 64 6f 6e 65 20 74 pace))..............(setq.done.t
5220 29 29 29 29 0a 20 20 20 20 20 20 20 28 77 68 65 6e 20 28 6e 6f 74 20 28 61 63 63 65 70 74 20 27 ))))........(when.(not.(accept.'
5240 72 70 61 72 65 6e 29 29 0a 20 20 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 55 6e 74 65 72 6d rparen))..........(error."Unterm
5260 69 6e 61 74 65 64 20 66 75 6e 63 74 69 6f 6e 20 61 72 67 75 6d 65 6e 74 20 6c 69 73 74 22 29 29 inated.function.argument.list"))
5280 0a 20 20 20 20 20 20 20 28 6e 72 65 76 65 72 73 65 20 72 65 73 75 6c 74 29 29 29 29 29 0a 0a 28 ........(nreverse.result)))))..(
52a0 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 65 78 70 72 65 73 73 69 6f defun.esxml--parse-css-expressio
52c0 6e 20 28 29 0a 20 20 28 65 73 78 6d 6c 2d 2d 77 69 74 68 2d 70 61 72 73 65 2d 73 68 6f 72 74 68 n.()...(esxml--with-parse-shorth
52e0 61 6e 64 73 0a 20 20 20 28 6c 65 74 20 28 28 74 6f 6b 65 6e 20 28 70 65 65 6b 29 29 29 0a 20 20 ands....(let.((token.(peek)))...
5300 20 20 20 28 63 6f 6e 64 0a 20 20 20 20 20 20 28 28 61 63 63 65 70 74 20 27 70 6c 75 73 29 0a 20 ...(cond.......((accept.'plus)..
5320 20 20 20 20 20 20 27 28 6f 70 65 72 61 74 6f 72 20 2e 20 2b 29 29 0a 20 20 20 20 20 20 28 28 61 ......'(operator...+)).......((a
5340 63 63 65 70 74 20 27 6d 69 6e 75 73 29 0a 20 20 20 20 20 20 20 27 28 6f 70 65 72 61 74 6f 72 20 ccept.'minus)........'(operator.
5360 2e 20 2d 29 29 0a 20 20 20 20 20 20 28 28 65 71 20 28 63 61 72 20 74 6f 6b 65 6e 29 20 27 64 69 ..-)).......((eq.(car.token).'di
5380 6d 65 6e 73 69 6f 6e 29 0a 20 20 20 20 20 20 20 28 6e 65 78 74 29 0a 20 20 20 20 20 20 20 28 63 mension)........(next)........(c
53a0 6f 6e 73 20 27 64 69 6d 65 6e 73 69 6f 6e 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 ons.'dimension.(esxml--parse-css
53c0 2d 69 64 65 6e 74 69 66 69 65 72 20 28 63 64 72 20 74 6f 6b 65 6e 29 29 29 29 0a 20 20 20 20 20 -identifier.(cdr.token))))......
53e0 20 28 28 65 71 20 28 63 61 72 20 74 6f 6b 65 6e 29 20 27 6e 75 6d 62 65 72 29 0a 20 20 20 20 20 .((eq.(car.token).'number)......
5400 20 20 28 6e 65 78 74 29 0a 20 20 20 20 20 20 20 28 63 6f 6e 73 20 27 6e 75 6d 62 65 72 20 28 73 ..(next)........(cons.'number.(s
5420 74 72 69 6e 67 2d 74 6f 2d 6e 75 6d 62 65 72 20 28 63 64 72 20 74 6f 6b 65 6e 29 29 29 29 0a 20 tring-to-number.(cdr.token))))..
5440 20 20 20 20 20 28 28 65 71 20 28 63 61 72 20 74 6f 6b 65 6e 29 20 27 73 74 72 69 6e 67 29 0a 20 .....((eq.(car.token).'string)..
5460 20 20 20 20 20 20 28 6e 65 78 74 29 0a 20 20 20 20 20 20 20 28 63 6f 6e 73 20 27 73 74 72 69 6e ......(next)........(cons.'strin
5480 67 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 2d 63 73 73 2d 73 74 72 69 6e 67 2d 6c 69 74 65 72 g.(esxml--parse-css-string-liter
54a0 61 6c 20 28 63 64 72 20 74 6f 6b 65 6e 29 29 29 29 0a 20 20 20 20 20 20 28 28 65 71 20 28 63 61 al.(cdr.token)))).......((eq.(ca
54c0 72 20 74 6f 6b 65 6e 29 20 27 69 64 65 6e 74 29 0a 20 20 20 20 20 20 20 28 6e 65 78 74 29 0a 20 r.token).'ident)........(next)..
54e0 20 20 20 20 20 20 28 63 6f 6e 73 20 27 69 64 65 6e 74 20 28 65 73 78 6d 6c 2d 2d 70 61 72 73 65 ......(cons.'ident.(esxml--parse
5500 2d 63 73 73 2d 69 64 65 6e 74 69 66 69 65 72 20 28 63 64 72 20 74 6f 6b 65 6e 29 29 29 29 0a 20 -css-identifier.(cdr.token))))..
5520 20 20 20 20 20 28 74 20 6e 69 6c 29 29 29 29 29 0a 0a 0c 0a 3b 3b 3b 20 74 72 65 65 20 74 72 61 .....(t.nil)))))....;;;.tree.tra
5540 76 65 72 73 61 6c 0a 0a 3b 3b 20 54 4f 44 4f 3a 20 74 68 65 73 65 20 68 65 6c 70 65 72 73 20 73 versal..;;.TODO:.these.helpers.s
5560 68 6f 75 6c 64 20 62 65 20 70 61 72 74 20 6f 66 20 65 73 78 6d 6c 2e 65 6c 0a 28 64 65 66 75 6e hould.be.part.of.esxml.el.(defun
5580 20 65 73 78 6d 6c 2d 62 72 61 6e 63 68 2d 70 20 28 6e 6f 64 65 29 0a 20 20 22 4e 6f 6e 2d 6e 69 .esxml-branch-p.(node)..."Non-ni
55a0 6c 20 69 66 20 4e 4f 44 45 20 72 65 66 65 72 73 20 74 6f 20 61 6e 20 65 73 78 6d 6c 20 62 72 61 l.if.NODE.refers.to.an.esxml.bra
55c0 6e 63 68 2e 22 0a 20 20 28 61 6e 64 20 28 6c 69 73 74 70 20 6e 6f 64 65 29 0a 20 20 20 20 20 20 nch."...(and.(listp.node).......
55e0 20 28 3e 3d 20 28 6c 65 6e 67 74 68 20 6e 6f 64 65 29 20 32 29 0a 20 20 20 20 20 20 20 28 73 79 .(>=.(length.node).2)........(sy
5600 6d 62 6f 6c 70 20 28 63 61 72 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 20 20 28 6c 69 73 74 70 20 mbolp.(car.node))........(listp.
5620 28 63 61 64 72 20 6e 6f 64 65 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 6e 6f 64 (cadr.node))))..(defun.esxml-nod
5640 65 2d 74 61 67 20 28 6e 6f 64 65 29 0a 20 20 22 52 65 74 75 72 6e 73 20 74 68 65 20 74 61 67 20 e-tag.(node)..."Returns.the.tag.
5660 6f 66 20 4e 4f 44 45 20 69 66 20 61 76 61 69 6c 61 62 6c 65 2e 22 0a 20 20 28 61 6e 64 20 28 65 of.NODE.if.available."...(and.(e
5680 73 78 6d 6c 2d 62 72 61 6e 63 68 2d 70 20 6e 6f 64 65 29 0a 20 20 20 20 20 20 20 28 63 61 72 20 sxml-branch-p.node)........(car.
56a0 6e 6f 64 65 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 6e 6f 64 65 2d 61 74 74 72 69 node)))..(defun.esxml-node-attri
56c0 62 75 74 65 73 20 28 6e 6f 64 65 29 0a 20 20 22 52 65 74 75 72 6e 73 20 74 68 65 20 61 74 74 72 butes.(node)..."Returns.the.attr
56e0 69 62 75 74 65 73 20 6f 66 20 4e 4f 44 45 20 69 66 20 61 76 61 69 6c 61 62 6c 65 2e 22 0a 20 20 ibutes.of.NODE.if.available."...
5700 28 61 6e 64 20 28 65 73 78 6d 6c 2d 62 72 61 6e 63 68 2d 70 20 6e 6f 64 65 29 0a 20 20 20 20 20 (and.(esxml-branch-p.node)......
5720 20 20 28 63 61 64 72 20 6e 6f 64 65 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 6e 6f ..(cadr.node)))..(defun.esxml-no
5740 64 65 2d 61 74 74 72 69 62 75 74 65 20 28 61 74 74 72 69 62 75 74 65 20 6e 6f 64 65 29 0a 20 20 de-attribute.(attribute.node)...
5760 22 52 65 74 75 72 6e 73 20 74 68 65 20 61 74 74 72 69 62 75 74 65 20 41 54 54 52 49 42 55 54 45 "Returns.the.attribute.ATTRIBUTE
5780 20 6f 66 20 4e 4f 44 45 20 69 66 20 61 76 61 69 6c 61 62 6c 65 2e 22 0a 20 20 28 61 6e 64 20 28 .of.NODE.if.available."...(and.(
57a0 65 73 78 6d 6c 2d 62 72 61 6e 63 68 2d 70 20 6e 6f 64 65 29 0a 20 20 20 20 20 20 20 28 63 64 72 esxml-branch-p.node)........(cdr
57c0 20 28 61 73 73 71 20 61 74 74 72 69 62 75 74 65 20 28 63 61 64 72 20 6e 6f 64 65 29 29 29 29 29 .(assq.attribute.(cadr.node)))))
57e0 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 6e 6f 64 65 2d 63 68 69 6c 64 72 65 6e 20 28 6e 6f ..(defun.esxml-node-children.(no
5800 64 65 29 0a 20 20 22 52 65 74 75 72 6e 73 20 74 68 65 20 63 68 69 6c 64 72 65 6e 20 6f 66 20 4e de)..."Returns.the.children.of.N
5820 4f 44 45 20 69 66 20 61 76 61 69 6c 61 62 6c 65 2e 22 0a 20 20 28 61 6e 64 20 28 65 73 78 6d 6c ODE.if.available."...(and.(esxml
5840 2d 62 72 61 6e 63 68 2d 70 20 6e 6f 64 65 29 0a 20 20 20 20 20 20 20 28 6e 74 68 63 64 72 20 32 -branch-p.node)........(nthcdr.2
5860 20 6e 6f 64 65 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 66 69 6e 64 2d 6e 6f 64 65 .node)))..(defun.esxml-find-node
5880 20 28 70 72 65 64 20 72 6f 6f 74 29 0a 20 20 22 4c 6f 63 61 74 65 73 20 61 20 6e 6f 64 65 20 73 .(pred.root)..."Locates.a.node.s
58a0 61 74 69 73 66 79 69 6e 67 20 50 52 45 44 20 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 52 4f 4f atisfying.PRED.starting.from.ROO
58c0 54 2e 0a 52 65 74 75 72 6e 73 20 74 68 65 20 6e 6f 64 65 20 6f 72 20 6e 69 6c 20 69 66 20 6e 6f T..Returns.the.node.or.nil.if.no
58e0 6e 65 20 66 6f 75 6e 64 2e 22 0a 20 20 28 69 66 20 28 66 75 6e 63 61 6c 6c 20 70 72 65 64 20 72 ne.found."...(if.(funcall.pred.r
5900 6f 6f 74 29 0a 20 20 20 20 20 20 72 6f 6f 74 0a 20 20 20 20 28 63 6c 2d 73 6f 6d 65 20 28 6c 61 oot).......root.....(cl-some.(la
5920 6d 62 64 61 20 28 6e 6f 64 65 29 20 28 65 73 78 6d 6c 2d 66 69 6e 64 2d 6e 6f 64 65 20 70 72 65 mbda.(node).(esxml-find-node.pre
5940 64 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 6e 6f 64 d.node))..............(esxml-nod
5960 65 2d 63 68 69 6c 64 72 65 6e 20 72 6f 6f 74 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d e-children.root))))..(defun.esxm
5980 6c 2d 76 69 73 69 74 2d 6e 6f 64 65 73 20 28 66 75 6e 63 74 69 6f 6e 20 72 6f 6f 74 29 0a 20 20 l-visit-nodes.(function.root)...
59a0 22 56 69 73 69 74 20 6e 6f 64 65 73 20 62 79 20 63 61 6c 6c 69 6e 67 20 46 55 4e 43 54 49 4f 4e "Visit.nodes.by.calling.FUNCTION
59c0 20 6f 6e 20 65 61 63 68 20 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 52 4f 4f 54 2e 22 0a 20 20 .on.each.starting.from.ROOT."...
59e0 28 66 75 6e 63 61 6c 6c 20 66 75 6e 63 74 69 6f 6e 20 72 6f 6f 74 29 0a 20 20 28 6d 61 70 63 20 (funcall.function.root)...(mapc.
5a00 28 6c 61 6d 62 64 61 20 28 6e 6f 64 65 29 20 28 65 73 78 6d 6c 2d 76 69 73 69 74 2d 6e 6f 64 65 (lambda.(node).(esxml-visit-node
5a20 73 20 66 75 6e 63 74 69 6f 6e 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 20 20 20 28 65 73 78 6d 6c s.function.node)).........(esxml
5a40 2d 6e 6f 64 65 2d 63 68 69 6c 64 72 65 6e 20 72 6f 6f 74 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 -node-children.root)))..(defun.e
5a60 73 78 6d 6c 2d 66 69 6e 64 2d 6e 6f 64 65 73 20 28 70 72 65 64 20 72 6f 6f 74 29 0a 20 20 22 4c sxml-find-nodes.(pred.root)..."L
5a80 6f 63 61 74 65 73 20 61 6c 6c 20 6e 6f 64 65 73 20 73 61 74 69 73 66 79 69 6e 67 20 50 52 45 44 ocates.all.nodes.satisfying.PRED
5aa0 20 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 52 4f 4f 54 2e 0a 52 65 74 75 72 6e 73 20 61 20 6c .starting.from.ROOT..Returns.a.l
5ac0 69 73 74 20 6f 66 20 74 68 65 20 6e 6f 64 65 73 20 6f 72 20 6e 69 6c 20 69 66 20 6e 6f 6e 65 20 ist.of.the.nodes.or.nil.if.none.
5ae0 66 6f 75 6e 64 2e 22 0a 20 20 28 6c 65 74 20 28 28 61 63 63 20 27 28 29 29 29 0a 20 20 20 20 28 found."...(let.((acc.'())).....(
5b00 65 73 78 6d 6c 2d 76 69 73 69 74 2d 6e 6f 64 65 73 0a 20 20 20 20 20 28 6c 61 6d 62 64 61 20 28 esxml-visit-nodes......(lambda.(
5b20 6e 6f 64 65 29 0a 20 20 20 20 20 20 20 28 77 68 65 6e 20 28 66 75 6e 63 61 6c 6c 20 70 72 65 64 node)........(when.(funcall.pred
5b40 20 6e 6f 64 65 29 0a 20 20 20 20 20 20 20 20 20 28 70 75 73 68 20 6e 6f 64 65 20 61 63 63 29 29 .node)..........(push.node.acc))
5b60 29 0a 20 20 20 20 20 72 6f 6f 74 29 0a 20 20 20 20 28 6e 72 65 76 65 72 73 65 20 61 63 63 29 29 )......root).....(nreverse.acc))
5b80 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 66 69 6e 64 2d 64 65 73 63 65 6e 64 61 6e 74 20 )..(defun.esxml-find-descendant.
5ba0 28 70 72 65 64 20 72 6f 6f 74 29 0a 20 20 22 4c 6f 63 61 74 65 73 20 61 20 6e 6f 64 65 20 73 61 (pred.root)..."Locates.a.node.sa
5bc0 74 69 73 66 79 69 6e 67 20 50 52 45 44 20 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 52 4f 4f 54 tisfying.PRED.starting.from.ROOT
5be0 27 73 20 63 68 69 6c 64 72 65 6e 2e 0a 52 65 74 75 72 6e 73 20 74 68 65 20 6e 6f 64 65 20 6f 72 's.children..Returns.the.node.or
5c00 20 6e 69 6c 20 69 66 20 6e 6f 6e 65 20 66 6f 75 6e 64 2e 22 0a 20 20 28 63 6c 2d 73 6f 6d 65 20 .nil.if.none.found."...(cl-some.
5c20 28 6c 61 6d 62 64 61 20 28 6e 6f 64 65 29 20 28 65 73 78 6d 6c 2d 66 69 6e 64 2d 6e 6f 64 65 20 (lambda.(node).(esxml-find-node.
5c40 70 72 65 64 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 6e 6f pred.node))............(esxml-no
5c60 64 65 2d 63 68 69 6c 64 72 65 6e 20 72 6f 6f 74 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d de-children.root)))..(defun.esxm
5c80 6c 2d 66 69 6e 64 2d 64 65 73 63 65 6e 64 61 6e 74 73 20 28 70 72 65 64 20 72 6f 6f 74 29 0a 20 l-find-descendants.(pred.root)..
5ca0 20 22 4c 6f 63 61 74 65 73 20 61 6c 6c 20 6e 6f 64 65 73 20 73 61 74 69 73 66 79 69 6e 67 20 50 ."Locates.all.nodes.satisfying.P
5cc0 52 45 44 20 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 52 4f 4f 54 27 73 20 63 68 69 6c 64 72 65 RED.starting.from.ROOT's.childre
5ce0 6e 2e 0a 52 65 74 75 72 6e 73 20 61 20 6c 69 73 74 20 6f 66 20 74 68 65 20 6e 6f 64 65 73 20 6f n..Returns.a.list.of.the.nodes.o
5d00 72 20 6e 69 6c 20 69 66 20 6e 6f 6e 65 20 66 6f 75 6e 64 2e 22 0a 20 20 28 63 6c 2d 6d 61 70 63 r.nil.if.none.found."...(cl-mapc
5d20 61 6e 20 28 6c 61 6d 62 64 61 20 28 6e 6f 64 65 29 20 28 65 73 78 6d 6c 2d 66 69 6e 64 2d 6e 6f an.(lambda.(node).(esxml-find-no
5d40 64 65 73 20 70 72 65 64 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 73 des.pred.node))..............(es
5d60 78 6d 6c 2d 6e 6f 64 65 2d 63 68 69 6c 64 72 65 6e 20 72 6f 6f 74 29 29 29 0a 0a 28 64 65 66 75 xml-node-children.root)))..(defu
5d80 6e 20 65 73 78 6d 6c 2d 66 69 6e 64 2d 63 68 69 6c 64 20 28 70 72 65 64 20 72 6f 6f 74 29 0a 20 n.esxml-find-child.(pred.root)..
5da0 20 22 4c 6f 63 61 74 65 73 20 61 20 6e 6f 64 65 20 73 61 74 69 73 66 79 69 6e 67 20 50 52 45 44 ."Locates.a.node.satisfying.PRED
5dc0 20 61 6d 6f 6e 67 20 52 4f 4f 54 27 73 20 63 68 69 6c 64 72 65 6e 2e 0a 52 65 74 75 72 6e 73 20 .among.ROOT's.children..Returns.
5de0 74 68 65 20 6e 6f 64 65 20 6f 72 20 6e 69 6c 20 69 66 20 6e 6f 6e 65 20 66 6f 75 6e 64 2e 22 0a the.node.or.nil.if.none.found.".
5e00 20 20 28 63 6c 2d 73 6f 6d 65 20 28 6c 61 6d 62 64 61 20 28 6e 6f 64 65 29 20 28 77 68 65 6e 20 ..(cl-some.(lambda.(node).(when.
5e20 28 66 75 6e 63 61 6c 6c 20 70 72 65 64 20 6e 6f 64 65 29 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 (funcall.pred.node).node))......
5e40 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 6e 6f 64 65 2d 63 68 69 6c 64 72 65 6e 20 72 6f 6f 74 29 ......(esxml-node-children.root)
5e60 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 66 69 6e 64 2d 63 68 69 6c 64 72 65 6e 20 28 ))..(defun.esxml-find-children.(
5e80 70 72 65 64 20 72 6f 6f 74 29 0a 20 20 22 4c 6f 63 61 74 65 73 20 61 6c 6c 20 6e 6f 64 65 73 20 pred.root)..."Locates.all.nodes.
5ea0 73 61 74 69 73 66 79 69 6e 67 20 50 52 45 44 20 61 6d 6f 6e 67 20 52 4f 4f 54 27 73 20 63 68 69 satisfying.PRED.among.ROOT's.chi
5ec0 6c 64 72 65 6e 2e 0a 52 65 74 75 72 6e 73 20 61 20 6c 69 73 74 20 6f 66 20 74 68 65 20 6e 6f 64 ldren..Returns.a.list.of.the.nod
5ee0 65 73 20 6f 72 20 6e 69 6c 20 69 66 20 6e 6f 6e 65 20 66 6f 75 6e 64 2e 22 0a 20 20 28 6d 61 70 es.or.nil.if.none.found."...(map
5f00 63 61 72 20 28 6c 61 6d 62 64 61 20 28 6e 6f 64 65 29 20 28 77 68 65 6e 20 28 66 75 6e 63 61 6c car.(lambda.(node).(when.(funcal
5f20 6c 20 70 72 65 64 20 6e 6f 64 65 29 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 65 l.pred.node).node))...........(e
5f40 73 78 6d 6c 2d 6e 6f 64 65 2d 63 68 69 6c 64 72 65 6e 20 72 6f 6f 74 29 29 29 0a 0a 28 64 65 66 sxml-node-children.root)))..(def
5f60 75 6e 20 65 73 78 6d 6c 2d 2d 6e 6f 64 65 2d 77 69 74 68 2d 63 68 69 6c 64 72 65 6e 20 28 6e 6f un.esxml--node-with-children.(no
5f80 64 65 20 63 68 69 6c 64 72 65 6e 29 0a 20 20 28 6c 65 74 20 28 28 74 61 67 20 28 65 73 78 6d 6c de.children)...(let.((tag.(esxml
5fa0 2d 6e 6f 64 65 2d 74 61 67 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 20 20 20 28 61 74 74 72 69 62 -node-tag.node)).........(attrib
5fc0 75 74 65 73 20 28 65 73 78 6d 6c 2d 6e 6f 64 65 2d 61 74 74 72 69 62 75 74 65 73 20 6e 6f 64 65 utes.(esxml-node-attributes.node
5fe0 29 29 29 0a 20 20 20 20 28 61 70 70 65 6e 64 20 28 6c 69 73 74 20 74 61 67 20 61 74 74 72 69 62 ))).....(append.(list.tag.attrib
6000 75 74 65 73 29 20 63 68 69 6c 64 72 65 6e 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d utes).children)))..(defun.esxml-
6020 2d 6e 6f 64 65 2d 77 69 74 68 2d 61 74 74 72 69 62 75 74 65 73 20 28 6e 6f 64 65 20 61 74 74 72 -node-with-attributes.(node.attr
6040 69 62 75 74 65 73 29 0a 20 20 28 6c 65 74 20 28 28 74 61 67 20 28 65 73 78 6d 6c 2d 6e 6f 64 65 ibutes)...(let.((tag.(esxml-node
6060 2d 74 61 67 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 20 20 20 28 63 68 69 6c 64 72 65 6e 20 28 65 -tag.node)).........(children.(e
6080 73 78 6d 6c 2d 6e 6f 64 65 2d 63 68 69 6c 64 72 65 6e 20 6e 6f 64 65 29 29 29 0a 20 20 20 20 28 sxml-node-children.node))).....(
60a0 61 70 70 65 6e 64 20 28 6c 69 73 74 20 74 61 67 20 61 74 74 72 69 62 75 74 65 73 29 20 63 68 69 append.(list.tag.attributes).chi
60c0 6c 64 72 65 6e 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 74 72 65 65 2d 6d 61 70 20 ldren)))..(defun.esxml-tree-map.
60e0 28 66 75 6e 63 74 69 6f 6e 20 72 6f 6f 74 29 0a 20 20 22 52 65 74 75 72 6e 73 20 61 20 63 6f 70 (function.root)..."Returns.a.cop
6100 79 20 6f 66 20 52 4f 4f 54 20 77 69 74 68 20 46 55 4e 43 54 49 4f 4e 20 61 70 70 6c 69 65 64 20 y.of.ROOT.with.FUNCTION.applied.
6120 74 6f 20 65 61 63 68 20 6e 6f 64 65 2e 22 0a 20 20 28 69 66 20 28 65 73 78 6d 6c 2d 62 72 61 6e to.each.node."...(if.(esxml-bran
6140 63 68 2d 70 20 72 6f 6f 74 29 0a 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 2d 6e 6f 64 65 2d 77 69 ch-p.root).......(esxml--node-wi
6160 74 68 2d 63 68 69 6c 64 72 65 6e 0a 20 20 20 20 20 20 20 28 66 75 6e 63 61 6c 6c 20 66 75 6e 63 th-children........(funcall.func
6180 74 69 6f 6e 20 72 6f 6f 74 29 0a 20 20 20 20 20 20 20 28 6d 61 70 63 61 72 20 28 6c 61 6d 62 64 tion.root)........(mapcar.(lambd
61a0 61 20 28 6e 6f 64 65 29 20 28 65 73 78 6d 6c 2d 74 72 65 65 2d 6d 61 70 20 66 75 6e 63 74 69 6f a.(node).(esxml-tree-map.functio
61c0 6e 20 6e 6f 64 65 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 6e n.node))................(esxml-n
61e0 6f 64 65 2d 63 68 69 6c 64 72 65 6e 20 72 6f 6f 74 29 29 29 0a 20 20 20 20 28 66 75 6e 63 61 6c ode-children.root))).....(funcal
6200 6c 20 66 75 6e 63 74 69 6f 6e 20 72 6f 6f 74 29 29 29 0a 0a 28 64 65 66 76 61 72 20 65 73 78 6d l.function.root)))..(defvar.esxm
6220 6c 2d 2d 73 79 6d 62 6f 6c 20 28 6d 61 6b 65 2d 73 79 6d 62 6f 6c 20 22 69 64 22 29 29 0a 0a 28 l--symbol.(make-symbol."id"))..(
6240 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 64 65 63 6f 72 61 74 65 2d 74 72 65 65 20 28 72 6f 6f 74 defun.esxml--decorate-tree.(root
6260 29 0a 20 20 28 6c 65 74 20 28 28 69 20 30 29 29 0a 20 20 20 20 28 65 73 78 6d 6c 2d 74 72 65 65 )...(let.((i.0)).....(esxml-tree
6280 2d 6d 61 70 0a 20 20 20 20 20 28 6c 61 6d 62 64 61 20 28 6e 6f 64 65 29 0a 20 20 20 20 20 20 20 -map......(lambda.(node)........
62a0 28 6c 65 74 20 28 28 61 74 74 72 69 62 75 74 65 20 28 63 6f 6e 73 20 65 73 78 6d 6c 2d 2d 73 79 (let.((attribute.(cons.esxml--sy
62c0 6d 62 6f 6c 20 69 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 61 74 74 72 69 62 75 74 65 mbol.i))..............(attribute
62e0 73 20 28 65 73 78 6d 6c 2d 6e 6f 64 65 2d 61 74 74 72 69 62 75 74 65 73 20 6e 6f 64 65 29 29 29 s.(esxml-node-attributes.node)))
6300 0a 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 61 74 74 72 69 62 75 74 65 73 20 28 61 70 70 65 ..........(setq.attributes.(appe
6320 6e 64 20 28 6c 69 73 74 20 61 74 74 72 69 62 75 74 65 29 20 61 74 74 72 69 62 75 74 65 73 29 29 nd.(list.attribute).attributes))
6340 0a 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 69 20 28 31 2b 20 69 29 29 0a 20 20 20 20 20 20 ..........(setq.i.(1+.i)).......
6360 20 20 20 28 69 66 20 28 65 73 78 6d 6c 2d 62 72 61 6e 63 68 2d 70 20 6e 6f 64 65 29 0a 20 20 20 ...(if.(esxml-branch-p.node)....
6380 20 20 20 20 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 2d 6e 6f 64 65 2d 77 69 74 68 2d 61 74 74 72 ..........(esxml--node-with-attr
63a0 69 62 75 74 65 73 20 6e 6f 64 65 20 61 74 74 72 69 62 75 74 65 73 29 0a 20 20 20 20 20 20 20 20 ibutes.node.attributes).........
63c0 20 20 20 6e 6f 64 65 29 29 29 0a 20 20 20 20 20 72 6f 6f 74 29 29 29 0a 0a 28 64 65 66 75 6e 20 ...node)))......root)))..(defun.
63e0 65 73 78 6d 6c 2d 2d 75 6e 64 65 63 6f 72 61 74 65 2d 6e 6f 64 65 20 28 6e 6f 64 65 29 0a 20 20 esxml--undecorate-node.(node)...
6400 28 69 66 20 28 65 73 78 6d 6c 2d 62 72 61 6e 63 68 2d 70 20 6e 6f 64 65 29 0a 20 20 20 20 20 20 (if.(esxml-branch-p.node).......
6420 28 6c 65 74 20 28 28 61 74 74 72 69 62 75 74 65 73 20 28 65 73 78 6d 6c 2d 6e 6f 64 65 2d 61 74 (let.((attributes.(esxml-node-at
6440 74 72 69 62 75 74 65 73 20 6e 6f 64 65 29 29 29 0a 20 20 20 20 20 20 20 20 28 65 73 78 6d 6c 2d tributes.node))).........(esxml-
6460 2d 6e 6f 64 65 2d 77 69 74 68 2d 61 74 74 72 69 62 75 74 65 73 20 6e 6f 64 65 20 28 61 73 73 71 -node-with-attributes.node.(assq
6480 2d 64 65 6c 65 74 65 2d 61 6c 6c 20 65 73 78 6d 6c 2d 2d 73 79 6d 62 6f 6c 0a 20 20 20 20 20 20 -delete-all.esxml--symbol.......
64a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................................
64c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 74 74 72 69 62 75 74 65 73 29 .....................attributes)
64e0 29 29 0a 20 20 20 20 6e 6f 64 65 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 72 65 74 )).....node))..(defun.esxml--ret
6500 72 69 65 76 65 2d 64 65 63 6f 72 61 74 69 6f 6e 20 28 6e 6f 64 65 29 0a 20 20 28 65 73 78 6d 6c rieve-decoration.(node)...(esxml
6520 2d 6e 6f 64 65 2d 61 74 74 72 69 62 75 74 65 20 65 73 78 6d 6c 2d 2d 73 79 6d 62 6f 6c 20 6e 6f -node-attribute.esxml--symbol.no
6540 64 65 29 29 0a 0a 0c 0a 3b 3b 3b 20 71 75 65 72 79 69 6e 67 0a 0a 3b 3b 20 4e 4f 54 45 3a 20 73 de))....;;;.querying..;;.NOTE:.s
6560 75 70 70 6f 72 74 69 6e 67 20 73 74 72 75 63 74 75 72 61 6c 20 70 73 65 75 64 6f 20 66 75 6e 63 upporting.structural.pseudo.func
6580 74 69 6f 6e 73 2c 20 64 69 72 65 63 74 20 73 69 62 6c 69 6e 67 73 20 61 6e 64 0a 3b 3b 20 69 6e tions,.direct.siblings.and.;;.in
65a0 64 69 72 65 63 74 20 73 69 62 6c 69 6e 67 73 20 72 65 71 75 69 72 65 73 20 62 72 65 61 64 74 68 direct.siblings.requires.breadth
65c0 20 69 6e 73 74 65 61 64 20 6f 66 20 64 65 70 74 68 20 74 72 61 76 65 72 73 61 6c 2c 0a 3b 3b 20 .instead.of.depth.traversal,.;;.
65e0 73 6f 6d 65 74 68 69 6e 67 20 74 68 61 74 20 63 6f 75 6c 64 20 62 65 20 65 6d 75 6c 61 74 65 64 something.that.could.be.emulated
6600 20 77 69 74 68 6f 75 74 20 7a 69 70 70 65 72 73 20 69 66 20 79 6f 75 20 68 61 64 20 74 68 65 0a .without.zippers.if.you.had.the.
6620 3b 3b 20 70 61 72 65 6e 74 20 6f 66 20 74 68 65 20 6e 6f 64 65 20 28 61 6e 64 20 74 68 65 20 70 ;;.parent.of.the.node.(and.the.p
6640 6f 73 69 74 69 6f 6e 20 6f 66 20 74 68 65 20 63 68 69 6c 64 29 2e 2e 2e 0a 0a 28 64 65 66 75 6e osition.of.the.child).....(defun
6660 20 65 73 78 6d 6c 2d 2d 6e 6f 64 65 2d 6d 61 74 63 68 65 73 2d 61 74 74 72 69 62 75 74 65 2d 70 .esxml--node-matches-attribute-p
6680 20 28 6e 6f 64 65 20 6d 6f 64 69 66 69 65 72 29 0a 20 20 28 6c 65 74 20 28 28 61 74 74 72 69 62 .(node.modifier)...(let.((attrib
66a0 75 74 65 73 20 28 65 73 78 6d 6c 2d 6e 6f 64 65 2d 61 74 74 72 69 62 75 74 65 73 20 6e 6f 64 65 utes.(esxml-node-attributes.node
66c0 29 29 0a 20 20 20 20 20 20 20 20 68 61 79 73 74 61 63 6b 29 0a 20 20 20 20 28 63 6c 2d 65 76 65 )).........haystack).....(cl-eve
66e0 72 79 0a 20 20 20 20 20 28 6c 61 6d 62 64 61 20 28 69 74 65 6d 29 0a 20 20 20 20 20 20 20 28 6c ry......(lambda.(item)........(l
6700 65 74 20 28 28 74 79 70 65 20 28 63 61 72 20 69 74 65 6d 29 29 0a 20 20 20 20 20 20 20 20 20 20 et.((type.(car.item))...........
6720 20 20 20 28 76 61 6c 75 65 20 28 63 64 72 20 69 74 65 6d 29 29 29 0a 20 20 20 20 20 20 20 20 20 ...(value.(cdr.item)))..........
6740 28 63 6f 6e 64 0a 20 20 20 20 20 20 20 20 20 20 28 28 65 71 20 74 79 70 65 20 27 6e 61 6d 65 29 (cond...........((eq.type.'name)
6760 0a 20 20 20 20 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 6d 61 74 63 68 20 28 61 73 73 71 20 28 ............(let.((match.(assq.(
6780 69 6e 74 65 72 6e 20 76 61 6c 75 65 29 20 61 74 74 72 69 62 75 74 65 73 29 29 29 0a 20 20 20 20 intern.value).attributes))).....
67a0 20 20 20 20 20 20 20 20 20 28 73 65 74 71 20 68 61 79 73 74 61 63 6b 20 28 63 64 72 20 6d 61 74 .........(setq.haystack.(cdr.mat
67c0 63 68 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 74 63 68 29 29 0a 20 20 20 20 20 20 ch))..............match)).......
67e0 20 20 20 20 28 28 65 71 20 74 79 70 65 20 27 65 78 61 63 74 2d 6d 61 74 63 68 29 0a 20 20 20 20 ....((eq.type.'exact-match).....
6800 20 20 20 20 20 20 20 28 65 71 75 61 6c 20 68 61 79 73 74 61 63 6b 20 76 61 6c 75 65 29 29 0a 20 .......(equal.haystack.value))..
6820 20 20 20 20 20 20 20 20 20 28 28 65 71 20 74 79 70 65 20 27 70 72 65 66 69 78 2d 6d 61 74 63 68 .........((eq.type.'prefix-match
6840 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 73 74 72 69 6e 67 2d 70 72 65 66 69 78 2d 70 20 76 61 )............(string-prefix-p.va
6860 6c 75 65 20 68 61 79 73 74 61 63 6b 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 28 65 71 20 74 79 lue.haystack))...........((eq.ty
6880 70 65 20 27 73 75 66 66 69 78 2d 6d 61 74 63 68 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 73 74 pe.'suffix-match)............(st
68a0 72 69 6e 67 2d 73 75 66 66 69 78 2d 70 20 76 61 6c 75 65 20 68 61 79 73 74 61 63 6b 29 29 0a 20 ring-suffix-p.value.haystack))..
68c0 20 20 20 20 20 20 20 20 20 28 28 65 71 20 74 79 70 65 20 27 73 75 62 73 74 72 69 6e 67 2d 6d 61 .........((eq.type.'substring-ma
68e0 74 63 68 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 73 74 72 69 6e 67 2d 6d 61 74 63 68 2d 70 20 tch)............(string-match-p.
6900 28 72 65 67 65 78 70 2d 71 75 6f 74 65 20 76 61 6c 75 65 29 20 68 61 79 73 74 61 63 6b 29 29 0a (regexp-quote.value).haystack)).
6920 20 20 20 20 20 20 20 20 20 20 28 28 65 71 20 74 79 70 65 20 27 69 6e 63 6c 75 64 65 2d 6d 61 74 ..........((eq.type.'include-mat
6940 63 68 29 0a 20 20 20 20 20 20 20 20 20 20 20 28 6d 65 6d 62 65 72 20 76 61 6c 75 65 20 28 73 70 ch)............(member.value.(sp
6960 6c 69 74 2d 73 74 72 69 6e 67 20 68 61 79 73 74 61 63 6b 20 22 20 22 29 29 29 0a 20 20 20 20 20 lit-string.haystack.".")))......
6980 20 20 20 20 20 28 28 65 71 20 74 79 70 65 20 27 64 61 73 68 2d 6d 61 74 63 68 29 0a 20 20 20 20 .....((eq.type.'dash-match).....
69a0 20 20 20 20 20 20 20 28 6f 72 20 28 65 71 75 61 6c 20 76 61 6c 75 65 20 68 61 79 73 74 61 63 6b .......(or.(equal.value.haystack
69c0 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 73 74 72 69 6e 67 2d 6d 61 74 63 68 2d 70 )................(string-match-p
69e0 20 28 66 6f 72 6d 61 74 20 22 5e 25 73 2d 22 20 28 72 65 67 65 78 70 2d 71 75 6f 74 65 20 76 61 .(format."^%s-".(regexp-quote.va
6a00 6c 75 65 29 29 20 68 61 79 73 74 61 63 6b 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 74 20 28 lue)).haystack)))...........(t.(
6a20 65 72 72 6f 72 20 22 55 6e 6b 6e 6f 77 6e 20 61 74 74 72 69 62 75 74 65 20 6d 6f 64 69 66 69 65 error."Unknown.attribute.modifie
6a40 72 22 29 29 29 29 29 0a 20 20 20 20 20 6d 6f 64 69 66 69 65 72 29 29 29 0a 0a 28 64 65 66 75 6e r")))))......modifier)))..(defun
6a60 20 65 73 78 6d 6c 2d 2d 6e 6f 64 65 2d 6d 61 74 63 68 65 73 2d 6d 6f 64 69 66 69 65 72 2d 70 20 .esxml--node-matches-modifier-p.
6a80 28 6e 6f 64 65 20 74 79 70 65 20 76 61 6c 75 65 29 0a 20 20 28 63 6f 6e 64 0a 20 20 20 28 28 65 (node.type.value)...(cond....((e
6aa0 71 20 74 79 70 65 20 27 77 69 6c 64 63 61 72 64 29 0a 20 20 20 20 74 29 0a 20 20 20 28 28 65 71 q.type.'wildcard).....t)....((eq
6ac0 20 74 79 70 65 20 27 74 61 67 29 0a 20 20 20 20 28 65 71 75 61 6c 20 28 65 73 78 6d 6c 2d 6e 6f .type.'tag).....(equal.(esxml-no
6ae0 64 65 2d 74 61 67 20 6e 6f 64 65 29 20 76 61 6c 75 65 29 29 0a 20 20 20 28 28 65 71 20 74 79 70 de-tag.node).value))....((eq.typ
6b00 65 20 27 69 64 29 0a 20 20 20 20 28 65 71 75 61 6c 20 28 65 73 78 6d 6c 2d 6e 6f 64 65 2d 61 74 e.'id).....(equal.(esxml-node-at
6b20 74 72 69 62 75 74 65 20 27 69 64 20 6e 6f 64 65 29 20 76 61 6c 75 65 29 29 0a 20 20 20 28 28 65 tribute.'id.node).value))....((e
6b40 71 20 74 79 70 65 20 27 63 6c 61 73 73 29 0a 20 20 20 20 28 6c 65 74 20 28 28 63 6c 61 73 73 20 q.type.'class).....(let.((class.
6b60 28 65 73 78 6d 6c 2d 6e 6f 64 65 2d 61 74 74 72 69 62 75 74 65 20 27 63 6c 61 73 73 20 6e 6f 64 (esxml-node-attribute.'class.nod
6b80 65 29 29 29 0a 20 20 20 20 20 20 28 61 6e 64 20 63 6c 61 73 73 20 28 6d 65 6d 62 65 72 20 76 61 e))).......(and.class.(member.va
6ba0 6c 75 65 20 28 73 70 6c 69 74 2d 73 74 72 69 6e 67 20 63 6c 61 73 73 20 22 20 22 29 29 29 29 29 lue.(split-string.class.".")))))
6bc0 0a 20 20 20 28 28 65 71 20 74 79 70 65 20 27 61 74 74 72 69 62 75 74 65 29 0a 20 20 20 20 28 65 ....((eq.type.'attribute).....(e
6be0 73 78 6d 6c 2d 2d 6e 6f 64 65 2d 6d 61 74 63 68 65 73 2d 61 74 74 72 69 62 75 74 65 2d 70 20 6e sxml--node-matches-attribute-p.n
6c00 6f 64 65 20 76 61 6c 75 65 29 29 0a 20 20 20 3b 3b 20 54 4f 44 4f 3a 20 73 75 70 70 6f 72 74 20 ode.value))....;;.TODO:.support.
6c20 73 74 72 75 63 74 75 72 61 6c 20 70 73 65 75 64 6f 20 66 75 6e 63 74 69 6f 6e 73 0a 20 20 20 3b structural.pseudo.functions....;
6c40 3b 20 54 4f 44 4f 3a 20 65 72 72 6f 72 20 6f 75 74 20 6f 6e 20 69 6e 76 61 6c 69 64 20 70 73 65 ;.TODO:.error.out.on.invalid.pse
6c60 75 64 6f 2d 63 6c 61 73 73 20 61 72 67 75 6d 65 6e 74 73 0a 20 20 20 28 74 20 28 65 72 72 6f 72 udo-class.arguments....(t.(error
6c80 20 22 55 6e 69 6d 70 6c 65 6d 65 6e 74 65 64 20 61 74 74 72 69 62 75 74 65 20 74 79 70 65 3a 20 ."Unimplemented.attribute.type:.
6ca0 25 73 22 20 74 79 70 65 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 66 69 6e 64 %s".type))))..(defun.esxml--find
6cc0 2d 6e 6f 64 65 2d 66 6f 72 20 28 61 74 74 72 69 62 75 74 65 73 29 0a 20 20 28 6c 61 6d 62 64 61 -node-for.(attributes)...(lambda
6ce0 20 28 6e 6f 64 65 29 0a 20 20 20 20 28 63 6c 2d 65 76 65 72 79 0a 20 20 20 20 20 28 6c 61 6d 62 .(node).....(cl-every......(lamb
6d00 64 61 20 28 61 74 74 72 69 62 75 74 65 29 0a 20 20 20 20 20 20 20 28 6c 65 74 20 28 28 74 79 70 da.(attribute)........(let.((typ
6d20 65 20 28 63 61 72 20 61 74 74 72 69 62 75 74 65 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 e.(car.attribute))..............
6d40 28 76 61 6c 75 65 20 28 63 64 72 20 61 74 74 72 69 62 75 74 65 29 29 29 0a 20 20 20 20 20 20 20 (value.(cdr.attribute)))........
6d60 20 20 28 65 73 78 6d 6c 2d 2d 6e 6f 64 65 2d 6d 61 74 63 68 65 73 2d 6d 6f 64 69 66 69 65 72 2d ..(esxml--node-matches-modifier-
6d80 70 20 6e 6f 64 65 20 74 79 70 65 20 76 61 6c 75 65 29 29 29 0a 20 20 20 20 20 61 74 74 72 69 62 p.node.type.value)))......attrib
6da0 75 74 65 73 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 66 69 6e 64 2d 6e 6f 64 65 utes)))..(defun.esxml--find-node
6dc0 73 20 28 72 6f 6f 74 20 63 6f 6d 62 69 6e 61 74 6f 72 20 61 74 74 72 69 62 75 74 65 73 29 0a 20 s.(root.combinator.attributes)..
6de0 20 28 6c 65 74 2a 20 28 28 74 79 70 65 20 28 63 64 72 20 28 61 73 73 71 20 27 63 6f 6d 62 69 6e .(let*.((type.(cdr.(assq.'combin
6e00 61 74 6f 72 20 63 6f 6d 62 69 6e 61 74 6f 72 29 29 29 0a 20 20 20 20 20 20 20 20 20 28 77 61 6c ator.combinator)))..........(wal
6e20 6b 65 72 20 28 63 6f 6e 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 28 6e 6f 74 ker.(cond..................((not
6e40 20 74 79 70 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 27 65 73 78 6d 6c 2d .type)...................'esxml-
6e60 66 69 6e 64 2d 6e 6f 64 65 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 28 65 find-nodes)..................((e
6e80 71 20 74 79 70 65 20 27 64 65 73 63 65 6e 64 61 6e 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 q.type.'descendant).............
6ea0 20 20 20 20 20 20 27 65 73 78 6d 6c 2d 66 69 6e 64 2d 64 65 73 63 65 6e 64 61 6e 74 73 29 0a 20 ......'esxml-find-descendants)..
6ec0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 28 65 71 20 74 79 70 65 20 27 63 68 69 6c 64 ................((eq.type.'child
6ee0 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 27 65 73 78 6d 6c 2d 66 69 6e 64 2d )...................'esxml-find-
6f00 63 68 69 6c 64 72 65 6e 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 3b 20 54 4f children)..................;;.TO
6f20 44 4f 3a 20 73 75 70 70 6f 72 74 20 64 69 72 65 63 74 20 73 69 62 6c 69 6e 67 0a 20 20 20 20 20 DO:.support.direct.sibling......
6f40 20 20 20 20 20 20 20 20 20 20 20 20 3b 3b 20 54 4f 44 4f 3a 20 73 75 70 70 6f 72 74 20 69 6e 64 ............;;.TODO:.support.ind
6f60 69 72 65 63 74 20 73 69 62 6c 69 6e 67 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 irect.sibling..................(
6f80 74 20 28 65 72 72 6f 72 20 22 55 6e 69 6d 70 6c 65 6d 65 6e 74 65 64 20 63 6f 6d 62 69 6e 61 74 t.(error."Unimplemented.combinat
6fa0 6f 72 20 25 73 22 20 63 6f 6d 62 69 6e 61 74 6f 72 29 29 29 29 29 0a 20 20 20 20 28 66 75 6e 63 or.%s".combinator))))).....(func
6fc0 61 6c 6c 20 77 61 6c 6b 65 72 20 28 65 73 78 6d 6c 2d 2d 66 69 6e 64 2d 6e 6f 64 65 2d 66 6f 72 all.walker.(esxml--find-node-for
6fe0 20 61 74 74 72 69 62 75 74 65 73 29 20 72 6f 6f 74 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 .attributes).root)))..(defun.esx
7000 6d 6c 2d 2d 71 75 65 72 79 20 28 73 65 6c 65 63 74 6f 72 20 72 6f 6f 74 29 0a 20 20 28 6c 65 74 ml--query.(selector.root)...(let
7020 2a 20 28 28 61 74 74 72 69 62 75 74 65 73 20 28 70 6f 70 20 73 65 6c 65 63 74 6f 72 29 29 0a 20 *.((attributes.(pop.selector))..
7040 20 20 20 20 20 20 20 20 63 6f 6d 62 69 6e 61 74 6f 72 0a 20 20 20 20 20 20 20 20 20 28 72 65 73 ........combinator..........(res
7060 75 6c 74 20 28 65 73 78 6d 6c 2d 2d 66 69 6e 64 2d 6e 6f 64 65 73 20 72 6f 6f 74 20 6e 69 6c 20 ult.(esxml--find-nodes.root.nil.
7080 61 74 74 72 69 62 75 74 65 73 29 29 29 0a 20 20 20 20 28 77 68 69 6c 65 20 28 61 6e 64 20 72 65 attributes))).....(while.(and.re
70a0 73 75 6c 74 20 73 65 6c 65 63 74 6f 72 29 0a 20 20 20 20 20 20 28 73 65 74 71 20 63 6f 6d 62 69 sult.selector).......(setq.combi
70c0 6e 61 74 6f 72 20 28 70 6f 70 20 73 65 6c 65 63 74 6f 72 29 29 0a 20 20 20 20 20 20 28 73 65 74 nator.(pop.selector)).......(set
70e0 71 20 61 74 74 72 69 62 75 74 65 73 20 28 70 6f 70 20 73 65 6c 65 63 74 6f 72 29 29 0a 20 20 20 q.attributes.(pop.selector))....
7100 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 28 63 6c 2d 6d 61 70 63 61 6e 0a 20 20 20 20 20 ...(setq.result.(cl-mapcan......
7120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6c 61 6d 62 64 61 20 28 6e 6f 64 65 29 0a 20 20 ...............(lambda.(node)...
7140 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 2d 66 69 6e 64 ....................(esxml--find
7160 2d 6e 6f 64 65 73 20 6e 6f 64 65 20 63 6f 6d 62 69 6e 61 74 6f 72 20 61 74 74 72 69 62 75 74 65 -nodes.node.combinator.attribute
7180 73 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 73 75 6c 74 29 29 s)).....................result))
71a0 0a 20 20 20 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 28 64 65 6c 71 20 6e 69 6c 20 72 65 .......(setq.result.(delq.nil.re
71c0 73 75 6c 74 29 29 29 0a 20 20 20 20 72 65 73 75 6c 74 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 sult))).....result))..(defun.esx
71e0 6d 6c 2d 2d 64 65 6c 65 74 65 2d 64 75 70 73 20 28 69 74 65 6d 73 20 74 65 73 74 29 0a 20 20 28 ml--delete-dups.(items.test)...(
7200 6c 65 74 20 28 28 73 65 65 6e 20 28 6d 61 6b 65 2d 68 61 73 68 2d 74 61 62 6c 65 20 3a 74 65 73 let.((seen.(make-hash-table.:tes
7220 74 20 74 65 73 74 29 29 0a 20 20 20 20 20 20 20 20 72 65 73 75 6c 74 29 0a 20 20 20 20 28 77 68 t.test)).........result).....(wh
7240 69 6c 65 20 69 74 65 6d 73 0a 20 20 20 20 20 20 28 6c 65 74 20 28 28 69 74 65 6d 20 28 70 6f 70 ile.items.......(let.((item.(pop
7260 20 69 74 65 6d 73 29 29 29 0a 20 20 20 20 20 20 20 20 28 77 68 65 6e 20 28 6e 6f 74 20 28 67 65 .items))).........(when.(not.(ge
7280 74 68 61 73 68 20 69 74 65 6d 20 73 65 65 6e 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 70 75 73 thash.item.seen))...........(pus
72a0 68 20 69 74 65 6d 20 72 65 73 75 6c 74 29 0a 20 20 20 20 20 20 20 20 20 20 28 70 75 74 68 61 73 h.item.result)...........(puthas
72c0 68 20 69 74 65 6d 20 74 20 73 65 65 6e 29 29 29 29 0a 20 20 20 20 28 6e 72 65 76 65 72 73 65 20 h.item.t.seen)))).....(nreverse.
72e0 72 65 73 75 6c 74 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 71 75 65 72 79 2d 61 6c result)))..(defun.esxml-query-al
7300 6c 20 28 73 65 6c 65 63 74 6f 72 20 72 6f 6f 74 29 0a 20 20 22 4c 6f 63 61 74 65 73 20 61 6c 6c l.(selector.root)..."Locates.all
7320 20 6e 6f 64 65 73 20 73 61 74 69 73 66 79 69 6e 67 20 53 45 4c 45 43 54 4f 52 20 73 74 61 72 74 .nodes.satisfying.SELECTOR.start
7340 69 6e 67 20 66 72 6f 6d 20 52 4f 4f 54 2e 0a 53 45 4c 45 43 54 4f 52 20 6d 75 73 74 20 62 65 20 ing.from.ROOT..SELECTOR.must.be.
7360 61 20 73 74 72 69 6e 67 20 63 6f 6e 74 61 69 6e 69 6e 67 20 61 20 43 53 53 20 73 65 6c 65 63 74 a.string.containing.a.CSS.select
7380 6f 72 20 6f 72 20 61 20 70 61 72 73 65 64 0a 43 53 53 20 73 65 6c 65 63 74 6f 72 20 72 65 74 75 or.or.a.parsed.CSS.selector.retu
73a0 72 6e 65 64 20 62 79 20 60 65 73 78 6d 6c 2d 70 61 72 73 65 2d 63 73 73 2d 73 65 6c 65 63 74 6f rned.by.`esxml-parse-css-selecto
73c0 72 27 2e 20 20 52 65 74 75 72 6e 73 20 61 0a 6c 69 73 74 20 6f 66 20 74 68 65 20 6e 6f 64 65 73 r'...Returns.a.list.of.the.nodes
73e0 20 6f 72 20 6e 69 6c 20 69 66 20 6e 6f 6e 65 20 66 6f 75 6e 64 2e 22 0a 20 20 28 77 68 65 6e 20 .or.nil.if.none.found."...(when.
7400 28 73 74 72 69 6e 67 70 20 73 65 6c 65 63 74 6f 72 29 0a 20 20 20 20 28 73 65 74 71 20 73 65 6c (stringp.selector).....(setq.sel
7420 65 63 74 6f 72 20 28 65 73 78 6d 6c 2d 70 61 72 73 65 2d 63 73 73 2d 73 65 6c 65 63 74 6f 72 20 ector.(esxml-parse-css-selector.
7440 73 65 6c 65 63 74 6f 72 29 29 29 0a 20 20 28 69 66 20 28 3d 20 28 6c 65 6e 67 74 68 20 73 65 6c selector)))...(if.(=.(length.sel
7460 65 63 74 6f 72 29 20 31 29 0a 20 20 20 20 20 20 3b 3b 20 6e 6f 20 63 6f 6d 6d 61 73 2c 20 77 65 ector).1).......;;.no.commas,.we
7480 20 63 61 6e 20 6f 6e 6c 79 20 67 65 74 20 74 68 65 20 73 61 6d 65 20 6e 6f 64 65 73 20 72 65 70 .can.only.get.the.same.nodes.rep
74a0 65 61 74 65 64 6c 79 0a 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 2d 64 65 6c 65 74 65 2d 64 75 70 eatedly.......(esxml--delete-dup
74c0 73 20 28 65 73 78 6d 6c 2d 2d 71 75 65 72 79 20 28 63 61 72 20 73 65 6c 65 63 74 6f 72 29 20 72 s.(esxml--query.(car.selector).r
74e0 6f 6f 74 29 20 27 65 71 29 0a 20 20 20 20 3b 3b 20 63 6f 6d 6d 61 73 2c 20 6e 6f 64 65 73 20 6d oot).'eq).....;;.commas,.nodes.m
7500 69 67 68 74 20 62 65 20 74 68 65 20 73 61 6d 65 20 2a 61 6e 64 2a 20 69 6e 20 74 68 65 20 77 72 ight.be.the.same.*and*.in.the.wr
7520 6f 6e 67 20 6f 72 64 65 72 0a 20 20 20 20 28 73 65 74 71 20 72 6f 6f 74 20 28 65 73 78 6d 6c 2d ong.order.....(setq.root.(esxml-
7540 2d 64 65 63 6f 72 61 74 65 2d 74 72 65 65 20 72 6f 6f 74 29 29 0a 20 20 20 20 28 6c 65 74 20 28 -decorate-tree.root)).....(let.(
7560 72 65 73 75 6c 74 29 0a 20 20 20 20 20 20 28 77 68 69 6c 65 20 73 65 6c 65 63 74 6f 72 0a 20 20 result).......(while.selector...
7580 20 20 20 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 28 6e 63 6f 6e 63 20 72 65 73 75 6c 74 ......(setq.result.(nconc.result
75a0 20 28 65 73 78 6d 6c 2d 2d 71 75 65 72 79 20 28 70 6f 70 20 73 65 6c 65 63 74 6f 72 29 20 72 6f .(esxml--query.(pop.selector).ro
75c0 6f 74 29 29 29 29 0a 20 20 20 20 20 20 28 73 65 74 71 20 72 65 73 75 6c 74 20 28 63 6c 2d 73 6f ot)))).......(setq.result.(cl-so
75e0 72 74 20 72 65 73 75 6c 74 20 27 3c 20 3a 6b 65 79 20 27 65 73 78 6d 6c 2d 2d 72 65 74 72 69 65 rt.result.'<.:key.'esxml--retrie
7600 76 65 2d 64 65 63 6f 72 61 74 69 6f 6e 29 29 0a 20 20 20 20 20 20 28 73 65 74 71 20 72 65 73 75 ve-decoration)).......(setq.resu
7620 6c 74 20 28 63 6c 2d 64 65 6c 65 74 65 2d 64 75 70 6c 69 63 61 74 65 73 20 72 65 73 75 6c 74 20 lt.(cl-delete-duplicates.result.
7640 3a 74 65 73 74 20 27 3d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 :test.'=........................
7660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3a 6b 65 79 20 27 65 73 78 6d 6c 2d 2d 72 ..................:key.'esxml--r
7680 65 74 72 69 65 76 65 2d 64 65 63 6f 72 61 74 69 6f 6e 29 29 0a 20 20 20 20 20 20 28 6d 61 70 63 etrieve-decoration)).......(mapc
76a0 61 72 20 28 6c 61 6d 62 64 61 20 28 6e 6f 64 65 29 20 28 65 73 78 6d 6c 2d 2d 75 6e 64 65 63 6f ar.(lambda.(node).(esxml--undeco
76c0 72 61 74 65 2d 6e 6f 64 65 20 6e 6f 64 65 29 29 20 72 65 73 75 6c 74 29 29 29 29 0a 0a 28 64 65 rate-node.node)).result))))..(de
76e0 66 75 6e 20 65 73 78 6d 6c 2d 71 75 65 72 79 20 28 73 65 6c 65 63 74 6f 72 20 72 6f 6f 74 29 0a fun.esxml-query.(selector.root).
7700 20 20 22 4c 6f 63 61 74 65 73 20 61 20 6e 6f 64 65 20 73 61 74 69 73 66 79 69 6e 67 20 53 45 4c .."Locates.a.node.satisfying.SEL
7720 45 43 54 4f 52 20 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 52 4f 4f 54 2e 0a 53 45 4c 45 43 54 ECTOR.starting.from.ROOT..SELECT
7740 4f 52 20 6d 75 73 74 20 62 65 20 61 20 73 74 72 69 6e 67 20 63 6f 6e 74 61 69 6e 69 6e 67 20 61 OR.must.be.a.string.containing.a
7760 20 43 53 53 20 73 65 6c 65 63 74 6f 72 20 6f 72 20 61 20 70 61 72 73 65 64 0a 43 53 53 20 73 65 .CSS.selector.or.a.parsed.CSS.se
7780 6c 65 63 74 6f 72 20 72 65 74 75 72 6e 65 64 20 62 79 20 60 65 73 78 6d 6c 2d 70 61 72 73 65 2d lector.returned.by.`esxml-parse-
77a0 63 73 73 2d 73 65 6c 65 63 74 6f 72 27 2e 20 20 52 65 74 75 72 6e 73 20 74 68 65 0a 6e 6f 64 65 css-selector'...Returns.the.node
77c0 20 6f 72 20 6e 69 6c 20 69 66 20 6e 6f 6e 65 20 66 6f 75 6e 64 2e 22 0a 20 20 3b 3b 20 4e 4f 54 .or.nil.if.none.found."...;;.NOT
77e0 45 3a 20 79 6f 75 20 63 61 6e 20 64 6f 20 61 20 62 69 74 20 6c 65 73 73 20 77 6f 72 6b 20 28 74 E:.you.can.do.a.bit.less.work.(t
7800 68 65 20 73 61 76 69 6e 67 73 20 64 65 63 72 65 61 73 65 20 74 68 65 20 6d 6f 72 65 0a 20 20 3b he.savings.decrease.the.more...;
7820 3b 20 62 72 61 6e 63 68 65 73 20 74 68 65 20 71 75 65 72 79 20 64 69 73 63 61 72 64 73 29 2c 20 ;.branches.the.query.discards),.
7840 62 75 74 20 69 74 27 73 20 73 69 6d 70 6c 65 72 20 61 6e 64 20 73 61 66 65 72 20 74 6f 20 6a 75 but.it's.simpler.and.safer.to.ju
7860 73 74 0a 20 20 3b 3b 20 68 61 76 65 20 74 68 65 20 73 61 6d 65 20 61 6c 67 6f 72 69 74 68 6d 20 st...;;.have.the.same.algorithm.
7880 66 6f 72 20 62 6f 74 68 20 65 6e 74 72 79 20 70 6f 69 6e 74 73 0a 20 20 28 63 61 72 20 28 65 73 for.both.entry.points...(car.(es
78a0 78 6d 6c 2d 71 75 65 72 79 2d 61 6c 6c 20 73 65 6c 65 63 74 6f 72 20 72 6f 6f 74 29 29 29 0a 0a xml-query-all.selector.root)))..
78c0 28 70 72 6f 76 69 64 65 20 27 65 73 78 6d 6c 2d 71 75 65 72 79 29 0a 3b 3b 3b 20 65 73 78 6d 6c (provide.'esxml-query).;;;.esxml
78e0 2d 71 75 65 72 79 2e 65 6c 20 65 6e 64 73 20 68 65 72 65 0a 00 00 00 00 00 00 00 00 00 00 00 00 -query.el.ends.here.............
7900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
79a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
79c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
79e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7a00 65 73 78 6d 6c 2d 32 30 32 33 30 33 30 38 2e 32 32 35 34 2f 65 73 78 6d 6c 2e 65 6c 00 00 00 00 esxml-20230308.2254/esxml.el....
7a20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7a60 00 00 00 00 30 30 30 30 36 34 34 00 30 30 30 30 30 30 30 00 30 30 30 30 30 30 30 00 30 30 30 30 ....0000644.0000000.0000000.0000
7a80 30 30 32 34 32 31 30 00 30 30 30 30 30 30 30 30 30 30 30 00 30 31 33 36 31 30 00 20 30 00 00 00 0024210.00000000000.013610..0...
7aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7b00 00 75 73 74 61 72 20 20 00 72 6f 6f 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .ustar...root...................
7b20 00 00 00 00 00 00 00 00 00 72 6f 6f 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .........root...................
7b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
7c00 3b 3b 3b 20 65 73 78 6d 6c 2e 65 6c 20 2d 2d 2d 20 4c 69 62 72 61 72 79 20 66 6f 72 20 77 6f 72 ;;;.esxml.el.---.Library.for.wor
7c20 6b 69 6e 67 20 77 69 74 68 20 78 6d 6c 20 76 69 61 20 65 73 78 6d 6c 20 61 6e 64 20 73 78 6d 6c king.with.xml.via.esxml.and.sxml
7c40 0a 3b 3b 20 43 6f 70 79 72 69 67 68 74 20 28 43 29 20 32 30 31 32 0a 0a 3b 3b 20 41 75 74 68 6f .;;.Copyright.(C).2012..;;.Autho
7c60 72 3a 20 56 61 6e 79 61 20 49 7a 61 6b 73 6f 6e 61 73 2d 53 6d 69 74 68 20 3c 69 7a 61 6b 30 30 r:.Vanya.Izaksonas-Smith.<izak00
7c80 30 32 20 61 74 20 75 6d 6e 20 64 6f 74 20 65 64 75 3e 0a 3b 3b 20 4d 61 69 6e 74 61 69 6e 65 72 02.at.umn.dot.edu>.;;.Maintainer
7ca0 3a 20 56 61 6e 79 61 20 49 7a 61 6b 73 6f 6e 61 73 2d 53 6d 69 74 68 0a 3b 3b 20 55 52 4c 3a 20 :.Vanya.Izaksonas-Smith.;;.URL:.
7cc0 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 74 61 6c 69 37 31 33 2f 65 73 78 6d 6c https://github.com/tali713/esxml
7ce0 0a 3b 3b 20 43 72 65 61 74 65 64 3a 20 31 35 74 68 20 41 75 67 75 73 74 20 32 30 31 32 0a 3b 3b .;;.Created:.15th.August.2012.;;
7d00 20 50 61 63 6b 61 67 65 2d 56 65 72 73 69 6f 6e 3a 20 32 30 32 33 30 33 30 38 2e 32 32 35 34 0a .Package-Version:.20230308.2254.
7d20 3b 3b 20 50 61 63 6b 61 67 65 2d 52 65 76 69 73 69 6f 6e 3a 20 32 32 35 36 39 33 30 39 36 61 35 ;;.Package-Revision:.225693096a5
7d40 38 0a 3b 3b 20 4b 65 79 77 6f 72 64 73 3a 20 74 6f 6f 6c 73 2c 20 6c 69 73 70 2c 20 63 6f 6d 6d 8.;;.Keywords:.tools,.lisp,.comm
7d60 0a 3b 3b 20 44 65 73 63 72 69 70 74 69 6f 6e 3a 20 41 20 6c 69 62 72 61 72 79 20 66 6f 72 20 65 .;;.Description:.A.library.for.e
7d80 61 73 69 6c 79 20 67 65 6e 65 72 61 74 69 6e 67 20 58 4d 4c 2f 58 48 54 4d 4c 20 69 6e 20 65 6c asily.generating.XML/XHTML.in.el
7da0 69 73 70 0a 3b 3b 0a 3b 3b 20 54 68 69 73 20 70 72 6f 67 72 61 6d 20 69 73 20 66 72 65 65 20 73 isp.;;.;;.This.program.is.free.s
7dc0 6f 66 74 77 61 72 65 3b 20 79 6f 75 20 63 61 6e 20 72 65 64 69 73 74 72 69 62 75 74 65 20 69 74 oftware;.you.can.redistribute.it
7de0 20 61 6e 64 2f 6f 72 20 6d 6f 64 69 66 79 0a 3b 3b 20 69 74 20 75 6e 64 65 72 20 74 68 65 20 74 .and/or.modify.;;.it.under.the.t
7e00 65 72 6d 73 20 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c erms.of.the.GNU.General.Public.L
7e20 69 63 65 6e 73 65 20 61 73 20 70 75 62 6c 69 73 68 65 64 20 62 79 0a 3b 3b 20 74 68 65 20 46 72 icense.as.published.by.;;.the.Fr
7e40 65 65 20 53 6f 66 74 77 61 72 65 20 46 6f 75 6e 64 61 74 69 6f 6e 2c 20 65 69 74 68 65 72 20 76 ee.Software.Foundation,.either.v
7e60 65 72 73 69 6f 6e 20 33 20 6f 66 20 74 68 65 20 4c 69 63 65 6e 73 65 2c 20 6f 72 0a 3b 3b 20 28 ersion.3.of.the.License,.or.;;.(
7e80 61 74 20 79 6f 75 72 20 6f 70 74 69 6f 6e 29 20 61 6e 79 20 6c 61 74 65 72 20 76 65 72 73 69 6f at.your.option).any.later.versio
7ea0 6e 2e 0a 0a 3b 3b 20 54 68 69 73 20 70 72 6f 67 72 61 6d 20 69 73 20 64 69 73 74 72 69 62 75 74 n...;;.This.program.is.distribut
7ec0 65 64 20 69 6e 20 74 68 65 20 68 6f 70 65 20 74 68 61 74 20 69 74 20 77 69 6c 6c 20 62 65 20 75 ed.in.the.hope.that.it.will.be.u
7ee0 73 65 66 75 6c 2c 0a 3b 3b 20 62 75 74 20 57 49 54 48 4f 55 54 20 41 4e 59 20 57 41 52 52 41 4e seful,.;;.but.WITHOUT.ANY.WARRAN
7f00 54 59 3b 20 77 69 74 68 6f 75 74 20 65 76 65 6e 20 74 68 65 20 69 6d 70 6c 69 65 64 20 77 61 72 TY;.without.even.the.implied.war
7f20 72 61 6e 74 79 20 6f 66 0a 3b 3b 20 4d 45 52 43 48 41 4e 54 41 42 49 4c 49 54 59 20 6f 72 20 46 ranty.of.;;.MERCHANTABILITY.or.F
7f40 49 54 4e 45 53 53 20 46 4f 52 20 41 20 50 41 52 54 49 43 55 4c 41 52 20 50 55 52 50 4f 53 45 2e ITNESS.FOR.A.PARTICULAR.PURPOSE.
7f60 20 20 53 65 65 20 74 68 65 0a 3b 3b 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 ..See.the.;;.GNU.General.Public.
7f80 4c 69 63 65 6e 73 65 20 66 6f 72 20 6d 6f 72 65 20 64 65 74 61 69 6c 73 2e 0a 0a 3b 3b 20 59 6f License.for.more.details...;;.Yo
7fa0 75 20 73 68 6f 75 6c 64 20 68 61 76 65 20 72 65 63 65 69 76 65 64 20 61 20 63 6f 70 79 20 6f 66 u.should.have.received.a.copy.of
7fc0 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 0a .the.GNU.General.Public.License.
7fe0 3b 3b 20 61 6c 6f 6e 67 20 77 69 74 68 20 74 68 69 73 20 70 72 6f 67 72 61 6d 2e 20 20 49 66 20 ;;.along.with.this.program...If.
8000 6e 6f 74 2c 20 73 65 65 20 3c 68 74 74 70 3a 2f 2f 77 77 77 2e 67 6e 75 2e 6f 72 67 2f 6c 69 63 not,.see.<http://www.gnu.org/lic
8020 65 6e 73 65 73 2f 3e 2e 0a 0a 3b 3b 3b 20 43 6f 6d 6d 65 6e 74 61 72 79 3a 0a 0a 3b 3b 20 54 68 enses/>...;;;.Commentary:..;;.Th
8040 69 73 20 69 73 20 58 4d 4c 2f 58 48 54 4d 4c 20 64 6f 6e 65 20 77 69 74 68 20 53 2d 45 78 70 72 is.is.XML/XHTML.done.with.S-Expr
8060 65 73 73 69 6f 6e 73 20 69 6e 20 45 6d 61 63 73 4c 69 73 70 2e 20 20 53 69 6d 70 6c 79 2c 0a 3b essions.in.EmacsLisp...Simply,.;
8080 3b 20 74 68 69 73 20 69 73 20 74 68 65 20 65 61 73 69 65 73 74 20 77 61 79 20 74 6f 20 77 72 69 ;.this.is.the.easiest.way.to.wri
80a0 74 65 20 48 54 4d 4c 20 6f 72 20 58 4d 4c 20 69 6e 20 4c 69 73 70 2e 0a 3b 3b 0a 3b 3b 20 54 68 te.HTML.or.XML.in.Lisp..;;.;;.Th
80c0 69 73 20 6c 69 62 72 61 72 79 20 75 73 65 73 20 74 68 65 20 6e 61 74 69 76 65 20 66 6f 72 6d 20 is.library.uses.the.native.form.
80e0 6f 66 20 58 4d 4c 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 61 73 20 75 73 65 64 20 62 79 of.XML.representation.as.used.by
8100 0a 3b 3b 20 6d 61 6e 79 20 6c 69 62 72 61 72 69 65 73 20 61 6c 72 65 61 64 79 20 69 6e 63 6c 75 .;;.many.libraries.already.inclu
8120 64 65 64 20 77 69 74 68 69 6e 20 65 6d 61 63 73 2e 20 20 54 68 69 73 20 72 65 70 72 65 73 65 6e ded.within.emacs...This.represen
8140 74 61 74 69 6f 6e 0a 3b 3b 20 77 69 6c 6c 20 62 65 20 72 65 66 65 72 72 65 64 20 74 6f 20 61 73 tation.;;.will.be.referred.to.as
8160 20 22 65 73 78 6d 6c 22 20 74 68 72 6f 75 67 68 6f 75 74 20 74 68 69 73 20 6c 69 62 72 61 72 79 ."esxml".throughout.this.library
8180 2e 20 20 53 65 65 0a 3b 3b 20 60 65 73 78 6d 6c 2d 74 6f 2d 78 6d 6c 27 20 66 6f 72 20 61 20 63 ...See.;;.`esxml-to-xml'.for.a.c
81a0 6f 6e 63 69 73 65 20 64 65 73 63 72 69 70 74 69 6f 6e 20 6f 66 20 74 68 65 20 66 6f 72 6d 61 74 oncise.description.of.the.format
81c0 2e 0a 3b 3b 0a 3b 3b 20 54 68 69 73 20 6c 69 62 72 61 72 79 20 69 73 20 6e 6f 74 20 69 6e 74 65 ..;;.;;.This.library.is.not.inte
81e0 6e 64 65 64 20 74 6f 20 62 65 20 75 73 65 64 20 64 69 72 65 63 74 6c 79 20 62 79 20 61 20 75 73 nded.to.be.used.directly.by.a.us
8200 65 72 2c 20 74 68 6f 75 67 68 0a 3b 3b 20 69 74 20 63 65 72 74 61 69 6e 6c 79 20 63 6f 75 6c 64 er,.though.;;.it.certainly.could
8220 20 62 65 2e 20 20 49 74 20 63 6f 75 6c 64 20 62 65 20 75 73 65 64 20 74 6f 20 67 65 6e 65 72 61 .be...It.could.be.used.to.genera
8240 74 65 20 73 74 61 74 69 63 20 68 74 6d 6c 2c 0a 3b 3b 20 6f 72 20 75 73 65 20 61 20 6c 69 62 72 te.static.html,.;;.or.use.a.libr
8260 61 72 79 20 6c 69 6b 65 20 60 65 6c 6e 6f 64 65 27 20 74 6f 20 73 65 72 76 65 20 64 79 6e 61 6d ary.like.`elnode'.to.serve.dynam
8280 69 63 20 70 61 67 65 73 2e 20 20 4f 72 20 65 76 65 6e 20 74 6f 0a 3b 3b 20 65 78 74 72 61 63 74 ic.pages...Or.even.to.;;.extract
82a0 20 61 20 66 6f 72 6d 20 66 72 6f 6d 20 61 20 73 69 74 65 20 74 6f 20 70 72 6f 64 75 63 65 20 61 .a.form.from.a.site.to.produce.a
82c0 6e 20 41 50 49 2e 0a 3b 3b 0a 3b 3b 20 54 4f 44 4f 3a 20 42 65 74 74 65 72 20 64 6f 63 75 6d 65 n.API..;;.;;.TODO:.Better.docume
82e0 6e 74 61 74 69 6f 6e 2c 20 6d 6f 72 65 20 63 6f 6e 76 65 6e 69 65 6e 63 65 2e 0a 3b 3b 0a 3b 3b ntation,.more.convenience..;;.;;
8300 20 4e 4f 54 49 43 45 3a 20 43 6f 64 65 20 62 61 73 65 20 77 69 6c 6c 20 62 65 20 74 72 61 6e 73 .NOTICE:.Code.base.will.be.trans
8320 69 74 69 6f 6e 69 6e 67 20 74 6f 20 75 73 69 6e 67 20 70 63 61 73 65 20 69 6e 73 74 65 61 64 20 itioning.to.using.pcase.instead.
8340 6f 66 0a 3b 3b 20 64 65 73 74 72 75 63 74 75 72 69 6e 67 20 62 69 6e 64 20 77 68 65 72 65 76 65 of.;;.destructuring.bind.whereve
8360 72 20 70 6f 73 73 69 62 6c 65 2e 20 20 49 66 20 74 68 69 73 20 6c 65 61 64 73 20 74 6f 20 68 61 r.possible...If.this.leads.to.ha
8380 72 64 20 74 6f 0a 3b 3b 20 64 65 62 75 67 20 63 6f 64 65 2c 20 70 6c 65 61 73 65 20 6c 65 74 20 rd.to.;;.debug.code,.please.let.
83a0 6d 65 20 6b 6e 6f 77 2c 20 61 6e 64 20 49 20 77 69 6c 6c 20 64 6f 20 77 68 61 74 65 76 65 72 20 me.know,.and.I.will.do.whatever.
83c0 49 20 63 61 6e 20 74 6f 0a 3b 3b 20 72 65 73 6f 6c 76 65 20 74 68 65 73 65 20 69 73 73 75 65 73 I.can.to.;;.resolve.these.issues
83e0 2e 0a 3b 3b 0a 3b 3b 3b 20 43 6f 64 65 3a 0a 28 72 65 71 75 69 72 65 20 27 63 6c 2d 6c 69 62 29 ..;;.;;;.Code:.(require.'cl-lib)
8400 0a 28 72 65 71 75 69 72 65 20 27 78 6d 6c 29 0a 28 72 65 71 75 69 72 65 20 27 70 63 61 73 65 29 .(require.'xml).(require.'pcase)
8420 0a 0a 28 64 65 66 75 6e 20 73 74 72 69 6e 67 2d 74 72 69 6d 2d 77 68 69 74 65 73 70 61 63 65 20 ..(defun.string-trim-whitespace.
8440 28 73 74 72 69 6e 67 29 0a 20 20 22 41 20 73 69 6d 70 6c 65 20 66 75 6e 63 74 69 6f 6e 2c 20 73 (string)..."A.simple.function,.s
8460 74 72 69 70 73 20 74 68 65 20 77 68 69 74 65 73 70 61 63 65 20 66 72 6f 6d 20 62 65 67 69 6e 6e trips.the.whitespace.from.beginn
8480 69 6e 67 20 61 6e 64 0a 65 6e 64 20 6f 66 20 74 68 65 20 73 74 72 69 6e 67 2e 20 20 4c 65 61 76 ing.and.end.of.the.string...Leav
84a0 65 73 20 61 6c 6c 20 6f 74 68 65 72 20 77 68 69 74 65 73 70 61 63 65 20 75 6e 74 6f 75 63 68 65 es.all.other.whitespace.untouche
84c0 64 2e 22 0a 20 20 28 72 65 70 6c 61 63 65 2d 72 65 67 65 78 70 2d 69 6e 2d 73 74 72 69 6e 67 0a d."...(replace-regexp-in-string.
84e0 20 20 20 28 72 78 20 73 74 72 69 6e 67 2d 73 74 61 72 74 20 28 2a 20 77 68 69 74 65 73 70 61 63 ...(rx.string-start.(*.whitespac
8500 65 29 0a 20 20 20 20 20 20 20 28 67 72 6f 75 70 20 28 2b 3f 20 61 6e 79 74 68 69 6e 67 29 29 0a e)........(group.(+?.anything)).
8520 20 20 20 20 20 20 20 28 2a 20 77 68 69 74 65 73 70 61 63 65 29 20 73 74 72 69 6e 67 2d 65 6e 64 .......(*.whitespace).string-end
8540 29 0a 20 20 20 22 5c 5c 31 22 0a 20 20 20 73 74 72 69 6e 67 29 29 0a 0a 28 64 65 66 75 6e 20 65 )...."\\1"....string))..(defun.e
8560 73 78 6d 6c 2d 74 72 69 6d 2d 77 73 20 28 65 73 78 6d 6c 29 0a 20 20 22 54 68 69 73 20 6d 61 79 sxml-trim-ws.(esxml)..."This.may
8580 20 63 61 75 73 65 20 70 72 6f 62 6c 65 6d 73 2c 20 69 73 20 69 6e 74 65 6e 64 65 64 20 66 6f 72 .cause.problems,.is.intended.for
85a0 20 70 61 72 73 69 6e 67 20 78 6d 6c 20 69 6e 74 6f 20 73 78 6d 6c 0a 62 75 74 20 6d 61 79 20 65 .parsing.xml.into.sxml.but.may.e
85c0 72 6f 6e 65 6f 75 73 6c 79 20 64 65 6c 65 74 65 20 64 65 73 69 72 61 62 6c 65 20 77 68 69 74 65 roneously.delete.desirable.white
85e0 20 73 70 61 63 65 2e 22 0a 20 20 28 69 66 20 28 73 74 72 69 6e 67 70 20 65 73 78 6d 6c 29 20 28 .space."...(if.(stringp.esxml).(
8600 73 74 72 69 6e 67 2d 74 72 69 6d 2d 77 68 69 74 65 73 70 61 63 65 20 65 73 78 6d 6c 29 0a 20 20 string-trim-whitespace.esxml)...
8620 20 20 28 70 63 61 73 65 2d 6c 65 74 20 28 28 60 28 2c 74 61 67 20 2c 61 74 74 72 73 20 2e 20 2c ..(pcase-let.((`(,tag.,attrs...,
8640 62 6f 64 79 29 20 65 73 78 6d 6c 29 29 0a 20 20 20 20 20 20 60 28 2c 74 61 67 20 2c 61 74 74 72 body).esxml)).......`(,tag.,attr
8660 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 2c 40 28 6d 61 70 63 61 72 20 27 65 73 78 6d 6c 2d s..............,@(mapcar.'esxml-
8680 74 72 69 6d 2d 77 73 20 62 6f 64 79 29 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 61 74 74 72 70 20 trim-ws.body)))))..(defun.attrp.
86a0 28 61 74 74 72 29 0a 20 20 22 52 65 74 75 72 6e 73 20 74 20 69 66 20 61 74 74 72 20 69 73 20 61 (attr)..."Returns.t.if.attr.is.a
86c0 20 61 6e 20 65 73 78 6d 6c 20 61 74 74 72 69 62 75 74 65 2e 0a 41 6e 20 65 73 78 6d 6c 20 61 74 .an.esxml.attribute..An.esxml.at
86e0 74 72 69 62 75 74 65 20 69 73 20 61 20 63 6f 6e 73 20 6f 66 20 74 68 65 20 66 6f 72 6d 20 28 73 tribute.is.a.cons.of.the.form.(s
8700 79 6d 62 6f 6c 20 2e 20 73 74 72 69 6e 67 29 22 0a 20 28 61 6e 64 20 28 63 6f 6e 73 70 20 61 74 ymbol...string)"..(and.(consp.at
8720 74 72 29 0a 20 20 20 20 20 20 20 28 73 79 6d 62 6f 6c 70 20 28 63 61 72 20 61 74 74 72 29 29 0a tr)........(symbolp.(car.attr)).
8740 20 20 20 20 20 20 20 28 73 74 72 69 6e 67 70 20 28 63 64 72 20 61 74 74 72 29 29 29 29 0a 0a 28 .......(stringp.(cdr.attr))))..(
8760 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 63 6f 6e 76 65 72 74 2d 70 61 69 72 20 28 61 74 74 72 29 defun.esxml--convert-pair.(attr)
8780 0a 20 20 22 43 6f 6e 76 65 72 74 73 20 66 72 6f 6d 20 63 6f 6e 73 20 63 65 6c 6c 20 74 6f 20 61 ..."Converts.from.cons.cell.to.a
87a0 74 74 72 69 62 75 74 65 20 70 61 69 72 2e 20 20 4e 6f 74 20 69 6e 74 65 6e 64 65 64 20 66 6f 72 ttribute.pair...Not.intended.for
87c0 0a 67 65 6e 65 72 61 6c 20 75 73 65 2e 22 0a 20 20 28 70 63 61 73 65 2d 6c 65 74 20 28 28 60 28 .general.use."...(pcase-let.((`(
87e0 2c 63 61 72 20 2e 20 2c 63 64 72 29 20 61 74 74 72 29 29 0a 20 20 20 20 28 63 6c 2d 63 68 65 63 ,car...,cdr).attr)).....(cl-chec
8800 6b 2d 74 79 70 65 20 63 64 72 20 73 74 72 69 6e 67 29 0a 20 20 20 20 28 63 6f 6e 63 61 74 20 28 k-type.cdr.string).....(concat.(
8820 73 79 6d 62 6f 6c 2d 6e 61 6d 65 20 63 61 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 22 3d 22 symbol-name.car)............."="
8840 0a 20 20 20 20 20 20 20 20 20 20 20 20 28 70 72 69 6e 31 2d 74 6f 2d 73 74 72 69 6e 67 20 28 78 .............(prin1-to-string.(x
8860 6d 6c 2d 65 73 63 61 70 65 2d 73 74 72 69 6e 67 20 63 64 72 29 29 29 29 29 0a 0a 28 64 65 66 75 ml-escape-string.cdr)))))..(defu
8880 6e 20 61 74 74 72 73 70 20 28 61 74 74 72 73 29 0a 20 20 20 20 22 52 65 74 75 72 6e 73 20 74 20 n.attrsp.(attrs)....."Returns.t.
88a0 69 66 20 61 74 74 72 73 20 69 73 20 61 20 6c 69 73 74 20 6f 66 20 65 73 78 6d 6c 20 61 74 74 72 if.attrs.is.a.list.of.esxml.attr
88c0 69 62 75 74 65 73 2e 0a 0a 53 65 65 3a 20 60 61 74 74 72 70 27 22 0a 20 20 28 61 6e 64 20 28 6c ibutes...See:.`attrp'"...(and.(l
88e0 69 73 74 70 20 61 74 74 72 73 29 0a 20 20 20 20 20 20 20 28 63 6c 2d 65 76 65 72 79 20 28 6c 61 istp.attrs)........(cl-every.(la
8900 6d 62 64 61 20 28 61 74 74 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 mbda.(attr)....................(
8920 61 6e 64 20 28 63 6f 6e 73 70 20 61 74 74 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 and.(consp.attr)................
8940 20 20 20 20 20 20 20 20 20 28 73 79 6d 62 6f 6c 70 20 28 63 61 72 20 61 74 74 72 29 29 0a 20 20 .........(symbolp.(car.attr))...
8960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 73 74 72 69 6e 67 70 20 28 ......................(stringp.(
8980 63 64 72 20 61 74 74 72 29 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 74 cdr.attr))))..................at
89a0 74 72 73 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 76 61 6c 69 64 61 74 65 2d 66 6f trs)))..(defun.esxml-validate-fo
89c0 72 6d 20 28 65 73 78 6d 6c 29 0a 20 20 22 41 20 66 61 73 74 20 65 73 78 6d 6c 20 76 61 6c 69 64 rm.(esxml)..."A.fast.esxml.valid
89e0 61 74 6f 72 2e 20 20 57 69 6c 6c 20 65 72 72 6f 72 20 6f 6e 20 69 6e 76 61 6c 69 64 20 73 75 62 ator...Will.error.on.invalid.sub
8a00 70 61 72 74 73 20 6d 61 6b 69 6e 67 0a 69 74 20 73 75 69 74 61 62 6c 65 20 66 6f 72 20 68 69 6e parts.making.it.suitable.for.hin
8a20 64 73 69 67 68 74 20 74 65 73 74 69 6e 67 2e 22 0a 20 20 28 63 6f 6e 64 20 28 28 73 74 72 69 6e dsight.testing."...(cond.((strin
8a40 67 70 20 65 73 78 6d 6c 29 20 6e 69 6c 29 0a 20 20 20 20 20 20 20 20 28 28 3c 20 28 6c 65 6e 67 gp.esxml).nil).........((<.(leng
8a60 74 68 20 65 73 78 6d 6c 29 20 32 29 0a 20 20 20 20 20 20 20 20 20 28 65 72 72 6f 72 20 22 25 73 th.esxml).2)..........(error."%s
8a80 20 69 73 20 74 6f 6f 20 73 68 6f 72 74 20 74 6f 20 62 65 20 61 20 76 61 6c 69 64 20 65 73 78 6d .is.too.short.to.be.a.valid.esxm
8aa0 6c 20 65 78 70 72 65 73 73 69 6f 6e 22 20 65 73 78 6d 6c 29 29 0a 20 20 20 20 20 20 20 20 28 74 l.expression".esxml)).........(t
8ac0 20 28 70 63 61 73 65 2d 6c 65 74 20 28 28 60 28 2c 74 61 67 20 2c 61 74 74 72 73 20 2e 20 2c 62 .(pcase-let.((`(,tag.,attrs...,b
8ae0 6f 64 79 29 20 65 73 78 6d 6c 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 6c 2d 63 68 ody).esxml))..............(cl-ch
8b00 65 63 6b 2d 74 79 70 65 20 74 61 67 20 73 79 6d 62 6f 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 eck-type.tag.symbol)............
8b20 20 20 28 63 6c 2d 63 68 65 63 6b 2d 74 79 70 65 20 61 74 74 72 73 20 61 74 74 72 73 29 0a 20 20 ..(cl-check-type.attrs.attrs)...
8b40 20 20 20 20 20 20 20 20 20 20 20 28 6d 61 70 63 61 72 20 27 65 73 78 6d 6c 2d 76 61 6c 69 64 61 ...........(mapcar.'esxml-valida
8b60 74 65 2d 66 6f 72 6d 20 62 6f 64 79 29 29 29 29 29 0a 0a 3b 3b 20 57 68 69 6c 65 20 74 68 65 20 te-form.body)))))..;;.While.the.
8b80 66 6f 6c 6c 6f 77 69 6e 67 20 63 6f 75 6c 64 20 63 65 72 74 61 69 6e 6c 79 20 68 61 76 65 20 62 following.could.certainly.have.b
8ba0 65 65 6e 20 77 72 69 74 74 65 6e 20 75 73 69 6e 67 20 66 6f 72 6d 61 74 2c 0a 3b 3b 20 63 6f 6e een.written.using.format,.;;.con
8bc0 63 61 74 20 6d 61 6b 65 73 20 74 68 65 6d 20 65 61 73 69 65 72 20 74 6f 20 72 65 61 64 2e 20 20 cat.makes.them.easier.to.read...
8be0 55 70 64 61 74 65 20 6c 61 74 65 72 20 69 66 20 6e 65 63 63 65 73 61 72 79 20 66 6f 72 0a 3b 3b Update.later.if.neccesary.for.;;
8c00 20 65 66 66 69 63 69 65 6e 63 79 2e 0a 0a 3b 3b 20 54 68 6f 75 67 68 20 61 74 20 66 69 72 73 74 .efficiency...;;.Though.at.first
8c20 20 67 6c 61 6e 63 65 20 74 68 65 20 72 65 63 75 72 73 69 76 65 20 6e 61 74 75 72 65 20 6f 66 20 .glance.the.recursive.nature.of.
8c40 74 68 69 73 20 66 75 6e 63 74 69 6f 6e 20 6d 69 67 68 74 0a 3b 3b 20 67 69 76 65 20 6f 6e 65 20 this.function.might.;;.give.one.
8c60 70 61 75 73 65 2c 20 73 69 6e 63 65 20 78 6d 6c 20 69 73 20 61 20 72 65 63 75 72 73 69 76 65 20 pause,.since.xml.is.a.recursive.
8c80 64 61 74 61 20 74 79 70 65 2c 20 61 20 72 65 63 75 72 73 69 76 65 0a 3b 3b 20 70 61 72 73 65 72 data.type,.a.recursive.;;.parser
8ca0 20 69 73 20 61 6e 20 6f 70 74 69 6d 61 6c 20 73 74 72 61 74 65 67 79 2e 20 20 65 61 63 68 20 6e .is.an.optimal.strategy...each.n
8cc0 6f 64 65 20 77 69 6c 6c 20 62 65 20 76 69 73 69 74 65 64 20 65 78 61 63 74 6c 79 0a 3b 3b 20 6f ode.will.be.visited.exactly.;;.o
8ce0 6e 63 65 20 64 75 72 69 6e 67 20 74 68 65 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 2e 0a 3b nce.during.the.transformation..;
8d00 3b 0a 3b 3b 20 46 75 72 74 68 65 72 2c 20 73 69 6e 63 65 20 61 20 73 74 72 69 6e 67 20 69 73 20 ;.;;.Further,.since.a.string.is.
8d20 61 20 74 65 72 6d 69 6e 61 6c 20 6e 6f 64 65 20 61 6e 64 20 73 69 6e 63 65 20 78 6d 6c 20 63 61 a.terminal.node.and.since.xml.ca
8d40 6e 20 62 65 0a 3b 3b 20 72 65 70 72 65 73 65 6e 74 65 64 20 61 73 20 61 20 73 74 72 69 6e 67 2c n.be.;;.represented.as.a.string,
8d60 20 6e 6f 6e 20 64 79 6e 61 6d 69 63 20 70 6f 72 74 69 6f 6e 73 20 6f 66 20 74 68 65 20 70 61 67 .non.dynamic.portions.of.the.pag
8d80 65 20 6d 61 79 20 62 65 0a 3b 3b 20 70 72 65 63 61 63 68 65 64 20 71 75 69 74 65 20 65 61 73 69 e.may.be.;;.precached.quite.easi
8da0 6c 79 2e 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 2d 74 6f 2d 78 6d 6c 2d 72 65 63 75 72 73 69 ly..(defun.esxml--to-xml-recursi
8dc0 76 65 20 28 65 73 78 6d 6c 29 0a 20 20 28 70 63 61 73 65 20 65 73 78 6d 6c 0a 20 20 20 20 28 28 ve.(esxml)...(pcase.esxml.....((
8de0 70 72 65 64 20 73 74 72 69 6e 67 70 29 0a 20 20 20 20 20 28 78 6d 6c 2d 65 73 63 61 70 65 2d 73 pred.stringp)......(xml-escape-s
8e00 74 72 69 6e 67 20 65 73 78 6d 6c 29 29 0a 20 20 20 20 28 60 28 72 61 77 2d 73 74 72 69 6e 67 20 tring.esxml)).....(`(raw-string.
8e20 2c 73 74 72 69 6e 67 29 0a 20 20 20 20 20 28 63 6c 2d 63 68 65 63 6b 2d 74 79 70 65 20 73 74 72 ,string)......(cl-check-type.str
8e40 69 6e 67 20 73 74 72 69 6e 67 70 29 0a 20 20 20 20 20 73 74 72 69 6e 67 29 0a 20 20 20 20 28 60 ing.stringp)......string).....(`
8e60 28 63 6f 6d 6d 65 6e 74 20 6e 69 6c 20 2c 62 6f 64 79 29 0a 20 20 20 20 20 28 63 6f 6e 63 61 74 (comment.nil.,body)......(concat
8e80 20 22 3c 21 2d 2d 20 22 20 62 6f 64 79 20 22 20 2d 2d 3e 22 29 29 0a 20 20 20 20 28 60 28 2c 74 ."<!--.".body.".-->")).....(`(,t
8ea0 61 67 20 2c 61 74 74 72 73 20 2e 20 2c 62 6f 64 79 29 0a 20 20 20 20 20 3b 3b 20 63 6f 64 65 20 ag.,attrs...,body)......;;.code.
8ec0 67 6f 65 73 20 68 65 72 65 20 74 6f 20 63 61 74 63 68 20 69 6e 76 61 6c 69 64 20 64 61 74 61 2e goes.here.to.catch.invalid.data.
8ee0 0a 20 20 20 20 20 28 63 6f 6e 63 61 74 20 22 3c 22 20 28 73 79 6d 62 6f 6c 2d 6e 61 6d 65 20 74 ......(concat."<".(symbol-name.t
8f00 61 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 77 68 65 6e 20 61 74 74 72 73 0a 20 20 20 ag)..............(when.attrs....
8f20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 6f 6e 63 61 74 20 22 20 22 20 28 6d 61 70 63 6f 6e 63 ............(concat.".".(mapconc
8f40 61 74 20 27 65 73 78 6d 6c 2d 2d 63 6f 6e 76 65 72 74 2d 70 61 69 72 20 61 74 74 72 73 20 22 20 at.'esxml--convert-pair.attrs.".
8f60 22 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 69 66 20 62 6f 64 79 0a 20 20 20 20 20 ")))..............(if.body......
8f80 20 20 20 20 20 20 20 20 20 20 20 20 28 63 6f 6e 63 61 74 20 22 3e 22 20 28 6d 61 70 63 6f 6e 63 ............(concat.">".(mapconc
8fa0 61 74 20 27 65 73 78 6d 6c 2d 2d 74 6f 2d 78 6d 6c 2d 72 65 63 75 72 73 69 76 65 20 62 6f 64 79 at.'esxml--to-xml-recursive.body
8fc0 20 22 22 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 22 3c ."").........................."<
8fe0 2f 22 20 28 73 79 6d 62 6f 6c 2d 6e 61 6d 65 20 74 61 67 29 20 22 3e 22 29 0a 20 20 20 20 20 20 /".(symbol-name.tag).">").......
9000 20 20 20 20 20 20 20 20 20 22 2f 3e 22 29 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c ........."/>")))))..(defun.esxml
9020 2d 74 6f 2d 78 6d 6c 20 28 65 73 78 6d 6c 29 0a 20 20 22 54 68 69 73 20 74 72 61 6e 73 6c 61 74 -to-xml.(esxml)..."This.translat
9040 65 73 20 61 6e 20 65 73 78 6d 6c 20 65 78 70 72 65 73 73 69 6f 6e 2c 20 69 2e 65 2e 20 74 68 61 es.an.esxml.expression,.i.e..tha
9060 74 20 77 68 69 63 68 20 69 73 20 72 65 74 75 72 6e 65 64 0a 62 79 20 78 6d 6c 2d 70 61 72 73 65 t.which.is.returned.by.xml-parse
9080 2d 72 65 67 69 6f 6e 2e 20 54 68 65 20 73 74 72 75 63 74 75 72 65 20 69 73 20 64 65 66 69 6e 65 -region..The.structure.is.define
90a0 64 20 61 73 20 61 6e 79 20 6f 66 20 74 68 65 0a 66 6f 6c 6c 6f 77 69 6e 67 20 66 6f 72 6d 73 3a d.as.any.of.the.following.forms:
90c0 0a 0a 2d 20 41 20 73 74 72 69 6e 67 2e 0a 0a 20 53 54 52 49 4e 47 0a 0a 53 54 52 49 4e 47 3a 20 ..-.A.string....STRING..STRING:.
90e0 74 68 65 20 73 74 72 69 6e 67 20 69 74 20 69 73 20 72 65 74 75 72 6e 65 64 20 77 69 74 68 20 65 the.string.it.is.returned.with.e
9100 6e 74 69 74 69 65 73 20 65 73 63 61 70 65 64 0a 0a 2d 20 41 20 6c 69 73 74 20 77 68 65 72 65 20 ntities.escaped..-.A.list.where.
9120 74 68 65 20 66 69 72 73 74 20 65 6c 65 6d 65 6e 74 20 69 73 20 74 68 65 20 72 61 77 2d 73 74 72 the.first.element.is.the.raw-str
9140 69 6e 67 20 73 79 6d 62 6f 6c 20 61 6e 64 20 74 68 65 0a 20 20 73 65 63 6f 6e 64 20 69 73 20 61 ing.symbol.and.the...second.is.a
9160 20 73 74 72 69 6e 67 2e 0a 0a 20 28 72 61 77 2d 73 74 72 69 6e 67 20 53 54 52 49 4e 47 29 0a 0a .string....(raw-string.STRING)..
9180 53 54 52 49 4e 47 3a 20 74 68 65 20 73 74 72 69 6e 67 20 69 73 20 72 65 74 75 72 6e 65 64 20 75 STRING:.the.string.is.returned.u
91a0 6e 63 68 61 6e 67 65 64 2e 20 54 68 69 73 20 61 6c 6c 6f 77 73 20 66 6f 72 20 63 61 63 68 69 6e nchanged..This.allows.for.cachin
91c0 67 0a 20 20 20 20 20 20 20 20 6f 66 20 61 6e 79 20 63 6f 6e 73 74 61 6e 74 20 70 61 72 74 73 2c g.........of.any.constant.parts,
91e0 20 73 75 63 68 20 61 73 20 68 65 61 64 65 72 73 20 61 6e 64 20 66 6f 6f 74 65 72 73 2e 0a 0a 2d .such.as.headers.and.footers...-
9200 20 41 20 6c 69 73 74 20 77 68 65 72 65 20 74 68 65 20 66 69 72 73 74 20 65 6c 65 6d 65 6e 74 20 .A.list.where.the.first.element.
9220 69 73 20 74 68 65 20 63 6f 6d 6d 65 6e 74 20 73 79 6d 62 6f 6c 20 61 6e 64 20 74 68 65 0a 20 20 is.the.comment.symbol.and.the...
9240 73 65 63 6f 6e 64 20 69 73 20 61 20 73 74 72 69 6e 67 2e 0a 0a 20 28 63 6f 6d 6d 65 6e 74 20 53 second.is.a.string....(comment.S
9260 54 52 49 4e 47 29 0a 0a 53 54 52 49 4e 47 3a 20 74 68 65 20 73 74 72 69 6e 67 20 69 73 20 65 6d TRING)..STRING:.the.string.is.em
9280 62 65 64 64 65 64 20 69 6e 20 61 20 48 54 4d 4c 20 63 6f 6d 6d 65 6e 74 2e 0a 0a 2d 20 41 20 6c bedded.in.a.HTML.comment...-.A.l
92a0 69 73 74 20 77 68 65 72 65 20 74 68 65 20 66 69 72 73 74 20 65 6c 65 6d 65 6e 74 20 69 73 20 74 ist.where.the.first.element.is.t
92c0 68 65 20 74 61 67 2c 20 74 68 65 20 73 65 63 6f 6e 64 20 69 73 0a 61 6e 20 61 6c 69 73 74 20 6f he.tag,.the.second.is.an.alist.o
92e0 66 20 61 74 74 72 69 62 75 74 65 20 76 61 6c 75 65 20 70 61 69 72 73 20 61 6e 64 20 74 68 65 20 f.attribute.value.pairs.and.the.
9300 72 65 6d 61 69 6e 64 65 72 20 6f 66 20 74 68 65 20 6c 69 73 74 0a 69 73 20 30 20 6f 72 20 6d 6f remainder.of.the.list.is.0.or.mo
9320 72 65 20 65 73 78 6d 6c 20 65 6c 65 6d 65 6e 74 73 2e 0a 0a 20 28 54 41 47 20 41 54 54 52 53 20 re.esxml.elements....(TAG.ATTRS.
9340 26 72 65 73 74 20 42 4f 44 59 29 0a 0a 54 41 47 3a 20 69 73 20 74 68 65 20 74 61 67 20 61 6e 64 &rest.BODY)..TAG:.is.the.tag.and
9360 20 6d 75 73 74 20 62 65 20 61 20 73 79 6d 62 6f 6c 2e 0a 0a 41 54 54 52 53 3a 20 69 73 20 61 6e .must.be.a.symbol...ATTRS:.is.an
9380 20 61 6c 69 73 74 20 6f 66 20 61 74 74 72 69 62 75 74 65 20 70 61 69 72 73 20 65 61 63 68 20 70 .alist.of.attribute.pairs.each.p
93a0 61 69 72 20 6d 75 73 74 20 62 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 20 20 66 6f 72 6d 20 28 air.must.be.of.the........form.(
93c0 4b 45 59 20 2e 20 56 41 4c 55 45 29 2e 0a 0a 4b 45 59 3a 20 69 73 20 74 68 65 20 6e 61 6d 65 20 KEY...VALUE)...KEY:.is.the.name.
93e0 6f 66 20 74 68 65 20 61 74 74 72 69 62 75 74 65 20 61 6e 64 20 6d 75 73 74 20 62 65 20 61 20 73 of.the.attribute.and.must.be.a.s
9400 79 6d 62 6f 6c 2e 0a 0a 56 41 4c 55 45 3a 20 69 73 20 74 68 65 20 76 61 6c 75 65 20 6f 66 20 74 ymbol...VALUE:.is.the.value.of.t
9420 68 65 20 61 74 74 72 69 62 75 74 65 20 61 6e 64 20 6d 75 73 74 20 62 65 20 61 20 73 74 72 69 6e he.attribute.and.must.be.a.strin
9440 67 2e 0a 0a 42 4f 44 59 3a 20 69 73 20 7a 65 72 6f 20 6f 72 20 6d 6f 72 65 20 65 73 78 6d 6c 20 g...BODY:.is.zero.or.more.esxml.
9460 65 78 70 72 65 73 73 69 6f 6e 73 2e 20 20 48 61 76 69 6e 67 20 6e 6f 20 62 6f 64 79 20 66 6f 72 expressions...Having.no.body.for
9480 6d 73 0a 20 20 20 20 20 20 69 6d 70 6c 69 65 73 20 74 68 61 74 20 74 68 65 20 74 61 67 20 73 68 ms.......implies.that.the.tag.sh
94a0 6f 75 6c 64 20 62 65 20 73 65 6c 66 20 63 6c 6f 73 65 64 2e 20 20 49 66 20 74 68 65 72 65 20 69 ould.be.self.closed...If.there.i
94c0 73 0a 20 20 20 20 20 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 62 6f 64 79 20 66 6f 72 6d 73 20 74 s.......one.or.more.body.forms.t
94e0 68 65 20 74 61 67 20 77 69 6c 6c 20 61 6c 77 61 79 73 20 62 65 20 65 78 70 6c 69 63 69 74 6c 79 he.tag.will.always.be.explicitly
9500 0a 20 20 20 20 20 20 63 6c 6f 73 65 64 2c 20 65 76 65 6e 20 69 66 20 74 68 65 79 20 61 72 65 20 .......closed,.even.if.they.are.
9520 74 68 65 20 65 6d 70 74 79 20 73 74 72 69 6e 67 2e 22 0a 20 20 28 63 6f 6e 64 69 74 69 6f 6e 2d the.empty.string."...(condition-
9540 63 61 73 65 20 6e 69 6c 0a 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 2d 74 6f 2d 78 6d 6c 2d 72 65 case.nil.......(esxml--to-xml-re
9560 63 75 72 73 69 76 65 20 65 73 78 6d 6c 29 0a 20 20 20 20 28 65 72 72 6f 72 20 28 65 73 78 6d 6c cursive.esxml).....(error.(esxml
9580 2d 76 61 6c 69 64 61 74 65 2d 66 6f 72 6d 20 65 73 78 6d 6c 29 29 29 29 0a 0a 28 64 65 66 75 6e -validate-form.esxml))))..(defun
95a0 20 70 70 2d 65 73 78 6d 6c 2d 74 6f 2d 78 6d 6c 20 28 65 73 78 6d 6c 29 0a 20 20 22 54 68 69 73 .pp-esxml-to-xml.(esxml)..."This
95c0 20 74 72 61 6e 73 6c 61 74 65 73 20 61 6e 20 65 73 78 6d 6c 20 65 78 70 72 65 73 69 6f 6e 20 61 .translates.an.esxml.expresion.a
95e0 73 20 60 65 73 78 6d 6c 2d 74 6f 2d 78 6d 6c 27 20 62 75 74 0a 69 6e 64 65 6e 74 73 20 69 74 20 s.`esxml-to-xml'.but.indents.it.
9600 66 6f 72 20 65 61 73 65 20 6f 66 20 68 75 6d 61 6e 20 72 65 61 64 61 62 69 6c 69 74 79 2c 20 69 for.ease.of.human.readability,.i
9620 74 20 69 73 20 6e 65 63 65 73 73 61 72 69 6c 79 0a 73 6c 6f 77 65 72 20 61 6e 64 20 77 69 6c 6c t.is.necessarily.slower.and.will
9640 20 70 72 6f 64 75 63 65 20 6c 6f 6e 67 65 72 20 6f 75 74 70 75 74 2e 22 0a 20 20 28 70 63 61 73 .produce.longer.output."...(pcas
9660 65 20 65 73 78 6d 6c 0a 20 20 20 20 28 28 70 72 65 64 20 73 74 72 69 6e 67 70 29 0a 20 20 20 20 e.esxml.....((pred.stringp).....
9680 20 28 78 6d 6c 2d 65 73 63 61 70 65 2d 73 74 72 69 6e 67 20 65 73 78 6d 6c 29 29 0a 20 20 20 20 .(xml-escape-string.esxml)).....
96a0 28 60 28 72 61 77 2d 73 74 72 69 6e 67 20 2c 73 74 72 69 6e 67 29 0a 20 20 20 20 20 28 63 6c 2d (`(raw-string.,string)......(cl-
96c0 63 68 65 63 6b 2d 74 79 70 65 20 73 74 72 69 6e 67 20 73 74 72 69 6e 67 70 29 0a 20 20 20 20 20 check-type.string.stringp)......
96e0 73 74 72 69 6e 67 29 0a 20 20 20 20 28 60 28 63 6f 6d 6d 65 6e 74 20 6e 69 6c 20 2c 62 6f 64 79 string).....(`(comment.nil.,body
9700 29 0a 20 20 20 20 20 28 63 6f 6e 63 61 74 20 22 3c 21 2d 2d 20 22 20 62 6f 64 79 20 22 20 2d 2d )......(concat."<!--.".body.".--
9720 3e 22 29 29 0a 20 20 20 20 28 60 28 2c 74 61 67 20 2c 61 74 74 72 73 20 2e 20 2c 62 6f 64 79 29 >")).....(`(,tag.,attrs...,body)
9740 0a 20 20 20 20 20 28 63 6c 2d 63 68 65 63 6b 2d 74 79 70 65 20 74 61 67 20 73 79 6d 62 6f 6c 29 ......(cl-check-type.tag.symbol)
9760 0a 20 20 20 20 20 28 63 6c 2d 63 68 65 63 6b 2d 74 79 70 65 20 61 74 74 72 73 20 61 74 74 72 73 ......(cl-check-type.attrs.attrs
9780 29 0a 20 20 20 20 20 28 63 6f 6e 63 61 74 20 22 3c 22 20 28 73 79 6d 62 6f 6c 2d 6e 61 6d 65 20 )......(concat."<".(symbol-name.
97a0 74 61 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 77 68 65 6e 20 61 74 74 72 73 0a 20 20 tag)..............(when.attrs...
97c0 20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 6f 6e 63 61 74 20 22 20 22 20 28 6d 61 70 63 6f 6e .............(concat.".".(mapcon
97e0 63 61 74 20 27 65 73 78 6d 6c 2d 2d 63 6f 6e 76 65 72 74 2d 70 61 69 72 20 61 74 74 72 73 20 22 cat.'esxml--convert-pair.attrs."
9800 20 22 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 28 69 66 20 62 6f 64 79 0a 20 20 20 20 .")))..............(if.body.....
9820 20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 6f 6e 63 61 74 20 22 3e 22 20 28 69 66 20 28 63 6c .............(concat.">".(if.(cl
9840 2d 65 76 65 72 79 20 27 73 74 72 69 6e 67 70 20 62 6f 64 79 29 0a 20 20 20 20 20 20 20 20 20 20 -every.'stringp.body)...........
9860 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6d 61 70 63 6f 6e 63 61 .......................(mapconca
9880 74 20 27 69 64 65 6e 74 69 74 79 20 62 6f 64 79 20 22 20 22 29 0a 20 20 20 20 20 20 20 20 20 20 t.'identity.body.".")...........
98a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 6f 6e 63 61 74 20 22 5c 6e .....................(concat."\n
98c0 22 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 "...............................
98e0 20 20 20 20 20 20 20 20 20 28 72 65 70 6c 61 63 65 2d 72 65 67 65 78 70 2d 69 6e 2d 73 74 72 69 .........(replace-regexp-in-stri
9900 6e 67 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ng..............................
9920 20 20 20 20 20 20 20 20 20 20 20 22 5e 22 20 22 20 20 22 0a 20 20 20 20 20 20 20 20 20 20 20 20 ..........."^"."..".............
9940 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6d 61 70 ............................(map
9960 63 6f 6e 63 61 74 20 27 70 70 2d 65 73 78 6d 6c 2d 74 6f 2d 78 6d 6c 20 62 6f 64 79 20 22 5c 6e concat.'pp-esxml-to-xml.body."\n
9980 22 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ")).............................
99a0 20 20 20 20 20 20 20 20 20 20 20 22 5c 6e 22 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........."\n"))...............
99c0 20 20 20 20 20 20 20 20 20 20 20 22 3c 2f 22 20 28 73 79 6d 62 6f 6c 2d 6e 61 6d 65 20 74 61 67 ..........."</".(symbol-name.tag
99e0 29 20 22 3e 22 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 22 2f 3e 22 29 29 29 0a 20 20 ).">")................"/>")))...
9a00 20 20 28 5f 0a 20 20 20 20 20 28 65 72 72 6f 72 20 22 25 73 20 69 73 20 6e 6f 74 20 61 20 76 61 ..(_......(error."%s.is.not.a.va
9a20 6c 69 64 20 65 73 78 6d 6c 20 65 78 70 72 65 73 73 69 6f 6e 22 20 65 73 78 6d 6c 29 29 29 29 0a lid.esxml.expression".esxml)))).
9a40 0a 28 64 65 66 75 6e 20 73 78 6d 6c 2d 74 6f 2d 65 73 78 6d 6c 20 28 73 78 6d 6c 29 0a 20 20 22 .(defun.sxml-to-esxml.(sxml)..."
9a60 54 72 61 6e 73 6c 61 74 65 73 20 73 78 6d 6c 20 74 6f 20 65 73 78 6d 6c 20 73 6f 20 74 68 65 20 Translates.sxml.to.esxml.so.the.
9a80 63 6f 6d 6d 6f 6e 20 73 74 61 6e 64 61 72 64 20 63 61 6e 20 62 65 20 75 73 65 64 2e 0a 53 65 65 common.standard.can.be.used..See
9aa0 3a 20 68 74 74 70 3a 2f 2f 6f 6b 6d 69 6a 2e 6f 72 67 2f 66 74 70 2f 53 63 68 65 6d 65 2f 53 58 :.http://okmij.org/ftp/Scheme/SX
9ac0 4d 4c 2e 68 74 6d 6c 2e 20 41 64 64 69 74 69 6f 6e 61 6c 6c 79 2c 0a 28 2a 52 41 57 2d 53 54 52 ML.html..Additionally,.(*RAW-STR
9ae0 49 4e 47 2a 20 5c 22 73 74 72 69 6e 67 5c 22 29 20 69 73 20 74 72 61 6e 73 6c 61 74 65 64 20 74 ING*.\"string\").is.translated.t
9b00 6f 20 28 72 61 77 2d 73 74 72 69 6e 67 0a 5c 22 73 74 72 69 6e 67 5c 22 29 2e 22 0a 20 20 28 70 o.(raw-string.\"string\")."...(p
9b20 63 61 73 65 20 73 78 6d 6c 0a 20 20 20 20 28 60 28 2a 52 41 57 2d 53 54 52 49 4e 47 2a 20 2c 62 case.sxml.....(`(*RAW-STRING*.,b
9b40 6f 64 79 29 0a 20 20 20 20 20 60 28 72 61 77 2d 73 74 72 69 6e 67 20 2c 62 6f 64 79 29 29 0a 20 ody)......`(raw-string.,body))..
9b60 20 20 20 28 60 28 2a 43 4f 4d 4d 45 4e 54 2a 20 2c 62 6f 64 79 29 0a 20 20 20 20 20 60 28 63 6f ...(`(*COMMENT*.,body)......`(co
9b80 6d 6d 65 6e 74 20 6e 69 6c 20 2c 62 6f 64 79 29 29 0a 20 20 20 20 28 60 28 2c 74 61 67 20 28 40 mment.nil.,body)).....(`(,tag.(@
9ba0 20 2e 20 2c 61 74 74 72 73 29 20 2e 20 2c 62 6f 64 79 29 0a 20 20 20 20 20 60 28 2c 74 61 67 20 ...,attrs)...,body)......`(,tag.
9bc0 2c 28 6d 61 70 63 61 72 20 28 6c 61 6d 62 64 61 20 28 61 74 74 72 29 0a 20 20 20 20 20 20 20 20 ,(mapcar.(lambda.(attr).........
9be0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 6f 6e 73 20 28 63 61 72 20 61 74 74 72 29 0a ...............(cons.(car.attr).
9c00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 6f 72 .............................(or
9c20 20 28 63 61 64 72 20 61 74 74 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .(cadr.attr)....................
9c40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 70 72 69 6e 31 2d 74 6f 2d 73 74 72 69 6e 67 20 28 ..............(prin1-to-string.(
9c60 63 61 72 20 61 74 74 72 29 29 29 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 car.attr)))))...................
9c80 20 20 20 61 74 74 72 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 2c 40 28 6d 61 70 63 61 72 20 ...attrs).............,@(mapcar.
9ca0 27 73 78 6d 6c 2d 74 6f 2d 65 73 78 6d 6c 20 62 6f 64 79 29 29 29 0a 20 20 20 20 28 60 28 2c 74 'sxml-to-esxml.body))).....(`(,t
9cc0 61 67 20 2e 20 2c 62 6f 64 79 29 0a 20 20 20 20 20 60 28 2c 74 61 67 20 6e 69 6c 0a 20 20 20 20 ag...,body)......`(,tag.nil.....
9ce0 20 20 20 20 20 20 20 20 2c 40 28 6d 61 70 63 61 72 20 27 73 78 6d 6c 2d 74 6f 2d 65 73 78 6d 6c ........,@(mapcar.'sxml-to-esxml
9d00 20 62 6f 64 79 29 29 29 0a 20 20 20 20 28 28 61 6e 64 20 73 78 6d 6c 20 28 70 72 65 64 20 73 74 .body))).....((and.sxml.(pred.st
9d20 72 69 6e 67 70 29 29 20 73 78 6d 6c 29 29 29 0a 0a 28 64 65 66 75 6e 20 73 78 6d 6c 2d 74 6f 2d ringp)).sxml)))..(defun.sxml-to-
9d40 78 6d 6c 20 28 73 78 6d 6c 29 0a 20 20 22 54 72 61 6e 73 6c 61 74 65 73 20 73 78 6d 6c 20 74 6f xml.(sxml)..."Translates.sxml.to
9d60 20 78 6d 6c 2c 20 76 69 61 20 65 73 78 6d 6c 2c 20 68 65 79 20 69 74 27 73 20 6f 6e 6c 79 20 61 .xml,.via.esxml,.hey.it's.only.a
9d80 20 63 6f 6e 73 74 61 6e 74 0a 66 61 63 74 6f 72 2e 20 3a 29 22 0a 20 20 28 65 73 78 6d 6c 2d 74 .constant.factor..:)"...(esxml-t
9da0 6f 2d 78 6d 6c 20 28 73 78 6d 6c 2d 74 6f 2d 65 73 78 6d 6c 20 73 78 6d 6c 29 29 29 0a 0a 0c 0a o-xml.(sxml-to-esxml.sxml)))....
9dc0 0a 3b 3b 20 54 4f 44 4f 3a 20 6d 61 6b 65 20 61 67 6e 6f 73 74 69 63 20 77 69 74 68 20 72 65 73 .;;.TODO:.make.agnostic.with.res
9de0 70 65 63 74 20 74 6f 20 6c 69 62 78 6d 6c 20 76 73 20 78 6d 6c 2e 65 6c 0a 28 64 65 66 75 6e 20 pect.to.libxml.vs.xml.el.(defun.
9e00 78 6d 6c 2d 74 6f 2d 65 73 78 6d 6c 20 28 73 74 72 69 6e 67 20 26 6f 70 74 69 6f 6e 61 6c 20 74 xml-to-esxml.(string.&optional.t
9e20 72 69 6d 29 0a 20 20 28 77 69 74 68 2d 74 65 6d 70 2d 62 75 66 66 65 72 0a 20 20 20 20 28 69 6e rim)...(with-temp-buffer.....(in
9e40 73 65 72 74 20 73 74 72 69 6e 67 29 0a 20 20 20 20 28 6c 65 74 20 28 28 70 61 72 73 65 2d 74 72 sert.string).....(let.((parse-tr
9e60 65 65 20 28 6c 69 62 78 6d 6c 2d 70 61 72 73 65 2d 78 6d 6c 2d 72 65 67 69 6f 6e 20 28 70 6f 69 ee.(libxml-parse-xml-region.(poi
9e80 6e 74 2d 6d 69 6e 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nt-min).........................
9ea0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 70 6f 69 6e 74 2d 6d 61 .......................(point-ma
9ec0 78 29 29 29 29 0a 20 20 20 20 20 20 28 69 66 20 74 72 69 6d 0a 20 20 20 20 20 20 20 20 20 20 28 x)))).......(if.trim...........(
9ee0 65 73 78 6d 6c 2d 74 72 69 6d 2d 77 73 20 70 61 72 73 65 2d 74 72 65 65 29 0a 20 20 20 20 20 20 esxml-trim-ws.parse-tree).......
9f00 20 20 70 61 72 73 65 2d 74 72 65 65 29 29 29 29 0a 0a 3b 3b 20 54 4f 44 4f 2c 20 6d 6f 76 65 20 ..parse-tree))))..;;.TODO,.move.
9f20 74 6f 20 65 73 78 70 61 74 68 20 77 68 65 6e 20 6d 61 74 75 72 65 0a 28 64 65 66 75 6e 20 65 73 to.esxpath.when.mature.(defun.es
9f40 78 6d 6c 2d 67 65 74 2d 62 79 2d 6b 65 79 20 28 65 73 78 6d 6c 20 6b 65 79 20 76 61 6c 75 65 29 xml-get-by-key.(esxml.key.value)
9f60 0a 20 20 22 52 65 74 75 72 6e 73 20 61 20 6c 69 73 74 20 6f 66 20 61 6c 6c 20 65 6c 65 6d 65 6e ..."Returns.a.list.of.all.elemen
9f80 74 73 20 77 68 6f 73 65 20 77 74 74 72 69 62 75 74 65 20 4b 45 59 20 6d 61 74 63 68 0a 56 41 4c ts.whose.wttribute.KEY.match.VAL
9fa0 55 45 2e 20 20 4b 45 59 20 73 68 6f 75 6c 64 20 62 65 20 61 20 73 79 6d 62 6f 6c 2c 20 61 6e 64 UE...KEY.should.be.a.symbol,.and
9fc0 20 56 41 4c 55 45 20 73 68 6f 75 6c 64 20 62 65 20 61 20 73 74 72 69 6e 67 2e 0a 57 69 6c 6c 20 .VALUE.should.be.a.string..Will.
9fe0 6e 6f 74 20 72 65 63 75 72 73 65 20 62 65 6c 6f 77 20 61 20 6d 61 74 63 68 2e 22 0a 20 20 28 75 not.recurse.below.a.match."...(u
a000 6e 6c 65 73 73 20 28 73 74 72 69 6e 67 70 20 65 73 78 6d 6c 29 0a 20 20 20 20 28 70 63 61 73 65 nless.(stringp.esxml).....(pcase
a020 2d 6c 65 74 20 28 28 60 28 2c 74 61 67 20 2c 61 74 74 72 73 20 2e 20 2c 62 6f 64 79 29 20 65 73 -let.((`(,tag.,attrs...,body).es
a040 78 6d 6c 29 29 0a 20 20 20 20 20 20 28 69 66 20 28 65 71 75 61 6c 20 76 61 6c 75 65 0a 20 20 20 xml)).......(if.(equal.value....
a060 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 61 73 73 6f 63 2d 64 65 66 61 75 6c 74 20 6b 65 79 ..............(assoc-default.key
a080 20 61 74 74 72 73 29 29 0a 20 20 20 20 20 20 20 20 20 20 28 6c 69 73 74 20 65 73 78 6d 6c 29 0a .attrs))...........(list.esxml).
a0a0 20 20 20 20 20 20 20 20 28 61 70 70 6c 79 20 27 61 70 70 65 6e 64 20 28 6d 61 70 63 61 72 20 28 ........(apply.'append.(mapcar.(
a0c0 6c 61 6d 62 64 61 20 28 73 65 78 70 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 lambda.(sexp)...................
a0e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 65 73 78 6d 6c 2d 67 65 74 2d 62 79 2d 6b 65 79 ...............(esxml-get-by-key
a100 20 73 65 78 70 20 6b 65 79 20 76 61 6c 75 65 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .sexp.key.value))...............
a120 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 64 79 29 29 29 29 29 29 0a 0a 28 64 65 .................body))))))..(de
a140 66 75 6e 20 65 73 78 6d 6c 2d 67 65 74 2d 74 61 67 73 20 28 65 73 78 6d 6c 20 74 61 67 73 29 0a fun.esxml-get-tags.(esxml.tags).
a160 20 20 22 52 65 74 75 72 6e 73 20 61 20 6c 69 73 74 20 6f 66 20 61 6c 6c 20 65 6c 65 6d 65 6e 74 .."Returns.a.list.of.all.element
a180 73 20 77 68 6f 73 65 20 74 61 67 20 69 73 20 61 20 6d 65 6d 62 65 72 20 6f 66 20 54 41 47 53 2e s.whose.tag.is.a.member.of.TAGS.
a1a0 0a 54 41 47 53 20 73 68 6f 75 6c 64 20 62 65 20 61 20 6c 69 73 74 20 6f 66 20 74 61 67 73 20 74 .TAGS.should.be.a.list.of.tags.t
a1c0 6f 20 62 65 20 6d 61 74 63 68 65 64 20 61 67 61 69 6e 73 74 2e 20 57 69 6c 6c 20 6e 6f 74 0a 72 o.be.matched.against..Will.not.r
a1e0 65 63 75 72 73 65 20 62 65 6c 6f 77 20 61 20 6d 61 74 63 68 2e 22 0a 20 20 28 75 6e 6c 65 73 73 ecurse.below.a.match."...(unless
a200 20 28 73 74 72 69 6e 67 70 20 65 73 78 6d 6c 29 0a 20 20 20 20 28 70 63 61 73 65 2d 6c 65 74 20 .(stringp.esxml).....(pcase-let.
a220 28 28 60 28 2c 74 61 67 20 2c 61 74 74 72 73 20 2e 20 2c 62 6f 64 79 29 20 65 73 78 6d 6c 29 29 ((`(,tag.,attrs...,body).esxml))
a240 0a 20 20 20 20 20 20 28 69 66 20 28 6d 65 6d 62 65 72 20 74 61 67 20 74 61 67 73 29 0a 20 20 20 .......(if.(member.tag.tags)....
a260 20 20 20 20 20 20 20 28 6c 69 73 74 20 65 73 78 6d 6c 29 0a 20 20 20 20 20 20 20 20 28 61 70 70 .......(list.esxml).........(app
a280 6c 79 20 27 61 70 70 65 6e 64 20 28 6d 61 70 63 61 72 20 28 6c 61 6d 62 64 61 20 28 73 65 78 70 ly.'append.(mapcar.(lambda.(sexp
a2a0 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )...............................
a2c0 20 20 20 28 65 73 78 6d 6c 2d 67 65 74 2d 74 61 67 73 20 73 65 78 70 20 74 61 67 73 29 29 0a 20 ...(esxml-get-tags.sexp.tags))..
a2e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 6f ..............................bo
a300 64 79 29 29 29 29 29 29 0a 0a 28 64 65 66 75 6e 20 65 73 78 6d 6c 2d 67 65 74 2d 66 6f 72 6d 73 dy))))))..(defun.esxml-get-forms
a320 20 28 65 73 78 6d 6c 29 0a 20 20 22 52 65 74 75 72 6e 73 20 61 20 6c 69 73 74 20 6f 66 20 61 6c .(esxml)..."Returns.a.list.of.al
a340 6c 20 66 6f 72 6d 73 2e 22 0a 20 20 28 65 73 78 6d 6c 2d 67 65 74 2d 74 61 67 73 20 65 73 78 6d l.forms."...(esxml-get-tags.esxm
a360 6c 20 27 28 66 6f 72 6d 29 29 29 0a 0a 3b 3b 20 74 61 6b 65 6e 20 66 72 6f 6d 20 6b 76 0a 28 64 l.'(form)))..;;.taken.from.kv.(d
a380 65 66 6d 61 63 72 6f 20 65 73 78 6d 6c 2d 64 65 73 74 72 75 63 74 75 72 69 6e 67 2d 6d 61 70 63 efmacro.esxml-destructuring-mapc
a3a0 61 72 20 28 61 72 67 73 20 73 65 78 70 20 73 65 71 29 0a 20 20 28 64 65 63 6c 61 72 65 20 28 69 ar.(args.sexp.seq)...(declare.(i
a3c0 6e 64 65 6e 74 20 32 29 29 0a 20 20 28 6c 65 74 20 28 28 65 6e 74 72 79 20 28 6d 61 6b 65 2d 73 ndent.2))...(let.((entry.(make-s
a3e0 79 6d 62 6f 6c 20 22 65 6e 74 72 79 22 29 29 29 0a 20 20 20 20 60 28 6d 61 70 63 61 72 20 28 6c ymbol."entry"))).....`(mapcar.(l
a400 61 6d 62 64 61 20 28 2c 65 6e 74 72 79 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 ambda.(,entry)................(c
a420 6c 2d 64 65 73 74 72 75 63 74 75 72 69 6e 67 2d 62 69 6e 64 20 2c 61 72 67 73 20 2c 65 6e 74 72 l-destructuring-bind.,args.,entr
a440 79 20 2c 73 65 78 70 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 2c 73 65 71 29 29 29 0a 0a y.,sexp))..............,seq)))..
a460 28 70 72 6f 76 69 64 65 20 27 65 73 78 6d 6c 29 0a 3b 3b 3b 20 65 73 78 6d 6c 2e 65 6c 20 65 6e (provide.'esxml).;;;.esxml.el.en
a480 64 73 20 68 65 72 65 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ds.here.........................
a4a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a4c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a4e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a5a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a5c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a5e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a6a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a6c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a6e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a7a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a7c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a7e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a8a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a8c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a8e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a9a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a9c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
a9e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aa00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aa20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aa40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aa60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aa80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aaa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ab00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ab20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ab40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ab60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ab80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
abc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
abe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ac00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ac20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ac40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ac60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ac80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
acc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ace0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ad00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ad20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ad40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ad60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ad80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ada0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
adc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ade0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ae00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ae20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ae40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ae60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ae80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
aee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
af00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
af20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
af40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
af60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
af80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
afa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
afc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
afe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b0a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b0c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b0e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b1a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b1c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b1e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b2a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b2c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b2e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b3a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b3c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b3e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b4a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b4c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b4e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b5a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b5c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b5e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b6a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b6c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b6e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b7a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b7c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b7e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b8a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b8c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b8e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b9a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b9c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
b9e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ba00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ba20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ba40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ba60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
ba80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
baa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bb00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bb20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bb40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bb60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bb80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bbc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bbe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bc00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bc20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bc40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bc60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bc80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bcc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bd00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bd20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bd40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bd60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bd80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bda0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bdc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bde0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
be00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
be20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
be40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
be60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
be80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bf00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bf20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bf40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bf60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bf80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bfa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bfc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
bfe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c0a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c0c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c0e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c1a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c1c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c1e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c2a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c2c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c2e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c3a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c3c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c3e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c4a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c4c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c4e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c5a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c5c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c5e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c6a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c6c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c6e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c7a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c7c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
c7e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................